/* ==========================================================================
   ideas/shared/idea-page.css — the Ideas workspace surface style
   Built entirely on the bound Cane Portal Design System tokens. Declares no
   colour, type step, radius or spacing value of its own beyond composition,
   and no container width (shared/layout.css owns that).

   Two presentations from ONE document:
     · SCREEN  — canvas-first, interactive, responsive.
     · PAPER   — explicit A4 sheets (portrait for reading, landscape for
                 substantial diagrams), rendered from the same data with every
                 interactive state resolved. Sheets are hidden on screen unless
                 the reviewer opens the print view.
   ========================================================================== */

/* ---------- language + shared chrome ---------------------------------- */
[data-lang="en"] .l-th { display: none; }
[data-lang="th"] .l-en { display: none; }

body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text); }

/* ---------- ONE CONTROL SCALE, folder-wide (design policy) --------------
   On an Ideas surface the drawing and the prose are the content; a button, a
   view switch and a tag are CHROME beside them and are drawn at the smallest
   legible step — never at call-to-action size. The scale is declared ONCE
   here and read by every control rule in this file and in idea-index.css: no
   page, no card and no figure sets its own control height, control padding or
   tag size, and a new control added from here on reads these values.
   (Ideas is a desk review surface — the phone-density floors of `A-107` reach
   the app surfaces under apps/, not this one.) */
:root {
  --i-ctrl-h: 26px;        /* every button, switch and stepper */
  --i-ctrl-px: 9px;        /* their side padding */
  --i-ctrl-fs: 10px;       /* their mono label */
  --i-tag-fs: 10px;        /* a pill / tag */
  --i-tag-py: 2px;
  --i-tag-px: 6px;
  --i-bar-py: 7px;         /* a bar that holds controls */
  --i-bar-px: 12px;
}
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

/* ---------- hero ------------------------------------------------------- */
/* ---------- hero (the CATALOGUE only; idea pages have none) ------------- */
.ihero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--cane-700), var(--cane-900)); color: var(--neutral-0); padding: 44px var(--page-pad) 38px; }
.ihero__inner { max-width: var(--page-max); margin: 0 auto; position: relative; min-width: 0; }
.crumb { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--cane-100); margin: 0 0 18px; }
.crumb a { color: var(--gold-300); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.ihero__eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--gold-300); margin: 0 0 10px; }
.ihero h1 { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); margin: 0 0 12px; color: var(--neutral-0); }
.ihero .lede { font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--cane-100); max-width: 680px; margin: 0; }
.ihero__id { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--gold-300); }

/* ---------- local navigation -------------------------------------------
   The Drafts local-nav shell (docs/shared/spec-doc.css `.spec-nav`): ONE 40px
   cane-900 row directly under the project bar — the section name `ideas` at
   the left, the reviewer's own theme and language controls at the far end, and
   NOTHING between them. The bar carries no destination row (client direction,
   22 Aug 2026: no All ideas link, no search link, no register dropdown, no
   burger, no page action) and no branding — the project bar owns the sections
   and the mark (`A-104` R-ONEBAR). Built by shared/idea-nav.js. */
.inav { position: sticky; top: 0; z-index: 50; background: var(--cane-900); border-bottom: 1px solid var(--cane-800); }
.inav-mount { display: contents; }
.inav__in { position: relative; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); display: flex; align-items: stretch; height: 40px; }
.inav__title { display: flex; align-items: center; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-sm); letter-spacing: var(--ls-wide); color: var(--neutral-0); text-decoration: none; white-space: nowrap; padding-right: 14px; }
.inav__title:hover { color: var(--gold-200); }
.inav a:focus-visible, .inav button:focus-visible { outline: 2px solid var(--gold-300); outline-offset: -3px; }

/* the reviewer's own controls, docked into .inav__chrome by idea-chrome.js at
   the far end of the row. They never float over the page. */
/* the reviewer's own controls, docked into .inav__chrome by idea-chrome.js at
   the far end of the row. They never float over the page.

   ONE TEMPLATE, folder-wide (client direction, 24 Aug 2026): this row is the
   EXHIBIT row's design, migrated here — the same 40px cane-900 bar, the same
   full-height control groups divided by a cane-800 hairline, the same gold
   active language chip and the same cane-800 active theme button as the
   .spec-nav shape an instrument page wears. The only difference the idea
   documents keep is their two acts, Sheets and PDF, which sit inside the same
   right-hand group. */
