@font-face {
  font-family: 'Source';
  src: url('assets/SourceSans3-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Source';
  src: url('assets/SourceSans3-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Source';
  src: url('assets/SourceSans3-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Reader';
  src: url('assets/Newsreader-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Reader';
  src: url('assets/Newsreader-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
/* Russian Cyrillic Editorial Fonts (Literata + Source Sans 3 Cyrillic) */
@font-face {
  font-family: 'LiterataCyr';
  src: url('assets/Literata-400-cyrillic.woff2') format('woff2');
  font-weight: 400;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'LiterataCyr';
  src: url('assets/Literata-500-cyrillic.woff2') format('woff2');
  font-weight: 500;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Source';
  src: url('assets/SourceSans3-400-cyrillic.woff2') format('woff2');
  font-weight: 400;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Source';
  src: url('assets/SourceSans3-500-cyrillic.woff2') format('woff2');
  font-weight: 500;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
@font-face {
  font-family: 'Source';
  src: url('assets/SourceSans3-600-cyrillic.woff2') format('woff2');
  font-weight: 600;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}
/* Arabic Editorial Fonts (Noto Kufi Arabic Display + Noto Naskh Arabic Body) */
@font-face {
  font-family: 'KufiAr';
  src: url('assets/NotoKufiArabic-500-arabic.woff2') format('woff2');
  font-weight: 400 500;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
  font-display: swap;
}
@font-face {
  font-family: 'KufiAr';
  src: url('assets/NotoKufiArabic-600-arabic.woff2') format('woff2');
  font-weight: 600 700;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
  font-display: swap;
}
@font-face {
  font-family: 'NaskhAr';
  src: url('assets/NotoNaskhArabic-400-arabic.woff2') format('woff2');
  font-weight: 400;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
  font-display: swap;
}
@font-face {
  font-family: 'NaskhAr';
  src: url('assets/NotoNaskhArabic-500-arabic.woff2') format('woff2');
  font-weight: 500;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
  font-display: swap;
}
@font-face {
  font-family: 'NaskhAr';
  src: url('assets/NotoNaskhArabic-600-arabic.woff2') format('woff2');
  font-weight: 600;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
  font-display: swap;
}

/* Metric-matched fallback fonts to prevent CLS on webfont swap */
@font-face {
  font-family: 'SourceFallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 94.5%;
  ascent-override: 98%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'ReaderFallback';
  src: local('Georgia'), local('Times New Roman'), local('Times');
  size-adjust: 92.5%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'LiterataFallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 99%;
  ascent-override: 97%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'KufiFallback';
  src: local('Geeza Pro'), local('Arial'), local('Tahoma');
  size-adjust: 106%;
  ascent-override: 112%;
  descent-override: 38%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'NaskhFallback';
  src: local('Geeza Pro'), local('Arial'), local('Tahoma');
  size-adjust: 100%;
  ascent-override: 106%;
  descent-override: 34%;
  line-gap-override: 0%;
}

:root {
  --paper: #f6f5ef;
  --sage: #e8ede8;
  --sage-deep: #dfe9e3;
  --ink: #172e30;
  --muted: #4f6262;
  --teal: #24595b;
  --teal-hover: #153e40;
  --line: #c7d0c9;
  --line-dark: #9caeaa;
  --copper: #865335;
  --gold: #e3c59a;
  --dark: #102a31;
  --dark-line: #39565d;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  font: 18px/1.5 'Source', 'SourceFallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-bottom: 74px;
  overflow-x: hidden;
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
}

figure, h1, h2, h3, h4, p, ol, ul, dl, dd {
  margin: 0;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
canvas:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid #ac683a;
  outline-offset: 3px;
}
[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

button, summary { cursor: pointer; }
button { font: inherit; }

h1, h2 {
  font: 400 3rem/1.04 'Reader', 'ReaderFallback', Georgia, serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 {
  text-wrap: balance;
}
.standfirst,
.answer,
.guide-body p,
.pledge-box blockquote {
  text-wrap: pretty;
}

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

em {
  font-style: normal;
  color: var(--teal);
}

section[id] { scroll-margin-top: 80px; }

.wrap {
  width: min(91%, 1380px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -80px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  background: #fff;
  z-index: 50;
}
.skip:focus { top: 8px; }

/* Single-Row Inline Masthead: [Brand] — [Inline Sub-Menus] — [Languages] (Zero Menu Button) */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  min-height: 66px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  font: 600 25px/1 'Source', sans-serif;
  letter-spacing: -0.05em;
  text-decoration: none;
  flex: none;
}
.brand img {
  margin-inline-end: 9px;
  width: 27px;
  height: 27px;
}
.brand span {
  font-weight: 400;
  color: var(--teal);
}
.mid-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  min-width: 0;
}
.mid-nav > a,
.sub-trigger {
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  min-height: 40px;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.mid-nav > a:hover,
.mid-nav > a.on,
.sub-trigger:hover,
.sub-trigger.on,
.sub-trigger[aria-expanded="true"] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}
.sub-trigger .caret {
  font-size: 11px;
  text-decoration: none;
  display: inline-block;
  opacity: 0.8;
  transition: transform 0.16s ease;
}
.sub-trigger[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}
/* Desktop shows direct About & Team + Contact links; mobile groups them into About ▾ sub-menu */
.sub-trigger.mob-only-sub { display: none; }
.mid-nav > a.desk-only-link { display: inline-flex; }
.lbl-short { display: none; }

.mast-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.langs {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}
.langs b { color: var(--ink); }
.langs a { text-decoration: none; }
.langs a:hover { text-decoration: underline; }
.mast-cta {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 14.5px;
  white-space: nowrap;
}

/* Expandable Single-Column Sub-Menu Panel directly beneath the single top bar */
.nav-sheet {
  border-top: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 36px rgba(16, 42, 49, 0.10);
}
.nav-sheet-inner {
  padding-block: 8px 14px;
  max-width: 560px;
  margin-inline: auto;
}
.nav-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
}
.nav-col-list li {
  border-bottom: 1px solid var(--line);
}
.nav-col-list li:last-child {
  border-bottom: 0;
}
.nav-col-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--ink);
}
.nav-col-link:hover b,
.nav-col-link[aria-current="page"] b {
  color: var(--teal);
  text-decoration: underline;
}
.nav-col-link b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.nav-col-link small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}
.nav-arrow {
  color: var(--copper);
  font-weight: 600;
  font-size: 17px;
  flex: none;
}

/* Micro-labels (Atlas typographic signature) */
.eyebrow,
.folio,
.num,
.plate-kicker,
.status {
  font: 600 12px/1.35 'Source', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.eyebrow {
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 11px;
}
.rule {
  width: 28px;
  height: 2px;
  background: var(--copper);
  flex: none;
}
.slash { color: #829490; }

/* Primary & Text Actions */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 3px;
}
.primary:hover { background: var(--teal-hover); }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.secondary-btn:hover { border-color: var(--ink); background: rgba(23, 46, 48, 0.04); }
.textlink {
  font-size: 16px;
  color: var(--teal);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  font-weight: 600;
}

/* =========================================================
   SPREAD 00: EDITORIAL HERO + SCIENTIFIC PLATE FIG. 01
   ========================================================= */
.spread {
  display: grid;
  grid-template-columns: 1.02fr 1.05fr;
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 76px);
}
.lead, .plate, .reader { min-width: 0; }
.lead h1 {
  font-size: clamp(40px, 4.4vw, 68px);
  max-width: 15.5ch;
  margin: 18px 0 16px;
}
.lead h1 em { display: block; }
.standfirst {
  font-size: clamp(18px, 1.35vw, 21px);
  max-width: 44ch;
  line-height: 1.48;
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 24px;
}
.lead-note {
  font-size: 14.5px;
  max-width: 46ch;
  color: var(--muted);
  margin-top: 16px;
}

/* Scientific Plate (FIG. 01 & FIG. 02) */
.plate {
  background: var(--dark);
  color: #f0f5f1;
  border-radius: 5px;
  overflow: hidden;
}
.plate-head {
  padding: 16px 22px 13px;
  border-bottom: 1px solid var(--dark-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}
.plate-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.plate-kicker, .folio {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.plate-head h2, .plate-head h3 {
  font: 400 22px/1.15 'Reader', Georgia, serif;
  letter-spacing: -0.02em;
  color: #f0f5f1;
}

/* Route Switcher embedded cleanly inside Plate Header */
.plate-routes {
  display: inline-flex;
  border: 1px solid #496970;
  border-radius: 3px;
  overflow: hidden;
}
.plate-route-btn {
  border: 0;
  background: transparent;
  color: #bfd3d5;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.plate-route-btn[aria-selected="true"] {
  background: var(--gold);
  color: #10262c;
}

#cell-visual {
  height: clamp(235px, 21vw, 326px);
  position: relative;
  background: radial-gradient(ellipse at 55% 54%, #22464d 0, transparent 73%);
}
#poster, #cell-canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}
#poster { object-fit: contain; }
#cell-canvas {
  opacity: 0;
  pointer-events: none;
  touch-action: pan-y;
}
.ready #cell-canvas {
  opacity: 1;
  pointer-events: auto;
  cursor: grab;
}
.ready #cell-canvas:active { cursor: grabbing; }
.ready #poster { visibility: hidden; }
.status {
  position: absolute;
  top: 10px;
  inset-inline-end: 18px;
  color: #b5cdcf;
  pointer-events: none;
  font-size: 10.5px;
}

.plate figcaption {
  border-top: 1px solid var(--dark-line);
  padding: 15px 22px 16px;
}
.scene-caption {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px;
  min-height: 58px;
  transition: opacity 0.2s ease;
}
.folio { padding-top: 4px; }
.scene-caption strong {
  display: block;
  font-size: 19px;
  line-height: 1.15;
  color: #fff;
}
.scene-caption p {
  font-size: 15px;
  color: #cfdddd;
  max-width: 50ch;
  margin-top: 3px;
}
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 6px;
}
.tracks {
  display: flex;
  gap: 6px;
  flex: 1;
}
.chapter-btn {
  flex: 1;
  background: none;
  border: 0;
  padding: 6px 0;
  text-align: start;
  color: #b9cccc;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chapter-btn[aria-current="step"] { color: var(--gold); }
.chapter-track {
  display: block;
  height: 3px;
  background: #435c61;
  margin-bottom: 5px;
}
.chapter-track i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.transport {
  display: flex;
  gap: 6px;
  visibility: hidden;
}
.ready .transport { visibility: visible; }
.transport button {
  min-height: 34px;
  padding: 4px 11px;
  background: transparent;
  color: #eef4ef;
  border: 1px solid #597379;
  border-radius: 3px;
  font-size: 13.5px;
}
.transport button:hover { background: #24464b; }
.transport button:disabled { opacity: 0.55; }
.plate small {
  display: block;
  font-size: 12.5px;
  color: #aec4c6;
}

/* =========================================================
   STRIP 01: UNBOXED SAGE TRIAGE BAND (.routes from v3-atlas)
   ========================================================= */
.routes {
  border-block: 1px solid var(--line);
  background: var(--sage);
  padding: 28px 0;
}
.section-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 24px;
  margin-bottom: 18px;
}
.section-line h2 { font-size: clamp(28px, 2.6vw, 36px); }
.route-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.route-item {
  background: none;
  border: 0;
  border-top: 1px solid var(--line-dark);
  padding: 12px 0 4px;
  text-align: start;
  display: flex;
  gap: 12px;
  color: var(--ink);
}
.route-item[aria-selected="true"] {
  border-top: 2px solid var(--copper);
}
.route-item b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.18;
}
.route-item small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-top: 3px;
}
.num {
  color: var(--copper);
  padding-top: 3px;
}
.route-detail-line {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 16px;
  color: var(--ink);
}
.route-detail-line a {
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}

/* =========================================================
   ASYMMETRIC CHAPTER SECTIONS (.chapter-section from v3-atlas)
   ========================================================= */
.chapter-section {
  display: grid;
  grid-template-columns: 0.88fr 1.42fr;
  gap: 7%;
  padding-block: clamp(46px, 6vw, 68px);
  border-bottom: 1px solid var(--line);
}
.chapter-section h2,
.review h2 {
  font-size: clamp(36px, 3.6vw, 58px);
  margin-top: 12px;
  max-width: 13ch;
}
.chapter-aside-note {
  font-size: 15px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 28ch;
}
.reader { max-width: 800px; }
.answer {
  font-size: clamp(21px, 1.85vw, 28px);
  line-height: 1.28;
  margin-bottom: 26px;
  color: var(--ink);
}

/* Unboxed Two-Column Editorial Comparison (Zero Card Boxes!) */
.dual-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.pathway-col {
  border-top: 2px solid var(--teal);
  padding-top: 16px;
}
.pathway-col.lnp {
  border-top-color: var(--copper);
}
.pathway-col h3 {
  font: 400 26px/1.12 'Reader', Georgia, serif;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}
.pathway-specs {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.spec-line {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.spec-line dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 3px;
}
.spec-line dd { color: var(--ink); }
.spec-line dd small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}
.col-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 16px;
  font-size: 15.5px;
}

/* FIG. 02: Evidence Scale & 9-Year MRI Plate */
.evidence-plate {
  margin-bottom: 22px;
}
.plate-body {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  align-items: center;
}
.scale-rows {
  display: grid;
  gap: 13px;
}
.scale-row {
  display: grid;
  gap: 4px;
}
.scale-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  color: #d6e4e4;
}
.scale-meta strong { color: #fff; }
.scale-bars {
  display: grid;
  gap: 4px;
}
.sbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sbar-fill {
  height: 7px;
  border-radius: 2px;
  background: #67c3cc;
}
.sbar-fill.gold { background: var(--gold); }
.sbar-fill.ctrl { background: #415d63; }

.mri-frame img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--dark-line);
}
.mri-frame p {
  font-size: 12.5px;
  color: #bfd2d3;
  margin-top: 7px;
  line-height: 1.4;
}

