:root {
  color-scheme: light;
  --paper: #f3efe6;
  --paper-2: #ebe5d9;
  --surface: #fffdf8;
  --ink: #171816;
  --muted: #62635d;
  --rule: #d4ccbd;
  --rule-strong: #a9a090;
  --accent: #a82f1e;
  --accent-dark: #762014;
  --confirmed: #17594c;
  --confirmed-bg: #e3eee9;
  --reported: #795009;
  --reported-bg: #f4ead2;
  --unknown: #5a4864;
  --unknown-bg: #ece6ef;
  --max: 1180px;
  --narrow: 820px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shadow: 0 18px 50px rgb(32 27 19 / 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: #ead0c8; color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.6rem;
  left: 0.6rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 2px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.shell { width: min(calc(100% - 2.25rem), var(--max)); margin-inline: auto; }
.narrow { max-width: var(--narrow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(137 125 107 / 0.36);
  background: rgb(243 239 230 / 0.96);
}
.header-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-grid;
  grid-template-columns: 15px 7px;
  gap: 3px;
  width: 25px;
  height: 18px;
  transform: skewX(-10deg);
}
.brand-mark span:first-child { background: var(--accent); }
.brand-mark span:last-child { background: var(--ink); }
.site-header nav { display: flex; align-items: center; gap: 1.35rem; }
.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
  text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 0.28em; }

.story-head { padding-top: clamp(3rem, 7vw, 6.2rem); padding-bottom: clamp(2.7rem, 6vw, 5rem); }
.eyebrow,
.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7.2vw, 4.65rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.045em;
}
h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h3 { margin: 1.8rem 0 0.65rem; font-size: 1.15rem; line-height: 1.25; }
p { margin: 0 0 1.15rem; }
.dek {
  max-width: 50rem;
  margin: 1.55rem 0 1.5rem;
  color: #34352f;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.5vw, 1.45rem);
  line-height: 1.45;
}
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 620;
}
.affiliation-note {
  margin: 1.25rem 0 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.9rem;
}

.status-band {
  border-block: 1px solid var(--rule-strong);
  background: #e9e3d8;
}
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.status-stat {
  min-width: 0;
  padding: 1.35rem 1.15rem 1.45rem;
  border-right: 1px solid var(--rule-strong);
}
.status-stat:first-child { border-left: 1px solid var(--rule-strong); }
.stat-label,
.stat-note { display: block; }
.stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.status-stat strong {
  display: block;
  margin: 0.16rem 0 0.08rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
}
.stat-note { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(190px, 240px);
  justify-content: space-between;
  gap: clamp(2.5rem, 7vw, 5rem);
  padding-top: clamp(2.8rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}
.article-body { min-width: 0; }
.article-body > section {
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--rule);
}
.article-body > section:first-child { padding-top: 0; border-top: 0; }
.article-body p,
.article-body li { max-width: 47rem; }
.article-body p { color: #2e302d; }
.article-body strong { color: var(--ink); }
.source-link {
  display: inline;
  margin-left: 0.25rem;
  white-space: nowrap;
  font-size: 0.88em;
  font-weight: 740;
}
.source-link::after { content: " ↗"; font-size: 0.85em; }
.source-note { color: var(--muted) !important; font-size: 0.88rem; }
.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.4rem;
}
.section-heading-row h2 { margin-bottom: 0; }
.section-intro { margin: 0 !important; color: var(--muted) !important; font-size: 0.88rem; line-height: 1.5; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 1.35rem 0 1rem;
}
.filter-button {
  min-height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.45rem 0.78rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
}
.filter-button:hover { background: var(--paper-2); }
.filter-button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter-count { margin-left: auto; color: var(--muted); font-size: 0.8rem; }

