﻿/* Ukraine Air Archive: dark research publication.
   Tokens are the owner's palette. Spacing follows a 4px scale.
   --rule (#2C394A) is decorative only: it is below 3:1 on the page, so
   controls use --control, which meets 3:1 against both surfaces. */

:root {
  --bg: #0B1119;
  --surface: #151F2C;
  --rule: #2C394A;
  --ink: #E4EDF5;
  --muted: #9BAABD;
  --accent: #79A9DC;
  --amber: #E7C65B;
  --control: #6A7A8F;
  --accent-tint: rgba(121, 169, 220, 0.4);
  --hover: rgba(228, 237, 245, 0.05);
  --error: #EFA49B;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: 32px;
  --gap: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/24px var(--sans);
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }
code { font: 400 13px/20px var(--mono); color: var(--muted); }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* Focus: always visible, including focus moved by script. */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: 2px solid var(--amber); outline-offset: 4px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--s2); top: -64px; z-index: 10;
  background: var(--ink); color: var(--bg); padding: var(--s2) var(--s3); font-weight: 600;
}
.skip:focus { top: var(--s2); }

/* ---------------------------------------------------------------- layout */

.shell { max-width: 1312px; margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

/* -------------------------------------------------------------- masthead */

.masthead { border-bottom: 1px solid var(--rule); background: var(--bg); }
.masthead-row {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s6); row-gap: var(--s1);
  padding-top: var(--s4); padding-bottom: var(--s3);
}
.wordmark { font: 600 18px/24px var(--sans); letter-spacing: -0.005em; }
.wordmark a { color: var(--ink); text-decoration: none; }
.wordmark a:hover { text-decoration: underline; }
.masthead-tag { color: var(--muted); font-size: 14px; line-height: 20px; }
.period-line { margin-left: auto; font: 400 13px/20px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
.period-key { color: var(--muted); }
.period-line a, .period-line time { color: var(--ink); }
.period-line a { text-decoration-color: var(--control); }

.site-nav { border-top: 1px solid var(--rule); }
.site-nav-list {
  list-style: none; display: flex; gap: var(--s6); overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--s2) * -1); padding: 0 var(--s2);
}
.site-nav-list::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block; padding: var(--s3) 0 10px; white-space: nowrap; font-size: 14px; line-height: 20px;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); font-weight: 500; }
.site-nav a:focus-visible { outline-offset: -2px; }

/* ------------------------------------------------------------ view heads */

.view { padding-bottom: var(--s16); }
.view-head { padding: var(--s8) 0 var(--s6); }
#ov-trend:has(> :nth-child(2):last-child) > div { grid-column: span 6; }
@media (max-width: 599px) { #ov-trend:has(> :nth-child(2):last-child) > div { grid-column: span 12; } }
.eyebrow { font: 500 13px/20px var(--sans); color: var(--muted); letter-spacing: 0.02em; margin-bottom: var(--s2); }
.view-title { font: 600 40px/48px var(--serif); letter-spacing: -0.01em; color: var(--ink); width: fit-content; max-width: 100%; }
.standfirst { font: 400 20px/28px var(--serif); color: var(--ink); margin-top: var(--s3); max-width: 44em; }
.section-label { font: 600 13px/20px var(--sans); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--s3); }

.block { margin-top: var(--s12); border-top: 1px solid var(--rule); padding-top: var(--s6); }
.block-first { margin-top: var(--s4); }
.block-trend { margin-top: var(--s2); margin-bottom: var(--s10); }
.block-head { margin-bottom: var(--s5); max-width: 52em; }
.block-title { font: 600 22px/28px var(--sans); letter-spacing: -0.005em; }
.block-note { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: var(--s2); max-width: 52em; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: var(--s3); }

/* ---------------------------------------------------------------- states */

.state-band { padding-top: var(--s4); }
.state {
  border-left: 1px solid var(--control); background: var(--surface); padding: var(--s3) var(--s4);
  max-width: 56em;
}
.state p + p, .state p + button, .state p + div { margin-top: var(--s2); }
.state .button { margin-top: var(--s3); }
.state-title { font-weight: 600; }
.state-loading { border-left-color: var(--control); }
.state-ok { border-left-color: var(--accent); }
.state-warning { border-left-color: var(--amber); }
.state-error { border-left-color: var(--error); }
.state-empty { border-left-color: var(--control); }
.state-condensed { padding: var(--s2) var(--s4); }
.state-condensed .state-title { font-weight: 500; font-size: 14px; line-height: 20px; }
.state-details { margin-top: var(--s1); font-size: 13px; line-height: 20px; color: var(--muted); }
.state-details > summary { cursor: pointer; color: var(--accent); width: fit-content; }
.state-details[open] > summary { margin-bottom: var(--s1); }
.state-details p + p { margin-top: var(--s1); }

