/* egamein.com — broadcast-grade esports newsroom on sandstone paper */
:root {
  --primary: #993C1C;
  --accent: #0B6E69;
  --background: #FFF8F2;
  --surface: #FFFFFF;
  --surface-2: #FCE8D7;
  --surface-3: #F4E0CC;
  --text: #312019;
  --text-soft: #4B3A2E;
  --muted: #745D50;
  --muted-2: #8E7867;
  --border: #EBCDBA;
  --border-strong: #C5996F;
  --rule: #2B1C13;
  --ink-soft: #5B4636;
  --highlight: #FFD2A8;
  --danger: #8E2F1B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--rule); text-decoration: underline; text-underline-offset: 2px; }
/* Links inside paragraph / muted text blocks must be distinguishable from
   surrounding text without relying on color alone (WCAG 1.4.1). */
.section p a, .section li a, .section .muted a, .notebook a, .article-wrap a, .qa-stack a, .footer-col a, .footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.section p a:hover, .section li a:hover, .section .muted a:hover, .notebook a:hover, .article-wrap a:hover, .qa-stack a:hover, .footer-col a:hover, .footer-bottom a:hover {
  text-decoration-thickness: 2px;
}
button { font: inherit; cursor: pointer; }

/* Type */
.h-1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.012em; color: var(--text); margin: 0 0 0.2em; }
.h-2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: -0.008em; color: var(--text); margin: 0 0 0.4em; }
.h-3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; font-weight: 700; color: var(--text); margin: 0 0 0.4em; }
.h-4 { font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--text); margin: 0 0 0.4em; }
.lede { font-size: 20px; line-height: 1.55; color: var(--text-soft); margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 2px solid var(--rule);
  padding-top: 8px;
  margin-bottom: 16px;
}
.muted { color: var(--muted); }
.thin { font-weight: 400; }

/* Layout helpers */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.rule-line { height: 2px; background: var(--rule); width: 100%; }
.rule-soft { height: 1px; background: var(--border); width: 100%; }

/* Masthead */
.masthead {
  background: var(--background);
  border-bottom: 2px solid var(--rule);
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(8px);
  background: rgba(255, 248, 242, 0.94);
}
.masthead .row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  background: var(--rule); color: var(--surface);
  font-weight: 800; font-size: 18px; letter-spacing: -0.04em;
}
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.brand-tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); }

/* Top meta strip */
.meta-strip {
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--surface-2);
}
.meta-strip .row {
  display: flex; justify-content: space-between; gap: 16px; padding: 8px 24px;
  flex-wrap: wrap;
}
.meta-strip .meta-left, .meta-strip .meta-right { display: flex; gap: 16px; flex-wrap: wrap; }
.meta-strip .item { display: flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot.warn { background: var(--primary); }

/* Header (mega-menu trigger) */
.site-header { background: var(--background); border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 55; }
.site-header .row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.main-nav {
  display: none;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.main-nav a { color: var(--text); padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--rule); border-bottom-color: var(--rule); text-decoration: none; }
.main-nav a.active { border-bottom-color: var(--primary); color: var(--primary); }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rule); color: var(--surface);
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em;
  padding: 10px 18px;
  text-transform: uppercase;
}
.header-cta:hover { background: var(--primary); color: var(--surface); text-decoration: none; }
.hamburger {
  background: transparent; border: 2px solid var(--rule);
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  position: relative; z-index: 300;
}
.hamburger:hover { background: var(--surface-2); }
.hamburger .bar { width: 22px; height: 2px; background: var(--rule); display: block; transition: transform 0.2s, opacity 0.2s; }
.hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed; top: 64px; left: 100%; right: auto;
  width: 100vw; max-width: 100vw;
  height: calc(100dvh - 64px); max-height: calc(100dvh - 64px);
  background: var(--surface);
  border-top: 2px solid var(--rule);
  transition: left 0.25s ease;
  z-index: 200;
  overflow-y: auto;
  padding: 24px;
  display: none;
  flex-direction: column; gap: 8px;
  visibility: hidden;
}
.mobile-drawer[data-open="true"] { display: flex; left: 0; visibility: visible; }
.mobile-drawer a {
  display: block; padding: 16px 0; border-bottom: 1px solid var(--border);
  font-weight: 700; color: var(--text); font-size: 18px;
}
.mobile-drawer a:hover { color: var(--primary); text-decoration: none; }
.mobile-drawer .drawer-section-title {
  margin-top: 20px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700;
  padding-bottom: 8px; border-bottom: 2px solid var(--rule);
}

