@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Noto+Sans+SC:wght@400;500;600;700;900&family=Noto+Serif+SC:wght@400;600;700;900&display=swap");

:root {
  --paper: #f2efe6;
  --paper-deep: #e5e0d4;
  --ink: #151713;
  --muted: #66685f;
  --rule: #c9c5b9;
  --acid: #c8f135;
  --blue: #2f58d9;
  --blue-pale: #dfe6ff;
  --orange: #f07042;
  --orange-pale: #ffe2d5;
  --green-pale: #e2f2a8;
  --red: #b73228;
  --white: #fffdf7;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: .18em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link {
  position: fixed; z-index: 1000; top: .75rem; left: .75rem;
  transform: translateY(-180%); background: var(--ink); color: white;
  padding: .7rem 1rem; border-radius: 4px;
}
.skip-link:focus { transform: none; }
.reading-progress { position: fixed; z-index: 90; inset: 0 0 auto; height: 4px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--acid); }

.series-header {
  position: sticky; z-index: 80; top: 0;
  min-height: 68px; display: grid; grid-template-columns: minmax(230px, 1fr) auto minmax(110px, 1fr);
  align-items: center; gap: 1.4rem; padding: .65rem clamp(1rem, 3vw, 3.5rem);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--ink); backdrop-filter: blur(14px);
}
.series-brand { display: flex; gap: .8rem; align-items: center; text-decoration: none; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.series-brand span { padding: .25rem .42rem; background: var(--acid); font-weight: 600; }
.series-brand b { font-weight: 600; }
.series-nav { display: flex; gap: .18rem; padding: .2rem; border: 1px solid var(--rule); border-radius: 999px; }
.series-nav a { padding: .36rem .78rem; border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.series-nav a:hover, .series-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.reading-exit { justify-self: end; font-family: var(--mono); font-size: .76rem; font-weight: 600; }

.book-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 6vw, 7rem);
  max-width: 1500px; margin: 0 auto; padding: clamp(4rem, 9vw, 9rem) clamp(1.2rem, 5vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--ink);
}
.eyebrow { margin: 0 0 1.4rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.book-hero h1 { max-width: 980px; margin: 0; font-family: var(--serif); font-size: clamp(3.3rem, 7.5vw, 8.8rem); line-height: .98; letter-spacing: -.065em; }
.book-deck { max-width: 830px; margin: 2rem 0 0; font-family: var(--serif); font-size: clamp(1.08rem, 1.55vw, 1.42rem); line-height: 1.7; }
.evidence-key { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: .25rem .55rem; border: 1px solid var(--ink); font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .035em; }
.badge.confirmed { background: var(--green-pale); }
.badge.observed { background: var(--blue-pale); }
.badge.practice { background: var(--orange-pale); }
.book-folio { align-self: start; border-top: 12px solid var(--acid); padding-top: 1rem; font-family: var(--mono); }
.book-folio span { display: block; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; font-weight: 600; letter-spacing: -.1em; }
.book-folio b, .book-folio i { display: block; margin-top: .6rem; font-size: .72rem; font-style: normal; letter-spacing: .08em; }

.book-tools { display: flex; align-items: end; gap: 2rem; max-width: 1500px; margin: 0 auto; padding: 1rem clamp(1.2rem, 5vw, 5.5rem); border-bottom: 1px solid var(--rule); }
.language-switch { flex: 0 0 auto; display: inline-flex; padding: .2rem; border: 1px solid var(--ink); background: var(--white); }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .45rem .8rem; text-decoration: none; font-family: var(--mono); font-size: .7rem; font-weight: 600; }
.language-switch a:hover, .language-switch a[aria-current="page"] { background: var(--ink); color: var(--white); }
.book-search { flex: 1; display: grid; grid-template-columns: auto minmax(180px, 540px); align-items: center; gap: 1rem; }
.book-search span { font-family: var(--mono); font-size: .7rem; font-weight: 600; }
.book-search input, .atlas-search input {
  width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink);
}
.book-tools p { margin: 0 0 .65rem; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.book-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 920px); justify-content: center; align-items: start; gap: clamp(2rem, 6vw, 7rem); max-width: 1500px; margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) clamp(1.2rem, 5vw, 5.5rem) 7rem; }
.book-rail { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 1rem; scrollbar-width: thin; }
.book-rail > p { margin: 0 0 .8rem; padding-bottom: .55rem; border-bottom: 3px solid var(--ink); font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; }
.book-toc ul { list-style: none; margin: 0; padding: 0; }
.book-toc ul ul { margin: .3rem 0 .65rem .85rem; border-left: 1px solid var(--rule); padding-left: .7rem; }
.book-toc li { margin: .22rem 0; }
.book-toc a { display: block; padding: .18rem .3rem; color: var(--muted); text-decoration: none; font-size: .78rem; line-height: 1.45; }
.book-toc a:hover, .book-toc a.active { color: var(--ink); background: var(--acid); }
.rail-top { display: inline-block; margin-top: 1.3rem; font-family: var(--mono); font-size: .7rem; }

