/* SovietRX Beta — design tokens consumed from /DESIGN.md
   See /DESIGN.md for rationale, palette origins, and legal posture. */
:root {
  /* Colors */
  --color-primary:      #1A1C1E;
  --color-secondary:    #6C7278;
  --color-tertiary:     #B8422E;   /* Sakhalin Clay */
  --color-surface:      #FFFFFF;
  --color-surface-muted:#F4EFE8;
  --color-border:       #D6CFC4;
  --color-border-ink:   rgba(26, 28, 30, 0.16);
  --color-ink:          #1A1C1E;
  --color-ink-muted:    #6C7278;
  --color-accent:       #B8422E;
  --color-accent-soft:  #F1E1DA;

  /* Typography */
  --font-display: "PT Serif", "Times New Roman", Times, serif;
  --font-body: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --measure: 76ch;
  --grid-ink: rgba(26, 28, 30, 0.14);
  --grid-ink-soft: rgba(26, 28, 30, 0.08);

  /* Spacing scale (4px grid) */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-xxl: 64px;

  /* Radii */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-pill: 999px;

  /* Misc */
  --maxw: 48rem;
  --maxw-wide: 56rem;
  --rail: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.topnav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--space-lg);
  display: flex; align-items: center; gap: var(--space-lg);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}
.brand .brand-mark { color: var(--color-accent); }
.brand .brand-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: var(--radius-xs);
}
.topnav-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  background: var(--color-surface);
}
.topnav-search kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  color: var(--color-ink-muted);
  background: var(--color-surface-muted);
}
.topnav-actions { display: flex; gap: var(--space-sm); align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-primary); }
.btn-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-surface-muted); }
.btn-sm { padding: 5px 10px; font-size: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--color-ink);
  max-width: 780px;
}
.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}
.hero-meta {
  margin-top: var(--space-md);
  display: flex; gap: var(--space-lg); flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.hero-meta strong { color: var(--color-ink); font-weight: 600; }

/* ---------- Shell ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: var(--space-xl);
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; gap: var(--space-lg); }
  .rail { order: 2; }
}

/* ---------- Left rail (corpus nav) ---------- */
.rail h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-sm);
}
.rail nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-xl); }
.rail nav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  font-size: 0.875rem;
  display: flex; justify-content: space-between; align-items: center;
}
.rail nav a:hover { background: var(--color-surface-muted); }
.rail nav a[aria-current="page"] {
  background: var(--color-surface-muted);
  color: var(--color-accent);
  font-weight: 500;
}
.rail nav a span.count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-ink-muted);
}

.rail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.rail-card .label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-sm);
}
.rail-card p { margin: 0 0 var(--space-sm); font-size: 0.825rem; color: var(--color-ink-muted); }
.rail-card .kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  color: var(--color-ink);
}

/* ---------- Feed ---------- */
.feed > .section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--space-md);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head .view-all {
  font-size: 0.825rem;
  color: var(--color-accent);
}

/* ---------- Dossier card ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: var(--space-md);
  transition: border-color 120ms ease;
}
.card:hover { border-color: var(--color-accent); }

.card .head {
  display: flex; gap: var(--space-md);
  align-items: flex-start;
}
.card .hero-thumb {
  width: 88px; height: 88px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-ink-muted);
  text-align: center;
  flex-shrink: 0;
  padding: 6px;
  word-break: break-all;
  line-height: 1.25;
}
.card .body { flex: 1; min-width: 0; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.card h3 a { color: var(--color-ink); }
.card h3 a:hover { color: var(--color-accent); }
.card .excerpt {
  margin: 6px 0 12px;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.card .attribution {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  align-items: center;
  font-size: 0.825rem;
  margin-bottom: 10px;
}
.attribution .author {
  color: var(--color-ink);
  font-weight: 500;
}
.attribution .author:hover { color: var(--color-accent); }
.attribution .dot { color: var(--color-ink-muted); }
.attribution .org-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem;
  color: var(--color-ink-muted);
}
.attribution .org-chip::before {
  content: "";
  width: 14px; height: 14px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-surface-muted);
  display: inline-block;
}
.card .meta-row {
  display: flex; gap: var(--space-lg); flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}
.card .meta-row strong { color: var(--color-ink); font-weight: 600; }
.card .meta-row .count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.card .meta-row .views {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 500;
}
.card .pills {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---------- Pills / tags ---------- */
.pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.pill.grade-c { background: #ECE6DC; color: #6C7278; }
.pill.grade-b { background: #E8E2D2; color: #1A1C1E; }

/* ---------- "Researchers to follow" grid ---------- */
.researchers {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: var(--space-lg) 0;
}
.researchers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.researcher {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex; gap: 12px; align-items: flex-start;
  transition: background 120ms ease, border-color 120ms ease;
}
.researcher:hover { background: var(--color-surface-muted); border-color: var(--color-border); }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.researcher .meta { flex: 1; min-width: 0; }
.researcher .name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: var(--color-ink);
}
.researcher .role {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.researcher .follow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.researcher .follow:hover { border-color: var(--color-accent); color: var(--color-accent); }
.researcher .follow.is-following {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
}

/* ---------- Organizations strip ---------- */
.orgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}
.org-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; gap: 12px; align-items: center;
  transition: border-color 120ms ease;
}
.org-card:hover { border-color: var(--color-accent); }
.org-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.org-card .org-name {
  font-weight: 600; font-size: 0.9rem; color: var(--color-ink); line-height: 1.3;
}
.org-card .org-meta {
  font-size: 0.75rem; color: var(--color-ink-muted); margin-top: 2px;
}

/* ---------- Grounded literature review block ---------- */
.review {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--color-surface);
  margin-bottom: var(--space-lg);
}
.review-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--space-md);
}
.review-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.review-head .src {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-ink-muted);
}
.review p { margin: 0 0 var(--space-md); color: var(--color-ink); }
.review ul.lit-list {
  margin: 0 0 var(--space-md);
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--color-ink);
  line-height: 1.55;
}
.review ul.lit-list li { margin-bottom: 4px; }
.review.lab-hyp {
  border-color: var(--color-accent);
  border-style: dashed;
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-surface) 100%);
}
.review.lab-hyp .review-head h3 {
  font-style: italic;
}
.review .claim {
  padding: 10px 12px;
  border-left: 2px solid var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}
.review .citations {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--space-sm);
}
.review .citations a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  color: var(--color-ink);
}
.review .citations a:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: var(--space-xxl);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}
.footer a { color: var(--color-ink-muted); }
.footer a:hover { color: var(--color-accent); }
.footer nav { display: flex; gap: var(--space-lg); }

/* ---------- Misc ---------- */
.kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}
hr.div {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

/* Print + reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* ---------- Beta integration v5: lines, badges, phenotype, pages ---------- */
.pill-keeper {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-color: #E6CCBE;
}
.badge-secondary {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.lines-block { margin-bottom: var(--space-lg); }
.line-face {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.line-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
}
.line-card > p { margin: 0 0 var(--space-sm); color: var(--color-ink); font-size: 0.92rem; }
.line-more { margin-top: var(--space-sm); }
.line-more summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-tertiary);
  list-style: none;
}
.line-more summary::-webkit-details-marker { display: none; }
.line-more summary::before { content: "+ "; }
.line-more[open] summary::before { content: "− "; }
.line-more p {
  margin: var(--space-sm) 0 0;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  line-height: 1.55;
  max-width: 62ch;
}

.registry-block {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-muted);
}
.registry-block > summary {
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  list-style: none;
}
.registry-block > summary::-webkit-details-marker { display: none; }
.section-head-inline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
}
.count-inline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}
.registry-note {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin: var(--space-md) 0 var(--space-sm);
}
.registry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 16px;
}
.registry-list a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-tertiary);
}
.registry-list a:hover { text-decoration: underline; }

/* Phenotype panel (dossier) */
.phenotype-panel { background: transparent; }
.pheno-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 72ch;
  margin: 0 0 var(--space-sm);
  color: var(--color-ink);
}
.pheno-axes {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}
.pheno-axis {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.pheno-axis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pheno-axis-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  text-transform: lowercase;
}
.pheno-cw {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-ink-muted);
}
.pheno-gloss {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink);
  max-width: 72ch;
}
.pheno-src {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-tertiary);
  text-decoration: none;
}
.pheno-src:hover { text-decoration: underline; }

/* Static subpages */
.page-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-lg);
}
.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.link-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  transition: border-color 0.15s ease;
}
.link-card:hover { border-color: var(--color-accent); }
.link-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 4px 0 8px;
}
.link-card p {
  margin: 0 0 12px;
  color: var(--color-ink-muted);
  font-size: 0.9rem;
}
.link-go {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-tertiary);
}
.page-note {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  max-width: 68ch;
}
.embed-frame-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--color-surface-muted);
}
.embed-frame {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
  background: #fff;
}
.prose-page .line-essay {
  margin-bottom: var(--space-xl);
  max-width: 68ch;
}
.prose-page .line-essay h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 4px 0 12px;
}
.prose-page .lede {
  font-size: 1.05rem;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}
.prose-page .line-essay p {
  margin: 0 0 var(--space-md);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .line-face, .link-grid, .registry-list { grid-template-columns: 1fr; }
  .embed-frame { height: 480px; }
}

/* ---------- Simplify pass v7: single-column primary path ---------- */
.topnav-inner {
  max-width: var(--maxw-wide, 56rem);
  justify-content: space-between;
}
.topnav-search { display: none !important; }
.topnav-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }

