/* luckyproin.com — Lilac Research editorial rummy guide
   Variables, layout primitives, bento, sidebar-led hero, chapter rules, photo essay band,
   methodology ledger, digest rail, verification stack, editorial colophon footer.
   Mobile-first with deliberate per-section collapse. */

:root {
  --primary: #6657D9;
  --primary-deep: #4A3FB5;
  --primary-soft: #8A7DEF;
  --accent: #C03A75;
  --accent-deep: #9C2A5C;
  --background: #F8F6FF;
  --background-warm: #F3EEFF;
  --surface: #FFFFFF;
  --surface-2: #ECE8FF;
  --surface-3: #F0EBFB;
  --ink: #24203D;
  --ink-soft: #3A3458;
  --text: #24203D;
  --muted: #68627E;
  --muted-2: #5C5673;
  --border: #D8D0FA;
  --border-soft: #E8E2FB;
  --border-strong: #B7AAF2;
  --rule: rgba(36, 32, 61, 0.16);
  --shadow-card: 0 1px 0 rgba(36, 32, 61, 0.04), 0 12px 32px -20px rgba(102, 87, 217, 0.22);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 1240px;
  --max-prose: 70ch;
  --font-body: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-deep); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
main { scroll-snap-type: y proximity; scroll-padding-top: 88px; }
section[id] { scroll-margin-top: 88px; }

/* =======================================================
   Header / navigation — compact-left
   ======================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(248, 246, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container-wide {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.brand-mark .brand-name { color: var(--ink); }
.brand-mark .brand-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 2px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.primary-nav {
  display: flex;
  gap: 0;
  margin-left: auto;
  align-items: center;
  min-width: 0;
}
.primary-nav > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav > ul > li { margin: 0; padding: 0; }
.primary-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--primary-deep); border-bottom-color: var(--primary); text-decoration: none; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.hamburger .bar { width: 20px; height: 2px; background: currentColor; display: block; position: relative; }
.hamburger .bar::before,
.hamburger .bar::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor;
}
.hamburger .bar::before { top: -7px; }
.hamburger .bar::after { top: 7px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 0;
  height: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 0;
  transform: translateX(0);
  transition: width 220ms ease-out, padding 220ms ease-out, transform 220ms ease-out;
  z-index: 220;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] {
  width: min(86vw, 360px);
  height: 100dvh;
  padding: 88px 24px 32px;
  transform: translateX(0);
  overflow-y: auto;
  visibility: visible;
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer li { border-bottom: 1px solid var(--border-soft); }
.mobile-drawer a {
  display: block; padding: 14px 4px; color: var(--ink); font-weight: 600; font-size: 16px;
}
.drawer-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(36, 32, 61, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
  z-index: 210;
  width: 0; height: 0; visibility: hidden;
}
.drawer-overlay[data-open="true"] { opacity: 1; pointer-events: auto; width: 100%; height: 100%; visibility: visible; }

/* =======================================================
   Buttons
   ======================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 120ms ease-out, box-shadow 160ms ease-out, background 160ms ease-out, color 160ms ease-out;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(102, 87, 217, 0.6);
}
.btn-primary:hover { background: var(--primary-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--primary-deep);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* =======================================================
   Hero — sidebar-led
   ======================================================= */
.hero-shell {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 56px;
  align-items: start;
}
.hero-rail {
  position: sticky;
  top: 96px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-rail .label { color: var(--muted-2); }
.hero-rail ol { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: chap; }
.hero-rail ol li {
  counter-increment: chap;
  border-top: 1px solid var(--border-soft);
  padding: 10px 0;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.hero-rail ol li::before {
  content: "Ch. " counter(chap, decimal-leading-zero);
  color: var(--primary);
  font-weight: 600;
  min-width: 56px;
}
.hero-rail ol li a { color: var(--ink-soft); text-decoration: none; }
.hero-rail ol li a:hover { color: var(--primary-deep); }

.hero-main .brand-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-deep);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.hero-main h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 18px 0 14px;
}
.hero-main .lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 26px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-figure {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  position: relative;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-figure figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px; color: var(--ink-soft);
}

/* =======================================================
   Section rhythm — chapter rules, soft-modular
   ======================================================= */