.inav__chrome { display: flex; align-items: stretch; align-self: stretch; margin-left: auto; }
.inav__in:has(.inav__acts) .inav__chrome { margin-left: 0; }
.inav__chrome:empty { display: none; }
.inav .sc-theme-bubble { position: static; top: auto; right: auto; padding: 0; background: transparent; border: 0; box-shadow: none; align-self: stretch; display: flex; align-items: stretch; border-left: 1px solid var(--cane-800); }
.inav .sc-lang-toggle { align-self: stretch; display: flex; align-items: stretch; gap: 0; border-left: 1px solid var(--cane-800); background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.inav .sc-theme-bubble button, .inav .sc-lang-toggle button { color: var(--cane-100); height: auto; align-self: stretch; border: 0; border-radius: 0; background: none; font-family: var(--font-mono); font-size: var(--fs-xs); }
.inav .sc-theme-bubble button { width: 34px; justify-content: center; }
.inav .sc-lang-toggle button { min-width: 40px; padding: 0 10px; justify-content: center; }
.inav .sc-theme-bubble button:hover, .inav .sc-lang-toggle button:hover { background: var(--cane-800); color: var(--neutral-0); }
.inav .sc-theme-bubble button.is-active { background: var(--cane-800); color: var(--gold-300); }
.inav .sc-lang-toggle button.is-active { background: var(--gold-400); color: var(--cane-950); }
.inav .sc-lang-toggle__sep { display: none; }
@media (max-width: 860px) { .inav__in { padding: 0 8px; } }

/* ---------- the page's two acts, IN THE BAR ----------------------------
   SHEET · PDF are menu items of the local navigation bar on every ideas page
   (client direction, 24 Aug 2026) — never a pair of buttons in the page body,
   and drawn at the FULL HEIGHT of the row like the theme and language groups
   (client direction, 30 Aug 2026).
   The geometry is declared ONCE, in shared/idea-acts.js, which every reading
   page of this folder loads — including the pages that link neither this file
   nor an exh-shell.css. Do not restate an .inav__act rule here. */

/* ---------- legacy in-body print pair (no page renders one) ------------- */
.ipacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.ipacts button { display: inline-flex; align-items: center; height: var(--i-ctrl-h); padding: 0 var(--i-ctrl-px); white-space: nowrap; font-family: var(--font-mono); font-size: var(--i-ctrl-fs); letter-spacing: .04em; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md, 2px); cursor: pointer; }
.ipacts button:hover { color: var(--text-strong); border-color: var(--primary); }
.ipacts button.is-on { background: var(--gold-400); border-color: var(--gold-400); color: var(--cane-950); font-weight: var(--fw-bold); }
.ipacts button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- page body --------------------------------------------------
   ONE container for every idea surface: shared/layout.css owns the width,
   this owns the rhythm. Nothing inside declares a width of its own. */
main.ipage { max-width: var(--page-max); margin: 0 auto; padding: 20px var(--page-pad) 56px; box-sizing: border-box; }
main.ipage, main.ipage *, .ihero, .ihero * { box-sizing: border-box; }
main.ipage > * { min-width: 0; }

/* ---------- pills ------------------------------------------------------ */
.pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: var(--i-tag-fs); font-weight: var(--fw-bold); letter-spacing: .04em; padding: var(--i-tag-py) var(--i-tag-px); border-radius: var(--radius-md, 2px); border: 1px solid var(--border); background: var(--surface-3); color: var(--text-muted); white-space: nowrap; }
.pill__code { font-size: 8px; border: 1px solid currentColor; border-radius: 2px; padding: 0 3px; opacity: .95; }
.pill--ok { background: var(--success-soft); color: var(--success-solid, var(--success)); border-color: color-mix(in oklch, var(--success) 30%, transparent); }
.pill--info { background: var(--info-soft); color: var(--info-solid, var(--info)); border-color: color-mix(in oklch, var(--info) 30%, transparent); }
.pill--warn { background: var(--warning-soft); color: var(--warning-solid, var(--warning)); border-color: color-mix(in oklch, var(--warning) 30%, transparent); }
.pill--stop { background: var(--danger-soft); color: var(--danger-solid, var(--danger)); border-color: color-mix(in oklch, var(--danger) 30%, transparent); }
.pill--muted { background: var(--surface-3); color: var(--text-muted); border-color: var(--border); }
.pill--plain { background: transparent; }

/* ---------- compact page-introduction block (replaces the hero) -------- */
.ihead { display: grid; grid-template-columns: 1fr; gap: 10px; border: 1px solid var(--border); border-left: 3px solid var(--cane-600); border-radius: var(--radius-lg, 3px); background: var(--surface); padding: 14px 16px; margin: 0; min-width: 0; }
[data-theme="dark"] .ihead { border-left-color: var(--cane-400, var(--primary)); }
.ihead__crumb { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); margin: 0; }
.ihead__crumb a { color: var(--primary); text-decoration: none; }
.ihead__crumb a:hover { text-decoration: underline; }
.ihead__top { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
.ihead__id { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--gold-600); }
[data-theme="dark"] .ihead__id { color: var(--gold-300); }
.ihead__t { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: var(--lh-tight); color: var(--cane-900); margin: 0; min-width: 0; overflow-wrap: break-word; text-wrap: pretty; }
[data-theme="dark"] .ihead__t { color: var(--text-strong); }
.ihead__rev { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); margin-left: auto; white-space: nowrap; }
.ihead__concept { font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--text); margin: 0; text-wrap: pretty; overflow-wrap: break-word; }
.ihead__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ihead__rel { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ihead__rel a { color: var(--primary); text-decoration: none; }
.ihead__rel a:hover { text-decoration: underline; }
.ihead__relt { color: var(--text-muted); }
.ihead__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.ihead__facts > div { min-width: 0; }
.fact__k { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-subtle); margin-bottom: 3px; }
.fact__v { font-size: var(--fs-sm); color: var(--text); }
.fact__v a { text-decoration: none; }
.fact__v a:hover { text-decoration: underline; }

/* ---------- sections --------------------------------------------------- */
.sec { margin: 26px 0 0; min-width: 0; }
.sec__hd { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sec__n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--gold-600); font-weight: var(--fw-bold); }
[data-theme="dark"] .sec__n { color: var(--gold-300); }
.sec__t { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--cane-900); margin: 0; }
[data-theme="dark"] .sec__t { color: var(--text-strong); }
.sec__note { font-size: var(--fs-xs); color: var(--text-muted); margin-left: auto; font-family: var(--font-mono); }