.main-col {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-xxl);
}
.hero-inner {
  max-width: var(--maxw);
}
.hero h1 { max-width: 36rem; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.hero p { max-width: 40rem; }
.hero-browse {
  margin-top: var(--space-md) !important;
  color: var(--color-ink) !important;
  font-weight: 500;
}
.hero-links {
  margin-top: var(--space-sm) !important;
  font-size: 0.875rem !important;
  color: var(--color-ink-muted) !important;
}
.hero-links a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

.how-block {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.how-block h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 var(--space-md);
}
.how-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-ink);
  max-width: 36rem;
}
.how-list li { margin: 0 0 8px; line-height: 1.5; }

.compound-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.simple-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--color-surface);
}
.simple-card:hover { border-color: var(--color-accent); }
.simple-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.simple-card h3 a { color: var(--color-ink); }
.simple-card h3 a:hover { color: var(--color-accent); }
.simple-card .excerpt {
  margin: 0 0 12px;
  color: var(--color-ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.line-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--color-surface-muted);
  color: var(--color-ink-muted);
  border: 1px solid var(--color-border);
  margin-right: 8px;
}
.meta-tiny {
  font-size: 0.75rem;
  color: var(--color-ink-muted);
}

.line-face {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .line-face { grid-template-columns: 1fr 1fr; }
}
.line-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
}
.line-card:hover { border-color: var(--color-accent); }
.line-card .kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  margin-bottom: 8px;
}
.line-card p { margin: 0; color: var(--color-ink-muted); font-size: 0.9rem; line-height: 1.55; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}
.section-head .view-all {
  font-size: 0.825rem;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Drop dual-rail primary path */
.shell {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}
.rail { display: none !important; }
.feed { max-width: 100%; }

.page-shell { padding-top: 0; }
.page-shell.main-col, .main-col.page-shell { padding-top: var(--space-lg); }

.grade-legend {
  font-size: 0.82rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 0 var(--space-lg);
  padding: 10px 12px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.footer-inner {
  max-width: var(--maxw-wide, 56rem);
}

.registry-block {
  margin: var(--space-lg) 0 var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.registry-block summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  list-style: none;
}
.registry-block summary::-webkit-details-marker { display: none; }
.section-head-inline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.count-inline {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}
.registry-note {
  margin: var(--space-md) 0;
  color: var(--color-ink-muted);
  font-size: 0.875rem;
}
.registry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 12px;
}
.registry-list a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9rem;
}
.registry-list a:hover { color: var(--color-accent); }

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) {
  .link-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Simplify v7 utilities (ensure present) ---------- */
.main-col { max-width: var(--maxw); margin: 0 auto; padding: var(--space-xl) var(--space-lg) var(--space-xxl); }
.how-block { margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.how-block h2 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 var(--space-md); }
.how-list { margin: 0; padding-left: 1.25rem; max-width: 36rem; }
.how-list li { margin: 0 0 8px; line-height: 1.5; }
.hero-browse { margin-top: var(--space-md); font-weight: 500; color: var(--color-ink); }
.compound-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-xl); }
.simple-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; background: var(--color-surface); }
.simple-card:hover { border-color: var(--color-accent); }
.simple-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; }
.simple-card h3 a { color: var(--color-ink); }
.simple-card h3 a:hover { color: var(--color-accent); }
.simple-card .excerpt { margin: 0 0 12px; color: var(--color-ink-muted); font-size: 0.9rem; line-height: 1.55; }
.line-chip { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-xs); background: var(--color-surface-muted); color: var(--color-ink-muted); border: 1px solid var(--color-border); margin-right: 8px; }
.meta-tiny { font-size: 0.75rem; color: var(--color-ink-muted); }
.grade-legend { font-size: 0.82rem; color: var(--color-ink-muted); line-height: 1.5; max-width: 42rem; margin: 0 0 var(--space-lg); padding: 10px 12px; background: var(--color-surface-muted); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.topnav-search { display: none !important; }
.rail { display: none !important; }
.shell { display: block; max-width: var(--maxw); margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.topnav-inner { max-width: var(--maxw-wide, 56rem); }
.topnav-actions { margin-left: auto; flex-wrap: wrap; }

/* Index class aliases (simplify pass) */
.main-col { max-width: var(--maxw); margin: 0 auto; padding: var(--space-xl) var(--space-lg) var(--space-xxl); }
.hero-browse { margin-top: var(--space-md); font-weight: 500; color: var(--color-ink); }
.hero-links { margin-top: var(--space-sm); font-size: 0.875rem; color: var(--color-ink-muted); }
.hero-links a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.how-block { margin-bottom: var(--space-xl); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.how-list { margin: 0; padding-left: 1.25rem; max-width: 36rem; }
.compound-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); margin-bottom: var(--space-xl); }
.simple-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; background: var(--color-surface); }
.simple-card:hover { border-color: var(--color-accent); }
.simple-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; }
.simple-card h3 a { color: var(--color-ink); text-decoration: none; }
.simple-card h3 a:hover { color: var(--color-accent); }
.simple-card .excerpt { margin: 0 0 12px; color: var(--color-ink-muted); font-size: 0.9rem; line-height: 1.55; }
.line-chip { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-xs); background: var(--color-surface-muted); color: var(--color-ink-muted); border: 1px solid var(--color-border); margin-right: 8px; }
.meta-tiny { font-size: 0.75rem; color: var(--color-ink-muted); }
.grade-legend { font-size: 0.82rem; color: var(--color-ink-muted); line-height: 1.5; max-width: 42rem; margin: 0 0 var(--space-lg); padding: 10px 12px; background: var(--color-surface-muted); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.topnav-search { display: none !important; }
.rail { display: none !important; }
.shell { display: block; max-width: var(--maxw); margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.line-face { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .line-face { grid-template-columns: 1fr 1fr; } }
.line-card { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 20px; background: var(--color-surface); color: inherit; text-decoration: none; }
.line-card:hover { border-color: var(--color-accent); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-md); }
.section-head h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 0; }
.section-head .view-all { font-size: 0.825rem; color: var(--color-accent); white-space: nowrap; }
.registry-block { margin: var(--space-lg) 0 var(--space-xl); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px 16px; }
.registry-block summary { cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); list-style: none; }
.registry-block summary::-webkit-details-marker { display: none; }
.section-head-inline { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.count-inline { font-size: 0.8rem; color: var(--color-ink-muted); }
.registry-note { margin: var(--space-md) 0; color: var(--color-ink-muted); font-size: 0.875rem; }
.registry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; }
.registry-list a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 2px; font-size: 0.9rem; }
.topnav-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* === DOSSIER GRID-SANS v11 — instrument / archive technical === */

/* Finer dotted instrument grid — sitewide (grid-sheet) + dossier alias
   8px radial dots (not solid 16px rules). Solid chrome panels sit over the
   grid; seam borders removed so the first grid row doesn't double a hairline. */
body.grid-sheet,
body.dossier-page {
  background-color: var(--color-surface-muted);
  background-image: radial-gradient(circle, var(--grid-ink) 0.55px, transparent 0.65px);
  background-size: 8px 8px;
  background-position: 4px 4px; /* offset so a dot isn't flush on panel seams */
  color: var(--color-ink);
  font-family: var(--font-body);
}
body.grid-sheet .topnav,
body.grid-sheet .footer,
body.dossier-page .topnav,
body.dossier-page .footer {
  background: var(--color-surface);
  font-family: var(--font-body);
  border-color: transparent;
}
/* Kill double-line seam: no border stacked on the first grid row */
body.grid-sheet .topnav,
body.dossier-page .topnav {
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(26, 28, 30, 0.06);
}
body.grid-sheet .footer,
body.dossier-page .footer {
  border-top: 0;
  box-shadow: 0 -1px 0 rgba(26, 28, 30, 0.06);
}
body.dossier-page .topnav-inner,
body.dossier-page .footer-inner,
body.grid-sheet .topnav-inner,
body.grid-sheet .footer-inner {
  max-width: 72rem;
}

/* Hero — ruled sheet, sans */
.detail-hero {
  background: var(--color-surface);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(26, 28, 30, 0.06);
}
.detail-hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg) var(--space-xl);
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
}
.detail-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.4rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--color-ink);
  text-transform: lowercase;
}
.detail-hero .hero-lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-ink);
  max-width: var(--measure);
  margin: 0 0 12px;
}
.detail-hero .hero-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
  margin: 0;
  letter-spacing: 0.01em;
}
.detail-hero:has(.hero-meta) .pills,
.detail-hero:has(.hero-meta) .formula,
.detail-hero:has(.hero-meta) .origin { display: none !important; }
.detail-hero .formula {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin: 0 0 8px;
}
.detail-hero .formula-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  color: var(--color-ink-muted);
  margin-right: 4px;
}
.detail-hero .formula-label::after { content: ":"; }
.detail-hero .pills { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.detail-hero .origin {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin-top: 10px;
}

/* Main dossier column — 12-col feel: main + narrow aside */
.detail-body {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-xxl);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
@media (min-width: 960px) {
  .detail-body {
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: var(--space-xl);
  }
  .dossier-toc {
    grid-column: 1;
    grid-row: 1 / span 99;
    position: sticky;
    top: 72px;
    align-self: start;
    max-width: none;
    margin: 0;
    padding: 0 0 0 0;
    border-bottom: 0;
    border-right: 1px solid var(--color-border-ink);
    padding-right: var(--space-md);
  }
  .dossier-toc .toc-list {
    display: block;
    flex-wrap: nowrap;
  }
  .dossier-toc .toc-list li {
    display: block;
    margin: 0 0 0.35em;
  }
  .dossier-toc .toc-list li:not(:last-child)::after { content: none; }
  .detail-body > .id-plate,
  .detail-body > .diagram-block,
  .detail-body > .detail-section,
  .detail-body > .provenance {
    grid-column: 2;
  }
}

.detail-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border-ink);
  max-width: var(--measure);
}
.detail-section:last-of-type { border-bottom: 0; }