/* Hairline Accordions (from v3-atlas) */
.reader details {
  border-top: 1px solid var(--line);
}
.reader details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.reader summary {
  font-weight: 600;
  font-size: 17.5px;
  padding: 15px 0;
}
.reader summary::marker { color: var(--teal); }
.reader details p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: 14px;
}
.sources {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 15.5px;
  padding-bottom: 16px;
  color: var(--teal);
  font-weight: 600;
}
.leader-inline {
  display: grid;
  grid-template-columns: 72px 1fr 130px;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
}
.leader-inline img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
}
.leader-inline .gmp-thumb {
  aspect-ratio: 16/10;
}

/* =========================================================
   CHAPTER 03: CLOSING SAGE REVIEW BAND (.review from v3-atlas)
   ========================================================= */
.review {
  background: var(--sage-deep);
  padding: clamp(44px, 6vw, 66px) 0;
}
.review-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.42fr;
  gap: 7%;
  align-items: start;
}
.review-intro p:not(.eyebrow) {
  margin-top: 14px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 16.5px;
}

/* Editorial Paper Intake Form (minimal lines, zero heavy SaaS card) */
.atlas-form {
  background: var(--paper);
  border-top: 3px solid var(--teal);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 3px;
}
.step-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.step-row .on { color: var(--teal); }
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.req { color: var(--copper); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 9px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #9e2a2b;
  background-color: #fffafa;
}
.field textarea { min-height: 82px; resize: vertical; }
.presurg-note {
  background: #f5ebe0;
  border-inline-start: 3px solid var(--copper);
  padding: 10px 14px;
  font-size: 14.5px;
  margin-bottom: 14px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--muted);
  margin: 12px 0 16px;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--teal);
}
.consent input:user-invalid {
  outline: 2px solid #9e2a2b;
  outline-offset: 2px;
}
.form-foot {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* Subpage ordered steps (.steps from v3-atlas) */
.steps {
  padding-inline-start: 1.4rem;
}
.steps li {
  padding-block: 0 20px;
  padding-inline-start: 8px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::marker {
  font-weight: 600;
  font-size: 15px;
  color: var(--copper);
}
.steps b {
  display: block;
  font-size: 20px;
}
.steps p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 16.5px;
}

/* Physician Brief Modal */
dialog.doc-modal {
  width: min(92vw, 680px);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--copper);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 24px 56px rgba(16, 42, 49, 0.35);
}
dialog.doc-modal:modal {
  overscroll-behavior: contain;
}
dialog.doc-modal::backdrop {
  background: rgba(16, 42, 49, 0.6);
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.brief-pre {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  max-height: 46vh;
  overflow-y: auto;
  color: var(--ink);
}

/* Footer */
.foot {
  padding-block: 26px 34px;
  font-size: 13.5px;
  color: var(--muted);
}
.foot-links {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.foot-links > span {
  margin-inline-end: auto;
  color: var(--ink);
  font-weight: 600;
}
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { line-height: 1.5; max-width: 105ch; }

/* Mobile Sticky Bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 8px 18px;
  display: flex;
  gap: 10px;
}
.mobile-bar .primary,
.mobile-bar .secondary-btn {
  flex: 1;
  min-height: 44px;
  padding: 9px 10px;
  font-size: 15px;
}
.mobile-bar.hide {
  transform: translateY(110%);
  pointer-events: none;
}
@media (min-width: 960px) {
  .mobile-bar { display: none; }
}

/* Responsive Breakpoints (matching v3-atlas proportions) */
@media (max-width: 980px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .route-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .chapter-section,
  .review-layout,
  .plate-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .chapter-section h2,
  .review h2,
  .chapter-aside-note {
    max-width: none;
  }
  .mast-cta,
  .mid-nav > a.desk-only-link,
  .lbl-long { display: none; }
  .sub-trigger.mob-only-sub { display: inline-flex; }
  .lbl-short { display: inline; }
  .nav-sheet-inner { max-width: none; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .bar { min-height: 54px; gap: 6px; }
  .brand { font-size: 17px; }
  .brand img { width: 18px; height: 18px; margin-inline-end: 5px; }
  .mid-nav { gap: 7px; }
  .mid-nav > a,
  .sub-trigger {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 1px;
    gap: 2px;
  }
  .sub-trigger .caret { font-size: 10px; }
  .langs { font-size: 12px; gap: 4px; }
  .spread {
    padding-block: 22px 28px;
    gap: 22px;
  }
  .lead h1 {
    font-size: clamp(32px, 8.4vw, 44px);
    max-width: none;
    line-height: 1.06;
    margin: 12px 0 10px;
  }
  .standfirst { font-size: 16.5px; line-height: 1.44; }
  .actions { margin-top: 18px; }
  .plate-head, .plate figcaption, .plate-body { padding-inline: 16px; }
  #cell-visual { height: 220px; }
  .player { flex-wrap: wrap; gap: 8px 12px; }
  .tracks { flex: 1 1 100%; }
  .route-list,
  .dual-columns,
  .fgrid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .fgrid { gap: 0; }
  .leader-inline {
    grid-template-columns: 64px 1fr;
  }
  .leader-inline .gmp-thumb {
    grid-column: 1 / -1;
    max-height: 150px;
  }
}

/* =========================================================
   MULTILINGUAL (RU CYRILLIC & AR RTL) + REAL FORM FEEDBACK
   ========================================================= */
.plate-kicker { white-space: nowrap; }

.hp-clip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}

.form-msg {
  font-size: 14px;
  margin-top: 8px;
  min-height: 1.2em;
  color: var(--muted);
}
.form-msg.err {
  color: #9e2a2b;
  font-weight: 600;
}

/* Russian Cyrillic Typography: Literata + Source Sans 3 */
:lang(ru) h1,
:lang(ru) h2,
:lang(ru) .plate-head h2,
:lang(ru) .plate-head h3,
:lang(ru) .pathway-col h3,
:lang(ru) .doc-modal h3,
:lang(ru) #review-done h3 {
  font-family: 'LiterataCyr', 'LiterataFallback', 'Reader', 'ReaderFallback', Georgia, serif;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
:lang(ru) .lead h1 {
  font-size: clamp(38px, 4.1vw, 64px);
  max-width: 16ch;
}
:lang(ru) .chapter-section h2,
:lang(ru) .review h2 {
  font-size: clamp(32px, 3.2vw, 50px);
  max-width: 15ch;
}
@media (max-width: 720px) {
  :lang(ru) .lead h1 { font-size: clamp(30px, 7.8vw, 42px); max-width: none; line-height: 1.08; }
  :lang(ru) .chapter-section h2, :lang(ru) .review h2 { max-width: none; }
}

/* Arabic RTL Typography & Layout: Noto Kufi Arabic + Noto Naskh Arabic */
:lang(ar) {
  font-family: 'NaskhAr', 'NaskhFallback', 'Source', 'SourceFallback', Tahoma, Arial, sans-serif;
  line-height: 1.65;
}
:lang(ar) h1,
:lang(ar) h2,
:lang(ar) .plate-head h2,
:lang(ar) .plate-head h3,
:lang(ar) .pathway-col h3,
:lang(ar) .doc-modal h3,
:lang(ar) #review-done h3 {
  font-family: 'KufiAr', 'KufiFallback', 'Reader', 'ReaderFallback', Tahoma, sans-serif;
  letter-spacing: 0;
  line-height: 1.22;
}
:lang(ar) .lead h1 {
  font-size: clamp(38px, 4.2vw, 64px);
  max-width: 18ch;
}
:lang(ar) .chapter-section h2,
:lang(ar) .review h2 {
  font-size: clamp(30px, 3.1vw, 46px);
  max-width: 18ch;
}
:lang(ar) .eyebrow,
:lang(ar) .folio,
:lang(ar) .num,
:lang(ar) .plate-kicker,
:lang(ar) .status,
:lang(ar) .chapter-btn,
:lang(ar) .spec-line dt,
:lang(ar) .step-row,
:lang(ar) .proto-label {
  letter-spacing: 0;
  text-transform: none;
}

/* RTL structural mirroring */
[dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .folio { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .chapter-track i { transform-origin: right; }
/* Keep quantitative survival bar axis left-to-right per scientific chart standard */
[dir="rtl"] .sbar { direction: ltr; }
[dir="rtl"] .nav-arrow,
[dir="rtl"] .dir-arrow { display: inline-block; transform: scaleX(-1); }

/* =========================================================
   VISIBLE FOUNDER TRUST STRIP + SINGLE-COLUMN DIRECTORY
   + ABOUT & TEAM + CONTACT US EDITORIAL SECTIONS
   ========================================================= */
.founder-strip {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 16px 20px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 20px;
  background: var(--sage);
  border-top: 2px solid var(--copper);
  border-bottom: 1px solid var(--line);
}
.founder-strip img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  border: 1px solid var(--line-dark);
}
.founder-strip b {
  display: block;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.25;
}
.founder-strip p {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.42;
}
.founder-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  white-space: nowrap;
}
.founder-link:hover { text-decoration: underline; }

/* Single-Column Subpage Directory List (zero multi-column wrap, zero /slashes) */
.subpage-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 12px;
  display: grid;
  grid-template-columns: 1fr;
}
.subpage-list li {
  border-bottom: 1px solid var(--line);
}
.subpage-list li:last-child {
  border-bottom: 0;
}
.subpage-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 2px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--teal);
}
.subpage-list a small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}
.subpage-list a:hover span:first-child { text-decoration: underline; }
.dir-arrow {
  color: var(--copper);
  font-weight: 600;
  flex: none;
}

