/* fantasycrickettoday.com — editorial longform hub layout (Sunlit League) */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* Clip off-screen fixed elements (drawer, sticky CTAs) from scrollWidth
     without breaking position: sticky. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-700); text-decoration: underline; text-underline-offset: 2px; }
button { font-family: inherit; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: var(--space-6) 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--text-strong); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Containers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-sans); color: var(--text-strong); margin: 0 0 var(--space-3); font-weight: 700; line-height: 1.2; }
h1 { font-size: 44px; letter-spacing: -0.01em; }
h2 { font-size: 30px; letter-spacing: -0.005em; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 var(--space-4); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
.lede { font-size: 19px; color: var(--text); line-height: 1.6; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }

/* Hindi language pages */
[lang="hi"] body, [lang="hi"] p, [lang="hi"] li { font-family: var(--font-hindi); line-height: 1.7; }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(23,106,158,0.22);
}
.btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(209,122,0,0.25);
}
.btn-accent:hover { background: var(--accent-700); border-color: var(--accent-700); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover { background: var(--primary-100); color: var(--primary-700); }
.btn-light {
  background: #fff;
  color: var(--primary);
  border-color: var(--border);
}
.btn-light:hover { background: var(--primary-100); color: var(--primary-700); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.cta-pair { display: inline-flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Pills / Badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  background: var(--primary-100);
  color: var(--primary-700);
  letter-spacing: 0.02em;
}
.pill-accent { background: var(--accent-100); color: var(--accent-700); }
.pill-live {
  background: var(--accent);
  color: #fff;
  position: relative;
  padding-left: 18px;
}
.pill-live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; position: absolute; left: 7px; top: 50%; transform: translateY(-50%);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateY(-50%) scale(1.4); }
}

/* ---------- Site header (sticky persistent, per operator rule 6) ---------- */
.site-header {
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-strip);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-strong);
  font-weight: 800; font-size: 19px; letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-mark:hover { color: var(--primary); text-decoration: none; }
.brand-mark .brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 2px 6px rgba(23,106,158,0.25);
}
.brand-tag { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

.primary-nav {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14.5px; font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.primary-nav a:hover { background: var(--primary-100); color: var(--primary-700); text-decoration: none; }
.primary-nav a.is-active { background: var(--primary); color: #fff; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 80;
  position: relative;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  max-width: 100vw;
  background: #fff;
  border-left: 1px solid var(--border-soft);
  box-shadow: -12px 0 40px rgba(20,40,60,0.18);
  transform: translateX(100%);
  transition: transform var(--t-mid);
  z-index: var(--z-drawer);
  overflow-y: auto;
  /* contain: paint keeps the off-screen drawer's painted rect from leaking into
     document scrollWidth on narrow viewports (was causing 372px body.scrollWidth at 320vw). */
  contain: paint;
  padding: 88px 24px 32px;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer.is-closed { transform: translateX(100%); }
.mobile-drawer .drawer-section { margin-bottom: 22px; }
.mobile-drawer .drawer-section h4 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.mobile-drawer a {
  display: block; padding: 10px 0; color: var(--text);
  font-weight: 600; border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
}
.mobile-drawer a:last-child { border-bottom: 0; }
.mobile-drawer .drawer-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(20,40,60,0.45);
  z-index: 65;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-mid);
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Bands ---------- */
.band { padding: var(--space-7) 0; }
.band-sm { padding: var(--space-6) 0; }
.band-lg { padding: var(--space-9) 0 var(--space-8); }
.band-paper { background: var(--background); }
.band-paper-2 { background: var(--background-2); }
.band-surface { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.band-ink {
  background: var(--primary);
  color: #fff;
}
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .muted { color: rgba(255,255,255,0.78); }
.band-ink .pill { background: rgba(255,255,255,0.15); color: #fff; }
.band-elev { box-shadow: var(--shadow-card); }

/* Section head */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-head .section-sub { color: var(--muted); font-size: 15px; max-width: 56ch; }
.section-head .section-link { color: var(--primary); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(23,106,158,0.08), transparent 60%),
    linear-gradient(180deg, var(--background) 0%, var(--background-2) 100%);
  padding: var(--space-7) 0 var(--space-8);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-7); align-items: center; }
.hero-copy .eyebrow { color: var(--accent); }
.hero-copy h1 { font-size: 52px; letter-spacing: -0.015em; line-height: 1.06; }
.hero-lede { font-size: 19px; color: var(--text); max-width: 60ch; margin-bottom: var(--space-5); }
.hero-trust {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  padding: 14px 18px; margin-top: var(--space-5);
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  font-size: 13px; color: var(--muted);
}
.hero-trust .trust-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-strong); }
.hero-trust .trust-pill svg { color: var(--accent); }