/* Desktop mega-menu */
.mega-menu-backdrop {
  position: fixed; inset: 0; background: rgba(49, 32, 25, 0.4); opacity: 0; visibility: hidden;
  transition: opacity 0.2s;
  z-index: 40;
}
.mega-menu-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
.mega-menu {
  position: fixed; top: 120px; left: 50%; transform: translateX(-50%) translateY(-12px);
  width: min(1180px, calc(100vw - 32px));
  background: var(--surface); border: 2px solid var(--rule); padding: 32px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}
.mega-menu[data-open="true"] { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-menu .col h3 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px; border-bottom: 2px solid var(--rule); padding-bottom: 8px; }
.mega-menu .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mega-menu .col li a { color: var(--text); font-weight: 600; display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.mega-menu .col li a:hover { color: var(--primary); border-bottom-style: solid; text-decoration: none; }
.mega-menu .col li .tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.mega-menu .featured {
  background: var(--surface-2); padding: 20px; border-left: 4px solid var(--primary);
}
.mega-menu .featured h4 { font-size: 18px; margin: 0 0 8px; font-weight: 800; }
.mega-menu .featured p { margin: 0 0 12px; font-size: 14px; color: var(--text-soft); }

/* Footer */
.site-footer { background: var(--surface); border-top: 2px solid var(--rule); margin-top: 64px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
  padding: 48px 24px;
}
.footer-col h3 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px; border-bottom: 2px solid var(--rule); padding-bottom: 8px; color: var(--text); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-soft); font-size: 15px; text-decoration: underline; text-underline-offset: 2px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px; font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  background: var(--surface-2);
}
.compliance-strip {
  background: var(--rule); color: var(--surface); padding: 16px 24px; font-size: 13px; line-height: 1.5;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.compliance-strip strong { color: #FFD2A8; }

/* Generic stack (used as utility) */
.stack > * + * { margin-top: 16px; }
.row-gap-12 > * + * { margin-top: 12px; }
.row-gap-24 > * + * { margin-top: 24px; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 0;
  padding: 20px;
}
.card-ink { background: var(--rule); color: var(--surface); border-color: var(--rule); }
.card-ink a { color: var(--highlight); }
.card-accent { background: var(--surface-2); border-color: var(--border-strong); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; padding: 14px 22px;
  border: 2px solid var(--rule);
  background: var(--surface); color: var(--rule);
  text-transform: none; letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 160px;
}
.btn:hover { background: var(--rule); color: var(--surface); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.btn-primary:hover { background: var(--rule); border-color: var(--rule); color: var(--surface); }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--rule); }

/* Persistent mobile CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--rule); border-top: 3px solid var(--primary);
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0) + 12px);
  z-index: 90;
}
.mobile-sticky-cta a.mobile-sticky-cta-link {
  color: inherit; text-decoration: none; display: block;
}
.mobile-sticky-cta a.mobile-sticky-cta-link:hover { color: inherit; text-decoration: none; }
.mobile-sticky-cta .wrap-row {
  display: flex; align-items: center; gap: 12px;
}
.mobile-sticky-cta .label {
  color: var(--surface); font-size: 12px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; flex: 1;
}
.mobile-sticky-cta .label strong { display: block; font-size: 14px; color: #FFD2A8; font-weight: 800; }
.mobile-sticky-cta .btn {
  background: var(--primary); border-color: var(--primary); color: var(--surface);
  padding: 14px 24px; flex: 0 0 auto;
  min-width: 0;
}
.mobile-sticky-cta .btn:hover { background: #FF6A3D; border-color: #FF6A3D; }
.mobile-sticky-cta .disclosure {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #FFD2A8;
}

/* Spacer to keep content above sticky CTA */
.sticky-spacer { display: none; height: 88px; }

/* Editorial components */
.bracket-ledger {
  background: var(--surface); border: 2px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 240px;
}
.bracket-ledger > .col { padding: 28px; }
.bracket-ledger > .col + .col { border-left: 2px solid var(--rule); background: var(--surface-2); }
.bracket-ledger .axis-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; border-bottom: 1px solid var(--accent); padding-bottom: 6px;
  display: inline-block;
}

