/* =========================================================================
   betvictor — Rummy & Skill-Game Guide
   Slate Utility light theme, humanist-guide typography
   Module: 33_LIGHT_COLOR_SYSTEM_24 / LIGHT_COLOR_007_SLATE_UTILITY
   Module: 08_TYPOGRAPHY_SYSTEM_50 / TYPOGRAPHY_SYSTEM_007 (Nunito Sans + Noto Sans Devanagari)
   Layout: 04_LAYOUT_VARIANTS_150 / LAYOUT_CSS_PROMPT_060 (Hindi News Magazine)
   ========================================================================= */

/* ---------- CSS variables (Light Color 007: Slate Utility) ---------- */
:root {
  --primary: #2457A7;
  --primary-700: #1c4886;
  --primary-100: #dbe6f7;
  --accent: #A044C5;
  --accent-100: #ecd9f7;
  --background: #F6F8FC;
  --surface: #FFFFFF;
  --surface-2: #E9EEF7;
  --surface-3: #DCE4F1;
  --text: #1B2638;
  --text-soft: #2f3e57;
  --muted: #5A6B80;
  --border: #CDD8E8;
  --border-strong: #98aac6;
  --success: #1f8a4c;
  --warning: #b8791c;
  --danger: #b6372b;
  --max-w: 1240px;
  --max-w-narrow: 880px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(27,38,56,.05);
  --shadow: 0 6px 18px rgba(27,38,56,.08);
  --shadow-lg: 0 14px 32px rgba(27,38,56,.12);
  --font-sans: 'Nunito Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
img { border: 0; }
a {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 2px;
}
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 .5em 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
p { margin: 0 0 1em 0; }
.lead {
  font-size: 20px;
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 400;
}
.muted { color: var(--muted); }
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 10px;
  background: var(--primary-100);
  border-radius: 999px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.band {
  padding: 64px 0;
}
.band-tight { padding: 36px 0; }
.band-loose { padding: 88px 0; }
.surface {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.surface-glass {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .surface-glass { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-asym-4x2 {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-auto-rows: minmax(220px, auto);
}
.grid-asym-4x2 > .topic-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.grid-asym-4x2 > .topic-tile:nth-child(6) { grid-column: span 2; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-asym-4x2 { grid-template-columns: 1fr; }
  .grid-asym-4x2 > .topic-tile { grid-column: auto !important; grid-row: auto !important; }
}

/* ---------- Header / sticky nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  background: rgba(246,248,252,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--background); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
}
.brand-mark:hover { text-decoration: none; }
.brand-mark .logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
}
.brand-mark .logo span { transform: translateY(-1px); }
.brand-mark .brand-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > li { list-style: none; }
.main-nav > li > a, .main-nav > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.main-nav > li > a:hover, .main-nav > li > button:hover { background: var(--surface-2); text-decoration: none; }
.main-nav .has-mega { position: relative; }
.main-nav .has-mega::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -2px;
  display: inline-block;
  opacity: .55;
}
.header-right { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.header-cta-ghost {
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  text-decoration: none;
}
.header-cta-ghost:hover { background: var(--surface-2); text-decoration: none; }
.header-cta {
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  border-radius: var(--radius-sm);
  background: var(--primary);
  border: 1px solid var(--primary-700);
  text-decoration: none;
}
.header-cta:hover { background: var(--primary-700); text-decoration: none; }
.hamburger {
  display: none;
  position: relative;
  z-index: 300;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-left: 8px;
}
.hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s 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) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .main-nav, .header-right { display: none; }
  .hamburger { display: block; }
}

/* Mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  width: min(640px, 90vw);
  display: none;
  z-index: 100;
}
.mega-menu.is-open { display: grid; }
.mega-menu { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.mega-menu h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.mega-menu ul { list-style: none; margin: 0; padding: 0; }
.mega-menu ul li a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
}
.mega-menu ul li a:hover { background: var(--surface-2); text-decoration: none; }
.mega-menu ul li small { color: var(--muted); font-weight: 400; display: block; font-size: 13px; }

/* Mobile drawer
   Anchor the box to the right edge of the viewport and slide it fully off-screen
   via transform when closed. Using transform (not left/right) keeps the
   drawer's layout box out of the document's horizontal scroll range, so the
   mobile body never reports a wider document than the viewport. */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  height: 100dvh;
  height: 100vh; /* fallback while 100dvh dynamic UI settles */
  width: min(360px, 92vw);
  max-width: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .28s var(--ease), max-width .28s var(--ease), padding .28s var(--ease);
  z-index: 200;
  padding: 80px 0 24px;
  overflow: hidden;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.mobile-drawer.is-open {
  transform: translateX(0);
  max-width: min(360px, 92vw);
  padding: 80px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer li { border-bottom: 1px solid var(--border); }
.mobile-drawer li a, .mobile-drawer li button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  text-decoration: none;
}
.mobile-drawer li a:hover, .mobile-drawer li button:hover { color: var(--primary); text-decoration: none; }
.mobile-drawer .drawer-cta {
  display: block;
  text-align: center;
  margin-top: 18px;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.mobile-drawer .drawer-cta:hover { background: var(--primary-700); text-decoration: none; }
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27,38,56,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 199;
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 961px) {
  .mobile-drawer, .backdrop { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s var(--ease), transform .15s var(--ease), border-color .15s var(--ease);
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-700);
}
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { filter: brightness(.95); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Hero (split-screen) ---------- */
.hero {
  padding: 56px 0 24px;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  margin-bottom: 16px;
}
.hero-lede {
  font-size: 19px;
  color: var(--text-soft);
  margin-bottom: 24px;
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.hero-trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .trust-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  display: inline-block;
}
.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.hero-figure .hero-img {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .hero-figure .hero-img { height: 320px; }
}
.layered-note {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 230px;
}
.layered-note .note-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 24px;
}
.layered-note .note-text { font-weight: 600; color: var(--text-soft); }
.layered-note.note-1 { top: 16px; right: -22px; }
.layered-note.note-2 { bottom: 80px; left: -22px; }
.layered-note.note-3 { bottom: 16px; right: 24px; }
@media (max-width: 600px) {
  .layered-note { display: none; }
}

/* ---------- Compact headline feed (3-up kickers + digest) ---------- */
.feed-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 0; }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .feed-grid { grid-template-columns: 1fr; } }
.feed-card {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
}
.feed-card h3 { font-size: 18px; margin: 4px 0 6px; }
.feed-card p { font-size: 15px; color: var(--text-soft); margin: 0; }
.feed-card .feed-meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--muted); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.feed-card .feed-meta .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
.digest {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.digest h4 {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.digest-list { list-style: none; padding: 0; margin: 0; columns: 2; }
@media (max-width: 600px) { .digest-list { columns: 1; } }
.digest-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  display: flex; gap: 12px;
  font-size: 14px;
}
.digest-list li time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--muted);
  flex: 0 0 70px;
}

