/* =========================================================================
   sportazain.com — Rummy & Skill-Game Guide
   Factory V9 / Light Color 005 ROSE_NEWSROOM / Typography 046 MANROPE
   Selection: vertical-topic-ribbon + bento + scroll-snap-chapters
   Authoring rules: vanilla HTML/CSS/JS, no framework, no animation libs.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Factory V9 Light Color 005 — ROSE_NEWSROOM, light-dominant */
  --paper:        #FFF6F8;   /* warm rose-newsroom canvas */
  --paper-band:   #F5E9EC;   /* tonal band */
  --surface:      #FFFFFF;   /* crisp white panels */
  --surface-soft: #FBEFF2;   /* very soft rose tint for soft-modular tiles */
  --ink:          #1C1A17;   /* near-black editorial ink */
  --ink-soft:     #3D3631;   /* secondary body */
  --ink-mute:     #6E655B;   /* tertiary / metadata */
  --rule:         #E5D7DC;   /* rose-tinted dividers */
  --utility:      #275FC7;   /* restrained blue — CTAs, trust lines, verdict chips */
  --utility-deep: #1E47A0;   /* hover for utility */
  --caution:      #B72F55;   /* rose caution — editorial rules, warning callouts */
  --caution-soft: #FBE3E8;   /* rose wash for caution tiles */
  --glass:        rgba(255, 246, 248, 0.82);

  /* Factory V9 Typography 046 — MANROPE + Noto Sans Devanagari fallback */
  --font-display: "Manrope", "Noto Sans Devanagari", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Manrope", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometry */
  --rail:         88px;
  --gutter:       clamp(20px, 4vw, 56px);
  --section-pad:  clamp(80px, 12vh, 140px);
  --max:          1280px;

  /* Motion */
  --ease:         cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--utility);
  outline-offset: 3px;
  border-radius: 2px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { padding: 0; margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- 3. Utility-bar / Header -------------------------------------- */
.utility-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.utility-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 22px;
}
.brand-mark__glyph {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
}
.brand-mark__tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.main-nav { justify-self: center; }
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--utility);
  transition: right 0.25s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { right: 0; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--utility);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.header-cta:hover { background: var(--utility-deep); }
.header-cta--desktop { }

/* Hamburger */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 220;
}
.hamburger span {
  display: block;
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer close button — visible only when drawer is open */
.drawer-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  z-index: 230;
  align-items: center;
  justify-content: center;
}
.drawer-close span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--paper);
  border-radius: 1px;
}
.drawer-close span:nth-child(1) { transform: rotate(45deg); }
.drawer-close span:nth-child(2) { transform: rotate(-45deg); }
.mobile-drawer[data-open="true"] .drawer-close { display: inline-flex; }

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 380px);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid var(--rule);
  padding: 96px 28px 32px;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  z-index: 200;
  overflow-y: auto;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}
.mobile-drawer ul {
  list-style: none;
  display: grid;
  gap: 6px;
}
.mobile-drawer a {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.mobile-drawer .header-cta {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 90;
}
.drawer-scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 4. Bento chapter frame -------------------------------------- */
.snap-stack {
  scroll-snap-type: y proximity;
}
.chapter {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid var(--rule);
}
.chapter:first-of-type { border-top: 0; }
.chapter__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  min-width: 0;
}

/* The persistent left vertical topic ribbon (signature device) */
.topic-rail {
  position: fixed;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  z-index: 60;
  display: grid;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  pointer-events: none;
}
.topic-rail a {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 28px auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255, 246, 248, 0.72);
  border: 1px solid var(--rule);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.topic-rail a span:first-child {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 11px;
  color: var(--ink);
}
.topic-rail a span:last-child {
  white-space: nowrap;
}
.topic-rail a:hover,
.topic-rail a[aria-current="true"] {
  background: var(--surface);
  border-color: var(--utility);
  color: var(--utility);
}
.topic-rail a[aria-current="true"] {
  box-shadow: inset 2px 0 0 var(--utility);
}

/* Mobile chapter index strip (collapses the topic rail) */
.chapter-strip {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 65;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 10px var(--gutter);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.chapter-strip__inner {
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.chapter-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
}
.chapter-strip a[aria-current="true"] {
  border-color: var(--utility);
  color: var(--utility);
}
.chapter-strip a span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--ink-mute);
}

