/* Proof ledger: tokens and base. Honey only. Tokens from www globals.css :root plus the additions in looks.py. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #08080A;
  --band: #0E0E11;
  --raised: #131316;
  --glass: rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.065);
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --line-hover: rgba(255,255,255,0.14);
  --text-strong: #F5F5F2;
  --text: #D6D6D2;
  --text-muted: #9A9A96;
  --text-faint: #82827F; /* 4.5:1 or more as text on the page, bands, raised cards and glass rows; never inside a table */
  --ok: #34D399;
  --ok-soft: rgba(52,211,153,0.12);
  --ok-edge: rgba(52,211,153,0.45);
  --warn: #FF8A3D; /* always with the triangle, never the accent */
  --warn-soft: rgba(255,138,61,0.12);
  --warn-edge: rgba(255,138,61,0.5);
  --fail: #FB7185;
  --fail-soft: rgba(251,113,133,0.12);
  --fail-edge: rgba(251,113,133,0.5);
  --note: #FFFFFF;
  --note-ink: #08080A;
  --shadow: 0 24px 80px -24px rgba(0,0,0,.85);
  --shadow-soft: 0 8px 32px -12px rgba(0,0,0,.6);
  --accent: #F5B301;
  --accent-hover: #FFC53D;
  --on-accent: #1A1200;
  --accent-text: #F7C244;
  --accent-soft: rgba(245,179,1,0.14);
  --accent-edge: rgba(245,179,1,0.5);
  --glow: rgba(245,179,1,0.32);
  --grad-a: #FFD36A;
  --grad-b: #F5B301;
  --grad-c: #FF8A3D;
  --cell: 245,179,1;
  --code-bg: #0B0B0E;
  --total-bg: #121215; /* the table total row's sticky first cell: opaque, a step above --band */
  --sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
/* the sticky header is 60 px: every scroll into view (focus, a fragment, scrollIntoView) stops 72 px below the top, so a
   focused element is never hidden under it, Shift+Tab included (WCAG 2.4.11) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:where(body) p { margin: 0; }
:where(body) ul, :where(body) ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, code { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; }
.tnum { font-variant-numeric: tabular-nums; }

/* type */
.h1 { font-size: 72px; line-height: 1; letter-spacing: -.035em; font-weight: 600; color: var(--text-strong); margin: 0; }
.h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: var(--text-strong); margin: 0; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; color: var(--text-strong); margin: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); }
.kicker { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.label { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.5; }
.grad { background: linear-gradient(92deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* surfaces + controls (colour, border and opacity feedback only) */
.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: border-color .25s, background .25s; }
.card:hover { border-color: var(--line-hover); background: var(--glass-hover); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.pill.accent { border-color: var(--accent-edge); background: var(--accent-soft); color: var(--accent-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 500; font-size: 14.5px; border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn.accent { background: var(--accent); color: var(--on-accent); }
.btn.accent:hover { background: var(--accent-hover); }
.btn.glass { background: var(--glass); border-color: var(--line-strong); color: var(--text-strong); }
.btn.glass:hover { background: var(--glass-hover); border-color: var(--line-hover); }
.btn.ghost { color: var(--text-muted); }
.btn.ghost:hover { color: var(--text-strong); }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; font-size: 11.5px; letter-spacing: .06em; color: var(--text-muted); white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--line-hover); color: var(--text-strong); }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--glass); font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; font-size: 11px; color: var(--text-muted); line-height: 1; }
.mk-brand { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); flex: 0 0 auto; }
.mk-brand svg { width: 13px; height: 13px; }
.mk-pair { display: inline-flex; align-items: center; gap: 4px; }
.mk-pair .x { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, monospace; font-size: 11px; color: var(--text-faint); }
.tri { width: 13px; height: 13px; flex: 0 0 13px; }
.tri path { fill: none; stroke: var(--warn); stroke-width: 1.6; stroke-linejoin: round; }
.tri .bang { stroke-linecap: round; }

/* ---------- chrome: skip link, header, draft bar, footer (colour-only feedback, no motion) ---------- */
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 500; }
.skip:focus { top: 12px; }
.swarm { width: 24px; height: 24px; display: block; }
.swarm .cell { fill: none; stroke: var(--line-strong); stroke-width: 5.5; stroke-linejoin: round; }
.swarm .cell.lit { fill: var(--accent); stroke: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-strong); font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.hdr { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; background: rgba(8,8,10,.78); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1392px; margin: 0 auto; padding: 0 24px; }
.crumb-sep { color: var(--line-strong); font-size: 20px; font-weight: 300; }
.crumb { font-size: 14px; color: var(--text-strong); font-weight: 500; white-space: nowrap; }
.links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.links a { padding: 7px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-muted); transition: color .2s, background .2s; white-space: nowrap; }
.links a:hover, .links a:focus-visible { color: var(--text-strong); background: var(--glass-hover); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.hdr .btn { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); color: var(--text-strong); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: var(--line-hover); background: var(--glass-hover); }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.menu summary .i-close, .menu[open] summary .i-open { display: none; }
.menu[open] summary .i-close { display: block; }
.menu nav .label { padding: 4px 10px 8px; }
.menu nav a { padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--text-muted); transition: color .2s, background .2s; }
.menu nav a:hover, .menu nav a:focus-visible { color: var(--text-strong); background: var(--glass-hover); }
.menu nav hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
@media (max-width: 1099px) { .links, .nav-cta .ghost { display: none; } .menu { display: block; } .nav-cta { margin-left: auto; } }
@media (max-width: 720px) { .hdr-in { padding: 0 16px; gap: 10px; } .crumb-sep, .crumb { display: none; } }

