/* royalpandin.com — V9 FSL11 — Ice-blue editorial paper */
/* Token set locked to LIGHT_COLOR_001 */

:root {
  --primary: #1769E8;
  --primary-deep: #0E4FB6;
  --accent: #0EA5A8;
  --accent-soft: #C9EEF0;
  --background: #F4F8FF;
  --surface: #FFFFFF;
  --surface-2: #E8F1FF;
  --surface-3: #DDE9FB;
  --ink: #13213A;
  --ink-soft: #2A3B5C;
  --muted: #52647C;
  --muted-2: #585F6E;
  --border: #C9D9F2;
  --border-strong: #A6BBDC;
  --rule: #B6C7E4;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --good: #047857;
  --good-soft: #D1FAE5;

  --font-ui: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "IBM Plex Serif", "IBM Plex Serif Fallback", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --radius-xl: 18px;

  --shadow-paper: 0 1px 0 rgba(19, 33, 58, 0.04), 0 8px 24px -16px rgba(19, 33, 58, 0.18);
  --shadow-lift: 0 2px 0 rgba(19, 33, 58, 0.05), 0 16px 32px -20px rgba(19, 33, 58, 0.22);

  --maxw: 1240px;
  --maxw-narrow: 880px;
  --rail-w: 232px;
  --header-h: 72px;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Font fallback metrics — neutralize web-font swap reflow (CLS) by giving
   the system font the same vertical metrics as the web font. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("system-ui");
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 107%;
}
@font-face {
  font-family: "IBM Plex Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  ascent-override: 95%;
  descent-override: 27%;
  line-gap-override: 0%;
  size-adjust: 105%;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}
img, svg, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
h4 { font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin: 0.3em 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 32px 0;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: #fff;
  padding: 10px 14px; z-index: 9999;
}
.skip-link:focus { top: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / masthead */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244, 248, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark:hover { color: var(--ink); }
.brand-glyph {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.18);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.cta-nav {
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  margin-left: 8px;
  font-weight: 600;
}
.main-nav a.cta-nav:hover { background: var(--primary-deep); color: #fff; }

.header-utility {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-utility a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.header-utility a:hover { background: var(--surface-2); color: var(--ink); }

.hamburger {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 300;
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .hamburger { display: inline-flex; }
}
.hamburger .bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  z-index: 250;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  border-top: 1px solid var(--border);
}
.mobile-drawer[data-open="true"] { transform: translateX(0); }
.mobile-drawer nav a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
}
.mobile-drawer nav a.cta-nav {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  text-align: center;
}

/* Edition strip (masthead sub-row) */
.edition-strip {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.edition-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.edition-strip .stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.edition-strip .stamp::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.12);
}

/* === HOMEPAGE BLOCKS === */

/* Block 02 — Mosaic newsroom hero */
.mosaic-hero {
  padding: 56px 0 32px;
}
.mosaic-hero .lede-eyebrow {
  margin-bottom: 18px;
}
.mosaic-hero h1 {
  max-width: 16ch;
  margin-bottom: 14px;
}
.mosaic-hero .lede {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 18px;
  margin-bottom: 22px;
}
.mosaic-hero .lede-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 28px;
}
.mosaic-hero .lede-meta span + span::before {
  content: "•";
  margin-right: 14px;
  color: var(--border-strong);
}
.mosaic-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 12px;
}
.mosaic-fragment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mosaic-fragment.feature {
  grid-row: span 2;
}
.mosaic-fragment .ph {
  aspect-ratio: 16 / 10;
  background: var(--surface-2) center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.mosaic-fragment .body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mosaic-fragment .body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.mosaic-fragment .body p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 14px;
}
.mosaic-fragment .body .frag-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 14.5px;
}

