:root {
  color-scheme: light;
  --paper: #FAF8F3;
  --plate: #FFFFFF;
  --ink: #171614;
  --ink-2: #49453E;
  --muted: #625D54;
  --rule: #E3DED2;
  --pass: #156141;
  --fail: #C4381C;
  --warn: #9A5B00;
  --link: #1B4B9C;
  --wash: #F1EEE5;
  --display: Newsreader, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --ui: 'Plus Jakarta Sans', Geist, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --stamp-radius: 2px;
  --gutter: clamp(16px, 4vw, 56px);
}

.wrap { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
.grid-12, .grid-2, .grid-3 { display: grid; gap: clamp(14px, 2vw, 28px); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-copy { grid-column: span 7; }
.evidence-reader { grid-column: span 5; min-width: 0; }
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(158px, 100%), 1fr)); }
.table-wrap { min-width: 0; }
.ledger { table-layout: fixed; }
.ledger col:first-child { width: 21%; }
.ledger col:nth-child(3), .ledger col:nth-child(4) { width: 14%; }
.ledger col:nth-child(6), .ledger col:nth-child(7) { width: 7%; }
.ledger col:nth-child(8) { width: 12%; }

@media (max-width: 959px) {
  .hero-copy { grid-column: span 12; }
  .evidence-reader { grid-column: span 12; }
}
@media (max-width: 859px) {
  .ledger { display: block; }
  .ledger colgroup { display: none; }
  .ledger thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .ledger tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr)); gap: 12px; }
  .ledger tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-content: start; }
  .ledger tr > :first-child { grid-column: 1 / -1; }
  .ledger td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 650 11px/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 400 15px/1.55 var(--ui); overflow-wrap: anywhere; }
main { padding-block: clamp(24px, 4vw, 56px) 60px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-style: normal; font-weight: 600; letter-spacing: -.025em; line-height: 1.06; }
h1 { max-width: 20ch; font-size: clamp(36px, 5.35vw, 78px); margin-block: 10px 16px; }
h2 { font-size: clamp(28px, 3.3vw, 46px); }
h3 { font-size: clamp(21px, 2vw, 28px); }
p { margin: 0 0 12px; }
a { color: var(--link); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #1B4B9C; outline-offset: 2px; }
a:active, button:active, summary:active { color: var(--ink); background: var(--wash); }
[disabled] { opacity: .58; cursor: not-allowed; }
[aria-busy="true"] { cursor: progress; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
.mono, .num, code, .grade-pill, .kpi-val, time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
pre { max-width: 100%; margin-block: 12px; padding: 14px; background: var(--wash); white-space: pre-wrap; overflow-wrap: anywhere; }
.kicker, .kpi-label, .folio dt, .ledger thead th { font: 700 11px/1.35 var(--ui); text-transform: uppercase; letter-spacing: .08em; }
.kicker { display: inline-block; color: var(--muted); }
.lede { max-width: 65ch; color: var(--ink-2); font-size: clamp(15px, 1.45vw, 20px); }
.skip { position: absolute; z-index: 1; background: var(--plate); padding: 10px; }
.skip:not(:focus) { clip-path: inset(50%); }
.masthead { padding-top: 16px; }
.folio { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 0; border-top: 4px double var(--ink); border-bottom: 1px solid var(--rule); padding-block: 8px; }
.folio div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; }
.folio dt { color: var(--muted); }
.folio dd { margin: 0; font-size: 11px; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 22px; border-bottom: 1px solid var(--rule); }
.wordmark { color: var(--ink); font: 700 clamp(29px, 3vw, 40px)/1.12 var(--display); letter-spacing: -.045em; padding-block: 9px; text-decoration: none; }
.wordmark span { color: var(--pass); }
.nav, .footer nav { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 2vw, 26px); }
.nav a, .footer nav a, .action { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.nav a { font-size: 13px; font-weight: 650; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--link); border-bottom-color: var(--link); }
.section { margin-top: clamp(26px, 5vw, 64px); }
.section-head { display: flex; justify-content: space-between; gap: 0 16px; flex-wrap: wrap; align-items: end; border-top: 2px solid var(--ink); padding-top: 13px; margin-bottom: 15px; }
.section-head p { margin: 6px 0 0; }
.panel, .evidence-reader { background: var(--plate); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: clamp(14px, 2.2vw, 28px); }
.panel > h3 { margin-bottom: 8px; }
.disclosure, [data-error], [data-empty] { border-left: 2px solid var(--warn); background: var(--wash); padding: 10px 14px; margin-top: 14px; }
[data-error] { border-color: var(--fail); }
[data-empty] { border-color: var(--rule); }
.kpi-strip { margin-top: 26px; border-block: 1px solid var(--rule); }
.kpi { padding: 13px 15px 14px 0; min-width: 0; }
.kpi-val { font-size: clamp(17px, 2.5vw, 29px); line-height: 1.15; margin-block: 5px; }
.kpi-sub, .tool-domain, .fine { font-size: 12px; color: var(--muted); }
.badge, .grade-pill { display: inline-block; vertical-align: middle; padding: 2px 5px; border: 1px solid currentColor; border-radius: var(--stamp-radius); font-size: 11px; font-weight: 700; }
.grade-lg { font-size: 26px; }
.badge-pass { color: var(--pass); } .badge-info { color: var(--link); }
.badge-warn { color: var(--warn); } .badge-fail { color: var(--fail); }
.badge-muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { background: var(--wash); }
.tool-title { display: inline-block; font-weight: 750; }
.tool-domain { display: block; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 18px 30px; border-top: 2px solid var(--ink); font-size: 12px; color: var(--ink-2); }
.dropzone { display: block; padding: 18px; border: 1px dashed var(--muted); border-radius: var(--stamp-radius); cursor: pointer; }
.dropzone:hover, .dropzone.dragover { background: var(--wash); }

@media (max-width: 859px) {
  .ledger tr { padding: 8px 12px; background: var(--plate); border-top: 2px solid var(--ink); }
  .ledger td { padding: 8px 0; }
  .ledger td:nth-last-child(-n + 2) { border-bottom: 0; }
  .ledger .tool-title { min-height: 44px; display: inline-flex; align-items: center; }
}
