/* ==========================================================================
   Bestbet guide — single stylesheet for every page
   Palette: brand red #BF0D2C, brand yellow #F6CB11, ink #111111, light bg
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --brand-red: oklch(51.2% 0.201 22);
  --brand-red-hover: oklch(45% 0.19 22);
  --brand-red-active: oklch(39% 0.17 22);
  --brand-red-soft: oklch(96.5% 0.02 22);
  --brand-red-line: oklch(88% 0.05 22);
  --brand-yellow: oklch(85.5% 0.173 93.1);
  --brand-yellow-hover: oklch(79% 0.16 93.1);
  --ink: oklch(17.8% 0 0);
  --ink-soft: oklch(24% 0.006 264);
  --text: oklch(29% 0.012 264);
  --muted: oklch(49.4% 0.025 261.7);
  --bg: oklch(97.3% 0.003 264.5);
  --surface: #fff;
  --border: oklch(92.7% 0.007 260.7);
  --border-strong: oklch(86% 0.009 260.7);
  --on-dark: oklch(94% 0.004 260);
  --on-dark-muted: oklch(78% 0.008 260);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .06);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, .1);
  --shadow-lg: 0 14px 34px rgba(17, 17, 17, .16);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Manrope", system-ui, sans-serif;
  --header-h: 104px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.72 var(--font-body);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0 0 12px;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; }
h2 { font-size: clamp(25px, 2.7vw, 33px); font-weight: 800; }
h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; text-transform: none; line-height: 1.3; }
h4 { font-size: 20px; font-weight: 700; }
main :is(h1, h2, h3, h4)[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
p { margin: 0 0 16px; }
a { color: var(--brand-red); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-red-active); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong, b { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }
:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 20px;
}
.container-narrow { max-width: 800px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font: 700 17px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-lg { padding: 15px 28px; font-size: 19px; }
.btn-sm { padding: 9px 16px; font-size: 15px; min-height: 44px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-hover); color: #fff; }
.btn-primary:active { background: var(--brand-red-active); }
.btn-outline { background: transparent; border-color: var(--brand-red); color: var(--brand-red); }
.btn-outline:hover { background: var(--brand-red-soft); border-color: var(--brand-red-active); color: var(--brand-red-active); }
.btn-yellow { background: var(--brand-yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--brand-yellow-hover); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { background: oklch(94.5% 0.005 264); border-color: var(--muted); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); color: #fff; }

/* ---------- Header ---------- */
/* The header bar carries the brand red; the utility strip above it stays ink so the
   red reads as the header and the palette keeps its dark tone. */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--brand-red); }
.site-header :focus-visible { outline-color: var(--brand-yellow); }
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.topbar-note { color: var(--on-dark); }
.topbar-note strong { color: var(--brand-yellow); }
.topbar-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar-links li { margin: 0; }
.topbar-links a { color: var(--on-dark-muted); text-decoration: none; }
.topbar-links a:hover { color: var(--brand-yellow); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}
.topbar p {
  margin: 0;
}
.site-header.is-scrolled .header-inner { box-shadow: 0 6px 18px rgba(17, 17, 17, .22); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 34px; width: auto; }
.brand-name {
  font: 800 22px/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  display: none;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover { background: var(--bg); color: var(--brand-red); }
.primary-nav a[aria-current="page"] { color: var(--brand-red); box-shadow: inset 0 -3px 0 var(--brand-red); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.site-header .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.site-header .btn-ghost:hover { background: var(--brand-red-hover); border-color: #fff; color: #fff; }
/* A red primary button would disappear into the red bar, so the header CTA inverts
   to the yellow accent — the only solid primary in that viewport on wide screens. */
.site-header .btn-primary { background: var(--brand-yellow); color: var(--ink); }
.site-header .btn-primary:hover { background: var(--brand-yellow-hover); color: var(--ink); }

/* The open/closed state lives in a checkbox, so the burger also works when scripts
   are blocked or the page is previewed without them. */
.nav-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  clip-path: inset(50%);
}
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--brand-yellow); border-color: var(--brand-yellow); }
.nav-state:focus-visible ~ .nav-toggle { outline: 3px solid var(--brand-yellow); outline-offset: 2px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(4px); }
.nav-state:checked ~ .nav-toggle .nav-toggle-bars { background: transparent; }
.nav-state:checked ~ .nav-toggle .nav-toggle-bars::before { transform: translateY(0) rotate(45deg); }
.nav-state:checked ~ .nav-toggle .nav-toggle-bars::after { transform: translateY(-2px) rotate(-45deg); }

