/* Buffalo Forward site prototype, Nov 23, 2026. Base: Direction A (Index). Type is the loudest thing,
   density is high, record metadata sits at the margins as texture. Borrowed: C's exhibit card and
   redaction bar, in ink; B's rule that colour means one thing only, strength of evidence (--ev1
   strongest to --ev4 weakest), used for the report's tiers and the charter's evidence tiers alike. */
:root {
  --paper: oklch(97.5% 0.006 250);
  --sheet: oklch(99.5% 0.003 250);
  --ink: oklch(22% 0.025 258);
  --muted: oklch(47% 0.02 258);
  --rule: oklch(86% 0.01 250);
  --tint: oklch(90% 0.03 250);
  --ev1: oklch(38% 0.13 255);   /* strongest evidence; paper on it 9.4:1 (dark theme 10.3:1) */
  --ev2: oklch(52% 0.11 252);
  --ev3: oklch(70% 0.07 250);
  --ev4: oklch(86% 0.035 250);  /* weakest */
  --on-ev1: oklch(97.5% 0.006 250);
  --on-ev2: oklch(97.5% 0.006 250);
  --on-ev3: oklch(22% 0.025 258);
  --on-ev4: oklch(22% 0.025 258);
  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Archivo", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: oklch(17% 0.015 258); --sheet: oklch(21% 0.018 258); --ink: oklch(94% 0.008 250); --muted: oklch(72% 0.015 255); --rule: oklch(32% 0.015 258); --tint: oklch(32% 0.05 255); --ev1: oklch(80% 0.11 245); --ev2: oklch(66% 0.11 250); --ev3: oklch(50% 0.09 252); --ev4: oklch(36% 0.06 255); --on-ev1: oklch(17% 0.015 258); --on-ev2: oklch(17% 0.015 258); --on-ev3: oklch(94% 0.008 250); --on-ev4: oklch(94% 0.008 250); color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: oklch(17% 0.015 258); --sheet: oklch(21% 0.018 258); --ink: oklch(94% 0.008 250); --muted: oklch(72% 0.015 255); --rule: oklch(32% 0.015 258); --tint: oklch(32% 0.05 255); --ev1: oklch(80% 0.11 245); --ev2: oklch(66% 0.11 250); --ev3: oklch(50% 0.09 252); --ev4: oklch(36% 0.06 255); --on-ev1: oklch(17% 0.015 258); --on-ev2: oklch(17% 0.015 258); --on-ev3: oklch(94% 0.008 250); --on-ev4: oklch(94% 0.008 250); color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55; font-variation-settings: "wdth" 100; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 78rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.meta { font-family: var(--mono); font-size: .72rem; line-height: 1.4; color: var(--muted); letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: .4rem .6rem; z-index: 10; }
main { padding-block: 0 5rem; }
.draft-note { display: inline-block; font-family: var(--mono); font-size: .72rem; border: 1px dashed var(--muted); color: var(--muted); padding: .2rem .5rem; margin-top: 2rem; }

/* Masthead */
.mast { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding-block: 1.75rem 1.25rem; border-bottom: 2px solid var(--ink); }
.wordmark { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 70; font-size: 1.5rem; letter-spacing: -.01em; text-decoration: none; }
.nav { display: flex; gap: 1.25rem; font-family: var(--mono); font-size: .78rem; }
.nav a { text-decoration: none; padding-block: .3rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.margins { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; padding-block: .6rem; }

/* Home */
.statement { font-family: var(--display); font-weight: 850; font-variation-settings: "wdth" 104; font-size: clamp(2.3rem, 6.6vw, 6.2rem); line-height: .94; letter-spacing: -.03em; margin: .75rem 0 2rem; max-width: 17ch; text-wrap: balance; }
.statement .num, .lead .num, .deck .num, .hook .num { white-space: nowrap; }
/* The subheading: the second thing a reader sees, set between the headline and the deck */
.subhead { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 92; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; margin: -.75rem 0 2rem; max-width: 30ch; text-wrap: balance; }
.lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 4rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.lead p { margin: 0 0 .8rem; max-width: 38rem; }
.lead .deckline { font-size: 1.2rem; line-height: 1.45; }
.about-line { border-left: 2px solid var(--ink); padding-left: 1rem; }

/* Docket: the list of investigations */
.docket { width: 100%; border-collapse: collapse; margin-top: 3rem; }
.docket caption { text-align: left; font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 80; font-size: 1.35rem; padding-bottom: .6rem; }
.docket th, .docket td { text-align: left; vertical-align: top; padding: .9rem .9rem .9rem 0; border-top: 1px solid var(--rule); }
.docket thead th { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--muted); }
.docket td:first-child { font-family: var(--mono); font-size: .8rem; color: var(--muted); width: 4.5rem; }
.docket .title { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 85; font-size: 1.25rem; line-height: 1.2; width: 16rem; }
.docket .title a { text-decoration: none; }
.docket .title a:hover, .docket .title a:focus-visible { text-decoration: underline; }
.docket .hook { font-size: 1.02rem; max-width: 36rem; }
.docket .stage { font-family: var(--mono); font-size: .76rem; color: var(--muted); width: 10rem; }

/* Page heads */
.crumb { margin: 2rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.crumb a { color: var(--muted); }
.headline { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 90; font-size: clamp(2.1rem, 5.2vw, 4.4rem); line-height: .98; letter-spacing: -.025em; margin: 0 0 1.75rem; max-width: 20ch; text-wrap: balance; }
.pagetitle { font-family: var(--display); font-weight: 850; font-variation-settings: "wdth" 100; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; letter-spacing: -.03em; margin: 2rem 0 1.25rem; }
.deck { font-size: 1.25rem; line-height: 1.5; max-width: 42rem; margin: 0 0 2.5rem; }
.section { margin-top: 3.5rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.section > h2 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 0 0 1.25rem; }
.section > p, .prose p { max-width: 42rem; }
.prose ul { max-width: 42rem; padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }

/* Status strip */
.status { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; border: 1px solid var(--ink); padding: .65rem .9rem; margin-bottom: 2rem; }
.status div { font-family: var(--mono); font-size: .78rem; }
.status div b { font-weight: 500; color: var(--muted); margin-right: .4rem; }

/* Evidence: colour means strength of evidence, and the label always repeats it */
.ev { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; }
.ev::before { content: ""; width: .85rem; height: .85rem; border: 1px solid var(--ink); background: var(--c); flex: none; }
.chip { display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 500; padding: .2rem .5rem; }
.chip.ev1 { background: var(--ev1); color: var(--on-ev1); }
.chip.ev2 { background: var(--ev2); color: var(--on-ev2); }
.chip.ev3 { background: var(--ev3); color: var(--on-ev3); }
.chip.ev4 { background: var(--ev4); color: var(--on-ev4); }

/* Findings on investigation pages */
.findings { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.finding { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .25rem 1.25rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule); counter-increment: f; }
.finding::before { content: counter(f, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: 2.2rem; line-height: 1; color: var(--muted); }
.finding h3 { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 88; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.15; margin: .5rem 0 .6rem; max-width: 34ch; }
.finding p { margin: 0 0 .6rem; max-width: 42rem; }
.finding .meta { margin-top: .4rem; }
.limit { border-left: 2px solid var(--ink); padding: .2rem 0 .2rem 1rem; max-width: 42rem; }

/* Story: one chain as bars */
.chain { border-top: 2px solid var(--ink); padding-top: 1.25rem; max-width: 60rem; }
.chain h3, .docs h3 { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 85; font-size: 1.35rem; margin: 0 0 1.5rem; }
.row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .5rem 1.5rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.row .what { font-weight: 600; }
.row .what .meta { display: block; font-weight: 400; margin-top: .15rem; }
.bar { position: relative; height: 2.6rem; display: flex; align-items: center; }
.bar::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left center; }
.bar.light::before { background: var(--tint); }
.bar span { position: relative; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: 1.5rem; color: var(--paper); padding-left: .6rem; white-space: nowrap; }
.bar.light span { color: var(--ink); }
.chain p { max-width: 40rem; margin: 1.5rem 0 0; }

/* Exhibits (from C), in ink */
.docs { margin-top: 4rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.docs > p { max-width: 40rem; margin: -.75rem 0 2.25rem; }
.exhibits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; align-items: start; }
.exhibits li:nth-child(2) { margin-top: 2rem; }
.exhibits li:nth-child(3) { margin-top: 4rem; }
.exhibit { position: relative; background: var(--sheet); border: 1px solid var(--rule); padding: 1.9rem 1.1rem 1.2rem; }
.tag { position: absolute; top: -.8rem; left: 1.1rem; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 500; font-size: .74rem; padding: .25rem .55rem; }
.doc-h { font-family: var(--mono); font-size: .76rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .55rem; margin-bottom: .9rem; }
.fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.1rem; font-family: var(--mono); font-size: .86rem; margin: 0; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; overflow-wrap: anywhere; }
/* A redaction is black in both themes; on the dark sheet it gets a hairline so it still reads as a bar */
.redact { display: inline-block; background: oklch(12% 0.01 258); box-shadow: 0 0 0 1px var(--muted); border-radius: 1px; width: 8.5em; max-width: 100%; height: 1.05em; vertical-align: -.15em; }
.exhibits .lbl { font-size: .95rem; margin: .8rem 0 0; }

@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadein { 0%, 60% { opacity: 0; } to { opacity: 1; } }
@keyframes laydown { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bar::before { animation: grow linear both; animation-timeline: view(); animation-range: entry 100% cover 30%; }
    .bar span { animation: fadein linear both; animation-timeline: view(); animation-range: entry 100% cover 30%; }
    .exhibit { animation: laydown linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}

/* Ledger marks (the toolbox component), in ink */
mark.mk { color: inherit; background: linear-gradient(var(--tint), var(--tint)) no-repeat 0 70% / 100% 1.05em; padding: 0 .12em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.boxed { box-shadow: inset 0 0 0 1.5px var(--ink); padding: 0 .22em; white-space: nowrap; }
del.mk { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 58% / 100% 1.5px; }

/* Report of Record and other tables */
.record h3 { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 85; font-size: 1.3rem; margin: 2.75rem 0 .75rem; }
.record p { max-width: 42rem; }
.tablewrap { overflow-x: auto; }
table.journal { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
table.journal caption { text-align: left; font-weight: 600; padding-bottom: .5rem; }
table.journal th, table.journal td { padding: .55rem .9rem .55rem 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.journal thead th { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
table.journal td.n, table.journal th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.journal tr.total td { border-top: 1.5px solid var(--ink); font-weight: 700; }
table.journal tfoot td { font-size: .8rem; color: var(--muted); border-bottom: 0; padding-top: .75rem; }
table.journal td.mono { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.sources { font-size: .92rem; padding-left: 1.2rem; max-width: 46rem; }
.sources li { margin-bottom: .4rem; }
.cite { font-family: var(--mono); font-size: .8rem; border-left: 2px solid var(--ink); padding: .4rem 0 .4rem .9rem; max-width: 46rem; }
.corrections { font-size: .92rem; }

/* Records requests table: a note under each cell's main value */
table.requests { min-width: 52rem; }
table.requests td .meta { display: block; margin-top: .2rem; }
table.requests td:nth-child(3) { max-width: 22rem; }
table.agencies { min-width: 0; }
@media (max-width: 760px) {
  /* On a phone each request becomes a card: every cell on its own line, labelled */
  table.requests { min-width: 0; }
  table.requests thead { position: absolute; left: -9999px; }
  table.requests tr { display: block; border-top: 1.5px solid var(--ink); padding: .75rem 0; }
  table.requests td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; border: 0; padding: .3rem 0; text-align: left; }
  table.requests td::before { content: attr(data-label); font-family: var(--mono); font-size: .72rem; color: var(--muted); padding-top: .15rem; }
  table.requests td.n { text-align: left; }
  table.requests td .meta { grid-column: 2; }
}

/* Data page */
.datasets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; }
.dataset { border-top: 1.5px solid var(--ink); padding-top: .9rem; }
.dataset h3 { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 88; font-size: 1.2rem; line-height: 1.2; margin: 0 0 .5rem; }
.dataset p { margin: 0 0 .5rem; max-width: 40rem; }
.section h3 { font-family: var(--display); font-weight: 750; font-variation-settings: "wdth" 85; font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.sources-list { padding-left: 1.2rem; max-width: 46rem; }
.sources-list li { margin-bottom: .35rem; }

/* Footer */
.foot { border-top: 2px solid var(--ink); padding-block: 1.5rem 3rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-family: var(--mono); font-size: .78rem; }

@media (max-width: 760px) {
  .lead { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .mast { grid-template-columns: 1fr; }
  .docket .stage, .docket thead th:nth-child(4) { display: none; }
  .docket .title { width: auto; }
  .docket td:first-child { width: 3.2rem; }
  .exhibits { grid-template-columns: 1fr; }
  .exhibits li:nth-child(n) { margin-top: 0; }
  .finding { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
}
