/* Dreamcatcher Rummy Editorial Authority — Lilac Research Design System
 * Visual contract: compact-feed hero, feed-led rhythm, floating-panels geometry,
 * thumbnail-stream image language, compact-left nav, split-axis-timeline signature,
 * technical-grid surfaces, newspaper-authority type, progressive-disclosure interaction.
 */

:root {
  --primary: #6657D9;
  --primary-deep: #4B3FB8;
  --accent: #9D2A6C;
  --accent-soft: #FBE3EE;
  --background: #F8F6FF;
  --background-tint: #F1EDFE;
  --surface: #FFFFFF;
  --surface-2: #ECE8FF;
  --surface-3: #F4F0FF;
  --text: #24203D;
  --text-soft: #3A3458;
  --muted: #68627E;
  --muted-2: #8A85A2;
  --border: #D8D0FA;
  --border-soft: #E7E1FB;
  --shadow-1: 0 1px 2px rgba(36,32,61,.06), 0 1px 3px rgba(36,32,61,.04);
  --shadow-2: 0 4px 12px rgba(36,32,61,.08), 0 2px 6px rgba(36,32,61,.05);
  --shadow-3: 0 12px 32px rgba(36,32,61,.10), 0 4px 12px rgba(36,32,61,.06);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --font-sans: "Manrope", "Manrope Fallback", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Spectral", "Source Serif Pro", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
img { color: transparent; }
a { color: var(--primary-deep); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ======================== Typography rhythm ======================== */
h1, h2, h3, h4 { color: var(--text); margin: 0 0 0.6em; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.18; }
h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.28; }
h4 { font-size: 18px; line-height: 1.32; }
p { margin: 0 0 1.1em; }
small { color: var(--muted); font-size: 14px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--surface-2);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.dateline { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.lede { font-size: 19px; color: var(--text-soft); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--muted); }

/* ======================== Layout primitives ======================== */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.wrap-narrow { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 var(--pad); }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: clamp(20px, 3vw, 36px); max-width: 720px; }
.section-head .meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.band-lilac { background: var(--surface-2); }
.band-white { background: var(--surface); }
.band-paper { background: var(--background); }

/* ======================== Header / nav ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(248, 246, 255, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-tag { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: -2px; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav a.cta { background: var(--text); color: #fff; }
.main-nav a.cta:hover { background: var(--primary-deep); }
/* Desktop nav only at >=1080px so 1024px viewport (a common
   laptop breakpoint) collapses to the hamburger instead of
   wrapping the primary nav to a second row. */
@media (min-width: 1080px) {
  .main-nav { display: block; }
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta-ghost { display: none; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--text); }
.header-cta-ghost:hover { background: var(--surface-2); text-decoration: none; }
.header-cta { display: none; padding: 10px 16px; border-radius: 10px; background: var(--text); color: #fff; font-weight: 700; font-size: 14px; }
.header-cta:hover { background: var(--primary-deep); text-decoration: none; }
@media (min-width: 1080px) {
  .header-cta-ghost, .header-cta { display: inline-flex; }
}

.hamburger {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  z-index: 300;
}
.hamburger:hover { background: var(--surface-2); }
.hamburger[aria-expanded="true"] { background: var(--surface-2); }
.hamburger .bar,
.hamburger .bar::before,
.hamburger .bar::after {
  content: ""; position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, top .2s ease, opacity .2s ease;
}
.hamburger .bar { top: 50%; transform: translateY(-50%); }
.hamburger .bar::before { top: -7px; }
.hamburger .bar::after { top: 7px; }
.hamburger[aria-expanded="true"] .bar { background: transparent; }
.hamburger[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1080px) { .hamburger { display: none; } }

.mobile-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100dvh;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 88px var(--pad) 24px;
  overflow-y: auto;
  z-index: 200;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
}
.mobile-drawer[data-open="true"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear 0s;
}
@media (min-width: 1080px) { .mobile-drawer { display: none; } }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer a { display: block; padding: 14px 16px; font-weight: 700; color: var(--text); border-radius: 10px; font-size: 17px; }
.mobile-drawer a:hover { background: var(--surface-2); text-decoration: none; }
.mobile-drawer .drawer-cta { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-top: 1px solid var(--border); margin-top: 12px; }
.mobile-drawer .drawer-cta .btn { width: 100%; }

body[data-drawer-open="true"] { overflow: hidden; }