.table-wrap { width: 100%; overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
caption { padding: 0.75rem 0; color: var(--muted); font-size: 0.8rem; text-align: left; caption-side: bottom; }
th, td { padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th {
  background: #e8e1d5;
  color: #3d3e39;
  font-size: 0.71rem;
  font-weight: 840;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
tbody th { font-size: 0.9rem; line-height: 1.4; }
tbody td { color: #393a36; font-size: 0.87rem; line-height: 1.5; }
.evidence-table thead th:nth-child(1) { width: 112px; }
.evidence-table thead th:nth-child(2) { width: 210px; }
.evidence-table thead th:nth-child(4) { width: 120px; }
.comparison-table thead th:first-child { width: 135px; }
.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.15rem 0.48rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.69rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.status-confirmed { color: var(--confirmed); background: var(--confirmed-bg); }
.status-reported { color: var(--reported); background: var(--reported-bg); }
.status-unknown { color: var(--unknown); background: var(--unknown-bg); }
tr[hidden] { display: none !important; }

.schematic { margin: 2rem 0 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--surface); }
.schematic-title {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.vehicle-zones { display: grid; grid-template-columns: 1.2fr 1fr 1.15fr 1.35fr; min-height: 190px; }
.zone {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.32rem;
  padding: 1rem;
  border-right: 1px solid var(--rule);
}
.zone:last-child { border-right: 0; }
.zone::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--ink); }
.zone-front::before { background: var(--accent); }
.zone-cargo::before { background: var(--reported); }
.zone-number {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  color: var(--muted);
  font: 700 1.6rem/1 var(--serif);
}
.zone strong { font-size: 0.91rem; line-height: 1.2; }
.zone small { color: var(--muted); font-size: 0.74rem; line-height: 1.35; }
.schematic figcaption { padding: 0.8rem 0.9rem 0.95rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

.timeline-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.timeline-list li {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 1.25rem;
  position: relative;
  padding: 0 0 2rem 1.15rem;
  border-left: 1px solid var(--rule-strong);
}
.timeline-list li::before {
  content: "";
  position: absolute;
  top: 0.43rem;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.timeline-list time,
.time-label { color: var(--muted); font-size: 0.76rem; font-weight: 780; line-height: 1.4; }
.timeline-list strong { display: block; font-size: 1rem; line-height: 1.35; }
.timeline-list p { margin: 0.45rem 0 0; font-size: 0.92rem; }
.timeline-future { border-left-style: dashed !important; }
.timeline-future::before { background: var(--accent) !important; }

.unknown-list,
.source-list,
.method-list { margin: 1.2rem 0 0; padding-left: 1.25rem; }
.unknown-list li,
.source-list li,
.method-list li { padding: 0.25rem 0 0.55rem 0.25rem; }
.source-list { list-style: none; padding-left: 0; }
.source-list li {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}
.source-list li:first-child { border-top: 1px solid var(--rule); }
.source-list a { font-weight: 760; }
.source-list span { color: var(--muted); font-size: 0.87rem; }
.source-list.compact { list-style: disc; padding-left: 1.25rem; }
.source-list.compact li { display: list-item; padding: 0.25rem 0 0.55rem 0.25rem; border: 0; }
.takeaway {
  margin-top: 1.5rem;
  padding-inline: clamp(1.1rem, 3vw, 1.8rem) !important;
  border: 1px solid var(--rule-strong) !important;
  border-left: 5px solid var(--accent) !important;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rail { min-width: 0; }
.rail-inner { position: sticky; top: 94px; padding-top: 0.2rem; }
.rail-title {
  margin: 0 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.rail dl { margin: 0; }
.rail dl > div { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.rail dt { color: var(--muted); font-size: 0.7rem; font-weight: 760; text-transform: uppercase; letter-spacing: 0.06em; }
.rail dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.rail-link { display: inline-block; margin-top: 1rem; font-size: 0.84rem; font-weight: 760; }

.site-footer { border-top: 1px solid #30302e; background: #181917; color: #d8d7d1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.7fr 1fr; gap: 2rem; padding-top: 2.8rem; padding-bottom: 3rem; }
.footer-brand { color: #fff; }
.footer-brand .brand-mark span:last-child { background: #fff; }
.site-footer p { max-width: 35rem; margin: 0.65rem 0 0; color: #b9bab4; font-size: 0.84rem; }
.site-footer a { display: block; width: fit-content; min-height: 32px; color: #f3efe6; }
.footer-label { margin: 0 0 0.5rem !important; color: #fff !important; font-size: 0.72rem !important; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }

.utility-page { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.utility-page h1 { font-size: clamp(2.35rem, 6vw, 4rem); }
.utility-page > section { padding: clamp(2.4rem, 5vw, 3.6rem) 0; border-top: 1px solid var(--rule); }
.utility-page > section:first-of-type { margin-top: 2.5rem; }
.method-dl { margin: 0; }
.method-dl > div { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.method-dl dt, .method-dl dd { margin: 0; }
.method-dl dd { color: #33342f; }
.utility-back { margin-top: 2.5rem; font-weight: 760; }
.error-page { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.error-page .error-code { margin: 0 0 0.5rem; color: var(--accent-dark); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.error-page p { max-width: 34rem; margin-inline: auto; }

@media (max-width: 1000px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .rail { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  html { scroll-padding-top: 5.5rem; }
  .shell { width: min(calc(100% - 1.35rem), var(--max)); }
  .header-row { min-height: auto; padding-block: 0.65rem; align-items: flex-start; }
  .site-header nav { gap: 0.15rem 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
  .site-header nav a { min-height: 36px; font-size: 0.8rem; }
  .brand { min-height: 38px; }
  .story-head { padding-top: 2.8rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-stat { border-bottom: 1px solid var(--rule-strong); }
  .status-stat:nth-child(2n) { border-right: 1px solid var(--rule-strong); }
  .status-stat:nth-child(n+3) { border-bottom: 0; }
  .section-heading-row { grid-template-columns: 1fr; gap: 0.55rem; }
  .filter-count { width: 100%; margin-left: 0; padding-top: 0.3rem; }
  .vehicle-zones { grid-template-columns: 1fr 1fr; }
  .zone { min-height: 160px; border-bottom: 1px solid var(--rule); }
  .zone:nth-child(2n) { border-right: 0; }
  .zone:nth-child(n+3) { border-bottom: 0; }
  .timeline-list li { grid-template-columns: 1fr; gap: 0.35rem; padding-left: 1.2rem; }
  .source-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .method-dl > div { grid-template-columns: 1fr; gap: 0.65rem; }
}

@media (max-width: 620px) {
  .header-row { display: block; }
  .site-header nav { margin-top: 0.35rem; justify-content: flex-start; }
  .status-stat { padding: 1rem 0.8rem 1.15rem; }
  .stat-label { font-size: 0.64rem; }
  .status-stat strong { font-size: 1.32rem; }

  .responsive { display: block; background: transparent; }
  .responsive caption { display: block; }
  .responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .responsive tbody,
  .responsive tr,
  .responsive th,
  .responsive td { display: block; width: 100%; }
  .responsive tr { margin: 0 0 0.9rem; border: 1px solid var(--rule); background: var(--surface); }
  .responsive th,
  .responsive td {
    display: grid;
    grid-template-columns: minmax(92px, 0.55fr) minmax(0, 1.45fr);
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--rule);
  }
  .responsive tr > :last-child { border-bottom: 0; }
  .responsive th::before,
  .responsive td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 820;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .responsive th[scope="row"] { font-size: 0.88rem; }
  .table-wrap { overflow: visible; border-top: 0; }
}

@media (max-width: 420px) {
  .site-header nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .site-header nav a { min-height: 40px; }
  .vehicle-zones { grid-template-columns: 1fr; }
  .zone { border-right: 0; border-bottom: 1px solid var(--rule) !important; }
  .zone:last-child { border-bottom: 0 !important; }
  .responsive th,
  .responsive td { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header,
  .site-footer,
  .filter-bar,
  .rail,
  .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .shell { width: 100%; }
  .content-grid { display: block; padding-top: 2rem; }
  a { color: #000; text-decoration: underline; }
  .article-body > section { break-inside: avoid-page; }
}
