/* ============================================================
   MONEYLINE BET CALCULATOR — OLED DARK THEME
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --surface-3: #222222;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent-green: #00e676;
  --accent-blue: #448aff;
  --accent-gold: #ffd740;
  --accent-purple: #ce93d8;
  --radius: 18px;
  --radius-sm: 10px;
  --font-head: 'Outfit', 'Work Sans', system-ui, sans-serif;
  --font-body: 'Work Sans', 'Outfit', system-ui, sans-serif;
  --max-w: 1180px;
  --col-content: 720px;
  --header-h: 112px;
  color-scheme: dark;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Site wrap -------------------------------------------- */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Links ------------------------------------------------ */
a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover, a:focus { color: var(--accent-green); text-decoration-color: var(--accent-green); }
a:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   HEADER — Two-row layout
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 1;
}
.brand-logo { height: 32px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,230,118,0.3);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* CTA Buttons — always visible */
.header-ctas {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.cta-signup {
  background: var(--accent-green);
  color: #000;
  border: 2px solid var(--accent-green);
}
.cta-signup:hover, .cta-signup:focus {
  background: #69f0ae;
  border-color: #69f0ae;
  color: #000;
  box-shadow: 0 0 12px rgba(0,230,118,0.5);
}
.cta-login {
  background: transparent;
  color: var(--accent-green);
  border: 2px solid var(--accent-green);
}
.cta-login:hover, .cta-login:focus {
  background: rgba(0,230,118,0.08);
  color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0,230,118,0.3);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Header nav row */
.header-nav-row {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.nav-aside {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

nav#primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  align-items: center;
}

nav#primary-nav ul li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
nav#primary-nav ul li a:hover,
nav#primary-nav ul li a:focus {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}
nav#primary-nav ul li a[aria-current="page"] {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: var(--black);
  padding: 48px 24px;
}

.hero-deco {
  position: absolute;
  left: -0.1em;
  top: 50%;
  transform: translateY(-55%);
  font-family: var(--font-head);
  font-size: clamp(120px, 22vw, 300px);
  font-weight: 700;
  color: var(--surface-2);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-copy-right {
  text-align: right;
  margin-left: auto;
}

.hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.03em;
  max-width: 780px;
  margin: 0 0 12px auto;
}

.hero-home .hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 0 auto;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 8px;
}

/* ============================================================
   MAIN CONTENT — Section + sidebar layout
   ============================================================ */
main#main-content {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 60px;
  width: 100%;
}

.content-section {
  display: block;
}

.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

.content-primary {
  min-width: 0;
}

/* Figure / aside alternating in article > content-primary */
.content-figure,
.hero-figure,
.faq-icon-fig,
.privacy-figure,
.about-figure,
.feature-highlight-box,
.content-figure-deco {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.calc-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: 120px;
}
.calc-label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.calc-icon {
  font-size: 2rem;
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(0,230,118,0.6);
}

.fig-deco {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-3) 100%);
  height: 80px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.faq-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 80px;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255,215,64,0.5);
}

.privacy-fig-icon,
.about-fig-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 80px;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(68,138,255,0.4);
}

.feature-highlight-box {
  background: var(--surface);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.feature-highlight-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Page content typography */
.page-content {
  color: var(--text);
}
.page-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 1.5rem 0 0.5rem;
}
.page-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.4rem;
}
.page-content p {
  margin: 0 0 1rem;
  line-height: 1.75;
}
.page-content ul, .page-content ol {
  margin: 0 0 1rem 1.5rem;
  line-height: 1.75;
}
.page-content li { margin-bottom: 0.4rem; }
.page-content a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content a:hover { color: var(--accent-green); }
.page-content strong { color: #fff; }
.page-content code {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
  color: var(--accent-gold);
}
.page-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 0 0 1rem;
}
.page-content blockquote {
  border-left: 3px solid var(--accent-green);
  padding: 8px 0 8px 20px;
  margin: 0 0 1rem;
  color: var(--text-muted);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
.page-content th {
  background: var(--surface);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
}
.page-content td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.page-content tr:hover td { background: var(--surface-2); }
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.hero-img, .feature-hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* Byline */
.byline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: var(--font-body);
}
.byline strong { color: var(--text); }
.byline time { color: var(--accent-green); }