/* Split-axis timeline */
.split-timeline {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 2px solid var(--rule);
}
.split-timeline .axis-time { padding: 28px; }
.split-timeline .axis-evidence { padding: 28px; background: var(--surface-2); border-left: 2px solid var(--rule); }
.split-timeline .event-row {
  border-top: 1px solid var(--border); padding: 18px 0;
}
.split-timeline .event-row:first-of-type { border-top: 0; padding-top: 0; }
.split-timeline .time { font-weight: 800; font-size: 14px; color: var(--rule); letter-spacing: 0.04em; }
.split-timeline .check {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid;
}
.split-timeline .check.ok { color: var(--accent); border-color: var(--accent); }
.split-timeline .check.tent { color: var(--primary); border-color: var(--primary); }
.split-timeline .check.wait { color: var(--muted); border-color: var(--muted-2); }

/* Roster ledger */
.roster-ledger { width: 100%; border-collapse: collapse; background: var(--surface); border: 2px solid var(--rule); }
.roster-ledger th, .roster-ledger td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.roster-ledger th { background: var(--rule); color: var(--surface); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.roster-ledger tr:hover { background: var(--surface-2); }
.roster-ledger .role { display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--ink-soft); }
.roster-ledger .vtag { font-size: 11px; padding: 2px 6px; letter-spacing: 0.06em; }

