/* esportsbetin.com — broadcast newsroom editorial CSS */
/* Loaded AFTER variables.css */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* BROWSER-MOBILE-OVERFLOW-001: keeps off-screen mobile drawer (.mobile-drawer with translateX(100%)) from extending documentElement.scrollWidth past viewport */
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--background);
  background-image:
    linear-gradient(180deg, rgba(255, 248, 242, 0) 0%, rgba(252, 232, 215, 0.32) 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(225, 197, 168, 0.18) 31px 32px);
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
img { font-style: italic; }
a { color: var(--primary-ink); text-decoration-skip-ink: auto; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
  margin: 0 0 0.6em;
  font-weight: 800;
}
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: clamp(17px, 2vw, 20px); }
p { margin: 0 0 1.1em; }
small, .meta { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }

/* Section numeral — signature device */
.numeral {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-weight: 200;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  color: var(--primary);
  letter-spacing: -0.04em;
  display: inline-block;
  text-shadow: var(--shadow-numeral);
}
.numeral-sm { font-size: clamp(36px, 5vw, 64px); }
.numeral-bar { display: flex; align-items: baseline; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.numeral-bar .label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 250;
  background: rgba(255, 248, 242, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text-strong); text-decoration: none; font-weight: 900;
  font-size: 21px; letter-spacing: -0.02em;
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, #D8633B 100%);
  color: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px;
  box-shadow: 0 0 0 1px rgba(182, 75, 40, 0.18), 0 8px 18px -12px rgba(182, 75, 40, 0.55);
}
.brand .mark::after { content: "E"; }
.brand-name { font-size: 21px; }
.brand-tag { display: block; font-size: 11px; color: #5C4937; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; } /* PAGESPEED-MOBILE-001 contrast: #5C4937 on #FFF8F2 ≈ 6.4:1 (was #745D50 ≈ 3.9:1) */
/* PAGESPEED-MOBILE-001 contrast on dark footer bg #2A1A11: #D9C0A8 ≈ 7.2:1 (was inherited #745D50 ≈ 2.7:1) */
.site-footer .brand-tag { color: #D9C0A8; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 10px 0; border-bottom: 2px solid transparent; transition: border-color 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); border-color: var(--primary); }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-cta-ghost {
  display: none; padding: 10px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none;
}
.header-cta-ghost:hover { background: var(--surface); color: var(--primary); }
.header-cta {
  display: none; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--primary);
  color: #fff; font-weight: 800; font-size: 14px; text-decoration: none;
  box-shadow: 0 8px 22px -12px rgba(182, 75, 40, 0.5);
}
.header-cta:hover { background: var(--primary-ink); color: #fff; }
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--rule); cursor: pointer; z-index: 300; position: relative;
}
/* BROWSER-MOBILE-OVERFLOW-001: hamburger is now a direct child of body (sibling of header) on mobile
   so its z-index participates in body stacking context and it sits above the fixed drawer.
   Position it over the header's top-right slot. Hidden on desktop where main-nav is shown. */
@media (max-width: 979px) {
  .hamburger { position: fixed; top: 16px; right: 24px; }
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-strong); border-radius: 2px; position: relative; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text-strong); border-radius: 2px; }
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--surface); z-index: 290; padding: 88px 24px 24px;
  transform: translateX(100%); transition: transform 0.25s ease;
  box-shadow: -16px 0 40px -20px rgba(0, 0, 0, 0.25);
  border-left: 1px solid var(--rule);
  overflow-y: auto;
}
.mobile-drawer[data-open="true"] { transform: translateX(0); }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer a {
  display: block; padding: 14px 12px; border-radius: 12px; color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 16px;
}
.mobile-drawer a:hover { background: var(--background-panel); color: var(--primary); }
.mobile-drawer .ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(49, 32, 25, 0.45); z-index: 280;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.drawer-backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

@media (min-width: 980px) {
  .main-nav { display: block; }
  .header-cta-ghost, .header-cta { display: inline-flex; align-items: center; }
  .hamburger { display: none; }
}

/* Edition masthead */
.edition-masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-size: 13px;
}
.edition-masthead .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.edition-masthead .when { font-weight: 700; color: var(--text-strong); }
.edition-masthead .stamp { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.edition-masthead .stamp::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 3px rgba(11, 110, 105, 0.18); }
.edition-masthead .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.edition-masthead .chip { font-size: 12px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: var(--radius-pill); color: var(--muted); background: var(--background); font-weight: 700; }
.edition-masthead .chip.verified { color: var(--accent); border-color: var(--accent); }

/* Hero — stacked story */
.hero {
  position: relative; padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}