/* Section titles sit on a horizontal grid rule */
.detail-section > h2,
h2.section-title,
.limits-heading,
.kicker-line {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  color: var(--color-ink);
  text-transform: none;
  border-bottom: 1px solid var(--color-border-ink);
}
.limits-heading {
  font-size: 0.95rem;
  margin-top: 1.4em;
}

.detail-section p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  margin: 0 0 1em;
  max-width: var(--measure);
}
.detail-section p:last-child { margin-bottom: 0; }

.line-chip { background: transparent; border: 0; padding: 0; color: var(--color-ink-muted); }

.dossier-toc {
  margin: 0 0 var(--space-xl);
  padding: 0 0 var(--space-md);
  border: 0;
  border-bottom: 1px solid var(--color-border-ink);
  border-radius: 0;
  background: transparent;
  max-width: var(--measure);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}
.dossier-toc .kicker-line { display: none; }
.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em;
}
.toc-list li {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  break-inside: avoid;
}
.toc-list li:not(:last-child)::after {
  content: " · ";
  color: var(--color-border);
  margin: 0 0.15em;
}
.toc-list a {
  color: var(--color-ink-muted);
  text-decoration: none;
}
.toc-list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Key takeaways — plain numbered list; no chip / left-accent cards */
.takeaway-list {
  margin: 0;
  padding-left: 1.35rem;
  max-width: var(--measure);
  list-style: decimal;
  display: block !important;
  gap: 0 !important;
}
.takeaway-list li {
  position: static !important;
  padding: 0 0 0.7em !important;
  margin: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
}
.takeaway-list li:last-child { padding-bottom: 0 !important; }
.takeaway-list li::marker {
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.lit-intro {
  font-family: var(--font-body);
  font-size: 0.9rem !important;
  color: var(--color-ink-muted) !important;
  margin-bottom: 1.1em !important;
}
.lit-chapter {
  margin: 1.5em 0 0;
  padding-top: 0;
  border-top: 0;
  max-width: var(--measure);
}
.lit-chapter + .lit-chapter,
.lit-chapter:not(:first-of-type) {
  margin-top: 1.75em;
  padding-top: 1.25em;
  border-top: 1px solid var(--color-border-ink);
}
.lit-chapter h2 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 0.65em;
  color: var(--color-ink);
  text-transform: none;
  letter-spacing: -0.01em;
}
.lit-chapter p { margin: 0 0 0.85em; font-size: 1rem; line-height: 1.65; }
.chapter-sources {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  margin: 0 0 0.9em !important;
  color: var(--color-ink-muted) !important;
}

.limits-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: var(--measure);
}
.limits-list li {
  margin: 0.4em 0;
  line-height: 1.55;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.limits-list li::marker { color: var(--color-ink-muted); }

.src-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.src-link:hover { opacity: 0.85; }

/* Papers — tabular year | title | link with hairlines */
.paper-list,
.paper-list-arc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border-ink);
}
.paper-row-arc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--color-border-ink);
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: var(--font-body);
}
.paper-row-arc .paper-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  margin-right: 0;
  flex: 0 0 3.1rem;
}
.paper-row-arc .paper-title {
  color: var(--color-ink);
  flex: 1 1 12rem;
  min-width: 0;
}
.paper-row-arc .src-link {
  flex: 0 0 auto;
  margin-left: auto;
}
.paper-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink-muted);
  margin: 0.75em 0 0;
}

.open-q {
  margin: 0;
  padding-left: 1.25rem;
  max-width: var(--measure);
}
.open-q li {
  margin: 0.4em 0;
  line-height: 1.55;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.open-q li::marker { color: var(--color-ink-muted); }

.synth-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin: 0 0 0.75em;
}

.provenance,
.dossier-stopline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  border-top: 1px solid var(--color-border-ink);
  padding-top: var(--space-lg);
  margin-top: var(--space-xl);
  max-width: var(--measure);
}
.provenance p { margin: 0.35em 0; max-width: var(--measure); font-size: inherit; }
.provenance .back {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Identity plate (archive datasheet) ---------- */
.id-plate {
  margin: 0 0 var(--space-xl);
  padding: 0;
  max-width: var(--measure);
}
.id-plate-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 0;
  border: 1px solid var(--color-border-ink);
  border-bottom: 0;
  background: var(--color-surface);
  padding: 6px 12px 0;
}
.id-plate-head::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px solid var(--color-border-ink);
  margin-left: 4px;
}
.id-plate-mark {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--color-ink-muted);
  text-transform: none;
  white-space: nowrap;
}
.id-plate-body {
  border: 1px solid var(--color-border-ink);
  background: var(--color-surface);
  padding: 12px 14px 14px;
  margin: 0;
}
.id-plate-cols {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: start;
}
.id-plate-img {
  border: 0;
  background: transparent;
  padding: 0;
  line-height: 0;
}
.id-plate-img img {
  width: 140px;
  height: auto;
  display: block;
  border: 0;
  background: transparent;
}
.id-plate-fields { min-width: 0; }
.id-plate-primary { margin: 0 0 2px; }
.id-field-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ink-muted);
  text-transform: none;
  display: inline-block;
  margin: 0 0 4px;
}
.id-primary {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  margin: 0;
  word-break: break-word;
}
.id-plate-rule {
  border: 0;
  border-top: 1px solid var(--color-border-ink);
  margin: 10px 0;
  height: 0;
}
.id-plate-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-ink);
}
.id-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
  margin-right: 2px;
}
.id-meta .id-field-label { margin: 0; }
.id-val {
  font-family: var(--font-mono);
  color: var(--color-ink);
}
.id-sep {
  color: var(--color-ink-muted);
  margin: 0 8px;
  font-family: var(--font-mono);
  opacity: 0.7;
}
.id-pubchem,
.id-iupac,
.id-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 8px 0 0;
}
.id-pubchem a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.id-note { color: var(--color-ink-muted); }
.id-plate-cap {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-ink-muted);
  margin: 8px 0 0;
  max-width: var(--measure);
}

/* Dead candy leftovers (unused after id-plate pass) — kept inert */
.diagram-block { margin: 0 0 var(--space-xl); padding: 0; max-width: var(--measure); }
.diagram-caption { font-size: 0.8rem; color: var(--color-ink-muted); margin: 0 0 var(--space-md); }
.seq-strip, .mol-panel { display: none; }

/* Literature map / timeline SVG (removed from HTML; styles inert) */
.lit-map svg,
.year-timeline svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.findings-arc { list-style: none; margin: 0; padding: 0; }
.finding-card { display: none; }
body[data-arc="featured"] .evidence-row,
body[data-arc="featured"] .grade-legend,
body[data-arc="featured"] .grade-tag,
body[data-arc="featured"] .findings-arc { display: none !important; }

.mapped-notes { list-style: none; margin: 0; padding: 0; }
.mapped-note { padding: 8px 0; border-bottom: 1px solid var(--color-border-ink); }
.trail-line { font-family: var(--font-body); font-size: 0.9rem; color: var(--color-ink-muted); }

@media (max-width: 720px) {
  .detail-hero h1 { font-size: 1.65rem; }
  .detail-hero-inner { padding-top: var(--space-xl); }
  .takeaway-list li { font-size: 0.95rem; }
  .lit-chapter h2 { font-size: 0.98rem; }
  .toc-list { display: block; }
  .toc-list li:not(:last-child)::after { content: none; }
  .toc-list li { display: block; margin: 0.2em 0; }
  .paper-row-arc .paper-year { flex-basis: 2.75rem; }
  .paper-row-arc .src-link { margin-left: 0; }
  .id-plate-cols { grid-template-columns: 1fr; }
  .id-plate-img img { width: 120px; }
}

/* Force sans on dossier type */
.detail-hero h1,
.detail-hero .hero-lede,
.detail-body,
.detail-section > h2,
h2.section-title,
.kicker-line,
.lit-chapter h2,
.limits-heading {
  font-family: var(--font-display), "Hanken Grotesk", "Inter", "Noto Sans", system-ui, sans-serif !important;
}
.detail-body,
.detail-section p,
.takeaway-list li,
.lit-chapter p {
  font-family: var(--font-body), "Noto Sans", system-ui, sans-serif !important;
}


/* === SITEWIDE GRID-SHEET v12 — instrument sheet everywhere === */

/* Shared hero: solid ruled band over grid (no soft wash alone) */
body.grid-sheet .hero,
body.grid-sheet .detail-hero {
  background: var(--color-surface);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(26, 28, 30, 0.06);
}
body.grid-sheet .hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg) var(--space-xl);
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
}
body.grid-sheet .hero h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--color-ink);
}
body.grid-sheet .hero p {
  font-family: var(--font-body);
  color: var(--color-ink);
  max-width: var(--measure);
}

/* Main columns sit on ruled sheet */
body.grid-sheet .main-col,
body.grid-sheet .page-shell,
body.grid-sheet .shell {
  max-width: 72rem;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* Section heads on a horizontal rule */
body.grid-sheet .section-head {
  align-items: flex-end;
  padding-bottom: 8px;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-ink);
}
body.grid-sheet .section-head h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-transform: none;
}
body.grid-sheet .how-block {
  border-bottom: 1px solid var(--color-border-ink);
}
body.grid-sheet .how-block h2 {
  font-size: 1.05rem;
  font-weight: 650;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-ink);
  margin-bottom: var(--space-md);
}