/* About & Team Editorial Blocks */
.fact-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 18px;
  border-block: 1px solid var(--line);
}
.fact-ledger b {
  display: block;
  font: 400 32px/1.05 'Reader', Georgia, serif;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
:lang(ru) .fact-ledger b { font-family: 'LiterataCyr', 'Reader', Georgia, serif; }
:lang(ar) .fact-ledger b { font-family: 'KufiAr', 'Reader', Tahoma, sans-serif; }
.fact-ledger span {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.38;
}

.leader-feature {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.leader-feature img {
  width: 128px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  border: 1px solid var(--line-dark);
}
.leader-feature h3 {
  font: 400 26px/1.15 'Reader', Georgia, serif;
  color: var(--ink);
}
:lang(ru) .leader-feature h3 { font-family: 'LiterataCyr', 'Reader', Georgia, serif; }
:lang(ar) .leader-feature h3 { font-family: 'KufiAr', 'Reader', Tahoma, sans-serif; }
.leader-role {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 10px;
}
:lang(ar) .leader-role { letter-spacing: 0; text-transform: none; }
.leader-feature p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.exec-rows {
  display: grid;
  gap: 18px;
}
.exec-row {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.exec-row:first-child { border-top: 0; padding-top: 0; }
.exec-row b {
  display: block;
  font-size: 18.5px;
  color: var(--ink);
}
.exec-row em {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  margin: 2px 0 6px;
}
.exec-row p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.5;
}

.mdt-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  margin: 18px 0 22px;
}
.mdt-item {
  border-top: 1px solid var(--line-dark);
  padding-top: 9px;
}
.mdt-item b {
  display: block;
  font-size: 16.5px;
  color: var(--ink);
}
.mdt-item span {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 2px;
}

.gmp-banner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: var(--sage);
  border-top: 2px solid var(--teal);
}
.gmp-banner img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
}