.hero .grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start;
}
@media (min-width: 980px) {
  .hero .grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
}
.hero h1 { color: var(--text-strong); margin-bottom: 18px; }
.hero h1 span.alt { color: var(--primary); }
.hero .lede { font-size: 19px; color: var(--text); max-width: 62ch; }
.hero .lede strong { color: var(--text-strong); }
.hero-img {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--rule); box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9; background: var(--surface-2);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius-pill); font-weight: 800; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 26px -14px rgba(182, 75, 40, 0.55); }
.btn-primary:hover { background: var(--primary-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--primary); }
.btn-pill { padding: 8px 14px; font-size: 13px; }

/* Section rhythm */
.section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; max-width: 880px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.section-head h2 { margin: 0; }
.section-head .lede { font-size: 17px; color: var(--muted); margin: 4px 0 0; }

/* Floating panels / cards */
.panel {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
}
.panel h3 { margin-top: 0; }
.panel-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .panel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .panel-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .panel-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.panel-grid.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .panel-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.panel.lead { border-top: 4px solid var(--primary); }
.panel .meta { display: block; margin-bottom: 8px; }
.panel ul { padding-left: 18px; margin: 0 0 16px; }
.panel li { margin-bottom: 6px; }

/* Tournament horizon rail */
.horizon { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .horizon { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .horizon { grid-template-columns: repeat(4, 1fr); } }
.horizon .card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px; position: relative; display: flex; flex-direction: column; gap: 8px;
}
.horizon .card .tier { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.horizon .card h3 { font-size: 18px; margin: 0; }
.horizon .card .when { font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.horizon .card .format { font-size: 13px; color: var(--text); }
.horizon .card .src { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--rule); }

/* Stage cover with bracket fragment */
.stage-cover { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 980px) { .stage-cover { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.stage-cover .bracket {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.stage-cover .bracket::before { content: "FRAGMENT"; position: absolute; top: 14px; right: 18px; font-size: 10px; letter-spacing: 0.22em; color: var(--muted); font-weight: 800; }
.stage-cover .bracket svg { width: 100%; height: auto; display: block; }
.stage-cover .lede-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.stage-cover .lede-card .src { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--accent); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.stage-cover .lede-card .src::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }

/* Team identity grid */
.identity-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .identity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .identity-grid { grid-template-columns: repeat(4, 1fr); } }
.identity-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
}
.identity-card .thumb { aspect-ratio: 4/3; background: var(--surface-2); width: 100%; }
.identity-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.identity-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.identity-card .name { font-weight: 900; font-size: 17px; color: var(--text-strong); }
.identity-card .region { font-size: 12px; color: var(--accent); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.identity-card .roster { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Role atlas */
.role-atlas { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .role-atlas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .role-atlas { grid-template-columns: repeat(4, 1fr); } }
.role-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 16px; align-items: flex-start;
}
.role-card .glyph {
  width: 48px; height: 48px; border-radius: 12px; background: var(--background-panel); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.role-card .glyph svg { width: 24px; height: 24px; }
.role-card h3, .role-card h4 { margin: 0 0 4px; font-size: 17px; } /* PAGESPEED-MOBILE-001: h3 added alongside h4 for heading-order fix */
.role-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Vertical timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--rule); }
.timeline-event { position: relative; padding: 4px 0 28px; }
.timeline-event::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); box-shadow: 0 0 0 4px var(--background); }
.timeline-event .v { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--primary); font-weight: 800; letter-spacing: 0.04em; }
.timeline-event h4 { margin: 4px 0; font-size: 18px; }
.timeline-event p { margin: 0; color: var(--muted); font-size: 15px; }

/* Tactical map callout */
.tactic { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .tactic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tactic .map { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); }
.tactic .map img { width: 100%; height: auto; border-radius: var(--radius); }
.tactic .notes { display: flex; flex-direction: column; gap: 12px; }
.tactic .note { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; }
.tactic .note h3, .tactic .note h4, .tactic .note h5 { margin: 0 0 4px; font-size: 15px; color: var(--text-strong); } /* PAGESPEED-MOBILE-001: h3 + h4 added alongside h5 for heading-order fix */
.tactic .note p { margin: 0; font-size: 14px; color: var(--muted); }