/* Match-card row (used on homepage for three preview matches) */
.match-card-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.role-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.role-matrix .cell { background: var(--surface); border: 1px solid var(--border); padding: 20px; border-top: 4px solid var(--rule); }
.role-matrix .cell .glyph { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.role-matrix .cell h3 { font-size: 16px; margin: 0 0 6px; font-weight: 800; }
.role-matrix .cell p { font-size: 14px; line-height: 1.5; color: var(--text-soft); margin: 0; }

/* Field notes */
.fieldnotes { background: var(--surface); border: 1px solid var(--border); padding: 24px; }
.fieldnotes .stamp {
  display: inline-block; padding: 4px 8px; background: var(--accent); color: var(--surface);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px;
}
.fieldnotes ul { padding-left: 18px; margin: 0; }
.fieldnotes li { margin-bottom: 8px; font-size: 15px; line-height: 1.55; color: var(--text-soft); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-grid details { background: var(--surface); border: 1px solid var(--border); padding: 18px 20px; }
.faq-grid summary { cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1.4; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--primary); }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details > p { margin: 12px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.55; }

/* Image caption */
.cap { font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; }
figure { margin: 0 0 24px; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* Helpers */
.no-underline { text-decoration: none; }
.no-underline:hover { text-decoration: underline; }

/* TOC + section spacing */
.section { padding: 64px 0; border-top: 2px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section .section-head { max-width: 900px; margin-bottom: 32px; }
.section .section-head h2 { margin: 0 0 12px; }
.section .section-head p { margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.55; max-width: 70ch; }

/* Hero — bracket mosaic */
.hero-mosaic { background: var(--surface); border-bottom: 2px solid var(--rule); }
.hero-mosaic .row { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; padding: 48px 24px; align-items: start; }
.hero-mosaic .lead h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.018em; color: var(--text); margin: 0 0 16px; }
.hero-mosaic .lead .sub { font-size: 19px; line-height: 1.55; color: var(--text-soft); margin: 0 0 24px; max-width: 60ch; }
.hero-mosaic .lead .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-mosaic .cover-image { position: relative; border: 2px solid var(--rule); }
.hero-mosaic .cover-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }
.hero-mosaic .cover-strip { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-mosaic .cover-strip .mini { background: var(--surface-2); border: 1px solid var(--border); padding: 10px 12px; font-size: 12px; font-weight: 700; }
.hero-mosaic .cover-strip .mini .glyph { color: var(--accent); margin-right: 6px; }
.hero-mosaic .meta {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 12px; color: var(--accent);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero-mosaic .meta .pill { border: 1px solid var(--accent); padding: 4px 8px; }

/* Masthead block */
.masthead-block {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.masthead-block .row { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 24px; font-size: 12px; align-items: center; justify-content: space-between; }
.masthead-block .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); padding: 4px 10px; font-weight: 700;
  letter-spacing: 0.04em;
}
.masthead-block .pill .dot { width: 6px; height: 6px; }

/* Edition */
.edition-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.edition-row .left { padding-right: 16px; border-right: 1px solid var(--border); }
.edition-row .issue-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.edition-row .issue-list li { list-style: none; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--text-soft); display: flex; justify-content: space-between; }

/* Match preview cards */
.match-card { background: var(--surface); border: 2px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.match-card .teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; font-weight: 800; }
.match-card .vs { font-size: 13px; color: var(--muted); letter-spacing: 0.18em; }
.match-card .team-a, .match-card .team-b { display: flex; flex-direction: column; gap: 4px; }
.match-card .team-a { text-align: left; }
.match-card .team-b { text-align: right; }
.match-card .game-tag { display: inline-block; padding: 2px 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: var(--surface); }
.match-card .time { font-weight: 800; font-size: 20px; }
.match-card .meta { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; }
.match-card a.card-link { position: absolute; inset: 0; }

/* Streaming matrix */
.streaming-matrix { background: var(--surface); border: 2px solid var(--rule); }
.streaming-matrix .row { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr; padding: 14px 16px; border-top: 1px solid var(--border); font-size: 14px; align-items: center; }
.streaming-matrix .row.head { background: var(--rule); color: var(--surface); border-top: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.streaming-matrix .row .pill { display: inline-block; padding: 2px 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--ink-soft); }

/* Policy table */
.policy-table { background: var(--surface); border: 2px solid var(--rule); }
.policy-table .row { display: grid; grid-template-columns: 0.4fr 1.6fr 1fr 1fr; padding: 14px 16px; border-top: 1px solid var(--border); font-size: 14px; align-items: start; }
.policy-table .row.head { background: var(--rule); color: var(--surface); border-top: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.policy-table .row .num { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--primary); }

/* Notebook */
.notebook { background: var(--surface); border: 1px solid var(--border); padding: 24px; }
.notebook .page-line {
  border-bottom: 1px dashed var(--border);
  padding: 10px 0;
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 16px;
  align-items: baseline;
}
.notebook .page-line:last-child { border-bottom: 0; }
.notebook .page-line .label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.notebook .page-line .body { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* Reader question queue */
.qa-stack details {
  background: var(--surface); border: 1px solid var(--border);
  padding: 18px 20px; margin-bottom: 12px;
}
.qa-stack summary { cursor: pointer; font-weight: 700; font-size: 16px; line-height: 1.4; list-style: none; }
.qa-stack summary::-webkit-details-marker { display: none; }
.qa-stack summary::before { content: "Q · "; color: var(--primary); font-weight: 800; }
.qa-stack details > p { margin: 12px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.55; }
.qa-stack details > p::before { content: "A · "; color: var(--accent); font-weight: 800; margin-right: 4px; }

/* CTA card */
.cta-card {
  background: var(--rule); color: var(--surface);
  padding: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-card h3 { font-size: 28px; margin: 0 0 12px; color: var(--surface); }
.cta-card p { margin: 0 0 20px; color: #FFD2A8; font-size: 15px; line-height: 1.6; max-width: 60ch; }
.cta-card .disclosure { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #FFD2A8; margin-top: 10px; }
.cta-card .btn { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.cta-card .btn:hover { background: #FF6A3D; border-color: #FF6A3D; }
.cta-card .action-area { text-align: right; }

/* Article styles (used on child pages) */
.article-wrap { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.article-wrap h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.012em; }
.article-wrap .lede { font-size: 19px; color: var(--text-soft); line-height: 1.6; margin: 0 0 32px; max-width: 65ch; }
.article-wrap h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--rule); font-weight: 800; }
.article-wrap h3 { font-size: 20px; margin: 32px 0 12px; font-weight: 700; }
.article-wrap p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; }
.article-wrap ul, .article-wrap ol { padding-left: 20px; margin: 0 0 20px; }
.article-wrap li { margin-bottom: 8px; line-height: 1.65; font-size: 17px; }
.article-wrap blockquote { border-left: 4px solid var(--primary); margin: 24px 0; padding: 12px 20px; background: var(--surface-2); font-style: italic; color: var(--text-soft); }
.article-wrap .toc { background: var(--surface); border: 1px solid var(--border); padding: 24px; margin: 0 0 32px; }
.article-wrap .toc h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-soft); }
.article-wrap .toc ol { padding-left: 20px; margin: 0; }
.article-wrap .toc li { font-size: 15px; margin-bottom: 6px; }
.article-wrap .infobox {
  background: var(--surface); border: 1px solid var(--border-strong); padding: 20px; margin: 0 0 32px;
}
.article-wrap .infobox h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-soft); border-bottom: 2px solid var(--rule); padding-bottom: 8px; }
.article-wrap .infobox ul { padding-left: 0; list-style: none; }
.article-wrap .infobox ul li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.article-wrap .infobox ul li:last-child { border-bottom: 0; }
.article-wrap .pull-img { margin: 32px 0; }
.article-wrap .pull-img img { border: 2px solid var(--rule); }
.article-wrap .author-strip { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 14px 0; margin: 0 0 32px; }
.article-wrap .author-strip strong { color: var(--text); font-weight: 800; }

