
:root { color-scheme: light; --surface-1:#fcfcfb; --page:#f9f9f7; --ink:#0b0b0b; --ink-2:#52514e;
  --muted:#898781;
  --grid:#e1e0d9; --axis:#c3c2b7; --border:rgba(11,11,11,0.10); --good:#0ca30c;
  --good-text:#006300; --critical:#d03b3b;
  --fam-typesafe:#d6337a; --fam-openai:#2a78d6; --fam-anthropic:#c98500; --fam-open:#6c7178;
  --fam-fireworks:#6f4bb3; --fam-groq:#9b7bd4; --fam-cerebras:#4a2f80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark;
  --surface-1:#1a1a19; --page:#0d0d0d;
  --ink:#ffffff; --ink-2:#c3c2b7; --muted:#898781; --grid:#2c2c2a; --axis:#383835;
  --border:rgba(255,255,255,0.10);
  --good-text:#0ca30c; --fam-typesafe:#f06aa6; --fam-openai:#3987e5; --fam-open:#a3a9b0;
  --fam-fireworks:#a58ae0; --fam-groq:#c9b4f0; --fam-cerebras:#7f61c4; } }
:root[data-theme="dark"] { color-scheme: dark; --surface-1:#1a1a19; --page:#0d0d0d; --ink:#ffffff;
  --ink-2:#c3c2b7;
  --muted:#898781; --grid:#2c2c2a; --axis:#383835; --border:rgba(255,255,255,0.10); --good-text:#0ca30c;
  --fam-typesafe:#f06aa6; --fam-openai:#3987e5; --fam-open:#a3a9b0;
  --fam-fireworks:#a58ae0; --fam-groq:#c9b4f0; --fam-cerebras:#7f61c4; }
* { box-sizing: border-box; }
body { margin:0; background:var(--page); color:var(--ink); font-family: system-ui, -apple-system,
  "Segoe UI", sans-serif; font-size:15px; line-height:1.5; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 24px; }
header { background: var(--surface-1); border-bottom: 1px solid var(--border); }
header .wrap { padding: 40px 24px 26px; }
header p.sub { color: var(--muted); margin: 0; }
h1 { font-size: 26px; margin: 0 0 4px; font-weight: 650; }
h2 { font-size: 20px; margin: 44px 0 10px; font-weight: 650; }
p { max-width: 80ch; color: var(--ink-2); margin: 8px 0; }
p.note { font-size: 13px; color: var(--muted); max-width: none; }
nav { position: sticky; top:0; z-index:5; background: var(--page); border-bottom: 1px solid var(--border); }
nav .wrap { display:flex; gap:4px; padding: 8px 24px; overflow-x:auto; }
nav a { color: var(--ink); text-decoration:none; font-size:13.5px; font-weight:600;
  padding:6px 10px; border-radius:999px; white-space:nowrap; }
nav a:hover { background: var(--surface-1); }
main .wrap { padding-bottom: 80px; }
.pick { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin: 14px 0 0; font-size:.85rem; }
.pick .lbl { font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
  min-width: 9em; }
.pill { font:inherit; font-size:.85rem; padding:3px 12px; border-radius:999px;
  border:1px solid var(--axis); background:transparent; color:inherit; cursor:pointer; }
.pill.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
.pick-select { font:inherit; font-size:.85rem; padding:4px 10px; border-radius:8px; border:1px solid var(--axis); background:var(--surface-1); color:inherit; max-width: 100%; }
figure { margin: 0; background: var(--surface-1); border:1px solid var(--border);
  border-radius: 8px; padding: 12px 12px 6px; }
figcaption { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
svg.chart { width:100%; height:auto; display:block; }
svg .grid { stroke: var(--grid); stroke-width:1; } svg .axis { stroke: var(--axis); stroke-width:1; }
svg .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
svg .ptlbl { font-size: 10.5px; fill: var(--ink-2); }
svg .frontier { fill: none; stroke: var(--axis); stroke-width: 1.5; }
svg .ring { fill: var(--surface-1); }
.pt.fam-typesafe{fill:var(--fam-typesafe)}.pt.fam-openai{fill:var(--fam-openai)}.pt.fam-anthropic{fill:var(--fam-anthropic)}.pt.fam-open{fill:var(--fam-open)}.pt.fam-fireworks{fill:var(--fam-fireworks)}.pt.fam-groq{fill:var(--fam-groq)}.pt.fam-cerebras{fill:var(--fam-cerebras)}
.line{fill:none;stroke-width:1.5;opacity:.7}.line.fam-typesafe{stroke:var(--fam-typesafe)}.line.fam-openai{stroke:var(--fam-openai)}.line.fam-anthropic{stroke:var(--fam-anthropic)}.line.fam-open{stroke:var(--fam-open)}.line.fam-fireworks{stroke:var(--fam-fireworks)}.line.fam-groq{stroke:var(--fam-groq)}.line.fam-cerebras{stroke:var(--fam-cerebras)}
.legend { display:flex; flex-wrap:wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2);
  margin: 10px 0 4px; }
.sw { display:inline-block; width:10px; height:10px; border-radius:2px; vertical-align:middle;
  margin-right:6px; }
.sw.fam-typesafe{background:var(--fam-typesafe)}.sw.fam-openai{background:var(--fam-openai)}.sw.fam-anthropic{background:var(--fam-anthropic)}.sw.fam-open{background:var(--fam-open)}.sw.fam-fireworks{background:var(--fam-fireworks)}.sw.fam-groq{background:var(--fam-groq)}.sw.fam-cerebras{background:var(--fam-cerebras)}
.sym { display:inline-block; width:10px; height:10px; margin-right:7px; vertical-align:-1px;
  background: var(--ink-2); }
.sym.circle { border-radius:50%; } .sym.diamond { transform: rotate(45deg) scale(.82); border-radius:1px; }
.sw.frontier-sw { background: transparent; border-top: 1.5px solid var(--axis); height: 0;
  border-radius: 0; vertical-align: 3px; width: 18px; }
.tbl { overflow-x:auto; background: var(--surface-1); border:1px solid var(--border);
  border-radius: 8px; margin: 10px 0; }
table { border-collapse: collapse; width:100%; font-size: 13.5px; }
th, td { text-align:left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--grid); }
th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td small { color: var(--muted); }
td.run { white-space: nowrap; }
table.matrix td.cell { text-align:center; font-weight: 700; padding: 5px 8px; }
table.matrix td.cell span { display:inline-block; min-width: 26px; border-radius: 4px; }
table.matrix td.cell.ok span { background: color-mix(in srgb, var(--good) 18%, transparent);
  color: var(--good-text); }
table.matrix td.cell.bad span { background: var(--critical); color: #fff; }
.conf-kpis { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; max-width: 900px; margin: 18px 0; }
.conf-kpis div { background: var(--surface-1); padding: 12px 16px; }
.conf-kpis b { display:block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.conf-kpis span { font-size: .8rem; color: var(--muted); }
.conf-panels { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 16px 0; }
@media (max-width: 820px) { .conf-panels { grid-template-columns: 1fr; } }
figcaption small { font-weight: 400; color: var(--muted); }
svg .val { font-size: 10px; fill: var(--ink); font-variant-numeric: tabular-nums; }
h3 { font-size: 16px; margin: 26px 0 8px; font-weight: 650; }
details { background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ink); }
details[open] summary { margin-bottom: 8px; }
[hidden] { display: none !important; }

.act { display:inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 9px; font-weight: 650; letter-spacing: .01em; padding: 0 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: 1px; line-height: 14px; }
.policy-chart { background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; padding: 12px 12px 8px; }
.flowchart .fc-off { opacity: .16; transition: opacity .2s; }
.fc-legend { display:flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; } .fc-legend .act { font-size: 10px; line-height: 16px; } .fc-legend .lbl { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.fc-legend.tags { margin-top: 6px; font-size: 12px; color: var(--ink-2); gap: 4px 18px; }
.fc-glyph { vertical-align: -4px; margin-right: 5px; }
.fc-ic .f { fill: var(--ink-2); } .fc-ic .s { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.fc-ic-legend { vertical-align: -2px; margin-right: 6px; }
svg.flowchart { width: 100%; height: auto; display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
svg.flowchart .fc-title { font-size: 12.5px; font-weight: 650; fill: var(--ink); }
svg.flowchart .fc-node { font-size: 12px; font-weight: 600; fill: var(--ink); }
svg.flowchart .fc-line { font-size: 11.5px; fill: var(--ink-2); }
svg.flowchart .fc-strong { font-weight: 600; fill: var(--ink); }
svg.flowchart .fc-edge { font-size: 10.5px; fill: var(--muted); }
svg.flowchart .fc-stage { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; fill: var(--ink); }
svg.flowchart .fc-stage-n { fill: none; stroke: var(--ink); stroke-width: 1.3; } svg.flowchart .fc-stage-num { font-size: 9.5px; letter-spacing: 0; }
svg.flowchart .fc-sep { stroke: var(--grid); stroke-width: 1; }
svg.flowchart .fc-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
svg.flowchart .fc-headpath { fill: var(--ink-2); }
svg.flowchart .fc-pad { fill: var(--surface-1); }
svg.flowchart .fc-term, .fc-glyph .fc-term { fill: var(--surface-1); stroke: var(--ink); stroke-width: 1.6; }
svg.flowchart .fc-term-soft { stroke: var(--axis); stroke-width: 1.2; }
svg.flowchart .fc-split, .fc-glyph .fc-split { fill: var(--surface-1); stroke: var(--ink); stroke-width: 1.4; }
svg.flowchart .fc-model, .fc-glyph .fc-model { fill: var(--page); stroke: var(--ink-2); stroke-width: 1.2; } svg.flowchart .fc-model-bar, .fc-glyph .fc-model line { stroke: var(--ink-2); stroke-width: 1.2; }
svg.flowchart .fc-rules, .fc-glyph .fc-rules { fill: var(--surface-1); stroke: var(--ink-2); stroke-width: 1.2; } .fc-glyph .fc-rules line { stroke: var(--ink-2); stroke-width: 1.2; }
svg.flowchart .fc-cell { fill: var(--surface-1); stroke: var(--ink-2); stroke-width: 1.4; }
svg.flowchart .fc-badge { fill: var(--page); stroke: var(--axis); stroke-width: 1; }
svg.flowchart .fc-badge-text { font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; font-weight: 600; fill: var(--ink-2); }
svg.flowchart .fc-chip rect { stroke-width: 1; }
svg.flowchart .fc-hit-dot { fill: transparent; } svg.flowchart .fc-dotg { cursor: default; }
svg.flowchart .fc-tip { display: none; pointer-events: none; } svg.flowchart .fc-dotg:hover .fc-tip { display: block; }
svg.flowchart .fc-dotg:hover .fc-dot { r: 6.5; }
svg.flowchart .fc-tip .fc-pad { fill: var(--ink); stroke: none; } svg.flowchart .fc-tip-text { font-family: ui-monospace, Menlo, monospace; font-size: 10px; font-weight: 600; fill: var(--page); }
svg.flowchart .fc-chip text { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; font-weight: 650; }
.wrap.wide { max-width: none; padding: 0 24px 60px; }
.policy-chart.wide { margin-top: 12px; }
.policy-chart.wide svg.flowchart { width: 100%; height: auto; }

.wrap.viewer { padding: 0 24px 45vh; }  /* room below the last panel, so the question view can scroll up into a comfortable reading position */
.glyph { vertical-align: -3px; margin-right: 7px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; } .glyph .dot { fill: currentColor; stroke: none; }
nav a .glyph { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; opacity: .8; } nav a.here .glyph, nav a:hover .glyph { opacity: 1; }
h1 .glyph { width: .62em; height: .62em; margin: .13em 0 0; flex: none; vertical-align: 0; stroke-width: 1.4; } .card h2 .glyph { vertical-align: -4px; margin-right: 8px; }
nav a.here { background: var(--surface-1); text-decoration: underline; text-underline-offset: 4px; }
section.eval { margin-top: 20px; }
.case-line { font-size: 13px; color: var(--muted); margin: 0 0 8px; max-width: none; }
.io { margin: 18px 0 6px; display:flex; flex-direction: column; gap: 18px; }
.io-k { display:block; font-family: 'Univers Condensed', 'Die Grotesk A', system-ui, sans-serif; font-weight: 700; letter-spacing: .1em; font-size: .7rem; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.io-k em { font-family: 'Die Grotesk A', system-ui, sans-serif; font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; font-size: .78rem; margin-left: 6px; }
.io-cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.io-card { border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; background: var(--surface-1); }
.io-card b { display:block; font-size: .85rem; font-weight: 600; color: var(--ink); }
.io-card .glyph { float: left; margin: 2px 8px 0 0; opacity: .75; }
.io-card span { display:block; font-size: .78rem; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.io-tags { display:flex; flex-wrap: wrap; gap: 6px; }
/* the actions keep the chart's shape and lettering but not its colours, which shouted next to the plot */
.io .io-part .io-tags .act { font-size: 10.5px; line-height: 20px; background: none; border-color: var(--border); color: var(--ink-2); }
.essay.about { margin: 22px 0 4px; max-width: none; } .essay.about .essay-lead { font-size: 1.3rem; margin-bottom: 18px; } .essay.about h3 { margin-top: 20px; font-size: 1.05rem; } .essay.about p { font-size: .95rem; }
.sec-h { margin: 34px 0 0; font-size: 1.05rem; }
/* the page reads as bands: each gets its own room, and a hairline where one diagram meets the next */
.band { padding: 56px 0; border-top: 1px solid var(--border); }
.band > .sec-h:first-child, .band > .eval > .sec-h:first-child { margin-top: 0; }
.band:first-of-type { padding-top: 40px; border-top: 0; }
.intro-row { display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 40px; align-items: start; margin-top: 6px; }
.intro-row .intro-plot .sec-h { margin-top: 18px; } .intro-row .plotfig { max-width: none; }
@media (max-width: 1000px) { .intro-row { grid-template-columns: 1fr; } }
.sec-note { font-size: .86rem; color: var(--muted); max-width: 90ch; margin: 4px 0 8px; }
.sec-h { scroll-margin-top: 64px; }
.hero { display:grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px 48px; align-items: start; margin-top: 0; }
@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; } }
.hero-text h2 { font-size: 2.1rem; line-height: 1.12; margin: 0 0 16px; max-width: 18ch; }
.hero-text p { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin: 0; }
.hero-text mark.route { background: rgba(9, 174, 161, .22); color: var(--ink); font-weight: 500; padding: 1px 5px; border-radius: 4px; cursor: default; transition: background .15s; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-text mark.route:hover, .hero-text mark.route:focus { background: rgba(9, 174, 161, .5); outline: none; }
.hero-plot .sec-note { margin-top: 12px; }  /* the note reads under the card now, so it needs room above */
.essay-head { margin-top: 0; max-width: 78ch; }
.essay-row { display:grid; grid-template-columns: minmax(0, 78ch) minmax(0, 1fr); gap: 0 56px; align-items: start; margin-top: 0; }
.essay-row.after-toy { margin-top: 0; }
@media (max-width: 1100px) { .essay-row { grid-template-columns: 1fr; } }
.essay { max-width: 78ch; margin: 0 0 10px; }
/* the three question types share one slot: only the hovered type shows, so the column is one card tall */
/* not sticky: the card is about as tall as the paragraph beside it, so sticking only made the two scroll at
   different rates and jump when the row ran out */
.qtypes { display:grid; align-items: center; max-width: 460px; }
.qtypes figure { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .18s; }
.qtypes figure.on { opacity: 1; visibility: visible; }
.qtypes figcaption { font-size: .86rem; line-height: 1.45; color: var(--muted); margin-top: 4px; } .qtypes figcaption b { color: var(--ink); font-weight: 600; }
/* the slot holds one diagram at a time; the link sits under the whole slot, in its own row */
.qtypes-more { grid-row: 2; margin: 12px 0 0; font-size: .82rem; }
.qtypes-more a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }
.qtypes-more a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ext { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-left: 5px; vertical-align: -1px; }
.qtype-svg { width: 100%; height: auto; display: block; font-family: 'Die Grotesk A', system-ui, sans-serif; }
.qtype-svg .fc-card { fill: var(--surface-1); stroke: var(--ink-2); stroke-width: 1.3; } .qtype-svg .ph { fill: var(--axis); } .qtype-svg .ph.on { fill: var(--ink-2); }
.qtype-svg .fc-ic .f { fill: var(--ink-2); } .qtype-svg .fc-ic .s { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.qtype-svg .fc-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.5; } .qtype-svg .fc-headpath { fill: var(--ink-2); }
.qtype-svg .track { fill: var(--grid); } .qtype-svg .thr { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 3 2; }
.qtype-svg .tail { fill: rgba(9, 174, 161, .10); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; }
.qtype-svg .lbl { font-size: 10px; fill: var(--muted); } .qtype-svg .lbl.end { fill: var(--ink); font-weight: 600; }
.qtype-svg .fc-chip { fill: var(--surface-1); stroke: var(--accent); stroke-width: 1.2; }
.essay mark.qtype { cursor: default; transition: background .15s; } .essay mark.qtype:hover, .essay mark.qtype:focus { background: rgba(9, 174, 161, .5); outline: none; }
.essay .essay-lead { font-family: 'Die Grotesk D', 'Die Grotesk B', system-ui, sans-serif; font-size: 1.45rem; line-height: 1.3; color: var(--ink); margin: 0 0 22px; max-width: none; }
.essay-row .essay > h3:first-child { margin-top: 0; }
.essay h3 { font-family: 'Die Grotesk D', 'Die Grotesk B', system-ui, sans-serif; font-weight: 500; font-size: 1.15rem; margin: 26px 0 6px; }
.essay p { font-size: 1rem; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: none; }
.essay mark { background: rgba(9, 174, 161, .22); color: var(--ink); font-weight: 500; padding: 1px 5px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.toy-row { display:grid; grid-template-columns: minmax(260px, 2fr) 64px minmax(0, 5fr); gap: 12px; align-items: center; margin-top: 18px; }
.toy-arrow { display:flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-family: 'Univers Condensed', system-ui, sans-serif; }
.toy-arrow svg { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .toy-row { grid-template-columns: 1fr; } .toy-arrow svg { transform: rotate(90deg); } }
.policy-text { background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; font-family: 'Die Grotesk B', Georgia, serif; }
.policy-text h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 500; } .policy-text p { font-size: .92rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; max-width: none; }
.policy-chart.toy { margin-top: 0; } .policy-chart.toy svg.flowchart { max-width: 900px; }
.toy-notes { display:flex; flex-wrap:wrap; gap: 4px 28px; margin: 14px 0 22px; } .toy-notes .fc-legend { margin: 6px 0 0; }
.policy-text p { position: relative; padding: 2px 8px 2px 32px; margin-left: -8px; transition: opacity .35s, background-color .35s, color .35s; border-radius: 6px; }
.policy-text p .step-n { transition: border-color .35s, color .35s; }
.policy-text p .step-n { position: absolute; left: 6px; top: 3px; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--axis); color: var(--muted); font-size: .68rem; font-weight: 600; display:flex; align-items:center; justify-content:center; font-family: 'Die Grotesk A', system-ui, sans-serif; }
.policy-text p.on { background: var(--hl); color: var(--ink); } .policy-text p.on .step-n { border-color: var(--ink); color: var(--ink); }
.policy-text p.dim { opacity: .38; }
.policy-chart.toy .fc-off { opacity: .1; transition: opacity .5s; } .policy-chart.toy [data-fc] { transition: opacity .35s; }
.policy-chart.toy .fc-dim { opacity: .3; }
.policy-chart.toy .fc-hitbox { fill: transparent; transition: fill .35s; } .policy-chart.toy .lit .fc-hitbox { fill: var(--hl); }
.policy-chart.toy .lit text { fill: var(--ink); }
.intro-row .intro-plot .sec-h { margin-top: 34px; }
.stages { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; margin: 16px 0 6px; }
.stage { display:flex; gap: 12px; align-items: flex-start; } .stage b { font-weight: 500; color: var(--ink); font-size: .92rem; } .stage p { font-size: .84rem; color: var(--ink-2); margin: 3px 0 0; max-width: none; line-height: 1.5; }
.stage-n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink-2); color: var(--ink); font-size: .78rem; font-weight: 600; display:flex; align-items:center; justify-content:center; margin-top: 1px; }
.stages { margin: 14px 0 16px; }
.view-examples { display:flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px 0 10px; }
.cases-note { margin: 0; font-size: .82rem; color: var(--muted); } .cases-note.busy { color: var(--ink-2); }
.pill.big { font-size: 1rem; padding: 10px 26px; background: var(--ink); color: var(--page); border-color: var(--ink); }
.pill.big:hover { background: var(--accent); border-color: var(--accent); color: var(--page); }
.examples-view { margin-top: 18px; } .examples-top { margin: 10px 0 12px; } .examples-top .controls { scroll-margin-top: 64px; } .examples-top .fc-legend { margin-top: 12px; }
.stages, .view-examples { transition: opacity .28s ease; } .stages.leaving, .view-examples.leaving { opacity: 0; }
.examples-top, .examples-view { transition: opacity .5s ease, transform .5s ease; } .examples-top.entering, .examples-view.entering { opacity: 0; transform: translateY(10px); }
.card { position: relative; } .card .what { font-size: .86rem; color: var(--ink-2); margin: 6px 0 8px; max-width: none; } .card .what b { color: var(--ink); font-weight: 600; }
.card .preview { display: none; position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 6; background: var(--surface-1); border: 1px solid var(--axis); border-radius: 8px; padding: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.card:hover .preview { display: block; }
.card .preview.above { top: auto; bottom: calc(100% + 6px); }
.cards { margin-bottom: 0; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 0; } .cards.two .card .what { font-size: .82rem; }
@media (max-width: 1000px) { .cards.two { grid-template-columns: 1fr; } }
.controls { display:flex; flex-wrap:wrap; align-items:center; gap: 8px 22px; margin: 14px 0 10px; }
.examples { display:flex; flex-wrap:wrap; gap: 8px; }
.pill.ex { display:flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 6px 14px; border-radius: 12px; line-height: 1.25; }
.pill.ex b { font-weight: 650; font-size: .86rem; } .pill.ex span { font-size: .7rem; color: var(--muted); }
.pill.ex.on span { color: var(--page); opacity: .75; }
.controls .pick { margin: 0; }
.pick-select.small { font-size: .76rem; padding: 2px 8px; }
.panel { background: var(--surface-1); border:1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: .84rem; margin-top: 12px; }
.panel h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 650; }
.panel .hint { font-size: .76rem; color: var(--muted); margin: -4px 0 10px; max-width: none; }
.muted { color: var(--muted); }
/* the models: a colour and a line style each */
.ml { display:inline-block; width: 22px; height: 0; border-top: 3px solid var(--mc); vertical-align: middle; margin-right: 7px; }
.ml.m1 { border-top-style: dashed; } .ml.m2 { border-top-style: dotted; }
.ref { --mc: var(--ink); } .ml.ref { border-top-style: solid; }
.fc-legend .fc-rail { stroke-width: 3; }
/* the chart overlay: rails along the arrows, a ring round each shape, a spine beside each row */
.fc-overlay { pointer-events: none; } .fc-overlay.fc-pending { opacity: 0; }
.fc-rail { fill: none; stroke: var(--mc); stroke-width: 2.4; stroke-linejoin: miter; stroke-linecap: butt; }
.fc-rail.m1 { stroke-dasharray: 7 4; } .fc-rail.m2 { stroke-dasharray: 2 3; }
.fc-ring { fill: none; stroke: var(--mc); stroke-width: 2; }
.fc-ring.m1 { stroke-dasharray: 7 4; } .fc-ring.m2 { stroke-dasharray: 2 3; }
.fc-spine { fill: var(--mc); }
/* question rows a click opens in the drawer */
.fc-hit { cursor: pointer; }
.fc-hitbox { fill: transparent; }
.fc-hit:hover .fc-hitbox { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.fc-hit.fc-sel .fc-hitbox { fill: color-mix(in srgb, var(--ink) 12%, transparent); stroke: var(--ink); stroke-width: 1; }
.fc-hit.fc-dis .fc-hitbox { fill: var(--hl); }
.fc-hit.fc-dis.fc-sel .fc-hitbox { fill: var(--hl); stroke: var(--ink); }
mark { background: var(--hl); color: inherit; padding: 0 3px; border-radius: 2px; }
.fc-hit text.fc-line { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--axis); text-underline-offset: 2px; }
.fc-hit:hover text.fc-line, .fc-hit.fc-sel text.fc-line { fill: var(--ink); text-decoration-color: var(--ink); }
/* the decisions, above the chart: one column per model */
.decision { margin: 6px 0 14px; }
.strip { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) { .strip { grid-template-columns: 1fr; } }
.dec { border-top: 3px solid var(--mc); background: var(--surface-1); border: 1px solid var(--border); border-top: 3px solid var(--mc); border-radius: 8px; padding: 10px 14px 10px; min-width: 0; }
.dec.wrong { background: color-mix(in srgb, var(--critical) 8%, var(--surface-1)); border-color: color-mix(in srgb, var(--critical) 45%, transparent); border-top-color: var(--mc); }
.dec.dimmed { opacity: .45; }
.dec-head { display:flex; align-items:center; gap: 8px; font-size: .9rem; margin-bottom: 8px; } .dec-head b { font-weight: 650; }
.wrong-tag { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--critical); }
.big .chips { gap: 6px 8px; } .big .act { font-size: 13px; line-height: 26px; padding: 0 12px; }
.big .muted { font-size: .84rem; }
.meta { font-size: .74rem; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.prog { height: 3px; background: var(--grid); border-radius: 2px; margin-top: 8px; overflow: hidden; } .prog i { display:block; height: 100%; width: 100%; background: var(--mc); }
.panel h3 .case-id { text-transform: none; letter-spacing: 0; font-weight: 500; font-family: ui-monospace, Menlo, monospace; }
.fc-caption { display:flex; flex-wrap:wrap; gap: 4px 28px; margin: 8px 2px 22px; } .fc-caption .fc-legend { margin: 4px 0 0; }
.chips { display:flex; flex-wrap:wrap; gap: 5px 6px; align-items:center; }
.chips .act { font-size: 10.5px; line-height: 18px; }
/* the nodes, each question with the three answers beside it */
.nodegrid { display:grid; grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 4px 36px; }
.node { border-top: 1px solid var(--grid); padding: 10px 0 6px; min-width: 0; }
.node .head { display:flex; flex-wrap:wrap; align-items: baseline; gap: 6px 12px; }
.node .name { font-family: ui-monospace, Menlo, monospace; font-weight: 650; color: var(--ink); }
.node .reason { font-size: .76rem; color: var(--muted); }
.node.skipped .name { color: var(--muted); font-weight: 500; }
.link { font: inherit; font-size: .76rem; color: var(--ink-2); background: transparent; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.link:hover { color: var(--ink); }
.qgrid { display:flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.node.many { grid-column: 1 / -1; }
.node.many .qgrid { display: block; columns: 2; column-gap: 36px; } .node.many .qrow { break-inside: avoid; margin-bottom: 1px; }
@media (max-width: 1100px) { .node.many .qgrid { columns: 1; } }
.qrow { display:grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 118px)); gap: 0 10px; align-items:center; padding: 3px 6px; border-radius: 5px; cursor: pointer; font-size: .76rem; }
.qrow.with-ref { grid-template-columns: minmax(0, 1fr) repeat(4, minmax(0, 118px)); }
.qrow:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.qrow.sel { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.qrow.dis { background: var(--hl); } .qrow.dis.sel { box-shadow: inset 0 0 0 1px var(--ink); }
.qrow.decisive { background: var(--hl); } .qrow .dmark { font-style: normal; color: var(--critical); margin-left: 6px; font-size: .7rem; }
.tests { display:flex; flex-direction: column; margin-top: 2px; }
/* the same four columns as the answers above: the test where the reference sits, then one outcome per model */
.test { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; align-items: center; font-size: .76rem; padding: 7px 0; border-top: 1px solid var(--grid); }
.tests.with-ref .test { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tests:not(.with-ref) .test-txt { grid-column: 1 / -1; }
.test-txt { font-family: ui-monospace, Menlo, monospace; color: var(--ink); }
.test-h { color: var(--ink-2); line-height: 1.3; } .test-h b { white-space: nowrap; } .test-h.no { color: var(--muted); } .test-h b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; } .test-h i { color: var(--muted); font-style: italic; } .test-h .ml { width: 14px; margin-right: 5px; }
.qrow .qid { font-family: ui-monospace, Menlo, monospace; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline dotted; text-decoration-color: var(--axis); text-underline-offset: 2px; }
.qrow:hover .qid, .qrow.sel .qid { color: var(--ink); text-decoration-color: var(--ink); }
.qrow .qid .fc-ic { vertical-align: -3px; margin-right: 5px; }
.qrow .cell { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .qrow .cell b { color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.qrow .cell .ml { width: 14px; margin-right: 5px; }
.brief b { color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
/* one question in full */
.qcard { border: 1px solid var(--grid); border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; background: var(--surface-1); }
.qhead { display:flex; align-items:center; gap: 8px; }
.qhead .qid { font-family: ui-monospace, Menlo, monospace; font-weight: 650; color: var(--ink); font-size: .8rem; }
.qhead .qtype { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qhead .qnode { font-size: .72rem; color: var(--muted); margin-left: auto; font-family: ui-monospace, Menlo, monospace; }
.qcard .text { font-size: .84rem; color: var(--ink); margin: 6px 0 6px; max-width: none; }
.crit { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 18px; margin: 6px 0 10px; font-size: .78rem; }
.crit .crit-row { display: contents; }
.crit dt { font-family: ui-monospace, Menlo, monospace; font-size: .72rem; color: var(--ink); border-radius: 4px; padding: 2px 7px; align-self: start; margin: 5px 0; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
/* only a name the column had to cut short is chipped, so it reads as clipped rather than merely short */
.crit dt.clipped { background: color-mix(in srgb, var(--ink) 9%, transparent); cursor: help; }
.crit dd { margin: 5px 0; padding: 2px 0; color: var(--ink-2); line-height: 1.45; border-bottom: 1px solid var(--grid); }
.crit .crit-row:last-child dd { border-bottom: 0; }
.crit-h { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.crit-fold { background: transparent; border: 0; padding: 0; margin: 0; } .crit-fold > summary { cursor: pointer; list-style: none; display: inline-block; } .crit-fold > summary::-webkit-details-marker { display: none; }
.crit-fold > summary::before { content: "▶"; display: inline-block; width: 14px; color: var(--ink-2); font-size: .6rem; transition: transform .15s; } .crit-fold[open] > summary::before { transform: rotate(90deg); }
.crit-fold > summary:hover { color: var(--ink); }
.answers { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; margin-top: 8px; }
.answers.with-ref { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ans { border-top: 2px solid var(--mc); padding-top: 6px; min-width: 0; }
.ans-head { display:flex; align-items:center; gap: 6px; font-size: .76rem; margin-bottom: 4px; min-width: 0; } .ans-head b { font-weight: 650; flex: 0 0 auto; } .ans-head .brief { color: var(--muted); margin-left: auto; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bars { display:grid; grid-template-columns: minmax(0, 1fr) 40px 30px; gap: 3px 6px; align-items: center; font-size: .72rem; }
.bars .k { font-family: ui-monospace, Menlo, monospace; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.bars .k.clipped:hover { overflow: visible; z-index: 2; } .bars .k.clipped:hover::after { content: attr(data-full); position: absolute; left: -4px; top: -3px; padding: 2px 6px; background: var(--ink); color: var(--page); border-radius: 4px; white-space: nowrap; font-size: .7rem; }
.bars .k.top { color: var(--ink); font-weight: 650; }
.bars .bar { height: 6px; background: var(--grid); border-radius: 2px; overflow:hidden; } .bars .bar i { display:block; height:100%; background: var(--mc, var(--ink-2)); }
.bars .v { text-align:right; font-variant-numeric: tabular-nums; color: var(--muted); }
.conf { font-size: .7rem; color: var(--muted); margin-top: 4px; }
.scale { padding: 4px 6px 16px; }
.scale .rail { position: relative; height: 6px; background: var(--grid); border-radius: 3px; }
.scale .fillbar { position:absolute; left: 0; top: 0; height: 100%; background: var(--mc, var(--ink-2)); border-radius: 3px; opacity: .55; }
.scale .tick { position:absolute; top: -3px; width: 1px; height: 12px; background: var(--axis); transform: translateX(-.5px); }
.scale .tl { position:absolute; top: 12px; font-size: .66rem; color: var(--muted); transform: translateX(-50%); font-family: ui-monospace, Menlo, monospace; }
.scale .mark { position:absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--mc, var(--ink)); border: 2px solid var(--surface-1); box-shadow: 0 0 0 1px var(--mc, var(--ink)); transform: translateX(-50%); }
/* a document, laid out */
.doc-view { font-size: .8rem; }
.doc-head { display:flex; align-items:center; gap: 12px; margin: 0 0 8px; font-size: .76rem; color: var(--muted); }
.doc-head .raw { margin-left: auto; display:flex; align-items:center; gap: 5px; cursor: pointer; }
.doc-label { font-family: ui-monospace, Menlo, monospace; }
.doc-raw { font-size: 11px; line-height: 1.4; background: var(--page); border: 1px solid var(--grid); border-radius: 6px; padding: 10px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-obj { display:grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 0; }
.d-obj > .d-row { display: contents; }
.d-obj > .d-row.block { display: block; grid-column: 1 / -1; margin: 4px 0 2px; }
.d-obj > .d-row.block > dt { margin-bottom: 3px; }
.d-fold { grid-column: 1 / -1; background: transparent; border: 0; border-top: 1px solid var(--grid); padding: 0; margin: 4px 0 0; }
.d-fold > summary { display:flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; padding: 5px 0; } .d-fold > summary::-webkit-details-marker { display: none; }
.d-fold > summary::before { content: "▶"; color: var(--ink-2); font-size: .62rem; width: 12px; flex: 0 0 auto; transition: transform .15s; align-self: center; } .d-fold[open] > summary::before { transform: rotate(90deg); }
.d-fold > summary:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 4px; } .d-fold > summary:hover .d-key { text-decoration: underline dotted; text-underline-offset: 2px; }
.d-fold .d-key { font-weight: 650; color: var(--ink); font-size: .78rem; flex: 0 0 auto; }
.d-fold .d-prev { color: var(--muted); font-size: .72rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .d-fold[open] .d-prev { display: none; }
.d-fold-body { padding: 2px 0 8px 14px; }
.doc-head .link { font-size: .72rem; }
.d-obj dt { color: var(--muted); font-size: .74rem; padding-top: 2px; max-width: 180px; overflow-wrap: anywhere; }
.d-obj dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.d-obj.nested { border-left: 2px solid var(--grid); padding-left: 10px; margin: 2px 0 2px; }
.d-text { white-space: pre-wrap; background: var(--page); border: 1px solid var(--grid); border-radius: 6px; padding: 7px 10px; font-size: .78rem; line-height: 1.45; margin: 2px 0; color: var(--ink); }
.d-text.mono { font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 1.4; }
.d-list { display:flex; flex-direction: column; gap: 4px; } .d-item { border-left: 2px solid var(--grid); padding-left: 8px; }
.d-inline .d-sep { color: var(--muted); margin: 0 6px; }
.d-chat { display:flex; flex-direction: column; gap: 6px; }
.d-turn { display:grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; }
.d-who { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 8px; text-align: right; overflow-wrap: anywhere; }
.d-bubble { background: var(--page); border: 1px solid var(--grid); border-radius: 10px; padding: 7px 10px; font-size: .8rem; line-height: 1.45; min-width: 0; }
.d-bubble .d-text { background: transparent; border: 0; padding: 0; margin: 0; }
.d-turn.user .d-bubble, .d-turn.customer .d-bubble { border-color: var(--axis); background: var(--surface-1); }
.d-meta { display:flex; flex-wrap:wrap; gap: 4px 14px; font-size: .72rem; color: var(--muted); margin-top: 6px; } .d-meta b { font-weight: 600; }
.d-table { border-collapse: collapse; font-size: .74rem; width: 100%; margin: 2px 0; }
.d-table th { text-align:left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--grid); padding: 3px 6px; white-space: nowrap; }
.d-table td { padding: 3px 6px; border-bottom: 1px solid var(--grid); vertical-align: top; overflow-wrap: anywhere; }
.d-cards { display:flex; flex-direction: column; gap: 6px; }
.d-card { border: 1px solid var(--grid); border-radius: 6px; padding: 6px 10px; position: relative; }
.d-card .d-idx { position:absolute; right: 8px; top: 4px; font-size: .68rem; color: var(--muted); }
.d-null { color: var(--muted); } .d-num { font-variant-numeric: tabular-nums; } .d-bool { font-weight: 600; }
/* the bottom panel: the outline of every question, or one question in full, sliding between the two */
.views { position: relative; overflow: hidden; transition: height .35s ease; }
.view { transition: opacity .3s ease, transform .3s ease; }
.view.off { position: absolute; left: 0; right: 0; top: 0; opacity: 0; pointer-events: none; }
.view.outline.off { transform: translateX(-28px); } .view.detail.off { transform: translateX(28px); }
.detail-head { display:flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 12px; }
.back { font: inherit; font-size: .78rem; padding: 3px 12px 3px 9px; border-radius: 999px; border: 1px solid var(--axis); background: var(--surface-1); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.back:hover { color: var(--ink); border-color: var(--ink-2); }
.detail-title { font-weight: 650; color: var(--ink); font-size: .95rem; }
.detail-sub { font-size: .76rem; color: var(--muted); }
.qpills { display:flex; flex-wrap:wrap; gap: 6px; margin: 0 0 10px; } .qpills .pill { font-size: .74rem; padding: 2px 10px; font-family: ui-monospace, Menlo, monospace; }
.detail-grid { display:grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 24px; align-items: start; }
.detail-doc { max-height: 72vh; overflow: auto; padding: 12px 14px; background: var(--page); border: 1px solid var(--grid); border-radius: 8px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-doc { max-height: none; } }
.policy-chart.wide { margin-top: 8px; }
/* the chart as a window: fitted to the column at rest, taken up to a readable size while the pointer is on it */
.policy-chart.lensed { overflow: hidden; height: var(--lens-h, auto); cursor: crosshair; }
.chart-lens { transform-origin: 0 0; transition: transform .22s ease-out; will-change: transform; }
.policy-chart.lens-on .chart-lens { transition: transform .08s linear; }
.policy-chart.lensed svg.flowchart { display: block; }

/* the overview */
.cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 20px 0 0; }
.card { display:block; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--axis); }
.card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.card ul { margin: 8px 0 0; padding-left: 18px; font-size: .8rem; color: var(--ink-2); } .card li { margin: 2px 0; }

.plotfig { margin-top: 8px; max-width: 780px; }
.plotfig figcaption { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.plotfig .legend { margin: 2px 0 2px; font-size: 12.5px; }
.plotfig .legend .syms { display:flex; gap: 6px 14px; margin-left: auto; }
.plot-axis { margin: 0 0 8px; justify-content: flex-start; gap: 10px; } .plot-axis .lbl { min-width: 0; } .plot-axis .pill { font-size: .78rem; padding: 2px 10px; }
.plotfig .plot { margin-top: 6px; } .plotfig .frontier-note { margin: 2px 0 4px; }
svg.chart.compact .tick { font-size: 9px; }
svg.chart .mark.dim { opacity: .3; } svg.chart .mark.dim:hover { opacity: 1; }
.plotfig.route-focus .mark:not(.focus), .plotfig.route-focus .ptlbl:not(.focus), .plotfig.route-focus .frontier { opacity: .12; transition: opacity .15s; }
.plotfig.route-focus .mark.focus, .plotfig.route-focus .ptlbl.focus { opacity: 1; transition: opacity .15s; }
svg.chart .mark, svg.chart .ptlbl { transition: opacity .15s; }
svg.chart .ptlbl.hover { opacity: 0; pointer-events: none; paint-order: stroke; stroke: var(--surface-1, var(--page)); stroke-width: 3px; stroke-linejoin: round; transition: opacity .12s; }
svg.chart .mark:hover .ptlbl.hover { opacity: 1; }
svg.chart .ptlbl { font-size: 10px; }
.m0 { --mc: var(--fam-anthropic); }
.m1 { --mc: var(--fam-openai); }
.m2 { --mc: var(--fam-typesafe); }

:root[data-theme="dark"] { color-scheme: dark; --page: #1E1E1E; --surface-1: #272828; --ink: #FEFEFE; --ink-2: #D9DFDE; --muted: #ABBAB9; --grid: #353737; --axis: #515A59; --border: rgba(254, 254, 254, .12);
  --good: #09AEA1; --good-text: #3FD1C4; --critical: #F386A1; --accent: #09AEA1;
  --fam-typesafe: #E551BA; --fam-openai: #09AEA1; --fam-anthropic: #E8912A; --fam-fireworks: #8A7BF7; --fam-open: #ABBAB9; --fam-groq: #C4CFCE; --fam-cerebras: #8E9C9B;
  --hl: rgba(243, 134, 161, .22); }
/* action chips: no tint behind the text, just the family's outline and colour, which reads better on the dark
   surface. The eval's own family rules come later in the sheet, so this outranks them by specificity. */
html:root[data-theme="dark"] { --tint: 0%; }
body { background: var(--page); }
nav a:hover, .link:hover, .back:hover { color: var(--accent); }
.pill { border-color: var(--axis); } .pill.on { background: var(--ink); color: var(--page); border-color: var(--ink); }
::selection { background: rgba(9, 174, 161, .35); }

/* the flowcharts, up to tablet width: always at their drawn size in a strip that scrolls sideways, since a chart
   shrunk to a phone cannot be read at all */
.policy-chart.for-narrow { display: none; }
@media (max-width: 1000px) {
  .policy-chart.for-wide { display: none; }
  .policy-chart.for-narrow { display: block; }
  .policy-chart { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding: 10px 10px 8px; touch-action: pan-x pan-y pinch-zoom; }
  .policy-chart.wide svg.flowchart { width: calc(var(--fc-w, 1000) * var(--fc-k, 1) * 1px); max-width: none; }  /* beats .wide's 100% */
}
@media (max-width: 760px) {
  .wrap, header .wrap, nav .wrap, .wrap.viewer { padding-left: 16px; padding-right: 16px; }
  .band { padding: 32px 0; } .band:first-of-type { padding-top: 24px; }
  header .wrap { padding-top: 18px; padding-bottom: 14px; }
  h1 { font-size: 30px; gap: 10px; }  /* the glyph is sized in em, so it follows */
  header p.sub { font-size: .9rem; line-height: 1.45; margin-top: 4px; }
  /* the nav: one strip that scrolls sideways with no scrollbar, its far edge fading so it reads as a strip that
     continues; the script scrolls the current page's link into view */
  nav .wrap { scrollbar-width: none; scroll-snap-type: x proximity; padding-right: 48px; gap: 2px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 44px), transparent); }
  nav .wrap::-webkit-scrollbar { display: none; }
  nav a { scroll-snap-align: start; padding: 8px 12px; }
  .sec-h, .examples-top .controls { scroll-margin-top: 56px; }
  .hero { margin-top: 18px; gap: 16px; } .hero-text h2 { font-size: 1.5rem; max-width: none; } .hero-text p { font-size: 1rem; }
  .essay .essay-lead, .essay.about .essay-lead { font-size: 1.25rem; }
  .essay-head { margin-top: 32px; }
  /* the three question-type diagrams: nothing hovers on a phone, so all three show, one under the other */
  .qtypes { max-width: none; grid-auto-flow: row; gap: 16px; margin-top: 18px; }
  .qtypes figure { grid-area: auto; opacity: 1; visibility: visible; }
  .stages { grid-template-columns: 1fr; gap: 12px; }
  /* the plots keep their width but their lettering grows, since the drawing is shown at under half size */
  .plotfig { padding: 10px 8px 4px; }
  .plotfig svg.chart .tick { font-size: 21px; } .plotfig svg.chart text.ptlbl { font-size: 18px; } .plotfig svg.chart text.ptlbl.hover { stroke-width: 5px; }
  .plotfig .legend { gap: 4px 14px; }
  .pick .lbl { min-width: 0; }
  /* the outline: a question's name on its own line, the models' answers in pairs beneath it */
  .nodegrid { grid-template-columns: 1fr; }
  .node { padding: 12px 0 8px; }
  .qrow, .qrow.with-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding: 7px 8px; -webkit-tap-highlight-color: transparent; }
  .qrow .qid { grid-column: 1 / -1; white-space: normal; overflow-wrap: anywhere; margin-bottom: 1px; }
  .panel { padding: 12px 10px; }
  .panel h3 .case-id { display: block; margin-top: 2px; }
  /* one question in full: the answers two to a row, the tests' outcomes three to a row under the test */
  .answers, .answers.with-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* an option's name gets the column to itself and wraps, with its bar and share on the line beneath: in two
     narrow columns there is no room to put all three side by side, and a clipped name says nothing */
  .bars { grid-template-columns: minmax(0, 1fr) 32px; gap: 1px 6px; }
  .bars .k { grid-column: 1 / -1; white-space: normal; overflow: visible; overflow-wrap: anywhere; line-height: 1.25; margin-top: 5px; }
  .bars .k::after { content: none !important; }
  .bars .bar { height: 7px; } .bars .v { text-align: right; }
  .test, .tests.with-ref .test { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; }
  .tests .test-txt { grid-column: 1 / -1; }
  .crit { grid-template-columns: 1fr; gap: 0; } .crit dt { max-width: none; white-space: normal; justify-self: start; margin: 8px 0 2px; } .crit dd { margin: 0 0 4px; }
  .qhead { flex-wrap: wrap; } .qhead .qnode { margin-left: 0; flex-basis: 100%; }
  /* the state a node read: its own scrolling box under the question, so a long document does not push the
     answers a screen away */
  .detail-doc { max-height: 70vh; overflow: auto; padding: 10px 12px; }
  .d-obj dt { max-width: 34vw; }
  .d-turn { grid-template-columns: 1fr; gap: 2px; } .d-who { text-align: left; padding-top: 0; }
  .doc-head { flex-wrap: wrap; gap: 6px 12px; }
  .fc-caption { gap: 4px 18px; }
  .fc-hit, .pill, .link, .back { -webkit-tap-highlight-color: transparent; }
}
