/* Guide page: long-form reading layout, sticky table of contents, callouts, tables and the HTML planter diagrams. */
.page-guide {
  --soil: #3a2a1c;
  --soil-2: #2c1f14;
  --frame: #5b4431;
  --slot-edge: rgba(0, 0, 0, .45);
  --touch: #9cc451;
  --read: 46rem;               /* comfortable line length for the article */
  --sticky-top: 76px;          /* clears the sticky top bar */
}
:root[data-theme="light"] .page-guide {
  --soil: #7a5a3e;
  --soil-2: #634831;
  --frame: #4d3826;
  --slot-edge: rgba(0, 0, 0, .3);
  --touch: #4f7d22;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.page-guide) { scroll-behavior: smooth; }
}

/* ---------- hero ---------- */
.guide-hero { max-width: var(--read); margin: .75rem 0 1.5rem; }
.guide-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .6rem; }
.lead { font-size: 1.08rem; color: var(--text); max-width: 42rem; }
.hero-meta { margin: 0; line-height: 1.9; }
.hero-meta .tag { margin-right: .5rem; }

/* ---------- layout: TOC + article ---------- */
.guide-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.guide { min-width: 0; max-width: var(--read); }

.toc {
  background: url(../img/noise.svg), var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; box-shadow: var(--shadow);
}
.toc-title { margin: 0 0 .5rem; font-size: .8rem; color: var(--muted); }
.toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 1px; }
.toc-list li { counter-increment: toc; min-width: 0; }
.toc-list a {
  display: flex; gap: .5rem; align-items: baseline; padding: .38rem .5rem; border-radius: var(--radius);
  color: var(--muted); text-decoration: none; line-height: 1.25; border-left: 3px solid transparent;
}
.toc-list a::before {
  content: counter(toc); flex: none; min-width: 1.3em; text-align: right;
  font-family: var(--head-font); font-stretch: 87.5%; font-weight: 700; color: var(--dim);
}
.toc-list a:hover { color: var(--text); background: var(--panel-2); }
.toc-list a.is-active { color: var(--text); background: var(--head); border-left-color: var(--accent); }
.toc-list a.is-active::before { color: var(--accent-2); }
.toc-cta { margin-top: .75rem; width: 100%; justify-content: center; }

/* Phones and tablets: the TOC is a compact two-column index above the article. */
@media (max-width: 999px) {
  .toc-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); column-gap: .5rem; }
  .toc-list a { padding: .32rem .4rem; font-size: .9rem; }
  .toc-list a::before { min-width: 1.1em; }
  .toc-cta { display: none; }
}
@media (min-width: 1000px) {
  .guide-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; }
  .toc { position: sticky; top: var(--sticky-top); max-height: calc(100vh - var(--sticky-top) - 16px); overflow-y: auto; }
  .guide-hero { margin-left: calc(250px + 2rem); }
}
@media (min-width: 1400px) {
  .guide-wrap { grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; }
  .guide-hero { margin-left: calc(270px + 3rem); }
}

