@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap');

:root {
  color-scheme: dark;
  --bg: #081117;
  --bg2: #0e1b22;
  --ink: #f4f7f2;
  --muted: #aebbb6;
  --line: rgba(255,255,255,.14);
  --card: rgba(255,255,255,.07);
  --card2: rgba(255,255,255,.11);
  --mint: #7ee0b3;
  --gold: #f3c46c;
  --coral: #ff826e;
  --blue: #8db7ff;
  --violet: #caa8ff;
  --dark: #05090d;
  --light: #f6f8f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; overflow-wrap: anywhere; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 0 34px;
  background: rgba(8,17,23,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.site-header.glass { background: rgba(8,17,23,.66); }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
}
.logo span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--mint);
  color: #06120e;
}
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 720;
}
nav a:hover { color: var(--ink); }

.home-hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 34px;
  padding: 60px 6vw 70px;
  position: relative;
}
.hero-art {
  position: absolute;
  inset: 0;
  opacity: .32;
  overflow: hidden;
}
.hero-art img {
  width: 120%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) saturate(.9);
}
.home-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,17,23,.98) 0%, rgba(8,17,23,.82) 45%, rgba(8,17,23,.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: .76rem;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: .9;
  letter-spacing: 0;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: .95;
  letter-spacing: 0;
  margin-bottom: 18px;
}
h3 { font-size: 1.16rem; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.65; }
.hero-copy p:not(.eyebrow) { font-size: 1.18rem; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 850;
}
.button.primary { background: var(--mint); color: #06120e; border-color: transparent; }
.button.ghost { background: rgba(255,255,255,.06); }

.section { padding: 82px 6vw; border-top: 1px solid var(--line); }
.dark-slab { background: #0b151b; }
.section-title { max-width: 940px; margin-bottom: 30px; }
.section-title.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.principles, .timeline, .database-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.principles article, .timeline article, .database-grid article, .gene-card, .alias-note, .inspector, .plot-notes article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.principles article, .timeline article, .database-grid article, .alias-note, .plot-notes article {
  padding: 22px;
}
.principles span, .timeline span {
  color: var(--gold);
  font-weight: 900;
  display: block;
  margin-bottom: 20px;
}
.atlas-preview { background: #101e26; }
.module-card {
  display: grid;
  grid-template-columns: minmax(300px,.85fr) minmax(360px,1.15fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-decoration: none;
}
.module-card img { border-radius: 10px; border: 1px solid var(--line); background: #fff; }

.atlas-hero {
  padding: 54px 6vw 72px;
  display: grid;
  grid-template-columns: minmax(320px,.88fr) minmax(420px,1.12fr);
  gap: 34px;
  align-items: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(126,224,179,.18), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(141,183,255,.18), transparent 28%),
    #081117;
}
.atlas-hero h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
.atlas-hero figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.08);
}
.atlas-hero figure img { border-radius: 10px; background: #fff; }
figcaption { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 12px; }
.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 28px;
}
.status-strip article {
  padding: 14px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.status-strip strong { display: block; font-size: 1.6rem; color: var(--ink); }
.status-strip span { color: var(--muted); font-size: .82rem; }

.timeline { grid-template-columns: repeat(4, minmax(0,1fr)); }
.alias-note { margin-top: 18px; line-height: 1.65; color: var(--muted); }
.alias-note strong { color: var(--ink); }

input, button {
  font: inherit;
}
input[type="search"] {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  min-width: 260px;
  background: rgba(255,255,255,.08);
  color: var(--ink);
}
button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--ink);
  cursor: pointer;
}
.script-lab { background: #071016; }
.microscope {
  display: grid;
  grid-template-columns: 260px minmax(420px,1.2fr) minmax(320px,.8fr);
  gap: 16px;
  align-items: start;
}
.script-sections {
  display: grid;
  gap: 8px;
}
.script-sections button {
  text-align: left;
  padding: 12px;
  height: auto;
}
.script-sections button.active {
  border-color: var(--mint);
  box-shadow: inset 4px 0 0 var(--mint);
}
.script-sections small { color: var(--muted); display: block; margin-top: 4px; }
.code-shell {
  border: 1px solid #263847;
  border-radius: 12px;
  overflow: hidden;
  background: #071018;
  box-shadow: 0 28px 70px rgba(0,0,0,.36);
}
.code-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #263847;
  color: #c7d3d8;
}
pre {
  margin: 0;
  max-height: 720px;
  overflow: auto;
  padding: 10px 0;
}
.code-line {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  gap: 12px;
  padding: 2px 14px 2px 0;
  color: #d9e3e6;
  font-size: .84rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.code-line mark { background: var(--gold); color: #111; }
.code-line.active { background: rgba(126,224,179,.14); }
.line-no { color: #79909a; text-align: right; user-select: none; }
.inspector {
  position: sticky;
  top: 92px;
  padding: 22px;
}
.inspector dl { display: grid; gap: 14px; margin: 16px 0 0; }
.inspector dt { color: var(--mint); font-weight: 900; }
.inspector dd { margin: 4px 0 0; color: var(--muted); line-height: 1.58; }

.plot-section { background: #101e26; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 0 14px; }
.tab.active { border-color: var(--mint); color: var(--mint); }
.plot-grid {
  display: grid;
  grid-template-columns: minmax(420px,1.25fr) minmax(300px,.75fr);
  gap: 18px;
}
.plot-frame {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.plot-frame img { min-width: 980px; }
.plot-notes { display: grid; gap: 12px; }
.plot-notes article h3 { color: var(--ink); }

.gene-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.gene-card {
  padding: 18px;
  background: rgba(255,255,255,.06);
}
.gene-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.gene-card h3 { font-size: 1.35rem; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  margin: 0 4px 5px 0;
  border-radius: 999px;
  background: rgba(126,224,179,.16);
  color: var(--mint);
  font-size: .76rem;
  font-weight: 850;
}
.pill.warn { background: rgba(243,196,108,.16); color: var(--gold); }
.pill.blue { background: rgba(141,183,255,.16); color: var(--blue); }
.pill.coral { background: rgba(255,130,110,.16); color: var(--coral); }

.database-section { background: #0b151b; }
.database-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.database-grid a { color: var(--mint); text-decoration: none; font-weight: 850; }

@media (max-width: 1120px) {
  .home-hero, .atlas-hero, .module-card, .microscope, .plot-grid {
    grid-template-columns: 1fr;
  }
  .principles, .timeline, .database-grid, .gene-board, .status-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .inspector { position: static; }
}

@media (max-width: 720px) {
  .site-header { position: static; align-items: flex-start; flex-direction: column; padding: 18px 20px; }
  nav { gap: 12px; }
  .home-hero, .atlas-hero, .section { padding-left: 20px; padding-right: 20px; }
  .principles, .timeline, .database-grid, .gene-board, .status-strip {
    grid-template-columns: 1fr;
  }
  .section-title.split { display: block; }
  input[type="search"] { width: 100%; min-width: 0; margin-top: 12px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
}

/* ── Warm editorial skin (aidailybrief.ai-inspired) ─────────────────────── */
:root {
  color-scheme: light;
  --bg: #f1e5d0;  --bg-top: #f9f1e2;
  --ink: #1c150d;  --muted: #6f5f46;  --muted2: #9b8a6f;
  --line: #d9c8a6;  --line-dk: #4a3a28;
  --card: #fffdf7;  --card2: #f5ecd7;  --panel: #1d1610;
  --dark: #100e09;
  --mint: #1e8c64;  --amber: #e8902e;  --gold: #b5780a;
  --coral: #c94030;  --blue: #2d6cbf;  --violet: #6a4ec0;
  --r: 8px;
  font-family: 'Newsreader', Georgia, serif;
}

body { background: radial-gradient(130% 80% at 50% -8%, var(--bg-top) 0, var(--bg) 60%); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  color: var(--ink);
  text-wrap: balance;
}

p { color: var(--muted); line-height: 1.72; }

.site-header,
.site-header.glass {
  background: rgba(241,229,208,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.logo span {
  background: var(--amber);
  color: #fff;
  border: none;
  box-shadow: none;
}

nav a { color: var(--ink); }

.hero-art { opacity: .28; }
.hero-art img { filter: contrast(1.08) saturate(1.1); }
.home-hero:after {
  background:
    linear-gradient(90deg, var(--bg-top) 0%, rgba(249,241,226,.88) 50%, rgba(249,241,226,.55) 100%);
}

.eyebrow {
  color: var(--amber);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button {
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: none;
}
.button.primary { background: var(--amber); color: #fff; border-color: var(--amber); }
.button.ghost { background: var(--card2); color: var(--ink); }

.section { border-top: 1px solid var(--line); }
.dark-slab   { background: var(--panel); }
.atlas-preview { background: var(--panel); }
.script-lab  { background: var(--panel); }
.plot-section { background: var(--panel); }
.database-section { background: var(--card2); }
.bibliography-teaser { background: var(--card2); }

/* Scoped light-on-dark tokens for dark panel sections */
.atlas-preview, .script-lab, .plot-section, .dark-slab {
  --ink: #f5ecd7;  --muted: #9b8a6f;  --line: var(--line-dk);
  --card: rgba(255,255,255,.07);  --card2: rgba(255,255,255,.11);
  --mint: #22d9a0;
  color: var(--ink);
}

.principles article,
.timeline article,
.database-grid article,
.gene-card,
.alias-note,
.inspector,
.plot-notes article,
.longform,
.bibliography-grid article,
.paper-stack article,
.module-card,
.atlas-hero figure,
.status-strip article,
.plot-frame {
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
}

.principles article,
.timeline article,
.database-grid article,
.alias-note,
.plot-notes article,
.longform,
.bibliography-grid article,
.paper-stack article {
  padding: 24px;
}

.principles span,
.timeline span,
.paper-stack span {
  color: var(--ink);
  background: var(--gold);
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 20px;
}

.module-card {
  border-radius: 18px;
}
.module-card img,
.atlas-hero figure img {
  border: 3px solid var(--ink);
  border-radius: 12px;
}

.atlas-hero {
  background:
    radial-gradient(circle at 18% 0%, rgba(37,211,159,.42), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(89,168,255,.35), transparent 28%),
    linear-gradient(135deg, #fff7df, #ffe86f 55%, #ffb5d8);
}

.status-strip article {
  background: var(--card2);
  box-shadow: 5px 5px 0 var(--ink);
}

input[type="search"],
button {
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
}

.script-sections button.active,
.tab.active {
  background: var(--gold);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.code-shell {
  border: 3px solid var(--ink);
  background: #171717;
  box-shadow: 8px 8px 0 var(--ink);
}
.code-head {
  background: #242424;
  color: #fff7df;
  border-bottom: 3px solid #000;
}
.code-line { color: #f8f4e6; }
.code-line.active { background: rgba(255,207,36,.22); }
.line-no { color: #a6eecd; }
.inspector dt { color: var(--ink); }

.plot-frame { background: #fff; }

.pill {
  background: #d7fff0;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.pill.warn { background: #ffe283; color: var(--ink); }
.pill.blue { background: #b8d9ff; color: var(--ink); }
.pill.coral { background: #ffb49f; color: var(--ink); }
.database-grid a { color: var(--ink); text-decoration: underline; }

.longform {
  margin-top: 18px;
  max-width: 1040px;
}
.longform p {
  font-size: 1.05rem;
}
.bibliography-hero .paper-stack {
  display: grid;
  gap: 16px;
}
.paper-stack strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.bibliography-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bibliography-grid li {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.research-hero .paper-stack {
  display: grid;
  gap: 16px;
}

.protocol-grid,
.evidence-lanes,
.research-grid {
  display: grid;
  gap: 18px;
}

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

.protocol-grid article,
.evidence-lanes article,
.research-card {
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 24px;
  border-radius: 12px;
}

.protocol-grid span,
.tag {
  color: var(--ink);
  background: var(--gold);
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 18px;
}

.tag {
  margin-bottom: 14px;
  font-size: .78rem;
  text-transform: uppercase;
}

.tag.hot {
  background: var(--coral);
}

.research-map {
  background: #d8ffd4;
}

.evidence-lanes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.research-cluster {
  margin-top: 42px;
}

.research-cluster > h3 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  max-width: 980px;
}

.research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.research-card {
  display: flex;
  flex-direction: column;
}

.research-card.anchor {
  background: #ffe86f;
}

.research-card h4 {
  font-size: 1.24rem;
  line-height: 1.16;
  margin: 0 0 12px;
}

.research-card .meta {
  font-weight: 760;
  color: var(--ink);
}

.research-card .links {
  margin-top: auto;
  padding-top: 10px;
}

.research-card .links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0 6px 8px 0;
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffdf2;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  box-shadow: 3px 3px 0 var(--ink);
}

.research-card .links a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.gene-evidence-section {
  background: #fff7df;
}

.source-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.source-ledger article,
.evidence-card {
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: 12px;
}

.source-ledger article {
  padding: 18px;
}

.source-ledger span {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--gold);
  font-weight: 900;
  margin-bottom: 10px;
}

.source-ledger strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.25;
}

.source-ledger a {
  color: var(--ink);
  font-weight: 850;
}

.evidence-controls {
  margin: 22px 0;
}

.gene-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.evidence-card {
  padding: 24px;
}

.evidence-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.evidence-card header h3 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .9;
  margin: 0;
}

.evidence-card header > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  white-space: nowrap;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #d7fff0;
  padding: 5px 10px;
  font-weight: 900;
}

.evidence-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.evidence-card section {
  margin-top: 12px;
}

.evidence-card h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.evidence-card ul {
  padding-left: 18px;
  margin: 0;
}

.evidence-card li {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 8px;
}

.evidence-card li span,
.paper-links {
  color: var(--ink);
  font-weight: 800;
}

.paper-links a,
.evidence-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 6px 8px 0;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffdf2;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  box-shadow: 3px 3px 0 var(--ink);
}

.evidence-links {
  border-top: 3px solid var(--ink);
  margin-top: 16px;
  padding-top: 14px;
}

.pipeline-hero .paper-stack {
  display: grid;
  gap: 16px;
}

.pipeline-intro {
  background: #ffe86f;
}

.pipeline-roadmap {
  background: #fff7df;
}

.pipeline-steps {
  display: grid;
  gap: 28px;
}

.pipeline-steps article,
.strategy-grid article,
.decision-flow article {
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: 12px;
  padding: 24px;
}

.pipeline-steps article {
  display: grid;
  grid-template-columns: minmax(170px, .25fr) minmax(0, .75fr);
  gap: 18px 26px;
  align-items: start;
}

.pipeline-steps article > span,
.strategy-grid article > span,
.decision-flow article > span {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--gold);
  font-weight: 950;
  width: fit-content;
}

.pipeline-steps article > span {
  grid-row: 1 / span 8;
  position: sticky;
  top: 94px;
}

.pipeline-steps h3 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: .96;
  margin-bottom: 12px;
}

.pipeline-steps h4 {
  margin: 18px 0 6px;
  font-size: 1rem;
  text-transform: uppercase;
}

.pipeline-steps ul {
  margin: 0;
  padding-left: 20px;
}

.pipeline-steps li {
  color: var(--muted);
  line-height: 1.58;
  margin-bottom: 8px;
}

.pipeline-steps a,
.pipeline-intro a {
  color: var(--ink);
  font-weight: 850;
}

.pipeline-steps pre,
.pipeline-code pre {
  background: #171717;
  color: #f8f4e6;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 18px;
  overflow: auto;
  max-height: none;
  box-shadow: 5px 5px 0 var(--ink);
}

.pipeline-steps code,
.pipeline-code code {
  white-space: pre;
  font-size: .88rem;
}

.takeaway {
  border-left: 8px solid var(--coral);
  background: #fff0b9;
  color: var(--ink);
  padding: 14px 16px;
  font-weight: 720;
}

.plot-strategy {
  background: #d8ffd4;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.strategy-grid h3,
.decision-flow h3 {
  font-size: 1.45rem;
  margin-top: 14px;
}

.implementation-section {
  background: #c7e3ff;
}

.pipeline-code {
  margin-bottom: 24px;
}

.decision-section {
  background: #ffb5d8;
}

.decision-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.gene-hero .paper-stack {
  display: grid;
  gap: 16px;
}

.gene-map-section {
  background: #c7e3ff;
}

.module-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-cloud article {
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 6px 6px 0 var(--ink);
  border-radius: 12px;
  padding: 18px;
}

.module-cloud span {
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}

.module-cloud strong {
  font-size: .95rem;
  line-height: 1.45;
}

.gene-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gene-profile-card {
  border: 3px solid var(--ink);
  background: var(--card);
  box-shadow: 8px 8px 0 var(--ink);
  border-radius: 12px;
  padding: 24px;
}

.gene-profile-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.gene-profile-card header > span {
  border: 2px solid var(--ink);
  background: #d7fff0;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

.gene-profile-card h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 8px;
}

.gene-profile-card .aliases {
  color: var(--ink);
  font-weight: 720;
}

.gene-profile-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.gene-profile-card dt {
  font-weight: 950;
  color: var(--ink);
}

.gene-profile-card dd {
  margin: -6px 0 8px;
  color: var(--muted);
  line-height: 1.62;
}

.gene-profile-card .links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0 6px 8px 0;
  padding: 4px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fffdf2;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  box-shadow: 3px 3px 0 var(--ink);
}

.gene-card .gene-summary {
  color: var(--muted);
}

.gene-card .gene-links a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: underline;
  margin-right: 10px;
}

@media (max-width: 720px) {
  .bibliography-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .protocol-grid,
  .evidence-lanes,
  .research-grid,
  .module-cloud,
  .gene-profile-grid,
  .source-ledger,
  .strategy-grid,
  .decision-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .evidence-columns { grid-template-columns: 1fr; }
  .pipeline-steps article { grid-template-columns: 1fr; }
  .pipeline-steps article > span { position: static; grid-row: auto; }
}

@media (max-width: 720px) {
  .protocol-grid,
  .evidence-lanes,
  .research-grid,
  .module-cloud,
  .gene-profile-grid,
  .source-ledger,
  .strategy-grid,
  .decision-flow {
    grid-template-columns: 1fr;
  }
  .evidence-card header { display: block; }
  .evidence-card header > span { white-space: normal; margin-top: 10px; }
  .gene-profile-card header { display: block; }
  .gene-profile-card header > span { display: inline-flex; margin-top: 8px; white-space: normal; }
}

/* ── Readability bump ────────────────────────────────────────────────────── */
html { font-size: 17.5px; }
p { line-height: 1.8; }
h3 { font-size: 1.22rem; }
nav a { font-size: .98rem; }
.status-strip span { font-size: .9rem; }
figcaption { font-size: .92rem; line-height: 1.62; }
.ref-annotation { font-size: 1rem; line-height: 1.78; }
.inspector dd,
.gene-profile-card dd { font-size: 1rem; line-height: 1.75; }
.plot-notes p,
.longform p,
.alias-note { font-size: 1rem; line-height: 1.78; }
.section-title p { font-size: 1.05rem; line-height: 1.72; }
