/* ===== Moneyline Bet Hub — style.css ===== */
/* Flat 2D minimalist, #1B2A4A navy / #F5A623 amber / #FFFFFF */

@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

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

:root {
  --navy: #1B2A4A;
  --amber: #F5A623;
  --white: #FFFFFF;
  --ink: #1B2A4A;
  --ink-muted: #4A5568;
  --ink-light: #718096;
  --surface: #F7F8FA;
  --border: #D2D8E3;
  --radius-card: 28px;
  --radius-btn: 6px;
  --font-head: 'Amatic SC', 'Georgia', serif;
  --font-body: 'Cabin', 'Segoe UI', system-ui, sans-serif;
  --header-h: 68px;
  --sidebar-w: 220px;
  --content-max: 820px;
  --page-max: 1200px;
}

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--amber); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4rem; }

/* ---- Utility ---- */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}
.header__inner { max-width: var(--page-max); margin: 0 auto; padding: 0 1.25rem; }

.header__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h);
}

.brand-link { text-decoration: none; flex-shrink: 0; }
.brand-wordmark {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-logo { width: 32px; height: 32px; }

/* CTA buttons — always visible */
.header__ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.cta-signup {
  background: var(--amber);
  color: var(--navy);
  border: 2px solid var(--amber);
}
.cta-signup:hover { background: #e0951a; border-color: #e0951a; color: var(--navy); }
.cta-login {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.cta-login:hover { background: var(--white); color: var(--navy); }

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--amber);
  border-radius: var(--radius-btn);
  cursor: pointer;
  flex-shrink: 0;
  padding: 8px;
  transition: background 150ms ease;
}
.nav-toggle:hover { background: rgba(245,166,35,0.15); }
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 150ms ease, opacity 150ms ease;
}