/* Stage label */
.stage-label {
  background: rgba(68,138,255,0.15);
  border: 1px solid var(--accent-blue);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  color: var(--accent-blue);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.content-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.sidebar-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links li a {
  display: block;
  padding: 9px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.sidebar-links li a:hover,
.sidebar-links li a:focus {
  color: var(--accent-green);
  padding-left: 6px;
}

.sidebar-author-box {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}
.sidebar-author-box h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 4px;
}
.sidebar-author-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.sidebar-author-box a {
  font-size: 0.82rem;
  color: var(--accent-blue);
  text-decoration: none;
}
.sidebar-author-box a:hover { color: var(--accent-green); }

/* ============================================================
   CARDS SECTION (home page child pages)
   ============================================================ */
.cards-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  grid-template-rows: auto;
}

.cards-section small.eyebrow,
.cards-section h2 {
  grid-column: 1 / -1;
}

.cards-section h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,230,118,0.12);
  border-color: rgba(0,230,118,0.3);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.card h3 a {
  color: #fff;
  text-decoration: none;
}
.card h3 a:hover { color: var(--accent-green); }
.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: auto;
}
.card-link:hover { color: var(--accent-green); }

/* ============================================================
   ABOUT — Author article
   ============================================================ */
.author-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 32px;
}

.author-section h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 6px;
}
.author-credentials {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(255,215,64,0.3);
}
.author-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   FAQ special
   ============================================================ */
.faq-content .page-content h2,
.faq-layout .page-content h2 {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 2.5rem;
}
.faq-content .page-content h2:first-child,
.faq-layout .page-content h2:first-child {
  border-top: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-brand-section {
  padding: 28px 24px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.footer-wordmark {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-links-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-links-left {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}
.footer-links-left a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links-left a:hover { color: var(--accent-green); }

.footer-links-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rg-notice {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 400px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================================
   RESPONSIVE — Mobile ≤768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .header-brand-row {
    padding: 8px 16px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .brand-name {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .header-ctas { gap: 6px; }
  .cta {
    font-size: 0.78rem;
    padding: 0 10px;
    min-height: 40px;
  }

  .nav-toggle { display: flex; }

  .header-nav-row { border-top: none; }

  .nav-aside {
    padding: 0;
  }

  nav#primary-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav#primary-nav.is-open {
    max-height: 600px;
  }

  nav#primary-nav ul {
    flex-direction: column;
    padding: 8px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
  }

  nav#primary-nav ul li { width: 100%; }
  nav#primary-nav ul li a {
    padding: 0 20px;
    min-height: 48px;
    font-size: 0.88rem;
    border-bottom: none;
    border-left: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0;
  }
  nav#primary-nav ul li a:hover,
  nav#primary-nav ul li a[aria-current="page"] {
    border-left-color: var(--accent-green);
    border-bottom: none;
  }

  .hero {
    min-height: 36vh;
    padding: 32px 16px;
  }
  .hero-deco { font-size: 28vw; }
  .hero-copy { text-align: left; }
  .hero-copy-right { text-align: left; margin-left: 0; }
  .hero-copy h1 { font-size: 1.6rem; margin-left: 0; }
  .hero-sub { margin-left: 0; }

  main#main-content { padding: 24px 16px 40px; }

  .with-sidebar {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .content-sidebar {
    position: static;
  }

  .cards-section {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .footer-links-section {
    flex-direction: column;
    gap: 12px;
  }
  .footer-links-right { text-align: left; }

  .footer-brand-section { padding: 20px 16px 16px; }
  .footer-links-section { padding: 16px 16px 24px; }
}

@media (max-width: 480px) {
  .brand-name { max-width: 110px; font-size: 0.82rem; }
  .cta { font-size: 0.72rem; padding: 0 8px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   FOCUS VISIBLE GLOBAL
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-green);
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}