/* BetData Blue Slate. Brand interactions are blue; match/result semantics
   are deliberately separate. Keep these shared tokens in sync across locales. */
:root {
  color-scheme: light;
  --paper: #eaf1fa;
  --ink: #111a31;
  --muted: #4e5e73;
  --surface: #fff;
  --white: #fff;
  --surface-soft: #f3f7fc;
  --line: #d3deec;
  --line-strong: #bacadc;
  --brand: #034ee8;
  --brand-hover: #003eb9;
  --brand-soft: #edf3ff;
  --table-head: #536e94;
  --table-stripe: #edf3fa;
  --green: #087950;
  --surface-green: #eaf7ef;
  --success-line: #b7dbc6;
  --lime: #c1d6ff;
  --lime-soft: #edf3ff;
  --accent-soft: #edf3ff;
  --shadow-soft: 0 4px 16px rgb(22 45 80 / .06);
  --shadow-hover: 0 8px 22px rgb(22 45 80 / .10);
  --shadow: 0 14px 38px rgb(22 45 80 / .12);
  --shell-pad: clamp(16px, 2vw, 36px);
  --shell-width: 1752px;
  --radius-control: 9px;
  --radius-panel: 12px;
  --font-ui: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { background: var(--paper); color: var(--ink); }
body { font-family: var(--font-ui); }
h1, h2, h3, .seo-page .seo-page-title, .legal-page h1,
.consent-banner strong { font-family: var(--font-ui); }
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
:where(.forecast-table, .legal-table, .stats-grid, .confidence-value, .price, .result-score, .win-probabilities) {
  font-variant-numeric: tabular-nums;
}
.eyebrow, .eyebrow.green, .text-link, .auth-links, .auth-card a:not(.button),
.account-card a:not(.button), .consent-banner a, .footer-company a, .footer-legal a,
.footer-link-button:hover, .legal-page a:not(.button), .legal-consent a,
.breadcrumbs a, .blog-read, .seo-links span, .article-sidebar a {
  color: var(--brand-hover);
}
.eyebrow:before, .archive-nav a[aria-current="page"], .feature-strip strong:before {
  border-color: var(--brand);
}
.message { background: var(--surface-green); color: #15583b; }
.message.error { background: #fff0ee; color: #8d2922; }

/* Primary navigation follows the desktop mock; the same controls form a
   fixed mobile dropdown so opening it never changes the header height. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 72px);
  height: 72px;
  width: 100%;
  padding: 0 max(var(--shell-pad), calc((100% - var(--shell-width) + 2 * var(--shell-pad)) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.site-header .brand { display: flex; flex: 0 0 auto; justify-content: flex-start; }
.site-header .brand-logo { width: clamp(136px, 13vw, 206px); }
.site-header #site-navigation {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  padding: 0;
  overflow: visible;
}
.site-nav-main, .site-nav-utility, .site-nav-account {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 16px);
}
.site-header :is(.site-nav-main, .site-nav-account) > a, .site-header .nav-form .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px clamp(8px, 1vw, 15px);
  border-radius: var(--radius-control);
  color: var(--ink);
  font: 800 clamp(13px, 1.22vw, 17px)/1.2 var(--font-ui);
  white-space: nowrap;
}
.site-header :is(.site-nav-main, .site-nav-account) > a:hover, .site-header .nav-form .link-button:hover {
  color: var(--brand-hover);
  background: var(--brand-soft);
}
.site-header .site-nav-main > a[aria-current], .site-header .site-nav-account > a[aria-current] {
  color: #fff;
  background: var(--brand);
}
.site-header .site-nav-account > .nav-auth:not([aria-current]) {
  color: var(--brand-hover);
  border: 1px solid var(--brand);
}
.site-header .site-nav-account > .nav-mobile-signup { display: none; }
.site-header .language-switch {
  display: flex;
  align-items: center;
  gap: 1px;
  width: auto;
  padding: 0 13px 0 0;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
.site-header .language-switch button {
  min-height: 40px;
  padding: 6px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: 800 clamp(12px, 1.1vw, 15px)/1 var(--font-ui);
}
.site-header .language-switch button.active, .site-header .language-switch button:hover {
  color: var(--brand-hover);
  background: var(--brand-soft);
}
.site-header .mobile-menu-toggle {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
}
.language-suggestion { background: var(--brand-soft); }
.language-suggestion a { color: var(--brand-hover); }

.button { border-radius: var(--radius-control); font-weight: 800; }
.button.primary, .button.primary:visited {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.button.primary:hover { background: var(--brand-hover); color: #fff; }
.button.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.button.secondary:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-hover); }
:is(.auth-card, .journal-filters, .league-tools) :is(input:not([type="checkbox"]), select) {
  border-color: var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
}
:is(.auth-card, .journal-filters, .league-tools) :is(input:not([type="checkbox"]), select):focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(3 78 232 / .13);
}
input[type="checkbox"] { accent-color: var(--brand); }
.legal-consent input { accent-color: var(--brand); }

/* Same shell hierarchy for the other existing route families. */
:is(.hero, .page-head, .pricing-head, .account-head, .league-directory, .article-page, .auth-shell) {
  padding-top: clamp(26px, 4vw, 58px);
}
.seo-page, .legal-page { margin-top: clamp(28px, 4vw, 60px); padding-top: 0; }
.article-page { margin-top: clamp(16px, 2vw, 32px); }
.hero { background: transparent; gap: clamp(22px, 4.5vw, 68px); }
.hero h1, .pricing-head h1, .account-head h1, .page-head:not(.forecast-page-head) h1,
.league-directory > h1, .article-head h1, .seo-page h1, .legal-page h1 {
  color: var(--ink);
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.hero h1 mark { background: none; color: var(--brand-hover); }
.hero .signal-panel { transform: none; background: var(--surface); }
.signal-panel:before, .auth-card:before, .account-card:before, .price-card:before,
.price-card.featured:before, .match-hero:before { background: var(--brand); }
.feature-strip, .price-card, .auth-card, .account-card, .league-grid > a, .league-matches > a,
.blog-card, .article-body, .seo-card-grid section, .stat-card, .table-preview-cta, .signal-panel {
  border-color: var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: none;
}
.auth-card:has(#decimal-odds) { margin-top: 20px; }
.price-card.featured { border: 2px solid var(--brand); transform: none; }
.price-card .popular, .status-pill, .article-meta a { color: var(--brand-hover); background: var(--brand-soft); }
.status-pill[data-paid-access="open"] { background: var(--surface-green); color: var(--green); }
.status-pill[data-paid-access="closed"] { color: var(--muted); background: var(--surface-soft); }
.league-grid > a:hover, .blog-card:hover, .league-matches > a:hover {
  border-color: var(--brand);
  transform: none;
  box-shadow: var(--shadow-soft);
}
.league-grid > a:after, .blog-read b, .seo-links a:after {
  background: var(--brand-soft);
  color: var(--brand-hover);
}
.archive-nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.forecast-league-summary a:hover, .legal-nav a:hover { color: var(--brand-hover); border-color: var(--brand); }
.forecast-league-summary a, .journal-notice, .journal-filters,
.article-disclaimer, .editorial-note, .seo-page > section, .analysis-note {
  background: var(--surface-soft);
  border-color: var(--line);
}
.stats-grid section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  color: var(--ink);
}
.stats-grid :is(strong, span), .performance-badge strong { color: var(--ink); }
.home-probability-track, .confidence-meter { background: var(--brand-soft); }
.home-probability-track > span, .confidence-meter i { background: var(--brand); }
.home-real-forecast:before { background: var(--brand); }
.home-real-pick:not(.home-real-pick-recommended) { background: var(--surface-soft); border-color: var(--line); }
.home-real-pick-recommended, .prediction-card .recommendation-panel {
  background: var(--surface-green);
  border-color: var(--success-line);
}
.home-real-pick-recommended .home-probability-track > span, .prediction-card .recommendation-panel .confidence-meter i {
  background: var(--green);
}
.prediction-card .probability-panel, .prediction-card .locked, .locked {
  background: var(--surface-soft);
  border-color: var(--line);
}
.prediction-card-cta, .locked a, .win-probabilities strong { color: var(--brand-hover); }
.prediction-card-cta b, .home-real-forecast .prediction-card-cta b {
  color: var(--brand-hover);
  background: var(--brand-soft);
}
.outcome.won, .outcome.half_won { color: #126744; background: var(--surface-green); }
.outcome.lost, .outcome.half_lost { color: #952f2a; background: #fdeceb; }
.outcome.void, .outcome.pending, .outcome.unsupported {
  color: var(--muted);
  background: var(--surface-soft);
}
.table-wrap { background: var(--surface); border-color: var(--line-strong); border-radius: var(--radius-panel); box-shadow: none; }
.forecast-table thead th, .legal-table thead th {
  background: var(--table-head);
  border-color: #6984a6;
  color: #fff;
}
.forecast-table tbody tr:nth-child(even), .legal-table tbody tr:nth-child(even) { background: var(--table-stripe); }
.forecast-table tbody tr:hover { background: #e0ebfc; }
.forecast-table thead .table-sort-button { color: inherit; }
.forecast-table thead .table-sort-button:focus-visible { outline-color: #fff; }
.forecast-table th[aria-sort="ascending"] .table-sort-button:after,
.forecast-table th[aria-sort="descending"] .table-sort-button:after { color: #fff; }
footer { background: var(--surface); border-color: var(--line); }
.consent-banner { border-color: var(--line-strong); border-radius: var(--radius-panel); box-shadow: var(--shadow); }

@media (max-width: 960px) {
  .site-header { flex-direction: row; align-items: center; height: 64px; padding: 0 var(--shell-pad); }
  .site-header #site-navigation {
    position: fixed;
    inset: 72px var(--shell-pad) auto auto;
    display: none;
    width: min(340px, calc(100vw - 2 * var(--shell-pad)));
    max-height: calc(100dvh - 86px);
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: none;
  }
  .site-header.menu-open #site-navigation { display: grid; align-items: stretch; grid-template-columns: minmax(0, 1fr); }
  .site-header .mobile-menu-toggle { display: block; margin-left: auto; }
  .site-nav-main, .site-nav-utility, .site-nav-account { display: grid; gap: 5px; }
  .site-header .site-nav-main > a, .site-header .site-nav-account > a, .site-header .nav-form .link-button {
    justify-content: flex-start;
    width: 100%;
    padding-inline: 12px;
    font-size: 15px;
  }
  .site-header .site-nav-account > .nav-mobile-signup {
    display: flex;
    justify-content: center;
    margin: 0;
    background: var(--brand);
  }
  .site-header .site-nav-account > .nav-mobile-signup:hover { background: var(--brand-hover); }
  .site-header .language-switch { width: max-content; padding: 0; border: 0; }
  .site-header .language-switch button { font-size: 14px; }
  .site-nav-utility { padding-top: 7px; border-top: 1px solid var(--line); }
  .site-header .nav-form { width: 100%; }
}
@media (max-width: 620px) {
  .hero { padding-inline: var(--shell-pad); }
  :is(.pricing-head, .account-head) { padding-inline: var(--shell-pad); }
  .hero h1, .article-head h1, .seo-page h1, .legal-page h1 { font-size: clamp(32px, 8.5vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header *, .league-grid > a, .blog-card { transition: none; }
}