/* ---------- canvas -----------------------------------------------------
   The stage carries the shared figure-scale contract set by idea-app.jsx: a
   drawing FILLS the stage width and the canvas takes the height its own
   aspect ratio then asks for — a canvas grows downwards and never leaves the
   drawing sitting small in a band of empty surface.
     --fig-min  86% of the drawing's own viewBox width — never rendered
                smaller; below that the stage scrolls horizontally inside its
                own box (nothing clips, and no label is shrunk into
                illegibility to make a wide diagram fit a phone). */
.canvas { border: 1px solid var(--border); border-radius: var(--radius-lg, 3px); background: var(--surface); overflow: hidden; min-width: 0; }
.canvas__bar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: var(--i-bar-py) var(--i-bar-px); border-bottom: 1px solid var(--border); background: var(--surface-2); min-width: 0; }
.canvas__title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); margin: 0; min-width: 0; overflow-wrap: break-word; }
.canvas__ctrls { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; }
.cbtn { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: var(--i-ctrl-fs); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; padding: 0 var(--i-ctrl-px); min-height: var(--i-ctrl-h); border: 1px solid var(--border); border-radius: var(--radius-md, 2px); background: var(--surface); color: var(--text-muted); cursor: pointer; }
.cbtn:hover { border-color: var(--border-strong); color: var(--text); }
.cbtn:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.cbtn[aria-pressed="true"], .cbtn.is-on { background: var(--primary); border-color: var(--primary); color: var(--neutral-0); }
.canvas__stage { padding: 14px; background: var(--surface); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.canvas__stage svg { display: block; width: 100%; height: auto; max-width: none; min-width: var(--fig-min, 0); margin: 0 auto; }
.canvas__hint { margin: 0; padding: 0 14px 10px; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); text-wrap: pretty; }
/* the primary canvas (Section 02) — fitted to the stage WIDTH, zoomed by the
   reviewer: --fig-render is the drawn width idea-app.jsx computes, the canvas
   is as tall as that width makes the drawing, and the stage becomes a pan box
   in both axes only once the reviewer zooms past fit. */
.canvas--zoom .canvas__stage { overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.canvas--zoom .canvas__stage svg { width: var(--fig-render, 100%); max-width: none; min-width: 0; }
.canvas--zoom .canvas__stage.is-grabbing { cursor: grabbing; user-select: none; }
.canvas__zoom { display: flex; align-items: center; gap: 4px; }
.canvas__ctrls + .canvas__zoom { margin-left: 8px; }
.canvas__zoom:first-of-type { margin-left: auto; }
.cbtn--sq { padding: 0; width: var(--i-ctrl-h); justify-content: center; text-align: center; font-size: var(--fs-xs); line-height: 1; }
.cbtn:disabled { opacity: .45; cursor: default; }
.canvas__pct { font-family: var(--font-mono); font-size: var(--i-ctrl-fs); color: var(--text-muted); min-width: 36px; text-align: center; }
.canvas__cap { padding: 0 var(--i-bar-px) 10px; font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-relaxed); text-wrap: pretty; }
.canvas__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: var(--i-bar-py) var(--i-bar-px); border-top: 1px solid var(--border); background: var(--surface-2); }
.lgd { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); color: var(--text-muted); min-width: 0; overflow-wrap: break-word; }
.lgd__sw { width: 12px; height: 12px; border-radius: 2px; border: 1px solid var(--border-strong); flex: none; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 8px; color: var(--neutral-0); }

/* figure grid — ONE FULL-WIDTH CARD PER ROW, folder-wide.
   A figure on an idea page is a dense analytical plate authored at 700–1240
   viewBox units. In a two-column grid a 1240-unit drawing met its own 0.86
   floor (--fig-min) inside a ~460px column and the stage became a horizontal
   scroller on a normal desktop — the reviewer read every wide plate sideways.
   One card per row spends the whole content width on the drawing, so the
   figure-scale contract resolves to "fits" at desktop widths and the contained
   scroller is left for the genuinely narrow screens it was written for. */
.figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.figs > * { min-width: 0; }
/* kept as an alias: a plate marked `wide` in data is already one per row */
.figs--full { grid-template-columns: minmax(0, 1fr); }
.figs + .figs { margin-top: 14px; }

/* ---------- annotations ------------------------------------------------ */
.anns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.ann { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius-md, 2px); background: var(--surface); padding: 10px 12px; min-width: 0; }
.ann__n { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: var(--neutral-0); background: var(--cane-600); border-radius: 999px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.ann__b { font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--text); text-wrap: pretty; min-width: 0; overflow-wrap: break-word; }
.ann__at { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); margin-top: 3px; }

/* ---------- list blocks ------------------------------------------------ */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius-md, 2px); background: var(--surface); padding: 10px 12px; min-width: 0; }
.row__k { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: var(--text-subtle); padding-top: 2px; white-space: nowrap; }
.row__b { font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--text); text-wrap: pretty; min-width: 0; overflow-wrap: break-word; }
.row__b strong { color: var(--text-strong); }
.row--stop { border-left: 3px solid var(--danger); }
.row--warn { border-left: 3px solid var(--warning); }
.row--ok { border-left: 3px solid var(--success); }
.row--info { border-left: 3px solid var(--info); }