/* Kill soft SaaS cards → ruled cells / rows */
body.grid-sheet .simple-card,
body.grid-sheet .line-card,
body.grid-sheet .link-card,
body.grid-sheet .registry-block {
  border: 1px solid var(--color-border-ink);
  border-radius: 0;
  background: var(--color-surface);
  box-shadow: none;
}
body.grid-sheet .simple-card:hover,
body.grid-sheet .line-card:hover,
body.grid-sheet .link-card:hover {
  border-color: var(--color-ink);
  background: var(--color-surface);
}

/* Compound listing as ruled table rows */
body.grid-sheet .compound-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border-ink);
  margin-bottom: var(--space-xl);
}
body.grid-sheet .compound-grid .simple-card {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  grid-template-areas:
    "name meta"
    "excerpt excerpt";
  column-gap: 20px;
  row-gap: 4px;
  align-items: baseline;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--color-border-ink);
  border-radius: 0;
  background: transparent;
}
body.grid-sheet .compound-grid .simple-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  grid-area: name;
}
body.grid-sheet .compound-grid .simple-card .excerpt {
  margin: 0;
  grid-area: excerpt;
  font-size: 0.9rem;
  color: var(--color-ink);
}
body.grid-sheet .compound-grid .simple-card .line-chip {
  grid-area: meta;
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink-muted);
  border-radius: 0;
}
body.grid-sheet .compound-grid .simple-card .meta-tiny {
  display: none; /* redundant with line label in ruled row */
}
@media (max-width: 720px) {
  body.grid-sheet .compound-grid .simple-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "meta"
      "excerpt";
    gap: 4px;
    padding: 12px 0;
  }
  body.grid-sheet .compound-grid .simple-card .line-chip {
    justify-self: start;
    text-align: left;
  }
}

/* Line cards: ruled cells, no soft radius / no ALL-CAPS kicker theater */
body.grid-sheet .line-face {
  gap: 0;
  border: 1px solid var(--color-border-ink);
}
body.grid-sheet .line-card {
  border: 0;
  border-radius: 0;
  padding: 16px 18px;
}
body.grid-sheet .line-card + .line-card {
  border-left: 1px solid var(--color-border-ink);
}
@media (max-width: 639px) {
  body.grid-sheet .line-card + .line-card {
    border-left: 0;
    border-top: 1px solid var(--color-border-ink);
  }
}
body.grid-sheet .line-card .kicker,
body.grid-sheet .link-card .kicker,
body.grid-sheet .line-essay .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-ink-muted);
  margin-bottom: 6px;
}

/* Link cards → ruled cells */
body.grid-sheet .link-grid {
  gap: 0;
  border: 1px solid var(--color-border-ink);
}
body.grid-sheet .link-card {
  border: 0;
  border-radius: 0;
  padding: 16px 18px;
}
body.grid-sheet .link-grid:not(.link-grid-one) .link-card + .link-card {
  border-left: 1px solid var(--color-border-ink);
}
@media (max-width: 639px) {
  body.grid-sheet .link-grid:not(.link-grid-one) {
    grid-template-columns: 1fr;
  }
  body.grid-sheet .link-grid:not(.link-grid-one) .link-card + .link-card {
    border-left: 0;
    border-top: 1px solid var(--color-border-ink);
  }
}
body.grid-sheet .link-card h2 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

/* Registry: ruled, no soft card */
body.grid-sheet .registry-block {
  border-radius: 0;
  padding: 12px 0;
  border-left: 0;
  border-right: 0;
}
body.grid-sheet .grade-legend {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--color-border-ink);
  padding: 10px 0;
}

/* Lines essays — ruled measure like dossiers */
body.grid-sheet .prose-page .line-essay {
  max-width: var(--measure);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-ink);
}
body.grid-sheet .prose-page .line-essay h2 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-ink);
}

body.grid-sheet .prose-page .line-essay h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 1.35rem 0 0.65rem;
  color: var(--color-ink);
}
.prose-page .line-essay h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.35rem 0 0.65rem;
}
.prose-page.method-prose {
  max-width: 72ch;
}
.prose-page .method-stopline {
  max-width: 68ch;
  margin: var(--space-xl) 0 var(--space-lg);
}

/* ---- Diagrams: two-lines map, archive node map, count strip ---- */
.diagram-sheet {
  margin: 0 0 var(--space-lg);
  padding: 14px 0 16px;
  border-top: 1px solid var(--color-border-ink);
  border-bottom: 1px solid var(--color-border-ink);
  background: transparent;
}
.diagram-sheet .diagram-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-ink-muted);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.two-lines-svg,
.archive-map-svg {
  width: 100%;
  max-width: 44rem;
  height: auto;
  display: block;
}
.two-lines-svg text,
.archive-map-svg text {
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  fill: #1A1C1E;
}
.two-lines-svg .muted,
.archive-map-svg .muted { fill: #6C7278; }
.two-lines-svg .line-stroke,
.archive-map-svg .line-stroke {
  stroke: rgba(26, 28, 30, 0.35);
  stroke-width: 1;
  fill: none;
}
.two-lines-svg .node,
.archive-map-svg .node {
  fill: #FFFFFF;
  stroke: rgba(26, 28, 30, 0.45);
  stroke-width: 1;
}
.two-lines-svg .hub,
.archive-map-svg .hub {
  fill: #F4EFE8;
  stroke: rgba(26, 28, 30, 0.55);
  stroke-width: 1.25;
}

.count-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 var(--space-lg);
  border: 1px solid var(--color-border-ink);
  background: var(--color-surface);
}
.count-strip .count-cell {
  flex: 1 1 8rem;
  padding: 10px 14px;
  border-right: 1px solid var(--color-border-ink);
  min-width: 7rem;
}
.count-strip .count-cell:last-child { border-right: 0; }
.count-strip .count-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-ink-muted);
  margin: 0 0 2px;
}
.count-strip .count-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-ink);
  margin: 0;
}

/* ---- Map page: ruled HTML list (no SVG graph) ---- */
.map-ruled {
  margin: 0 0 var(--space-lg);
  padding: 14px 0 16px;
  border-top: 1px solid var(--color-border-ink);
  border-bottom: 1px solid var(--color-border-ink);
}
.map-ruled .diagram-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-ink-muted);
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.ruled-map {
  width: 100%;
  max-width: 44rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.ruled-map th,
.ruled-map td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--color-border-ink);
  background: var(--color-surface);
}
.ruled-map thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  letter-spacing: 0.01em;
}
.ruled-map tbody th {
  font-weight: 500;
  white-space: nowrap;
  width: 9.5rem;
}
.ruled-map td a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.map-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-ink-muted);
  margin: 10px 0 0;
}


/* Secondary dossier identity strip (minimal) */
.identity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.01em;
}
.identity-strip .id-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.identity-strip .id-sep { color: var(--color-border); }
body.grid-sheet:not(.dossier-page) .detail-hero-inner {
  max-width: 72rem;
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
  background: var(--color-surface);
}
body.grid-sheet:not(.dossier-page) .detail-body {
  max-width: 72rem;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
}
body.grid-sheet:not(.dossier-page) .detail-hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
body.grid-sheet:not(.dossier-page) .detail-hero .formula-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  color: var(--color-ink-muted);
}
body.grid-sheet:not(.dossier-page) .kicker-line {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border-ink);
  padding-bottom: 8px;
}

/* Hard lock: tokens are sans-only (Hanken/Inter/Noto + system-ui). No Georgia/Palatino/Iowan. */

/* === Papers corpus index (CyberLeninka lead) v15 === */
.papers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--color-border-ink);
  margin-bottom: 0.25rem;
  font-family: var(--font-body);
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}
.filter-field select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--color-border-ink);
  background: var(--color-surface);
  color: var(--color-ink);
  min-width: 10rem;
}
.filter-check {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.35rem;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}
.filter-check .filter-label {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-ink);
}
.filter-count {
  margin: 0 0 0.35rem auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink-muted);
}
.paper-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border-ink);
}
.paper-index-row {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border-ink);
}
.paper-index-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.92rem;
  line-height: 1.4;
  font-family: var(--font-body);
}
.paper-index-row .paper-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  flex: 0 0 3.1rem;
}
.paper-index-row .paper-title {
  flex: 1 1 14rem;
  min-width: 0;
  color: var(--color-ink);
}
.paper-index-row .paper-compound {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-ink);
  flex: 0 0 auto;
}
.paper-index-row .paper-line-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-ink-muted);
  flex: 0 0 auto;
}
.paper-index-row .src-link {
  margin-left: auto;
  flex: 0 0 auto;
}
.paper-excerpt {
  margin: 0.35rem 0 0 3.85rem;
  max-width: 44rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--color-ink-muted);
  font-family: var(--font-body);
}
.paper-excerpt-empty {
  font-style: normal;
  opacity: 0.85;
}
.excerpt-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-right: 0.35rem;
}
.paper-pubmed {
  display: block;
  margin: 0.25rem 0 0 3.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-ink-muted);
}
.papers-empty {
  margin: 1.5rem 0;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}
