/* iplfantasylive - Ice Blue Editorial Pageday Layout
   Factory V9 FSL11 + Light Color 001 + Typography 027 + Layout 145 + Menu 067 + CTA 046 */

:root {
  --primary: #1769E8;
  --primary-700: #0F50B8;
  --primary-050: #E8F1FF;
  --accent: #0EA5A8;
  --accent-050: #DEF5F6;
  --background: #F4F8FF;
  --surface: #FFFFFF;
  --surface-2: #E8F1FF;
  --surface-3: #F7FAFF;
  --ink: #13213A;
  --ink-2: #22304F;
  --muted: #52647C;
  --muted-2: #6A7C95;
  --border: #C9D9F2;
  --border-strong: #A6BAE0;
  --success: #178A4B;
  --warn: #B45309;
  --danger: #B42318;
  --gold: #B68A35;

  --shadow-sm: 0 1px 2px rgba(19, 33, 58, 0.04);
  --shadow-md: 0 6px 18px rgba(19, 33, 58, 0.06);
  --shadow-lg: 0 18px 44px rgba(19, 33, 58, 0.08);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-narrow: 880px;
  --gap-1: 4px;
  --gap-2: 8px;
  --gap-3: 12px;
  --gap-4: 16px;
  --gap-5: 24px;
  --gap-6: 32px;
  --gap-7: 48px;
  --gap-8: 64px;
  --gap-9: 88px;
  --gap-10: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.18; margin: 0 0 var(--gap-4); letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
p { margin: 0 0 var(--gap-4); }
p.lead { font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: 65ch; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--gap-3);
  display: inline-block;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Container */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gap-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gap-5); }

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244, 248, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap-5);
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  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: 16px;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.brand-name span { color: var(--primary); }
.brand-tag { display: none; }

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--gap-5);
}
.main-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); text-decoration: none; }
.main-nav a.cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 0;
}
.main-nav a.cta:hover { background: var(--primary-700); color: #fff; }
.main-nav a.cta-ghost {
  color: var(--primary);
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border-strong);
  background: #fff;
}
.main-nav a.cta-ghost:hover { background: var(--surface-2); text-decoration: none; }

