/* Illinois Sportsbook Promos — Parallax Storytelling Theme
   Palette: #0D1B2A (navy) / #F5A623 (amber) / #F5F5F5 (chalk)
   Typography: Barlow Condensed / Barlow
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D1B2A;
  --navy-mid: #162436;
  --navy-light: #1e3a54;
  --amber: #F5A623;
  --amber-dark: #c8871a;
  --chalk: #F5F5F5;
  --chalk-dim: #d4d4d4;
  --ink: #0D1B2A;
  --text-on-dark: #F5F5F5;
  --text-muted: #9ab0c4;
  --radius: 10px;
  --max-prose: 72ch;
  --max-site: 1280px;
  --header-h: 64px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  background: var(--chalk);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--chalk); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--navy); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: var(--navy); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
a { color: var(--amber-dark); text-decoration: underline; }
a:hover { color: var(--amber); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

.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;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--amber);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: var(--header-h);
  max-width: var(--max-site);
  margin: 0 auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--amber);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.brand-mark img { width: 36px; height: 36px; border-radius: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--amber);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  margin-left: 0.5rem;
}

.toggle-bar {
  display: block;
  width: 20px; height: 2px;
  background: var(--chalk);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-ctas {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  align-items: center;
  flex-shrink: 0;
}

/* CTA Buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  height: 44px;
  min-width: 80px;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.cta-signup {
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--amber);
}
.cta-signup:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--chalk);
}

.cta-login {
  background: transparent;
  color: var(--chalk);
  border: 2px solid var(--chalk);
}
.cta-login:hover {
  background: var(--chalk);
  color: var(--navy);
}

/* Nav aside */
.nav-aside {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-light);
}

.nav-aside nav > ul {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  max-width: var(--max-site);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav-aside nav > ul > li > a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--chalk-dim);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-aside nav > ul > li > a:hover,
.nav-aside nav > ul > li > a[aria-current="page"] {
  color: var(--amber);
}

/* Body push */
main, #main-content {
  margin-top: var(--header-h);
}

/* ===== HERO SECTIONS ===== */
.page-hero {
  position: relative;
  min-height: 70vh;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-figure,
.ranking-hero-figure,
.compare-hero-figure,
.review-hero-figure,
.about-hero-figure,
.inner-hero-figure {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  gap: 2rem;
}

.hero-copy,
.ranking-hero-copy,
.compare-hero-copy,
.review-hero-copy,
.about-hero-copy,
.inner-hero-copy {
  flex: 1;
  z-index: 2;
  max-width: 640px;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-on-dark);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 52ch;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  display: block;
}

.hero-media {
  position: relative;
  min-height: 200px;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-bg-numeral {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 16rem);
  color: rgba(245, 166, 35, 0.12);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  right: -0.1em;
  bottom: -0.1em;
}

/* Parallax Hero specific */
.parallax-hero { will-change: transform; }

/* ===== STAGE BADGE ===== */
.stage-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background: var(--amber);
  color: var(--navy);
}

.stage-consideration { background: var(--navy-light); color: var(--chalk); }
.stage-decision { background: var(--amber); color: var(--navy); }
.stage-awareness { background: transparent; border: 1px solid var(--amber); color: var(--amber); }

/* ===== BYLINE ===== */
.byline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.byline time { color: var(--chalk-dim); }
.author-name { color: var(--amber); font-weight: 600; }

/* ===== CONTENT SECTION + LAYOUT ===== */
.content-section {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.layout-with-aside {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

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

.content-body h2 { margin-top: 2rem; margin-bottom: 0.4rem; }
.content-body h3 { margin-top: 1.5rem; margin-bottom: 0.4rem; }
.content-body p { max-width: var(--max-prose); }
.content-body a { color: var(--amber-dark); }
.content-body a:hover { color: var(--amber); }
.content-body ul, .content-body ol { max-width: var(--max-prose); }

/* Tables in content */
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.content-body th {
  background: var(--navy);
  color: var(--chalk);
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.content-body td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--chalk-dim);
  vertical-align: top;
}
.content-body tr:nth-child(even) td { background: rgba(13,27,42,0.04); }

/* ===== SIDEBAR ===== */
.content-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--chalk);
}

.sidebar-hdg {
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: 0.2rem;
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-hdg:first-child { margin-top: 0; }

.content-sidebar p.subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.sidebar-links li a {
  display: block;
  padding: 0.4rem 0;
  color: var(--chalk-dim);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sidebar-links li a:hover { color: var(--amber); text-decoration: none; }

/* ===== SUBTITLE CLASS ===== */
p.subtitle, .subtitle {
  font-size: 1.05rem;
  color: #5a7a96;
  margin-bottom: 1rem;
  font-weight: 400;
  max-width: 60ch;
}

.content-sidebar .subtitle { color: var(--text-muted); font-size: 0.8rem; }

/* Hero subtitle */
.page-hero .subtitle { color: rgba(245,245,245,0.75); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  height: 48px;
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--chalk);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  height: 44px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--chalk);
}