.papers-secondary {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}
.papers-secondary .page-note {
  margin-top: 0.75rem;
}
.src-link.muted {
  color: var(--color-ink-muted);
  text-decoration: none;
  pointer-events: none;
}
@media (max-width: 640px) {
  .paper-excerpt,
  .paper-pubmed {
    margin-left: 0;
  }
  .filter-count {
    margin-left: 0;
    width: 100%;
  }
}

/* === HEADER / METHODOLOGY PASS v16 — quieter chrome === */
.topnav-inner {
  padding: 8px var(--space-lg);
  gap: var(--space-md);
}
body.grid-sheet .topnav,
body.dossier-page .topnav {
  box-shadow: 0 1px 0 rgba(26, 28, 30, 0.05);
}
.topnav-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.topnav-quiet {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 450;
  color: var(--color-ink-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.topnav-quiet:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-border-ink);
}
.topnav-quiet[aria-current="page"] {
  color: var(--color-ink);
  border-bottom-color: var(--color-border-ink);
}
/* No ghost-button nav row in header */
.topnav-actions { display: none !important; }

/* Methodology instrument sheet */
.method-sheet .method-section {
  max-width: var(--measure);
  margin: 0 0 var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-ink);
}
.method-sheet .method-section:last-of-type {
  border-bottom: 0;
}
.method-sheet h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-ink);
  color: var(--color-ink);
}
.method-sheet p,
.method-sheet li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0 0 0.75rem;
}
.method-sheet ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}
.method-sheet .method-table {
  width: 100%;
  max-width: var(--measure);
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.5rem 0 1rem;
}
.method-sheet .method-table th,
.method-sheet .method-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
}
.method-sheet .method-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink-muted);
  text-transform: none;
}
.method-sheet .method-table code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-ink);
}
.method-stopline {
  max-width: var(--measure);
  margin: var(--space-lg) 0 var(--space-xl);
  padding: 12px 0;
  border-top: 1px solid var(--color-border-ink);
  border-bottom: 1px solid var(--color-border-ink);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}
.method-stopline strong {
  font-weight: 600;
  color: var(--color-ink);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* === METHODOLOGY ESSAY PASS v17 — long-form instrument prose === */
.method-sheet.method-prose {
  max-width: 72ch;
}
.method-sheet.method-prose .method-section {
  max-width: 68ch;
  margin: 0 0 var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-ink);
}
.method-sheet.method-prose .method-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.method-sheet.method-prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-ink);
}
.method-sheet.method-prose p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink);
  margin: 0 0 1rem;
  max-width: 68ch;
}
.method-sheet.method-prose p:last-child {
  margin-bottom: 0;
}
.method-sheet.method-prose strong {
  font-weight: 600;
  color: var(--color-ink);
}
.method-sheet.method-prose .method-table {
  width: 100%;
  max-width: 68ch;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem;
}
.method-sheet.method-prose .method-table th,
.method-sheet.method-prose .method-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.method-sheet.method-prose .method-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink-muted);
}
.method-sheet.method-prose .method-table td:first-child {
  white-space: nowrap;
  padding-right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-ink);
}
.method-sheet.method-prose .method-table code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.method-sheet.method-prose .method-stopline,
.method-prose + .method-stopline,
.method-sheet .method-stopline {
  max-width: 68ch;
}
.method-sheet.method-prose ~ .method-stopline,
.method-sheet .method-stopline {
  margin: var(--space-xl) 0;
  padding: 14px 0;
  border-top: 1px solid var(--color-border-ink);
  border-bottom: 1px solid var(--color-border-ink);
}
.method-sheet .method-stopline p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-ink-muted);
  max-width: 68ch;
}
.method-sheet .method-stopline strong {
  font-weight: 600;
  color: var(--color-ink);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.method-sheet.method-prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.method-sheet.method-prose a:hover {
  color: var(--color-ink);
}

/* === FRONTEND PASS v24 — star brand, compound hover, hero mol, sticky TOC === */

/* Header: classic USSR red + gold (header only) */
.topnav {
  background: #FBF8F3;
  border-bottom: 1px solid var(--color-border);
  border-top: 2px solid #CC0000;
  box-shadow: none;
}
body.grid-sheet .topnav,
body.dossier-page .topnav {
  box-shadow: none;
  border-top: 2px solid #CC0000;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #1A1C1E;
}
.brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFD700; /* gold star */
  line-height: 0;
}
.brand .brand-star {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.brand .brand-tag {
  border-color: rgba(204, 0, 0, 0.28);
  color: #8A1A1A;
}
.topnav-quiet:hover {
  color: #CC0000;
  border-bottom-color: rgba(204, 0, 0, 0.35);
}
.topnav-quiet[aria-current="page"] {
  color: #8A1A1A;
  border-bottom-color: rgba(204, 0, 0, 0.4);
}

/* Homepage compound cards — subtle hover wash */
#compounds .simple-card {
  transition: background-color 200ms ease, border-color 200ms ease;
}
#compounds .simple-card:hover {
  background: var(--color-accent-soft);
  border-color: rgba(184, 66, 46, 0.35);
}
#more-compounds .registry-list a,
#more-compounds .registry-list li {
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
#more-compounds .registry-list li {
  border-radius: var(--radius-xs);
}
#more-compounds .registry-list a {
  display: block;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  text-decoration: none;
}
#more-compounds .registry-list a:hover {
  background: var(--color-accent-soft);
  color: var(--color-ink);
  text-decoration: none;
}

/* Dossier hero: 2-col with ambient molecule */
.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
}
.detail-hero-inner .hero-copy {
  min-width: 0;
}
.detail-hero-inner .hero-mol {
  /* v27: always visible — see HERO-MOL block below (was display:none <720px) */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: none;
}
.hero-mol-stage {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}
.hero-mol-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  opacity: 0.88;
  filter: contrast(1.02);
  transform-origin: center center;
  will-change: transform;
  animation: none; /* v27: 3Dmol spin replaces fake float */
}
@keyframes hero-mol-float {
  0%, 100% { transform: rotateY(-8deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(8deg) rotateX(-2deg) translateY(-6px); }
}
@media (min-width: 720px) {
  .detail-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  }
  .detail-hero-inner .hero-mol {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mol-img {
    animation: none;
    transform: none;
  }
}

/* Sticky TOC compound name — reveals past hero fold */
.toc-compound {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--color-ink);
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--color-border-ink);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 220ms ease, max-height 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}
.toc-compound.is-visible {
  max-height: 3rem;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 220ms ease, max-height 220ms ease, transform 220ms ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .toc-compound {
    transition: none;
    transform: none;
  }
  .toc-compound.is-visible {
    transition: none;
  }
}

/* Footer credit link (Parth) */
.footer-inner > div a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-inner > div a:hover {
  color: var(--color-accent);
}


/* === FRONTEND v25: full Soviet-red header, white type, Wikimedia star === */
body.grid-sheet .topnav,
body.dossier-page .topnav,
.topnav {
  background: #CC0000 !important;
  border-bottom: 1px solid #990000 !important;
  border-top: 0 !important;
  color: #fff !important;
}
body.grid-sheet .topnav-inner,
body.dossier-page .topnav-inner,
.topnav-inner {
  color: #fff;
}
.brand {
  color: #fff !important;
}
.brand:hover { color: #fff !important; opacity: 0.92; }
.brand .brand-mark {
  color: inherit;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand .brand-star {
  width: 16px;
  height: 16px;
  display: block;
  /* Wikimedia File:Soviet_flag_red_star.svg — gold outline on red field */
  filter: none;
}
.brand .brand-tag {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.45) !important;
  background: transparent !important;
}
.topnav-quiet,
.topnav-meta a,
.topnav-meta a.topnav-quiet {
  color: rgba(255,255,255,0.92) !important;
}
.topnav-quiet:hover,
.topnav-meta a:hover {
  color: #fff !important;
}
.topnav-quiet[aria-current="page"] {
  color: #fff !important;
  border-bottom-color: #fcd116 !important; /* gold underline from wiki star stroke */
}

/* === HOME REDESIGN v26 — no star, archive hero, explain fold, compound bento === */

/* Brand: wordmark + beta only (star removed sitewide) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: #fff !important;
}
.brand:hover { color: #fff !important; opacity: 0.92; }
.brand .brand-tag {
  margin-left: 0;
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.45) !important;
  background: transparent !important;
}
/* Strip leftover star / mark chrome */
.brand .brand-mark,
.brand .brand-star {
  display: none !important;
}

/* --- Fold 1: archive-cover hero --- */
body.home-v26 .home-hero {
  background: var(--color-surface);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(26, 28, 30, 0.08);
}
body.home-v26 .home-hero .hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--space-lg) clamp(2.5rem, 6vw, 4rem);
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
}
body.home-v26 .hero-label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  border-bottom: 1px solid var(--color-border-ink);
  max-width: none;
}
body.home-v26 .home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 0 0 1.1rem;
  color: var(--color-ink);
}
body.home-v26 .home-hero > .hero-inner > p:not(.hero-label):not(.hero-actions) {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 38rem;
  color: var(--color-ink);
  margin: 0;
}
body.home-v26 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  max-width: none;
}
body.home-v26 .hero-primary {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-ink);
  padding-bottom: 1px;
}
body.home-v26 .hero-primary:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
body.home-v26 .hero-secondary {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.home-v26 .hero-secondary:hover {
  color: var(--color-accent);
}

/* --- Fold 2: explain --- */
body.home-v26 .explain-fold {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-ink);
}
body.home-v26 .explain-fold > h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-md);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-ink);
}
body.home-v26 .explain-lede {
  margin: 0 0 var(--space-lg);
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-ink);
}
body.home-v26 .count-strip--quiet {
  margin-bottom: var(--space-lg);
}
body.home-v26 .count-strip--quiet .count-num {
  font-size: 1.05rem;
}
body.home-v26 .read-dossier {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
body.home-v26 .read-dossier h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
body.home-v26 .read-dossier .how-list {
  margin-bottom: 0.75rem;
}
body.home-v26 .read-dossier-more {
  margin: 0;
  font-size: 0.875rem;
}
body.home-v26 .read-dossier-more a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Fold 3: compound bento (overrides single-column row list) --- */
body.home-v26 .compound-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: var(--space-xl);
  border-top: 1px solid var(--color-border-ink);
  border-left: 1px solid var(--color-border-ink);
}
body.home-v26 .compound-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 18px 20px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border-ink);
  border-bottom: 1px solid var(--color-border-ink);
  color: inherit;
  text-decoration: none;
  min-height: 8.5rem;
  transition: background-color 200ms ease, border-color 200ms ease;
}
body.home-v26 .compound-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--color-ink);
}
body.home-v26 .compound-card .excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
}
body.home-v26 .compound-card .line-chip {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.5rem;
  margin-right: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-ink-muted);
}
body.home-v26 .compound-card:hover {
  background: var(--color-accent-soft);
  border-color: rgba(184, 66, 46, 0.35);
  color: inherit;
  text-decoration: none;
}
body.home-v26 .compound-card:hover h3 {
  color: var(--color-ink);
}
body.home-v26 .compound-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  z-index: 1;
}