.pf-draft { border-bottom: 1px dashed var(--warn-edge); background: linear-gradient(90deg, var(--warn-soft), transparent 70%); }
.pf-draft .in { max-width: 1392px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 10px; align-items: center; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--text); }
@media (max-width: 720px) { .pf-draft .in { padding: 10px 16px; font-size: 11.5px; align-items: flex-start; } .pf-draft .tri { margin-top: 2px; } }

/* ---------- masthead, tier strip, contents rail ---------- */
.pf-layout { max-width: 1392px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 232px minmax(0, 1024px) 1fr; gap: 0; }
.pf-main { grid-column: 2; min-width: 0; }
.pf-rail { grid-column: 1; position: sticky; top: 92px; align-self: start; padding: 4px 36px 0 0; }
.pf-rail .label { display: block; margin-bottom: 14px; font-size: 11px; }
.pf-rail ol { list-style: none; position: relative; border-left: 1px solid var(--line); }
.pf-rail li a { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 0 6px 14px; font-size: 13px; line-height: 1.35; color: var(--text-muted); transition: color .2s; }
.pf-rail li a:hover { color: var(--text-strong); }
.pf-rail li a::before { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .2s cubic-bezier(.2,.8,.2,1); }
.pf-rail li a.on { color: var(--text-strong); } .pf-rail li a.on::before { transform: scaleY(1); }
.pf-rail .mk-pair { margin-left: auto; opacity: .9; } .pf-rail .mk-brand { width: 18px; height: 18px; border-radius: 5px; } .pf-rail .mk-brand svg { width: 10px; height: 10px; }
.pf-rail-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pf-rail-foot a { font-size: 12.5px; color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center; } .pf-rail-foot a:hover { color: var(--text-strong); }