/* Block 03 — Editorial index rail */
.editorial-rail-section {
  padding: 24px 0 56px;
}
.rail-layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.rail {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 18px 14px;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.rail h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 6px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.rail ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rail li {
  counter-increment: rail-chap;
  margin: 0;
}
.rail a {
  display: flex;
  gap: 12px;
  padding: 8px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.3;
}
.rail a::before {
  content: counter(rail-chap, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  min-width: 22px;
  letter-spacing: 0.06em;
}
.rail ol { counter-reset: rail-chap; }
.rail a:hover { background: var(--surface-2); color: var(--ink); }

/* Block 04 — Meld anatomy plate */
.anatomy-plate {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.anatomy-figure {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.anatomy-figure .deck {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  margin-top: 12px;
}
.anatomy-figure .card {
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.anatomy-figure .card.red { color: #B91C1C; }
.anatomy-figure .card.black { color: var(--ink); }
.anatomy-figure .card.meld-pure {
  background: rgba(14, 165, 168, 0.10);
  border-color: var(--accent);
}
.anatomy-figure .card.meld-impure {
  background: rgba(23, 105, 232, 0.10);
  border-color: var(--primary);
}
.anatomy-figure .card.meld-set {
  background: rgba(180, 83, 9, 0.08);
  border-color: #B45309;
}
.anatomy-callouts {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.callout {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  align-items: start;
}
.callout::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 6px;
}
.callout.pure::before { background: var(--accent); }
.callout.impure::before { background: var(--primary); }
.callout.set::before { background: #B45309; }

/* Block 05 — Format pathway */
.format-pathway {
  padding: 64px 0;
}
.format-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  margin-top: 24px;
}
.format-rail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.format-station {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px;
  position: relative;
  z-index: 1;
}
.format-station .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 8px;
}
.format-station h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.format-station .deck-icon {
  display: flex;
  gap: 4px;
  margin-top: 14px;
}
.format-station .deck-icon span {
  width: 22px;
  height: 30px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
}
.format-station .deck-icon span:nth-child(odd) { background: var(--surface); }

/* Block 06 — Walkthrough */
.walkthrough-plate {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.walkthrough {
  display: grid;
  gap: 0;
  margin-top: 24px;
}
.walkthrough-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 160px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.walkthrough-step:last-child { border-bottom: 0; }
.walkthrough-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 6px;
}
.walkthrough-step h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 6px;
}
.walkthrough-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.walkthrough-step .decision {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink-soft);
  text-align: center;
}
.walkthrough-step .decision.dec-go { border-color: var(--good); color: var(--good); background: var(--good-soft); }
.walkthrough-step .decision.dec-hold { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.walkthrough-step .decision.dec-alt { border-color: var(--primary); color: var(--primary-deep); background: var(--surface-2); }

/* Block 07 — Scoring spread */
.scoring-spread {
  padding: 64px 0;
}
.scoring-spread table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-top: 24px;
}
.scoring-spread th, .scoring-spread td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.scoring-spread th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.scoring-spread td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.scoring-spread tbody tr:last-child td { border-bottom: 0; }
.scoring-spread .figure {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Block 08 — Editorial lead */
.editorial-lead {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.editorial-lead .container-narrow h2 { margin-bottom: 18px; }
.editorial-lead p {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.editorial-lead .dropcap::first-letter {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  float: left;
  margin-right: 10px;
  margin-top: 4px;
  color: var(--primary);
  font-weight: 700;
}

/* Block 09 — Platform review */
.platform-review {
  padding: 64px 0;
}
.platform-review .pr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  margin-top: 24px;
  align-items: start;
}
.platform-review .pr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
}
.platform-review .pr-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px 18px;
}
.platform-review .pr-card dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.platform-review .pr-card dd { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.platform-review .pr-text p { font-size: 16px; }

/* Block 10 — Verification panel */
.verification-panel {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.verification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.verify-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px;
  position: relative;
}
.verify-step .vs-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}
.verify-step h4 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; }
.verify-step p { font-size: 14.5px; color: var(--muted); margin: 0; }
.verify-step .vs-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #066;
}

/* Block 11 — Comparison ledger */
.comparison-ledger {
  padding: 64px 0;
}
.comparison-ledger table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-top: 24px;
}
.comparison-ledger th, .comparison-ledger td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.comparison-ledger th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.comparison-ledger tbody tr:last-child td { border-bottom: 0; }
.comparison-ledger .platform {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
}
.comparison-ledger .row-head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-3);
  font-weight: 600;
}
.comparison-ledger .yes { color: var(--good); font-weight: 600; }
.comparison-ledger .no { color: var(--muted-2); }
.comparison-ledger .partial { color: var(--warn); font-weight: 600; }
.comparison-ledger .row-self {
  background: rgba(14, 165, 168, 0.06);
}

/* Block 12 — Route panel */
.route-panel {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--background) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.route-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-l);
  padding: 28px;
  max-width: 880px;
  margin: 0 auto;
}
.route-card h3 { font-size: 24px; margin-bottom: 6px; }
.route-card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 56ch; }
.route-card .disclosure {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

/* Block 13 — Control map */
.control-map {
  padding: 64px 0;
}
.control-map .cm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.control-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 20px;
}
.control-card .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #066;
  border: 1px solid var(--accent);
}
.control-card h4 { font-family: var(--font-serif); font-size: 17px; margin-bottom: 6px; }
.control-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Block 14 — News register */
.news-register {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.news-list li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.news-list li:last-child { border-bottom: 0; }
.news-list a {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  gap: 18px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink);
  align-items: baseline;
}
.news-list a:hover { color: var(--primary-deep); }
.news-list .date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.news-list .title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
}
.news-list .topic {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
  text-align: right;
}