/* -------------------------------------------------------------- overview */

.finding { margin-top: var(--s4); }
.finding-list { list-style: none; font: 400 20px/28px var(--serif); max-width: 40em; }
.finding-list li + li { margin-top: var(--s3); }
.finding-label { font-weight: 600; }
.finding-number { font-weight: 600; color: var(--ink); background: linear-gradient(transparent 62%, rgba(231, 198, 91, 0.22) 62%); }
.scope-line { margin-top: var(--s4); color: var(--muted); font-size: 15px; line-height: 24px; max-width: 48em; border-left: 1px solid var(--rule); padding-left: var(--s3); }
.scope-key { color: var(--ink); font-weight: 600; }
.lead-action { margin-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); }
.lead-action:empty, .scope-line:empty { display: none; }
.quiet-link { font-size: 14px; }

.ov-lead { row-gap: var(--s8); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }
.stat { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.stat-disputed, .stat.stat-disputed { border-top-color: var(--amber); }
.stat-label { font: 600 15px/20px var(--sans); }
.stat-figure { margin: var(--s2) 0 var(--s3); }
.stat-number { font: 600 48px/56px var(--sans); letter-spacing: -0.02em; }
.stat-number.stat-words { font: 600 24px/32px var(--sans); letter-spacing: -0.005em; display: block; }
.stat-unit { color: var(--muted); font-size: 16px; }
.stat-range { display: block; color: var(--ink); margin-top: var(--s1); }
.stat .badge { margin-bottom: var(--s3); }
.stat-source, .stat-def { font-size: 13px; line-height: 20px; color: var(--muted); }
.stat-source + .stat-source, .stat-def { margin-top: var(--s1); }
.stat-key { color: var(--ink); font-weight: 500; }

.ov-alerts:empty { display: none; }
.alert-strip { margin-top: var(--s8); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.alert-list { list-style: none; }
.alert-list li + li { margin-top: var(--s1); }
.alert-label { color: var(--muted); }
.alert-value { font-weight: 600; }
.alert-strip .kind-note { margin-top: var(--s2); }

.ov-aside { border-left: 1px solid var(--rule); padding-left: var(--s6); align-self: start; }
.facts > div { padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: 13px; line-height: 20px; color: var(--muted); }
.facts dd { font-size: 15px; line-height: 22px; }
.dd-note { color: var(--muted); }

.multiples { row-gap: var(--s8); }
.multiple-title { font: 600 15px/20px var(--sans); }
.multiple-unit { font-size: 13px; line-height: 20px; color: var(--muted); }

.button-link { text-decoration: none; }

/* ---------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; max-width: 100%; position: relative; }
.table-scroll:focus-visible { outline-offset: 4px; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: var(--s2) var(--s4) var(--s2) 0; border-bottom: 1px solid var(--rule); }
.data-table thead th { font-weight: 500; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--control); white-space: nowrap; }
.data-table tbody th { font-weight: 500; }
.data-table .num { text-align: right; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.data-table thead .num { font-family: var(--sans); }
.data-table td:last-child, .data-table th:last-child { padding-right: 0; }
.data-table .is-disputed { color: var(--amber); }
.row-missing td, .row-missing th { color: var(--muted); }
.row-unknown th, .row-unknown td { color: var(--muted); }
.cell-note { display: block; font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 400; }
.months-table { max-width: 840px; min-width: 560px; }
.families-table { min-width: 640px; }
.corrections-table, .report-table { min-width: 640px; }
.path { display: block; font: 400 12px/16px var(--mono); color: var(--muted); }
.downloads-table { max-width: 960px; }
.downloads-table tbody th a { font-weight: 600; }
.fields-table { max-width: 960px; }
.fields-table tbody th { white-space: nowrap; }
.citation-example { font: 400 14px/22px var(--mono); color: var(--ink); background: var(--surface); padding: var(--s3) var(--s4); border-left: 1px solid var(--control); }

/* ---------------------------------------------------------------- badges */

.badge { display: inline-flex; align-items: center; gap: var(--s2); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink); }
.badge::before { content: ""; width: 10px; height: 10px; flex: none; }
.badge-corroborated::before { background: var(--accent); }
.badge-single_source::before { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent); }
.badge-disputed::before { background: var(--amber); transform: rotate(45deg) scale(0.85); }
.badge-disputed { color: var(--amber); }