.pf-mast { position: relative; padding: 76px 0 8px; }
.gridbg { position: absolute; inset: -40px -120px 0; background-image: linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask: radial-gradient(60% 70% at 40% 20%, #000 30%, transparent 100%); mask: radial-gradient(60% 70% at 40% 20%, #000 30%, transparent 100%); pointer-events: none; }
.pf-mast::before { content: ''; position: absolute; left: 10%; top: -160px; width: 900px; height: 520px; background: radial-gradient(closest-side, var(--glow), transparent 72%); opacity: .35; filter: blur(30px); pointer-events: none; }
.pf-mast > * { position: relative; }
.pf-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--text-muted); max-width: 980px; }
.pf-eyebrow .sep { color: var(--text-faint); }
.pf-eyebrow .env { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: var(--text); }
.pf-eyebrow .env i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pf-eyebrow .env.open i { background: transparent; border: 1.5px solid var(--accent); }
.pf-mast .h1 { margin: 30px 0 22px; max-width: 980px; }
.pf-mast .lead { max-width: 760px; }
.pf-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.pf-tier { padding: 22px 22px 24px; border-radius: 16px; border: 1px dashed var(--line-strong); background: transparent; display: flex; flex-direction: column; gap: 10px; }
.pf-tier.live { border-style: solid; border-color: var(--accent-edge); background: var(--glass); box-shadow: 0 0 0 1px var(--accent-soft) inset, 0 30px 80px -50px var(--glow); }
.pf-tier .t-name { font-size: 18px; font-weight: 600; color: var(--text-strong); letter-spacing: -.01em; }
.pf-tier p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.pf-tier .chip { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 4px 9px; border-radius: 6px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--text-muted); white-space: nowrap; }
.pf-tier .chip.live { border-color: var(--ok-edge); color: var(--ok); background: var(--ok-soft); }
.pf-tier .chip.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pf-mast .h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.pf-mast .h1 .line > span { display: inline-block; }
.pf-rail .ext-mark, .pf-rail .arrow { font-size: 11px; color: var(--text-faint); }
.pf-rail-foot a:hover .arrow { color: var(--text-strong); }
.pf-layout { overflow-x: clip; }
.pf-sec { scroll-margin-top: 8px; }   /* adds to html's 72 px: a deep-linked section's label lands where it always has */
.pf-sec { padding-top: 112px; }
.pf-sec-label { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.pf-sec-label .mk-pair { margin-top: -2px; flex: 0 0 auto; }
.pf-sec-label .kicker { line-height: 1.5; }
.pf-sec sup { font-size: 1em; line-height: 0; vertical-align: baseline; }
/* headline: raw and converged side by side, every run visible */
.pf-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--raised); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.pf-cell { padding: 30px 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pf-cell + .pf-cell { border-left: 1px solid var(--line); background: linear-gradient(180deg, var(--accent-soft), transparent 55%); }
.pf-cell .tag { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-big { font-size: 96px; line-height: .92; font-weight: 600; letter-spacing: -.05em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-cell + .pf-cell .pf-big { color: var(--accent-text); }
.pf-cap { font-size: 15px; line-height: 1.55; color: var(--text); max-width: 420px; }
.pf-arrow { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; color: var(--text-muted); font-size: 15px; z-index: 2; }
/* cells are 18 px tall on a 24 px row pitch, so every undersized link keeps the 24 px spacing of WCAG 2.5.8 (P9). The grid
   scrolls in its own box on the narrowest screens; 4 px of padding (taken back by the margins, so the cells do not move)
   keeps a focused edge cell's ring (2 px, 2 px out) inside that box instead of cut by it. */
.pf-runs { display: grid; grid-template-columns: 34px repeat(8, 1fr); gap: 6px 5px; padding: 4px; margin: 4px -4px -4px; max-width: 368px; overflow-x: auto; }
.pf-runs .rl { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--text-muted); align-self: center; }
.pf-runs .cell { height: 18px; min-width: 0; border-radius: 4px; background: rgba(214,214,210,.82); display: block; transition: background .35s, border-color .35s, opacity .2s; }
.pf-runs .cell.fail { background-color: transparent; border: 1.5px solid var(--fail); background-image: repeating-linear-gradient(135deg, var(--fail-soft) 0 3px, transparent 3px 6px); }
.pf-runs .cell.rec { background: var(--accent); }
.pf-runs .cell.fix { background: transparent; border: 1.5px solid var(--accent); }
.pf-runs a.cell:hover { opacity: .72; outline: 2px solid var(--text-muted); outline-offset: 1px; }
.pf-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-muted); }
.pf-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pf-legend b { width: 11px; height: 11px; border-radius: 3px; display: inline-block; background: rgba(214,214,210,.82); }
.pf-legend b.fail { background: transparent; border: 1.5px solid var(--fail); } .pf-legend b.rec { background: var(--accent); } .pf-legend b.fix { background: transparent; border: 1.5px solid var(--accent); }
/* bento of stat tiles */
.pf-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pf-tile { grid-column: span 3; position: relative; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, background .25s; min-width: 0; }
.pf-tile:hover { border-color: var(--line-hover); background: var(--glass-hover); }
.pf-tile .n { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.035em; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-tile .t { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.pf-tile .t a { color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.pf-tile .bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: auto; }
.pf-tile .bar i { display: block; height: 100%; background: var(--text-muted); border-radius: 4px; }
.pf-foot { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; max-width: 760px; margin: 18px 0; font-size: 14.5px; line-height: 1.68; color: var(--text-muted); }
.pf-tile.s4 { grid-column: span 4; } .pf-tile.s6 { grid-column: span 6; } .pf-tile.s12 { grid-column: span 12; }
.pf-tile.hero .n { font-size: 64px; }
.pf-tile .n.sm { font-size: 28px; line-height: 1.2; white-space: normal; }
.pf-foot sup { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 19px; line-height: 1; padding-bottom: 5px; color: var(--text-strong); margin-top: 2px; }
.pf-foot.para { grid-template-columns: 1fr; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--text); }
.pf-feet { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); max-width: 760px; }
.pf-feet .pf-foot { margin: 20px 0 0; }
.pf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.pf-cards .card { padding: 24px 24px 26px; }
.pf-cards .card .h3 { font-size: 17.5px; margin-bottom: 10px; line-height: 1.35; padding-right: 28px; }
.pf-cardtext { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.pf-cardtext strong { color: var(--text-strong); font-weight: 600; }
.pf-cardtext em { color: var(--text-strong); font-style: italic; }
.pf-cards .card .cn { position: absolute; right: 18px; top: 18px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; color: var(--text-muted); }
@media (max-width: 1099px) { .pf-layout { display: block; max-width: 1024px; } .pf-rail { display: none; } }
@media (max-width: 720px) {
  .pf-layout { padding: 0 16px; }
  .pf-mast { padding-top: 44px; }
  .pf-mast .h1 { font-size: 40px; margin: 22px 0 16px; }
  .pf-mast .lead { font-size: 16.5px; }
  .pf-tiers { grid-template-columns: 1fr; margin-top: 32px; }
  .pf-eyebrow { font-size: 11.5px; }
  .gridbg { inset: -20px -16px 0; }
  .pf-sec { padding-top: 72px; }
  .pf-pair { grid-template-columns: 1fr; }
  .pf-cell { padding: 24px 20px; }
  .pf-cell + .pf-cell { border-left: 0; border-top: 1px solid var(--line); }
  .pf-big { font-size: 68px; }
  .pf-arrow { display: none; }
  .pf-runs { grid-template-columns: 34px repeat(8, minmax(24px, 1fr)); }   /* at least 24 px a side; below 320 the grid scrolls in its box */
  .pf-runs .cell { height: 24px; }
  .pf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pf-tile { grid-column: span 1; padding: 18px; }
  .pf-tile.s3, .pf-tile.s4, .pf-tile.s6, .pf-tile.s12 { grid-column: span 2; }
  .pf-tile.half { grid-column: span 1; }
  .pf-tile .n { font-size: 30px; }
  .pf-tile.hero .n { font-size: 48px; }
  .pf-tile .n.sm { font-size: 24px; }
  .pf-cards { grid-template-columns: 1fr; }
}
/* the narrowest phones: a tighter label column and gap keep eight 24 px cells inside the box down to 320 */
@media (max-width: 359px) { .pf-runs { grid-template-columns: 22px repeat(8, minmax(24px, 1fr)); column-gap: 4px; } }

/* ---------- section text, glass tables, file chips, gate checks, callout ---------- */
.pf-h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.028em; font-weight: 600; color: var(--text-strong); margin: 0 0 20px; max-width: 900px; text-wrap: balance; }
.pf-h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.012em; font-weight: 600; color: var(--text-strong); margin: 56px 0 16px; max-width: 760px; }
.pf-p { font-size: 17px; line-height: 1.72; color: var(--text); max-width: 760px; margin-bottom: 18px; }
.pf-p strong, .pf-foot strong, .pf-callout strong { color: var(--text-strong); font-weight: 600; }
.pf-p em, .pf-foot em { color: var(--text-strong); font-style: italic; }
.pf-main code { font-size: .86em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--glass); color: var(--text-strong); white-space: nowrap; }
.pf-table:focus-visible { outline-offset: -2px; }
.pf-table { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); margin: 22px 0 8px; }
.pf-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.5; }
.pf-table th, .pf-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; position: relative; }
.pf-table thead th { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; background: var(--band); min-width: 64px; line-height: 1.5; }
.pf-table tbody th { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text-strong); white-space: nowrap; }
.pf-table thead th:first-child, .pf-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--band); }
.pf-table thead th:first-child { z-index: 2; }
.pf-table thead th:first-child::after, .pf-table tbody th::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.pf-table td { color: var(--text); }
.pf-table th.num { text-align: right; }
.pf-table td.num { text-align: right; font-family: 'Geist Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-strong); white-space: nowrap; }
.pf-table td.num.l { text-align: left; }
.pf-table td.num.wrap { white-space: normal; min-width: 150px; }
.pf-table tbody tr:last-child th, .pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table tr.total td, .pf-table tr.total th { border-top: 1px solid var(--line-strong); background: rgba(255,255,255,.025); color: var(--text-strong); font-weight: 500; }
.pf-table tr.total th { background: var(--total-bg); }
.pf-table .pips { display: inline-flex; gap: 2px; margin-left: 10px; vertical-align: 1px; }
.pf-table .pips i { width: 5px; height: 9px; border-radius: 1.5px; background: rgba(214,214,210,.75); display: inline-block; }
.pf-table .pips i.f { background: transparent; box-shadow: inset 0 0 0 1px var(--fail); }
.pf-table .rbar { display: block; height: 3px; border-radius: 3px; background: var(--line); margin-top: 7px; overflow: hidden; }
.pf-table .rbar i { display: block; height: 100%; background: var(--text-muted); }
.pf-table .bk { display: inline-block; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .06em; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--text-strong); margin-right: 2px; }
.pf-table .ok-w { color: var(--ok); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; }
.pf-table .fail-w { color: var(--fail); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; }
.pf-table .route { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--text); }
.pf-table tbody th wbr { display: none; }
.pf-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13.5px; color: var(--text-muted); max-width: 1000px; }
.pf-ev .lab { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.pf-ev .sep { color: var(--text-faint); }
a.ev { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--glass); color: var(--text-strong); font-size: 13px; transition: border-color .2s, background .2s; }
a.ev:hover { border-color: var(--accent-edge); background: var(--glass-hover); }
a.ev .ft { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .06em; padding: 2px 5px; border-radius: 4px; background: rgba(255,255,255,.06); color: var(--text-muted); }
a.ev .ar { font-size: 11px; color: var(--text-muted); margin-right: 3px; }
.pf-callout { margin-top: 28px; padding: 28px 30px; border-radius: 18px; border: 1px solid var(--accent-edge); background: var(--raised); box-shadow: 0 0 0 1px var(--accent-soft) inset, 0 40px 100px -60px var(--glow); max-width: 860px; }
.pf-callout .kicker { display: block; margin-bottom: 12px; }
.pf-callout p { font-size: 17px; line-height: 1.7; color: var(--text); }
.pf-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0 22px; }
.pf-check { padding: 20px 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); display: flex; flex-direction: column; gap: 10px; }
.pf-check .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--ok-edge); background: var(--ok-soft); color: var(--ok); }
.pf-check .ic svg { width: 15px; height: 15px; }
.pf-check.nongating { border-style: dashed; border-color: var(--line-strong); }
.pf-check.nongating .ic { border-color: var(--line-strong); background: transparent; color: var(--text-muted); }
.pf-check b { font-size: 17px; color: var(--text-strong); font-weight: 600; }
.pf-check p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.pf-check em { display: block; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-style: normal; font-size: 13px; color: var(--text-muted); }
.pf-rule { display: flex; gap: 12px; align-items: flex-start; max-width: 760px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--text); }
.pf-rule .x { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--fail); color: var(--fail); display: grid; place-items: center; font-size: 12px; line-height: 1; margin-top: 1px; }
@media (max-width: 1099px) { .pf-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .pf-h2 { font-size: 28px; }
  .pf-h3 { margin-top: 40px; font-size: 19px; }
  .pf-p { font-size: 16.5px; }
  .pf-checks { grid-template-columns: 1fr; }
  .pf-table { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .pf-table table { min-width: 940px; font-size: 13px; }
  .pf-table th, .pf-table td { padding: 11px 12px; }
  .pf-table thead th:first-child, .pf-table tbody th { width: 136px; min-width: 136px; max-width: 136px; white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .pf-table tbody th wbr { display: inline; }
  .pf-callout { padding: 22px 20px; }
}

footer { padding: 72px 0 0; border-top: 1px solid var(--line); background: var(--bg); color: var(--text); }
footer .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid .blurb { font-size: 14px; color: var(--text-muted); max-width: 340px; margin: 14px 0 10px; }
.foot-grid .email { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; color: var(--text); }
.foot-grid h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-strong); font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid li a { font-size: 14px; color: var(--text-muted); transition: color .2s; }
.foot-grid li a:hover { color: var(--text-strong); }
.wordmark { position: relative; margin-top: 56px; height: 132px; overflow: hidden; font-size: 160px; line-height: .86; font-weight: 700; letter-spacing: -.055em; color: var(--bg); -webkit-text-stroke: 2px var(--line-strong); paint-order: stroke fill; text-align: center; user-select: none; pointer-events: none; }
.legal { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-muted); font-family: 'Geist Mono', ui-monospace, monospace; }
@media (max-width: 720px) {
  footer { padding-top: 48px; } footer .wrap { padding: 0 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .foot-grid > div:first-child { grid-column: 1 / -1; }
  .wordmark { height: 64px; margin-top: 40px; font-size: 72px; } .legal { flex-direction: column; gap: 6px; }
}

/* In flight, limitations, the publication line */
.pf-inflight { position: relative; padding: 28px 30px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--glass); overflow: hidden; max-width: 860px; margin-top: 22px; }
.pf-inflight::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(135deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.pf-inflight .pf-p { margin: 0; }
.pf-inflight .ev-inline { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13.5px; color: var(--text-muted); }
.pf-list { list-style: none; max-width: 820px; margin: 22px 0 0; padding: 0; counter-reset: li; border-top: 1px solid var(--line); }
.pf-list li { counter-increment: li; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.65; color: var(--text); }
.pf-list li::before { content: ''; width: 12px; height: 1px; background: var(--text-muted); margin-top: 14px; }
.pf-list strong { color: var(--text-strong); font-weight: 600; }
.pf-footline { margin-top: 112px; padding: 22px 0; border-top: 1px solid var(--line); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; line-height: 1.8; letter-spacing: .08em; color: var(--text-muted); }
@media (max-width: 720px) {
  .pf-inflight { padding: 22px 20px; }
  .pf-footline { margin-top: 72px; }
}

/* ---------- motion: once-only entrances, the count-up overlay, the glide (R17, R21, R24, R25, R43) ----------
   The server markup is the final state. Every pre-entry state lives under html.m-on, which the head script sets
   before first paint and swaps for m-off after 3 s unless proof.js has run; reduced motion gets m-off from the start.
   Entrances are keyframes with fill-mode backwards, so nothing stays on an element once it has played. Durations and
   delays are wire.css 140-141, 161-162 and 586-597; --i, --r and --k are set by proof.js on entry. All of it is screen only:
   print (and save as PDF) always gets the final states, since nothing is ever scrolled into view there. */
@keyframes pf-fade { from { opacity: 0; } }
@keyframes pf-rise { from { transform: translateY(18px); } }
@keyframes pf-rise-child { from { transform: translateY(22px); } }
@keyframes pf-settle { from { transform: translateY(8px); } }
@keyframes pf-land { from { transform: scale(.4); } }
@keyframes pf-line { from { transform: translateY(112%); } }
@keyframes pf-fill { from { transform: scaleX(0); } }
@media screen {
.m-on [data-reveal=""]:not([data-in="true"]) { opacity: 0; transform: translateY(18px); }
.m-on [data-reveal="group"]:not([data-in="true"]) > :not(.glide) { opacity: 0; transform: translateY(22px); }
.m-on [data-reveal="group"] .pf-tile .bar i { transform-origin: left; }
.m-on [data-reveal="group"]:not([data-in="true"]) .pf-tile .bar i { transform: scaleX(0); }
.m-on [data-reveal="rows"]:not([data-in="true"]) tbody tr { opacity: 0; transform: translateY(8px); }
.m-on [data-reveal="cells"]:not([data-in="true"]) .cell { opacity: 0; transform: scale(.4); }
.m-on [data-reveal=""][data-in="true"] { animation: pf-fade .6s ease-out backwards, pf-rise .7s cubic-bezier(.2,.7,.2,1) backwards; }
.m-on [data-reveal="group"][data-in="true"] > :not(.glide) { animation: pf-fade .55s ease-out calc(var(--i, 0) * 50ms) backwards, pf-rise-child .65s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 50ms) backwards; }
.m-on [data-reveal="group"][data-in="true"] .pf-tile .bar i { animation: pf-fill .9s cubic-bezier(.2,.8,.2,1) .2s backwards; }
.m-on [data-reveal="rows"][data-in="true"] tbody tr { animation: pf-fade .4s ease-out calc(var(--r, 0) * 20ms) backwards, pf-settle .5s cubic-bezier(.2,.7,.2,1) calc(var(--r, 0) * 20ms) backwards; }
.m-on [data-reveal="cells"][data-in="true"] .cell { animation: pf-fade .3s ease calc(var(--k, 0) * 8ms) backwards, pf-land .4s cubic-bezier(.2,.8,.2,1) calc(var(--k, 0) * 8ms) backwards; }
/* the h1's two lines rise from their masks at first paint, from CSS alone */
.m-on [data-reveal="lines"] .line > span { animation: pf-line .8s cubic-bezier(.2,.7,.1,1) backwards; }
.m-on [data-reveal="lines"] .line + .line > span { animation-delay: .11s; }
/* while a figure rolls, only the real figure's paint is hidden (see the count-up below) */
.m-on .rolling .v { opacity: 0; }
.m-on .rolling.landed .v { opacity: 1; }
}