.book-content { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-family: var(--serif); }
.book-content section { min-width: 0; max-width: 100%; }
.book-content > h1:first-child { display: none; }
.book-content h1, .book-content h2, .book-content h3, .book-content h4 { position: relative; color: var(--ink); scroll-margin-top: 90px; }
.book-content h1 { margin: 5rem 0 1.5rem; padding-top: 1.2rem; border-top: 9px solid var(--ink); font-family: var(--sans); font-size: clamp(2.3rem, 4.8vw, 4.7rem); line-height: 1.12; letter-spacing: -.045em; }
.book-content h2 { margin: 4.5rem 0 1.2rem; padding-top: 1rem; border-top: 1px solid var(--ink); font-family: var(--sans); font-size: clamp(1.75rem, 3.4vw, 2.9rem); line-height: 1.2; letter-spacing: -.035em; }
.book-content h2::before { content: "§"; display: block; margin-bottom: .4rem; color: var(--blue); font-family: var(--mono); font-size: .75rem; }
.book-content h3 { margin: 2.5rem 0 .8rem; font-family: var(--sans); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.35; }
.book-content h4 { margin: 2rem 0 .5rem; font-family: var(--sans); font-size: 1rem; }
.book-content p { margin: .85rem 0 1.2rem; }
.book-content li { margin: .4rem 0; }
.book-content ul, .book-content ol { padding-left: 1.45rem; }
.book-content strong { font-weight: 800; }
.book-content hr { margin: 4rem 0; border: 0; border-top: 1px solid var(--ink); }
.book-content blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; border: 0; border-left: 7px solid var(--blue); background: var(--blue-pale); font-family: var(--sans); }
.book-content blockquote > :first-child { margin-top: 0; }
.book-content blockquote > :last-child { margin-bottom: 0; }
.book-content code { padding: .12em .3em; background: #e1ddd2; font-family: var(--mono); font-size: .84em; }
.book-content pre { width: 100%; max-width: 100%; overflow: auto; overflow-wrap: normal; margin: 1.4rem 0 2rem; padding: 1.2rem; background: #171a16; color: #f5f2e7; border-left: 6px solid var(--acid); font-size: 1rem; line-height: 1.7; tab-size: 2; }
.book-content pre code { padding: 0; background: transparent; color: inherit; font-size: 1em; }
.book-content table { display: block; width: 100%; overflow-x: auto; margin: 1.5rem 0 2.2rem; border-collapse: collapse; font-family: var(--sans); font-size: .82rem; }
.book-content th, .book-content td { min-width: 120px; padding: .68rem .75rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.book-content th { background: var(--ink); color: var(--white); font-family: var(--mono); font-size: .68rem; letter-spacing: .035em; }
.book-content a[href^="http"] { color: #143fae; }
.book-content .hidden-by-search { display: none !important; }
.heading-anchor { position: absolute; right: 0; top: 1.1rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: .7rem; }
.heading-anchor:hover { color: var(--blue); }

.code-detail { margin: 1.4rem 0 2rem; }
.code-detail pre { margin: .7rem 0 0; }
.code-detail [data-code-variant][hidden] { display: none; }
.code-detail-switch { display: inline-flex; max-width: 100%; padding: .2rem; border: 1px solid var(--ink); background: var(--white); }
.code-detail-option { min-height: 34px; padding: .32rem .75rem; border: 0; border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .09em; }
.code-detail-option:hover { color: var(--ink); }
.code-detail-option[aria-checked="true"] { background: var(--ink); color: var(--white); }
.code-detail-option:focus-visible { outline-offset: -1px; }

.book-next { display: grid; grid-template-columns: 1fr 1fr; max-width: 1500px; margin: 0 auto; border: 1px solid var(--ink); border-bottom: 0; }
.book-next a { min-height: 150px; padding: 2rem clamp(1.2rem, 4vw, 4rem); text-decoration: none; }
.book-next a + a { border-left: 1px solid var(--ink); text-align: right; }
.book-next a:hover { background: var(--acid); }
.book-next span { display: block; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.book-next b { display: block; margin-top: .7rem; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 2rem); }
.series-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1.2rem, 5vw, 5.5rem); background: var(--ink); color: var(--white); }
.series-footer p { margin: 0; }
.series-footer a { font-family: var(--mono); font-size: .7rem; }

/* Hub */
.hub-page { font-size: 16px; }
.hub-hero { min-height: calc(100vh - 68px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
.hub-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 8vw, 8rem) clamp(1.2rem, 6vw, 7rem); border-right: 1px solid var(--ink); }
.hub-hero h1 { max-width: 1020px; margin: 0; font-family: var(--serif); font-size: clamp(4rem, 9vw, 10.5rem); line-height: .88; letter-spacing: -.075em; }
.hub-hero h1 em { color: var(--blue); font-style: normal; }
.hub-deck { max-width: 800px; margin: 2rem 0; font-family: var(--serif); font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.hub-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 800; }
.button.primary { background: var(--acid); }
.button.secondary { background: transparent; }
.button:hover { background: var(--ink); color: white; }
.hub-hero-side { display: grid; grid-template-rows: repeat(3, 1fr); background: var(--ink); color: white; }
.hero-stat { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 4vw, 3.5rem); border-bottom: 1px solid #53564e; }
.hero-stat:last-child { border-bottom: 0; }
.hero-stat strong { font-family: var(--mono); font-size: clamp(3rem, 7vw, 7rem); line-height: 1; color: var(--acid); }
.hero-stat span { max-width: 22ch; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.hub-section { max-width: 1500px; margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 5vw, 5.5rem); border-bottom: 1px solid var(--ink); }
.section-kicker { margin: 0 0 1rem; font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .12em; }
.hub-section h2 { max-width: 900px; margin: 0 0 2rem; font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 5.8rem); line-height: 1.06; letter-spacing: -.055em; }
.thesis-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.thesis-grid article { min-height: 300px; padding: 2rem; border-right: 1px solid var(--ink); }
.thesis-grid article:last-child { border-right: 0; }
.thesis-grid span { font-family: var(--mono); font-size: .7rem; color: var(--blue); }
.thesis-grid h3 { margin: 3rem 0 1rem; font-family: var(--serif); font-size: 1.7rem; line-height: 1.25; }
.series-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.volume-card { display: grid; grid-template-columns: 120px 1fr; min-height: 270px; border: 1px solid var(--ink); text-decoration: none; background: var(--white); }
.volume-card:hover { transform: translateY(-3px); box-shadow: 7px 7px 0 var(--ink); }
.volume-number { display: flex; align-items: end; padding: 1.2rem; background: var(--ink); color: var(--acid); font-family: var(--mono); font-size: 2.5rem; }
.volume-copy { padding: 1.6rem; }
.volume-copy p:first-child { margin: 0; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.volume-copy h3 { margin: 1.2rem 0 .75rem; font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; }
.volume-copy p { margin: 0 0 1.2rem; }
.volume-copy b { font-family: var(--mono); font-size: .72rem; }
.route-map { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.route-step { display: grid; grid-template-columns: 150px 1fr auto; gap: 2rem; align-items: center; min-height: 130px; padding: 1.5rem; border: 1px solid var(--ink); border-top: 0; }
.route-step > span { font-family: var(--mono); font-size: .75rem; }
.route-step h3 { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.5rem; }
.route-step p { margin: 0; color: var(--muted); }
.route-step b { padding: .4rem .6rem; background: var(--green-pale); font-family: var(--mono); font-size: .68rem; }

/* Evidence atlas */
.atlas-page main { max-width: 1500px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 5.5rem) 8rem; }
.atlas-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 3rem 0; }
.atlas-note { padding: 1.4rem; border: 1px solid var(--ink); background: var(--blue-pale); }
.atlas-note strong { display: block; margin-bottom: .6rem; font-family: var(--mono); font-size: .72rem; }
.atlas-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 3rem; }
.chart-panel { padding: 1.3rem; border: 1px solid var(--ink); background: var(--white); }
.chart-panel h2 { margin: 0 0 .2rem; font-family: var(--serif); font-size: 1.5rem; }
.chart-panel > p { margin: 0 0 1.2rem; color: var(--muted); font-size: .8rem; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 38px; gap: .7rem; align-items: center; margin: .65rem 0; font-size: .75rem; }
.bar-track { height: 11px; background: var(--paper-deep); }
.bar-track i { display: block; height: 100%; background: var(--blue); }
.bar-row:nth-child(3n) .bar-track i { background: var(--orange); }
.bar-row b { font-family: var(--mono); text-align: right; }
.atlas-controls { position: sticky; z-index: 60; top: 68px; margin: 0 0 2rem; padding: 1rem; border: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(12px); }
.atlas-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.atlas-search label { display: block; font-family: var(--mono); font-size: .7rem; }
.atlas-search input { display: block; margin-top: .35rem; }
.atlas-count { font-family: var(--mono); font-size: .7rem; }
.filter-groups { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .9rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.filter-group > span { margin-right: .2rem; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.filter-group button { min-height: 38px; padding: .4rem .65rem; border: 1px solid var(--rule); background: var(--white); cursor: pointer; font-size: .72rem; }
.filter-group button:hover, .filter-group button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.filter-select { display: flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.filter-select select { min-height: 38px; max-width: 210px; padding: .35rem 2rem .35rem .55rem; border: 1px solid var(--rule); border-radius: 0; background: var(--white); color: var(--ink); font-size: .72rem; }
.evidence-list { display: grid; gap: .75rem; }
.evidence-card { display: grid; grid-template-columns: 90px minmax(150px, .65fr) minmax(260px, 1.7fr) minmax(180px, .75fr); border: 1px solid var(--ink); background: var(--white); }
.record-id { padding: 1.2rem; border-right: 1px solid var(--rule); font-family: var(--mono); font-size: .72rem; font-weight: 600; }
.record-id span { display: block; margin-top: .7rem; padding: .2rem .35rem; background: var(--paper-deep); font-size: .58rem; text-align: center; }
.record-identity, .record-task, .record-meta { padding: 1.2rem; border-right: 1px solid var(--rule); }
.record-meta { border-right: 0; }
.record-identity h3 { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.record-identity p, .record-task p, .record-meta p { margin: .4rem 0 0; }
.record-identity p { color: var(--muted); font-size: .78rem; }
.record-task strong { font-family: var(--mono); font-size: .62rem; color: var(--blue); }
.record-task p { line-height: 1.55; }
.skill-list { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .8rem; }
.skill-list span { padding: .18rem .38rem; background: var(--blue-pale); font-family: var(--mono); font-size: .58rem; }
.record-meta dl { margin: 0; }
.record-meta div { display: grid; grid-template-columns: 75px 1fr; gap: .5rem; margin: .28rem 0; }
.record-meta dt { font-family: var(--mono); font-size: .58rem; color: var(--muted); }
.record-meta dd { margin: 0; font-size: .7rem; }
.record-meta a { display: inline-block; margin-top: .8rem; font-family: var(--mono); font-size: .65rem; color: #143fae; }
.record-caveat { margin-top: .8rem !important; padding-top: .7rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .68rem; line-height: 1.45; }
.empty-state { padding: 4rem 1rem; border: 1px dashed var(--ink); text-align: center; }

@media (max-width: 1050px) {
  .series-header { grid-template-columns: 1fr auto; }
  .series-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; border-radius: 0; border-width: 1px 0 0; }
  .reading-exit { grid-column: 2; grid-row: 1; }
  .book-hero { grid-template-columns: 1fr 180px; }
  .book-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; }
  .hub-hero { grid-template-columns: 1fr; }
  .hub-hero-copy { border-right: 0; border-bottom: 1px solid var(--ink); }
  .hub-hero-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .hero-stat { min-height: 220px; border-right: 1px solid #53564e; border-bottom: 0; }
  .thesis-grid { grid-template-columns: 1fr; }
  .thesis-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .thesis-grid article:last-child { border-bottom: 0; }
  .evidence-card { grid-template-columns: 85px 1fr; }
  .record-id { grid-row: 1 / 4; }
  .record-identity, .record-task, .record-meta { border-right: 0; border-bottom: 1px solid var(--rule); }
  .record-meta { border-bottom: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 120px; }
  .series-header { gap: .5rem; padding: .5rem .8rem; }
  .series-brand b { display: none; }
  .reading-exit { font-size: .65rem; }
  .series-nav { margin: 0 -.8rem -.5rem; padding: .35rem .8rem; }
  .series-nav a { min-height: 38px; padding: .42rem .65rem; }
  .book-hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .book-folio { display: flex; align-items: end; gap: 1rem; }
  .book-folio span { font-size: 3.4rem; }
  .book-tools { display: block; }
  .language-switch { margin-bottom: .8rem; }
  .book-search { grid-template-columns: 1fr; gap: .25rem; }
  .book-tools p { margin: .55rem 0 0; }
  .book-layout { display: block; padding-top: 1rem; }
  .book-rail { position: relative; top: 0; max-height: none; overflow: visible; margin: 0 0 3rem; padding: 1rem; border: 1px solid var(--ink); }
  .book-toc { max-height: 280px; overflow: auto; }
  .book-content h1 { margin-top: 4rem; }
  .book-content h2 { margin-top: 3.5rem; }
  .book-content table { font-size: .75rem; }
  .heading-anchor { position: static; display: block; margin-top: .6rem; }
  .code-detail-switch { display: flex; width: 100%; }
  .code-detail-option { flex: 1; min-height: 42px; padding: .32rem .5rem; }
  .book-next { grid-template-columns: 1fr; }
  .book-next a { min-height: 110px; }
  .book-next a + a { border-left: 0; border-top: 1px solid var(--ink); text-align: left; }
  .series-footer { display: block; }
  .series-footer a { display: inline-block; margin-top: 1rem; }
  .hub-hero-side { grid-template-columns: 1fr; }
  .hero-stat { min-height: 150px; border-right: 0; border-bottom: 1px solid #53564e; }
  .series-grid { grid-template-columns: 1fr; }
  .volume-card { grid-template-columns: 74px 1fr; }
  .route-step { grid-template-columns: 1fr; gap: .6rem; }
  .atlas-intro, .atlas-charts { grid-template-columns: 1fr; }
  .atlas-controls { top: 111px; margin-inline: -.5rem; }
  .atlas-search { grid-template-columns: 1fr; }
  .filter-groups { display: grid; }
  .evidence-card { grid-template-columns: 1fr; }
  .record-id { grid-row: auto; display: flex; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--rule); }
  .record-id span { margin: 0; }
  .bar-row { grid-template-columns: 105px 1fr 32px; gap: .4rem; }
}

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