/* ===== HOME CHILD PAGES TABLE ===== */
.home-child-pages {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--navy);
}

.home-child-pages h2 {
  color: var(--chalk);
  margin-bottom: 0.3rem;
}

.home-child-pages .subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.child-table {
  width: 100%;
  border-collapse: collapse;
}

.child-table tbody tr {
  border-bottom: 1px solid var(--navy-light);
  transition: background var(--transition);
}
.child-table tbody tr:hover { background: var(--navy-light); }

.child-table td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
  color: var(--chalk);
}

.child-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--amber);
  width: 3rem;
  text-align: center;
}

.child-info a {
  color: var(--chalk);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.15rem;
}
.child-info a:hover { color: var(--amber); }
.child-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.child-cta { width: 140px; text-align: right; }
.child-cta .btn-outline { border-color: var(--amber); color: var(--amber); }
.child-cta .btn-outline:hover { background: var(--amber); color: var(--navy); }

/* ===== RANK INDEX ===== */
.rank-index { margin-bottom: 1.5rem; }

.rank-index-list {
  list-style: none;
  padding: 0;
  counter-reset: rank-ctr;
}

.rank-index-list li {
  counter-increment: rank-ctr;
  margin-bottom: 0;
}

.rank-index-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  color: var(--chalk-dim);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  min-height: 44px;
  transition: color var(--transition);
}

.rank-index-list li a::before {
  content: counter(rank-ctr);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--amber);
  color: var(--navy);
  border-radius: 50%;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.rank-index-list li a:hover { color: var(--amber); }

/* ===== AUTHOR SECTION ===== */
.author-section {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3rem 2rem 1rem;
}

.author-figure {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--chalk);
  border-left: 4px solid var(--amber);
}

.author-avatar {
  border-radius: 50%;
  width: 80px; height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.author-avatar-placeholder {
  width: 80px; height: 80px;
  background: var(--amber);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.author-name-hdg {
  color: var(--amber);
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.author-figure figcaption .subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.author-bio {
  color: var(--chalk-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: var(--chalk);
  margin-top: 0;
}

.footer-cta-block {
  background: var(--amber);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-cta-hdg {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-cta-block .btn-primary {
  background: var(--navy);
  color: var(--chalk);
  border-color: var(--navy);
}
.footer-cta-block .btn-primary:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer-col dt {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--navy-light);
}

.footer-col dd {
  margin: 0 0 0.4rem 0;
}

.footer-col dd a {
  color: var(--chalk-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
  display: block;
  padding: 0.2rem 0;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.footer-col dd a:hover { color: var(--amber); }

.rg-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.25rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--navy-light);
  max-width: var(--max-site);
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-trust {
  font-size: 0.8rem;
}

.footer-trust a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-trust a:hover { color: var(--amber); }

/* ===== CARD LIFT ===== */
.card-lift {
  background: var(--chalk);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(13,27,42,0.12);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-lift:hover {
  box-shadow: 0 8px 32px rgba(13,27,42,0.2);
  transform: translateY(-3px);
}

/* ===== STAGGER ANIMATION ===== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-child {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .stagger-child.visible {
    opacity: 1;
    transform: none;
  }

  .parallax-hero .hero-bg-numeral {
    will-change: transform;
  }
}

/* ===== RESPONSIVE ===== */

/* Desktop nav visible */
@media (min-width: 769px) {
  .nav-toggle { display: none; }
  .nav-aside[hidden] { display: block !important; }
  .nav-aside { display: block; }
}

@media (max-width: 1100px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .layout-with-aside {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    position: static;
  }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-aside nav > ul {
    flex-direction: column;
  }

  .nav-aside nav > ul > li > a {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: 52px;
    padding: 0.75rem 1rem;
  }

  .hero-figure,
  .ranking-hero-figure,
  .compare-hero-figure,
  .review-hero-figure,
  .about-hero-figure,
  .inner-hero-figure {
    padding: 2rem 1rem 1.5rem;
  }

  .page-hero { min-height: auto; padding-top: 1rem; padding-bottom: 2rem; }

  .header-ctas {
    gap: 0.35rem;
  }

  .cta {
    padding: 0 0.6rem;
    font-size: 0.85rem;
    height: 44px;
    min-width: 64px;
  }

  .content-section { padding: 2rem 1rem; }

  .footer-columns {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .child-table { font-size: 0.9rem; }
  .child-cta { display: none; }

  .author-figure {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-cta-block { padding: 2rem 1rem; }
}

/* 375px safety check */
@media (max-width: 400px) {
  body { font-size: 16px; }

  .cta {
    padding: 0 0.5rem;
    font-size: 0.8rem;
    min-width: 56px;
  }

  h1 { font-size: 1.8rem; }

  .hero-bg-numeral { font-size: 6rem; }
}

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