/* Self-hosted Roboto (latin + latin-ext) — variable file, weights 400-700 */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBHMdazTgWw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TARUHANIN · RUMMY & SKILL-GAME EDITORIAL PUBLICATION
   Factory V9 FSL11 — Light Color 007 (slate utility) + Typography 010 (Roboto)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Slate utility palette — light-dominant */
  --paper: #F6F8FC;
  --paper-deep: #EEF2F8;
  --surface: #FFFFFF;
  --surface-2: #F0F4FA;
  --ink: #1B2638;
  --ink-soft: #3D4B62;
  /* Darkened for WCAG AA on paper/surface (≥4.5:1) */
  --ink-mute: #4E5A6E;
  --rule: #D8E0EC;
  --rule-strong: #B6C2D6;
  --primary: #2457A7;
  --primary-deep: #1B4380;
  --primary-soft: #4A78C2;
  --accent: #A044C5;
  --accent-soft: #C580D9;
  --highlight: #F2C94C;
  --success: #2E7D5B;
  --danger: #B23A48;
  --shadow-sm: 0 1px 2px rgba(27, 38, 56, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 38, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 38, 56, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --gutter: 24px;
  --max-w: 1240px;

  /* Typography */
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Roboto', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  left: 0;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.section {
  padding: 56px 0;
}
.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section.deep {
  background: var(--paper-deep);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  /* Above drawer + backdrop so the hamburger stays the reachable open/close control */
  z-index: 120;
  /* Solid surface — avoid backdrop-filter (mobile style/layout thrash + FID) */
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px var(--gutter);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark:hover { text-decoration: none; }
.brand-mark .monogram {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-mark .name {
  display: block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark .tag {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.primary-nav a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.primary-nav a.cta {
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.primary-nav a.cta:hover {
  background: var(--primary);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 130;
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 86vw);
  max-width: 86vw;
  height: 100dvh;
  background: #fff;
  z-index: 110;
  /* Clear sticky header so close control + first links stay reachable */
  padding: 96px 24px 28px;
  transform: translateX(100%);
  transition: transform 0.22s ease, clip-path 0s linear 0.22s, visibility 0s linear 0.22s;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: -12px 0 32px rgba(27, 38, 56, 0.12);
  border-left: 1px solid var(--rule);
  visibility: hidden;
  pointer-events: none;
  contain: layout paint;
  clip-path: inset(0 0 0 100%);
}
.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.22s ease, clip-path 0s linear 0s, visibility 0s linear 0s;
  clip-path: inset(0 0 0 0);
}
.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.mobile-drawer li a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
}
.mobile-drawer li a:hover { background: var(--surface-2); }
.drawer-close {
  position: absolute;
  /* Sit below sticky header band (header z-index is higher than drawer) */
  top: 86px;
  right: 14px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.drawer-cta {
  display: block;
  margin-top: 18px;
  text-align: center;
  background: var(--ink);
  color: #fff !important;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.drawer-cta:hover { background: var(--primary) !important; text-decoration: none; }
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 38, 56, 0.36);
  /* Below drawer + header; dims page only */
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn.ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}
.btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.accent:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  text-decoration: none;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
  background: #ffffff;
  border-top: 1px solid var(--rule);
}
.mobile-cta .btn {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* ---------- Hero (image-first cover) ---------- */
.cover {
  background: var(--paper);
  padding: 0 0 40px;
  border-bottom: 1px solid var(--rule);
}
.cover .cover-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  background: var(--ink);
  overflow: hidden;
}
.cover .cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover .cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 38, 56, 0.45) 0%, rgba(27, 38, 56, 0.05) 38%, rgba(27, 38, 56, 0.85) 100%);
  pointer-events: none;
}
.cover .standfirst {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px var(--gutter);
  color: #fff;
  z-index: 2;
}
.cover .standfirst .eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #fff;
}
.cover .standfirst h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 12px;
  max-width: 800px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cover .standfirst p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px;
  max-width: 640px;
}
.cover .standfirst .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}
.cover .standfirst .meta strong { color: #fff; font-weight: 600; }
.cover .standfirst .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cover .standfirst .btn {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.cover .standfirst .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Photo-notes annotation overlay (signature device) */
.cover .photo-notes {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  max-width: 220px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
}
.cover .photo-notes .num {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
  margin-right: 6px;
}
.cover .photo-notes strong { font-weight: 600; }

/* ---------- Docked reading rail ---------- */
.reading-rail {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
}
.reading-rail .wrap {
  max-width: 100%;
  width: 100%;
  padding: 0;
}
.reading-rail .rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 18px var(--gutter) 16px;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  contain: layout paint;
}
.reading-rail .rail-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reading-rail .rail-item .num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.reading-rail .rail-item span { font-weight: 500; }

/* ---------- Pillar rail ---------- */
.pillar-rail {
  padding: 56px 0;
}
.pillar-rail h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pillar-rail .lead {
  text-align: center;
  color: var(--ink-mute);
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 15px;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.pillar-tile {
  display: block;
  padding: 20px 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.pillar-tile:hover {
  border-color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pillar-tile .ico {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  background: var(--surface-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.pillar-tile .title {
  font-weight: 600;
  font-size: 14px;
  display: block;
}
.pillar-tile .desc {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ---------- Chapter blocks ---------- */
.chapter {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.chapter .chap-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  /* Solid ink-on-tint chip keeps ≥4.5:1 on paper/surface */
  color: #6B2488;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 5px 12px;
  background: #F3E6F8;
  border: 1px solid #D7B3E6;
  border-radius: 4px;
}
.chapter .grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}
.chapter .grid > * { min-width: 0; }
.chapter.reverse .grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.chapter .text-col h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.chapter .text-col p {
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
}
.chapter .text-col .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 22px;
}
.chapter .photo-col {
  position: relative;
}
.chapter .photo-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
}
.chapter .photo-col.portrait img { aspect-ratio: 3 / 4; }
.chapter .photo-col.wide img { aspect-ratio: 16 / 9; }
.chapter .photo-col.square img { aspect-ratio: 1 / 1; }

/* Probability side-rail (signature device inside chapter) */
.probability-rail {
  position: absolute;
  top: 18px;
  right: -10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 200px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.probability-rail .prob-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.probability-rail .prob-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 13px;
}
.probability-rail .prob-row:last-child { border-bottom: 0; }
.probability-rail .prob-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}
.probability-rail .prob-row span { color: var(--ink-mute); }

/* Floating panel */
.floating-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  max-width: 100%;
}

/* Ledger (high-contrast ruled tables) */
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ledger thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ledger thead th:first-child { border-top-left-radius: var(--radius-md); }
.ledger thead th:last-child { border-top-right-radius: var(--radius-md); }
.ledger tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody tr:hover { background: var(--surface-2); }
.ledger .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.verdict-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.verdict-chip.ok { background: #E5F3EC; color: #1F5C42; border: 1px solid #A9D4BF; }
.verdict-chip.warn { background: #F8E8EA; color: #8E2A36; border: 1px solid #E0A8AF; }
.verdict-chip.note { background: #E7EEF8; color: #1A457F; border: 1px solid #A9C0E3; }

/* Hover-reveal evidence row */
.evidence-row { cursor: pointer; }
.evidence-row .evidence {
  display: none;
  background: var(--surface-2);
  font-size: 13px;
  padding: 10px 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
.evidence-row.open .evidence { display: table-cell; }
.evidence-row:hover .evidence,
.evidence-row.open .evidence { display: table-cell; }

/* Card grid (3-up) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 22px;
}
.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* Format comparison desk */
.format-desk {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.format-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: left;
}
.format-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.format-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.format-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.5;
}
.format-card .stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}
.format-card .stat strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Hand reading portfolio (portrait close-ups) */
.hand-portfolio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hand-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hand-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hand-card .cap {
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
}
.hand-card .cap strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--ink);
}
.hand-card .cap span {
  font-size: 12px;
  color: var(--ink-mute);
}

/* Helpline card */
.helpline {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.helpline .num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.helpline h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.helpline p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.helpline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.helpline li {
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
}

/* Newsroom briefing rail */
.briefing-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.briefing-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.briefing-card .date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.briefing-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.35;
}
.briefing-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  flex: 1;
}
.briefing-card .more {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* FAQ column */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color 0.18s ease;
}
.faq details[open] { border-color: var(--ink); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-mute);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details .body {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.faq details .body p { margin: 0 0 10px; }
.faq details .body p:last-child { margin-bottom: 0; }
.faq details .body .cite {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
}

/* Editorial colophon */
.colophon {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px;
  font-size: 13px;
  color: var(--ink-soft);
}
.colophon h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.colophon p { margin: 0 0 10px; line-height: 1.6; }
.colophon .sig {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-mute);
}
.colophon .sig strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 56px 0 32px;
  margin-top: 56px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}