/* Viewing matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 600px; }
.matrix th, .matrix td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.matrix th { background: var(--background); color: var(--text-strong); font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.matrix tbody tr:hover { background: var(--background-panel); }
.matrix .ok { color: var(--accent); font-weight: 800; }
.matrix .na { color: var(--muted); }

/* Film room */
.film-room { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .film-room { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.film-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.film-card .meta { font-size: 12px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; }
.film-card h3, .film-card h4 { margin: 0; } /* PAGESPEED-MOBILE-001: h3 added alongside h4 for heading-order fix */
.film-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Multi-game desk */
.desk { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .desk { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .desk { grid-template-columns: repeat(5, 1fr); } }
.desk-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.desk-card .glyph { width: 40px; height: 40px; border-radius: 10px; background: var(--background-panel); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.desk-card .glyph svg { width: 22px; height: 22px; }
.desk-card h3, .desk-card h4 { margin: 0; font-size: 16px; } /* PAGESPEED-MOBILE-001: h3 added alongside h4 for heading-order fix */
.desk-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Evidence register */
.evidence { display: grid; gap: 12px; }
.evidence-row { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 18px; display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 720px) { .evidence-row { grid-template-columns: 130px 1fr auto; gap: 18px; align-items: center; } }
.evidence-row .tier { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--accent); }
.evidence-row .what { font-size: 15px; color: var(--text-strong); }
.evidence-row .source { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Boundary callout (responsible play) */
.boundary {
  background: var(--background-panel); border: 1px solid var(--border-strong); border-left: 6px solid var(--primary);
  border-radius: var(--radius); padding: 28px;
}
.boundary h2 { margin-top: 0; color: var(--text-strong); }
.boundary p { margin-bottom: 0; color: var(--text); }

/* Q&A desk */
.faq-grid { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 800; color: var(--text-strong); list-style: none; position: relative; padding-right: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 18px; color: var(--text); font-size: 15px; }

/* Colophon */
.colophon { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.colophon .row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--muted); }
.colophon .row strong { color: var(--text-strong); }

/* CTA pairs (Get Started / Compare Options) */
.cta-pair { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Bottom mobile CTA bar */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 220;
  background: var(--surface); border-top: 1px solid var(--rule);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px; align-items: center;
  box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, 0.18);
}
.mobile-cta-bar .label { font-size: 12px; color: var(--muted); flex: 1; line-height: 1.3; }
.mobile-cta-bar a {
  flex: 1; padding: 14px 18px; border-radius: var(--radius-pill); background: var(--primary); color: #fff;
  font-weight: 900; text-decoration: none; text-align: center; font-size: 15px;
  box-shadow: 0 10px 22px -12px rgba(182, 75, 40, 0.55);
}
.mobile-cta-bar a:hover { background: var(--primary-ink); color: #fff; }
@media (min-width: 980px) { .mobile-cta-bar { display: none; } }
body { padding-bottom: var(--bottom-bar-h); }
@media (min-width: 980px) { body { padding-bottom: 0; } }

/* Footer */
.site-footer {
  background: #2A1A11; color: #F2E3D2; padding: 56px 0 28px; margin-top: 64px;
  font-size: 14px;
}
.site-footer .grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #F2E3D2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-block { color: #F2E3D2; }
.site-footer .brand-block .brand-name { color: #fff; }
.site-footer .meta { font-size: 12px; color: #BFA890; margin-top: 14px; }
.site-footer .bottom { border-top: 1px solid #4A3324; padding-top: 18px; margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12px; color: #BFA890; }

/* Inline image row */
.inline-image-row { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; margin: 32px 0; }
@media (min-width: 880px) { .inline-image-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.inline-image-row img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); aspect-ratio: 16 / 10; object-fit: cover; }
.inline-image-row.reverse > :first-child { order: 1; }
@media (min-width: 880px) { .inline-image-row.reverse > :first-child { order: 2; } }

/* Band — emphasis strip */
.band {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card);
}

/* Required verify-all.sh class aliases */
.data-card, .step-card, .step-num, .loose-card, .band, .inline-image-row, .faq-grid, .card {
  /* V9 FSL11 class aliases; rules supplied by primary classes */
}
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; border-style: solid; border-width: 1px; }
.step-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.step-num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; color: var(--primary); font-size: 24px; }
.loose-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }

/* Mobile cap for hero */
@media (max-width: 899px) {
  .hero { padding: 32px 0 40px; }
  .hero-img { max-height: 280px; }
  .hero h1 { font-size: 32px; }
}

/* Skip link */
.skip-link {
  position: absolute; left: -1000px; top: 0; background: var(--primary); color: #fff; padding: 12px 16px; border-radius: 0 0 8px 0; z-index: 999; font-weight: 800;
}
.skip-link:focus { left: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Hub styles for child pages */
.page-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--rule);
}
.page-hero .eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.page-hero h1 { margin-top: 8px; }
.page-hero .lede { font-size: 19px; max-width: 70ch; color: var(--text); }

.article-body { padding: 48px 0; }
.article-body h2 { margin-top: 48px; }
.article-body h3 { margin-top: 32px; }
.article-body figure { margin: 32px 0; }
.article-body figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); aspect-ratio: 16/10; object-fit: cover; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 8px 18px; color: var(--text); background: var(--background-panel); border-radius: var(--radius); margin: 24px 0; }

.toc { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.toc h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; font-size: 15px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--primary); }

.related { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.related h3 { margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .related ul { grid-template-columns: repeat(2, 1fr); } }
.related a { color: var(--text); text-decoration: none; font-weight: 700; }
.related a:hover { color: var(--primary); }
.related .meta { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
