:root {
  color-scheme: light dark;
  --paper: #e8dfcd;
  --paper-deep: #d8cebb;
  --sheet: #fbf6e9;
  --panel: var(--sheet);
  --ink: #33302a;
  --muted: #5a5850;
  --rule: #9b978c;
  --rule-strong: #5f625c;
  --sage: #9eaf95;
  --service: #28483d;
  --service-deep: #33513f;
  --terracotta: #a9462e;
  --dispatch: #9d3e2b;
  --dispatch-soft: #ead7cd;
  --bulletin: #d7b24f;
  --bulletin-ink: #272415;
  --focus: #006fc4;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --condensed: "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgb(25 27 24 / 3%) 80px);
  color: var(--ink);
  font: 18.667px/1.58 var(--sans);
  font-variant-numeric: tabular-nums;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: var(--sheet); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header {
  min-height: 88px;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  border-top: 7px solid var(--dispatch);
  border-bottom: 1px solid #071712;
  background: var(--service-deep);
  color: #f4efe2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { min-height: 64px; display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand-mark {
  min-width: 46px;
  height: 46px;
  padding: 0 .4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgb(244 239 226 / 70%);
  border-bottom: 5px solid var(--dispatch);
  color: #f4efe2;
  font: 700 0.847rem/1 var(--mono);
  letter-spacing: .06em;
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font: 400 1.367rem/1 var(--serif); letter-spacing: .01em; }
.brand small { margin-top: .34rem; color: #c8d1ca; font: 700 0.837rem/1 var(--condensed); letter-spacing: .18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; }
.site-nav a { min-width: 84px; display: grid; place-items: center; padding: .7rem 1rem; border-bottom: 5px solid transparent; color: #c8d1ca; font: 800 0.867rem/1 var(--condensed); letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.site-nav a + a { border-left: 1px solid rgb(244 239 226 / 22%); }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--dispatch); color: #fff; }
.eyebrow, .kicker, .mini-label {
  margin: 0;
  color: var(--service);
  font: 800 0.867rem/1.25 var(--condensed);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.app-shell { width: min(1640px, 100%); margin: auto; padding: 0 clamp(1rem, 4vw, 4.5rem) 3.5rem; }
.intro {
  --hero-image: url("/site/assets/optimized/banner-detail.webp");
  position: relative;
  min-height: clamp(340px, 32vw, 480px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 680px);
  gap: .8rem 1.2rem;
  align-content: end;
  margin-bottom: 1.7rem;
  padding: clamp(1.2rem, 3.5vw, 3.5rem);
  border-bottom: 7px solid var(--terracotta);
  background-color: var(--sage);
  background-image: linear-gradient(90deg, rgb(51 81 63 / 5%) 0 44%, rgb(51 81 63 / 28%) 100%), var(--hero-image);
  background-position: center 55%;
  background-size: cover;
  box-shadow: 0 10px 24px rgb(51 81 63 / 16%);
}
.app-shell[data-hero="driving"] .intro { --hero-image: url("/site/assets/optimized/banner-driving.webp"); background-position: center 58%; }
.app-shell[data-hero="detail"] .intro { --hero-image: url("/site/assets/optimized/banner-detail.webp"); background-position: center 55%; }
.app-shell[data-hero="empty"] .intro { --hero-image: url("/site/assets/optimized/banner-detail.webp"); background-position: center 55%; }
.intro-copy { grid-column: 2; padding: clamp(1.25rem, 2.5vw, 2.1rem); background: rgb(51 81 63 / 93%); color: #fffaf0; border-left: 7px solid var(--terracotta); box-shadow: 0 9px 28px rgb(9 21 17 / 25%); }
.intro .kicker { color: #f1b199; }
.intro h1 { max-width: 940px; margin: .42rem 0 .55rem; font: 400 clamp(2.367rem, 4vw, 4.417rem)/.96 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.lede { max-width: 720px; margin: 0; color: #e1e8df; font-size: 1.247rem; }
.snapshot { grid-column: 2; max-width: none; padding: .8rem 1rem; border-left: 7px solid var(--sage); background: rgb(251 246 233 / 94%); color: #3c443e; font: 700 0.927rem/1.55 var(--mono); box-shadow: 0 6px 20px rgb(9 21 17 / 18%); }
.snapshot::before { content: "CATALOG STATUS"; display: block; margin-bottom: .35rem; color: var(--ink); font: 800 0.807rem/1 var(--condensed); letter-spacing: .16em; }

.control-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  gap: 0;
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--ink);
  background: var(--sheet);
}
.view-switcher { display: flex; border-right: 1px solid var(--rule-strong); }
.view-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem 1rem .5rem;
  border-bottom: 6px solid transparent;
  text-decoration: none;
  font: 800 0.937rem/1 var(--condensed);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.view-link + .view-link { border-left: 1px solid var(--rule); }
.view-link span { min-width: 2rem; padding-left: .55rem; border-left: 1px solid var(--rule); text-align: center; font: 700 0.887rem/1 var(--mono); }
.view-link[aria-current="page"] { border-bottom-color: var(--dispatch); background: var(--ink); color: var(--sheet); }
.view-link[aria-current="page"] span { border-left-color: #777970; }
.search-box { min-height: 54px; display: grid; grid-template-columns: auto 34px minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: 0 .9rem; background: var(--sheet); }
.search-box::before { content: "KEYWORD"; color: var(--muted); font: 800 0.817rem/1 var(--condensed); letter-spacing: .14em; }
.search-icon { width: 34px; height: 34px; display: grid; place-items: center; }
.search-icon img { width: 32px; height: 32px; object-fit: contain; }
.search-box input { width: 100%; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 1.167rem/1 var(--sans); }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
kbd { border: 1px solid var(--rule); border-bottom: 3px solid var(--rule-strong); padding: .14rem .42rem; color: var(--muted); background: var(--paper); font: 0.887rem var(--mono); }

.notice { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--dispatch); border-left-width: 7px; background: var(--dispatch-soft); }
.freshness {
  position: relative;
  margin-top: 1rem;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border: 1px solid #5e5229;
  border-left: 10px solid var(--dispatch);
  background: var(--bulletin);
  color: var(--bulletin-ink);
}
.freshness[hidden] { display: none; }
.freshness .kicker { color: #4c421f; }
.freshness-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.freshness-head h2 { margin: .3rem 0 .2rem; font: 400 clamp(1.717rem, 2.5vw, 2.417rem)/1.05 var(--serif); }
.freshness-head p:last-child { margin: .45rem 0 0; color: #4a4328; }
.freshness-total { position: relative; min-width: 78px; min-height: 70px; display: grid; place-items: center; border: 3px double #514821; color: var(--bulletin-ink); font: 800 1.717rem/1 var(--mono); transform: rotate(1deg); }
.freshness-total::before { content: "CHANGES"; position: absolute; bottom: .35rem; font: 800 0.687rem/1 var(--condensed); letter-spacing: .12em; }
.freshness-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 1.2rem; border-top: 2px solid #665a2c; border-bottom: 1px solid #665a2c; }
.freshness-groups > div { padding: 1rem 1rem 1rem 0; }
.freshness-groups > div + div { padding-left: 1rem; border-left: 1px solid #766832; }
.freshness-groups h3 { margin: 0 0 .55rem; font: 800 0.907rem/1.3 var(--condensed); letter-spacing: .1em; text-transform: uppercase; }
.freshness-groups h3 span { margin-left: .25rem; font-family: var(--mono); }
.freshness-groups ul { margin: 0; padding: 0; list-style: none; }
.freshness-groups li + li { border-top: 1px solid #8a7839; }
.freshness-groups a { min-height: 52px; display: grid; align-content: center; padding: .5rem 0; text-decoration-thickness: 1px; text-underline-offset: .18rem; }
.freshness-groups a:hover strong { text-decoration: underline; }
.freshness-groups a span, .empty-group, .more-count { color: #4a4328; font-size: 0.957rem; }
.freshness-groups a span { display: block; }
.more-count, .empty-group { margin: .55rem 0 0; }
.freshness-empty { margin: 1rem 0 0; color: #4a4328; }

.taxonomy-panel { margin-top: 1rem; border: 1px solid var(--rule-strong); border-top: 5px solid var(--dispatch); background: var(--sheet); }
.taxonomy-panel[hidden] { display: none; }
.taxonomy-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--rule-strong); }
.taxonomy-panel h2 { margin: .2rem 0 0; font: 400 1.717rem/1.1 var(--serif); }
.taxonomy-panel > header > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 0.987rem; }
.facet-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facet-group { min-width: 0; margin: 0; padding: .85rem 1rem 1rem; border: 0; }
.facet-group + .facet-group { border-left: 1px solid var(--rule); }
.facet-group legend { width: 100%; padding: 0 0 .45rem; color: var(--service); font: 800 0.887rem/1.2 var(--condensed); letter-spacing: .13em; text-transform: uppercase; }
.facet-group legend span { float: right; color: var(--dispatch); font: 700 0.767rem/1.2 var(--mono); letter-spacing: 0; text-transform: none; }
.facet-options { display: grid; gap: 2px; }
.facet-option { min-height: 35px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .28rem .35rem; color: var(--muted); cursor: pointer; }
.facet-option:hover, .facet-option.is-selected { background: var(--dispatch-soft); color: var(--ink); }
.facet-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--dispatch); }
.facet-option span { font-size: 0.917rem; line-height: 1.2; }
.facet-option strong { min-width: 2ch; color: var(--service); font: 800 0.867rem/1 var(--mono); text-align: right; }

.desk { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(560px, 1.48fr); min-height: 640px; margin-top: 1rem; border: 1px solid var(--rule-strong); border-top: 5px solid var(--service); background: var(--sheet); }
.results-pane { min-width: 0; border-right: 1px solid var(--rule-strong); background: var(--paper-deep); }
.results-heading-row { min-height: 84px; padding: 1rem 1.15rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--rule-strong); }
.results-heading-row h2 { margin: .18rem 0 0; font: 400 1.717rem/1 var(--serif); }
.text-button { min-height: 44px; border: 0; background: transparent; color: var(--dispatch); font-weight: 700; text-decoration: underline; text-underline-offset: .18rem; cursor: pointer; }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .7rem; padding: .85rem 1rem .45rem; }
.filter-row label { min-width: 0; color: var(--muted); font: 800 0.827rem/1.2 var(--condensed); letter-spacing: .12em; text-transform: uppercase; }
.filter-row select { width: 100%; min-height: 44px; display: block; margin-top: .28rem; padding: .45rem 1.8rem .45rem .6rem; border: 1px solid var(--rule); border-radius: 0; background: var(--sheet); color: var(--ink); text-transform: none; letter-spacing: 0; font: 600 1.047rem/1 var(--sans); }
.filter-row .sort-control, .filter-row .text-button { grid-column: 1 / -1; }
.filter-row .text-button { justify-self: start; }
.filter-summary { min-height: 29px; margin: 0; padding: 0 1rem .65rem; color: var(--muted); font: 0.907rem/1.35 var(--mono); border-bottom: 1px solid var(--rule-strong); }
.results-list { max-height: 700px; overflow: auto; overscroll-behavior: contain; counter-reset: incident-record; }
.result-card { position: relative; min-height: 142px; padding: 1.05rem 3.2rem 1.05rem 1.45rem; border-bottom: 1px solid var(--rule); background: transparent; counter-increment: incident-record; }
.result-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: transparent; }
.result-card::after { content: counter(incident-record, decimal-leading-zero); position: absolute; top: 1rem; right: 1rem; color: var(--muted); font: 700 0.847rem/1 var(--mono); }
.result-card:hover { background: rgb(248 244 233 / 62%); }
.result-card.is-active { background: var(--sheet); }
.result-card.is-active::before { background: var(--dispatch); }
.result-card a { display: block; text-decoration: none; }
.result-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--dispatch); text-underline-offset: .18rem; }
.result-card h3 { margin: .38rem 0 .48rem; font: 400 1.307rem/1.18 var(--serif); }
.result-meta, .result-tags { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin: 0; color: var(--muted); font: 0.927rem/1.35 var(--mono); }
.result-tags { margin-top: .72rem; gap: .28rem .55rem; }
.tag { display: inline-block; padding: 0; color: var(--service); background: transparent; font: 700 0.857rem/1.3 var(--mono); }
.tag::before { content: "["; }
.tag::after { content: "]"; }
.incident-tags { gap: .35rem; }
.incident-tags .tag { padding: .22rem .45rem; border: 1px solid rgb(40 72 61 / 50%); background: rgb(40 72 61 / 8%); line-height: 1.2; }
.incident-tags .tag::before, .incident-tags .tag::after { content: none; }

.dossier { position: relative; min-width: 0; padding: clamp(1.4rem, 3vw, 3rem) clamp(1.4rem, 4vw, 4.2rem); background-color: var(--sheet); background-image: linear-gradient(90deg, transparent 0, transparent 3.15rem, rgb(146 46 37 / 24%) 3.15rem, rgb(146 46 37 / 24%) 3.22rem, transparent 3.22rem); }
.dossier-empty { min-height: 520px; display: grid; align-content: center; justify-items: start; max-width: 490px; margin-left: 1rem; }
.empty-index { display: block; margin-bottom: 1rem; color: var(--dispatch); font: 800 4.567rem/1 var(--mono); }
.dossier-empty h2 { margin: .4rem 0; font: 400 2.417rem/1.05 var(--serif); }
.dossier-empty p:last-child { color: var(--muted); }
.back-button { display: none; min-height: 44px; margin-bottom: 1rem; padding: .5rem .8rem; border: 1px solid var(--rule-strong); background: transparent; color: var(--service); font-weight: 700; cursor: pointer; }
.dossier-head h2 { max-width: 780px; margin: .48rem 0 .9rem; font: 400 clamp(2.317rem, 3.5vw, 3.917rem)/1 var(--serif); letter-spacing: -.025em; }
.dossier-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; padding: .65rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); font: 0.947rem/1.35 var(--mono); }
.dossier-summary { max-width: 72ch; margin: 1.45rem 0; font: 1.227rem/1.68 var(--sans); }
.dossier-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.favorite-button { min-height: 48px; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem .35rem .5rem; border: 1px dashed var(--rule-strong); background: transparent; color: var(--muted); cursor: pointer; }
.favorite-button img { width: 27px; height: 34px; object-fit: contain; }
.favorite-button strong { color: var(--ink); font-size: 1.007rem; }
.favorite-button span { padding-left: .55rem; border-left: 1px solid var(--rule); color: var(--dispatch); font: 800 0.777rem/1 var(--condensed); letter-spacing: .12em; text-transform: uppercase; }
.favorite-button.is-favorite { border-style: solid; border-color: var(--dispatch); background: var(--dispatch-soft); color: var(--dispatch); }
.favorite-button:disabled { cursor: wait; opacity: .72; }
.setting-taxonomy { margin: 1.3rem 0; padding: 1rem; border: 1px solid var(--rule); background: var(--paper); }
.setting-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: .8rem; }
.setting-groups > div > strong { display: block; margin-bottom: .35rem; color: var(--muted); font: 800 0.807rem/1.2 var(--condensed); letter-spacing: .1em; text-transform: uppercase; }
.setting-groups > div > div { display: flex; flex-wrap: wrap; gap: .3rem; }
.setting-chip { display: inline-block; padding: .22rem .4rem; border-left: 4px solid var(--dispatch); background: var(--sheet); color: var(--ink); font: 650 0.867rem/1.25 var(--sans); }
.teaching-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1.2rem; align-items: center; margin: 1.3rem 0; }
.score-panel { padding: .75rem 0 .75rem 1rem; border-left: 1px solid var(--rule); }
.score-summary { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: center; }
.score-summary > span { color: var(--ink); font: 800 1.517rem/1 var(--mono); }
.score-summary small { color: var(--muted); font: 600 0.817rem/1.25 var(--sans); }
.score-summary small strong { color: var(--dispatch); text-transform: uppercase; }
.score-dimensions { display: grid; gap: .25rem; margin-top: .65rem; }
.dimension { display: grid; grid-template-columns: 28px minmax(80px, 1fr) 14px; align-items: center; gap: .4rem; color: var(--muted); font: 700 0.767rem/1 var(--mono); }
.dimension i { height: 5px; overflow: hidden; background: var(--paper-deep); }
.dimension i b { display: block; height: 100%; background: var(--service); }
.dimension > strong { color: var(--ink); text-align: right; }
.custom-tags { margin: 1.3rem 0; padding: 1rem; border: 1px dashed var(--rule-strong); }
.custom-tags-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.custom-tags-heading p:last-child { margin: .35rem 0 0; color: var(--muted); font-size: 0.947rem; }
.custom-tags-heading > span { flex: 0 0 auto; color: var(--dispatch); font: 800 0.777rem/1 var(--condensed); letter-spacing: .12em; text-transform: uppercase; }
.custom-tag-list { min-height: 31px; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.custom-tag { min-height: 31px; display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .45rem; border: 1px solid var(--dispatch); background: var(--dispatch-soft); color: var(--ink); cursor: pointer; font-size: 0.917rem; }
.custom-tag b { color: var(--dispatch); font-size: 1.167rem; }
.custom-tag:disabled { cursor: wait; opacity: .7; }
.custom-tag-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin-top: .75rem; }
.custom-tag-form input { min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); }
.custom-tag-form button { min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--service); background: var(--service); color: #fff; cursor: pointer; font-weight: 700; }
.custom-tag-form :disabled { cursor: wait; opacity: .7; }
.annotation-message { margin: .6rem 0 0; color: var(--dispatch); font-size: 0.947rem; }
.source-link { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; color: var(--service); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: .22rem; }
.source-link.compact { min-height: 44px; font-size: 0.987rem; }
.layer-strip { display: flex; flex-wrap: wrap; gap: 1px; margin-top: .8rem; background: var(--rule); border: 1px solid var(--rule); }
.layer-strip span { padding: .28rem .5rem; background: var(--sheet); color: var(--muted); font: 700 0.787rem/1.25 var(--condensed); text-transform: uppercase; letter-spacing: .08em; }
.layer-strip .is-wired { color: var(--service); }
.dossier-rule { border: 0; border-top: 3px double var(--rule-strong); margin: 1.9rem 0; }
.preview-note { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; padding: .8rem 1rem; background: #eee3b8; border: 1px solid #9d8844; color: #47412d; }
.preview-note img { flex: 0 0 auto; width: 46px; height: 46px; object-fit: contain; }
.preview-note p { margin: 0; }
.preview-note strong { color: #242117; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-title-copy { display: flex; align-items: center; gap: .75rem; }
.section-icon { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; }
.section-title h3 { margin: .2rem 0 0; font: 400 2.017rem/1.05 var(--serif); }
.section-title > span { color: var(--muted); font: 0.887rem/1 var(--mono); }
.timeline ol { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.timeline-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; padding-bottom: 1.3rem; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; border-left: 1px solid var(--rule); }
.timeline-number { position: relative; z-index: 1; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-top: 5px solid var(--dispatch); background: var(--sheet); color: var(--ink); font: 800 0.867rem/1 var(--mono); }
.timeline-content { min-width: 0; padding: .1rem 0 .8rem; }
.timeline-labels { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .75rem; }
.timeline-labels strong { color: var(--muted); font: 700 0.867rem/1.3 var(--condensed); letter-spacing: .06em; text-transform: uppercase; }
.kind-badge { padding: .22rem .5rem; border-left: 5px solid #76a5bd; background: var(--service); color: #fff; font: 800 0.797rem/1 var(--condensed); letter-spacing: .1em; text-transform: uppercase; }
.timeline-content h4 { margin: .5rem 0 .4rem; font: 400 1.317rem/1.25 var(--serif); overflow-wrap: anywhere; }
.document-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; color: var(--muted); font: 0.887rem/1.4 var(--mono); }
.document-source { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: .85rem; color: var(--muted); font: 0.887rem/1.4 var(--mono); }
.document-source strong { color: var(--ink); }
.document-source .source-link { margin-top: 0; }
.timeline-empty { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: .8rem; align-items: start; padding: 1.3rem; border: 1px dashed var(--rule-strong); }
.timeline-empty h3 { margin: .3rem 0; font-family: var(--serif); }
.error-card, .no-results { padding: 2rem 1.3rem; }
.error-card h2, .no-results h3 { font-family: var(--serif); }
.no-results { min-height: 420px; display: grid; align-content: center; justify-items: start; }
.empty-state-icon { width: 112px; height: 112px; margin: 0 0 .8rem -.15rem; object-fit: contain; }
.no-results-mark { color: var(--dispatch); font: 800 4.567rem/1 var(--mono); }
.no-results h3 { margin: .3rem 0; font-size: 1.717rem; }
.clear-empty { min-height: 44px; margin-top: .75rem; padding: .5rem .85rem; border: 1px solid var(--service); background: transparent; color: var(--service); font-weight: 700; cursor: pointer; }
.muted-copy { color: var(--muted); font-size: 0.967rem; }

.about-shell { width: min(980px, 100%); margin: auto; padding: clamp(1.6rem, 5vw, 4.5rem) clamp(1rem, 4vw, 4.5rem) 4rem; }
.about-card { padding: clamp(1.4rem, 4vw, 3.8rem); border: 1px solid var(--rule-strong); border-top: 7px solid var(--service); background: var(--sheet); box-shadow: 12px 12px 0 rgb(95 98 92 / 18%); }
.about-card header { margin-bottom: clamp(1.8rem, 4vw, 3rem); padding-bottom: clamp(1.3rem, 3vw, 2rem); border-bottom: 1px solid var(--rule-strong); }
.about-card h1 { max-width: 780px; margin: .45rem 0 0; font: 400 clamp(2.517rem, 6vw, 4.967rem)/.98 var(--serif); letter-spacing: -.035em; }
.about-card > p { max-width: 76ch; margin: 0; }
.about-card > p + p { margin-top: 1.35rem; }
.about-card .about-intro { color: var(--muted); font-size: clamp(1.267rem, 2vw, 1.487rem); }
.about-card p strong { color: var(--service); }
.about-card a { color: var(--dispatch); font-weight: 700; text-underline-offset: .18rem; }

.site-footer { padding: 2.2rem clamp(1rem, 4vw, 4.5rem) 2.6rem; border-top: 3px solid var(--service); text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 0 0 1.1rem; }
.footer-nav a { color: var(--ink); font: 600 0.847rem/1 var(--condensed); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--dispatch); }
.footer-note { max-width: 62ch; margin: 0 auto; color: var(--muted); font-size: 1.007rem; line-height: 1.55; }
.footer-note a { color: var(--dispatch); font-weight: 700; text-underline-offset: .16rem; }
.footer-meta { margin: 1.1rem auto 0; color: var(--rule-strong); font: 0.867rem/1 var(--mono); }

@media (max-width: 820px) {
  body { background-image: none; }
  .site-header { min-height: 76px; padding-inline: .65rem; }
  .site-header .eyebrow { display: none; }
  .brand { gap: .55rem; }
  .brand-mark { min-width: 38px; height: 38px; font-size: 0.767rem; }
  .brand strong { font-size: 1.187rem; }
  .brand small { font-size: 0.727rem; letter-spacing: .1em; }
  .site-nav a { min-width: auto; padding-inline: .5rem; font-size: 0.797rem; }
  .app-shell { padding: 0 1rem 2.5rem; }
  .intro { min-height: 500px; grid-template-columns: 1fr; gap: .65rem; align-content: end; margin-inline: -1rem; margin-bottom: 1.2rem; padding: 1rem; background-position: 42% center; }
  .app-shell[data-hero="driving"] .intro { background-position: 50% center; }
  .app-shell[data-hero="detail"] .intro { background-position: 35% center; }
  .intro-copy, .snapshot { grid-column: 1; }
  .intro-copy { padding: 1.1rem; }
  .intro h1 { font-size: clamp(2.517rem, 12vw, 3.717rem); }
  .snapshot { max-width: none; padding: .7rem .8rem; }
  .control-bar { margin-inline: -1rem; grid-template-columns: 1fr; border-inline: 0; }
  .view-switcher { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .view-link { justify-content: center; padding-inline: .55rem; }
  .search-box { grid-row: 1; border-bottom: 1px solid var(--rule-strong); }
  .search-box::before { display: none; }
  .search-box { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .freshness { margin-inline: -.2rem; padding: 1rem; border-left-width: 7px; }
  .freshness-head { gap: .75rem; }
  .freshness-total { min-width: 66px; min-height: 64px; }
  .freshness-groups { grid-template-columns: 1fr; }
  .freshness-groups > div { padding: .9rem 0; }
  .freshness-groups > div + div { padding-left: 0; border-top: 1px solid #766832; border-left: 0; }
  .taxonomy-panel > header { align-items: start; flex-direction: column; gap: .5rem; }
  .facet-filters { grid-template-columns: 1fr 1fr; }
  .facet-group:nth-child(3) { border-left: 0; }
  .facet-group:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .desk { display: block; min-height: auto; }
  .results-pane { border-right: 0; }
  .results-list { max-height: 920px; }
  .dossier { display: none; padding: 1.25rem 1.05rem; background-image: none; }
  .desk.detail-open .results-pane { display: none; }
  .desk.detail-open .dossier { display: block; min-height: 70vh; }
  .back-button { display: inline-flex; align-items: center; }
  .filter-row { grid-template-columns: 1fr 1.2fr; }
  .filter-row .text-button { grid-column: 1 / -1; justify-self: start; }
  .result-card { padding-left: 1.2rem; }
  .dossier-head h2 { font-size: clamp(2.317rem, 10vw, 3.367rem); }
  .setting-groups { grid-template-columns: 1fr 1fr; }
  .teaching-row { grid-template-columns: 1fr; }
  .score-panel { padding: .8rem 0 0; border-top: 1px solid var(--rule); border-left: 0; }
}

@media (max-width: 520px) {
  .facet-filters, .setting-groups { grid-template-columns: 1fr; }
  .facet-group + .facet-group { border-top: 1px solid var(--rule); border-left: 0; }
  .dossier-topline { align-items: start; flex-direction: column; }
  .custom-tag-form { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111412;
    --paper-deep: #171b18;
    --sheet: #1e231f;
    --ink: #f0eadc;
    --muted: #b3b9b2;
    --rule: #5e625b;
    --rule-strong: #8d9188;
    --service: #9bc7b0;
    --service-deep: #0c1e19;
    --dispatch: #ff8b78;
    --dispatch-soft: #472821;
    --bulletin: #c7a443;
    --bulletin-ink: #201e13;
    --focus: #63b8ff;
  }
  body { background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgb(255 255 255 / 2.5%) 80px); }
  .site-header { border-bottom-color: #49675b; }
  .brand-mark { border-bottom-color: #cf4a3e; }
  .control-bar, .search-box { background: #191e1b; }
  .view-link[aria-current="page"] { background: #e8e1d2; color: #171a17; }
  .result-card:hover { background: rgb(255 255 255 / 4%); }
  .kind-badge { background: #17352c; color: #f0eadc; }
  .preview-note { background: #40391f; border-color: #8f7d3b; color: #d8cfaa; }
  .preview-note strong { color: #f0eadc; }
}

@media (prefers-contrast: more) {
  :root { --rule: var(--rule-strong); }
  .result-card, .freshness-groups li + li { border-color: currentColor; }
}

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