.chapter {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-soft);
}
.chapter:last-of-type { border-bottom: 0; }
.chapter-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.chapter-rule::before, .chapter-rule::after {
  content: ""; height: 1px; background: var(--border-strong); flex: 1; max-width: 80px;
}
.chapter-rule .num { color: var(--primary); font-weight: 600; }
.chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
}
.chapter .deck {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 60ch;
  margin: 0 0 28px;
}

/* =======================================================
   Topic matrix — bento
   ======================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento .tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento .tile.feature { grid-column: span 7; background: var(--surface-2); border-color: var(--border-strong); }
.bento .tile.wide { grid-column: span 5; }
.bento .tile.third { grid-column: span 4; }
.bento .tile.half { grid-column: span 6; }
.bento .tile.quarter { grid-column: span 3; }
.bento .tile .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.bento .tile h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
  color: var(--ink);
}
.bento .tile p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; margin: 0; }
.bento .tile a.more {
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =======================================================
   Photo essay band — full-bleed
   ======================================================= */
.photo-essay {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.photo-essay figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.photo-essay figure.image-large { grid-column: span 6; }
.photo-essay figure.image-half { grid-column: span 3; }
.photo-essay figure img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.photo-essay figure.image-large img { aspect-ratio: 16 / 10; }
.photo-essay figcaption {
  padding: 14px 16px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.photo-essay figcaption strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 2px; }

/* =======================================================
   Methodology ledger / verification stack / digest rail
   ======================================================= */
.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.ledger th, .ledger td {
  text-align: left;
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.ledger thead th {
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger td .tick { color: var(--primary); font-weight: 700; }
.ledger td .cross { color: var(--accent); font-weight: 700; }

.verification-stack { display: grid; gap: 14px; margin-top: 8px; }
.verification-stack .step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.verification-stack .step .num {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--primary);
  font-weight: 600;
  border-right: 1px solid var(--border);
  padding-right: 12px;
  line-height: 1;
}
.verification-stack .step h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
}
.verification-stack .step p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.digest-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border-left: 2px solid var(--border-strong);
  padding-left: 18px;
}
.digest-rail .entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.digest-rail .entry:last-child { border-bottom: 0; }
.digest-rail .date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--primary);
  padding-top: 2px;
}
.digest-rail h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
}
.digest-rail p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* =======================================================
   Sidebar-led primary feature
   ======================================================= */
.feature-block {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 40px;
  align-items: start;
}
.feature-block .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-block .meta .row { border-top: 1px solid var(--border-soft); padding-top: 14px; }
.feature-block .meta .row strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: 0; text-transform: none; }
.feature-block .meta .row span { color: var(--ink-soft); font-size: 14px; }
.feature-block .body {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}
.feature-block .body .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 8px;
}
.feature-block .body h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.feature-block .body p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; margin: 0 0 14px; overflow-wrap: break-word; }
.feature-block .body .lead-img {
  margin: 0 0 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
}
.feature-block .body .lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =======================================================
   Article / page prose
   ======================================================= */