/* Contact Us Editorial Blocks */
.pledge-box {
  background: var(--sage);
  border-top: 2px solid var(--copper);
  padding: 18px 20px;
  margin: 18px 0 22px;
}
.pledge-box blockquote {
  margin: 0;
  font: 400 21px/1.35 'Reader', Georgia, serif;
  color: var(--ink);
}
:lang(ru) .pledge-box blockquote { font-family: 'LiterataCyr', 'Reader', Georgia, serif; }
:lang(ar) .pledge-box blockquote { font-family: 'KufiAr', 'Reader', Tahoma, sans-serif; }
.pledge-box small {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .founder-strip {
    grid-template-columns: 56px 1fr;
  }
  .founder-strip img {
    width: 56px;
    height: 56px;
  }
  .founder-link {
    grid-column: 1 / -1;
  }
  .fact-ledger,
  .mdt-list,
  .gmp-banner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .leader-feature {
    grid-template-columns: 88px 1fr;
    gap: 14px;
  }
  .leader-feature img { width: 88px; }
}
@media (max-width: 720px) {
  :lang(ar) .lead h1 { font-size: clamp(29px, 7.6vw, 40px); max-width: none; line-height: 1.24; }
  :lang(ar) .chapter-section h2, :lang(ar) .review h2 { max-width: none; }
}

/* =========================================================
   UNIFIED SUBPAGE & GUIDE SHELL (v6: Compare, Science, Costs,
   Upgraded Route A/B Plates & 33 Atlas Patient Guides)
   ========================================================= */
:root {
  --surface: #fbfaf5;
  --surface2: var(--sage);
  --accent: var(--teal);
  --accent-soft: var(--sage-deep);
  --radius: 4px;
  --s1: #24595b;
  --s2: #9d5530;
  --sg: #a7b6b1;
  --s1l: #8cb6b8;
}