/* Hero split — left editorial lead / right live rail */
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card-hover);
  background: var(--surface);
}
.hero-media img { width: 100%; height: 360px; object-fit: cover; }
.hero-media .hero-overlay {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  background: rgba(255,251,239,0.96);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--text);
  backdrop-filter: blur(6px);
}
.hero-media .hero-overlay strong { color: var(--text-strong); font-weight: 700; }

/* Live rail */
.live-rail {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px;
  margin-top: -56px;
  z-index: 2;
}
.live-rail h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.live-rail .live-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.live-rail .live-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 12px;
  background: var(--background);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.live-rail .live-row .match-name { font-weight: 600; color: var(--text-strong); font-size: 14px; }
.live-rail .live-row .match-meta { color: var(--muted); font-size: 12px; }
.live-rail .live-row .match-cta { padding: 6px 12px; font-size: 12px; }
.live-rail .live-row .live-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Hub grid / Cards ---------- */
.hub-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(3, 1fr);
}
.hub-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hub-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); border-color: var(--border); text-decoration: none; }
.card a { text-decoration: none; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card .card-eyebrow { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.card .card-meta { font-size: 13px; color: var(--muted); }
.card .card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-100);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: var(--space-3);
}
.card .card-icon svg { width: 22px; height: 22px; }
.card.is-feature { padding: var(--space-6); border-color: var(--border); }
.card.is-feature h3 { font-size: 22px; }
.card.is-link::after {
  content: "→"; margin-left: 6px; color: var(--primary); font-weight: 700; transition: margin-left var(--t-fast);
}
.card.is-link:hover::after { margin-left: 10px; }

/* Lead story */
.lead-story {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.lead-story .lead-photo { position: relative; min-height: 360px; background: var(--surface-2); }
.lead-story .lead-photo img { width: 100%; height: 100%; object-fit: cover; }
.lead-story .lead-body { padding: var(--space-6); display: flex; flex-direction: column; justify-content: center; }
.lead-story .lead-body h2 { font-size: 28px; line-height: 1.18; }
.lead-story .lead-meta { color: var(--muted); font-size: 13px; margin-bottom: var(--space-3); display: flex; gap: 10px; flex-wrap: wrap; }

/* Stat tile */
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.stat-tile:hover { border-color: var(--primary); background: #fffefb; }
.stat-tile .stat-value { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: -0.01em; line-height: 1.1; }
.stat-tile .stat-label { font-size: 13px; color: var(--muted); }

/* Loose card */
.loose-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-width: 0;
}
.loose-card:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.loose-card .loose-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  display: grid; place-items: center; color: #fff;
  font-weight: 700;
}
.loose-card h3 { font-size: 18px; margin-bottom: 4px; }
.loose-card p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Spotlight card */
.spotlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.spotlight-card .spot-photo { aspect-ratio: 16/10; background: var(--surface-2); }
.spotlight-card .spot-photo img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-card .spot-body { padding: var(--space-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.spotlight-card .spot-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.spotlight-card h3 { font-size: 18px; margin-bottom: 4px; line-height: 1.25; }
.spotlight-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Inline image row */
.inline-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  margin: var(--space-6) 0;
}
.inline-image-row img {
  width: 100%; height: auto; aspect-ratio: 16/10;
  object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}
.inline-image-row figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  font-size: 14.5px;
  table-layout: auto;
}
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.data-table th {
  background: var(--background);
  font-weight: 700;
  color: var(--text-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--background); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--space-3); }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-card);
}
.faq-item h3 { font-size: 17px; margin-bottom: 6px; color: var(--text-strong); }
.faq-item p { font-size: 15px; color: var(--text); margin: 0; line-height: 1.65; }

/* ---------- Step list ---------- */
.step-list { display: grid; gap: var(--space-3); counter-reset: step; }
.step-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: start;
  box-shadow: var(--shadow-card);
}
.step-item .step-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.step-item h3 { font-size: 17px; margin-bottom: 4px; }
.step-item p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Compliance strip ---------- */
.compliance-strip {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  background: var(--background-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 13px; color: var(--muted);
}
.compliance-strip .compliance-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-strong); }
.compliance-strip svg { color: var(--success); }

/* ---------- Newsletter / Final CTA ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 100% 50%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: center;
  box-shadow: 0 12px 30px rgba(23,106,158,0.18);
}
.cta-band h2 { color: #fff; font-size: 30px; }
.cta-band p { color: rgba(255,255,255,0.86); margin-bottom: 0; }
.cta-band form { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-band input {
  flex: 1 1 220px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: inherit; font-size: 15px;
}
.cta-band input::placeholder { color: rgba(255,255,255,0.7); }

/* ---------- Hub nav (in-page) ---------- */
.hub-nav {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.hub-nav a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600;
  color: var(--text); text-decoration: none;
  background: var(--background);
}
.hub-nav a:hover, .hub-nav a.is-active { background: var(--primary); color: #fff; }

/* ---------- Article / News layout ---------- */
.article-hero {
  background: linear-gradient(180deg, var(--background-2) 0%, var(--background) 100%);
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border-soft);
}
.article-hero .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: var(--space-3); }
.article-hero .breadcrumb a { color: var(--muted); }
.article-hero .breadcrumb a:hover { color: var(--primary); }
.article-hero h1 { font-size: 44px; letter-spacing: -0.012em; line-height: 1.1; }
.article-meta { display: flex; gap: 14px; align-items: center; margin-top: var(--space-4); flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.article-meta .author-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); color: var(--text); font-weight: 600; font-size: 13px; }