.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 28px);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
  font-style: normal;
  overflow-wrap: break-word;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.prose figure { margin: 22px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.prose figure img { width: 100%; height: auto; display: block; aspect-ratio: 16/10; object-fit: cover; }
.prose figure figcaption {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 14px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}

/* FAQ */
.faq-grid { display: grid; gap: 14px; margin-top: 14px; }
.faq-grid details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.faq-grid summary {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-grid summary::after { content: "+"; color: var(--primary); font-size: 22px; font-weight: 400; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { color: var(--ink-soft); margin: 10px 0 0; }

/* CTA strip */
.cta-strip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
}
.cta-strip h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.cta-strip p { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 60ch; }

/* =======================================================
   Footer — editorial colophon
   ======================================================= */
.colophon {
  background: var(--ink);
  color: #D8D2F4;
  padding: 64px 0 32px;
  margin-top: 48px;
}
.colophon .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.colophon h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.colophon p { font-size: 14px; line-height: 1.6; color: #C9C2EE; }
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { margin: 6px 0; }
.colophon a { color: #D8D2F4; font-size: 14px; }
.colophon a:hover { color: #fff; }
.colophon .masthead {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A39DC9;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 18px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.colophon .legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 12px;
  color: #9690B7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* =======================================================
   Page chrome
   ======================================================= */
.page-hero {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 8px 0 12px;
  max-width: 18ch;
}
.page-hero .deck {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 60ch;
}
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--primary-deep); }

.page-section { padding: 56px 0; border-bottom: 1px solid var(--border-soft); }
.page-section:last-of-type { border-bottom: 0; }

.inline-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
  align-items: start;
}
.inline-image-row img {
  width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.inline-image-row figcaption {
  font-size: 13px; color: var(--muted); padding: 6px 0 0;
}

/* =======================================================
   Trust strip
   ======================================================= */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
  margin: 0;
}
.trust-strip .item {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--border-strong);
}
.trust-strip .item strong { color: var(--ink); font-family: var(--font-display); font-size: 16px; }
.trust-strip .item span { color: var(--muted); font-size: 14px; }

/* =======================================================
   Compliance ribbon
   ======================================================= */

/* Reserve header slot height so chrome.js header injection does not shift the page (CLS=0). */
#site-header-slot { min-height: var(--header-h); }
.compliance {
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.compliance strong { color: var(--ink); font-weight: 600; }

/* =======================================================
   Mobile affiliate CTA (mobile_sticky_contextual)
   Sticky bottom bar rendered on viewports ≤ 430px only.
   First-party URL: /Login/playnow (nginx 302s to partner).
   rel="sponsored nofollow noopener noreferrer" per
   .control-room/design-taste-decision.md.
   ======================================================= */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 430px) {
  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 230;
    display: block;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(36, 32, 61, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -10px rgba(36, 32, 61, 0.55);
    backdrop-filter: saturate(140%) blur(6px);
  }
  .mobile-cta-bar .cta-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 14px 18px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 12px 28px -16px rgba(102, 87, 217, 0.6);
  }
  .mobile-cta-bar .cta-link:hover { background: var(--primary-deep); }
  .mobile-cta-bar .cta-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  /* Keep body content from being hidden under the sticky bar */
  body { padding-bottom: 76px; }
}

/* =======================================================
   Responsive — explicit per-section collapse
   ======================================================= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-rail { position: static; }
  .feature-block { grid-template-columns: 1fr; gap: 18px; }
  .feature-block .body { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 18px; }
  .bento .tile.feature,
  .bento .tile.wide,
  .bento .tile.third,
  .bento .tile.half,
  .bento .tile.quarter { grid-column: span 12; }
  .photo-essay figure.image-large,
  .photo-essay figure.image-half { grid-column: span 12; }
  .colophon .grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .verification-stack .step { grid-template-columns: 48px 1fr; }
}
@media (max-width: 1280px) {
  .primary-nav { display: none; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { display: none; }
  .header-cta .btn-secondary { display: none; }
  .hamburger { display: inline-flex; }
  .brand-mark .brand-tag { display: none; }
  .chapter { padding: 48px 0; }
  .hero-shell { padding: 36px 0 48px; }
  .inline-image-row { grid-template-columns: 1fr; }
  .ledger { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ledger thead { display: none; }
  .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
  .ledger td { border-bottom: 0; padding: 4px 12px; }
  .ledger td:first-child { font-weight: 700; color: var(--ink); }
  .cta-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 18px; }
  .colophon .grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .digest-rail .entry { grid-template-columns: 84px 1fr; gap: 12px; }
  .photo-essay { gap: 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .brand-mark .brand-tag { display: none; }
  .verification-stack .step { grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 16px; }
  .verification-stack .step .num { font-size: 18px; }
}
@media (max-width: 360px) {
  body { font-size: 17px; }
  .prose { font-size: 17px; }
  .page-hero h1 { font-size: 28px; }
  .hero-main h1 { font-size: 30px; }
  .ledger { font-size: 13px; }
}

/* =======================================================
   Helpers
   ======================================================= */
.responsive-img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.text-muted { color: var(--muted); }
.text-soft { color: var(--ink-soft); }
.lede-paragraph { font-size: 19px; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.no-wrap { white-space: nowrap; }
.spacer-l { height: 32px; }
.spacer-xl { height: 56px; }

/* Focus styles */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* Print friendly */
@media print {
  .site-header, .colophon, .mobile-drawer, .drawer-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