@media (min-width: 640px) {
  body.home-v26 .compound-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.home-v26 .compound-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  body.home-v26 .compound-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.home-v26 .compound-card--wide {
    grid-column: span 2;
  }
  body.home-v26 .compound-card--tall {
    grid-row: span 2;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-v26 .compound-card {
    transition: none;
  }
}

/* === HERO + MOL FIX v27 — true first fold; real 3Dmol dossier stage === */

:root {
  --header-h: 56px;
}

/* Measure: topnav padding 14+14 + ~28px brand line ≈ 56–64px */
.topnav-inner {
  min-height: calc(var(--header-h) - 1px);
}

/* --- Fold 1: fill viewport below sticky red header --- */
body.home-v26 .home-hero {
  box-sizing: border-box;
  min-height: calc(100dvh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0;
  overflow: auto;
  background: var(--color-surface);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(26, 28, 30, 0.08);
}

body.home-v26 .home-hero .hero-inner {
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) var(--space-lg) clamp(3.5rem, 8vh, 5.5rem);
  border-left: 1px solid var(--color-border-ink);
  border-right: 1px solid var(--color-border-ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
}

body.home-v26 .hero-label {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  border-bottom: 1px solid var(--color-border-ink);
  max-width: none;
  align-self: flex-start;
}

body.home-v26 .home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 12ch;
  margin: 0 0 1.5rem;
  color: var(--color-ink);
}

body.home-v26 .home-hero > .hero-inner > p:not(.hero-label):not(.hero-actions) {
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 32rem;
  color: var(--color-ink);
  margin: 0;
}

body.home-v26 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-top: 2.25rem;
  max-width: none;
}

body.home-v26 .hero-primary {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--color-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--color-ink);
  padding-bottom: 2px;
}

body.home-v26 .hero-primary:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Drop secondary from fold-1 actions when present */
body.home-v26 .hero-secondary {
  display: none;
}

/* Quiet scroll cue — hairline + chevron, no bounce */
body.home-v26 .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-ink-muted);
  pointer-events: none;
  user-select: none;
}
body.home-v26 .hero-scroll-line {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-border-ink);
}
body.home-v26 .hero-scroll-chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-ink-muted);
  border-bottom: 1px solid var(--color-ink-muted);
  transform: rotate(45deg);
  opacity: 0.7;
}
body.home-v26 .hero-scroll-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

@media (max-height: 560px) {
  body.home-v26 .home-hero {
    min-height: calc(100dvh - var(--header-h));
    justify-content: flex-start;
  }
  body.home-v26 .home-hero .hero-inner {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
  body.home-v26 .home-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
  body.home-v26 .hero-scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-v26 .hero-scroll-chevron {
    opacity: 0.55;
  }
}

/* --- Dossier molecule stage: always visible; real viewer / plates --- */
.detail-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
}

.detail-hero-inner .hero-copy {
  min-width: 0;
  order: 1;
}

.detail-hero-inner .hero-mol {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  order: 2;
  perspective: none;
  gap: 0.5rem;
}

.hero-mol-stage {
  width: min(100%, 260px);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: flat;
  border: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-mol-stage.is-viewer {
  background: transparent;
}

.hero-mol-canvas {
  width: 100% !important;
  height: 100% !important;
}

.hero-mol-canvas canvas {
  outline: none;
}

/* Kill fake CSS-only float as primary 3D */
.hero-mol-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  opacity: 0.92;
  filter: contrast(1.02);
  transform: none !important;
  animation: none !important;
  will-change: auto;
}

.hero-mol-img--pubchem {
  width: 200px;
  height: 200px;
  padding: 10px;
}

.hero-mol-caption {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
  text-align: center;
  max-width: 260px;
  line-height: 1.35;
}

.hero-mol-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1rem;
  text-align: center;
  box-sizing: border-box;
}

.hero-mol-plate-mark {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  border-bottom: 1px solid var(--color-border-ink);
  padding-bottom: 3px;
  margin-bottom: 0.35rem;
}

.hero-mol-plate-primary {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.2;
}

.hero-mol-plate-sub {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.02em;
}

.hero-mol-plate--extract .hero-mol-plate-primary {
  font-size: 1rem;
  max-width: 14ch;
}

@media (min-width: 720px) {
  .detail-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  }
  .detail-hero-inner .hero-copy {
    order: 0;
  }
  .detail-hero-inner .hero-mol {
    order: 0;
    align-items: flex-end;
  }
  .hero-mol-stage {
    width: 260px;
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mol-img {
    animation: none !important;
    transform: none !important;
  }
}


/* =====================================================================
   v28 — RED COVER FOLD + TYPE UPGRADE
   Full-bleed Soviet red first fold (header seamless). Clears on scroll.
   Display: Newsreader (editorial). Body: Source Sans 3.
   ===================================================================== */
:root {
  --font-display: "Newsreader", "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --soviet-red: #CC0000;
  --header-h: 56px;
}

/* --- Cover mode: header dissolves into the red field --- */
body.home-v26.home-cover .topnav {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
}
body.home-v26.home-cover .topnav .brand,
body.home-v26.home-cover .topnav .brand-tag,
body.home-v26.home-cover .topnav .topnav-quiet {
  color: #fff !important;
  border-color: rgba(255,255,255,0.45) !important;
}
body.home-v26.home-cover .topnav .topnav-quiet:hover {
  color: #fff !important;
  opacity: 0.85;
}
body.home-v26.home-cover .topnav .brand-tag {
  background: transparent !important;
}

/* After scroll: restore solid red bar header (site chrome) */
body.home-v26:not(.home-cover) .topnav {
  background: var(--soviet-red) !important;
  border-bottom: 1px solid #990000 !important;
  position: sticky;
  top: 0;
  z-index: 50;
}
body.home-v26:not(.home-cover) .topnav .brand,
body.home-v26:not(.home-cover) .topnav .brand-tag,
body.home-v26:not(.home-cover) .topnav .topnav-quiet {
  color: #fff !important;
}

/* --- Full-bleed red cover --- */
body.home-v26 .home-hero {
  background: var(--soviet-red) !important;
  color: #fff !important;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: relative;
}
body.home-v26 .home-hero .hero-inner {
  max-width: 22ch;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
}
body.home-v26 .home-hero .hero-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1.25rem;
  border: 0;
  padding: 0;
}
body.home-v26 .home-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 1.5rem;
  max-width: 12ch;
  font-optical-sizing: auto;
}
body.home-v26 .home-hero .hero-lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  max-width: 32rem;
  margin: 0 0 2rem;
}
body.home-v26 .home-hero .hero-actions { margin: 0; }
body.home-v26 .home-hero .hero-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--soviet-red) !important;
  background: #fff;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  border-radius: 0;
  border: 0;
  transition: opacity 160ms ease;
}
body.home-v26 .home-hero .hero-primary:hover {
  opacity: 0.9;
  color: var(--soviet-red) !important;
}
body.home-v26 .home-hero .hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 1.5rem;
  display: flex;
  align-items: flex-end;
  height: 2.5rem;
  text-decoration: none;
}
body.home-v26 .home-hero .hero-scroll-line {
  display: block;
  width: 1px;
  height: 2.25rem;
  background: rgba(255,255,255,0.55);
}

/* Paper folds below cover */
body.home-v26 #explain,
body.home-v26 #compounds {
  background: var(--color-surface, #f7f4ef);
}

@media (prefers-reduced-motion: reduce) {
  body.home-v26 .home-hero .hero-primary { transition: none; }
}

/* Sitewide type binding (v28) */
body {
  font-family: var(--font-body);
}
h1, h2, h3, .brand, .home-hero h1 {
  font-family: var(--font-display);
}
.brand, .topnav-quiet, .hero-label, .hero-lede, .hero-primary, .compound-card, .explain-fold {
  /* body stack for UI chrome; headings keep display */
}
.brand {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
}