.article-body { padding: var(--space-7) 0; }
.article-body .container-narrow { font-size: 18px; line-height: 1.75; color: var(--text); }
.article-body h2 { font-size: 28px; margin-top: var(--space-7); margin-bottom: var(--space-4); }
.article-body h3 { font-size: 20px; margin-top: var(--space-5); margin-bottom: var(--space-3); }
.article-body .container-narrow a { text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: var(--space-4); }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  border-radius: 8px;
  font-style: italic;
  color: var(--text-strong);
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-card);
}
.toc h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { padding-left: 22px; margin: 0; }
.toc li { margin-bottom: 4px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-strong);
  color: rgba(255,255,255,0.78);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}
.site-footer h4 {
  color: #fff; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer-grid .footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14.5px; }
.footer-grid a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap; gap: 14px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.12);
}
.footer-social a:hover { background: rgba(255,255,255,0.18); color: #fff; text-decoration: none; }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Misc utilities ---------- */
.gap-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-asym { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-6); align-items: start; }
.divider { border-top: 1px solid var(--border-soft); margin: var(--space-6) 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  display: none;
  z-index: var(--z-sticky-cta);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 28px rgba(20,40,60,0.18);
  padding: 8px 8px 8px 18px;
  align-items: center; justify-content: space-between;
  gap: 10px;
}
.sticky-cta .sticky-label { font-size: 13px; color: var(--muted); }
.sticky-cta .sticky-label strong { color: var(--text-strong); display: block; font-size: 14px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(20,40,60,0.18);
  padding: var(--space-4);
  display: none;
  z-index: 90;
  font-size: 14px;
}
.cookie-banner.is-visible { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cookie-banner p { margin: 0; flex: 1 1 320px; color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-copy h1 { font-size: 40px; }
  .live-rail { margin-top: 0; }
  .lead-story { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .inline-image-row { grid-template-columns: 1fr; }
  .grid-asym { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .primary-nav, .header-cta .btn { display: none; }
  .hamburger { display: inline-flex; }
  .sticky-cta { display: flex; }
  .hero-copy h1 { font-size: 32px; }
  .article-hero h1 { font-size: 30px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .band-lg { padding: var(--space-7) 0 var(--space-6); }
  .container, .container-narrow { padding: 0 18px; }
}
@media (max-width: 640px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-grid-2, .hub-grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-media img { height: 240px; }
  .live-rail .live-row { grid-template-columns: 1fr auto; }
  .live-rail .live-row .live-time { display: none; }
  .lead-story .lead-body { padding: var(--space-5); }
  .lead-story .lead-body h2 { font-size: 22px; }
  /* Data tables: scroll horizontally inside the table itself, never pushing the body wider.
     `display: block; width: 100%` makes the table's box a scroll container; without `min-width`
     the box would force body.scrollWidth past the viewport on <=480px viewports. */
  .data-table { display: block; width: 100%; overflow-x: auto; max-width: 100%; box-sizing: border-box; }
  .data-table th, .data-table td { white-space: nowrap; }
  /* When the page author wrapped a data table in .data-table-wrap (or we wrapped one ourselves),
     the wrapper already clips overflow — drop the internal scroll from the table to avoid a
     nested horizontal scrollbar and keep long rows wrapping naturally. */
  .data-table-wrap > .data-table,
  .data-table-scroll > .data-table { display: table; width: 100%; overflow-x: visible; }
  .data-table-wrap > .data-table th,
  .data-table-wrap > .data-table td,
  .data-table-scroll > .data-table th,
  .data-table-scroll > .data-table td { white-space: normal; }
}
@media (max-width: 420px) {
  .hub-grid-2, .hub-grid-4 { grid-template-columns: 1fr; }
  .hero { padding: var(--space-5) 0 var(--space-6); }
  .hero-copy h1 { font-size: 28px; }
  .hero-lede { font-size: 16px; }
  .container, .container-narrow { padding: 0 14px; }
  .stat-tile .stat-value { font-size: 24px; }
  .step-item, .loose-card { grid-template-columns: 1fr; }
  .step-item .step-num, .loose-card .loose-icon { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; }
  .pill-live::before { animation: none; }
}

/* Section scroll-margin so sticky header doesn't occlude anchors */
section[id], h2[id], h3[id] { scroll-margin-top: 90px; }

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