/* ======================== Buttons ======================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ink { background: var(--primary); color: #fff; }
.btn-ink:hover { background: var(--primary-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #B83D72; }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-sm { padding: 8px 12px; font-size: 14px; }

/* ======================== Masthead / Hero ======================== */
.masthead { background: var(--surface); border-bottom: 1px solid var(--border); }
.masthead .wrap { padding-top: 28px; padding-bottom: 28px; }
.masthead-top { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.masthead-rule { height: 4px; background: var(--primary); border-radius: 4px; margin-bottom: 18px; }
.masthead-title { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.02em; max-width: 22ch; margin-bottom: 12px; }
.masthead-lede { font-size: 19px; color: var(--text-soft); max-width: 64ch; margin-bottom: 18px; line-height: 1.55; }
.masthead-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.masthead-meta strong { color: var(--text); }
.masthead-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-thumb-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
@media (min-width: 720px) { .hero-thumb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .hero-thumb-grid { grid-template-columns: repeat(4, 1fr); } }

.hero-thumb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.hero-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); text-decoration: none; }
.hero-thumb .pic { aspect-ratio: 16/10; background: var(--surface-2); position: relative; overflow: hidden; }
.hero-thumb .pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hero-thumb .label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero-thumb h2 { font-size: 17px; line-height: 1.32; margin: 0; color: var(--text); }
.hero-thumb p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ======================== Editorial index rail ======================== */
.index-rail { background: var(--surface-2); border-block: 1px solid var(--border); }
.index-rail .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.index-rail .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.index-rail .pill:hover { background: var(--background); text-decoration: none; border-color: var(--primary); }
.index-rail .pill .num { color: var(--accent); font-weight: 800; }
.index-rail .rail-label { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ======================== Floating-panels chapters ======================== */
.chapter { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 980px) { .chapter { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; } }
.chapter > * { min-width: 0; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-1);
}
.panel h3 { margin-top: 0; }
.panel .panel-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.panel .panel-meta .chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); letter-spacing: 0.04em; }

