/* ============================================================
   Sportsbook Offers — OLED Dark Theme
   Calistoga + Inter, neon-gold accents, chip-stack cards
   ============================================================ */

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

:root {
  --black:    #000000;
  --deep:     #121212;
  --surface:  #1a1a1a;
  --border:   #2a2a2a;
  --gold:     #f5c518;
  --gold-dim: #c9a010;
  --white:    #ffffff;
  --ink:      #e0e0e0;
  --muted:    #8a8a8a;
  --radius:   4px;
  --max-w:    1200px;
  --col-main: 720px;
  color-scheme: dark;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* -- Typography -------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Calistoga', Georgia, serif;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2.5rem; margin-bottom: .75rem; }
h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .5rem; }
h4 { font-size: 1rem; margin-top: 1.5rem; }

p { margin-bottom: 1.1rem; }

a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--white); text-decoration: none; }

.prose a { color: var(--gold); text-decoration: underline; }
.prose a:hover { color: var(--white); }

strong { color: var(--white); font-weight: 600; }
em { font-style: italic; }

small, .eyebrow {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: block;
  margin-bottom: .35rem;
}

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

/* -- Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.brand {
  font-family: 'Calistoga', Georgia, serif;
  font-size: 1.15rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 10px rgba(245,197,24,.35);
}
.brand:hover { color: var(--white); }

/* Primary nav desktop */
.primary-nav {
  flex: 1;
  overflow: hidden;
}
.primary-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  align-items: center;
}
.primary-nav p a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: .5rem .25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.primary-nav p a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Header CTAs */
.header-ctas {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
}
.cta-signup {
  background: var(--gold);
  color: var(--black);
  border: 2px solid var(--gold);
}
.cta-signup:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  box-shadow: 0 0 10px rgba(245,197,24,.5);
}
.cta-login {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.cta-login:hover {
  background: var(--gold);
  color: var(--black);
}

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

/* -- Hero: Home ------------------------------------------- */
.hero--home {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(245,197,24,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 680px;
  text-align: right;
  position: relative;
}
.hero-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  padding: .25rem .75rem;
  margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: 'Calistoga', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(245,197,24,.15);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* -- Page Hero (inner pages) ------------------------------ */
.page-hero {
  background: var(--deep);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
}
.page-hero--compare,
.page-hero--ranking {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1400 100%);
}
.page-hero--review {
  background: linear-gradient(135deg, #0d0d0d 0%, #0d1a0d 100%);
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero h1 {
  margin-top: .5rem;
  margin-bottom: .75rem;
}

/* Stage chip */
.stage-chip {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border-radius: 100px;
  padding: .2rem .65rem;
  margin-bottom: .75rem;
}
.stage-chip.stage-awareness  { background: #4fc3f7; color: var(--black); }
.stage-chip.stage-consideration { background: var(--gold); color: var(--black); }
.stage-chip.stage-decision   { background: #69f0ae; color: var(--black); }

/* Byline */
.byline {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 0;
  margin-top: .25rem;
}
.byline time { color: var(--gold-dim); }

/* -- Main Layout (content + sidebar) --------------------- */
main { flex: 1; padding: 2.5rem 1rem; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto;
  gap: 2.5rem;
}

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

/* -- Prose ------------------------------------------------ */
.prose {
  font-size: 1rem;
  line-height: 1.7;
  max-width: var(--col-main);
}
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: .75rem 1rem;
  background: var(--deep);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.prose table th {
  background: var(--surface);
  color: var(--gold);
  text-align: left;
  padding: .6rem .75rem;
  font-weight: 600;
  border-bottom: 2px solid var(--gold-dim);
}
.prose table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
}
.prose table tr:hover td { background: var(--deep); }
.prose img { max-width: 100%; border-radius: var(--radius); margin: 1.25rem 0; }
.prose h2, .prose h3 { color: var(--white); }
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85em;
  background: var(--surface);
  padding: .1em .35em;
  border-radius: 3px;
  color: var(--gold);
}

/* -- Sidebar --------------------------------------------- */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}
.sidebar-inner {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.sidebar-inner h3 {
  font-size: 1rem;
  margin-top: .75rem;
  margin-bottom: .75rem;
  color: var(--gold);
}
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0 0 .5rem;
}
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  padding: .55rem 0;
  font-size: .85rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.sidebar-links a:hover { color: var(--gold); }

/* -- Child-page cards ------------------------------------- */
.child-cards,
.review-strip {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.child-cards h2,
.review-strip h2 {
  margin-bottom: 1.25rem;
}

.card-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card-list li {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.card-list li:hover {
  border-bottom-color: var(--white);
  box-shadow: 0 4px 24px rgba(245,197,24,.12);
  transform: translateY(-2px);
}
.card-list a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 80px;
}
.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 500;
  color: var(--gold-dim);
  flex-shrink: 0;
  padding-top: .2rem;
  letter-spacing: .04em;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.card-body strong {
  font-size: .95rem;
  color: var(--white);
  line-height: 1.3;
}
.card-body small {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  display: block;
  margin-bottom: 0;
}

/* -- Author Section (About page) ------------------------- */
.author-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--deep);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.author-section h2 {
  margin-top: .5rem;
  color: var(--gold);
}
.author-credentials {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
  font-style: italic;
}
.author-bio {
  font-size: .95rem;
  line-height: 1.65;
}

/* -- Footer ---------------------------------------------- */
.site-footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem 0;
  margin-top: auto;
}

/* footer > section layout */
.site-footer > section {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand,
.footer-links {
  display: inline-block;
  vertical-align: top;
  width: 48%;
  padding: 0 0 2rem;
}

/* two-column footer via grid on footer's inner */
.site-footer {
  display: flex;
  flex-direction: column;
}
.footer-brand {
  display: block;
  width: 100%;
}

/* Reset and redo footer layout with actual sections */
.site-footer > section.footer-brand,
.site-footer > section.footer-links {
  max-width: none;
  margin: 0;
}

/* Use a wrapper trick — sections are direct children */
.site-footer {
  display: block;
  padding: 0;
}
.footer-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Since we can't use a wrapper div (footer > section×n rule),
   we lay the sections out with CSS grid on footer itself */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 2rem;
  row-gap: 0;
  padding: 2.5rem 1rem 0;
  max-width: 100%;
  background: var(--deep);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-brand  { grid-column: 1; grid-row: 1; padding: 0 0 1.5rem; max-width: var(--max-w); }
.footer-links  { grid-column: 2; grid-row: 1; padding: 0 0 1.5rem; }
.footer-bottom { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--border); padding: 1rem 0; }

/* Constrain footer to max-width */
.site-footer {
  max-width: 100%;
  box-sizing: border-box;
  padding-left: max(1rem, calc((100% - var(--max-w)) / 2));
  padding-right: max(1rem, calc((100% - var(--max-w)) / 2));
}

.footer-logo {
  font-family: 'Calistoga', Georgia, serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: .5rem;
}
.footer-desc {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
  line-height: 1.5;
}
.rg-notice {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: .5rem;
  border-left: 2px solid var(--gold-dim);
  padding-left: .6rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin-top: .5rem;
}
.footer-links li { margin-bottom: .35rem; }
.footer-links a {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .15s;
}
.footer-links a:hover { color: var(--gold); }
.trust-links { margin-top: 1rem !important; }

.footer-bottom p {
  font-size: .75rem;
  color: var(--muted);
  margin: 0;
}

/* -- Hero image ------------------------------------------ */
.hero-img {
  max-width: 100%;
  border-radius: var(--radius);
  margin-top: 1.25rem;
}

/* -- Heading decoration: small eyebrow before h2/h3 ------- */
/* handled by .eyebrow class on <small> before heading */

/* -- Focus visible --------------------------------------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* -- Scrollbar (webkit) ---------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* -- Mobile ≤768px --------------------------------------- */
@media (max-width: 768px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--deep);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 1rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav p {
    flex-direction: column;
    gap: 0;
  }
  .primary-nav p a {
    font-size: .95rem;
    padding: .75rem .5rem;
    min-height: 44px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav p a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .header-inner { position: relative; }

  .header-ctas { margin-left: auto; }
  .cta { font-size: .75rem; padding: 0 .75rem; min-height: 44px; }

  /* Hero */
  .hero--home {
    min-height: 100vh;
    padding: 5rem 1.25rem 3rem;
    justify-content: flex-start;
  }
  .hero-inner { text-align: left; max-width: 100%; }
  .hero-headline { font-size: clamp(2rem, 10vw, 3rem); }

  /* Layout */
  .wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .sidebar {
    position: static;
    order: -1;
  }

  /* Footer */
  .site-footer {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .footer-brand { grid-column: 1; }
  .footer-links { grid-column: 1; grid-row: 2; }
  .footer-bottom { grid-row: 3; }

  /* Cards */
  .card-list { grid-template-columns: 1fr; }

  /* Prose table scroll */
  .prose table { display: block; overflow-x: auto; }

  /* Page hero */
  .page-hero { padding: 2.5rem 1rem 1.75rem; }
}

/* -- Mobile 375px fine-tuning ----------------------------- */
@media (max-width: 400px) {
  .brand { font-size: 1rem; }
  .cta { font-size: .7rem; padding: 0 .6rem; }
  h1 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
}

/* -- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card-list li:hover { transform: none; }
}

/* -- Print ------------------------------------------------ */
@media print {
  .site-header, .sidebar, .hero--home, .page-hero, .header-ctas { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

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