/* Block 15 — Colophon */
.colophon {
  padding: 56px 0 80px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.colophon-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 36px;
}
.colophon-grid h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 10px;
}
.colophon-grid p { font-size: 14.5px; color: var(--muted); }
.colophon-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.colophon-meta li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  font-size: 14px;
  margin: 0;
}
.colophon-meta li span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--primary-deep);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--primary-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #D8E1F0;
  padding: 56px 0 24px;
}
.site-footer a { color: #B6C7E4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin: 0; padding: 4px 0; font-size: 14px; }
.footer-grid p { font-size: 14px; color: #93A3BD; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #93A3BD;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  letter-spacing: 0.04em;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 180;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(env(safe-area-inset-bottom, 12px) + 12px) 16px;
}
.mobile-sticky-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 16px 22px;
  font-size: 16px;
}
.mobile-sticky-cta .note {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 6px;
}
@media (max-width: 720px) {
  .mobile-sticky-cta { display: block; }
}

/* Article / page body */
.page-hero {
  padding: 64px 0 32px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-hero .crumbs a { color: var(--muted); text-decoration: none; }
.page-hero h1 {
  max-width: 22ch;
  margin-bottom: 12px;
}
.page-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
  font-size: 17.5px;
  line-height: 1.7;
}
.prose h2 {
  font-size: 28px;
  margin: 1.6em 0 0.6em;
}
.prose h3 { font-size: 21px; margin: 1.4em 0 0.5em; }
.prose p { margin: 0 0 1em; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 12px 22px;
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius-l); border: 1px solid var(--border); }
.prose figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.faq {
  padding: 56px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  color: var(--primary);
}
.faq details[open] summary::after { content: "−"; }
.faq .answer {
  margin-top: 12px;
  color: var(--muted);
  max-width: 70ch;
}

.related-posts {
  padding: 56px 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.related-card .ph {
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.related-card .body {
  padding: 18px 20px 20px;
}
.related-card h4 { font-family: var(--font-serif); font-size: 17px; margin-bottom: 6px; }
.related-card .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Hub / category intro band */
.intro-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.intro-band .lead {
  max-width: 64ch;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Generic section header */
.section-head {
  margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 6px; }
.section-head p { color: var(--muted); max-width: 64ch; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .mosaic-grid { grid-template-columns: 1fr; }
  .mosaic-fragment.feature { grid-row: auto; }
  .rail-layout { grid-template-columns: 1fr; }
  .rail {
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 12px;
  }
  .rail h4 { display: none; }
  .rail ol { display: contents; }
  .rail a { flex-direction: column; padding: 10px 8px; font-size: 12.5px; gap: 4px; text-align: center; }
  .rail a::before { min-width: 0; font-size: 11px; }
  .anatomy-grid { grid-template-columns: 1fr; }
  .format-rail { grid-template-columns: 1fr; }
  .format-rail::before { display: none; }
  .walkthrough-step { grid-template-columns: 48px 1fr; }
  .walkthrough-step .decision { grid-column: 1 / -1; }
  .platform-review .pr-grid { grid-template-columns: 1fr; }
  .verification-grid { grid-template-columns: 1fr; }
  .control-map .cm-grid { grid-template-columns: repeat(2, 1fr); }
  .colophon-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .comparison-ledger table, .comparison-ledger thead, .comparison-ledger tbody,
  .comparison-ledger tr, .comparison-ledger th, .comparison-ledger td { display: block; }
  .comparison-ledger thead { display: none; }
  .comparison-ledger tr { border-bottom: 1px solid var(--border); padding: 12px 0; }
  .comparison-ledger td { padding: 6px 0; border: 0; }
  .comparison-ledger td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
  }
  .comparison-ledger .row-head { background: transparent; padding: 8px 0; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-utility { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 96px; }
  .mosaic-hero { padding: 32px 0 16px; }
  .mosaic-hero h1 { font-size: 34px; }
  .anatomy-figure { padding: 16px; }
  .anatomy-figure .deck { grid-template-columns: repeat(7, 1fr); }
  .scoring-spread table { font-size: 14px; }
  .scoring-spread table, .scoring-spread thead, .scoring-spread tbody,
  .scoring-spread tr, .scoring-spread th, .scoring-spread td { display: block; }
  .scoring-spread thead { display: none; }
  .scoring-spread tr { border-bottom: 1px solid var(--border); padding: 12px 0; }
  .scoring-spread td { padding: 6px 0; border: 0; }
  .scoring-spread td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
  }
  .control-map .cm-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .news-list a { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .news-list .topic { text-align: left; }
  .route-card { grid-template-columns: 1fr; }
  .platform-review .pr-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .platform-review .pr-card dd { margin-bottom: 12px; }
  .colophon-meta li { grid-template-columns: 1fr; }
  .colophon-meta li span:first-child { margin-bottom: 4px; }
  .prose { padding: 36px 20px; }
  .container, .container-narrow { padding: 0 18px; }
}

@media (max-width: 380px) {
  .rail { grid-template-columns: repeat(3, 1fr); }
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print friendliness */
@media print {
  .site-header, .site-footer, .mobile-sticky-cta, .hamburger, .mobile-drawer, .rail { display: none !important; }
  .editorial-rail-section { padding: 0; }
  body { background: #fff; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}