/* ═══════════════════════════════════════════════════════════════
   PRINT — the instrument becomes paper.

   On screen these assets are a dark instrument. On paper that is
   both unreadable and a cartridge-emptying act of vandalism, so
   everything inverts: bone stock, ink type, and the accent colours
   darkened to their print-safe variants. The bars and bands survive
   the switch because they carry the meaning.
   ═══════════════════════════════════════════════════════════════ */
@media print {
  /* 20mm. Fourteen was doing the document no favours: with no measure
     constraint the prose ran the full 182mm — past a hundred characters a
     line, where the eye loses its place returning to the left. */
  @page { size:A4; margin:20mm 20mm 18mm; }

  :root {
    --ink:#FFFFFF; --ink-deep:#FFFFFF; --ink-raised:#FAF8F5;
    --ink-line:rgba(23,32,45,0.22); --ink-hair:rgba(23,32,45,0.12);
    /* Measured: the old 0.54 put every label, axis number and footer at
       3.5:1 — under the floor, and on the SMALLEST type on the page.
       0.72 reads 6.5:1 and still sits back from the body text. */
    --on-ink:#17202D; --on-ink-dim:rgba(23,32,45,0.80); --on-ink-mute:rgba(23,32,45,0.72);
    --verity:#07705A; --ember:#D1490A; --amber:#9A5B00;
    color-scheme:light;
  }
  body {
    background:#FFFFFF; color:#17202D; font-size:10.2pt; line-height:1.62;
    print-color-adjust:exact; -webkit-print-color-adjust:exact;
  }

  /* ── MEASURE ──
     Prose gets a readable column; the data keeps the full width. The
     asymmetry is deliberate — the bars breathing wider than the text is
     what makes the page look composed rather than simply filled. */
  p, .lede, .hero-sub, .marker-what, .verdict, .agent-what,
  .lever-why, .note p, .ask, .row-note, .foot p { max-width:124mm; }
  /* Data runs wider than prose, but not to the margin. Left at full width
     the right-hand labels — units, axis ends — sat alone against the page
     edge, visually detached from the text they annotate. 152mm keeps the
     hierarchy (bars breathe wider than type) without marooning anything. */
  .scale, .gauge, .pair, .bar, .vs, .stage, table.ev,
  .legend, .legend2, .marker-top, .agent-top, .lever-top,
  .checklist, .screen-list, .rows, .gap-note { max-width:152mm; }
  body::before { display:none; }          /* the graph-paper texture */
  .wrap { max-width:none; padding:0; }

  /* Interactive furniture has no job on paper. */
  #replay, .search-row, .chips, #q, .seg3, .btn, .count { display:none !important; }

  /* The masthead earns its space: the title is the one place on a printed
     page where being generous reads as confidence rather than waste. */
  .hero { padding:0 0 7mm; border-bottom:2.5pt solid #17202D; margin-bottom:8mm; }
  .hero h1 { font-size:30pt; line-height:1.04; margin-top:6mm; letter-spacing:-0.022em; }
  .hero-sub { font-size:11pt; line-height:1.55; margin-top:5mm; }
  .hero-note { display:none; }
  .eyebrow { color:rgba(23,32,45,0.72); }
  .eyebrow::after { background:rgba(23,32,45,0.20); }

  h2.sect {
    font-size:16pt; margin:9mm 0 2.5mm; break-after:avoid;
    border-top:1pt solid #17202D; padding-top:4mm;
  }
  h3.sub { font-size:11pt; margin:6mm 0 1.5mm; break-after:avoid; }
  p, .lede { max-width:none; }
  .lede { font-size:10pt; }

  .card, .note, .agent, .lever, .marker, .vs, .stage {
    break-inside:avoid; box-shadow:none;
  }
  .card, .agent, .lever {
    background:#FAF8F5; border:0.75pt solid rgba(23,32,45,0.22);
    padding:5mm 5.5mm; margin:4mm 0;
  }
  .note {
    background:rgba(7,112,90,0.07); border-left:2.5pt solid #07705A;
    padding:4.5mm 5.5mm; margin:4.5mm 0;
  }
  .note.caution { background:rgba(209,73,10,0.07); border-left-color:#D1490A; }
  .note p { font-size:9.8pt; color:rgba(23,32,45,0.80); }

  /* Breathing room inside the repeating blocks. These documents are mostly
     made of them, so a millimetre here is worth several anywhere else. */
  .marker { padding:5mm 0; }
  .agent-what { margin-top:2mm; }
  .verdict { margin-top:3.5mm; }
  .scale { margin:4mm 0 1.5mm; height:13mm; }
  .pair { margin-top:4mm; }
  .flags { margin-top:3.5mm; }
  .checklist li, .screen-list li { padding:3.2mm 0; }
  table.ev td { padding:3mm 5mm 3mm 0; }
  table.ev th { padding:0 5mm 2.5mm 0; }

  /* the range bars and comparison bars must survive */
  .gauge-track, .scale-track { background:rgba(23,32,45,0.22) !important; }
  .scale-std { background:rgba(23,32,45,0.10) !important; border-color:rgba(23,32,45,0.5) !important; }
  .scale-opt { background:rgba(7,112,90,0.34) !important; border-color:#07705A !important; }
  .pair-bar { background:rgba(23,32,45,0.08) !important; }
  .pair-row.sold i { background:rgba(23,32,45,0.30) !important; }
  .pair-row.supp i { background:#07705A !important; }
  .bar { background:#FAF8F5 !important; border:0.75pt solid rgba(23,32,45,0.3) !important; }
  .bar-fat  { background:rgba(7,112,90,0.38) !important; color:#17202D !important; }
  .bar-lean { background:rgba(209,73,10,0.42) !important; color:#17202D !important; }
  .bar-split { background:#17202D !important; }

  .stage { background:#FAF8F5; border:0.75pt solid rgba(23,32,45,0.22); padding:5mm; }
  .vessel { stroke:rgba(23,32,45,0.22) !important; }
  .flow { stroke-dashoffset:0 !important; stroke:#D1490A !important; }
  .flow.treated { stroke:#07705A !important; }
  .bead { display:none; }
  .callout { opacity:1 !important; }
  .callout-text { fill:rgba(23,32,45,0.82) !important; }
  .callout.c2 .callout-key { fill:#D1490A !important; }
  .callout.c1 .callout-key, .callout.c3 .callout-key { fill:#07705A !important; }
  .callout-line { stroke:rgba(23,32,45,0.3) !important; }
  .comp { fill:#FFF !important; stroke:rgba(23,32,45,0.28) !important; }
  .comp-label { fill:rgba(23,32,45,0.74) !important; }
  .arm-label { fill:rgba(23,32,45,0.84) !important; }
  .stage-caption { color:rgba(23,32,45,0.72); }

  .vs > div { background:#FAF8F5; }
  .vs .ours .amount { color:#07705A; }
  .vol i { background:#07705A !important; }
  .vol.small i { background:rgba(23,32,45,0.35) !important; }

  /* The legend swatches are tints built for a dark page; on bone the "sold on"
     one vanished and the legend read as a floating label with no key. */
  .legend2 .a { background:rgba(23,32,45,0.30) !important; }
  .legend2 .b { background:#07705A !important; }
  .legend .std { background:rgba(23,32,45,0.10) !important;
                 border-left-color:rgba(23,32,45,0.5) !important;
                 border-right-color:rgba(23,32,45,0.5) !important; }
  .legend .opt { background:rgba(7,112,90,0.34) !important;
                 border-left-color:#07705A !important; border-right-color:#07705A !important; }
  .legend, .legend2 { color:rgba(23,32,45,0.72); }

  .tag, .flag { print-color-adjust:exact; }
  .flag.screen { color:#B84009 !important; background:rgba(209,73,10,0.13) !important; }
  .flag.ok { color:#07705A !important; background:rgba(7,112,90,0.14) !important; }
  .flag.note { color:rgba(23,32,45,0.78) !important; background:rgba(23,32,45,0.07) !important; }

  .band-fig { color:#D1490A !important; font-size:26pt; }
  .band-fig.good { color:#07705A !important; }
  .lever-val { color:#07705A !important; }
  .marker-name, .agent-name { color:#17202D; }
  .checklist li::before, .screen-list .mk { color:#07705A !important; }
  table.ev th, table.ev td { border-color:rgba(23,32,45,0.18) !important; }
  table.ev td { color:rgba(23,32,45,0.80); }
  .ask b { color:#07705A !important; }
  .gap-note.wide { color:#B84009 !important; }

  .foot {
    margin-top:6mm; padding:3mm 0 0; border-top:0.75pt solid rgba(23,32,45,0.2);
    font-family:var(--mono); font-size:7.2pt; color:rgba(23,32,45,0.72);
    break-inside:avoid;
  }
  .foot a { color:rgba(23,32,45,0.82); }
  a { color:#07705A !important; }
}