/* ---------- a recorded working answer under an open question -------------
   The question keeps its id and its open tone; the answer sits inside the row
   with its own class line, so a working direction cannot be read as evidence. */
.qa { margin-top: 10px; display: grid; gap: 6px; border-left: 2px solid var(--info); background: var(--surface-2); border-radius: var(--radius-md, 2px); padding: 9px 12px; min-width: 0; }
.qa__cls { margin: 0; font-size: var(--fs-2xs); color: var(--text-muted); text-wrap: pretty; }
.qa__k { font-family: var(--font-mono); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--info); margin-right: 6px; }
.qa__b { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--text); text-wrap: pretty; overflow-wrap: break-word; }
.qa__q { margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); text-wrap: pretty; }
.qa__gh { margin: 2px 0 0; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-subtle); }
.qa__g { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--fs-xs); line-height: var(--lh-relaxed); color: var(--text-muted); }
.qa__g li { min-width: 0; overflow-wrap: break-word; }

/* branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.branch { border: 1px solid var(--border); border-radius: var(--radius-lg, 3px); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.branch__hd { display: flex; align-items: center; gap: 8px; }
.branch__id { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); }
.branch__t { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); margin: 0; }
.branch__b { font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--text-muted); margin: 0; text-wrap: pretty; min-width: 0; overflow-wrap: break-word; }
/* a branch verdict is a SENTENCE, not a status label: it wraps inside its card */
.branch .pill { white-space: normal; text-align: left; align-self: flex-start; max-width: 100%; line-height: 1.45; }

/* downstream */
.dsl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ds { border: 1px solid var(--border); border-radius: var(--radius-lg, 3px); background: var(--surface); padding: 12px 14px; display: grid; gap: 8px; }
.ds__hd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds__id { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--primary); text-decoration: none; }
.ds__id:hover { text-decoration: underline; }
.ds__t { font-size: var(--fs-sm); color: var(--text); flex: 1 1 200px; }
.ds__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px 18px; border-top: 1px solid var(--border-subtle); padding-top: 8px; }
.ds__cols > div { min-width: 0; }
.ds__k { display: block; font-family: var(--font-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-subtle); margin-bottom: 2px; }
.ds__v { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-relaxed); }

.callout { border: 1px solid var(--border); border-radius: var(--radius-lg, 3px); background: var(--surface-2); padding: 14px 16px; font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--text); text-wrap: pretty; }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin: 0; }

/* ---------- the research instruments an idea owns ----------------------
   Instruments, not results: the block links them and states nothing itself. */
.sec__sub { margin: 16px 0 8px; font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: .07em; text-transform: uppercase; color: var(--text-subtle); }
.kit { display: grid; gap: 10px; }
.kit__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; font-family: var(--font-display); font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--text-strong); }
.kit__k { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--primary); }
.kit__n { margin: 0; font-size: var(--fs-sm); line-height: var(--lh-relaxed); color: var(--text-muted); text-wrap: pretty; }
.kit .row__k a { font-family: var(--font-mono); font-weight: var(--fw-bold); color: var(--primary); text-decoration: none; }
.kit .row__k a:hover { text-decoration: underline; }
.kit__st { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); }
.kit__all { margin: 0; font-size: var(--fs-sm); }
.sheet .kit__st { display: none; }

/* ---- the reviewer's controls sit at the RIGHT END of the section row ----
   MANDATORY, folder-wide (client direction, 24 Aug 2026): on every page in
   this folder the language and theme controls are flush right, with nothing
   between them and the edge. The idea pages and the catalogue get that through
   .inav__chrome; a page that instead wears the Drafts-shaped .spec-nav row
   (an exhibit of an idea) gets it here, because that row carries no
   destination list to push the controls over. */
.spec-nav:not(:has(.spec-nav__links)) { flex-wrap: nowrap; }
.spec-nav .spec-nav__title { flex: 0 0 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; }
.spec-nav .spec-nav__lang { margin-left: auto !important; }
.spec-nav:not(:has(.spec-nav__lang)) .spec-nav__theme { margin-left: auto !important; }
.spec-nav .spec-nav__lang + .spec-nav__theme { margin-left: 0 !important; }

footer.ifoot { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad) 40px; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-subtle); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ======================================================================
   A4 SHEETS — the deliberate print representation
   Explicit pagination: every sheet is an A4 box the content is authored to
   fit, so no diagram is clipped, no legend is separated from its figure and
   no card is split across a fold. Portrait for reading, landscape for the
   substantial diagrams.
   ====================================================================== */
.sheets { display: none; }
.sheets * { box-sizing: border-box; }

body.is-printview .sheets { display: block; background: var(--neutral-200); padding: 24px 0; }
body.is-printview main.ipage { display: none; }
body.is-printview .sheets__hint { max-width: var(--page-max); margin: 0 auto 16px; padding: 0 var(--page-pad); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--neutral-700); }

