/* AGI Capability Tracker, edition 3 "The Ledger". Base design by Claude Fable 5.1, September 2026.
   Light paper, Swiss grid, hairline rules, one signal color. No cards, no glass, no framework. */

:root {
  --paper: #F7F6F1;
  --paper-2: #EFEDE6;
  --ink: #111110;
  --ink-2: #4A4945;
  --ink-3: #8A8880;
  --rule: #D6D3C9;
  --rule-2: #BDB9AD;
  --signal: #E4572E;
  --signal-2: #B8401D;
  --ok: #1B7F4E;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --rail: 232px;
  --gutter: 40px;
}
body.gated { --signal: #9A1B1B; --signal-2: #6E1212; --paper: #F6F1EE; --paper-2: #EDE4DF; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- type ---------- */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lbl.sig { color: var(--signal); }
.h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; line-height: .95; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.035em; line-height: 1; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; line-height: 1.15; }
.h4 { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.lede { font-size: 16.5px; color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.body { font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.dim { color: var(--ink-2); } .mute { color: var(--ink-3); }
.sig { color: var(--signal); }

/* simple / technical */
[data-simple] { display: none; } [data-technical] { display: inline; }
body.simple [data-simple] { display: inline; } body.simple [data-technical] { display: none; }
[data-simple-block] { display: none; } [data-technical-block] { display: block; }
body.simple [data-simple-block] { display: block; } body.simple [data-technical-block] { display: none; }

/* ---------- shell: rail + page ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--rule); padding: 28px 22px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.brand { text-decoration: none; }
.brand .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 4px; }
.brand .n { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; line-height: 1.05; display: block; }
.brand .e { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); display: block; margin-top: 6px; }
.toc { list-style: none; border-top: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 13px; color: var(--ink-2); }
.toc a .no { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); padding-top: 3px; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); font-weight: 500; }
.toc a.active .no { color: var(--signal); }
.toggles { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--rule-2); background: transparent; border-radius: 2px; padding: 8px 10px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-align: left; transition: background .15s, color .15s; }
.tg i { width: 26px; height: 14px; border-radius: 999px; border: 1px solid var(--rule-2); position: relative; flex-shrink: 0; }
.tg i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); transition: left .15s, background .15s; }
.tg[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.tg[aria-pressed="true"] i { border-color: var(--ink); }
.tg[aria-pressed="true"] i::after { left: 14px; background: var(--ink); }
.tg.gate[aria-pressed="true"] { color: var(--signal); border-color: var(--signal); }
.tg.gate[aria-pressed="true"] i { border-color: var(--signal); } .tg.gate[aria-pressed="true"] i::after { background: var(--signal); }
.rail .stamp { font-family: var(--mono); font-size: 10px; color: var(--ink-3); line-height: 1.6; border-top: 1px solid var(--rule); padding-top: 10px; }
.page { padding: 0 var(--gutter) 120px; max-width: 1240px; min-width: 0; }
.shell > * { min-width: 0; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: sticky; height: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding: 14px 20px; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 16px; background: var(--paper); z-index: 50; }
  .toc { display: none; } .rail .stamp { display: none; }
  .toggles { flex-direction: row; margin-left: auto; }
  .brand .e { display: none; }
  .page { padding: 0 20px 80px; }
}

/* ---------- sections ---------- */
.sec { padding-top: 88px; }
.sec-head { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 28px; }
.sec-head .no { font-family: var(--mono); font-size: 12px; color: var(--signal); padding-bottom: 6px; }
.sec-head .lede { grid-column: 2; margin-top: 10px; }
@media (max-width: 640px) { .sec-head { grid-template-columns: 1fr; } .sec-head .lede { grid-column: 1; } }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .cols2, .cols3 { grid-template-columns: 1fr; } }
.rl { border-top: 1px solid var(--ink); }
.rl > div { display: grid; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); vertical-align: 1px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--ink); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.tag.sig { border-color: var(--signal); color: var(--signal); }
.tag.fill { background: var(--ink); color: var(--paper); }
.tag.ok { border-color: var(--ok); color: var(--ok); }
.tag.mute { border-color: var(--rule-2); color: var(--ink-3); }
.note { border-left: 2px solid var(--signal); padding-left: 14px; font-size: 14px; color: var(--ink-2); }
.note b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 4px; font-weight: 500; }