/* ---------- 5. Section shared eyebrow / titles -------------------------- */
.chapter__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.chapter__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--utility);
}
.chapter__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 22ch;
}
.chapter__lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 22px;
}
.chapter__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--utility);
  border-bottom: 2px solid var(--utility);
  padding-bottom: 4px;
  white-space: nowrap;
}
.chapter__cta::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform .25s var(--ease);
}
.chapter__cta:hover::after { transform: translateX(4px); }

/* ---------- 6. Split-screen editorial cover ---------------------------- */
.chapter--cover { padding: clamp(40px, 7vh, 80px) 0 clamp(60px, 10vh, 110px); border-top: 0; }
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.cover-figure {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  min-width: 0;
}
.cover-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-figure__caption {
  position: absolute;
  bottom: 12px; left: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(28, 26, 23, 0.72);
  padding: 6px 10px;
  border-radius: 999px;
}
.cover-figure__stamp {
  position: absolute;
  top: 14px; right: 14px;
  width: 84px; height: 84px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--caution);
  border: 1px solid var(--caution);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  padding: 6px;
}
.cover-figure__stamp span {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 2px;
}
.cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.cover-meta b { color: var(--ink); font-weight: 600; }
.cover-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cover-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--utility);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cover-cta-primary:hover { background: var(--utility-deep); }
.cover-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--caution);
  padding-bottom: 4px;
  white-space: nowrap;
}

/* ---------- 7. Chapter index / ribbon TOC ------------------------------- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.index-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  min-width: 0;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.index-card:hover {
  border-color: var(--utility);
  transform: translateY(-2px);
}
.index-card__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 22px;
  color: var(--caution);
  letter-spacing: -0.04em;
  align-self: start;
}
.index-card__body { display: grid; gap: 4px; min-width: 0; }
.index-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.index-card__hint {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ---------- 8. Bento rule-callout (chapter 03 rules handbook) ---------- */
.bento-rule {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.bento-rule__copy { display: grid; gap: 14px; min-width: 0; }
.bento-rule__copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 18px 0 4px;
}
.bento-rule__copy h3:first-child { margin-top: 0; }
.bento-rule__copy p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}
.bento-rule__visual {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 100px;
  min-width: 0;
}
.meld-callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px;
}
.meld-callout__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--utility);
  margin-bottom: 8px;
}
.meld-callout__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.meld-diagram {
  display: grid;
  gap: 12px;
}
.meld-row {
  display: grid;
  grid-template-columns: 60px 1fr 88px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.meld-row__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--caution);
  letter-spacing: -0.01em;
}
.meld-row__cards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.meld-row__card {
  width: 30px; height: 42px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
}
.meld-row__card.is-joker {
  background: var(--caution-soft);
  border-color: var(--caution);
  color: var(--caution);
}
.meld-row__chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  color: var(--utility);
}
.checklist {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px;
}
.checklist__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caution);
  margin-bottom: 8px;
}
.checklist h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 12px;
}
.checklist ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1px solid var(--utility);
  background: var(--utility);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg);
}

/* ---------- 9. Comparison ledger (chapter 04 pure vs impure) ----------- */
.ledger {
  display: grid;
  gap: 12px;
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  min-width: 0;
}
.ledger-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ledger-row__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0;
}
.ledger-row__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  min-width: 0;
}
.verdict-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
.verdict-chip.is-yes { background: var(--utility); color: #FFFFFF; border-color: var(--utility); }
.verdict-chip.is-mid { background: var(--caution-soft); color: var(--caution); border-color: var(--caution); }
.verdict-chip.is-no  { background: var(--surface); color: var(--ink-mute); border-color: var(--rule); }

/* ---------- 10. Format mosaic (chapter 05) ----------------------------- */
.format-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 520px;
}
.format-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  min-width: 0;
  display: flex;
}
.format-tile--wide { grid-row: span 2; }
.format-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.format-tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(28,26,23,0) 0%, rgba(28,26,23,0.72) 100%);
  color: var(--paper);
  display: grid;
  gap: 2px;
}
.format-tile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
.format-tile__hint {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 246, 248, 0.85);
}

