:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --soft: #f2f5f1;
  --ink: #182527;
  --muted: #5d6b6d;
  --line: #dce3de;
  --teal: #087f73;
  --teal-soft: #e4f4f0;
  --blue: #2463a9;
  --blue-soft: #eaf2fb;
  --amber: #9a6500;
  --amber-soft: #fff3d8;
  --rose: #aa3c4c;
  --rose-soft: #fbeaec;
  --violet: #7353a6;
  --violet-soft: #f0ebf8;
  --shadow: 0 1px 2px rgb(22 38 38 / 5%), 0 14px 35px rgb(31 53 52 / 6%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgb(228 244 240 / 70%), transparent 27rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
summary:focus-visible,
.matrix-wrap:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--amber), white 25%);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.55rem 0.8rem;
  border-radius: 0.45rem;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.65rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgb(220 227 222 / 85%);
  background: rgb(251 250 246 / 90%);
  backdrop-filter: blur(16px);
}

.site-bar strong {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.site-bar nav {
  display: flex;
  gap: clamp(0.65rem, 2vw, 1.2rem);
  font-size: 0.72rem;
  font-weight: 650;
}

.site-bar nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-bar nav a:hover { color: var(--ink); }

main {
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0 5rem;
}

.hero { margin-bottom: clamp(5rem, 11vw, 9rem); }

.kicker,
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin: 0 0 1.1rem;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 790;
}

h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 760;
}

