/* /pollen — la règle d'un grain et l'exemple pas à pas (s'ajoute à base.css + site.css) */
.hero-rule { min-height: calc(86vh - 50px); }
.hero-rule h1 { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }
.ex-meadow { position: absolute; inset: 6% 4% 4%; width: 92%; height: 90%; overflow: visible; }
.ex-label { font-size: 22px; }

ol.cond.why li { grid-template-columns: 2.4em 1fr; }
ol.cond.why li small { grid-column: 2; display: block; font: italic .86rem/1.4 var(--f-text); color: var(--ink-2); margin-top: 2px; }
.calc { margin-top: 18px; font: 400 1rem/1.6 var(--f-math); border-left: 2px solid var(--pollen); padding-left: 12px; }
.calc b { color: var(--pollen); font-weight: 600; }

.example { padding: 20px 0 40px; scroll-margin-top: 20px; }
.example .intro { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 20px; }
.example .intro h2 { font: 400 1.6rem/1.2 var(--f-title); margin: 0; }
.example .intro p { margin: 0; font-style: italic; color: var(--ink-2); }
.whatif { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 26px; }
.whatif [data-variants] { display: flex; flex-wrap: wrap; gap: 8px; }
.whatif button { font: 400 .86rem/1 var(--f-text); color: var(--ink); background: transparent; border: 1px solid var(--rule-strong);
  border-radius: 999px; padding: .6em 1em; cursor: pointer; transition: background .2s, border-color .2s; }
.whatif button:hover { border-color: var(--ink); }
.whatif button[aria-checked="true"] { background: var(--pollen); border-color: var(--pollen); color: var(--ink-on-pollen); font-weight: 600; }
.whatif button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.steps.flash .step { animation: refresh .7s ease; }
@keyframes refresh { 0% { box-shadow: inset 0 0 0 1px var(--pollen); } 100% { box-shadow: inset 0 0 0 1px var(--rule-strong); } }
.step { background: color-mix(in oklab, var(--paper-2) 75%, var(--paper)); box-shadow: inset 0 0 0 1px var(--rule-strong); padding: 22px 24px; min-width: 0; }
.step.wide { grid-column: 1 / -1; }
.step > .plate-no { margin: 0 0 14px; }
.step .cap { font: italic .88rem/1.45 var(--f-text); color: var(--ink-2); margin: 12px 0 0; }

.ledger { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ledger th { text-align: left; font: 400 .7rem/1.2 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 0 8px 8px 0; border-bottom: 1px solid var(--rule-strong); }
.ledger td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger .r { text-align: right; }
.ledger .num { font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk { font: 500 .9em/1 var(--f-num); }
.bee-name { font-weight: 600; }
.addr { font: 400 .78em/1 var(--f-num); color: var(--ink-2); white-space: nowrap; }
.grains tr.no td { color: var(--ink-2); }
.grains tr.ok td:last-child { color: var(--pollen); font-weight: 700; }
.mark { display: inline-block; font: 500 .7rem/1 var(--f-num); letter-spacing: .08em; text-transform: uppercase; padding: .35em .55em; border: 1px solid; border-radius: 2px; }
.mark.ok { background: var(--pollen); border-color: var(--pollen); color: var(--ink-on-pollen); }
.mark.no { border-color: var(--rule-strong); color: var(--ink-2); }
.why { font-style: italic; font-size: .88rem; }
.matrix th, .matrix td { text-align: center; padding: 9px 6px; }
.matrix tbody th { text-align: left; border-bottom: 1px solid var(--rule); }
.matrix td.hot { background: var(--pollen-soft); color: var(--ink); font-weight: 700; }
.matrix td.self { color: var(--rule-strong); }

.clock .rule { position: relative; height: 34px; border-bottom: 1px solid var(--ink); margin: 0 14px 14px; }
.clock .tick { position: absolute; bottom: -1px; transform: translateX(-50%); font: 400 .68rem/1 var(--f-num); color: var(--ink-2); display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; }
.clock .tick i { display: block; width: 1px; height: 8px; background: var(--ink); }
.clock .tick { bottom: -9px; }
.clock .events { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px; }
.clock .events li { position: relative; padding-left: 18px; font-size: .92rem; }
.clock .events .pin { position: absolute; left: 0; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--pollen); }

.pots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pot-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: .84rem; color: var(--ink-2); margin-bottom: 5px; }
.pot-h .tk { color: var(--ink); font-size: 1rem; }
.pot .bar { height: 34px; margin: 0; }
.pot .bar span { font-size: .74rem; padding: 0 8px; }
.pot .bar .b { border-right: 1px solid var(--rule-strong); }
.pot .bar .b:last-child { border-right: 0; }
.engine-note { margin: 18px 0 0; font: italic .9rem/1.5 var(--f-text); color: var(--ink-2); display: flex; gap: 12px; align-items: baseline; }
.engine-note .demo-tag { font-style: normal; }
ul.doubt { margin: 0 0 1em; padding-left: 1.1em; }
ul.doubt li { margin: .45em 0; }
ul.doubt li::marker { color: var(--pollen); }

@media (max-width: 860px) {
  .hero-rule { min-height: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 18px 14px; }
  /* grains : une fiche par ligne au lieu d'un tableau */
  .grains thead { display: none; }
  .grains, .grains tbody, .grains tr, .grains td { display: block; width: 100%; }
  .grains tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .grains td { border: 0; padding: 0; width: auto; }
  .grains td:nth-child(3) { grid-column: 1 / -1; order: 3; }
  .grains td:nth-child(4) { grid-column: 1 / -1; order: 4; }
  .grains td:nth-child(5) { order: 2; }
  .example .intro { flex-direction: column; gap: 4px; }
  .ex-label { font-size: 30px; }
  .ex-meadow { inset: 10% 4% 4%; }
  .engine-note { flex-direction: column; gap: 6px; }
}