/* ---------- Topic matrix (asymmetric 4x2) ---------- */
.topic-tile {
  position: relative;
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.topic-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.topic-tile h3 { font-size: 22px; margin: 0; }
.topic-tile .tile-num {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
}
.topic-tile .tile-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.topic-tile .tile-lede { color: var(--text-soft); font-size: 15px; margin: 8px 0 0; }
.topic-tile.large {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: #fff;
  border-color: transparent;
}
.topic-tile.large h3 { color: #fff; }
.topic-tile.large .tile-lede { color: rgba(255,255,255,.86); }
.topic-tile.large .tile-num { color: rgba(255,255,255,.9); }
.topic-tile.large .tile-eyebrow { color: rgba(255,255,255,.7); }
.topic-tile .tile-arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: inherit;
  font-size: 14px;
}

/* ---------- Photo essay band ---------- */
.photo-essay {
  position: relative;
  background: var(--text);
  color: #fff;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 64px;
}
.photo-essay-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  opacity: .92;
}
@media (max-width: 700px) { .photo-essay-img { height: 320px; } }
.photo-essay-captions {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}
.photo-essay-captions .essay-caption {
  align-self: end;
  margin: 24px;
  padding: 16px 18px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  max-width: 360px;
  pointer-events: auto;
  border-left: 3px solid var(--accent);
}
.photo-essay-captions .essay-caption strong { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 800px) {
  .photo-essay-captions { grid-template-columns: 1fr; }
  .photo-essay-captions .essay-caption { margin: 12px; }
}