.sheet {
  /* paper is paper in either theme */
  --surface: var(--neutral-0); --bg: var(--neutral-0); --surface-2: var(--neutral-50); --surface-3: var(--neutral-100);
  --border: var(--neutral-200); --border-strong: var(--neutral-300); --border-subtle: var(--neutral-100);
  --text-strong: var(--neutral-900); --text: var(--neutral-800); --text-muted: var(--neutral-500); --text-subtle: var(--neutral-400);
  --primary: var(--cane-600); --primary-hover: var(--cane-700);
  position: relative; width: 210mm; height: 297mm; background: #fff; color: var(--neutral-800);
  margin: 0 auto 18px; padding: 12mm 14mm 14mm; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 32, 24, .22);
}
.sheet--l { width: 297mm; height: 210mm; }
.sheet__hd { display: flex; align-items: baseline; gap: 10px; border-bottom: 1.5px solid var(--cane-700); padding-bottom: 6px; margin-bottom: 8mm; flex: none; }
.sheet__id { font-family: var(--font-mono); font-size: var(--p-hdid); font-weight: var(--fw-bold); color: var(--cane-700); }
.sheet__t { font-family: var(--font-display); font-size: var(--p-hdt); font-weight: var(--fw-semibold); color: var(--neutral-900); margin: 0; flex: 1; }
.sheet__t .l-th { font-size: var(--p-hdt-th); }
.sheet__st { font-family: var(--font-mono); font-size: var(--p-hdst); color: var(--neutral-600); border: 1px solid var(--neutral-300); border-radius: 2px; padding: 1px 5px; white-space: nowrap; }
.sheet__bd { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5mm; }
.sheet__ft { flex: none; display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--neutral-300); padding-top: 5px; margin-top: 6mm; font-family: var(--font-mono); font-size: var(--p-ft); color: var(--neutral-500); white-space: nowrap; }
.sheet__ft .l-th { font-size: var(--p-ft-th); }
/* THE SHEET PLAN is a column of rows, not one long grid: each row is its own
   measurable atom, so the plan paginates by measured fit like every other item
   list instead of overrunning a fixed box. */
.sheet__toc { display: flex; flex-direction: column; gap: 1mm; font-family: var(--font-mono); font-size: var(--p-toc); color: var(--neutral-600); }
.sheet__toc .tocr { display: grid; grid-template-columns: auto 1fr auto; gap: 0 4mm; align-items: baseline; }
.sheet__toc .l-th { font-size: var(--p-toc-th); }
.sheet__toc b { font-weight: 400; color: var(--neutral-800); font-family: var(--font-sans); font-size: var(--p-tocb); }
.sheet__toc b .l-th { font-size: var(--p-tocb-th); }
.sheet__ft .sp { flex: 1; }

/* ======================================================================
   SHEET TYPOGRAPHY — THE ROLE TABLE, AND THE THAI COMPENSATION
   ----------------------------------------------------------------------
   Client direction, 31 Aug 2026, SUPERSEDING the "Thai exactly 1.5x English"
   rule of the same day: "Remove the rigid 1.5x sizing rule. Set role-by-role
   English and Thai sizes that are optically balanced in CS PraJad: both
   languages comfortably readable, English never secondary fine print, Thai only
   the modest compensation its actual font metrics justify."

   WHAT THE 1.5x RULE DID, seen in the IDEA-011 SHEET view: English body ran at
   11pt while the Thai beside it ran at 16.5pt. Two languages of one passage read
   as a headline and its footnote — the Thai shouted, the English became fine
   print, and every Thai sheet count inflated for no editorial reason. One number
   was applied to twenty-nine roles, which is why it was right for none of them.

   WHAT REPLACES IT. Every role declares BOTH sizes — `--p-<role>` for English,
   `--p-<role>-th` for Thai — as real pt sizes on `.sheet`, and every Thai rule
   reads its OWN role's Thai size. The compensation is PROPORTIONAL and modest,
   1.07x-1.12x: CS PraJad sets Thai a little smaller than Latin at one nominal
   size (the Thai loop height sits lower in the em box than a Latin x-height),
   and the compensation closes exactly that gap and nothing more. English rose
   instead — body 11pt to 12pt, lead 13 to 14, rows and Q&A 10.5 to 11.5,
   headings 12.5 to 13.5, mono keys 9 to 9.5. Hierarchy, line-height, spacing
   and emphasis stay EQUIVALENT across the languages: the same role is the same
   role in either, and only its size differs.

   Real role-level sizes and line-heights. Nothing here is a zoom, a transform or
   a scale factor on a box. The sizes are ABSOLUTE (pt), so a `.l-th` nested
   inside another `.l-th` cannot compound.

   Why a pair per role and not one global ratio: the pairs are `.l-en` / `.l-th`
   spans INSIDE one role element (shared/idea-app.jsx, B), so the two languages
   share the element's own size and Thai has to be sized on its own span. Losing
   a pair, or drifting outside the declared band, is what the typography leg of
   layout-audit.html measures on the RENDERED computed sizes: every role's
   Thai/English ratio inside 1.04-1.16, no English role below 8.5pt, and no
   English READING role below 11pt.

   The Para block is the one place where the SPAN is not the language: it draws
   the reviewer's language as `.lead` and the other language as `.sheet__alt`
   inside a `.l-en` / `.l-th` DIV, so the language of the text is the div's, and
   the alt line of a Thai-leading block is ENGLISH and stays at the English size.
   ====================================================================== */