/* Count-up: the real figure (.v) keeps its box and its place in the accessibility tree; only its paint is hidden while
   an aria-hidden overlay of digit columns, in the same font, size and tabular figures, rolls over it (wire.css 583-586).
   The columns are 1em tall on a 1em pitch, centred on the figure's line so each glyph shares the figure's baseline. */
[data-count] { position: relative; }
.odo { position: absolute; left: 0; top: 50%; height: 1em; margin-top: -.5em; display: flex; line-height: 1; white-space: nowrap; pointer-events: none; user-select: none; }
.odo > span { flex: none; display: block; height: 1em; line-height: 1; }
/* the fade covers only the bands a landed Geist digit never reaches (its glyph spans 13.4%-87.6% of the column; wire's
   18%/82% dimmed the top and bottom of every landed digit, which then brightened at the hand-back) */
.odo-col { overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 12%, #000 89%, transparent); mask: linear-gradient(transparent, #000 12%, #000 89%, transparent); }
.odo-strip { display: block; white-space: pre; transform: translateY(0); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
/* landed: the real figure returns underneath at once (.m-on .rolling.landed .v above) and the overlay dissolves over
   it, so the sub-pixel difference between transformed and plain text is never a jump */
.landed .odo { opacity: 0; transition: opacity .15s ease-out; }

/* Glide: one decorative highlight per host, moved to the row or card under a hovering pointer (R24); snaps when motion is off (R25). */
.glide-host { position: relative; }
.glide { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 16px; border: 1px solid var(--accent-edge); box-shadow: 0 0 0 1px var(--accent-soft) inset, 0 24px 60px -30px var(--glow); opacity: 0; pointer-events: none; transition: transform .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1), opacity .25s; z-index: 2; }
.pf-table .glide { border-radius: 0; border: 0; border-top: 1px solid var(--accent-edge); border-bottom: 1px solid var(--accent-edge); background: var(--accent-soft); box-shadow: none; z-index: 0; }
.m-off .glide, .m-off .pf-rail li a::before { transition: none; }
/* print is a still: no overlay or highlight, and nothing fades in (the run cells keep a 0.2 s opacity transition for their
   hover dim, which would otherwise start at 0 the moment the print styles apply) */
@media print { .odo, .glide { display: none; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- dossier index and reading view (generated pages; scripts/bench_render_dossiers.py) ---------- */
.pf-dx { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; }
.pf-dx-view { max-width: 1100px; }
.pf-dx-head { padding: 64px 0 28px; position: relative; }
.pf-dx-head > * { position: relative; }
.pf-dx-head h1 { margin: 8px 0 14px; font-size: 56px; }
.pf-dx-head .lead { max-width: 680px; }
.pf-dx-view .pf-dx-head { padding-bottom: 20px; }
.pf-dx-view .pf-dx-head h1 { margin: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 44px; letter-spacing: -.02em; font-weight: 500; overflow-wrap: anywhere; }
.pf-dx-head h1 .faint { color: var(--text-faint); }
.dx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.dx-crumbs a:hover { color: var(--text-strong); }
.dx-crumbs .s { color: var(--text-faint); }
.dx-pills, .dx-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dx-title { gap: 16px; margin-top: 22px; }
.dx-status { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; padding: 5px 10px; border: 1px solid var(--fail-edge); border-radius: 8px; background: var(--fail-soft); color: var(--fail); }
.pf-backlink { color: var(--text-strong); border-bottom: 1px solid var(--accent-edge); white-space: nowrap; }
.pf-backlink:hover { border-bottom-color: var(--accent); }
.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 26px 0 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: .06em; color: var(--text-muted); transition: color .2s, border-color .2s, background .2s; }
.fchip b { font-weight: 500; color: var(--text-strong); font-size: 11px; }
.fchip:hover { color: var(--text-strong); }
.fchip[aria-pressed="true"] { border-color: var(--accent-edge); background: var(--accent-soft); color: var(--accent-text); }
.pf-group { margin-top: 40px; }
.pf-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.pf-group-head h2 { margin: 0; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 17px; font-weight: 500; color: var(--text-strong); letter-spacing: 0; }
.pf-group-head .c { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--text-muted); }
.pf-group .pf-table { margin-top: 0; }
.pf-table td.cls .route { overflow-wrap: anywhere; }
.pf-table td.raw { white-space: nowrap; padding-top: 8px; padding-bottom: 8px; }
.pf-table td.raw a.ev { padding: 3px 5px; }
.legs { display: inline-flex; gap: 3px; }
.legs i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 10px; line-height: 1; font-family: 'Geist Mono', ui-monospace, monospace; border: 1px solid var(--line-strong); color: var(--text-muted); }
.legs i.y { border-color: var(--ok-edge); color: var(--ok); background: var(--ok-soft); }
.legs i.n { border-color: var(--fail-edge); color: var(--fail); background: var(--fail-soft); }
.bucket { display: inline-flex; align-items: center; gap: 6px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-strong); white-space: nowrap; }
.bucket.pending { border-style: dashed; color: var(--text-muted); }
.bucket.AGENT { border-color: var(--accent-edge); color: var(--accent-text); }
.pf-dview { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 8px; }
.pf-dview > div { min-width: 0; }
.pf-cause { padding: 30px 32px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--raised); box-shadow: var(--shadow); }
.pf-cause-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pf-cause h2.label { margin: 0; font-weight: 400; }
.pf-cause a.ev { max-width: 100%; overflow-wrap: anywhere; }
.pf-cause .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 12px; }
.pf-cause .meta .label, .pf-cause .label.sm, .pf-dview .label.sm { font-size: 11px; }
.pf-cause .meta code { font-size: 14px; overflow-wrap: anywhere; }
.pf-cause .meta .label + .label, .pf-cause .meta code + .label { margin-left: 8px; }
.pf-cause .evid { margin-top: 8px; font-size: 21px; line-height: 1.5; color: var(--text-strong); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pf-cause .label.sm.t { margin-top: 22px; }
.pf-dview .pf-tl-wrap { margin-top: 40px; }
.pf-dview .pf-res { margin-top: 36px; }
.pf-dview .pf-res .pf-callout { margin-top: 12px; max-width: none; }
.pf-dview .pf-res .pf-callout p { font-size: 18px; overflow-wrap: anywhere; }
.pf-dview .pf-reason { margin-top: 44px; }
.pf-dview .pf-reason h2 { margin: 0 0 12px; }
.pf-tl { list-style: none; position: relative; margin-top: 4px; }
.pf-tl::before { content: ''; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.pf-tl li { position: relative; display: grid; grid-template-columns: 30px 150px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 12px 0; }
.pf-tl li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text-muted); }
.pf-tl li.bad::before { border-color: var(--fail); background: var(--fail-soft); }
.pf-tl li.good::before { border-color: var(--ok); background: var(--ok-soft); }
.pf-tl .k { grid-column: 2; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; color: var(--text-muted); }
.pf-tl .v { grid-column: 3; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13.5px; color: var(--text-strong); overflow-wrap: anywhere; }
.pf-tl .v .legs { margin-right: 8px; vertical-align: -3px; }
.dx-reason { border-radius: 12px; border: 1px solid var(--line); background: var(--code-bg); overflow: hidden; }
.dx-reason pre { margin: 0; padding: 14px 18px 16px; font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.62; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.dx-reason pre code { all: unset; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-fields { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); overflow: hidden; position: sticky; top: 84px; }
.pf-fields .hd { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--band); }
.pf-fields .hd .label { font-size: 11px; }
.pf-fields dl { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.pf-fields dt, .pf-fields dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; line-height: 1.5; }
.pf-fields dt { color: var(--text-muted); padding-right: 0; }
.pf-fields dd { color: var(--text-strong); overflow-wrap: anywhere; }
.pf-fields dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 1099px) { .pf-dview { grid-template-columns: minmax(0, 1fr); } .pf-fields { position: static; } }
@media (max-width: 720px) {
  .pf-dx { padding: 0 16px 72px; }
  .pf-dx-head { padding-top: 40px; }
  .pf-dx-head h1 { font-size: 38px; }
  .pf-dx-view .pf-dx-head h1 { font-size: 28px; }
  .pf-cause { padding: 22px 20px; }
  .pf-cause .evid { font-size: 18px; }
  .pf-tl li { grid-template-columns: 30px minmax(0, 1fr); }
  .pf-tl .k, .pf-tl .v { grid-column: 2; }
  .pf-dview .pf-res .pf-callout p { font-size: 16.5px; }
}