/* ---------- Methodology ledger ---------- */
.methodology-list { list-style: none; padding: 0; margin: 0; }
.methodology-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.methodology-list .step-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--primary-100);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.methodology-list h4 { margin: 0 0 4px; font-size: 17px; }
.methodology-list p { margin: 0; font-size: 15px; color: var(--text-soft); }

/* ---------- Live-style digest ---------- */
.tickered-feed {
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 22px;
}
.tickered-feed h4 {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.tickered-feed h4 .pulse {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(182,55,43,.4);
  animation: pulse 2s infinite var(--ease);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(182,55,43,.55); }
  70% { box-shadow: 0 0 0 12px rgba(182,55,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(182,55,43,0); }
}
.tickered-feed ul { list-style: none; padding: 0; margin: 0; }
.tickered-feed li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  font-size: 14px;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
}
.tickered-feed li:last-child { border-bottom: 0; }
.tickered-feed time {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 700;
}
.tickered-feed .tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-100);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Tabbed comparison ---------- */
.tabbed-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0; /* flex/grid: don't let children force this wider than viewport */
}
.tab-rail {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  scrollbar-width: thin;
  min-width: 0; /* critical: stops intrinsic min-width from forcing body wider */
  max-width: 100%;
}
.tab-rail button {
  flex: 0 0 auto;
  padding: 14px 20px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
}
.tab-rail button[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--surface);
}
.tab-rail button:hover { color: var(--primary); }
.tab-panels { padding: 24px 22px; min-width: 0; max-width: 100%; }
.tab-panel { display: none; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-panel.is-active { display: block; }
.tab-panel table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; word-break: break-word; overflow-wrap: anywhere; }
.tab-panel th, .tab-panel td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.tab-panel th { font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tab-panel td:first-child { font-weight: 700; color: var(--text); }
.tab-panel tr:last-child td { border-bottom: 0; }
.tab-panel .table-foot { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Verification guide ---------- */
.verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 900px) { .verify-grid { grid-template-columns: 1fr; } }
.verify-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.verify-checklist { list-style: none; padding: 0; margin: 0; counter-reset: verify-counter; }
.verify-checklist li {
  counter-increment: verify-counter;
  padding: 14px 0 14px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 15px;
}
.verify-checklist li::before {
  content: counter(verify-counter);
  position: absolute;
  left: 0; top: 12px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}
.verify-checklist strong { display: block; margin-bottom: 2px; color: var(--text); }
.verify-checklist span { color: var(--text-soft); font-size: 14px; }

/* ---------- Editorial colophon ---------- */
.colophon {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.colophon img {
  width: 88px; height: 88px;
  border-radius: var(--radius);
  object-fit: cover;
}
@media (max-width: 600px) {
  .colophon { grid-template-columns: 1fr; }
  .colophon img { width: 72px; height: 72px; }
}
.colophon h4 { margin: 0 0 4px; font-size: 17px; }
.colophon p { margin: 0; font-size: 14px; color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list li {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-list details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 6px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after {
  content: "+";
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
  flex: 0 0 24px;
  transition: transform .2s var(--ease);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  margin: 8px 0 4px;
  font-size: 15px;
  color: var(--text-soft);
}

/* ---------- Article page (child pages) ---------- */
.article-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
}
.article-header .container { max-width: var(--max-w-narrow); }
.article-header .kicker { margin-bottom: 14px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 18px;
}
.article-body {
  padding: 40px 0 64px;
}
.article-body .container { max-width: var(--max-w-narrow); }
.article-body h2 { margin-top: 36px; }
.article-body h3 { margin-top: 24px; }
.article-body p, .article-body li { font-size: 18px; line-height: 1.7; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body figure {
  margin: 28px 0;
}
.article-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.article-body figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}
.article-banner {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 28px;
  border: 1px solid var(--border);
}
@media (max-width: 700px) {
  .article-banner { height: 240px; }
}
.callout {
  background: var(--surface-2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout h4 { margin: 0 0 6px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.callout p { margin: 0; }
.callout-warning { border-left-color: var(--warning); }
.callout-warning h4 { color: var(--warning); }
.callout-danger { border-left-color: var(--danger); }
.callout-danger h4 { color: var(--danger); }
.callout-success { border-left-color: var(--success); }
.callout-success h4 { color: var(--success); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.data-table th { background: var(--surface-2); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary);
}
.pill-green { background: rgba(31,138,76,.18); color: #0c5a2c; }
.pill-amber { background: rgba(184,121,28,.22); color: #6b4310; }
.pill-red { background: rgba(182,55,43,.22); color: #7a1d15; }
.pill-mute { background: var(--surface-2); color: #3d4a60; }

/* Body text links — must be distinguishable without color (underline) */
.colophon a, .feed-card-list a, .table-foot a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #d3dbe8;
  padding: 56px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #d3dbe8; }
.site-footer .brand-mark { color: #fff; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3, .site-footer h4, .site-footer h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 6px 0; font-size: 14px; }
.site-footer .footer-brand p { font-size: 14px; color: #b6c1d4; max-width: 36ch; }
.site-footer .footer-social { display: flex; gap: 10px; margin-top: 12px; }
.site-footer .footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: #fff;
  text-decoration: none;
}
.site-footer .footer-social a:hover { background: var(--primary); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: #8c98ad;
}
.site-footer .footer-bottom a { color: #8c98ad; }
.site-footer .footer-bottom a:hover { color: #fff; }

/* ---------- Sticky affiliate CTA (mobile) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 280;
  transform: translateY(0);
  transition: transform .25s var(--ease);
}
.sticky-cta.is-hidden { transform: translateY(120%); }
@media (min-width: 961px) { .sticky-cta { display: none; } }
.sticky-cta a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
.sticky-cta a:hover { background: var(--primary-700); text-decoration: none; }
.sticky-cta .legal-line {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  text-align: center;
  letter-spacing: .04em;
}

/* ---------- Hero feature (split feature) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin: 64px 0;
}
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } }
.feature-split .feature-figure {
  position: relative;
}
.feature-split .feature-figure img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 600px) { .feature-split .feature-figure img { height: 280px; } }
.feature-split .feature-figure .annotation {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: 220px;
}
.feature-split .feature-figure .annotation.a1 { top: 18px; left: -16px; }
.feature-split .feature-figure .annotation.a2 { bottom: 18px; right: -16px; }
.feature-split .feature-figure .annotation strong {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
@media (max-width: 600px) { .feature-split .feature-figure .annotation { display: none; } }

/* ---------- In-content image row (sidebar-style) ---------- */
.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: start;
  margin: 22px 0;
}
@media (max-width: 700px) { .media-row { grid-template-columns: 1fr; } }
.media-row.reverse { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 700px) { .media-row.reverse { grid-template-columns: 1fr; } }
.media-row img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 700px) { .media-row img { height: 200px; } }

/* ---------- Cards (compact) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; font-size: 15px; color: var(--text-soft); }
.card .card-meta { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.card .btn { max-width: 100%; }

/* ---------- Inline related links ---------- */
.related-rail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 36px 0;
}
.related-rail h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.related-rail ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: 24px; }
@media (max-width: 600px) { .related-rail ul { columns: 1; } }
.related-rail li { padding: 6px 0; font-size: 14px; }
.related-rail li a { display: flex; gap: 10px; align-items: baseline; }
.related-rail li a::before { content: "→"; color: var(--accent); font-weight: 800; }

/* ---------- State eligibility matrix ---------- */
.state-matrix { font-size: 14px; }
.state-matrix .state-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 100px;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  min-width: 0;
}
.state-matrix .state-row.head {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.state-matrix .state-row:last-child { border-bottom: 0; }
.state-matrix .state-name { font-weight: 700; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .state-matrix .state-row { grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
  .state-matrix .state-row > span:last-child { display: none; }
  .state-matrix .state-row.head > span:last-child { display: none; }
}

/* ---------- Compliance strip ---------- */
.compliance-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-soft);
}
.compliance-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}
.compliance-strip .age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
}
.compliance-strip strong { color: var(--text); }

/* ---------- TOC ---------- */
.toc {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0 32px;
}
.toc h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; font-size: 15px; }
.toc li { padding: 4px 0; }
.toc a { color: var(--text); }

/* ---------- Section scroll-margin for sticky header ---------- */
section[id] { scroll-margin-top: 80px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .sticky-cta, .mobile-drawer, .backdrop { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Visible focus only on keyboard ---------- */
:focus:not(:focus-visible) { outline: 0; }