/* ---------- 01 cover ---------- */
.cover { padding-top: 56px; }
.cover .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.cover-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px 56px; padding-top: 36px; align-items: start; }
@media (max-width: 900px) { .cover-grid { grid-template-columns: 1fr; } }
.index { border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.index .big { font-family: var(--display); font-weight: 600; font-size: clamp(120px, 15vw, 210px); letter-spacing: -0.07em; line-height: .82; color: var(--ink); }
.index .big small { font-size: .28em; letter-spacing: -0.03em; color: var(--ink-3); margin-left: 6px; }
.index .restate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.index .restate s { color: var(--ink-3); }
.index .restate b { color: var(--signal); font-weight: 500; }
.index .restate a { color: var(--ink); }
.who .name { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.045em; line-height: .92; margin-top: 8px; }
.who .name .org { display: block; font-size: .32em; letter-spacing: -0.02em; color: var(--ink-3); margin-top: 8px; }
.who .since { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.who .since b { color: var(--ink); font-weight: 500; }
.who .basis { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); max-width: 58ch; }
.boards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 40px; }
@media (max-width: 900px) { .boards { grid-template-columns: 1fr; gap: 28px; } }
.board .rl > div { grid-template-columns: 1fr auto; }
.board .b { font-size: 13.5px; }
.board .s { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.board .s.win { font-weight: 500; }
.board .m { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); }
.board .h { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.board .h em { font-style: normal; color: var(--ok); }
.verdict { margin-top: 44px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.verdict .q { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.025em; line-height: 1.2; max-width: 34em; text-wrap: pretty; }
@media (max-width: 640px) { .verdict { grid-template-columns: 1fr; } }
.thesis { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 70ch; font-size: 15px; color: var(--ink-2); }
.offbook { display: none; margin-top: 32px; border: 1px solid var(--signal); padding: 18px 20px; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(154,27,27,0.035) 10px 11px); }
body.gated .offbook { display: block; }
.offbook table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.offbook th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule-2); font-weight: 500; }
.offbook td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.offbook td.g { color: var(--signal); font-weight: 500; }

/* ---------- 02 movers ---------- */
.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.t td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 13.5px; }
.t td.d, .t td.n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.t td.strong { font-weight: 500; }
.t tr.lead td { background: rgba(228,87,46,0.06); }
.mv .from { color: var(--ink-3); text-decoration: line-through; }
.mv .to { color: var(--ink); font-weight: 500; }
.mv .arr { color: var(--signal); margin: 0 8px; }
@media (max-width: 760px) {
  .t td.nt, .t th.nt { display: none; }
  #ledger .t td, #ledger .t th { padding-right: 8px; font-size: 12px; }
  #ledger .t td.d { white-space: normal; width: 52px; }
  .mv .from, .mv .to { display: block; } .mv .arr { display: none; } .mv .to::before { content: '\2192  '; color: var(--signal); }
  .edtab th:nth-child(4), .edtab td:nth-child(4) { display: none; }
}