/* -------------------------------------------------------------- archive */

.archive-layout { row-gap: var(--s8); align-items: start; }
.archive-side { position: sticky; top: var(--s4); }
.filters .field + .field { margin-top: var(--s3); }
.filter-actions { margin-top: var(--s4); }
.result-count { margin-top: var(--s2); font-size: 13px; color: var(--muted); }
.archive-summary { margin-top: var(--s8); }
.archive-summary .facts dd { font-size: 14px; line-height: 20px; }

.month + .month { margin-top: var(--s10); }
.month-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); border-bottom: 2px solid var(--ink); padding-bottom: var(--s2); }
.month-heading { font: 600 28px/36px var(--serif); }
.month-link { font-size: 14px; white-space: nowrap; }
.kind-group { margin-top: var(--s5); }
.kind-heading { font: 600 13px/20px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kind-note { font-size: 14px; line-height: 20px; color: var(--muted); margin-top: var(--s1); max-width: 48em; }

.record {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); column-gap: var(--gap); row-gap: var(--s3);
  padding: var(--s5) 0; border-bottom: 1px solid var(--rule);
}
.record-body { grid-column: 1 / -1; }
.record-title { font: 600 18px/24px var(--sans); }
.record-scope { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: var(--s2); }
.record-definition { font-size: 14px; line-height: 20px; margin-top: var(--s2); }
.definition-label { color: var(--muted); }
.figure { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s2); }
.figure-value { font: 600 32px/40px var(--sans); letter-spacing: -0.015em; }
.figure-unit { color: var(--muted); }
.figure-note { flex-basis: 100%; font-size: 13px; line-height: 20px; color: var(--muted); }
.figure-disputed .figure-value { font-size: 20px; line-height: 28px; color: var(--amber); }
.figure-withheld .figure-value { font-size: 20px; line-height: 28px; color: var(--error); }
.status-line { margin-top: var(--s2); }
.status-explain { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: var(--s1); }
.integrity { border-left: 1px solid var(--error); background: var(--surface); padding: var(--s3) var(--s4); margin-bottom: var(--s3); }
.integrity-title { font-weight: 600; color: var(--error); }
.competing { margin-bottom: var(--s3); }
.competing > :first-child, .media > :first-child { font: 600 13px/20px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--s1); }
.competing ul { list-style: none; }
.competing strong { font-family: var(--mono); font-weight: 500; color: var(--amber); }

.sources > summary { cursor: pointer; font-size: 14px; line-height: 20px; color: var(--accent); padding: var(--s1) 0; width: fit-content; }
.sources > summary:hover { color: var(--ink); }
.sources[open] > summary { margin-bottom: var(--s2); }
.family { border-left: 1px solid var(--rule); padding: var(--s1) 0 var(--s1) var(--s4); margin-top: var(--s2); }
.family > :first-child { font: 500 14px/20px var(--sans); }
.family-label { color: var(--muted); font-weight: 400; }
.family-unknown { border-left-style: dashed; }
.family-note { font-size: 13px; line-height: 20px; color: var(--muted); }
.evidence { list-style: none; margin-top: var(--s1); }
.evidence li { padding: var(--s1) 0; font-size: 14px; line-height: 20px; }
.evidence-meta { display: block; color: var(--muted); font-size: 13px; }
.evidence-meta strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.reading-retained { color: var(--amber); }
.withheld { color: var(--muted); }
.measure-key { font-size: 12px; color: var(--muted); margin-top: var(--s2); }

.media { margin-top: var(--s4); }
.media-note { font-size: 13px; line-height: 20px; color: var(--muted); max-width: 52em; }
.media-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); margin-top: var(--s3); }
.media-item { border-top: 1px solid var(--control); padding-top: var(--s2); font-size: 14px; line-height: 20px; }
.media-item > * + * { margin-top: var(--s1); }
.media-kind { font: 500 12px/16px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.media-credit { color: var(--muted); }
.media-credit strong { color: var(--ink); font-weight: 500; }
.content-note { font-size: 13px; line-height: 20px; color: var(--ink); border-left: 1px solid var(--amber); padding-left: var(--s2); }
.content-note strong { font-weight: 600; }

/* -------------------------------------------------------------- report */

.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s4); border-bottom: 1px solid var(--rule); padding-bottom: var(--s3); }
.pager:empty { display: none; }
.pager-link { font-size: 14px; min-width: 8em; }
.pager-next { text-align: right; }
.pager-jump { display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--muted); }
.pager-jump label { margin: 0; white-space: nowrap; font-size: 13px; font-weight: 400; }
.pager-select { min-width: 11em; }
.report-table { max-width: 1040px; }
.report-table .badge { white-space: nowrap; }
.records-report .kind-group:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- charts */