.callout {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.callout h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.callout p { margin: 0; color: var(--text-soft); }

.diagram {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.diagram .seq-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.diagram .seq-row .card-tile {
  width: 56px; height: 76px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  color: var(--text);
  box-shadow: var(--shadow-1);
}
.diagram .seq-row .card-tile.joker { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.diagram .seq-row .card-tile.suit-h { color: #B83D72; }
.diagram .seq-row .card-tile.suit-c { color: #2A7F5F; }
.diagram .seq-row .card-tile.suit-d { color: #2A6FB5; }
.diagram .seq-row .card-tile.suit-s { color: var(--text); }
.diagram .seq-row .card-tile.empty { background: transparent; border: 1px dashed var(--border-soft); }
.diagram .seq-row .seq-arrow { color: var(--muted); font-weight: 700; padding: 0 4px; }
.diagram .seq-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ======================== Split-axis-timeline signature ======================== */
.split-axis { background: var(--surface); }
.split-axis-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 880px) { .split-axis-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.axis-rail { background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.axis-rail .axis-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}
.axis-rail .axis-tag.pure { color: #1F6E4E; border-color: rgba(31,110,78,0.3); }
.axis-rail .axis-tag.impure { color: var(--accent); border-color: rgba(217,79,138,0.3); }
.axis-rail ol.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: stepc; }
.axis-rail ol.steps li { counter-increment: stepc; position: relative; padding: 12px 14px 12px 50px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; font-size: 15px; }
.axis-rail ol.steps li::before {
  content: counter(stepc); position: absolute; left: 12px; top: 12px;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  background: var(--text); color: #fff; border-radius: 50%; font-weight: 800; font-size: 13px;
}
.axis-rail ol.steps li code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.verdict-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.verdict-chip.muted { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.verdict-chip.ok { background: #E0F1E7; color: #1F6E4E; }

/* ======================== Format gallery ======================== */
.format-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .format-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .format-grid { grid-template-columns: repeat(3, 1fr); } }
.format-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, box-shadow .15s ease; }
.format-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.format-card .pic { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-bottom: 6px; background: var(--surface-2); }
.format-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.format-card h3 { margin: 0; font-size: 19px; }
.format-card p { color: var(--text-soft); font-size: 15px; line-height: 1.55; margin: 0; }
.format-card .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 700; }
.format-card .meta span { background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }

/* ======================== Thumbnail stream ======================== */
.thumb-stream { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 880px) { .thumb-stream { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; } }
.thumb-stream-main { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .thumb-stream-main { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .thumb-stream-main { grid-template-columns: 1fr 1fr; } }
.thumb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.thumb-card .pic { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.thumb-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.thumb-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.thumb-card h3 { margin: 0; font-size: 16px; line-height: 1.32; }
.thumb-card .meta { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.thumb-card .desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

.side-rail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.side-rail h3 { margin: 0 0 8px; font-size: 15px; }
.side-rail .meter { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.side-rail .meter-row { display: flex; flex-direction: column; gap: 6px; }
.side-rail .meter-row .top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-soft); font-weight: 700; }
.side-rail .meter-row .bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.side-rail .meter-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%); border-radius: 999px; }

/* ======================== Technical-grid tables ======================== */
.tech-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.tech-table th, .tech-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 14px; vertical-align: top; }
.tech-table th { background: var(--surface-2); font-weight: 800; color: var(--text); font-size: 13px; letter-spacing: 0.02em; }
.tech-table tr:last-child td { border-bottom: 0; }
.tech-table td:first-child { font-weight: 700; }
.tech-table .chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; }
.tech-table .chip-ok { background: #E0F1E7; color: #1F6E4E; }
.tech-table .chip-warn { background: #FFF1E0; color: #8C5A1A; }
.tech-table .chip-no { background: var(--accent-soft); color: var(--accent); }
.tech-table .chip-info { background: var(--surface-2); color: var(--text); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cautions { background: var(--accent-soft); border: 1px solid rgba(217,79,138,0.25); border-radius: var(--r-md); padding: 18px 20px; }
.cautions h3 { color: var(--accent); margin: 0 0 6px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.cautions ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: 14px; }
.cautions li { margin-bottom: 4px; }

/* Ledger rows (KYC) */
.ledger { display: grid; gap: 10px; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.ledger-row .lbl { font-weight: 800; color: var(--text); font-size: 14px; }
.ledger-row .val { color: var(--text-soft); font-size: 14px; }
.ledger-row .ref { color: var(--muted); font-size: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
@media (max-width: 640px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger-row .lbl { grid-column: 1 / -1; }
}

/* ======================== Review shelf ======================== */
.review-shelf { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 880px) { .review-shelf { grid-template-columns: repeat(2, 1fr); } }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.review-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.review-card h3 { margin: 0; font-size: 19px; }
.review-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.review-card .meta span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-soft); font-weight: 700; }
.review-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-soft); font-size: 14px; }
.review-card li { margin-bottom: 4px; }

/* ======================== Helpline card ======================== */
.helpline { background: linear-gradient(135deg, var(--surface) 0%, var(--surface-3) 100%); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .helpline { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.helpline h3 { margin: 0 0 8px; }
.helpline .nums { display: flex; flex-direction: column; gap: 10px; }
.helpline .nums a { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 0.02em; }
.helpline .nums a:hover { color: var(--primary-deep); text-decoration: none; }
.helpline .nums small { font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-top: 2px; }

/* ======================== Newsroom ticker ======================== */
.news-ticker { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .news-ticker { grid-template-columns: repeat(3, 1fr); } }
.ticker-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ticker-card time { font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ticker-card h3 { margin: 0; font-size: 16px; line-height: 1.32; }
.ticker-card p { margin: 0; font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ======================== FAQ (technical-grid) ======================== */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 22px; }
.faq-item h3 { margin: 0 0 6px; font-size: 17px; }
.faq-item p { margin: 0 0 8px; color: var(--text-soft); font-size: 15px; }
.faq-item .source { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.faq-item .source a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ======================== Colophon ======================== */
.colophon { background: var(--surface-2); border-top: 1px solid var(--border); }
.colophon .wrap { padding-top: 36px; padding-bottom: 36px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .colophon .wrap { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.colophon h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.colophon ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.colophon a { color: var(--text-soft); font-size: 14px; font-weight: 600; }
.colophon p { color: var(--text-soft); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.colophon .footer-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.colophon .footer-meta .age { font-weight: 800; color: var(--text); letter-spacing: 0.06em; }
.colophon .footer-meta .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }

/* ======================== Sticky mobile CTA ======================== */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 220;
  background: rgba(248,246,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
}
.mobile-sticky-cta .wrap { padding: 0; display: flex; gap: 8px; }
.mobile-sticky-cta .btn { flex: 1 1 auto; padding: 14px 18px; font-size: 16px; }
body.has-sticky-cta main, body.has-sticky-cta .site-header + * { padding-bottom: 80px; }
/* Mobile sticky affiliate CTA — visible on all viewports below 1080px
   whenever the page opted in via $sticky_cta, AND as a default mobile
   CTA on every page below 1080px via the standard footer include. */
.mobile-sticky-cta { display: block; }
@media (min-width: 1080px) { .mobile-sticky-cta { display: none !important; } }

/* ======================== Reveal-on-scroll ======================== */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ======================== Print ======================== */
@media print {
  .site-header, .mobile-sticky-cta, .hamburger { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ======================== Responsive guards ======================== */
@media (max-width: 430px) {
  body { font-size: 17px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .panel, .callout, .diagram { padding: 18px; }
  .ledger-row { padding: 12px 14px; }
  /* Narrow-viewport button guard: keep long button labels from
     overflowing their flex container when white-space:nowrap collides
     with a 320-347px wrap. */
  .btn { max-width: 100%; box-sizing: border-box; }
  .btn-lg { white-space: normal; line-height: 1.25; padding: 12px 16px; font-size: 15px; }
  .masthead-cta { width: 100%; }
  .masthead-cta .btn { flex: 1 1 100%; }
}
/* === CLS fix: Manrope metric fallback (matches web font vertical metrics) === */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica"), local("system-ui");
  size-adjust: 95%;
  ascent-override: 99%;
  descent-override: 27%;
  line-gap-override: 0%;
}