.sheet {
  /* the reading roles — English first, Thai beside it at its own optical size */
  --p-body: 12pt; --p-body-th: 13pt;
  --p-lead: 14pt; --p-lead-th: 15pt;
  --p-alt: 11pt; --p-alt-th: 12pt;
  --p-h3: 13.5pt; --p-h3-th: 14.5pt;
  --p-row: 11.5pt; --p-row-th: 12.5pt;
  --p-qaq: 11.5pt; --p-qaq-th: 12.5pt;
  --p-qab: 11.5pt; --p-qab-th: 12.5pt;
  --p-qag: 11pt; --p-qag-th: 12pt;
  --p-ann: 11pt; --p-ann-th: 12pt;
  /* the supporting roles of a drawing sheet — compact, still above the floor */
  --p-figann: 10pt; --p-figann-th: 11pt;
  --p-figannat: 8.5pt; --p-figannat-th: 9.5pt;
  --p-figcap: 10pt; --p-figcap-th: 11pt;
  --p-lgd: 10pt; --p-lgd-th: 11pt;
  --p-figlgd: 9.5pt; --p-figlgd-th: 10.5pt;
  --p-toc: 10pt; --p-toc-th: 11pt;
  --p-tocb: 11pt; --p-tocb-th: 12pt;
  /* the mono and label roles */
  --p-k: 9.5pt; --p-k-th: 10.5pt;
  --p-rowk: 9.5pt; --p-rowk-th: 10.5pt;
  --p-qacls: 9.5pt; --p-qacls-th: 10.5pt;
  --p-qagh: 9.5pt; --p-qagh-th: 10.5pt;
  --p-pill: 9.5pt; --p-pill-th: 10.5pt;
  --p-sh: 10pt; --p-sh-th: 11pt;
  --p-annn: 9pt; --p-annn-th: 10pt;
  --p-annat: 9pt; --p-annat-th: 10pt;
  --p-cont: 9pt; --p-cont-th: 10pt;
  /* the running header and footer */
  --p-hdt: 12.5pt; --p-hdt-th: 13.5pt;
  --p-hdst: 9pt; --p-hdst-th: 10pt;
  --p-ft: 9pt; --p-ft-th: 10pt;
  /* roles that hold NO Thai and therefore carry no pair: a canonical identifier
     and a section number are never translated (ideas/CLAUDE.md Section 8), and
     the figure annotation badge takes its Thai from --p-annn. */
  --p-hdid: 11pt; --p-h3n: 10.5pt; --p-figannn: 8.5pt;
}
/* Thai line height stays relaxed so tone marks never collide with the line
   above — a real line-height per role, not a scaled box. */
.sheet .l-th { line-height: 1.55; }

.sheet h3 { font-family: var(--font-display); font-size: var(--p-h3); font-weight: var(--fw-semibold); color: var(--cane-800); margin: 0 0 2mm; padding-bottom: 1mm; border-bottom: 1px solid var(--neutral-200); }
.sheet h3 .l-th { font-size: var(--p-h3-th); }
.sheet h3 .n { font-family: var(--font-mono); font-size: var(--p-h3n); color: var(--gold-600); margin-right: 6px; }
.sheet p, .sheet li { font-size: var(--p-body); line-height: 1.5; color: var(--neutral-800); text-wrap: pretty; }
.sheet p .l-th, .sheet li .l-th { font-size: var(--p-body-th); }
.sheet .lead { font-size: var(--p-lead); line-height: 1.45; color: var(--neutral-900); margin: 0; }
.sheet .l-th > .lead { font-size: var(--p-lead-th); line-height: 1.55; }
/* the parallel language on paper: the reviewer's language leads, the other
   follows in a smaller tone, so a printed sheet is bilingual in BOTH modes and
   a Thai reader never receives an English sheet. The ALT line is the OTHER
   language, so its size follows the language it holds and not the reader's. */
.sheet .sheet__alt { font-size: var(--p-alt); line-height: 1.4; color: var(--neutral-500); margin: 1.5mm 0 0; }
.sheet .l-en > .sheet__alt { font-size: var(--p-alt-th); line-height: 1.55; }
.sheet ul, .sheet ol { margin: 0; padding-left: 5mm; }
.sheet ul li, .sheet ol li { margin-bottom: 1.6mm; }
.sheet .k { font-family: var(--font-mono); font-size: var(--p-k); text-transform: uppercase; letter-spacing: .06em; color: var(--neutral-500); }
.sheet__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
/* A READING BLOCK USES THE FULL PRINTABLE CONTENT WIDTH (client direction,
   30 Aug 2026). The two-column grid is for a sheet that really carries two
   blocks; a sheet whose plan selects ONE of them was still laying that block
   into one 333px track of a 688px box — half the paper unused across, and the
   list then ran long down the page for no reason. A single child takes the
   whole content box between the established margins: same margins, same
   hierarchy, same bullets, text reflowed — not stretched. */
.sheet__cols:has(> *:only-child) { grid-template-columns: 1fr; }
.sheet__fig, .sheet__bd > div, .sheet .qa { max-width: none; }
.sheet__note { border: 1px solid var(--neutral-300); border-left: 2.5px solid var(--gold-500); padding: 3mm 4mm; background: var(--neutral-50); }
/* A figure sheet gives its margins to the drawing: same paper, tighter inner
   frame, so a wide diagram is drawn as large as the sheet allows. */