/* Related post block */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card { background: var(--surface); border: 1px solid var(--border); padding: 20px; }
.related-card .cat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.related-card h4 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.related-card p { font-size: 14px; color: var(--text-soft); margin: 0; line-height: 1.55; }
.related-card a { color: var(--text); }
.related-card a:hover { color: var(--primary); text-decoration: none; }

/* Article hub landing (e.g. /tournaments/) */
.hub-landing .grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hub-landing .grid-cards .card-h { background: var(--surface); border: 1px solid var(--border); padding: 20px; }
.hub-landing .grid-cards .card-h h4 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.hub-landing .grid-cards .card-h p { margin: 0; font-size: 14px; color: var(--text-soft); line-height: 1.55; }
.hub-landing .grid-cards .card-h .tag { display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; background: var(--accent); color: var(--surface); margin-bottom: 12px; }

/* Banner header (used on every page below masthead) */
.page-banner {
  background: var(--rule); color: var(--surface); padding: 48px 24px;
}
.page-banner .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.page-banner .lead { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #FFD2A8; margin: 0 0 12px; border-top: 2px solid #FFD2A8; padding-top: 12px; display: inline-block; }
.page-banner h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; font-weight: 800; margin: 0 0 16px; color: var(--surface); }
.page-banner .sub { font-size: 17px; line-height: 1.55; color: var(--surface); opacity: 0.85; max-width: 60ch; margin: 0 0 20px; }
.page-banner .img-wrap { border: 2px solid var(--highlight); }
.page-banner .img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Side rail / cards inside hub pages */
.side-rail { background: var(--surface); border: 1px solid var(--border); padding: 20px; }
.side-rail h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink-soft); border-bottom: 2px solid var(--rule); padding-bottom: 8px; }
.side-rail ul { list-style: none; padding: 0; margin: 0; }
.side-rail li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.side-rail li:last-child { border-bottom: 0; }
.side-rail a { color: var(--text-soft); font-weight: 600; }
.side-rail a:hover { color: var(--primary); text-decoration: none; }

/* Inline image row */
.inline-image-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin: 32px 0; }
.inline-image-row figure { margin: 0; }
.inline-image-row img { width: 100%; border: 2px solid var(--rule); }
.inline-image-row figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; }
.inline-image-row .text-col p { font-size: 16px; line-height: 1.65; color: var(--text-soft); }