/* ---------- 11. Photo collage with probability overlay ----------------- */
.collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 460px;
}
.collage__cell {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  min-width: 0;
}
.collage__cell--a { grid-row: span 2; }
.collage__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.collage__cell__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: rgba(255, 246, 248, 0.92);
  border-top: 1px solid var(--rule);
  color: var(--ink);
  display: grid;
  gap: 2px;
}
.collage__cell__caption b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.collage__cell__caption small {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.collage__overlay {
  position: absolute;
  inset: 12px auto 12px 12px;
  background: rgba(255, 246, 248, 0.94);
  border: 1px solid var(--utility);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 240px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink);
}
.collage__overlay b {
  display: block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--utility);
  margin-bottom: 4px;
}

/* ---------- 12. Long-read caution chapter (chapter 07 strategy) ------- */
.long-read {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.long-read__copy { display: grid; gap: 16px; min-width: 0; }
.long-read__copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 18px 0 4px;
}
.long-read__copy p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.caution-card {
  background: var(--caution-soft);
  border: 1px solid var(--caution);
  border-radius: 14px;
  padding: 18px;
  margin: 18px 0;
}
.caution-card__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caution);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.caution-card__eyebrow::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--caution);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
}
.caution-card p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--ink); }
.long-read__rail {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 100px;
  min-width: 0;
}
.path-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  min-width: 0;
}
.path-card__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 22px;
  color: var(--utility);
  letter-spacing: -0.04em;
}
.path-card__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  min-width: 0;
}
.path-card__body b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ---------- 13. Evidence desk (chapter 08 platform usability) --------- */
.evidence-desk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.evidence-cell {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  min-width: 0;
}
.evidence-cell__metric {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--utility);
  line-height: 1;
}
.evidence-cell__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin: 6px 0 4px;
}
.evidence-cell__hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.evidence-cell__mark {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--utility);
  background: var(--surface-soft);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 8px;
}

/* ---------- 14. Payment ledger (chapter 09) ---------------------------- */
.payment-ledger {
  display: grid;
  gap: 12px;
}
.payment-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto auto;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  min-width: 0;
}
.payment-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.payment-row__name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 3px;
}
.payment-row__body { font-size: 14px; color: var(--ink-soft); min-width: 0; }
.payment-row__stamp {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caution);
  border: 1px solid var(--caution);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ---------- 15. Helpline card (chapter 10 responsible-play) ----------- */
.helpline {
  background: var(--surface-soft);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.helpline__copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.helpline__copy p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.helpline__list {
  list-style: none;
  display: grid;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.helpline__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.helpline__list li::before {
  content: "•";
  color: var(--caution);
  font-weight: 700;
}
.helpline__seal {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}
.helpline__seal-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.helpline__seal-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 48px);
  color: var(--caution);
  letter-spacing: -0.02em;
  line-height: 1;
}
.helpline__seal-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 8px;
}

/* ---------- 16. Accordion (chapter 11 reader questions) --------------- */
.accordion {
  display: grid;
  gap: 8px;
}
.accordion__item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.accordion__trigger:hover { background: var(--surface-soft); }
.accordion__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--utility);
  white-space: nowrap;
}
.accordion__question { color: var(--ink); }
.accordion__icon {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--ink-mute);
  transition: transform .2s var(--ease);
}
.accordion__item[data-open="true"] .accordion__icon { transform: rotate(45deg); color: var(--utility); }
.accordion__panel {
  display: none;
  padding: 0 18px 18px 60px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.accordion__panel p { margin: 0; }
.accordion__panel cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.accordion__item[data-open="true"] .accordion__panel { display: block; }

/* ---------- 17. Colophon (chapter 12) --------------------------------- */
.colophon {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: 24px;
  background: var(--paper-band);
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.colophon h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.colophon p, .colophon li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.colophon ul { list-style: none; display: grid; gap: 4px; }
.colophon__col { display: grid; gap: 14px; min-width: 0; }
.colophon__meta {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ---------- 18. Latest-guides card grid (sub-band) -------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  min-width: 0;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover {
  border-color: var(--utility);
  transform: translateY(-2px);
}
.card__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--utility);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.card__body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---------- 19. Page band (long-tail references) ---------------------- */
.page-band { background: var(--paper-band); }

/* ---------- 20. Footer ------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 7vw, 80px) var(--gutter) 24px;
  margin-top: clamp(48px, 7vw, 80px);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 246, 248, 0.78);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.footer-tag {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 246, 248, 0.68);
  line-height: 1.6;
  margin: 0 0 14px;
}
.footer-meta {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 246, 248, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 246, 248, 0.6);
}

/* ---------- 21. Mobile sticky CTA bar (single persistent bar) ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule);
  padding: 10px var(--gutter);
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.sticky-cta__btn {
  flex: 1 1 auto;
  background: var(--utility);
  color: #FFFFFF;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 4px;
  white-space: nowrap;
}
.sticky-cta__note {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---------- 22. Article page chrome ------------------------------------ */
.page-hero {
  position: relative;
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(36px, 5vh, 60px);
  background: var(--paper-band);
  border-bottom: 1px solid var(--rule);
}
.page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.page-hero__eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--utility);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--utility);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 18ch;
}
.page-hero__lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}
.page-hero__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.page-hero__meta b { color: var(--ink); font-weight: 600; }
.page-hero__figure {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  min-width: 0;
}
.page-hero__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero__figure figcaption {
  position: absolute;
  bottom: 10px; left: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(28, 26, 23, 0.7);
  padding: 5px 10px;
  border-radius: 999px;
}