.sheet:has(.sheet__fig) { padding: 9mm 10mm 10mm; }
.sheet:has(.sheet__fig) .sheet__hd { margin-bottom: 4mm; padding-bottom: 4px; }
.sheet:has(.sheet__fig) .sheet__ft { margin-top: 3mm; }
.sheet__fig { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2mm; }
/* THE SHEET CANVAS CONTRACT (client direction, 30 Aug 2026): a drawing on a
   printed sheet is fitted to the sheet's figure area by ONE MEASURED
   PROPORTIONAL SCALE, computed per figure by the shared sheet renderer
   (shared/idea-app.jsx, fitFigures):
     scale = min(availW / vbW, availH / vbH); w = vbW * scale; h = vbH * scale
   so the SVG viewport always carries the AUTHORED ratio. When width is the
   limiting dimension the drawing spends the whole inner width; when height is,
   BOTH dimensions shrink by the same scale and the width is legitimately less
   than the box. Nothing is squeezed, cropped or stretched.
   The rule below is the NO-SCRIPT fallback only — the renderer overwrites
   width/height inline. Never restore `max-height: 100%` here: forcing the width
   and then clamping the height is exactly what produced a viewport at the wrong
   ratio, with preserveAspectRatio centring the drawing inside it (the side
   bands).
   NO CANVAS BAND (client direction, 31 Aug 2026). The box used to CENTRE the
   drawing in the whole spare figure area (`place-items: center`), so a
   width-limited canvas — one whose proportional height is less than the area —
   sat in a full-height box with a dead band above AND below it: IDEA-011 sheet
   16 was the regression case. The drawing is TOP-ALIGNED under its heading and
   the renderer sizes the box to the canvas's own measured height, so the spare
   height goes to the legend, the caption and the annotations instead of to two
   white bands. Horizontal centring stays — a height-limited drawing is narrower
   than the box by the same proportional scale, and that band is symmetric and
   real. */
.sheet__fig .figbox { flex: 1 1 auto; min-height: 0; display: grid; align-items: start; justify-items: center; }
.sheet__fig svg { width: 100%; height: auto; display: block; }
/* A figure sheet is for the FIGURE: its legend, caption and annotations are
   compacted so the drawing keeps the sheet, instead of being squeezed into
   whatever height the text leaves over (which drew a 1100-unit diagram at 40%
   with a white strip beside it). */
.sheet .sheet__fig .canvas__legend { padding: 1mm 2mm; gap: 3px 9px; }
.sheet .sheet__fig .lgd { font-size: var(--p-figlgd); }
.sheet .sheet__fig .lgd .l-th { font-size: var(--p-figlgd-th); }
.sheet .sheet__fig .lgd__sw { width: 10px; height: 10px; font-size: 6px; }
.sheet .sheet__fig .anns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2mm; }
.sheet--l .sheet__fig .anns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sheet .sheet__fig .ann { padding: 1.5mm 2mm; grid-template-columns: 4.5mm 1fr; gap: 1.5mm; }
.sheet .sheet__fig .ann__n { width: 4mm; height: 4mm; font-size: var(--p-figannn); }
.sheet .sheet__fig .ann__b { font-size: var(--p-figann); line-height: 1.35; }
.sheet .sheet__fig .ann__b .l-th { font-size: var(--p-figann-th); }
.sheet .sheet__fig .ann__at { font-size: var(--p-figannat); margin-top: 1px; }
.sheet .sheet__fig .ann__at .l-th { font-size: var(--p-figannat-th); }
.sheet .sheet__figlgd { background: transparent; border: 1px solid var(--neutral-200); padding: 1mm 2mm; }
.sheet .sheet__figcap { font-size: var(--p-figcap); line-height: 1.35; margin: 0; }
.sheet .sheet__figcap .l-th { font-size: var(--p-figcap-th); }
.sheet .lgd { font-size: var(--p-lgd); color: var(--neutral-600); }
.sheet .lgd .l-th { font-size: var(--p-lgd-th); }
.sheet .anns { grid-template-columns: 1fr 1fr; gap: 3mm; }
/* A PACKED list is ONE COLUMN, because the packer measures an item's ADVANCE
   down the page: in a two-column grid the item beside another has an advance of
   zero, and a capacity computed from zeroes is not a capacity. Density is worth
   less than a measurement that is true. */
.sheet .anns--flow { grid-template-columns: 1fr; gap: 2mm; }
/* the caption of a notes-only figure block: the same box, no number column — it
   introduces the grid instead of taking a sheet of its own. */