/* Mobile behaviour */
@media (max-width: 960px) {
  .hero-mosaic .row { grid-template-columns: 1fr; }
  .split-timeline { grid-template-columns: 1fr; }
  .split-timeline .axis-evidence { border-left: 0; border-top: 2px solid var(--rule); }
  .role-matrix { grid-template-columns: 1fr 1fr; }
  .streaming-matrix .row { grid-template-columns: 1.2fr 0.8fr; }
  .streaming-matrix .row:not(.head) > *:nth-child(3), .streaming-matrix .row:not(.head) > *:nth-child(4) { grid-column: span 2; padding-top: 4px; font-size: 12px; color: var(--muted); }
  .policy-table .row { grid-template-columns: 0.4fr 1.6fr 1fr; }
  .policy-table .row > *:last-child { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: span 2; }
  .mega-menu { display: none; }
  .page-banner .wrap { grid-template-columns: 1fr; }
  .inline-image-row { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hub-landing .grid-cards { grid-template-columns: 1fr; }
  .edition-row { grid-template-columns: 1fr !important; }
  .edition-row .left { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .compliance-strip { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-card .action-area { text-align: left; }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: env(safe-area-inset-bottom); }
  .wrap, .article-wrap { padding-left: 16px; padding-right: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-col:first-child { grid-column: span 1; }
  .site-footer { margin-bottom: 76px; }
  .mobile-sticky-cta { display: block; }
  .sticky-spacer { display: block; }
  .role-matrix { grid-template-columns: 1fr; }
  .split-timeline .axis-time, .split-timeline .axis-evidence { padding: 20px; }
  .match-card { padding: 18px; }
  .edition-row .issue-list { grid-template-columns: 1fr; }
  .hero-mosaic .cover-strip { grid-template-columns: 1fr 1fr; }

  /* Mobile masthead: brand + CTA + hamburger must fit at 320–430px */
  .masthead { overflow-x: clip; z-index: 250; }
  .masthead .row { gap: 12px; flex-wrap: nowrap; }
  .masthead .row > * { min-width: 0; flex-shrink: 1; }
  .brand-tag { display: none; }
  .header-cta { padding: 8px 12px; font-size: 12px; min-width: 0; letter-spacing: 0.04em; }

  /* Lock horizontal scroll: fixed drawer + off-canvas mega-menus must not extend documentElement.scrollWidth */
  html, body { overflow-x: clip; }

  /* Match-card row: collapse three preview columns to a single column */
  .match-card-row { grid-template-columns: 1fr; }

  /* Roster ledger on mobile: stack the table vertically as a card list so the
     6-column layout cannot extend past the viewport at 320–430px. The wrap
     clips overflow so body.scrollWidth cannot include inner table content. */
  .roster-ledger-wrap { overflow-x: clip; max-width: 100%; }
  .roster-ledger { font-size: 13px; display: block; max-width: 100%; }
  .roster-ledger thead { display: none; }
  .roster-ledger tbody { display: block; width: 100%; }
  .roster-ledger tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .roster-ledger tr:last-child { border-bottom: 2px solid var(--rule); }
  .roster-ledger td { display: block; padding: 6px 0; border: 0; }
  /* Re-introduce column labels via nth-child (no HTML data-label needed) */
  .roster-ledger td:nth-child(1)::before { content: "Active roster"; }
  .roster-ledger td:nth-child(2)::before { content: "Game"; }
  .roster-ledger td:nth-child(3)::before { content: "Region"; }
  .roster-ledger td:nth-child(4)::before { content: "Tenure"; }
  .roster-ledger td:nth-child(5)::before { content: "Verified source"; }
  .roster-ledger td:nth-child(6)::before { content: "Status"; }
  .roster-ledger td::before {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
  }
}

@media (min-width: 961px) {
  .main-nav { display: flex; align-items: center; }
  .hamburger { display: none; }
}

/* Focus rings */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Honeypot / utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Avoid stale large hero on mobile (cap hero height) */
@media (max-width: 720px) {
  .hero-mosaic .cover-image img { aspect-ratio: 4/5; max-height: 420px; object-fit: cover; }
  .hero-mosaic .row { padding: 32px 16px; }
  .hero-mosaic .lead h1 { font-size: clamp(28px, 7vw, 38px); }
  .section { padding: 40px 0; }
}

/* Prevent overflow on header sticky double layer */
@media (max-width: 720px) {
  .site-header { position: sticky; top: 64px; }
}

/* Override for any banner with text */
.notice {
  background: var(--surface-2); border: 1px solid var(--border); padding: 14px 16px;
  font-size: 14px; color: var(--text-soft);
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px;
}
.notice .glyph { color: var(--accent); font-weight: 800; font-size: 16px; flex: 0 0 auto; }

/* Print */
@media print {
  .site-header, .masthead, .meta-strip, .mobile-sticky-cta, .mega-menu, .site-footer { display: none; }
}

/* Anchor offset for sticky headers */
section[id], h2[id], h3[id] { scroll-margin-top: 132px; }
