/* === 1. CSS Variables & Reset === */
:root {
  --bg-page: #f8f6f3;
  --bg-header: #ffffff;
  --bg-footer: #1c1917;
  --color-text: #1c1917;
  --color-accent: #b34700;
  --color-accent-secondary: #2c5282;
  --color-muted: #d6d3cd;
  --color-surface: #ffffff;
  --color-text-muted: #6b6560;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;
  --content-width: 940px;
  --content-width-wide: 1100px;
  --section-gap: 4rem;
  --color-success: #2d6a4f;
  --color-danger: #9b2226;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* === 2. General Typography === */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #e8f3f7;
}

p {
  text-align: left;
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-accent-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent);
  opacity: 0.9;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
}

ul, ol {
  text-align: left;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

figure {
  margin: 1.5em auto;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--color-muted);
  margin: var(--section-gap) auto;
  max-width: var(--content-width);
}

/* === 3. Layout Sections === */
main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  margin-bottom: var(--section-gap);
}

h2, h3 {
  scroll-margin-top: 2rem;
}

/* === 4. Components === */

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* --- callout --- */
.callout {
  background: linear-gradient(135deg, rgba(179,71,0,0.04) 0%, rgba(179,71,0,0.08) 100%);
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.callout p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.key-takeaway p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.glossary-term p {
  margin-bottom: 0;
}

.glossary-term strong {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- odds-example --- */
.odds-example {
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.odds-example p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.odds-example p:first-child {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.odds-example p:last-child {
  margin-bottom: 0;
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.worked-example p:first-child {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-muted);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.worked-example p:last-child {
  margin-bottom: 0;
  color: var(--color-accent);
  font-weight: 500;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.comparison > div {
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.comparison > div p {
  text-align: left;
  color: var(--color-text);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.comparison > div p:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.comparison > div p:last-child {
  margin-bottom: 0;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dos-donts > div {
  padding: 1.25rem;
}

.dos-donts > div:first-child {
  border-left: 3px solid var(--color-success);
}

.dos-donts > div:last-child {
  border-left: 3px solid var(--color-danger);
}

.dos-donts > div p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.dos-donts > div p strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dos-donts > div:first-child p strong {
  color: var(--color-success);
}

.dos-donts > div:last-child p strong {
  color: var(--color-danger);
}

.dos-donts ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.dos-donts li {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin-bottom: 1.5rem;
}

.pre-bet-checklist > p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.pre-bet-checklist ul {
  border-left: 2px solid var(--color-muted);
  padding-left: 2rem;
  list-style: none;
  margin-bottom: 0;
}

.pre-bet-checklist li {
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  padding-left: 0;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.75rem;
  top: 0;
  color: var(--color-accent);
  background: var(--bg-page);
  padding: 0 2px;
  font-size: 0.9rem;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.5rem;
}

.at-a-glance > div {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--color-muted);
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance > div p:first-child {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.at-a-glance > div p {
  text-align: left;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
}

.section-bridge::before,
.section-bridge::after {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--color-muted);
  vertical-align: middle;
  margin: 0 0.75rem;
}

.section-bridge p {
  display: inline;
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.card-grid > div p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.card-grid > div p:last-child {
  margin-bottom: 0;
}

/* --- tldr --- */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent-secondary);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.tldr h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--color-accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.tldr ul {
  text-align: left;
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.tldr li {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.tldr li:last-child {
  margin-bottom: 0;
}

/* --- author-bio --- */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--color-muted);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* === 5. Hero Section === */
.site-header {
  background: var(--bg-header);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  display: block;
  height: auto;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.header-trust {
  color: var(--color-accent);
  font-weight: 600;
}

[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-page);
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 15%, rgba(179,71,0,0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-content="hero"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(179,71,0,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 80%);
}

[data-content="hero"] .hero-rubric {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

[data-content="hero"] h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 1.25rem;
}

[data-content="hero"] .hero-byline {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}

[data-content="hero"] .hero-date {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
  text-align: center;
}

[data-content="hero"] figure {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content-width);
}

[data-content="hero"] figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* === 6. TOC === */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

[data-content="toc"] details {
  background: var(--color-surface);
  border: 1px solid var(--color-muted);
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-content="toc"] summary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}

[data-content="toc"] summary::-webkit-details-marker {
  display: none;
}

[data-content="toc"] summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

[data-content="toc"] details[open] summary::after {
  content: '\2212';
}

[data-content="toc"] details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

[data-content="toc"] details[open] > div {
  max-height: 600px;
  opacity: 1;
}

[data-content="toc"] nav ul {
  list-style: none;
  padding: 0 1.5rem 1.25rem;
  margin: 0;
}

[data-content="toc"] nav ul li {
  margin-bottom: 0;
}

[data-content="toc"] nav ul li a {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(214,211,205,0.4);
  transition: color 0.2s ease;
}

[data-content="toc"] nav ul li a:hover {
  color: var(--color-accent);
}

[data-content="toc"] nav ul li:last-child a {
  border-bottom: none;
}

[data-content="toc"] nav ul ul {
  padding-left: 1.25rem;
  padding-bottom: 0;
}

[data-content="toc"] nav ul ul li a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* === 7. FAQ Section === */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-muted);
}

[data-content="faq"] details:last-of-type {
  border-bottom: none;
}

[data-content="faq"] summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s ease;
}

[data-content="faq"] summary::-webkit-details-marker {
  display: none;
}

[data-content="faq"] summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  content: '\2212';
}

[data-content="faq"] summary:hover {
  color: var(--color-accent);
}

[data-content="faq"] details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

[data-content="faq"] details[open] > div {
  max-height: 500px;
  opacity: 1;
}

[data-content="faq"] details > div p {
  text-align: left;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  padding-bottom: 1rem;
  margin-bottom: 0;
}

/* === 8. Footer === */
.site-footer {
  background: var(--bg-footer);
  color: #a8a29e;
  padding: 3rem 1.5rem 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e7e5e4;
  margin-bottom: 0.75rem;
}

.footer-col p {
  text-align: left;
  color: #a8a29e;
  margin-bottom: 0.5rem;
  font-size: 0.775rem;
}

.footer-col a {
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #e7e5e4;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  max-width: var(--content-width-wide);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(168,162,158,0.2);
  text-align: center;
  font-size: 0.7rem;
  color: #78716c;
}

/* === 9. Media Queries === */
@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [data-content="hero"] {
    padding: 2.5rem 1rem 2rem;
  }

  .comparison,
  .dos-donts {
    grid-template-columns: 1fr;
  }

  .at-a-glance {
    grid-template-columns: 1fr;
  }

  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-muted);
    padding: 0.75rem 0;
  }

  .at-a-glance > div:last-child {
    border-bottom: none;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

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

  .site-header {
    padding: 0.5rem 1rem;
  }

  .odds-example p,
  .worked-example p {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  [data-content="hero"] h1 {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}

/* =========================================
   UNIVERSAL DESKTOP & MOBILE MENU + LOGO
   ========================================= */

/* Header Base */
.site-header {
    background-color: var(--color-bg, #121212);
    border-bottom: 1px solid var(--color-border, #333333);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile defaults for navigation bar */
.top-navigation-bar {
    width: 100%;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Fixes */
.site-logo img {
    max-height: 55px; 
    width: auto !important; 
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

/* Desktop Menu */
.site-nav--desktop {
    display: none; 
}

/* Desktop Grid Layout: Logo left, Menu center */
@media (min-width: 1024px) {
    .top-navigation-bar {
        max-width: 100%;
        padding: 15px 40px; 
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    .site-logo {
        grid-column: 1;
        justify-self: start; 
        margin: 0;
    }

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; 
    }

    .mobile-controls {
        display: none; 
    }
    
    .menu-desktop {
        display: flex;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text, #ffffff);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent, #eab308);
    }
}

/* Mobile Burger Button */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text, #ffffff);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Slider */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg, #121212);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; 
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text, #ffffff);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent, #eab308);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text, #ffffff);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent, #eab308);
    padding-left: 10px; 
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   LIGHT HEADER FIX FOR BASKETBALL SITE
   ========================================= */

/* 1. Change header background to white and add a light gray bottom border */
.site-header,
.top-navigation-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* 2. Ensure menu links and logo text are dark gray/black for high contrast */
.menu-desktop a,
.site-header a {
    color: #111827 !important;
    font-weight: 500;
}

/* 3. Add an orange hover effect to match your page subtitle */
.menu-desktop a:hover,
.site-header a:hover {
    color: #ea580c !important; 
}

/* 4. Make sure the mobile burger menu icon lines are dark so they show up on white */
.burger span {
    background-color: #111827 !important;
}

.home main > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero),
.home main article > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero) {
    max-width: var(--content-max-width, 940px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

.home main iframe,
.home main article iframe {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    width: 100% !important;
}

#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(0, 0, 0);
}





.sitemap-main{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.sitemap-title{
  margin: 0 0 8px;
  text-align: center;
}

.sitemap-subtitle{
  margin: 0 0 24px;
  text-align: center;
  opacity: 0.75;
}

.sitemap-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.sitemap-link{
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-decoration: none;
}

.sitemap-link:hover{
  border-color: rgba(255,255,255,0.2);
}

/* ===== Universal hub (NO body_class needed) ===== */

main.hub-children-main{
  padding-bottom: 48px;
}

/* Article wrapper */
main.hub-children-main .hub-children-article{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header */
main.hub-children-main .hub-children-header{
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

main.hub-children-main .hub-children-title{
  margin: 0 0 10px;
}

main.hub-children-main .hub-children-intro{
  max-width: 900px;
  margin: 0 auto;
  opacity: .9;
}

/* Grid */
main.hub-children-main .hub-children-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 12px;
}

/* Card */
main.hub-children-main .hub-children-card{
  display: block;
  text-decoration: none;
}

main.hub-children-main .hub-children-card__media{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .22s ease, box-shadow .22s ease;
}

main.hub-children-main .hub-children-card:hover .hub-children-card__media{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

/* Image */
main.hub-children-main .hub-children-card__img{
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

/* Overlay */
main.hub-children-main .hub-children-card__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.42) 55%,
    rgba(0,0,0,0.70) 100%
  );
}

/* Text */
main.hub-children-main .hub-children-card__content{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

main.hub-children-main .hub-children-card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.55);
}

/* Responsive */
@media (max-width: 1024px){
  main.hub-children-main .hub-children-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px){
  main.hub-children-main .hub-children-grid{
    grid-template-columns: 1fr;
  }
}

body {
  overflow-x: clip;
}

@media (max-width: 768px) {
    main table, 
    article table,
    .cl-body table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        
        width: 100% !important;
        max-width: calc(100vw - 2rem) !important; 
        
        border-collapse: collapse !important;
        margin-bottom: 20px !important;
    }

    main table th, 
    main table td, 
    article table th, 
    article table td {
        padding: 10px 15px !important;
    }
    
    main * {
        max-width: 100vw;
    }
}
.mobile-menu a,
.menu-mobile a {
    color: #ffffff !important;
}

.mobile-menu__close {
    color: #ffffff !important;
}