/* ---------- print (and save as PDF); last in the file, so it overrides every screen rule above ----------
   Ink on white paper. Browsers print with "background graphics" off by default, and then darken light text by a fixed
   factor, which prints the strongest text lightest; so the tokens are remapped here to dark inks (each 4.5:1 or more on
   white; warn stays #FF8A3D beside its triangle) and the page is white. The run-grid evidence is fills, so the marks that
   carry it are print-color-adjust: exact and print either way; a pass cell is a mid grey there, as the light screen grey
   would all but vanish on paper. background-clip:text does not survive print (the gradient printed as a box over the
   words), so the h1's second line is solid accent text. Glows and blurred shadows print as solid blocks, so they go; the
   inset hairlines stay. A table box never clips: every column shows, the first column is an ordinary column, cells wrap
   between words (run keys at their underscores), and on paper narrower than 600 px anywhere they must. Checked from 390
   to 1440 by responsive.spec.mjs. */
@media print {
  :root {
    --bg: #FFFFFF; --band: #F4F4F2; --raised: #FFFFFF; --glass: transparent; --glass-hover: transparent; --code-bg: #F6F6F4; --total-bg: #F4F4F2;
    --line: rgba(0,0,0,.14); --line-strong: rgba(0,0,0,.3); --line-hover: rgba(0,0,0,.3);
    --text-strong: #111111; --text: #262626; --text-muted: #555555; --text-faint: #666666;
    --accent-text: #7A5600; --accent-edge: rgba(122,86,0,.45);
    --ok: #047857; --ok-soft: rgba(4,120,87,.1); --ok-edge: rgba(4,120,87,.5);
    --fail: #BE123C; --fail-soft: rgba(190,18,60,.12); --fail-edge: rgba(190,18,60,.5);
  }
  html, body { background: #FFFFFF; }
  .hdr { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .crumb-sep { color: var(--text-faint); }   /* a hairline colour on screen; on paper it is text */
  .pf-runs .cell, .pf-legend b, .pf-table .pips i, .pf-tile .bar, .pf-tile .bar i, .pf-table .rbar, .pf-table .rbar i, .legs i,
  .pf-eyebrow .env i, .pf-tier .chip.live i, .mk-brand {
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .mk-brand { background: #131316; border-color: #131316; }   /* each brand mark keeps the dark tile its colours were drawn for */
  .pf-runs .cell, .pf-legend b, .pf-table .pips i { background-color: #8C8C88; }
  .pf-runs .cell.fail, .pf-legend b.fail, .pf-runs .cell.fix, .pf-legend b.fix, .pf-table .pips i.f { background-color: transparent; }
  .pf-runs .cell.rec, .pf-legend b.rec { background-color: var(--accent); }
  /* amber alone is 1.85:1 on white and close to the pass grey in greyscale; a dark-amber edge (6.65:1 on white) keeps
     re-runs and the platform fix legible on any printer */
  .pf-runs .cell.rec, .pf-legend b.rec { border: 1.5px solid #7A5600; }
  .pf-runs .cell.fix, .pf-legend b.fix { border-color: #7A5600; }
  .grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-text); }
  .pf-mast::before { display: none; }
  .pf-tier.live, .pf-callout { box-shadow: 0 0 0 1px var(--accent-soft) inset; }
  .pf-pair, .pf-cause, .menu nav { box-shadow: none; }
  .pf-table { overflow: visible; }
  .pf-table table { min-width: 0; }
  .pf-table thead th, .pf-table td.num.wrap { min-width: 0; }
  .pf-table thead th:first-child, .pf-table tbody th { position: relative; width: auto; min-width: 0; max-width: none; overflow-wrap: break-word; }
  .pf-table th, .pf-table td, .pf-table th *, .pf-table td * { white-space: normal !important; overflow-wrap: break-word; }
  .pf-table th, .pf-table td { padding-left: 10px; padding-right: 10px; }
  .pf-table tbody th wbr { display: inline; }
  .pf-table .legs { flex-wrap: wrap; }
}
@media print and (max-width: 600px) { .pf-table th, .pf-table td, .pf-table tbody th, .pf-table th *, .pf-table td * { overflow-wrap: anywhere; } }