/* === v28b: cover fold wins over prior paper-hero rules === */
body.home-v26 .home-hero,
body.home-v26.home-cover .home-hero {
  background: #CC0000 !important;
  color: #fff !important;
  min-height: 100dvh !important;
  min-height: 100vh !important;
}
body.home-v26 .home-hero h1 {
  font-family: var(--font-display) !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: clamp(2.75rem, 8vw, 5.25rem) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.03em !important;
  max-width: 12ch !important;
}
body.home-v26 .home-hero .hero-lede,
body.home-v26 .home-hero .hero-label {
  color: rgba(255,255,255,0.88) !important;
  font-family: var(--font-body) !important;
}
body.home-v26 .home-hero .hero-inner {
  border: 0 !important;
  max-width: 40rem !important;
}


/* =====================================================================
   v29 — PUBLISHER COVER AD (PT Serif/Sans, #C00000, title-page lockup)
   Spec: PUBLISHER-COVER-AD.md · one red field · red dies on scroll
   ===================================================================== */
:root {
  --font-display: "PT Serif", "Times New Roman", Times, serif;
  --font-ui: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cover-red: #C00000;
  --paper: #F3EEE4;
  --ink: #1A1714;
  --ink-dim: rgba(255, 255, 255, 0.82);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
}
h1, h2, h3 {
  font-family: var(--font-display);
}

/* Paper ground below cover */
body.home-v26 {
  background: var(--paper);
}
body.home-v26 .main-col,
body.home-v26 #explain,
body.home-v26 #compounds,
body.home-v26 .explain-fold {
  background: var(--paper);
}

/* --- Cover mode: header is ink ON the red field --- */
body.home-v26.home-cover .topnav {
  position: absolute !important;
  top: 0; left: 0; right: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 2;
}
body.home-v26.home-cover .topnav-inner {
  padding: 14px clamp(20px, 5vw, 72px) !important;
}
body.home-v26.home-cover .topnav .brand {
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  letter-spacing: 0.01em !important;
  color: #fff !important;
  text-transform: none !important;
}
body.home-v26.home-cover .topnav .brand-tag {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin-left: 0.4em !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  opacity: 0.65 !important;
  color: #fff !important;
  border-radius: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.home-v26.home-cover .topnav .topnav-quiet {
  font-family: var(--font-ui) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  color: #fff !important;
  opacity: 0.75 !important;
}
body.home-v26.home-cover .topnav .topnav-quiet:hover {
  opacity: 1 !important;
  color: #fff !important;
}

/* --- After scroll: paper header, red gone --- */
body.home-v26:not(.home-cover) .topnav {
  position: sticky !important;
  top: 0;
  z-index: 50;
  background: var(--paper) !important;
  border-bottom: 1px solid rgba(26, 23, 20, 0.18) !important;
  box-shadow: none !important;
}
body.home-v26:not(.home-cover) .topnav .brand,
body.home-v26:not(.home-cover) .topnav .brand-tag,
body.home-v26:not(.home-cover) .topnav .topnav-quiet {
  color: var(--ink) !important;
  opacity: 1 !important;
}
body.home-v26:not(.home-cover) .topnav .brand-tag {
  background: none !important;
  border: 0 !important;
  opacity: 0.55 !important;
}
body.home-v26:not(.home-cover) .topnav .topnav-quiet {
  opacity: 0.8 !important;
}
body.home-v26:not(.home-cover) .topnav .topnav-quiet:hover {
  opacity: 1 !important;
}

/* --- One red rectangle, title-page gravity --- */
body.home-v26 .home-hero,
body.home-v26.home-cover .home-hero {
  min-height: 100dvh !important;
  min-height: 100vh !important;
  background: var(--cover-red) !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative !important;
}
body.home-v26 .home-hero .hero-inner {
  margin: 0 !important;
  max-width: none !important;
  border: 0 !important;
  padding: 5.5rem clamp(20px, 5vw, 72px) clamp(48px, 12vh, 120px) !important;
  text-align: left !important;
}
body.home-v26 .home-hero .hero-label {
  display: none !important; /* cut kicker */
}
body.home-v26 .home-hero h1 {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(2.75rem, 6.5vw, 5rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.02em !important;
  max-width: 14ch !important;
  margin: 0 !important;
  color: #fff !important;
  text-wrap: balance;
}
body.home-v26 .home-hero .hero-lede {
  font-family: var(--font-ui) !important;
  font-size: 1.0625rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  max-width: 28ch !important;
  margin: 1.25rem 0 0 !important;
  color: var(--ink-dim) !important;
}
body.home-v26 .home-hero .hero-actions {
  margin: 1.75rem 0 0 !important;
}
body.home-v26 .home-hero .hero-primary {
  display: inline !important;
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  color: #fff !important;
  background: none !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
}
body.home-v26 .home-hero .hero-primary:hover {
  opacity: 0.9;
  color: #fff !important;
  background: none !important;
}
body.home-v26 .home-hero .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: block;
  width: 40px;
  height: 1px;
  text-decoration: none;
}
body.home-v26 .home-hero .hero-scroll-line {
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}
body.home-v26 .home-hero .hero-scroll-chevron,
body.home-v26 .home-hero .hero-scroll-label {
  display: none !important;
}

@media (max-width: 640px) {
  body.home-v26 .home-hero h1 {
    font-size: clamp(2.25rem, 9vw, 3rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-v26 .home-hero .hero-primary { transition: none; }
}


/* =====================================================================
   v30 — COVER NAV HIDDEN + GSAP hooks
   First fold = pure red field, no header. Header appears after scroll.
   ===================================================================== */
body.home-v26.home-cover .topnav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px);
}

body.home-v26:not(.home-cover) .topnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Pure cover — no reserved nav band */
body.home-v26 .home-hero {
  min-height: 100dvh !important;
  min-height: 100vh !important;
}

/* GSAP sets inline opacity on .hero-inner; keep readable without JS */
body.home-v26 .home-hero .hero-inner {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  body.home-v26.home-cover .topnav {
    transform: none;
  }
  body.home-v26 .home-hero .hero-inner {
    will-change: auto;
  }
}


/* =====================================================================
   v33 — COVER FLOOR NUCLEAR
   Older home-hero rules used flex:1 + justify-content:center on .hero-inner,
   which kept the lockup mid-viewport. This block kills that.
   ===================================================================== */
body.home-v26 .home-hero,
body.home-v26.home-cover .home-hero,
body.grid-sheet.home-v26 .home-hero {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  min-height: 100dvh !important;
  min-height: 100vh !important;
  height: 100dvh !important;
  background: #C00000 !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.home-v26 .home-hero .hero-inner,
body.home-v26.home-cover .home-hero .hero-inner {
  /* CRITICAL: do not grow / center — sit on the floor */
  flex: 0 0 auto !important;
  display: block !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  margin: 0 !important;
  margin-top: auto !important;
  max-width: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
  padding: 0 clamp(20px, 5vw, 72px) clamp(28px, 6vh, 56px) !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.home-v26 .home-hero .hero-meta,
body.home-v26 .home-hero .hero-label {
  display: none !important;
}

body.home-v26 .home-hero h1 {
  font-family: "PT Serif", "Times New Roman", Times, serif !important;
  font-weight: 400 !important;
  font-size: clamp(3rem, 8vw, 5.75rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.025em !important;
  max-width: 11ch !important;
  margin: 0 !important;
  color: #fff !important;
}

body.home-v26 .home-hero .hero-lede {
  font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
  max-width: 32ch !important;
  margin: 0.85rem 0 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

body.home-v26 .home-hero .hero-actions {
  margin: 1.5rem 0 0 !important;
}

body.home-v26 .home-hero .hero-primary {
  display: inline !important;
  font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: #fff !important;
  background: none !important;
  padding: 0 0 1px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 0 !important;
  text-decoration: none !important;
}

body.home-v26 .home-hero .hero-floor-rule {
  display: block !important;
  width: 48px !important;
  height: 1px !important;
  margin: 1.75rem 0 0 !important;
  background: rgba(255, 255, 255, 0.35) !important;
}

body.home-v26 .home-hero .hero-scroll {
  display: none !important;
}

/* Header never on fold 1 */
body.home-v26.home-cover .topnav {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}




/* =====================================================================
   v34 — PAPER UPGRADE (hard pass — visual confirm)
   AFTER v33 cover nuclear only. Never retarget .home-hero.
   Gutters over shared borders · paper ground · equal compound cells ·
   archive section rhythm · quieter chrome.
   ===================================================================== */

:root {
  --section-y: clamp(2.75rem, 5.5vw, 4.25rem);
  --section-y-sm: clamp(1.75rem, 3.5vw, 2.5rem);
  --section-y-lg: clamp(3.25rem, 6.5vw, 5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --card-gap: 14px;
  --hairline: rgba(26, 28, 30, 0.14);
  --hairline-soft: rgba(26, 28, 30, 0.1);
  --ink-wash: rgba(26, 28, 30, 0.04);
}

/* ---------- Home column on dotted paper (no white slab) ---------- */
body.grid-sheet.home-v26 .main-col {
  background: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-y) var(--gutter) var(--section-y-lg);
  overflow: visible;
}

/* Cover → paper: kill orphan gap / sticky red bleed into first fold */
body.home-v26 .home-hero + .main-col,
body.home-v26.home-cover .main-col {
  margin-top: 0;
}
body.home-v26 #explain,
body.home-v26 .explain-fold {
  scroll-margin-top: 1rem;
}

/* ---------- Beta chip: quieter, sentence case ---------- */
body.home-v26 .brand-tag,
body.grid-sheet .brand-tag {
  font-family: var(--font-body) !important;
  font-size: 0.65rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--color-ink-muted) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hairline-soft) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 0 1px !important;
  margin-left: 0.4em !important;
  opacity: 0.75;
}

/* ---------- Explain fold ---------- */
body.home-v26 .explain-fold {
  margin: 0 0 var(--section-y);
  padding: 0.35rem 0 var(--section-y);
  border-bottom: 1px solid var(--hairline);
  overflow: visible;
}

body.home-v26 .explain-fold > h2 {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  color: var(--color-ink-muted) !important;
  margin: 0 0 1rem !important;
  padding: 0.15rem 0 0 !important;
  border-bottom: 0 !important;
  line-height: 1.35 !important;
  overflow: visible;
}

body.home-v26 .explain-lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 40rem;
  margin: 0 0 var(--space-xl);
  color: var(--color-ink);
}

/* Metric strip: gutters, no flush white box grid */
body.home-v26 .count-strip,
body.home-v26 .count-strip--quiet {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap) !important;
  margin: 0 0 var(--space-xl) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  flex-wrap: unset;
}

body.home-v26 .count-strip .count-cell {
  flex: unset !important;
  min-width: 0 !important;
  padding: 0.85rem 0 0.95rem !important;
  border: 0 !important;
  border-top: 1px solid var(--hairline) !important;
  background: transparent !important;
}

body.home-v26 .count-strip .count-label {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--color-ink-muted);
}