/* ---------- 03 sectors (domains) ---------- */
.method { display: grid; grid-template-columns: 90px 1fr; gap: 16px; margin-bottom: 32px; }
@media (max-width: 640px) { .method { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 2px; height: 12px; vertical-align: -2px; margin-right: 6px; }
.dom { display: grid; grid-template-columns: 90px 1fr 120px; gap: 8px 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.dom:first-of-type { border-top: 1px solid var(--ink); }
@media (max-width: 760px) { .dom { grid-template-columns: 60px 1fr; } .dom .val { grid-column: 2; text-align: left; } }
.dom .no { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 6px; }
.dom .no small { display: block; color: var(--ink-3); font-size: 9.5px; margin-top: 2px; }
.dom .title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.dom .delta { font-family: var(--mono); font-size: 11px; }
.dom .delta.up { color: var(--ok); } .dom .delta.down { color: var(--signal); } .dom .delta.new { color: var(--signal); border: 1px solid var(--signal); padding: 1px 5px; letter-spacing: .1em; }
.dom .val { text-align: right; font-family: var(--display); font-weight: 600; font-size: 44px; letter-spacing: -0.05em; line-height: .9; }
.dom .val small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); display: block; margin-top: 6px; }
.hbar { position: relative; height: 6px; background: var(--paper-2); margin: 12px 0 10px; }
.hbar .f { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.hbar .p { position: absolute; top: -5px; width: 2px; height: 16px; background: var(--signal); }
.hbar .h { position: absolute; top: -5px; right: 0; width: 2px; height: 16px; background: var(--ink-3); }
.dom .meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.dom .meta b { color: var(--ink); font-weight: 500; }
.dom .est { display: none; font-family: var(--mono); font-size: 10.5px; color: var(--signal); margin-top: 6px; }
body.gated .dom .est.on { display: block; }
.dom details { margin-top: 10px; }
.dom summary { cursor: pointer; list-style: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.dom summary::-webkit-details-marker { display: none; }
.dom summary::before { content: '+  '; color: var(--signal); }
.dom details[open] summary::before { content: '\2212  '; }
.dom .why { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.dom .why .r { margin-top: 10px; }

/* ---------- 04 definitions ---------- */
.fw .lv { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.fw .lv .s { width: 10px; height: 10px; border: 1px solid var(--ink-3); border-radius: 50%; margin-top: 5px; }
.fw .lv.done .s { background: var(--ink); border-color: var(--ink); }
.fw .lv.cur .s { border-color: var(--signal); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 5px var(--signal); }
.fw .lv .t { font-size: 13.5px; font-weight: 500; }
.fw .lv:not(.done) .t { color: var(--ink-3); font-weight: 400; }
.fw .lv .d { font-size: 12px; color: var(--ink-3); }
.fw .n { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }

/* ---------- 05 register (timeline) ---------- */
.orgs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 18px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.orgs span { display: inline-flex; align-items: center; gap: 6px; }
.yr { display: grid; grid-template-columns: 90px 1fr; gap: 16px; border-top: 1px solid var(--ink); }
.yr .y { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; padding-top: 12px; color: var(--ink-3); }
.yr.cur .y { color: var(--ink); }
.reg { border-collapse: collapse; width: 100%; }
.reg td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; vertical-align: baseline; }
.reg td.d { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); white-space: nowrap; width: 64px; }
/* Row: month | name + inline tags, lab and size beneath | one short capability line. The old right cell was named .tg,
   which is also the rail toggle's class, so every row drew an empty bordered button. */
.reg td.nm { width: 44%; }
.reg .nb { all: unset; cursor: pointer; font-weight: 500; font-size: 14px; display: inline-flex; align-items: baseline; gap: 7px; margin-right: 8px; }
.reg .nb:hover, .reg .nb:focus-visible { color: var(--signal); }
.reg td.nm .tag { margin: 0 6px 0 0; font-size: 8.5px; padding: 1px 5px; vertical-align: 1px; }
.reg .sub { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin: 3px 0 0 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42ch; }
@media (max-width: 760px) { .reg .sub { max-width: 30ch; } }
.reg td.cap { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
/* Summaries are written short (under 70 characters) and never clamped: at narrow desktop widths they wrap to a third line rather than cut off. */
.reg td.cap > span { display: block; }
@media (max-width: 1100px) { .reg td.nm { width: 40%; } }
@media (max-width: 760px) { .reg td.nm { width: auto; } .reg td.cap { display: none; } .yr { grid-template-columns: 1fr; } .yr .y { padding-bottom: 4px; } }
.detail { border: 1px solid var(--ink); padding: 20px 22px; margin: 14px 0 18px; }
.detail .kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 20px; margin-top: 14px; }
@media (max-width: 760px) { .detail .kv { grid-template-columns: 1fr 1fr; } }
.detail .kv span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.detail .kv b { font-weight: 500; font-size: 13.5px; }
.detail .bm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.detail .bm span { font-family: var(--mono); font-size: 11px; border: 1px solid var(--rule-2); padding: 3px 8px; }
.detail .hl { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--ok); font-size: 13px; color: var(--ink-2); }
.detail .hl b { color: var(--ok); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; font-weight: 500; }
.detail .notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.x { background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.x:hover { color: var(--signal); }

/* ---------- 06 milestones ---------- */
.ms { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.ms:first-of-type { border-top: 1px solid var(--ink); }
@media (max-width: 640px) { .ms { grid-template-columns: 1fr; } }
.ms .when { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.ms .when b { display: block; color: var(--ink); font-weight: 500; }
.ms .head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.ms .people { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin: 4px 0 10px; }
.ms .sum { font-size: 15px; margin-bottom: 8px; }
.ms .det { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; max-width: 80ch; }
.ms .art { font-family: var(--mono); font-size: 11px; border: 1px solid var(--rule-2); padding: 10px 12px; overflow-x: auto; white-space: nowrap; margin-bottom: 12px; }
.ms .art .t { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ms .sig2, .ms .ver { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.ms .sig2 b, .ms .ver b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 2px; }
.ms .sig2 b { color: var(--signal); } .ms .ver b { color: var(--ink-3); }

/* ---------- 07 head-to-head ---------- */
.tw { overflow: auto; max-height: 760px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
#h2h { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; }
#h2h th { position: sticky; top: 0; z-index: 2; background: var(--paper); text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); cursor: pointer; white-space: nowrap; }
#h2h th:hover { color: var(--ink); }
#h2h th.active { color: var(--signal); }
#h2h td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; white-space: nowrap; color: var(--ink-2); }
#h2h th.model, #h2h td.model { position: sticky; left: 0; z-index: 1; background: var(--paper); padding-right: 16px; }
#h2h th.model { z-index: 3; }
#h2h td.model { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
#h2h td.date { color: var(--ink-3); }
#h2h td.none { color: var(--rule-2); }
#h2h td.best { color: var(--ink); font-weight: 600; }
#h2h td.best::before { content: '\25B2 '; color: var(--signal); font-size: 8px; vertical-align: 2px; }
#h2h td.heat { background: rgba(17,17,16, var(--heat, 0)); }
#h2h tr.leader td { background: rgba(228,87,46,0.07); }
#h2h tr.leader td.model { color: var(--signal); }
#h2h tr.picked td { background: rgba(17,17,16,0.06); }
/* Phones: a narrow sticky name column (tags and date hidden) so three score columns fit beside it; swipe for the rest. */
#h2h th .hs { display: none; }
.swipe { display: none; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-bottom: 8px; }
@media (max-width: 760px) {
  .swipe { display: block; }
  .tw { max-height: 70vh; }
  #h2h { min-width: 0; }
  #h2h th, #h2h td { padding: 7px 10px 7px 0; font-size: 11px; }
  #h2h th.model, #h2h td.model { width: 116px; min-width: 116px; max-width: 116px; white-space: normal; line-height: 1.25; padding-right: 8px; box-shadow: 1px 0 0 var(--rule); }
  #h2h td.model { font-size: 12px; }
  #h2h td.model .tag, #h2h th.date, #h2h td.date { display: none; }
  #h2h th .hf { display: none; } #h2h th .hs { display: inline; }
}
/* Table notes: three always-visible reading rules, then the cell-level sources folded away. */
.tread { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 10px; }
.tread b { color: var(--ink); font-weight: 500; }
.fnotes { margin-top: 14px; border-top: 1px solid var(--rule); }
.fnotes summary { cursor: pointer; list-style: none; padding: 10px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.fnotes summary::-webkit-details-marker { display: none; }
.fnotes summary::before { content: '+  '; color: var(--signal); }
.fnotes[open] summary::before { content: '\2212  '; }
.fnotes dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 900px) { .fnotes dl { grid-template-columns: 1fr; } }
.fnotes dl > div { border-top: 1px solid var(--rule); padding: 9px 0; break-inside: avoid; }
.fnotes dt { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 3px; }
.fnotes dd { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.chart { display: none; margin-top: 20px; border: 1px solid var(--ink); padding: 18px 20px; }
.chart.on { display: block; }
.chart svg { width: 100%; height: auto; }

/* ---------- 08 standings ---------- */
.stand h4 { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.stand .n { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin: 8px 0 12px; }
.stand .row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; }
.stand .row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.stand .row .br { height: 6px; background: var(--paper-2); position: relative; }
.stand .row .br b { position: absolute; left: 0; top: 0; bottom: 0; }
.stand .row .v { font-family: var(--mono); font-size: 12px; text-align: right; }
.stand .row.top .nm { font-weight: 500; } .stand .row.top .v { font-weight: 600; }

/* ---------- 09 ARC ---------- */
.quote { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.25; }
.arcv { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.arcv:first-of-type { border-top: 1px solid var(--ink); }
.arow { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 300px); gap: 4px 14px; align-items: center; padding: 5px 0; }
.arow .yr2 { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.arow .trk { height: 18px; background: var(--paper-2); position: relative; overflow: hidden; }
.arow .brr { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; max-width: 100%; transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.arow .brr:has(i) { background: var(--ink-3); }
.arow .brr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.arow.top .brr { background: var(--signal); }
.arow.k-harness .brr { background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, var(--paper-2) 3px 6px); }
.arow.k-custom .brr { background: var(--ink-3); }
.arow.k-baseline .brr { background: transparent; border: 1.5px dashed var(--ink-2); }
.arow .hu { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dotted var(--ok); z-index: 1; }
.arow .sc { position: absolute; left: 4px; top: 2px; line-height: 14px; padding: 0 4px; font-family: var(--mono); font-size: 10.5px; color: var(--ink); background: var(--paper); z-index: 2; }
.arow.top .sc { color: var(--signal-2); font-weight: 600; }
.arow .sys { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
.arow .sys .tag { font-size: 8px; padding: 1px 4px; }
.arow.top .nm2 { color: var(--signal); font-weight: 600; }
.arow .how { flex-basis: 100%; font-family: var(--mono); font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .arow { grid-template-columns: 52px minmax(0, 1fr); padding: 6px 0 8px; }
  .arow .sys { grid-column: 2; }
  .arow .how { white-space: normal; }
}
.arckey { border: 1px solid var(--rule-2); padding: 14px 16px; margin-bottom: 24px; max-width: 900px; }
.arckey .lg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); }
.arckey .lg span { display: inline-flex; align-items: center; gap: 6px; }
.arckey .lg i { display: inline-block; width: 22px; height: 10px; }
.arckey .k-model { background: var(--ink); } .arckey .k-hi { background: var(--signal); } .arckey .k-custom { background: var(--ink-3); }
.arckey .k-harness { background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, var(--paper) 3px 6px); }
.arckey .k-baseline { border: 1.5px dashed var(--ink-2); } .arckey .k-human { width: 0 !important; height: 14px !important; border-left: 1.5px dotted var(--ok); }

/* ---------- generic ledgers (R&D, commitment) ---------- */
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter i { display: block; height: 5px; background: var(--paper-2); position: relative; }
.meter i b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.meter span { font-family: var(--mono); font-size: 11.5px; }
.t th.sort { cursor: pointer; } .t th.sort:hover { color: var(--ink); } .t th.active { color: var(--signal); }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: rgba(17,17,16,0.03); }
.t tr.picked td { background: rgba(228,87,46,0.07); }
.cat { border-top: 1px solid var(--rule); padding: 10px 0; }
.cat .h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cat .h span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cat .h b { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.cat p { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.cat .src a { font-family: var(--mono); font-size: 10.5px; color: var(--signal); margin-right: 6px; }
.refs li { display: flex; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--rule); list-style: none; }
.refs li .i { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); width: 26px; flex-shrink: 0; }
.refs li .c { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.refs li a { color: var(--ink); text-decoration: none; word-break: break-all; }
.refs li a:hover { color: var(--signal); }
.hexr text { font-family: var(--mono); }
.aac-intro { display: grid; gap: 10px; max-width: 86ch; margin-bottom: 20px; }
.coi { border-left: 2px solid var(--signal); padding-left: 14px; font-size: 13.5px; color: var(--ink-2); }
.coi b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); font-weight: 500; margin-bottom: 2px; }
.aac-wrap { overflow-x: auto; }
#aac { min-width: 860px; }
#aac .was { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.cat.ed p { color: var(--ink-3); }
.cat .src { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; }
@media (max-width: 760px) { #aac { min-width: 0; } #aac .dim, #aac th.dim, #aac .rel, #aac th.rel { display: none; } }

/* ---------- 11 labs ---------- */
.lab { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.lab:first-of-type { border-top: 1px solid var(--ink); }
@media (max-width: 640px) { .lab { grid-template-columns: 1fr; } }
.lab .org { font-family: var(--mono); font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.lab .phil { font-size: 13.5px; color: var(--ink-2); font-style: italic; margin-top: 4px; max-width: 70ch; }
.lab .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }
@media (max-width: 860px) { .lab .cols { grid-template-columns: 1fr; } }
.lab .cols b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; font-weight: 500; }
.lab .cols .l b { color: var(--ok); } .lab .cols .t2 b { color: var(--signal); } .lab .cols .k b { color: var(--ink-3); }
.lab .cols div div { font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; padding-left: 12px; text-indent: -12px; }
.lab .cols .k p { font-size: 12.5px; color: var(--ink-2); }
.lab .thr { margin-top: 12px; font-size: 13px; color: var(--ink-2); max-width: 80ch; }
.lab .thr b { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 8px; font-weight: 500; }

/* ---------- 12 safety ---------- */
.find h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); margin: 16px 0 6px; font-weight: 500; }
.find div { font-size: 13px; color: var(--ink-2); padding: 4px 0 4px 14px; text-indent: -14px; border-bottom: 1px solid var(--rule); }
.find div::before { content: '\25B8  '; color: var(--ink-3); }
/* capability vs control ledger (replaced the hand-placed scatter) */
.ctl { margin-top: 44px; }
.ctl-wrap { overflow-x: auto; }
#ctl { min-width: 760px; }
#ctl th.c, #ctl td.c { text-align: center; width: 78px; white-space: normal; line-height: 1.2; }
#ctl td.c { font-size: 16px; line-height: 1; padding-top: 12px; }
#ctl td.c.mono { font-size: 12.5px; }
#ctl .m-y { color: var(--ink); } #ctl .m-p { color: var(--ink-2); } #ctl .m-n { color: var(--rule-2); }
#ctl .ix { width: 56px; }
#ctl td.strong { white-space: nowrap; }
@media (max-width: 760px) { #ctl td.strong { white-space: normal; } }
#ctl td.rt { max-width: 26ch; }
#ctl tr.ctl-d td { background: var(--paper-2); padding: 12px 16px; }
#ctl .ev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; font-size: 12.5px; color: var(--ink-2); }
#ctl .ev b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 2px; }
#ctl .ev b.m-n { color: var(--ink-3); }
#ctl .ev a { color: var(--signal); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
@media (max-width: 760px) {
  #ctl { min-width: 0; } #ctl th.rt, #ctl td.rt { display: none; }
  #ctl th.c { font-size: 8.5px; letter-spacing: .04em; width: 36px; padding-right: 4px; }
  #ctl td.c { width: 36px; padding-right: 4px; font-size: 14px; }
  #ctl td, #ctl th { padding-right: 6px; } #ctl .ix { width: 28px; }
  #ctl .ev { grid-template-columns: 1fr; }
}
.pos { border-top: 1px solid var(--rule); padding: 12px 0; }
.pos .who2 { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.pos h4 { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; margin: 4px 0; }
.pos p { font-size: 12.5px; color: var(--ink-2); }
.warn div { font-size: 14px; color: var(--ink-2); padding: 8px 0 8px 16px; text-indent: -16px; border-bottom: 1px solid var(--rule); }
.warn div::before { content: '\25B8  '; color: var(--signal); }

/* ---------- 14 analysis + paper + editions ---------- */
.essay { column-count: 2; column-gap: 48px; }
@media (max-width: 900px) { .essay { column-count: 1; } }
.essay > div { break-inside: avoid; margin-bottom: 26px; }
.essay .h4 { margin-bottom: 6px; }
.layers { border-top: 1px solid var(--ink); }
.layer { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.layer .ln { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--lc); padding-top: 3px; }
.layer h4 { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.layer .ld { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.16,1,.3,1); font-size: 13px; color: var(--ink-2); }
.layer.open .ld { max-height: 240px; }
.layer .ld p { margin-top: 6px; }
.layer .ld .who { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.plinks a { display: inline-block; font-family: var(--mono); font-size: 11.5px; border-bottom: 1px solid var(--ink); text-decoration: none; margin: 10px 18px 0 0; }
.plinks a:hover { color: var(--signal); border-color: var(--signal); }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

footer { margin-top: 100px; border-top: 2px solid var(--ink); padding-top: 18px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; line-height: 1.6; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--signal); }

.lab .cols .k > div { padding-left: 0; text-indent: 0; font-size: 12.5px; color: var(--ink-2); }
.ms > * , .lab > *, .dom > *, .yr > *, .sec-head > *, .cols2 > *, .cols3 > * { min-width: 0; }
.ms .art { max-width: 100%; }