/* Primary Nav */
.primary-nav {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.nav-link:hover, .nav-link--active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ---- Main & Sections ---- */
main { flex: 1; }

.section {
  display: flex;
  gap: 2rem;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section__content {
  flex: 1;
  min-width: 0;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  order: -1; /* Left of content */
}
.sidebar__heading {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  border-bottom: 3px solid var(--amber);
  padding-bottom: 0.35rem;
}
.sidebar__heading span { display: block; }
.sidebar__link {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
  border-radius: 0 4px 4px 0;
}
.sidebar__link:hover {
  border-left-color: var(--amber);
  background: rgba(245,166,35,0.08);
  color: var(--navy);
}
.sidebar__link--trust {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}
.sidebar__hint { font-size: 0.8rem; color: var(--ink-light); margin-top: 0.5rem; }

/* ---- Hero (Home) ---- */
.hero--home {
  background: var(--navy);
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  padding: 3.5rem 1.25rem 2.5rem;
  min-height: 45vh;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero__decoration {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.hero__badge {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__copy { max-width: 660px; }
.hero__h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: #e0951a; color: var(--navy); }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* ---- Section Headings ---- */
.section__heading {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section__heading span { display: block; }
.section__figure {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}
.section__figure-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border-left: 3px solid var(--amber);
  padding-left: 0.4rem;
}

/* ---- Page h1 ---- */
.page-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

/* ---- Byline ---- */
.byline {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.byline time { font-weight: 600; color: var(--navy); }

/* ---- Stage label ---- */
.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.stage-label--awareness { background: rgba(27,42,74,0.1); color: var(--navy); }
.stage-label--consideration { background: rgba(245,166,35,0.2); color: #7a4f00; }
.stage-label--decision { background: var(--amber); color: var(--navy); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.breadcrumb a { color: var(--navy); text-decoration: underline; }
.breadcrumb a:hover { color: var(--amber); }

/* ---- Prose ---- */
.prose { max-width: var(--content-max); }
.prose p { margin-bottom: 1rem; }
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 0.6rem;
}
.prose h2 span { display: block; }
.prose h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.4rem 0 0.5rem;
}
.prose h3 span { display: block; }
.prose h4 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 0.4rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--navy); text-decoration: underline; font-weight: 600; }
.prose a:hover { color: var(--amber); }
.prose strong { font-weight: 700; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.prose th {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 0.75rem;
  text-align: left;
  font-weight: 700;
}
.prose td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.prose tr:nth-child(even) td { background: var(--surface); }
.prose blockquote {
  border-left: 4px solid var(--amber);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--surface);
  font-style: italic;
  color: var(--ink-muted);
}
.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
}

/* ---- Cards ---- */
.child-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.card--outlined {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.25rem 1rem;
  background: var(--white);
  transition: border-color 200ms ease;
  height: 100%;
}
.card--outlined:hover { border-color: var(--amber); }
.card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.card__title span { display: block; }
.card__desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.card__meta { font-size: 0.75rem; color: var(--ink-light); margin-bottom: 0.5rem; }
.card__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 1px;
  transition: color 150ms ease;
}
.card__link:hover { color: var(--amber); }

/* ---- Topic Grid ---- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.topic-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 150ms ease;
}
.topic-card:hover { opacity: 0.88; }
.topic-card--primary { background: var(--navy); color: var(--white); }
.topic-card--secondary { background: var(--amber); color: var(--navy); }
.topic-card__label { flex: 1; }
.topic-card__arrow { margin-left: 0.5rem; font-size: 1rem; }

/* ---- Topic hero fig ---- */
.topic-hero-fig {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  max-width: 280px;
}
.topic-hero-fig__icon { font-size: 2rem; }
.topic-hero-fig__cap { font-size: 0.85rem; font-weight: 700; color: var(--navy); }

/* ---- Article hero ---- */
.article-hero { margin: 1rem 0 1.5rem; border-radius: 12px; overflow: hidden; }
.article-hero__img { width: 100%; height: auto; display: block; }

/* ---- Ranking notice ---- */
.ranking-notice {
  background: rgba(245,166,35,0.12);
  border: 2px solid var(--amber);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.ranking-notice span { font-weight: 700; }

/* ---- Author div ---- */
.author-section { margin-top: 2.5rem; }
.author-section__heading {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--amber);
  padding-bottom: 0.35rem;
}
.author-section__heading span { display: block; }
.author-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  background: var(--surface);
}
.author-card__name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.author-card__credentials {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.author-card__bio {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ---- About / Privacy misc figs ---- */
.about-fig, .privacy-fig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 12px;
  font-size: 1.8rem;
  margin: 0.75rem 0 1rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}
.footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__dl {
  flex: 1;
  min-width: 180px;
}
.footer__dl-heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75rem;
}
.footer__dl dt { margin-bottom: 0.1rem; }
.footer__dl dt a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 150ms ease;
  display: inline-block;
  padding: 0.2rem 0;
  min-height: 32px;
  line-height: 1.4;
}
.footer__dl dt a:hover { color: var(--amber); }
.footer__dl dd { margin: 0 0 0.35rem 0; font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.footer__rg {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.5) !important;
  display: block;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.footer__rg a { color: rgba(255,255,255,0.5); }

.footer__bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__wordmark {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  opacity: 0.9;
  flex-shrink: 0;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
}

/* ---- Scroll reveal animations ---- */
@media (prefers-reduced-motion: no-preference) {
  .card--outlined {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 250ms ease, transform 250ms ease, border-color 200ms ease;
  }
  .card--outlined.is-visible {
    opacity: 1;
    transform: none;
  }
  .topic-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 200ms ease, transform 200ms ease, opacity 150ms ease;
  }
  .topic-card.is-visible {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card--outlined, .topic-card { transition: border-color 150ms ease; opacity: 1; transform: none; }
}

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

  .primary-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 200ms ease;
  }
  .primary-nav.nav--open {
    max-height: 600px;
  }
  .nav__row {
    flex-direction: column;
    padding: 0.5rem 0;
  }
  .nav-link {
    padding: 0.7rem 1.25rem;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
  }
  .nav-link--active, .nav-link:hover {
    border-left-color: var(--amber);
    border-bottom-color: transparent;
  }

  .header__brand-row { gap: 0.5rem; }
  .brand-wordmark { font-size: 1.1rem; }
  .cta { font-size: 0.75rem; padding: 0 0.7rem; min-height: 44px; }

  /* Sections stack vertically */
  .section {
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }
  .sidebar {
    width: 100%;
    order: 1; /* below content on mobile */
  }
  .section__content { order: 0; }
  .section--topic-hero .sidebar,
  .section--article-top .sidebar,
  .section--about-top .sidebar,
  .section--privacy-top .sidebar { order: 1; }

  .hero--home { min-height: 55vw; padding: 2.5rem 1rem 2rem; }
  .hero__h1 { font-size: 2rem; }

  .child-list { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }

  .footer__inner { flex-direction: column; gap: 1.25rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .topic-grid { grid-template-columns: 1fr; }
  .header__ctas { gap: 0.35rem; }
  .cta { padding: 0 0.55rem; font-size: 0.72rem; }
}

/* ---- No horizontal scroll guarantee ---- */
body, .site-wrapper { overflow-x: hidden; }
.section { overflow-x: hidden; }

/* ---- Accessible focus ---- */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

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