/* 6-Metric Originator Pedigree Ledger (/science) */
.pedigree-band {
  background: var(--sage);
  border-block: 1px solid var(--line);
  padding: 26px 0;
}
.pedigree-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
}
.pedigree-item {
  border-top: 2px solid var(--copper);
  padding-top: 11px;
}
.pedigree-item.teal-top {
  border-top-color: var(--teal);
}
.pedigree-item b {
  display: block;
  font: 400 32px/1.05 'Reader', Georgia, serif;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
:lang(ru) .pedigree-item b { font-family: 'LiterataCyr', 'Reader', Georgia, serif; }
:lang(ar) .pedigree-item b { font-family: 'KufiAr', 'Reader', Tahoma, sans-serif; }
.pedigree-item strong {
  display: block;
  font-size: 15.5px;
  color: var(--teal);
  margin-top: 4px;
}
.pedigree-item span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Dark Atlas Moat / Comparison Strip inside Subpages */
.moat-plate {
  margin: 4px 0 24px;
}
.moat-grid {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.moat-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.moat-col {
  border-top: 1px solid var(--dark-line);
  padding-top: 12px;
}
.moat-col.highlight {
  border-top: 2px solid var(--gold);
}
.moat-col span.tag {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
:lang(ar) .moat-col span.tag { letter-spacing: 0; text-transform: none; }
.moat-col b {
  display: block;
  font-size: 18px;
  color: #fff;
  line-height: 1.25;
}
.moat-col p {
  font-size: 14.5px;
  color: #cfdddd;
  margin-top: 6px;
  line-height: 1.48;
}

/* Editorial Hairline Tables (.atlas-table-wrap & Guide .cmp) */
.atlas-table-wrap,
.cmp {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 18px 0 22px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
  background: var(--surface);
}
.atlas-table,
.cmp table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.48;
}
.atlas-table.wide-4col {
  min-width: 820px;
}
.atlas-table th,
.atlas-table td,
.cmp th,
.cmp td {
  text-align: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.atlas-table tr:last-child td,
.cmp tr:last-child td {
  border-bottom: 0;
}
.atlas-table thead th,
.cmp thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--sage);
  border-bottom: 1px solid var(--line-dark);
}
:lang(ar) .atlas-table thead th,
:lang(ar) .cmp thead th {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13.5px;
}
.atlas-table td:first-child,
.cmp td.k {
  font-weight: 600;
  color: var(--ink);
  width: 155px;
}
.atlas-table th.our-col,
.atlas-table td.our-col {
  background: rgba(36, 89, 91, 0.055);
}
.atlas-table th.our-lnp,
.atlas-table td.our-lnp {
  background: rgba(134, 83, 53, 0.065);
}
.atlas-table thead th.our-col {
  color: var(--teal);
  border-top: 2px solid var(--teal);
}
.atlas-table thead th.our-lnp {
  color: var(--copper);
  border-top: 2px solid var(--copper);
}

/* Kaplan-Meier & Experimental Science Figures (/science) */
.sci-fig-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--teal);
  border-radius: 3px;
  padding: 16px 18px;
  margin: 18px 0 22px;
}
.sci-fig-scroll {
  overflow-x: auto;
  max-width: 100%;
}
svg.kmfig {
  width: 100%;
  min-width: 600px;
  height: auto;
  display: block;
  overflow: visible;
  direction: ltr;
}
.km-ax { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.km-grid { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.km-n { font-size: 11px; fill: var(--muted); font-family: 'Source', sans-serif; }
.km-l { font-size: 12px; fill: var(--ink); font-family: 'Source', sans-serif; dominant-baseline: middle; }
.km-t { font-size: 13px; font-weight: 600; fill: var(--ink); font-family: 'Source', sans-serif; }
.km-vax { fill: none; stroke: var(--s2); stroke-width: 2.3; stroke-linejoin: round; }
.km-std { fill: none; stroke: var(--sg); stroke-width: 2; stroke-linejoin: round; }
.km-dash { stroke-dasharray: 5 4; opacity: 0.78; }
.km-cens { stroke: var(--s2); stroke-width: 1.6; }
.sci-fig-cap {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.48;
}
.sci-fig-cap strong { color: var(--ink); }

.ref-list {
  padding-inline-start: 1.3rem;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.ref-list a {
  color: var(--teal);
  font-weight: 600;
}

/* Patient Guide Shell & Animated SVG Diagrams (/guide/*) */
.guide-hero {
  padding-block: clamp(30px, 4.5vw, 54px) 26px;
  border-bottom: 1px solid var(--line);
}
.guide-hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  max-width: 22ch;
  margin: 14px 0 16px;
  line-height: 1.08;
}
:lang(ru) .guide-hero h1 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; }
:lang(ar) .guide-hero h1 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.24; max-width: 26ch; }
.guide-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}
.scope-banner {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--sage);
  border-inline-start: 3px solid var(--copper);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  max-width: 78ch;
}
.scope-banner a {
  color: var(--teal);
  font-weight: 600;
}
.guide-body {
  padding-block: 32px 46px;
}
.guide-body > * {
  max-width: 820px;
}
.guide-body h2 {
  font-size: clamp(25px, 2.6vw, 34px);
  margin: 36px 0 12px;
  line-height: 1.15;
}
.guide-body h2:first-child { margin-top: 4px; }
:lang(ar) .guide-body h2 { line-height: 1.28; }
.guide-body p,
.guide-body li {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
}
.guide-body p { margin-bottom: 14px; }
.guide-body ul,
.guide-body ol {
  padding-inline-start: 1.4rem;
  margin-bottom: 16px;
}
.guide-body li { margin-bottom: 7px; }
.guide-body a { color: var(--teal); font-weight: 500; }
.guide-body details {
  border-top: 1px solid var(--line);
}
.guide-body details:last-of-type {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.guide-body summary {
  font-weight: 600;
  font-size: 17px;
  padding: 14px 0;
}
.guide-body details p {
  color: var(--muted);
  font-size: 16px;
  padding-bottom: 14px;
  margin: 0;
}
.ggroup {
  font: 600 12.5px/1.35 'Source', sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 30px 0 10px !important;
}
:lang(ar) .ggroup { letter-spacing: 0; text-transform: none; font-size: 14px; }
.gl {
  list-style: none;
  padding: 0 !important;
  margin: 0 0 16px !important;
  border-top: 1px solid var(--line-dark);
}
.gl li {
  border-bottom: 1px solid var(--line);
  padding: 15px 2px;
  margin: 0 !important;
}
.gl a {
  font: 500 21px/1.25 'Reader', Georgia, serif;
  color: var(--ink) !important;
  text-decoration: none;
  display: block;
}
:lang(ru) .gl a { font-family: 'LiterataCyr', 'Reader', Georgia, serif; }
:lang(ar) .gl a { font-family: 'KufiAr', 'Reader', Tahoma, sans-serif; }
.gl a:hover { color: var(--teal) !important; text-decoration: underline; }
.gl p {
  font-size: 15px !important;
  color: var(--muted) !important;
  margin: 5px 0 0 !important;
  line-height: 1.45 !important;
}
.rel {
  list-style: none;
  padding: 0 !important;
  margin: 0 0 18px !important;
  border-top: 1px solid var(--line);
}
.rel li {
  border-bottom: 1px solid var(--line);
  margin: 0 !important;
}
.rel a {
  display: block;
  padding: 11px 2px;
  text-decoration: none;
  font-weight: 600;
  color: var(--teal);
}
.rel a:hover { text-decoration: underline; }
.srcs li {
  font-size: 14.5px !important;
  color: var(--muted) !important;
  margin-bottom: 6px !important;
}
.guide-dual-cta {
  margin-top: 30px;
  padding: 22px 24px;
  background: var(--sage);
  border-top: 2px solid var(--teal);
}
.guide-dual-cta h3 {
  font: 400 26px/1.15 'Reader', Georgia, serif;
  color: var(--ink);
  margin-bottom: 8px;
}
:lang(ru) .guide-dual-cta h3 { font-family: 'LiterataCyr', 'Reader', Georgia, serif; }
:lang(ar) .guide-dual-cta h3 { font-family: 'KufiAr', 'Reader', Tahoma, sans-serif; }
.guide-dual-cta p {
  font-size: 15.5px !important;
  color: var(--muted) !important;
  margin-bottom: 14px !important;
}

/* Guide vis.py SVG & Diagram Styles (mapped to Atlas tokens) */
.fig { margin: 22px 0 28px; padding: 0; }
.fig-t { font-weight: 600; font-size: 16px; margin: 0 0 10px; color: var(--ink); }
.fig-n { font-size: 13.5px !important; color: var(--muted) !important; margin: 8px 0 0 !important; }
.fig-s { overflow-x: auto; max-width: 100%; }
.fig-s > svg.chart { min-width: 560px; width: 100%; height: auto; display: block; }
.c-tbl { margin-top: 10px; }
svg.chart text { font-family: 'Source', sans-serif; fill: var(--ink); }
.c-lab { font-size: 13px; fill: var(--ink); }
.c-val { font-size: 13px; font-weight: 600; fill: var(--ink); }
.c-tick { font-size: 12px; fill: var(--muted); }
.c-ann { font-size: 12.5px; fill: var(--ink); }
.c-bar.base { fill: var(--sg); }
.c-bar.emph { fill: var(--s1); }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-axis { stroke: var(--muted); stroke-width: 1; }
.c-line { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--s1); opacity: 0.1; }
.c-med { stroke: var(--s2); stroke-width: 2; }
.c-dot { fill: var(--s2); stroke: var(--surface); stroke-width: 2; }
.c-br { stroke-width: 4; stroke-linecap: round; }
.c-br.base { stroke: var(--sg); }
.c-br.emph { stroke: var(--s2); }
.tl2 { display: grid; gap: 6px 2px; min-width: 620px; }
.tl2-seg { height: 26px; border-radius: 0 4px 4px 0; display: flex; align-items: center; justify-content: center; }
.tl2-seg.gray { background: var(--sg); }
.tl2-seg.s1 { background: var(--s1); }
.tl2-seg.s1l { background: var(--s1l); }
.tl2-seg.warn { background: var(--s2); }
.tl2-w { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.tl2-seg.gray .tl2-w, .tl2-seg.s1l .tl2-w { color: var(--ink); }
.tl2-lab { font-size: 12.5px; line-height: 1.3; color: var(--ink); padding: 0 6px 0 0; }
.dflow { display: grid; gap: 10px; }
.df-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 16px; font-size: 15px; }
.df-top { font-weight: 600; text-align: center; }
.df-q { text-align: center; font-weight: 600; border-color: var(--s1); }
.df-arrow { width: 2px; height: 16px; background: var(--muted); margin: 0 auto; }
.df-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.df-no { border-inline-start: 4px solid var(--sg); }
.df-yes { border-inline-start: 4px solid var(--s1); }
.df-box ul { margin: 8px 0 0; padding-inline-start: 18px; }
.df-box li { font-size: 14.5px !important; margin-bottom: 4px !important; }
.df-always { background: var(--accent-soft); font-size: 14.5px; text-align: center; }
.psteps { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.psteps li { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; margin: 0 !important; }
.ps-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--s1); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.psteps strong { font-size: 15.5px; }
.psteps p { margin: 3px 0 0 !important; font-size: 14.5px !important; color: var(--muted) !important; line-height: 1.45 !important; }
.layers { display: grid; gap: 8px; }
.layer { border-radius: var(--radius); padding: 14px 18px; border-inline-start: 6px solid var(--s1); background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.layer.l2 { border-inline-start-color: var(--s1); opacity: 0.92; }
.layer.l3 { border-inline-start-color: var(--s1l); }
.layer strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.layer span { font-size: 14.5px; color: var(--muted); }
.mech-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; overflow-x: auto; max-width: 100%; }
svg.mech { width: 100%; min-width: 600px; height: auto; display: block; }
.m-strand { fill: none; stroke: var(--s1); stroke-width: 3; stroke-linecap: round; }
.m-strand.s2 { stroke: var(--s1); opacity: 0.55; }
.m-rung { stroke-width: 3; stroke-linecap: round; }
.m-rung.a { stroke: var(--s2); }
.m-rung.b { stroke: var(--sg); }
.m-scan { fill: var(--s1); opacity: 0.22; }
.m-bar { fill: var(--sg); }
.m-bar.sel { fill: var(--s2); }
.m-rna { fill: none; stroke: var(--s1); stroke-width: 3; stroke-linecap: round; }
.m-cap { fill: var(--s2); stroke: var(--surface); stroke-width: 2; }
.m-dend { fill: none; stroke: var(--s1); stroke-width: 3; stroke-linecap: round; opacity: 0.8; }
.m-cell { fill: var(--s1); fill-opacity: 0.16; stroke: var(--s1); stroke-width: 2; }
.m-nuc { fill: var(--s1); opacity: 0.5; }
.m-ag { fill: var(--s2); stroke: var(--surface); stroke-width: 1.5; }
.m-part { fill: var(--s2); }
.m-tumor { fill: var(--sg); stroke: var(--muted); stroke-width: 1; }
.m-tcell { fill: var(--s1); stroke: var(--surface); stroke-width: 2; }
.m-chev { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mech .scan { animation: mscan 3.2s ease-in-out infinite alternate; }
@keyframes mscan { from { transform: translateX(0); } to { transform: translateX(172px); } }
.mech .pulse { animation: mpulse 1.4s ease-in-out infinite alternate; }
@keyframes mpulse { from { opacity: 0.3; } to { opacity: 1; } }
.mech .rna { stroke-dasharray: 9 6; animation: mflow 1.1s linear infinite; }
@keyframes mflow { to { stroke-dashoffset: -15; } }
.mech .p1, .mech .p2, .mech .p3 { offset-path: path('M580 150 C620 112,660 188,700 150'); animation: mmove 2.4s linear infinite; }
.mech .p2 { animation-delay: 0.8s; }
.mech .p3 { animation-delay: 1.6s; }
.mech .c1, .mech .c2, .mech .c3 { offset-path: path('M748 150 C790 104,850 196,905 150'); animation: mmove 3s linear infinite; }
.mech .c2 { animation-delay: 1s; }
.mech .c3 { animation-delay: 2s; }
@keyframes mmove { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.mech .tumor { animation: mfade 4.5s ease-in-out infinite alternate; }
.mech .t1 { animation-delay: 1.2s; }
.mech .t2 { animation-delay: 2.4s; }
@keyframes mfade { from { opacity: 1; } to { opacity: 0.35; } }
.mlegend { list-style: none; margin: 12px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(var(--mcols, 5), 1fr); gap: 10px; }
.mlegend li { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px !important; line-height: 1.35 !important; margin: 0 !important; }
.ml-n { width: 22px; height: 22px; border-radius: 50%; background: var(--s1); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.mlegend strong { font-size: 14px; }
.ml-d { color: var(--muted); }
.m-shield { stroke: var(--s2); stroke-width: 5; stroke-linecap: round; animation: mshield 7s ease-in-out infinite; }
.m-shield.sh1 { animation-delay: 0.15s; }
.m-shield.sh2 { animation-delay: 0.3s; }
.m-shield.sh3 { animation-delay: 0.45s; }
.m-shield.sh4 { animation-delay: 0.6s; }
@keyframes mshield { 0%, 38% { opacity: 1; } 52%, 88% { opacity: 0.12; } 100% { opacity: 1; } }
.m-ab path { stroke: var(--s1); stroke-width: 3; stroke-linecap: round; fill: none; }
.m-ab { animation: mab 7s ease-in-out infinite; opacity: 0; }
.m-ab.ab0 { offset-path: path('M700 20 C690 50,690 70,683 88'); }
.m-ab.ab1 { offset-path: path('M760 14 C752 40,746 60,742 78'); animation-delay: 0.3s; }
.m-ab.ab2 { offset-path: path('M826 24 C816 48,808 66,800 90'); animation-delay: 0.6s; }
@keyframes mab { 0%, 12% { offset-distance: 0%; opacity: 0; } 20% { opacity: 1; } 40%, 88% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.m-tc-move { animation: mtc 7s ease-in-out infinite; }
@keyframes mtc { 0%, 45% { transform: translateX(0); } 70%, 88% { transform: translateX(312px); } 100% { transform: translateX(0); } }
.m-tc-path { stroke-dasharray: 4 6; opacity: 0.5; }
.m-ring { fill: none; stroke: var(--line); stroke-width: 2; }
.m-node { fill: var(--surface); stroke: var(--sg); stroke-width: 2; animation: mnode 9s linear infinite; }
.m-node.nd1 { animation-delay: 1.5s; }
.m-node.nd2 { animation-delay: 3s; }
.m-node.nd3 { animation-delay: 4.5s; }
.m-node.nd4 { animation-delay: 6s; }
.m-node.nd5 { animation-delay: 7.5s; }
@keyframes mnode { 0%, 16% { stroke: var(--s1); stroke-width: 4; } 20%, 100% { stroke: var(--sg); stroke-width: 2; } }
.m-ico-tumor { fill: var(--sg); }
.m-ico-ln { fill: none; stroke: var(--muted); stroke-width: 2; }
.m-kill { stroke: var(--s2); stroke-width: 2.5; stroke-linecap: round; }
.m-rt { fill: var(--sg); animation: mfill 8s linear infinite; }
.m-tmz { fill: var(--sg); animation: mfill2 8s linear infinite; }
@keyframes mfill { 0% { fill: var(--sg); } 12%, 100% { fill: var(--s1); } }
@keyframes mfill2 { 0% { fill: var(--sg); } 12%, 100% { fill: var(--s2); } }
.m-cyc { fill: none; stroke: var(--line); stroke-width: 1.5; }
.m-cyc5 { fill: var(--sg); animation: mfill2 8s linear infinite; }
.m-lab { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; }
.m-syr { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
.m-lnp { fill: var(--s1); fill-opacity: 0.12; stroke: none; }
.m-lip { fill: var(--s1); }
.m-part.r1, .m-part.r2, .m-part.r3 { offset-path: path('M440 70 C490 70,490 115,520 115'); animation: mmove 2.6s linear infinite; }
.m-part.r2 { offset-path: path('M440 160 C490 160,490 115,520 115'); animation-delay: 0.9s; }
.m-part.r3 { animation-delay: 1.8s; }
.m-scan-bg { fill: var(--ink); opacity: 0.9; }
.m-brain { fill: none; stroke: var(--surface); stroke-width: 1.5; opacity: 0.5; }
.m-les.core { fill: var(--surface); }
.m-les.haze { fill: var(--surface); opacity: 0.35; }
.m-les.settle { animation: msettle 6s ease-in-out infinite; transform-origin: 350px 112px; }
@keyframes msettle { 0%, 30% { transform: scale(1); } 60%, 100% { transform: scale(0.45); } }
.m-les.grow { transform-origin: 770px 112px; animation: mgrow 6s ease-in-out infinite; }
@keyframes mgrow { 0%, 30% { transform: scale(1); } 60%, 100% { transform: scale(2.2); } }
.m-mhc { fill: var(--s1); }
.m-tcr { fill: var(--s2); }
.m-glow { fill: var(--s2); opacity: 0; animation: mglow 6s ease-in-out infinite; }
@keyframes mglow { 0%, 25% { opacity: 0; } 35%, 60% { opacity: 0.35; } 75%, 100% { opacity: 0; } }
.m-tc-dock { animation: mdock 6s ease-in-out infinite; }
@keyframes mdock { 0% { transform: translateX(60px); } 25%, 70% { transform: translateX(0); } 100% { transform: translateX(60px); } }
.m-clone { opacity: 0; transform-box: fill-box; transform-origin: center; animation: mclone 6s ease-out infinite; }
@keyframes mclone { 0% { opacity: 0; transform: scale(0.2); } 18% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.m-ico { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
.m-route { fill: none; stroke: var(--line); stroke-width: 2; }
.m-bldg { fill: var(--sg); }
.m-win { fill: var(--surface); }
.m-hosp { fill: var(--s1); fill-opacity: 0.15; stroke: var(--s1); stroke-width: 2; }
.m-cross { stroke: var(--s1); stroke-width: 4; stroke-linecap: round; }
.m-plane-s { fill: var(--s1); stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; }
.m-plane { offset-path: path('M150 112 C250 20,420 20,520 112'); offset-rotate: auto; animation: mjourney 10s linear infinite; }
.m-train-s { fill: var(--s2); }
.m-train { offset-path: path('M560 112 h80'); offset-rotate: 0deg; animation: mjourney2 10s linear infinite; }
.m-trav { fill: var(--s2); stroke: var(--surface); stroke-width: 2; offset-path: path('M70 112 h80 C250 20,420 20,520 112 h120 h60 C780 190,860 190,900 112'); animation: mtrav 10s linear infinite; }
@keyframes mjourney { 0%, 8% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 38% { offset-distance: 100%; opacity: 1; } 42%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes mjourney2 { 0%, 44% { offset-distance: 0%; opacity: 0; } 48% { opacity: 1; } 58% { offset-distance: 100%; opacity: 1; } 62%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes mtrav { 0% { offset-distance: 0%; } 8% { offset-distance: 8%; } 38% { offset-distance: 44%; } 44% { offset-distance: 56%; } 58% { offset-distance: 64%; } 62%, 78% { offset-distance: 64%; } 96%, 100% { offset-distance: 100%; } }
.m-dna { fill: none; stroke: var(--s1); stroke-width: 2.5; }
.m-meth { fill: var(--s2); }
.m-enz-s { fill: none; stroke: var(--s1); stroke-width: 3; }
.m-enz.off .m-enz-s { stroke: var(--sg); }
.m-x { stroke: var(--s2); stroke-width: 3; stroke-linecap: round; }
.m-enz.on .m-x { display: none; }
.m-dmg { fill: var(--s2); }
.m-dmg.fix { animation: mfix 4s ease-in-out infinite; }
@keyframes mfix { 0%, 30% { opacity: 1; } 55%, 100% { opacity: 0; } }
.m-tumor.die { animation: mdie 4s ease-in-out infinite; }
@keyframes mdie { 0%, 30% { opacity: 1; } 70%, 100% { opacity: 0.15; } }
.m-tumor.live { opacity: 1; }
.m-head { fill: none; stroke: var(--muted); stroke-width: 2; }
.m-array { fill: var(--s2); }
.m-field { stroke: var(--s1); stroke-width: 1.5; opacity: 0.7; }
.m-fieldA { animation: mfA 1.2s steps(1) infinite; }
.m-fieldB { animation: mfB 1.2s steps(1) infinite; }
@keyframes mfA { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes mfB { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.m-spindle { stroke: var(--s2); stroke-width: 2; }
.m-div { transform-box: fill-box; transform-origin: center; animation: mdiv 2.4s ease-in-out infinite; }
@keyframes mdiv { 0%, 40% { transform: scaleX(1); } 50% { transform: scaleX(1.25); } 60% { transform: scaleX(0.95); } 70%, 100% { transform: scaleX(1); } }
.m-dose { fill: none; stroke: var(--s1); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 900; animation: mdraw 8s linear infinite; }
@keyframes mdraw { 0% { stroke-dashoffset: 900; } 60%, 100% { stroke-dashoffset: 0; } }
.m-swell { transform-box: fill-box; transform-origin: center; animation: mswell 8s linear infinite; }
@keyframes mswell { 0% { transform: scale(1); } 60%, 100% { transform: scale(0.35); } }
.m-swell-c { fill: var(--s2); opacity: 0.28; }
.m-person { fill: var(--sg); }
.m-pt { offset-rotate: 0deg; animation: mpt 8s linear infinite; }
.m-pt.p0 { offset-path: path('M80 80 h220 C340 110,340 110,380 110 C420 110,420 60,460 60 h60'); animation-delay: 0s; }
.m-pt.p1 { offset-path: path('M80 140 h220 C340 110,340 110,380 110 C420 110,420 160,460 160 h60'); animation-delay: 0.6s; }
.m-pt.p2 { offset-path: path('M80 80 h220 C340 110,340 110,380 110 C420 110,420 160,460 160 h100'); animation-delay: 1.2s; }
.m-pt.p3 { offset-path: path('M80 140 h220 C340 110,340 110,380 110 C420 110,420 60,460 60 h100'); animation-delay: 1.8s; }
.m-pt.p4 { offset-path: path('M80 80 h220 C340 110,340 110,380 110 C420 110,420 60,460 60 h140'); animation-delay: 2.4s; }
.m-pt.p5 { offset-path: path('M80 140 h220 C340 110,340 110,380 110 C420 110,420 160,460 160 h140'); animation-delay: 3s; }
.m-pt.p6 { offset-path: path('M80 80 h220 C340 110,340 110,380 110 C420 110,420 160,460 160 h180'); animation-delay: 3.6s; }
.m-pt.p7 { offset-path: path('M80 140 h220 C340 110,340 110,380 110 C420 110,420 60,460 60 h180'); animation-delay: 4.2s; }
.m-pt.p8 { offset-path: path('M80 80 h220 C340 110,340 110,380 110 C420 110,420 60,460 60 h220'); animation-delay: 4.8s; }
.m-pt.p9 { offset-path: path('M80 140 h220 C340 110,340 110,380 110 C420 110,420 160,460 160 h220'); animation-delay: 5.4s; }
@keyframes mpt { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 30%, 80% { offset-distance: 100%; opacity: 1; } 90%, 100% { offset-distance: 100%; opacity: 0; } }
.m-coin-s { fill: var(--s2); fill-opacity: 0.25; stroke: var(--s2); stroke-width: 2; }
.m-coin { transform-box: fill-box; transform-origin: center; animation: mcoin 1.6s linear infinite; }
@keyframes mcoin { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.1); } 100% { transform: scaleX(1); } }
.m-arm { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.m-arm.new { stroke: var(--s1); }
.m-pill.std { fill: var(--s1); }
.m-pill.new { fill: var(--s2); }
@media (prefers-reduced-motion: reduce) { .mech * { animation: none !important; } }

@media (max-width: 900px) {
  .pedigree-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moat-grid { grid-template-columns: 1fr; gap: 16px; }
  .mlegend { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 580px) {
  .pedigree-grid,
  .moat-grid.two-col,
  .df-split { grid-template-columns: 1fr; }
  .mlegend { grid-template-columns: 1fr 1fr !important; }
  .mlegend li { min-width: 0; overflow-wrap: anywhere; }
  .moat-grid { padding-inline: 16px; }
}

/* ── Compare page: full-width stacked chapters, 6-tile difference plate, card matrix on small screens ── */
.chapter-section.stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}
.stack-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 48px;
}
.chapter-section.stack h2 { max-width: none; }
.stack-head .chapter-aside-note {
  max-width: 46ch;
  margin-top: 0;
}
.moat-grid.six {
  gap: 26px 28px;
  padding-block: 22px 26px;
}
.moat-grid.six .moat-col b { font-size: 19px; }
.atlas-table.wide-4col { table-layout: fixed; min-width: 960px; }
.atlas-table.wide-4col th:first-child,
.atlas-table.wide-4col td.crit { width: 132px; }
.atlas-table.wide-4col thead th.our-col,
.atlas-table.wide-4col thead th.our-lnp { font-size: 12.5px; }
.atlas-table.wide-4col td.our-col strong { color: var(--teal); }
.atlas-table.wide-4col td.our-lnp strong { color: var(--copper); }

@media (max-width: 1040px) {
  .moat-grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-table-wrap.cmp-cards {
    overflow: visible;
    border: 0;
    background: none;
    margin-top: 6px;
  }
  .cmp-cards .atlas-table.wide-4col,
  .cmp-cards .atlas-table.wide-4col tbody,
  .cmp-cards .atlas-table.wide-4col tr,
  .cmp-cards .atlas-table.wide-4col td {
    display: block;
    width: auto;
    min-width: 0;
  }
  .cmp-cards .atlas-table.wide-4col thead {
    display: none;
  }
  .cmp-cards .atlas-table.wide-4col tr {
    margin-bottom: 20px;
    background: var(--surface);
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }
  .cmp-cards .atlas-table.wide-4col tr:last-child { margin-bottom: 0; }
  .cmp-cards .atlas-table.wide-4col td {
    padding: 13px 16px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
  }
  .cmp-cards .atlas-table.wide-4col tr td:last-child { border-bottom: 0; }
  .cmp-cards .atlas-table.wide-4col td.crit {
    width: auto;
    padding: 12px 16px;
    background: var(--sage);
    border-bottom: 1px solid var(--line-dark);
    font: 400 21px/1.2 'Reader', Georgia, serif;
    letter-spacing: -0.01em;
    color: var(--ink);
  }
  .cmp-cards .atlas-table.wide-4col td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
  }
  :lang(ar) .cmp-cards .atlas-table.wide-4col td[data-label]::before {
    letter-spacing: 0;
    text-transform: none;
    font-size: 13px;
  }
  .cmp-cards .atlas-table.wide-4col td.our-col { border-inline-start: 3px solid var(--teal); }
  .cmp-cards .atlas-table.wide-4col td.our-lnp { border-inline-start: 3px solid var(--copper); }
  .cmp-cards .atlas-table.wide-4col td.our-col::before { color: var(--teal); }
  .cmp-cards .atlas-table.wide-4col td.our-lnp::before { color: var(--copper); }
}
@media (min-width: 700px) and (max-width: 1040px) {
  /* tablets: criterion header spans the card, our two routes side by side, then the two external routes */
  .cmp-cards .atlas-table.wide-4col tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cmp-cards .atlas-table.wide-4col td.crit { grid-column: 1 / -1; }
  .cmp-cards .atlas-table.wide-4col tr td:nth-last-child(2) { border-bottom: 0; }
}
@media (max-width: 580px) {
  .moat-grid.six { grid-template-columns: 1fr; gap: 20px; }
  .moat-grid.six .moat-col b { font-size: 18px; }
}