h3 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.dek {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.headline-result {
  max-width: 56rem;
  margin-top: 2.3rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #c6ddd6;
  border-radius: 1rem;
  background: var(--teal-soft);
}

.headline-result span,
.signal span,
.case-card > span,
.fog-board span,
.test-ladder span,
.reflection-grid span,
.subtraction-row span,
.number-strip span,
.dose-model span,
.convergence span,
.evidence-meter span {
  display: block;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.headline-result strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--teal);
  font-size: clamp(1.55rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.headline-result p {
  max-width: 68ch;
  margin: 0.65rem 0 0;
  color: #405f5a;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.signal,
.case-card,
.fog-board article,
.molecule-cards article,
.test-ladder article,
.reflection-grid article,
.subtraction-row article,
.boundary-grid article,
.evidence-split article,
.evidence-meter article {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.signal { padding: 1rem; }

.signal strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}

.signal p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sleep-signal { border-top: 4px solid var(--blue); }
.e102-signal { border-top: 4px solid var(--amber); }
.chicken-signal { border-top: 4px solid var(--rose); }
.scent-signal { border-top: 4px solid var(--violet); }

.map-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0.8rem;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.map-cta span { color: #b9c6c6; font-size: 0.75rem; }
.map-cta strong { font-size: 0.88rem; }

main > section,
main > details { margin-top: clamp(4rem, 9vw, 7rem); }

main > section { scroll-margin-top: 4.25rem; }

.section-heading { margin-bottom: 1.7rem; }

.section-heading > p:last-child {
  max-width: 65ch;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.molecule-intersection {
  display: grid;
  grid-template-columns: 1fr minmax(9rem, 0.5fr) 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e8d4a7;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.exposure-side { padding: clamp(1rem, 2.5vw, 1.4rem); }
.exposure-side:first-child { border-right: 1px solid #e8d4a7; }
.exposure-side:last-child { border-left: 1px solid #e8d4a7; }
.exposure-side span,
.exact-overlap span,
.decision-pair span,
.elimination-flow span {
  display: block;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.exposure-side strong { display: block; margin-top: 0.55rem; line-height: 1.4; }
.exposure-side p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.82rem; }
.exposure-side mark {
  padding: 0.1em 0.25em;
  border-radius: 0.25rem;
  background: var(--amber-soft);
  color: #704900;
}

.exact-overlap {
  display: grid;
  place-content: center;
  padding: 1.2rem;
  background: var(--amber-soft);
  text-align: center;
}
.exact-overlap strong { color: var(--amber); font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1; }
.exact-overlap small { margin-top: 0.55rem; }

.elimination-flow {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) 2fr;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}
.flow-title strong { display: block; margin-top: 0.3rem; font-size: 1.15rem; line-height: 1.25; }
.elimination-flow ol { margin: 0; padding: 0; list-style: none; counter-reset: subtraction; }
.elimination-flow li {
  position: relative;
  min-height: 2.7rem;
  padding: 0.15rem 0 0.85rem 2.6rem;
  border-bottom: 1px solid var(--line);
  counter-increment: subtraction;
}
.elimination-flow li + li { padding-top: 0.85rem; }
.elimination-flow li:last-child { padding-bottom: 0; border-bottom: 0; }
.elimination-flow li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  content: counter(subtraction);
  font-size: 0.75rem;
  font-weight: 800;
}
.elimination-flow li + li::before { top: 0.7rem; }
.elimination-flow li strong,
.elimination-flow li span { display: block; }
.elimination-flow li span { margin-top: 0.25rem; letter-spacing: 0; text-transform: none; line-height: 1.45; }

.decision-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.decision-pair article { padding: 1rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); }
.decision-pair strong { display: block; margin-top: 0.3rem; line-height: 1.35; }
.decision-pair p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.82rem; }

.molecule-passport {
  margin: 0.8rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
}
.molecule-passport > div { display: grid; grid-template-columns: 12rem 1fr; border-top: 1px solid var(--line); }
.molecule-passport > div:first-child { border-top: 0; }
.molecule-passport dt,
.molecule-passport dd { margin: 0; padding: 0.75rem 0.9rem; }
.molecule-passport dt { background: var(--soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.molecule-passport dd { color: var(--muted); font-size: 0.82rem; }

.source-receipt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}
.source-receipt strong { margin-right: 0.15rem; color: var(--ink); }
.source-receipt a {
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
}
.source-receipt a:hover { border-color: var(--teal); }

.formula-overlap {
  overflow: hidden;
  border: 1px solid #d9cfea;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.formula-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.formula-products article {
  min-height: 8.4rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.formula-products article:last-child { border-right: 0; }

.formula-products span,
.core-result span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.formula-products strong,
.formula-products small { display: block; }
.formula-products strong { margin-top: 0.35rem; line-height: 1.25; }
.formula-products small { margin-top: 0.65rem; font-size: 0.73rem; line-height: 1.4; }

.core-result {
  display: grid;
  grid-template-columns: minmax(11rem, 0.55fr) 2fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #d9cfea;
  background: var(--violet-soft);
}

.core-result strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--violet);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.core-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.core-chips b {
  padding: 0.35rem 0.58rem;
  border: 1px solid #cfc0e5;
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  color: #5f438f;
  font-size: 0.76rem;
}

.named-formula-table { margin-top: 0.8rem; }

.pathway-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pathway-board > article {
  min-height: 12rem;
  padding: 1.1rem;
  border-right: 1px solid var(--line);
}

.pathway-board > article:nth-child(4) { border-right: 0; }

.molecule-tag {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.pathway-board article:nth-child(2) .molecule-tag { background: var(--violet-soft); color: var(--violet); }
.pathway-board article:nth-child(3) .molecule-tag { background: var(--amber-soft); color: var(--amber); }
.pathway-board article:nth-child(4) .molecule-tag { background: var(--rose-soft); color: var(--rose); }

.pathway-board article p {
  min-height: 5.5rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.pathway-board article b {
  color: var(--ink);
  font-size: 0.82rem;
}

.convergence {
  grid-column: 1 / -1;
  padding: 1.3rem;
  border-top: 1px solid #c8ddd7;
  background: var(--teal-soft);
  text-align: center;
}

.convergence strong {
  display: block;
  max-width: 42ch;
  margin: 0.3rem auto;
  color: var(--teal);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.2;
}

.convergence p {
  max-width: 72ch;
  margin: 0.6rem auto 0;
  color: #49635f;
  font-size: 0.86rem;
}

.evidence-split,
.case-grid,
.evidence-meter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.evidence-split article,
.case-card,
.evidence-meter article { padding: 1rem; }

.evidence-split strong,
.case-card strong {
  display: block;
  font-size: 1rem;
}

.evidence-split p,
.case-card p,
.evidence-meter p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.number-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.number-strip article {
  padding: 1.15rem;
  border-right: 1px solid var(--line);
}

.number-strip article:last-child { border-right: 0; }

.number-strip strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.number-strip p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.source-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.study-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.study-flow article {
  min-width: 0;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.study-flow article:last-child { border-right: 0; }
.study-flow .result { background: var(--teal-soft); }

.study-flow span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--teal);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.study-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.study-flow strong { color: var(--ink); }

.case-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 0.88rem;
}

.case-card li + li { margin-top: 0.3rem; }
.case-card.observed { border-top: 4px solid var(--rose); }
.case-card.control { border-top: 4px solid var(--teal); }

.dose-model {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr auto 1.35fr;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.dose-model > div {
  padding: 1rem;
  border: 1px solid #cad9e8;
  border-radius: 0.85rem;
  background: var(--blue-soft);
}

.dose-model strong,
.dose-model small { display: block; }
.dose-model strong { margin-top: 0.25rem; line-height: 1.2; }
.dose-model small { margin-top: 0.45rem; color: var(--muted); }
.dose-model i { align-self: center; color: var(--blue); font-size: 1.4rem; font-style: normal; }

.half-life-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #cad9e8;
  border-radius: 0.9rem;
  background: var(--blue-soft);
}
.half-life-strip span { padding: 0.85rem; border-left: 1px solid #cad9e8; color: var(--muted); font-size: 0.78rem; text-align: center; }
.half-life-strip span:first-child { border-left: 0; }
.half-life-strip b { display: block; margin-bottom: 0.2rem; color: var(--blue); font-size: 1.05rem; }

.integrity-note,
.result-line {
  max-width: 82ch;
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid #e8d4a7;
  border-radius: 0.7rem;
  background: var(--amber-soft);
  color: #5f5541;
  font-size: 0.84rem;
}

.integrity-note strong,
.result-line strong { color: var(--ink); }

.verdict {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #c6ddd6;
  border-radius: 0.85rem;
  background: var(--teal-soft);
}

.verdict strong { color: var(--teal); }
.verdict p { margin: 0; color: #405f5a; font-size: 0.88rem; }

.occurrence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.occurrence-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
}

.occurrence-grid strong { display: block; }
.occurrence-grid p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.83rem; }
.occurrence-grid .present { border-top: 4px solid var(--rose); }
.occurrence-grid .absent { border-top: 4px solid var(--teal); }
.occurrence-grid .related { border-top: 4px solid var(--amber); }

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 62rem;
  border-collapse: collapse;
  font-size: 0.79rem;
  line-height: 1.48;
}

.compact-table { min-width: 55rem; }

th,
td {
  padding: 0.8rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-top: 0;
  background: #eef2ef;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

tbody th {
  width: 13.5rem;
  color: var(--ink);
  font-size: 0.8rem;
}

tbody tr:nth-child(even) { background: #fafbf9; }
small { color: var(--muted); font-weight: 500; }

.status { font-weight: 800; }
.status.high { color: var(--teal); }
.status.watch { color: var(--amber); }
.status.narrow { color: var(--blue); }
.status.low { color: var(--muted); }

.evidence-meter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.evidence-meter strong { display: block; margin-top: 0.2rem; font-size: 1.15rem; }
.evidence-meter article:first-child strong { color: var(--teal); }
.evidence-meter article:nth-child(2) strong { color: var(--rose); }
.evidence-meter article:nth-child(3) strong { color: var(--amber); }

.molecule-cards,
.test-ladder,
.fog-board,
.reflection-grid,
.subtraction-row,
.boundary-grid {
  display: grid;
  gap: 0.8rem;
}

.molecule-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.molecule-cards article { padding: 1rem; }
.molecule-cards strong { display: block; line-height: 1.25; }
.molecule-cards .status { display: block; margin-top: 0.55rem; font-size: 0.72rem; }
.molecule-cards p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.81rem; }

.test-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.test-ladder article { padding: 1rem; }
.test-ladder strong { display: block; margin-top: 0.25rem; }
.test-ladder p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.82rem; }

.fog-board { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1rem; }
.fog-board article { padding: 1rem; }
.fog-board strong { display: block; margin-top: 0.3rem; line-height: 1.2; }
.fog-board p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.82rem; }
.fog-board article:nth-child(1) { border-top: 4px solid var(--amber); }
.fog-board article:nth-child(2) { border-top: 4px solid var(--violet); }
.fog-board article:nth-child(3) { border-top: 4px solid var(--blue); }
.fog-board article:nth-child(4) { border-top: 4px solid var(--teal); }

.subtraction-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.subtraction-row article { padding: 1rem; }
.subtraction-row strong { display: block; margin-top: 0.25rem; line-height: 1.2; }
.subtraction-row p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.82rem; }

.reflection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reflection-grid article {
  padding: 1rem 1.1rem;
  box-shadow: none;
}
.reflection-grid span { color: var(--teal); }
.reflection-grid strong { display: block; margin-top: 0.25rem; line-height: 1.35; }
.reflection-grid p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.82rem; }

.boundary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.boundary-grid article { padding: 1rem; }
.boundary-grid article > strong { display: block; margin-bottom: 0.4rem; }
.boundary-grid p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.boundary-grid .keep { border-top: 4px solid var(--teal); }
.boundary-grid .pause { border-top: 4px solid var(--rose); }
.boundary-grid .watch { border-top: 4px solid var(--amber); }
.boundary-grid .keep > strong { color: var(--teal); }
.boundary-grid .pause > strong { color: var(--rose); }
.boundary-grid .watch > strong { color: var(--amber); }

details {
  max-width: 66rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
}

details + details { margin-top: 0.8rem; }

summary {
  padding: 0.95rem 1rem;
  cursor: pointer;
  font-weight: 730;
}

details > div {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

details ul { padding-left: 1.2rem; }
details li + li { margin-top: 0.35rem; }
.safety-details { border-color: #eccbd0; }

.page-footer {
  max-width: 72ch;
  margin-top: clamp(5rem, 12vw, 9rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.page-footer strong { color: var(--ink); }

@media (max-width: 980px) {
  .signal-board,
  .molecule-cards,
  .fog-board,
  .subtraction-row,
  .formula-products,
  .study-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .study-flow article { border-bottom: 1px solid var(--line); }

  .formula-products article:nth-child(2) { border-right: 0; }
  .formula-products article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .pathway-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pathway-board > article:nth-child(2) { border-right: 0; }
  .pathway-board > article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  :root { font-size: 16px; }
  body { background: var(--paper); }
  .site-bar { align-items: flex-start; }
  .site-bar nav { gap: 0.7rem; }
  .site-bar nav a:nth-child(n + 4) { display: none; }
  main { width: min(100% - 1.2rem, 74rem); padding-top: 3rem; }
  h1 { max-width: none; font-size: clamp(2.6rem, 13vw, 4rem); }

  .signal-board,
  .number-strip,
  .case-grid,
  .occurrence-grid,
  .evidence-split,
  .evidence-meter,
  .molecule-cards,
  .test-ladder,
  .fog-board,
  .reflection-grid,
  .subtraction-row,
  .boundary-grid,
  .pathway-board,
  .molecule-intersection,
  .elimination-flow,
  .decision-pair,
  .formula-products,
  .core-result,
  .study-flow { grid-template-columns: 1fr; }

  .study-flow article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .study-flow article:last-child { border-bottom: 0; }

  .formula-products article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .formula-products article:last-child { border-bottom: 0; }

  .molecule-passport > div { grid-template-columns: 1fr; }
  .molecule-passport dt { padding-bottom: 0.3rem; }
  .molecule-passport dd { padding-top: 0.3rem; }

  .exposure-side:first-child { border-right: 0; border-bottom: 1px solid #e8d4a7; }
  .exposure-side:last-child { border-left: 0; border-top: 1px solid #e8d4a7; }

  .number-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .number-strip article:last-child { border-bottom: 0; }
  .pathway-board > article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pathway-board article p { min-height: 0; }

  .dose-model {
    grid-template-columns: 1fr;
  }

  .half-life-strip { grid-template-columns: 1fr; }
  .half-life-strip span { border-top: 1px solid #cad9e8; border-left: 0; }
  .half-life-strip span:first-child { border-top: 0; }

  .dose-model i { transform: rotate(90deg); justify-self: center; }
  .verdict { grid-template-columns: 1fr; gap: 0.35rem; }
  .map-cta { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
}

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

@media print {
  body { background: white; }
  .site-bar,
  .skip-link { display: none; }
  main { width: 100%; padding: 0; }
  .signal,
  .case-card,
  .matrix-wrap,
  .number-strip,
  .pathway-board { box-shadow: none; }
  table { min-width: 0; font-size: 7pt; }
  a { color: inherit; }
  section,
  table { break-inside: avoid; }
}