.article {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 5vh, 64px) var(--gutter);
  display: grid;
  gap: clamp(20px, 3vh, 32px);
}
.article-section {
  display: grid;
  gap: clamp(12px, 2vh, 20px);
  padding: clamp(16px, 2.5vh, 28px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 88px;
}
.article-section:first-of-type { border-top: 0; padding-top: 0; }
.article-section:last-of-type { padding-bottom: 0; }
.article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 18px 0 6px;
  max-width: 28ch;
}
.article h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  margin: 14px 0 4px;
}
.article p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 70ch;
}
.article ul, .article ol {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 70ch;
}
.article blockquote {
  margin: 12px 0;
  padding: 18px 22px;
  background: var(--surface-soft);
  border-left: 3px solid var(--caution);
  border-radius: 8px;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  max-width: 70ch;
}
.article .inline-figure {
  margin: 12px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  min-width: 0;
}
.article .inline-figure img {
  width: 100%; height: auto; display: block;
}
.article .inline-figure figcaption {
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  background: var(--surface);
  border-top: 1px solid var(--rule);
}
.article .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-width: 0;
}
.article .grid-2 > * { min-width: 0; }
.article .pull {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 22px;
}
.article .pull h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--utility);
  margin: 0 0 8px;
}
.article .pull p { font-size: 14px; line-height: 1.55; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
  margin: 12px 0;
  min-width: 0;
}
.article th, .article td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.article th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--surface);
}
.article .cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  margin: 12px 0;
  min-width: 0;
}
.article .cta-inline__note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  flex: 1 1 240px;
  min-width: 0;
}
.article .cta-inline__btn {
  background: var(--utility);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---------- 23. Skip-link --------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  z-index: 200;
}
.skip-link:focus { top: 12px; }

/* ---------- 24. Responsive --------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topic-rail { display: none; }
  .chapter-strip { display: block; }
  .cover-grid { grid-template-columns: 1fr; }
  .cover-figure { aspect-ratio: 16 / 11; order: -1; }
  .bento-rule { grid-template-columns: 1fr; }
  .bento-rule__visual { position: static; }
  .long-read { grid-template-columns: 1fr; }
  .long-read__rail { position: static; }
  .helpline { grid-template-columns: 1fr; }
  .colophon { grid-template-columns: 1fr; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__figure { aspect-ratio: 16 / 10; }
  /* Collapse primary nav to hamburger to avoid row overflow at 1024px */
  .main-nav { display: none; }
  .header-cta--desktop { display: none; }
  .hamburger { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-cta--desktop { display: none; }
  .hamburger { display: block; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .footer-grid { grid-template-columns: 1fr; }
  .format-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .format-tile--wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .format-tile { aspect-ratio: 4/3; }
  .collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .collage__cell--a { grid-row: auto; aspect-ratio: 16/10; }
  .collage__cell { aspect-ratio: 4/3; }
  .ledger-row { grid-template-columns: 1fr; }
  .verdict-chip { justify-self: start; }
  .payment-row { grid-template-columns: 1fr; }
  .payment-row__stamp { justify-self: start; }
  .article .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand-mark { font-size: 18px; gap: 8px; }
  .brand-mark__tag { display: none; }
  .chapter__title { font-size: clamp(28px, 8vw, 36px); }
  .cover-figure__stamp { width: 64px; height: 64px; font-size: 10px; }
  .cover-figure__stamp span { font-size: 16px; }
  .sticky-cta__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}