/* Wide layout: the navigation sits directly on the red bar. */
@media (min-width: 1121px) {
  .primary-nav a { color: #fff; }
  .primary-nav a:hover { background: var(--brand-red-hover); color: #fff; }
  .primary-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--brand-yellow); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
  padding: 46px 0 42px;
}
.eyebrow {
  font: 700 13px/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-red);
  margin: 0 0 12px;
}
.lede { font-size: 18px; color: var(--text); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-facts { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero-facts li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15.5px; }
.hero-facts li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 9px;
  background: var(--brand-red);
  border-radius: 2px;
}
.hero-media { display: grid; gap: 12px; }
.media-link {
  display: block;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.media-link:hover { transform: translateY(-2px); border-color: var(--brand-red-line); box-shadow: var(--shadow-lg); }
.media-link img { border-radius: var(--radius-sm); }
.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
}
.hero-badge strong { font: 800 24px/1 var(--font-display); color: var(--brand-yellow); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 38px;
  align-items: center;
  padding: 30px 0 34px;
}
.page-hero .lede { font-size: 17.5px; }
.page-hero-media { padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.page-hero-media img { border-radius: var(--radius-sm); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "-"; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-red); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Content grid + sidebar ---------- */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding: 36px 0 60px;
}
.section { padding: 26px 0; }
.section:first-child { padding-top: 0; }
.section + .section { border-top: 1px solid var(--border); }
.prose h2 { position: relative; padding-bottom: 12px; margin-bottom: 14px; }
.prose h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--brand-red);
  border-radius: 2px;
}
.prose h3 { margin: 24px 0 8px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--brand-red);
  border-radius: 2px;
}
.prose ol { padding-left: 4px; list-style: none; counter-reset: steplist; }
.prose ol > li { position: relative; padding-left: 40px; counter-increment: steplist; }
.prose ol > li::before {
  content: counter(steplist);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  font: 700 14px/1 var(--font-body);
}

/* ---------- Figures ---------- */
.figure-inline { margin: 22px 0 24px; }
.figure-inline img { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.figure-link {
  display: block;
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.figure-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.figure-link:hover img { border-color: var(--brand-red-line); }
.figure-inline figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.figure-inline--portrait { text-align: center; }
.figure-inline--portrait .figure-link { display: inline-block; }
.figure-inline--portrait img { width: auto; max-height: 560px; margin: 0 auto; }
.figure-inline--portrait figcaption { text-align: left; }

/* ---------- Table of contents ---------- */
.toc {
  margin: 22px 0 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font: 700 16px/1.3 var(--font-body);
  color: var(--ink);
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.toc[open] summary { border-bottom: 1px solid var(--border); }
.toc[open] summary::after { transform: rotate(225deg); }
.toc ol {
  columns: 2;
  column-gap: 30px;
  margin: 0;
  padding: 14px 18px 16px 34px;
  font-size: 15px;
}
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand-red); text-decoration: underline; }

/* ---------- Tables ---------- */
.table-wrap {
  margin: 20px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.table-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font: 700 13px/1.4 var(--font-body);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.table-wrap th, .table-wrap td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap thead th { background: var(--surface); color: var(--ink); font-weight: 700; }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody th { font-weight: 600; color: var(--muted); width: 40%; }

/* ---------- Notes + banners ---------- */
.note {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-yellow);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
}
.note strong { color: var(--ink); }
.bonus-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 8px;
  padding: 24px;
  background: var(--brand-red);
  border-radius: var(--radius);
  color: #fff;
}
.bonus-banner h3 { color: #fff; margin: 0 0 6px; font-family: var(--font-display); font-size: 26px; text-transform: uppercase; }
.bonus-banner p { margin: 0; color: oklch(95% 0.02 22); max-width: 52ch; }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}
.info-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info-card h3 { margin: 0 0 8px; font-size: 17px; }
.info-card p { margin: 0 0 10px; font-size: 15px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card .info-value { font: 700 20px/1.2 var(--font-body); color: var(--brand-red); margin: 0 0 6px; }

/* ---------- FAQ ---------- */
.faq { list-style: none; margin: 20px 0 0; padding: 0; }
.faq li { margin: 0; }
.faq li + li { margin-top: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.faq details[open] { border-color: var(--brand-red-line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand-red);
  border-bottom: 2px solid var(--brand-red);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Author ---------- */
.author-box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--brand-red);
  color: #fff;
  border-radius: 50%;
  font: 800 24px/1 var(--font-display);
  letter-spacing: .02em;
}
.author-name { margin: 0 0 2px; font: 700 20px/1.2 var(--font-body); color: var(--ink); }
.author-role { margin: 0 0 10px; font-size: 13.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-red); font-weight: 700; }
.author-box p { font-size: 15.5px; }
.author-meta { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Sidebar ---------- */
.content-aside { position: relative; }
.aside-inner { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
/* A sticky column taller than the viewport would strand its lower cards, so cap it
   and let the column scroll on its own while the article keeps its position. */
@media (min-width: 1121px) {
  .aside-inner {
    max-height: calc(100vh - var(--header-h) - 32px);
    max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 4px;
  }
}
.aside-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.aside-eyebrow { margin: 0 0 6px; font: 700 12px/1 var(--font-body); text-transform: uppercase; letter-spacing: .09em; color: var(--brand-red); }
.aside-title { margin: 0 0 8px; font: 800 24px/1.1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.aside-text { margin: 0; font-size: 14.5px; color: var(--muted); }
.aside-actions { display: grid; gap: 10px; margin: 14px 0 0; }
.aside-facts { display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--border-strong); }
.aside-facts > div { display: flex; justify-content: space-between; gap: 12px; }
.aside-facts dt { font-size: 14px; color: var(--muted); }
.aside-facts dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; }
.aside-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--border-strong); font-size: 12.5px; color: var(--muted); }
.aside-links ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.aside-links li { margin: 0; }
.aside-links a {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.aside-links a:hover { background: var(--bg); color: var(--brand-red); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 3px solid var(--brand-red);
  font-size: 14.5px;
}
.site-footer h3 {
  margin: 0 0 14px;
  font: 700 17px/1.2 var(--font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--brand-yellow); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--brand-yellow); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 34px;
  padding: 40px 0 30px;
}
.footer-logo img { height: 34px; width: auto; }
.footer-desc { margin: 16px 0 0; color: var(--on-dark-muted); }
.footer-icons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--on-dark-muted); }
.trust-item img { width: 34px; height: 34px; }
.footer-col ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: inline-block; padding: 3px 0; }