.chart { margin-top: var(--s3); }
.chart-stage { position: relative; min-height: 168px; }
.chart-svg { display: block; overflow: visible; touch-action: pan-y; }
.chart-svg text { font-family: var(--mono); font-size: 11px; }
.chart-svg .tick { fill: var(--muted); }
.chart-svg .tick-strong { fill: var(--ink); font-weight: 600; }
.chart-svg .tick-year { fill: var(--muted); font-size: 10px; }
.chart-svg .gridline { stroke: var(--rule); stroke-width: 1; }
.chart-svg .baseline { stroke: var(--control); stroke-width: 1; }
.chart-svg .bar-corroborated { fill: var(--accent); }
.chart-svg .bar-single_source { fill: var(--accent-tint); stroke: var(--accent); stroke-width: 1.25; }
.chart-svg .bar-zero { stroke: var(--accent); stroke-width: 2; }
.chart-svg .range { stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.chart-svg .gap { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 3; }
.chart-svg .gap-withheld { stroke: var(--error); }
.chart-svg .value-label { fill: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 600; }
.chart-svg .gap-label { fill: var(--muted); font-family: var(--sans); font-size: 11px; font-style: italic; }
.chart-svg .slot-hit { fill: transparent; }
.chart-svg .slot.is-active .slot-hit { fill: var(--hover); }
.chart-svg .slot.is-active .bar, .chart-svg .slot.is-highlight .bar { stroke: var(--ink); stroke-width: 1.5; }
.chart-svg .slot.is-highlight .range { stroke-width: 3; }
.chart-svg:focus-visible { outline-offset: 4px; }
.chart-readout { font-size: 13px; line-height: 20px; color: var(--ink); min-height: 40px; margin-top: var(--s2); }
.chart-table { margin-top: var(--s2); }
.chart-table > summary { cursor: pointer; font-size: 13px; color: var(--accent); width: fit-content; }
.chart-table[open] > summary { margin-bottom: var(--s2); }
.chart-table .data-table { font-size: 13px; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: 12px; line-height: 16px; color: var(--muted); margin-top: var(--s2); }
.legend-item { display: inline-flex; align-items: center; gap: var(--s2); }
.legend .swatch { width: 12px; height: 12px; flex: none; }
.legend-corroborated .swatch { background: var(--accent); }
.legend-single_source .swatch { background: var(--accent-tint); box-shadow: inset 0 0 0 1.25px var(--accent); }
.legend-disputed .swatch { width: 2px; background: var(--amber); margin: 0 5px; }
.legend-missing .swatch { height: 0; border-top: 1.5px dashed var(--muted); }

/* Coverage matrix */
.matrix-scroll { margin-top: var(--s4); position: relative; }
.matrix { border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.matrix th, .matrix td { padding: 0; }
.matrix-corner { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding-right: var(--s4) !important; }
.matrix-year { font: 500 11px/16px var(--mono); color: var(--muted); text-align: left; border-left: 1px solid var(--control); padding-left: var(--s1) !important; }
.matrix-month { font: 400 11px/16px var(--mono); color: var(--muted); width: 24px; text-align: center; }
.matrix-month abbr { text-decoration: none; }
.matrix-label { text-align: left; font-weight: 500; padding: var(--s1) var(--s4) var(--s1) 0 !important; min-width: 14em; max-width: 22em; line-height: 18px; }
.matrix-cell { width: 24px; height: 28px; text-align: center; vertical-align: middle; }
.matrix-cell a { display: flex; align-items: center; justify-content: center; width: 24px; height: 28px; }
.matrix-cell a:hover { background: var(--hover); }
.cell-mark { display: inline-block; width: 12px; height: 12px; }
.mark-corroborated { background: var(--accent); }
.mark-single_source { background: var(--accent-tint); box-shadow: inset 0 0 0 1.25px var(--accent); }
.mark-disputed { background: var(--amber); transform: rotate(45deg) scale(0.8); }
.mark-withheld { background: var(--error); height: 2px; }
.mark-missing { width: 3px; height: 3px; border-radius: 50%; background: var(--control); }
.legend .cell-mark { flex: none; }

/* -------------------------------------------------------------- regions */

.cases-count { color: var(--muted); font-size: 14px; margin-bottom: var(--s4); }
.case { padding: var(--s6) 0; border-top: 1px solid var(--rule); row-gap: var(--s3); }
.case-date { font: 500 14px/20px var(--mono); }
.case-city { font: 600 18px/24px var(--serif); margin-top: var(--s1); }
.case-title { font: 600 20px/28px var(--sans); margin-bottom: var(--s2); }
.case-body > * + * { margin-top: var(--s3); }
.case-summary { max-width: 44em; }
.case-sources { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4); }
.case-source { border-top: 1px solid var(--control); padding-top: var(--s2); font-size: 14px; line-height: 20px; }
.case-source > * + * { margin-top: var(--s1); }
.case-source-meta { font-size: 12px; line-height: 16px; color: var(--muted); }
.case-source-meta .kind { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.host { color: var(--muted); }
.case-photo-wrap > * + * { margin-top: var(--s2); }
.case-photo > summary { cursor: pointer; color: var(--accent); width: fit-content; font-size: 14px; }
.case-photo figure { margin-top: var(--s3); max-width: 720px; }
.case-photo img { width: 100%; background: var(--surface); }
.case-photo figcaption { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: var(--s2); }
.chronology-list { list-style: none; }
.chronology-item { padding: var(--s5) 0; border-top: 1px solid var(--rule); row-gap: var(--s2); }
.chronology-date { font: 500 14px/20px var(--mono); }
.chronology-title { font: 600 18px/24px var(--sans); }
.link-list { list-style: none; }
.link-list li + li { margin-top: var(--s1); }

/* Classification registry marks (classification.js). Colours come from the
   registry through each icon's color attribute; glyphs stroke currentColor. */
.cls-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.cls-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cls-tag { display: inline-flex; align-items: center; gap: var(--s2); font-size: 13px; line-height: 20px; color: var(--muted); margin-top: var(--s2); }
.cls-icons { display: inline-flex; gap: 2px; }
.cls-combined .cls-icons { padding: 1px 3px; border: 1px dashed var(--control); border-radius: 3px; }
.legend-scope .cls-tag { margin-top: 0; font-size: 12px; line-height: 16px; }
.legend-scope .cls-icon { width: 16px; height: 16px; }
.cls-legend { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s4) var(--s5); margin-top: var(--s3); color: var(--ink); font-size: 14px; line-height: 20px; }
.cls-legend-item { min-width: 0; }
.cls-legend .cls-legend-item > dt { display: flex; align-items: center; gap: var(--s2); font-weight: 500; color: var(--ink); }
.cls-legend .cls-legend-def { margin: var(--s1) 0 0; padding-left: 28px; color: var(--muted); font-size: 13px; line-height: 20px; }
@media (forced-colors: active) { .cls-icon { color: CanvasText !important; } }

/* ------------------------------------------------------------ methodology */

.method-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); max-width: 1040px; }
.method-list > div { padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.method-list dt { font-weight: 600; }
.method-list dd { color: var(--muted); margin-top: var(--s1); font-size: 15px; line-height: 24px; }
.report .grid { row-gap: var(--s8); }
.report-privacy { color: var(--muted); font-size: 14px; line-height: 20px; }
.report-rules { border-left: 1px solid var(--rule); padding-left: var(--s6); align-self: start; }
.report-rules ul { padding-left: var(--s5); }
.report-rules li + li { margin-top: var(--s2); }
.report-rules p { margin-top: var(--s4); color: var(--muted); font-size: 14px; line-height: 20px; }
#report-state { margin-top: var(--s5); }

/* ---------------------------------------------------------------- forms */

.field { margin: 0; }
.report-form { margin-top: var(--s5); }
.report-form .field { margin-top: var(--s5); border: 0; padding: 0; }
.report-form > .hint:first-child { margin-top: 0; }
label, legend, .label-like { display: block; font-weight: 500; font-size: 15px; line-height: 20px; margin-bottom: var(--s1); padding: 0; }
.filters label { font-size: 13px; color: var(--muted); font-weight: 400; }
.hint { font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: var(--s2); }
.hint.count { margin: var(--s1) 0 0; }
.count-over { color: var(--error); }
.field-error { color: var(--error); font-weight: 500; font-size: 14px; margin-bottom: var(--s2); }
.field-invalid input, .field-invalid textarea { border-color: var(--error); border-width: 2px; }

select, input, textarea, button { font: inherit; }
select, input[type="month"], input[type="url"], input[type="text"], textarea {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--control); border-radius: 2px;
  padding: var(--s2) var(--s3); min-height: 40px; font-size: 15px; line-height: 24px;
}
select { appearance: none; padding-right: var(--s8);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
select:hover, input:hover, textarea:hover { border-color: var(--muted); }
textarea { resize: vertical; }
input[type="month"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.choice { display: flex; align-items: center; gap: var(--s2); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.choice label { margin: 0; font-weight: 400; }

.button {
  display: inline-flex; align-items: center; min-height: 40px; padding: var(--s2) var(--s5);
  background: var(--ink); color: var(--bg); border: 0; border-radius: 2px; font-weight: 600; font-size: 15px; line-height: 24px; cursor: pointer;
}
.button:hover { background: #FFFFFF; color: var(--bg); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-quiet {
  min-height: 36px; padding: var(--s1) var(--s3); background: transparent; color: var(--ink);
  border: 1px solid var(--control); border-radius: 2px; cursor: pointer; font-size: 14px;
}
.button-quiet:hover { border-color: var(--ink); }
.report-form .button { margin-top: var(--s6); }
.error-summary { border: 2px solid var(--error); padding: var(--s4); margin-bottom: var(--s4); }
.error-summary h3 { font-size: 16px; color: var(--error); }
.error-summary ul { padding-left: var(--s5); margin-top: var(--s2); }
.report-result { margin-top: var(--s5); }
.turnstile { min-height: 66px; }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--rule); padding: var(--s6) 0 var(--s10); color: var(--muted); font-size: 13px; line-height: 20px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s8); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .masthead-tag { display: none; }
}