/* ---------- sections ---------- */
.g-sec { scroll-margin-top: calc(var(--sticky-top) + 12px); padding: 1.6rem 0 .6rem; border-top: 1px solid var(--line); }
.g-sec:first-child { border-top: 0; padding-top: 0; }
.g-sec h2 {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem); text-transform: uppercase; letter-spacing: .04em;
}
.sec-num {
  display: inline-grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-size: .72em; letter-spacing: 0;
}
.g-sec h3 { margin: 1.4rem 0 .5rem; font-size: 1.12rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.g-sec h3 .muted { text-transform: none; letter-spacing: .01em; font-weight: 400; font-size: .92em; }
.g-sec p, .g-sec li { line-height: 1.6; }
.g-sec ul, .g-sec ol { padding-left: 1.3rem; margin: 0 0 .9rem; }
.g-sec li + li { margin-top: .3rem; }
.good-word { color: var(--good); font-weight: 700; }
.bad-word { color: var(--bad); font-weight: 700; }
/* inline chips sit nicely on a text line */
.g-sec p .genes, .g-sec li .genes, .g-sec td .genes, .g-sec figcaption .genes { vertical-align: -.25em; }
/* chips in tables and legends read better a touch larger than inline text chips */
.gtable .genes-sm, .legend .genes-sm, .mock-list .genes-sm { --chip: 21px; }

/* ---------- tables ---------- */
/* Tables are sized to fit a 360px phone; the wrapper only scrolls as a last resort. */
.table-wrap { max-width: 100%; overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
.gtable { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--panel-2); }
.gtable caption {
  caption-side: top; text-align: left; padding: .5rem .7rem; background: var(--head); border-bottom: 1px solid var(--line);
  font-family: var(--head-font); font-stretch: 87.5%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: .8rem; color: var(--muted);
}
.gtable th, .gtable td { padding: .45rem .7rem; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.gtable thead th {
  border-top: 0; background: var(--head); color: var(--muted); font-size: .74rem;
  font-family: var(--head-font); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
}
.gtable tbody th { font-weight: 700; }
.gtable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gtable .why { display: block; font-size: .8rem; color: var(--muted); line-height: 1.3; margin-top: .15rem; }
.gtable .hl-row { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.gtable .hl-row th { color: var(--accent-2); }
.gene-table tbody th { white-space: nowrap; }
.gname { margin-left: .35rem; vertical-align: middle; }
.bad-row .gname { color: var(--bad); }
.gene-table tbody tr:not(.bad-row) .gname { color: var(--good); }
.slot-table td, .slot-table th { text-align: center; }
.slot-table td:nth-last-child(2) { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slot-table td:last-child { text-align: left; }
.slot-table-b td:nth-last-child(2) { text-align: center; }
.slot-table-b td:nth-child(2) { text-align: left; font-variant-numeric: tabular-nums; }
.slot-maths td:nth-child(2) { white-space: nowrap; }
.sure-table td:last-child { white-space: normal; font-size: .85rem; color: var(--muted); }
.sure-table .tag { margin-right: .3rem; }

/* ---------- callouts ---------- */
.callout {
  --c: var(--info);
  margin: 1rem 0; padding: .75rem .95rem .6rem; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-left: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 8%, var(--panel-2));
}
.callout-tip { --c: var(--good); }
.callout-warn { --c: var(--warn); }
.callout-title { margin: 0 0 .35rem; color: var(--c); font-size: .85rem; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: .2rem; }
.callout ul, .callout ol { margin-bottom: .6rem; }

/* ---------- god clones ---------- */
.god-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; margin: .5rem 0 1rem; }
.god-card {
  padding: .9rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: url(../img/noise.svg), var(--panel); box-shadow: var(--shadow);
}
.god-name { margin: .6rem 0 .25rem; color: var(--good); font-size: .95rem; }
.god-card p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- growth stages ---------- */
.stage-flow {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem;
  margin: .5rem 0 1.1rem; padding: 0 !important; list-style: none;
}
.stage-flow li + li { margin-top: 0; }
.stage {
  position: relative; display: grid; align-content: start; gap: .15rem; min-width: 0;
  padding: .45rem .6rem .5rem; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line);
}
.stage-name { font-family: var(--head-font); font-stretch: 87.5%; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; }
.stage-note { font-size: .74rem; line-height: 1.25; color: var(--muted); }
/* four to a row with a small arrow between stages (none at the start of a row) */
@media (min-width: 700px) {
  .stage-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .9rem; }
  .stage + .stage::before {
    content: ""; position: absolute; left: -.72rem; top: 1rem; width: .5rem; height: .5rem;
    border-top: 2px solid var(--dim); border-right: 2px solid var(--dim); transform: rotate(45deg);
  }
  .stage:nth-child(4n+1)::before { display: none; }
}
.stage-key { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.stage-key .stage-name { color: var(--accent-2); }
.stage-key .stage-note { color: var(--text); }
.stage-clone { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.stage-clone .stage-note { color: var(--good); }
.stage-harvest { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.stage-harvest .stage-note { color: var(--warn); }
.stage-end { opacity: .7; }

/* ---------- lists ---------- */
.checks { list-style: none; padding-left: 0 !important; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before {
  content: ""; position: absolute; left: .2rem; top: .42em; width: .45rem; height: .8rem;
  border-right: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(40deg);
}
.rule-steps { counter-reset: rule; list-style: none; padding-left: 0 !important; }
.rule-steps > li { counter-increment: rule; position: relative; padding-left: 2.3rem; min-height: 1.7rem; }
.rule-steps > li + li { margin-top: .55rem; }
.rule-steps > li::before {
  content: counter(rule); position: absolute; left: 0; top: .05rem; width: 1.65rem; height: 1.65rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--head); border: 1px solid var(--line-strong);
  font-family: var(--head-font); font-weight: 700; font-size: .85rem; color: var(--accent-2);
}

/* ---------- worked examples ---------- */
.example {
  margin: 1rem 0 1.25rem; padding: .9rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: url(../img/noise.svg), var(--panel); box-shadow: var(--shadow);
}
.example .table-wrap { margin: .9rem 0 0; }
.example figcaption { margin-top: .8rem; line-height: 1.6; }
.ex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.legend { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: .4rem; min-width: 0; }
.legend li { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0 !important; line-height: 1.3; }

/* ---------- planter diagrams (HTML/CSS only) ---------- */
/* .pl is the timber box, .cell a soil slot. States: .me (the plant we look at), .touch (touches it),
   .donor / .bred (worked examples), .ty-a..d (plant types in the safe layout). Letters are always shown. */
.pl {
  --cell: 26px;
  display: inline-grid; gap: 3px; padding: 6px; flex: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--frame) 88%, #fff), var(--frame));
  border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), var(--shadow);
}
.pl-3x3 { grid-template-columns: repeat(3, var(--cell)); }
.pl-row { grid-template-columns: repeat(3, var(--cell)); }
.pl-cart { grid-template-columns: repeat(2, var(--cell)); border-radius: 5px 5px 12px 12px; background: linear-gradient(#6d6a64, #4a4843); }
.pl-pot { grid-template-columns: var(--cell); border-radius: 6px 6px 16px 16px; background: linear-gradient(#b0663f, #86492b); padding: 7px 7px 10px; }
.pl-lg { --cell: 56px; gap: 4px; padding: 8px; }
.cell, .lg-key {
  position: relative; display: grid; place-items: center; width: var(--cell); height: var(--cell);
  border-radius: 3px; background: radial-gradient(circle at 50% 40%, var(--soil), var(--soil-2));
  box-shadow: inset 0 0 0 1px var(--slot-edge), inset 0 2px 5px rgba(0, 0, 0, .35);
  font-family: var(--head-font); font-stretch: 87.5%; font-weight: 800; line-height: 1;
  font-size: calc(var(--cell) * .42); color: rgba(255, 255, 255, .55);
}
.cell.me, .lg-key.me { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.cell.touch, .lg-key.touch {
  color: var(--touch);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--touch) 75%, transparent), inset 0 2px 5px rgba(0, 0, 0, .35);
}
.page-guide .cell.touch, .page-guide .lg-key.touch { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--touch) 28%, var(--soil)), var(--soil-2)); }
.cell.donor, .lg-key.donor { background: linear-gradient(var(--green-hi), var(--green)); color: var(--on-green); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.cell.bred, .lg-key.bred {
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--accent) 70%, #000) 0 6px, var(--accent) 6px 12px);
  color: var(--on-accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.cell.ty-a, .lg-key.ty-a { background: #6f9a3c; color: #10160a; }
.cell.ty-b, .lg-key.ty-b { background: #d1a53f; color: #1c1405; }
.cell.ty-c, .lg-key.ty-c { background: #6c93c4; color: #0a1220; }
.cell.ty-d, .lg-key.ty-d { background: #c0735a; color: #1d0c06; }
.lg-key { --cell: 1.7rem; flex: none; display: inline-grid; vertical-align: middle; font-size: .95rem; }
/* planting-order badge on a donor */
.cell .order {
  position: absolute; top: -6px; right: -6px; padding: 1px 4px; border-radius: 999px;
  background: var(--good); color: #10160a; font-size: .64rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* Triangle planter: a clipped timber triangle with four absolutely placed slots (corners ~1 m apart, middle ~0.6 m). */
.pl-tri { position: relative; display: block; width: 144px; height: 125px; padding: 0; background: none; box-shadow: none; }
.tri-soil {
  position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--frame) 88%, #fff), var(--frame));
}
.tri-soil::after {
  content: ""; position: absolute; inset: 9px 11px 6px; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--soil-2);
}
.pl-tri .cell { position: absolute; --cell: 24px; transform: translate(-50%, -50%); font-size: 11px; }
.tri-a { left: 50%; top: 34%; }
.tri-b { left: 27%; top: 82%; }
.tri-c { left: 73%; top: 82%; }
.tri-d { left: 50%; top: 65%; }

/* planter cards (section 4) */
.planter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: .75rem; margin: .75rem 0 1rem; }
.pcard {
  padding: .85rem .9rem .3rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: url(../img/noise.svg), var(--panel); box-shadow: var(--shadow); min-width: 0;
}
.pcard h3 { margin: 0 0 .6rem; font-size: 1rem; }
.pcard p { font-size: .92rem; color: var(--muted); }
.pl-set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin: 0 0 .7rem; }
.pl-fig { margin: 0; display: grid; justify-items: center; gap: .35rem; }
.pl-fig figcaption {
  font-family: var(--head-font); font-stretch: 87.5%; font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}

/* ---------- step by step (section 6) ---------- */
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.9rem; margin: 0 0 1.1rem !important; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center; border-radius: var(--radius); background: var(--green); color: var(--on-green);
  font-family: var(--head-font); font-weight: 800; font-size: 1.05rem;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.02rem; top: 2.4rem; bottom: -.9rem; width: 2px; background: var(--line);
}
.steps h3 { margin: .3rem 0 .4rem; font-size: 1.02rem; }

/* result card mock-up with numbered markers explained beside it */
.mock-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: .6rem 0 .4rem; }
@media (min-width: 760px) { .mock-wrap { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; } }
.mock-card {
  padding: .85rem; border-radius: var(--radius); border: 1px solid var(--line-strong); border-top: 3px solid var(--good);
  background: url(../img/noise.svg), var(--panel); box-shadow: var(--shadow-lg); min-width: 0;
}
.mock-card p { margin: 0; }
.mock-top { display: flex; align-items: center; gap: .5rem; }
.mock-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .6rem 0 .3rem; }
.mock-label { margin-top: .7rem !important; font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.mock-line { font-size: .9rem; color: var(--text); font-style: italic; }
.mock-list { list-style: none; margin: .25rem 0 0 !important; padding: 0 !important; display: grid; gap: .3rem; }
.mock-list li { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0 !important; }
.ref { font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--accent-2); }
.mock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin-top: .8rem !important; }
.mock-btn {
  display: inline-flex; align-items: center; min-height: 28px; padding: .2rem .55rem; border-radius: var(--radius);
  background: var(--btn); border: 1px solid var(--line-strong);
  font-family: var(--head-font); font-stretch: 87.5%; font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
}
.mock-go { background: var(--green); color: var(--on-green); border-color: transparent; }
.mk {
  display: inline-grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--warn); color: #1a1204; font: 800 .75rem/1 var(--head-font);
}
.mock-top .mk, .mock-badges .mk, .mock-actions .mk { margin-left: auto; }
.mock-notes { counter-reset: mk; list-style: none; padding-left: 0 !important; margin: 0 !important; }
.mock-notes > li { counter-increment: mk; position: relative; padding-left: 2rem; font-size: .93rem; }
.mock-notes > li::before {
  content: counter(mk); position: absolute; left: 0; top: .15rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--warn); color: #1a1204; font: 800 .75rem/1 var(--head-font);
}

