@font-face {
  font-family: "Archivo Narrow";
  src: url("./fonts/ArchivoNarrow.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson";
  src: url("./fonts/AtkinsonHyperlegibleNext.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("./fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f2ea;
  --paper-raised: #fffdf6;
  --ink: #101b2b;
  --ink-soft: #455062;
  --rule: #b8bec5;
  --blue: #1746a2;
  --blue-dark: #0d2d70;
  --orange: #e6532f;
  --orange-dark: #9e2e18;
  --grey: #9aa3ad;
  --yellow: #f3c846;
  --max: 1320px;
  --reading: 740px;
  --display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --body: "Atkinson", "Arial", sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-dark);
}

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset: 10px auto auto 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.language-link,
.eyebrow,
.trust-line,
.section-kicker,
.source-label,
.state-label,
.record-meta,
.metric-label,
.download-link,
.table-note,
.site-footer {
  font-family: var(--mono);
}

.brand {
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  background: var(--orange);
  vertical-align: -1px;
}

.language-link {
  min-width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
}

.language-link:hover {
  background: var(--ink);
  color: white;
}

.hero {
  border-bottom: 2px solid var(--ink);
}

.hero-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: calc(100svh - 66px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 88px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(480px, 1.13fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}

.eyebrow,
.section-kicker,
.source-label {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.hero-number,
.state-count,
.concentration-number,
.ratio-number {
  font-family: var(--display);
  font-stretch: condensed;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(4.2rem, 8vw, 8.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.78;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 .title-counter {
  color: var(--orange-dark);
}

h2 {
  max-width: 970px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 6.6vw, 6.8rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.hero-deck {
  max-width: 650px;
  margin-bottom: 32px;
  font-size: clamp(1.1rem, 1.6vw, 1.36rem);
  line-height: 1.42;
}

.hero-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  padding: 18px 0 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.hero-number {
  color: var(--orange-dark);
  font-size: clamp(6rem, 11vw, 10.8rem);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.67;
}

.metric-label {
  max-width: 250px;
  padding-bottom: 4px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.trust-line {
  max-width: 680px;
  margin: 18px 0 0;
  padding-left: 16px;
  border-left: 5px solid var(--yellow);
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.52;
}

.wall-figure {
  margin: 0;
}

.wall-frame {
  padding: clamp(16px, 2.4vw, 28px);
  border: 3px solid var(--ink);
  background: var(--paper-raised);
  box-shadow: 14px 14px 0 var(--ink);
}

.wall-label {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.record-wall {
  display: grid;
  grid-template-columns: repeat(31, minmax(0, 1fr));
  gap: 5px;
}

.record-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink);
  background: var(--grey);
  transition: opacity 160ms ease, transform 160ms ease;
}

.record-cell[data-state="counter-only"] {
  background: var(--orange);
}

.record-cell[data-state="online-only"] {
  background: var(--blue);
}

.record-cell[data-state="online-counter"] {
  overflow: hidden;
  background: var(--blue);
}

.record-cell[data-state="online-counter"]::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background: var(--orange);
}

.record-cell.is-muted {
  opacity: 0.1;
}

.wall-fallback {
  height: 168px;
  display: flex;
  border: 1px solid var(--ink);
}

.wall-fallback span:nth-child(1) {
  flex: 502;
  background: var(--orange);
}

.wall-fallback span:nth-child(2) {
  flex: 93;
  border-left: 2px solid var(--paper-raised);
  background: var(--blue);
  box-shadow: inset -50px 0 var(--orange);
}

.wall-fallback span:nth-child(3) {
  flex: 2;
  min-width: 3px;
  border-left: 2px solid var(--paper-raised);
  background: var(--blue);
}

.wall-fallback span:nth-child(4) {
  flex: 16;
  border-left: 2px solid var(--paper-raised);
  background: var(--grey);
}

.wall-legend {
  margin: 23px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  list-style: none;
  padding: 0;
}

.wall-legend li,
.state-chip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wall-legend li {
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.35;
}

.swatch {
  position: relative;
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: var(--grey);
}

.swatch.counter-only {
  background: var(--orange);
}

.swatch.online-only {
  background: var(--blue);
}

.swatch.online-counter {
  overflow: hidden;
  background: var(--blue);
}

.swatch.online-counter::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background: var(--orange);
}

.wall-figure figcaption {
  margin: 24px 0 0 14px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.69rem;
  line-height: 1.5;
}

.section {
  border-bottom: 1px solid var(--ink);
}

.section-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 150px) 0;
}

.section-intro {
  max-width: var(--reading);
  margin-bottom: 56px;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
}

.source-inline {
  font-family: var(--mono);
  font-size: 0.75em;
  white-space: nowrap;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.state-block {
  min-height: 270px;
  padding: 24px 20px 22px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.state-block:last-child {
  border-right: 0;
}

.state-block.counter-only {
  background: var(--orange);
}

.state-block.online-counter {
  background: var(--paper-raised);
  box-shadow: inset 0 -12px var(--blue), inset 0 -24px var(--orange);
}

.state-block.online-only {
  background: var(--blue);
  color: white;
}

.state-block.undocumented {
  background: var(--grey);
}

.state-count {
  font-size: clamp(4.5rem, 8vw, 7.7rem);
  font-weight: 820;
  letter-spacing: -0.05em;
  line-height: 0.75;
}

.state-label {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.evidence-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.evidence-copy {
  max-width: 570px;
  padding-top: 20px;
}

.record-sheet {
  position: relative;
  margin: 0;
  border: 2px solid var(--ink);
  background: var(--paper-raised);
  box-shadow: 12px 12px 0 var(--orange);
}

.record-sheet::before {
  content: "CNSP";
  position: absolute;
  top: 17px;
  right: 18px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.record-sheet-head {
  padding: 28px 86px 25px 26px;
  border-bottom: 2px solid var(--ink);
}

.record-sheet-head p {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.record-sheet-head h3 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

.record-field {
  display: grid;
  grid-template-columns: minmax(145px, 0.42fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
}

.record-field dt,
.record-field dd {
  margin: 0;
  padding: 21px 25px;
}

.record-field dt {
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.record-field dd {
  font-size: 1.14rem;
  font-weight: 700;
}

.record-field.is-contradiction dd {
  color: var(--orange-dark);
  font-size: 1.42rem;
}

.record-sheet-foot {
  margin: 0;
  padding: 22px 25px 24px;
  font-size: 0.86rem;
}

.record-sheet-foot a {
  font-weight: 700;
}

.concentration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(560px, 1.3fr);
  gap: clamp(45px, 8vw, 120px);
  align-items: end;
}

.concentration-total {
  padding: 26px 0 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.concentration-number {
  display: block;
  color: var(--orange-dark);
  font-size: clamp(7rem, 14vw, 13rem);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.7;
}

.concentration-total p {
  margin: 20px 0 0;
  max-width: 410px;
  font-size: 1.1rem;
}

.concentration-bars {
  border-top: 2px solid var(--ink);
}

.concentration-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 1.3fr) 70px;
  gap: 18px;
  align-items: center;
  min-height: 98px;
  border-bottom: 1px solid var(--ink);
}

.concentration-name {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.bar-track {
  height: 26px;
  border: 1px solid var(--ink);
  background: var(--paper-raised);
}

.bar-fill {
  height: 100%;
  background: var(--orange);
}

.bar-fill.size-121 {
  width: 100%;
}

.bar-fill.size-69 {
  width: 57.03%;
}

.bar-fill.size-57 {
  width: 47.11%;
}

.concentration-number-small {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 780;
  text-align: right;
}

.interpretation {
  max-width: var(--reading);
  margin: 50px 0 0 auto;
  padding: 25px 0 0 26px;
  border-top: 1px solid var(--ink);
  border-left: 8px solid var(--yellow);
}

.interpretation strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ratio-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ratio-table th,
.ratio-table td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.ratio-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ratio-table tbody tr:last-child td {
  border-bottom: 0;
}

.ratio-number {
  font-size: 2.3rem;
  font-weight: 780;
  letter-spacing: -0.03em;
}

.table-note {
  max-width: 790px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.55;
}

.explorer {
  background: var(--ink);
  color: var(--paper);
}

.explorer a {
  color: #d8e5ff;
}

.explorer .section-kicker,
.explorer .section-intro {
  color: var(--paper);
}

.explorer-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(35px, 7vw, 90px);
  align-items: end;
  margin-bottom: 44px;
}

.explorer-head .section-intro {
  margin: 0;
}

.controls {
  padding: 24px;
  border: 1px solid #6d7582;
}

.filter-group {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.filter-group legend,
.search-label {
  margin-bottom: 10px;
  color: #c2c8d0;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #7d8693;
  background: transparent;
  color: white;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.67rem;
}

.filter-button:hover {
  border-color: white;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.search-wrap {
  display: block;
}

.search-label {
  display: block;
}

.search-input {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 2px solid #929aa5;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.search-input::placeholder {
  color: #697386;
  opacity: 1;
}

.results-summary {
  min-height: 32px;
  margin: 24px 0 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.record-list {
  border-top: 2px solid var(--paper);
}

.result-record {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(200px, 0.75fr);
  gap: 28px;
  padding: 27px 0 30px;
  border-bottom: 1px solid #747d89;
}

.result-record h3 {
  color: white;
}

.record-institution {
  margin-bottom: 10px;
  color: #d1d6dd;
}

.record-meta {
  margin: 0;
  color: #aeb6c1;
  font-size: 0.66rem;
  line-height: 1.45;
}

.record-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}

.state-chip {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #7c8592;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.mismatch-chip {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.official-link,
.online-link,
.download-link {
  font-size: 0.76rem;
}

.load-more {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  border: 2px solid var(--paper);
  background: transparent;
  color: white;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.load-more:hover {
  background: var(--paper);
  color: var(--ink);
}

.load-more[hidden],
.wall-fallback[hidden] {
  display: none;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: clamp(48px, 8vw, 118px);
  align-items: start;
}

.claim-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.claim-list li {
  padding: 20px 0 23px;
  border-bottom: 1px solid var(--ink);
}

.claim-list strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-copy h3 {
  margin-top: 44px;
}

.method-copy h3:first-child {
  margin-top: 0;
}

.method-copy p,
.method-copy li {
  max-width: var(--reading);
}

.source-list {
  margin: 20px 0 0;
  padding-left: 1.25em;
}

.source-list li {
  margin-bottom: 13px;
}

.review-date {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 34px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer a {
  color: white;
}

.back-to-top {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 2px;
  font-family: var(--mono);
}

.back-top-arrow {
  color: var(--yellow);
  font-size: 1rem;
  line-height: 1;
}

.js-ready .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.js-ready .back-to-top.is-fixed {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(var(--back-top-bottom, 16px), env(safe-area-inset-bottom));
  z-index: 20;
  width: 52px;
  height: 52px;
  min-height: 52px;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--ink);
  background: rgba(255, 253, 246, 0.97);
  box-shadow: 5px 5px 0 rgba(16, 27, 43, 0.18);
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, background 160ms ease;
}

.js-ready .back-to-top.is-fixed.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.js-ready .back-to-top.is-fixed:hover {
  background: var(--yellow);
  color: var(--ink);
}

.js-ready .back-to-top.is-fixed .back-top-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.js-ready .back-to-top.is-fixed .back-top-arrow {
  color: var(--orange-dark);
  font-size: 1.35rem;
}

.noscript-note {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #8d96a2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .hero-inner,
  .evidence-split,
  .concentration-layout,
  .explorer-head,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
  }

  .wall-frame {
    box-shadow: 9px 9px 0 var(--ink);
  }

  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .state-block:nth-child(2) {
    border-right: 0;
  }

  .state-block:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink);
  }

  .concentration-layout {
    align-items: start;
  }

  .concentration-total {
    max-width: 620px;
  }

  .explorer-head .section-intro {
    max-width: var(--reading);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-inner {
    min-height: 56px;
  }

  .brand {
    font-size: 0.65rem;
  }

  .brand::before {
    width: 10px;
    height: 10px;
    margin-right: 7px;
  }

  .hero-inner {
    padding: 32px 0 52px;
    gap: 42px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(4rem, 22vw, 5.4rem);
    line-height: 0.79;
  }

  h2 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
    line-height: 0.88;
  }

  .hero-deck {
    margin-bottom: 24px;
    font-size: 1.05rem;
  }

  .hero-fact {
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 15px 0 13px;
  }

  .hero-number {
    font-size: 5.7rem;
  }

  .metric-label {
    font-size: 0.65rem;
  }

  .trust-line {
    font-size: 0.67rem;
  }

  .wall-frame {
    padding: 12px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .wall-label {
    font-size: 0.6rem;
  }

  .record-wall {
    grid-template-columns: repeat(29, minmax(0, 1fr));
    gap: 2px;
  }

  .wall-legend {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .wall-figure figcaption {
    margin-left: 7px;
    font-size: 0.62rem;
  }

  .section-inner {
    padding: 86px 0;
  }

  .section-intro {
    margin-bottom: 40px;
  }

  .state-grid {
    grid-template-columns: 1fr;
  }

  .state-block {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .state-block:nth-child(3) {
    border-bottom: 1px solid var(--ink);
  }

  .state-block:last-child {
    border-bottom: 0;
  }

  .record-sheet {
    box-shadow: 7px 7px 0 var(--orange);
  }

  .record-sheet-head {
    padding: 24px 70px 22px 18px;
  }

  .record-field {
    grid-template-columns: 1fr;
  }

  .record-field dt,
  .record-field dd {
    padding: 14px 18px;
  }

  .record-field dt {
    padding-bottom: 6px;
    border-right: 0;
  }

  .record-field dd {
    padding-top: 4px;
  }

  .record-sheet-foot {
    padding: 18px;
  }

  .concentration-row {
    grid-template-columns: 1fr 58px;
    gap: 6px 14px;
    padding: 16px 0;
  }

  .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .concentration-number-small {
    grid-column: 2;
    grid-row: 1;
  }

  .ratio-table,
  .ratio-table tbody,
  .ratio-table tr,
  .ratio-table td {
    display: block;
  }

  .ratio-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .ratio-table tr {
    padding: 19px 0;
    border-bottom: 1px solid var(--rule);
  }

  .ratio-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ratio-table td {
    padding: 2px 0;
    border: 0;
  }

  .ratio-table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 112px;
    margin-right: 10px;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 0.62rem;
    text-transform: uppercase;
  }

  .ratio-table td:first-child::before {
    display: none;
  }

  .ratio-number {
    font-size: 1.9rem;
  }

  .controls {
    padding: 17px;
  }

  .filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }

  .result-record {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .record-actions {
    justify-content: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .controls,
  .load-more,
  .site-footer {
    display: none;
  }

  .hero-inner,
  .section-inner {
    width: 100%;
    padding: 28px 0;
  }

  .hero-inner,
  .evidence-split,
  .concentration-layout,
  .method-grid {
    display: block;
  }

  .explorer {
    background: white;
    color: black;
  }

  .result-record {
    break-inside: avoid;
  }
}