body.home-v26 .count-strip .count-num {
  font-family: var(--font-body) !important;
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

@media (max-width: 520px) {
  body.home-v26 .count-strip,
  body.home-v26 .count-strip--quiet {
    grid-template-columns: 1fr;
  }
}

/* Line cards: gutters + ruled top, not shared white tiles */
body.home-v26 .line-face,
body.grid-sheet.home-v26 .line-face {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: var(--card-gap) !important;
  border: 0 !important;
  background: transparent !important;
  margin: 0 0 var(--space-xl);
}

@media (min-width: 640px) {
  body.home-v26 .line-face,
  body.grid-sheet.home-v26 .line-face {
    grid-template-columns: 1fr 1fr;
  }
}

body.home-v26 .line-card,
body.grid-sheet.home-v26 .line-card {
  border: 0 !important;
  border-top: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 1.1rem 0 1.15rem !important;
  color: inherit;
  text-decoration: none;
}

body.home-v26 .line-card + .line-card,
body.grid-sheet.home-v26 .line-card + .line-card {
  border-left: 0 !important;
  border-top: 1px solid var(--hairline) !important;
}

body.home-v26 .line-card:hover,
body.grid-sheet.home-v26 .line-card:hover {
  background: var(--ink-wash) !important;
  border-color: var(--hairline) !important;
  color: inherit;
}

body.home-v26 .line-card .kicker,
body.grid-sheet.home-v26 .line-card .kicker {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--color-ink) !important;
  margin-bottom: 0.4rem !important;
}

body.home-v26 .read-dossier {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline-soft);
}

body.home-v26 .read-dossier h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

/* ---------- Featured compounds ---------- */
body.home-v26 #compounds {
  margin: 0;
  padding: 0.5rem 0 var(--section-y-sm);
  overflow: visible;
}

/* Heading clip fix: room above ascenders */
body.home-v26 #compounds .section-head,
body.grid-sheet.home-v26 #compounds .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0 0.75rem;
  border-bottom: 1px solid var(--hairline);
  overflow: visible;
}

body.home-v26 #compounds .section-head h2,
body.grid-sheet.home-v26 #compounds .section-head h2 {
  font-family: var(--font-body) !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding: 0.1rem 0 0 !important;
  overflow: visible !important;
  color: var(--color-ink);
}

body.home-v26 #compounds .section-head .view-all {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-ink-muted);
}

/* Equal cells + real gutters; ruled top only — no shared box grid */
body.home-v26 .compound-bento {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-auto-flow: row dense;
  gap: var(--card-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

@media (min-width: 640px) {
  body.home-v26 .compound-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  body.home-v26 .compound-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Kill bento span holes — equal cards */
body.home-v26 .compound-card--wide,
body.home-v26 .compound-card--tall {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0 !important;
}

body.home-v26 .compound-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  min-height: 0;
  padding: 1.05rem 0 1.15rem !important;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit;
  text-decoration: none;
  transition: background-color 150ms ease;
}

body.home-v26 .compound-card h3 {
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  color: var(--color-ink);
}

body.home-v26 .compound-card .excerpt {
  margin: 0;
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

body.home-v26 .compound-card .line-chip {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.5rem !important;
  margin-right: 0 !important;
  padding: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--color-ink-muted) !important;
}

body.home-v26 .compound-card:hover {
  background: var(--ink-wash) !important;
  border-top-color: var(--hairline) !important;
  box-shadow: none !important;
  transform: none !important;
  color: inherit;
  text-decoration: none;
}

body.home-v26 .compound-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--color-ink);
}

body.home-v26 .compound-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.home-v26 .compound-card { transition: none; }
}

/* ---------- More compounds — own section, clear air ---------- */
body.home-v26 .registry-block,
body.grid-sheet.home-v26 .registry-block,
body.home-v26 #more-compounds {
  display: block;
  margin: 0 !important;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem) !important;
  border: 0 !important;
  border-top: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-v26 #more-compounds > summary,
body.home-v26 .registry-block > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0.15rem 0 0.5rem;
  margin: 0;
  overflow: visible;
}

body.home-v26 #more-compounds > summary::-webkit-details-marker,
body.home-v26 .registry-block > summary::-webkit-details-marker {
  display: none;
}

body.home-v26 .section-head-inline {
  font-family: var(--font-body) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
  color: var(--color-ink);
}

body.home-v26 .count-inline {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: var(--color-ink-muted);
}

body.home-v26 .registry-note {
  margin: 1rem 0 1.5rem;
  max-width: 40rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-ink-muted);
}

body.home-v26 .registry-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
  gap: 0 1.5rem;
  border: 0;
}

body.home-v26 .registry-list li {
  margin: 0;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--hairline-soft);
}

body.home-v26 #more-compounds .registry-list a,
body.home-v26 .registry-list a {
  display: block;
  padding: 0.75rem 0.1rem 0.75rem 0;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  color: var(--color-ink);
  text-decoration: none;
  border-radius: 0 !important;
  background: transparent !important;
}

body.home-v26 #more-compounds .registry-list a:hover,
body.home-v26 .registry-list a:hover {
  color: var(--color-accent);
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Secondary paper pages — quieter column ---------- */
body.grid-sheet:not(.home-v26) .main-col,
body.grid-sheet:not(.home-v26) .page-shell,
body.dossier-page .main-col,
body.dossier-page .page-shell {
  background: rgba(255, 255, 255, 0.55);
  border-left-color: var(--hairline-soft);
  border-right-color: var(--hairline-soft);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-top: var(--section-y-sm);
  padding-bottom: var(--section-y);
}

body.grid-sheet .section-head {
  border-bottom-color: var(--hairline);
  margin-bottom: 1.15rem;
  padding: 0.25rem 0 0.65rem;
  overflow: visible;
}

body.grid-sheet .section-head h2 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  overflow: visible;
}

body.grid-sheet .simple-card {
  background: transparent;
  border-color: var(--hairline-soft);
  box-shadow: none;
}

body.grid-sheet .simple-card:hover {
  background: var(--ink-wash);
  border-color: var(--hairline);
}

body.grid-sheet:not(.home-v26) .registry-block {
  background: transparent;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid var(--hairline);
  padding: var(--section-y-sm) 0;
  margin: var(--section-y-sm) 0 var(--section-y);
  box-shadow: none;
}

/* Sitewide: kill leftover ALL-CAPS chip theater on paper */
body.grid-sheet .line-chip,
body.dossier-page .line-chip {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 500 !important;
}

/* === v35 — MOL STAGE CLEAN (no boxes, no gray plate) ===
   Structures sit on page paper: transparent stage, no border frame.
   PubChem 2D PNGs often ship with gray/white mats — multiply blends them out.
   ============================================================ */
.detail-hero-inner .hero-mol,
.hero-mol {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-mol-stage,
.hero-mol-stage.is-viewer,
.hero-mol-stage.is-plate,
.hero-mol-stage.is-fallback {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.hero-mol-canvas,
.hero-mol-canvas canvas,
.hero-mol-stage canvas {
  background: transparent !important;
}

.hero-mol-img,
.hero-mol-img--pubchem {
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  /* Knock out PubChem gray/white mat on cream/white paper */
}

.hero-mol-plate {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Identity plate structure thumbnail — no inset box */
.id-plate-img {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.id-plate-img img {
  background: transparent !important;
  border: 0 !important;
}

/* Any leftover structure thumbs in dossiers */
.struct-thumb,
.structure-block,
.structure-block img,
.mol-thumb,
.mol-thumb img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.struct-thumb img,
.mol-thumb img {
}

/* === v36 — MOL MAT PUNCH ===
   PubChem #F5F5F5 mat removed in JS (canvas alpha). No gray plate, no box. */
.hero-mol-stage canvas,
.hero-mol-img,
.id-plate-img canvas,
.id-plate-img img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero-mol-stage.is-fallback,
.hero-mol-stage.is-viewer {
  background: transparent !important;
}

/* === v37 — ID PLATE STRUCT ===
   Local structure PNGs are alpha-punched; multiply eats any residual mat on white. */
.id-plate-img,
.id-plate-img img,
.id-plate-img canvas {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.id-plate-img img,
.id-plate-img canvas {
  mix-blend-mode: multiply;
}