.hamburger {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  cursor: pointer;
  position: relative;
  z-index: 220;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 88px 24px 24px;
  overflow-y: auto;
  z-index: 210;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a {
  color: var(--ink);
  padding: 14px 12px;
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--surface-2);
}
.mobile-drawer a.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  margin-top: 12px;
  border-bottom: 0;
}
.mobile-drawer a.cta-ghost {
  background: var(--surface-2);
  color: var(--primary);
  text-align: center;
  margin-top: 6px;
  border-bottom: 0;
}
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(19, 33, 58, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 205;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

/* Hero (Pageday) */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--background) 0%, var(--surface-2) 100%);
  padding: 56px 0 64px;
  min-height: 520px;
  overflow: hidden;
}
.hero img.hero-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}
.hero-grid > .hero-figure { margin: 0; }
.article-hero {
  margin: 0 0 var(--gap-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.inline-image {
  margin: var(--gap-6) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.inline-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 899px) {
  .hero img.hero-img { max-height: 280px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap-7);
  align-items: center;
}
.hero h1 {
  margin-bottom: var(--gap-4);
}
.hero p.lead {
  margin-bottom: var(--gap-5);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--gap-5);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(23, 138, 75, 0.18); }
.chip.live .dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); animation: pulse 1.4s ease-in-out infinite; }
.chip.data { background: var(--accent-050); color: var(--accent); border-color: rgba(14, 165, 168, 0.32); }
@keyframes pulse { 50% { transform: scale(1.2); opacity: 0.7; } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--gap-3); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(23, 105, 232, 0.28); }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--primary-700); }
.btn-sm { padding: 9px 14px; font-size: 13px; }

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.scorecard-head {
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.scorecard-head .live-tag {
  background: var(--danger);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.scorecard-body { padding: 22px; }
.versus { display: flex; align-items: center; gap: 18px; }
.team { flex: 1; text-align: center; }
.team-flag {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--primary);
  font-size: 22px;
  border: 2px solid var(--border);
}
.team-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.team-form { font-size: 12px; color: var(--muted); }
.vs { color: var(--muted); font-weight: 700; font-size: 14px; }
.score-line {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.score-line .runs { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.score-line .overs { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero-card-foot { padding: 14px 22px; background: var(--surface-2); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }

/* Sticky matchday strip */
.matchday-strip {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}
.matchday-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--gap-5);
  height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.matchday-strip-inner::-webkit-scrollbar { display: none; }
.matchday-strip strong { color: #fff; margin-right: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.md-fixture { white-space: nowrap; padding-right: 18px; border-right: 1px solid rgba(255,255,255,0.12); }
.md-fixture:last-child { border-right: 0; }
.md-fixture .time { color: #9CC2F5; margin-right: 6px; font-weight: 600; }

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 48px 0; }
section.band { background: var(--surface-2); }
section.dark { background: var(--ink); color: #E7EEFA; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--gap-5); margin-bottom: var(--gap-6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 6px 0 0; max-width: 60ch; }
.section-head .link { font-weight: 600; font-size: 14px; }

/* Card grid */
.card-grid { display: grid; gap: var(--gap-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .meta { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; font-weight: 600; }
.card h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.28; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--primary); text-decoration: none; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.card .more { margin-top: auto; color: var(--primary); font-weight: 600; font-size: 14px; }

.tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.tile:hover { border-color: var(--primary); }
.tile .num { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1; }
.tile .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.tile .desc { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

.featured-card {
  background: linear-gradient(180deg, #fff 0%, var(--surface-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-3);
}
.featured-card h3 { font-size: 22px; margin: 0; }
.featured-card .icon-tile { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; font-size: 22px; }
.featured-card .icon-tile.accent { background: var(--accent-050); color: var(--accent); }

.data-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.data-card .data-head { padding: 16px 20px; border-bottom: 1px solid var(--surface-2); background: var(--surface-3); display: flex; justify-content: space-between; align-items: center; }
.data-card .data-head h3 { margin: 0; font-size: 16px; }
.data-card .data-body { padding: 16px 20px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
table th, table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--surface-2); }
table th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-3); }
table tr:last-child td { border-bottom: 0; }
table tbody tr:hover { background: var(--surface-3); }

/* Editorial split */
.editorial-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-7); align-items: center; }
.editorial-split.reverse > :first-child { order: 2; }
.editorial-split .visual {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--border);
}
.editorial-split .visual img { width: 100%; height: 100%; object-fit: cover; }

/* Hub list */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-4);
}
.hub-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.hub-tile:hover { border-color: var(--primary); text-decoration: none; color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hub-tile .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-050); color: var(--primary); display: grid; place-items: center; font-size: 18px; }
.hub-tile .ico.alt-1 { background: var(--accent-050); color: var(--accent); }
.hub-tile .ico.alt-2 { background: #FFF1D9; color: #B45309; }
.hub-tile .ico.alt-3 { background: #E6F4EA; color: var(--success); }
.hub-tile h4 { font-size: 16px; margin: 4px 0 0; }
.hub-tile p { font-size: 13px; color: var(--muted); margin: 0; }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { content: "-"; }
.faq .answer { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* Article / Hub content */
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--gap-7); margin-bottom: var(--gap-3); }
.prose h3 { margin-top: var(--gap-5); margin-bottom: var(--gap-2); }
.prose ul, .prose ol { margin: 0 0 var(--gap-4); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose img { width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border); margin: var(--gap-5) 0; }
.prose figure { margin: var(--gap-5) 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { border-left: 3px solid var(--primary); padding: 8px 0 8px 18px; margin: var(--gap-4) 0; color: var(--ink-2); font-style: italic; }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: var(--gap-5) 0;
}
.callout strong { color: var(--ink); }
.callout.warn { border-left-color: var(--warn); background: #FFF6E5; }

.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px 18px 64px;
  margin-bottom: 10px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 15px;
}
.steps li h4 { margin: 0 0 4px; font-size: 16px; }
.steps li p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #B4C3DC;
  padding: 56px 0 24px;
  font-size: 14px;
}
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { color: #B4C3DC; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--gap-6);
  padding-bottom: var(--gap-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-brand p { color: #93A4C2; font-size: 14px; line-height: 1.6; margin-top: 10px; max-width: 28ch; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-3);
  padding-top: 22px;
  font-size: 13px;
  color: #6F84A8;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--gap-6); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial-split { grid-template-columns: 1fr; gap: var(--gap-5); }
  .editorial-split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .main-nav { display: none; }
  .hamburger { display: inline-block; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--gap-5); }
  .hero { padding: 36px 0 48px; min-height: 0; }
  .hero-card-foot { flex-direction: column; gap: 8px; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .btn-row .btn { flex: 1 1 auto; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  table { font-size: 13px; }
  table th, table td { padding: 8px 10px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 999;
}
.skip-link:focus { top: 0; color: #fff; }

/* TOC */
.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: var(--gap-5);
}
.toc h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink-2); font-size: 14px; }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 8px; color: var(--border-strong); }

/* Author byline */
.byline { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: var(--gap-4); }
.byline .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* Compliance strip */
.compliance {
  background: var(--surface-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}
.compliance-inner { display: flex; flex-wrap: wrap; gap: var(--gap-5); align-items: center; justify-content: center; text-align: center; }
.compliance strong { color: var(--ink); }

/* Scroll-reveal section */
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: var(--gap-4); overflow-x: auto; padding-bottom: var(--gap-3); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroll-row > * { scroll-snap-align: start; }

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 150;
  background: var(--primary);
  color: #fff;
  padding: 14px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(23, 105, 232, 0.34);
}
.mobile-cta:hover { color: #fff; text-decoration: none; }
@media (max-width: 720px) { .mobile-cta { display: block; } body { padding-bottom: 80px; } }

/* Print */
@media print {
  .site-header, .site-footer, .mobile-cta, .hamburger, .mobile-drawer, .matchday-strip, .compliance { display: none; }
}
/* Visually hidden helper for screen readers */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