@media (max-width: 899px) {
  :root { --gutter: 24px; --gap: 16px; }
  .span-8, .span-9, .span-7, .span-5 { grid-column: span 12; }
  .span-4 { grid-column: span 6; }
  .span-3 { grid-column: span 12; }
  .ov-aside { border-left: 0; padding-left: 0; grid-column: span 12; border-top: 1px solid var(--rule); padding-top: var(--s4); }
  .archive-side { position: static; }
  .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s4); }
  .filters .section-label, .filter-actions { grid-column: 1 / -1; }
  .filters .field + .field { margin-top: 0; }
  .filter-actions { display: flex; align-items: center; gap: var(--s4); margin-top: 0; }
  .filter-actions .result-count { margin: 0; }
  .archive-summary { margin-top: var(--s4); }
  .archive-summary .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .archive-summary .facts > div:nth-child(2) { border-top: 0; padding-top: 0; }
  .report-rules { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s4); }
  .case-meta { display: flex; gap: var(--s3); align-items: baseline; }
  .case-city { margin-top: 0; }
  .chronology-date { grid-column: span 12; }
}

@media (max-width: 599px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .masthead-row { padding-top: var(--s3); padding-bottom: var(--s2); }
  .period-line { margin-left: 0; font-size: 12px; }
  .site-nav-list { gap: var(--s5); }
  .view-head { padding: var(--s6) 0 var(--s4); }
  .view-title { font-size: 32px; line-height: 40px; }
  .standfirst, .finding-list { font-size: 18px; line-height: 26px; }
  .span-4 { grid-column: span 12; }
  .stat-number { font-size: 40px; line-height: 48px; }
  .filters { grid-template-columns: 1fr; }
  .archive-summary .facts { grid-template-columns: 1fr; }
  .archive-summary .facts > div:nth-child(2) { border-top: 1px solid var(--rule); padding-top: var(--s3); }
  .record { grid-template-columns: 1fr; }
  .month-heading { font-size: 24px; line-height: 32px; }
  .method-list { grid-template-columns: 1fr; }
  .pager { flex-wrap: wrap; }
  .pager-jump { order: 3; flex-basis: 100%; }
  .pager-jump .pager-select { flex: 1; }
  .block { margin-top: var(--s10); }
  .block-title { font-size: 20px; line-height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (forced-colors: active) {
  .badge::before, .cell-mark, .legend .swatch { forced-color-adjust: none; background: CanvasText; }
  .chart-svg .bar-corroborated, .chart-svg .bar-single_source { fill: CanvasText; }
  .chart-svg .range { stroke: Highlight; }
}

@media print {
  .site-nav, .skip, .report, .chart-table > summary { display: none; }
  body { background: #fff; color: #000; }
}