.footer-contact { margin: 14px 0 0; font-size: 13.5px; }
.footer-contact strong { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-legal li { margin: 0; }
.age-mark { width: 44px; height: 44px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 70;
  align-items: center;
  gap: 10px;
  padding: 8px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.sticky-cta .btn { flex: 1 1 0; min-height: 44px; }
.sticky-cta-close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 700 15px/1 var(--font-body);
  cursor: pointer;
}
.sticky-cta-close:hover { background: oklch(94.5% 0.005 264); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aside-inner { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-links ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    margin: 0;
    padding: 12px 20px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-state:checked ~ .primary-nav { display: block; }
  .primary-nav :focus-visible { outline-color: var(--brand-red); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { padding: 8px 12px; font-size: 16px; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand-red); background: var(--bg); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  :root { --header-h: 104px; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 32px 0; }
  .hero-media, .page-hero-media { max-width: 560px; }
  .sticky-cta.is-visible { display: flex; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  /* keep the last page content scrollable clear of the fixed access bar */
  .footer-bottom { padding-bottom: 104px; }
  .table-wrap:focus-visible { outline-offset: -3px; }
    .header-inner {
    gap: 10px;
  }
  .topbar {
    display: none;
  }
  .header-inner {
    min-height: 66px;
  }

    .sticky-cta { left: 4px; right: 4px; bottom: 4px; gap: 6px; }
  .sticky-cta .btn { padding: 10px 12px; font-size: 15px; }
  .sticky-cta-close { width: 40px; height: 40px; }

  .sticky-cta .btn {
    height: 40px;
    min-height: auto;
    padding: 0 15px;
  }

}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar-links { display: none; }
  .header-actions .btn-ghost { display: none; }
  .brand img { height: 26px; }
  .brand-name { font-size: 19px; }
  .aside-inner { grid-template-columns: minmax(0, 1fr); }
  .aside-links ul { grid-template-columns: minmax(0, 1fr); }
  .toc ol { columns: 1; padding-left: 30px; }
  .author-box { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .author-avatar { width: 48px; height: 48px; font-size: 19px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .container { padding-inline: 16px; }
  .section { padding: 22px 0; }
}
@media (max-width: 560px) {
  .brand-name { display: none; }
  .topbar-inner { min-height: 30px; }
  .topbar-note { font-size: 12px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .bonus-banner { padding: 20px; }
  .bonus-banner .btn { width: 100%; }

  .brand img {
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .sticky-cta, .content-aside, .skip-link { display: none; }
  body { background: #fff; font-size: 12pt; }
}



.payments-wrap {
  margin: 30px 0 30px;
}
.payments-wrap h4 {
  color: #fff;
  margin: 0 0 18px;
}
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}