/* ---------- timing (section 7) ---------- */
.timeline { list-style: none; padding-left: 0 !important; margin: .6rem 0 1rem; border-left: 2px solid var(--line-strong); }
.timeline > li { position: relative; padding: 0 0 .5rem 1.1rem; margin: 0 !important; }
.timeline > li::before {
  content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--panel-solid); border: 2px solid var(--accent);
}
.timeline > li:nth-child(3)::before { background: var(--accent); }
.t-mark { display: block; font-size: .78rem; color: var(--accent-2); }
.timeline p { margin: .1rem 0 0; }

/* ---------- tips (section 8) ---------- */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; margin: .5rem 0 1rem; }
.tip {
  padding: .8rem .9rem .2rem; border-radius: var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--green-hi);
  background: url(../img/noise.svg), var(--panel); box-shadow: var(--shadow);
}
.tip h3 { margin: 0 0 .4rem; font-size: .98rem; }
.tip p { font-size: .92rem; color: var(--muted); }

/* ---------- sources (section 9) ---------- */
.sources { list-style: none; padding-left: 0 !important; }
.sources li { padding: .55rem .75rem; border-left: 3px solid var(--line-strong); background: var(--panel-2); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .4rem; margin-bottom: 1.25rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2);
  scroll-margin-top: calc(var(--sticky-top) + 12px);
}
.faq details[open] { background: url(../img/noise.svg), var(--panel); border-color: var(--line-strong); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none; padding: .65rem 2.3rem .65rem .85rem;
  font-weight: 600; line-height: 1.35; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .95rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.35rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq summary:hover { background: var(--panel-2); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details > p { margin: 0; padding: 0 .85rem .8rem; color: var(--muted); }
.guide-end { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .page-guide { --sticky-top: 104px; }   /* the top bar is two rows here */
}
@media (max-width: 560px) {
  .guide-hero { margin-top: .25rem; }
  .lead { font-size: 1rem; }
  .gtable { font-size: .85rem; }
  .gtable th, .gtable td { padding: .4rem .45rem; }
  .gtable thead th { white-space: normal; }
  .slot-maths td:nth-child(2), .slot-table td:nth-last-child(2) { white-space: normal; }
  .pl-lg { --cell: 48px; }
  .pl:not(.pl-lg) { --cell: 24px; }
  .pl-set { gap: .75rem .55rem; }
  .pcard { padding-inline: .75rem; }
  .example { padding: .75rem; }
  .steps > li { padding-left: 2.5rem; }
  .steps > li::before { width: 1.8rem; height: 1.8rem; font-size: .95rem; }
  .steps > li:not(:last-child)::after { left: .87rem; top: 2.1rem; }
}

@media print {
  .toc, .guide-end { display: none !important; }
  .guide-wrap { display: block; }
  .guide-hero { margin-left: 0; }
  .guide { max-width: none; }
  .cell, .lg-key, .stage, .callout, .tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
