:root {
  --ink: #16201f;
  --muted: #5b6967;
  --paper: #ffffff;
  --soft: #f1f4f3;
  --line: #d7dfdd;
  --forest: #173d35;
  --green: #167a64;
  --green-soft: #dceee8;
  --amber: #b47a22;
  --amber-soft: #f5ead7;
  --berry: #b5485a;
  --berry-soft: #f6e2e6;
  --blue: #346ba1;
  --blue-soft: #e4eef8;
  --charcoal: #242c2b;
  --max: 1180px;
  --narrow: 820px;
  --radius: 8px;
  --shadow: 0 12px 34px rgba(19, 47, 42, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}
img, svg { max-width: 100%; }
a { color: var(--forest); text-decoration-color: rgba(22, 122, 100, .45); text-underline-offset: 3px; }
a:hover { color: var(--green); }
button, input, select { font: inherit; letter-spacing: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 650; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: 48px; }
h2 { font-size: 31px; }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .42rem; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; background: white; color: var(--ink); }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(215, 223, 221, .86); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.nav-wrap { width: min(var(--max), calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.brand span { display: flex; align-items: baseline; gap: 6px; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.brand small { color: var(--green); font-size: 11px; font-weight: 800; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: #34403e; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 4px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }
.container, .content-narrow, .home-section, .article { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.content-narrow { width: min(var(--narrow), calc(100% - 40px)); }
.article { width: min(940px, calc(100% - 40px)); padding: 48px 0 76px; }
.article > section + section, .article > section + h2, .article > div + h2, .article > h2 + section { margin-top: 48px; }
.article > h2 { margin-top: 52px; margin-bottom: 15px; }
.hero-v2 { min-height: min(720px, calc(100vh - 72px)); display: grid; align-items: end; color: white; background-color: #28312f; background-image: linear-gradient(90deg, rgba(15, 27, 25, .88) 0%, rgba(15, 27, 25, .67) 42%, rgba(15, 27, 25, .08) 75%), url("research-lab-hero-v2.webp"); background-size: cover; background-position: center; }
.hero-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 88px 0 72px; }
.hero-copy { max-width: 690px; }
.hero-v2 h1 { color: white; font-size: 66px; }
.hero-v2 .hero-sub { max-width: 650px; margin: 22px 0 30px; color: #e8efed; font-size: 20px; }
.hero-v2 .eyebrow { color: #9bd9c9; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid currentColor; border-radius: 4px; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.secondary { border-color: rgba(255,255,255,.75); color: white; }
.button.dark-secondary { color: var(--forest); background: white; }
.button:hover { transform: translateY(-1px); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: #d6e4e0; font-size: 13px; }
.hero-proof strong { color: white; }
.page-head { padding: 74px 0 54px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .lead { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 19px; }
.crumbs { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.crumbs a { color: inherit; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 9px; border: 1px solid #bdcac6; border-radius: 4px; background: white; color: #40504d; font-size: 12px; font-weight: 700; }
.band { padding: 70px 0; }
.band.soft { background: var(--soft); }
.band.dark { background: var(--charcoal); color: #e7efed; }
.band.dark h2, .band.dark h3 { color: white; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-head p { max-width: 650px; margin: 10px 0 0; color: var(--muted); }
.band.dark .section-head p { color: #bfcac7; }
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.stat-strip > div { min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip span, .stat-strip small { display: block; color: var(--muted); font-size: 12px; }
.stat-strip strong { display: block; margin: 7px 0 4px; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1; }
.finding-band { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.finding-callout { padding-left: 24px; border-left: 4px solid var(--berry); }
.finding-callout strong { display: block; margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .dossier-card, .path-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.card h3, .dossier-card h3, .path-card h3 { margin-bottom: 10px; }
.card p, .dossier-card p, .path-card p { color: var(--muted); }
.card .card-link, .dossier-card .card-link, .path-card .card-link { font-weight: 800; }
.dossier-card { position: relative; padding-top: 62px; }
.ticker-tab { position: absolute; top: 20px; left: 24px; display: inline-flex; min-width: 54px; min-height: 30px; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 3px; background: var(--forest); color: white; font-size: 12px; font-weight: 900; }
.evidence-badge { display: inline-flex; padding: 4px 8px; border-radius: 3px; background: var(--green-soft); color: #115c4c; font-size: 11px; font-weight: 800; }
.evidence-badge.unobserved { background: var(--soft); color: var(--muted); }
.research-map { display: grid; grid-template-columns: 250px 1fr; gap: 40px; }
.side-nav { position: sticky; top: 96px; align-self: start; padding: 18px; border-left: 3px solid var(--green); background: var(--soft); }
.side-nav a { display: block; padding: 6px 0; text-decoration: none; font-weight: 700; }
.decision-table, .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.decision-table th, .decision-table td, .data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.decision-table th, .data-table th { color: var(--forest); background: var(--soft); font-size: 12px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { min-width: 680px; }
.data-figure { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.figure-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.figure-head figcaption { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 18px; height: 3px; }
.chart-scroll { overflow-x: auto; }
.line-chart { display: block; min-width: 620px; }
.line-chart text { fill: var(--muted); font-family: inherit; font-size: 11px; }
.chart-grid { stroke: #e6ecea; stroke-width: 1; }
.chart-zero { stroke: #7f8d8a; stroke-width: 1.5; stroke-dasharray: 5 5; }
.evidence-empty { padding: 26px; border: 1px dashed #aebbb8; background: var(--soft); }
.notice { padding: 20px 22px; border-left: 4px solid var(--amber); background: var(--amber-soft); color: #5c4218; }
.risk-notice { border-left-color: var(--berry); background: var(--berry-soft); color: #692b36; }
.blue-notice { border-left-color: var(--blue); background: var(--blue-soft); color: #234e77; }
.source-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; padding: 30px; border-top: 4px solid var(--forest); background: var(--soft); }
.source-band h2 { margin-bottom: 10px; }
.source-band p { color: var(--muted); }
.source-band ul { margin: 0; }
.evidence-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.evidence-ladder div { min-height: 145px; padding: 20px; background: white; }
.evidence-ladder strong { display: block; color: var(--forest); }
.evidence-ladder span { color: var(--muted); font-size: 13px; }
.lifecycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); }
.lifecycle div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.lifecycle div:last-child { border-right: 0; }
.lifecycle strong { display: block; margin-bottom: 5px; }
.lifecycle span { color: var(--muted); font-size: 13px; }
.lifecycle .early { border-top: 5px solid var(--blue); }
.lifecycle .developing { border-top: 5px solid var(--green); }
.lifecycle .visible { border-top: 5px solid var(--amber); }
.lifecycle .overheat { border-top: 5px solid var(--berry); }
.lifecycle .retired { border-top: 5px solid #66706f; }
.search-panel { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 24px; }
.search-panel input, .search-panel select, .lab-tool input, .lab-tool select { min-height: 46px; width: 100%; padding: 9px 12px; border: 1px solid #aebbb8; border-radius: 4px; background: white; color: var(--ink); }
.lab-tool { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.tool-controls { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.tool-output { margin-top: 22px; }
.tool-output .stat-strip { border: 1px solid var(--line); }
.provenance { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.provenance strong { color: var(--ink); }
.article-index { columns: 2; column-gap: 40px; }
.article-index li { break-inside: avoid; margin-bottom: 8px; }
.site-footer { padding: 58px 0 24px; background: #17201f; color: #cbd5d2; }
.footer-grid { width: min(var(--max), calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid strong, .footer-brand { color: white; }
.footer-grid a { color: #cbd5d2; text-decoration: none; }
.footer-legal { width: min(var(--max), calc(100% - 40px)); margin: 38px auto 0; padding-top: 20px; border-top: 1px solid #34413f; display: flex; justify-content: space-between; gap: 20px; color: #98a8a4; font-size: 12px; }
.muted { color: var(--muted); }
.fineprint { color: var(--muted); font-size: 12px; }
.align-right { text-align: right; }
.positive { color: var(--green); }
.negative { color: var(--berry); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  h1 { font-size: 40px; }
  .hero-v2 h1 { font-size: 52px; }
  .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .source-band, .finding-band, .research-map { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .evidence-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle div { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-wrap { width: min(100% - 28px, var(--max)); min-height: 64px; }
  .nav-toggle { display: block; }
  nav { position: absolute; top: 64px; left: 0; right: 0; display: none; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
  nav.is-open { display: grid; }
  nav a { padding: 9px 0; }
  .hero-v2 { min-height: 680px; background-image: linear-gradient(90deg, rgba(15, 27, 25, .90), rgba(15, 27, 25, .58)), url("research-lab-hero-v2.webp"); background-position: 60% center; }
  .hero-inner { padding: 70px 0 48px; }
  .hero-v2 h1 { font-size: 43px; }
  .hero-v2 .hero-sub { font-size: 18px; }
  .page-head { padding: 52px 0 40px; }
  .grid, .grid.two, .grid.four { grid-template-columns: 1fr; }
  .section-head, .figure-head, .footer-legal { align-items: flex-start; flex-direction: column; }
  .search-panel, .tool-controls { grid-template-columns: 1fr; }
  .article-index { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

@media (max-width: 480px) {
  h1 { font-size: 35px; }
  h2 { font-size: 27px; }
  .hero-v2 h1 { font-size: 38px; }
  .container, .content-narrow, .home-section, .article { width: min(100% - 28px, var(--max)); }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-strip > div:last-child { border-bottom: 0; }
  .evidence-ladder { grid-template-columns: 1fr; }
  .button-row { display: grid; }
  .button { width: 100%; }
}

@media print {
  .site-header, .site-footer, .button-row, .nav-toggle { display: none !important; }
  body { color: #000; }
  .page-head, .band.soft { background: white; }
  .article { width: 100%; }
  .card, .data-figure, .table-wrap { box-shadow: none; break-inside: avoid; }
}

.hero-v2 {
  position: relative;
  isolation: isolate;
  background-image: url("research-lab-hero-v2.webp");
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 67%;
  background: rgba(15, 27, 25, .78);
  clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}
.hero-inner { position: relative; z-index: 1; }
.band.dark .path-card { color: var(--ink); }
.band.dark .path-card h3 { color: var(--ink); }
@media (max-width: 760px) {
  .hero-v2 { background-image: url("research-lab-hero-v2.webp"); }
  .hero-v2::before { width: 100%; clip-path: none; background: rgba(15, 27, 25, .78); }
}