.sheet .ann--cap { grid-template-columns: 1fr; border-left: 2px solid var(--gold-500); }
.sheet .ann { padding: 2mm 3mm; border-color: var(--neutral-300); }
.sheet .ann__n { width: 5mm; height: 5mm; font-size: var(--p-annn); }
.sheet .ann__b { font-size: var(--p-ann); line-height: 1.4; }
.sheet .ann__b .l-th { font-size: var(--p-ann-th); }
.sheet .ann__at { font-size: var(--p-annat); }
.sheet .ann__at .l-th { font-size: var(--p-annat-th); }
.sheet .row { padding: 2mm 3mm; border-color: var(--neutral-300); }
.sheet .row__b { font-size: var(--p-row); line-height: 1.45; }
.sheet .row__b .l-th { font-size: var(--p-row-th); }
.sheet .row__k { font-size: var(--p-rowk); }
.sheet .rows { gap: 2mm; }
/* the working-answer sheet: same block, paper geometry */
.sheet__sh { margin: 0 0 2mm; font-family: var(--font-mono); font-size: var(--p-sh); letter-spacing: .06em; text-transform: uppercase; color: var(--neutral-500); }
.sheet__sh .l-th { font-size: var(--p-sh-th); }
.sheet .qa { margin: 0 0 3mm; padding: 2mm 3mm; gap: 1.2mm; background: transparent; border-left: 2px solid var(--neutral-400); border-radius: 0; }
.sheet .qa__q { font-size: var(--p-qaq); }
.sheet .qa__q .l-th { font-size: var(--p-qaq-th); }
.sheet .qa__cls { font-size: var(--p-qacls); }
.sheet .qa__cls .l-th { font-size: var(--p-qacls-th); }
.sheet .qa__b { font-size: var(--p-qab); line-height: 1.45; }
.sheet .qa__b .l-th { font-size: var(--p-qab-th); }
.sheet .qa__gh { font-size: var(--p-qagh); margin: 0.6mm 0 0; }
.sheet .qa__gh .l-th { font-size: var(--p-qagh-th); }
.sheet .qa__g { font-size: var(--p-qag); gap: 0.7mm; padding-left: 4mm; }
.sheet .qa__g li { margin-bottom: 0; font-size: var(--p-qag); }
.sheet .qa__g li .l-th { font-size: var(--p-qag-th); }
.sheet .pill { font-size: var(--p-pill); }
.sheet .pill .l-th { font-size: var(--p-pill-th); }
/* A MONO KEY IS ITS OWN ROLE, and its Thai is the Thai size of ITS role — not of
   whatever role encloses it. These pairs are declared LAST on purpose: a key
   lives inside a row, a list item or a question body, whose own Thai rule
   carries the same specificity, so order is what decides. Without them the Thai
   inside a 9.5pt key renders at the body's 13pt (a 1.37 ratio) or the row's
   12.5pt (1.09 of the wrong role), which the typography leg of layout-audit.html
   reads as a broken role — correctly. */
.sheet .k .l-th, .sheet .qa__k .l-th { font-size: var(--p-k-th); }
.sheet .row__k .l-th { font-size: var(--p-rowk-th); }
.sheet .sheet__st .l-th { font-size: var(--p-hdst-th); }
.sheet .ann__n .l-th { font-size: var(--p-annn-th); }

/* the off-screen measuring host of the answer flow: a real sheet, laid out but
   never shown or printed, so the printable body height, the section chrome and
   every row are MEASURED at the final content width. */
.sheets__measure { position: absolute; left: -99999px; top: 0; width: 1200px; display: block; pointer-events: none; }
/* the host measures; it never clips. The measuring sheet keeps its FIXED A4
   height (that is where the printable body height comes from) but lets the row
   stack overflow visibly, so nothing is measured against a clipped box — and a
   layout validator does not read the host as cut-off page content. */
.sheets__measure .sheet, .sheets__measure .sheet__bd { overflow: visible; }
@media print { .sheets__measure { display: none !important; } }
/* a question continued from an earlier sheet reopens under its own identifier */
.qa__q--cont { color: var(--neutral-600); }
.qa__cont { font-family: var(--font-mono); font-size: var(--p-cont); text-transform: uppercase; letter-spacing: .05em; color: var(--neutral-500); }
.sheet .qa__cont .l-th { font-size: var(--p-cont-th); }

/* overflow tell-tale — screen print-preview only, never printed */
.sheet.is-over::after { content: "SHEET OVERFLOW"; position: absolute; right: 0; bottom: 0; background: var(--danger); color: #fff; font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; }
/* AN ATOM TALLER THAN A WHOLE SHEET IS REPORTED, NEVER SHRUNK AND NEVER CUT.
   A packed sheet whose single indivisible block (one provenance passage at the
   applied Thai size, a very long risk row) outgrows the paper box GROWS to show
   it whole and says so — the same rule shared/idea-sheets.js keeps for a
   document page, and for the same reason: hiding text would be the worse lie.
   Print is allowed to break inside such a sheet, because the alternative is a
   clipped paragraph. */
.sheet[data-pack-oversize] { height: auto; min-height: 297mm; }
.sheet--l[data-pack-oversize] { min-height: 210mm; }
/* the same rule for a sheet that SETTLED a few pixels taller than the pack's
   last measurement: it grows and says so rather than clipping a wrapped line. */
.sheet[data-pack-settled-over] { height: auto; min-height: 297mm; }
.sheet--l[data-pack-settled-over] { min-height: 210mm; }

/* ---------- the print run ---------------------------------------------- */
@media print {
  @page { size: A4 portrait; margin: 0; }
  @page land { size: A4 landscape; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-bar, .inav, .ihero, main.ipage, footer.ifoot, .sc-theme-bubble, .sc-lang-toggle, .sheets__hint, .noprint { display: none !important; }
  .sheets, body.is-printview .sheets { display: block !important; background: none !important; padding: 0 !important; }
  /* THE ON-SCREEN FIT IS NOT PRINT GEOMETRY. idea-app.jsx writes an inline
     `zoom` on every sheet so the 210mm box fits the reviewer's window; nothing
     removed it for the print run, so a document printed after the sheet view had
     been opened put a ~62%-scale sheet on a full A4 page. Paper is the sheet's
     own size, always. */
  .sheet { margin: 0 !important; box-shadow: none !important; zoom: 1 !important; break-after: page; break-inside: avoid; }
  .sheet[data-pack-oversize] { break-inside: auto; }
  .sheet[data-pack-settled-over] { break-inside: auto; }
  .sheet:last-child { break-after: auto; }
  .sheet--l { page: land; }
  .sheet.is-over::after { display: none; }
  /* nothing splits mid-block */
  .ann, .row, .branch, .ds, .sheet__note, .canvas__legend, figure, table { break-inside: avoid; }
}