.site-footer a:hover { color: #fff; }
.site-footer .brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.site-footer .brand .name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.site-footer .brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}
.site-footer .legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.site-footer .legal a { color: rgba(255, 255, 255, 0.88); }

/* ---------- Article page ---------- */
.article-hero {
  background: var(--paper);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.article-hero .eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(36, 87, 167, 0.08);
  color: var(--primary);
  border: 1px solid rgba(36, 87, 167, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.015em;
  max-width: 800px;
  margin-bottom: 14px;
}
.article-hero .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.article-hero .meta {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.article-hero .meta strong { color: var(--ink); font-weight: 600; }

.banner-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

.article-body {
  padding: 48px 0 64px;
  max-width: 760px;
  margin: 0 auto;
}
.article-body h2 {
  font-size: 24px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.article-body li {
  margin-bottom: 6px;
}
.article-body figure {
  margin: 32px 0;
}
.article-body figure img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.article-body figure figcaption {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 8px;
  text-align: center;
}
.article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-soft);
  font-style: italic;
}
.article-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: normal;
}

.related-posts {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}
.related-posts h2 {
  font-size: 22px;
  margin-bottom: 18px;
}
.related-posts .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  color: var(--ink);
}
.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.related-card .body {
  padding: 14px 16px;
}
.related-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.4;
}
.related-card span {
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---------- Main-thread containment (deep below-fold only) ---------- */
/* Do NOT apply content-visibility / contain-intrinsic-size to .chapter:
   the intrinsic size cap collapses tall mobile sections and makes content
   exceed the section box (BROWSER-MOBILE-SECTION-FLOW-001). Footer/related
   only — never near-fold cover/rail (CLS risk). */
.site-footer,
.related-posts {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .format-desk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .briefing-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  .chapter .grid,
  .chapter.reverse .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .probability-rail { position: static; width: auto; margin-top: 16px; }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-desk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid,
  .card-grid.two,
  .hand-portfolio,
  .briefing-rail,
  .related-posts .related-grid {
    grid-template-columns: 1fr;
  }
  .helpline ul { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  .cover .cover-photo { aspect-ratio: 4 / 5; max-height: none; }
  .cover .photo-notes { display: none; }
  .cover .standfirst h1 { font-size: 26px; }
  .article-hero h1 { font-size: 26px; }
}
@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .section { padding: 40px 0; }
  .chapter { padding: 48px 0; }
  .cover .standfirst { padding: 20px 16px; }
  .cover .standfirst h1 { font-size: 22px; }
  .floating-panel { padding: 20px; }
  .pillar-tile { padding: 16px 12px; }
  .pillar-tile .title { font-size: 13px; }
  .pillar-tile .desc { font-size: 11px; }
  .ledger thead th, .ledger tbody td { padding: 10px 12px; font-size: 13px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.flex-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.divider {
  height: 1px;
  background: var(--rule);
  margin: 32px 0;
}
.kicker {
  display: inline-block;
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

/* ---------- Editorial page (about / contact / privacy / terms) ---------- */
.editorial-page {
  padding: 56px 0;
  max-width: 800px;
  margin: 0 auto;
}
.editorial-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.editorial-page .lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.6;
}
.editorial-page h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.editorial-page p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.editorial-page ul {
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0 0 18px;
}
.editorial-page li { margin-bottom: 6px; }
