/* ========================================
   1. CSS Variables & Reset
   ======================================== */
:root {
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-accent: #1DB954;
  --color-accent-rgb: 29, 185, 84;
  --color-bg: #FAFAFA;
  --color-bg-card: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #666666;
  --color-border: #E5E5E5;

  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-danger: #C62828;
  --color-danger-bg: #FFEBEE;
  --color-warning-bg: #FFF9E6;
  --color-warning-border: #FFD54F;
  --color-info-bg: #F0FAF4;

  --max-width: 840px;
  --section-gap: clamp(48px, 6vw, 80px);
  --content-padding: clamp(20px, 4vw, 40px);

  --h1-size: clamp(48px, 8vw, 64px);
  --h2-size: clamp(28px, 4vw, 40px);
  --h3-size: clamp(22px, 3vw, 28px);
  --body-size: 18px;
  --small-size: 14px;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #111111;
    --color-bg-card: #1C1C1C;
    --color-text: #E8E8E8;
    --color-text-secondary: #999999;
    --color-border: #333333;
    --color-info-bg: #172117;
    --color-success-bg: #1a2e1a;
    --color-danger-bg: #2e1a1a;
    --color-warning-bg: #2e2a17;
    --color-warning-border: #8a7020;
}



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

html {
  scroll-behavior: smooth;
  /* Prevent horizontal scrolling */
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  /* Prevent horizontal scrolling */
  overflow-x: hidden;
  width: 100%;
}

/* ========================================
   2. General Typography
   ======================================== */
p {
  text-align: left;
  margin-bottom: 1.25em;
}

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

h2 {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
  scroll-margin-top: 2rem;
}

h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
}

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

a:hover {
  opacity: 0.8;
}

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

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

li {
  margin-bottom: 0.4em;
  text-align: left;
}

strong {
  font-weight: 600;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: left;
}

figure {
  margin: 1.5em 0;
  max-width: 100%;
}

figcaption {
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.75em;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 16px;
  text-align: left;
}

th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

th {
  font-weight: 600;
  font-family: var(--font-heading);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

/* ========================================
   3. Layout — data-content sections
   ======================================== */
header {
  padding: 0;
  margin: 0;
}

main {
  width: 100%;
}

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

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

/* --- info-box --- */
.info-box {
  background: var(--color-info-bg);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  margin: 32px 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

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

.info-box strong {
  font-weight: 600;
  color: var(--color-text);
}

/* --- odds-example --- */
.odds-example {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
  color: #FFFFFF;
  padding: 28px 32px;
  border-radius: 8px;
  margin: 32px 0;
  font-family: var(--font-mono);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.odds-example p {
  text-align: left;
  color: #FFFFFF;
  margin-bottom: 0.75em;
}

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

.odds-example strong {
  color: #FFFFFF;
}

.odds-example .match {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.odds-example .odds-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.odds-example .odd {
  background: rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 4px;
  color: #FFFFFF;
}

.odds-example .odd-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    color: #FFFFFF;
  }
  .odds-example p,
  .odds-example strong,
  .odds-example .match,
  .odds-example .odd {
    color: #FFFFFF;
  }
}

/* --- callout --- */
.callout {
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.callout::before {
  content: "!";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-warning-border);
  color: #1A1A1A;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text);
}

.callout strong {
  color: var(--color-text);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card-grid > div {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.card-grid > div:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

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

.card-grid > div strong {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text);
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.comparison > div {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.comparison > div p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
}

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

.comparison > div strong {
  font-family: var(--font-heading);
  font-size: 20px;
  display: block;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-text);
}

@media (max-width: 600px) {
  .comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 3px solid var(--color-text);
  padding-top: 20px;
  margin: 40px 0;
}

.key-takeaway p {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  margin: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 15px;
}

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

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

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
}

.glossary-term p {
  text-align: left;
  color: var(--color-text);
  margin: 0;
}

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

@media (max-width: 600px) {
  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.dos-donts > div {
  border-radius: 8px;
  padding: 24px;
}

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

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

.dos-donts > div p {
  text-align: left;
  margin-bottom: 16px;
}

.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 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dos-donts li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  text-align: left;
  color: var(--color-text);
}

.dos-donts > div:first-child li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

.dos-donts > div:last-child li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: bold;
}

@media (max-width: 600px) {
  .dos-donts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 32px 0;
}

.pre-bet-checklist h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  font-size: 16px;
  margin-bottom: 16px;
}

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

.pre-bet-checklist li {
  position: relative;
  padding: 8px 0;
  text-align: left;
  color: var(--color-text);
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -28px;
  color: var(--color-accent);
  font-size: 16px;
  background: var(--color-bg);
  padding: 0 4px;
  transform: translateX(-1px);
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 32px 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.at-a-glance > div {
  padding: 24px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

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

.at-a-glance > div p:first-child {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 8px;
}

.at-a-glance > div p {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--small-size);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:last-child {
    border-bottom: none;
  }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: 8px;
  margin: 32px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 1em;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
}

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

.worked-example strong {
  color: var(--color-accent);
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 16px 0;
  position: relative;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  margin: 24px 0;
  font-family: var(--font-heading);
  font-size: 16px;
}

.section-bridge::before,
.section-bridge::after {
  content: "\2014\2014";
  margin: 0 12px;
  color: var(--color-border);
}

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

/* ========================================
   5. Hero Section
   ======================================== */
[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(60px, 10vw, 120px) var(--content-padding) clamp(40px, 6vw, 60px);
  margin-bottom: var(--section-gap);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 20%, rgba(var(--color-accent-rgb), 0.12), transparent 70%);
  pointer-events: none;
}

[data-content="hero"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300' viewBox='0 0 400 300'%3E%3Cline x1='0' y1='150' x2='400' y2='150' stroke='rgba(29,185,84,0.06)' stroke-width='1'/%3E%3Cline x1='200' y1='0' x2='200' y2='300' stroke='rgba(29,185,84,0.06)' stroke-width='1'/%3E%3Ccircle cx='200' cy='150' r='50' fill='none' stroke='rgba(29,185,84,0.06)' stroke-width='1'/%3E%3Ccircle cx='200' cy='150' r='3' fill='rgba(29,185,84,0.06)'/%3E%3Cline x1='0' y1='0' x2='0' y2='300' stroke='rgba(29,185,84,0.05)' stroke-width='1'/%3E%3Cline x1='400' y1='0' x2='400' y2='300' stroke='rgba(29,185,84,0.05)' stroke-width='1'/%3E%3Cline x1='0' y1='0' x2='400' y2='0' stroke='rgba(29,185,84,0.05)' stroke-width='1'/%3E%3Cline x1='0' y1='300' x2='400' y2='300' stroke='rgba(29,185,84,0.05)' stroke-width='1'/%3E%3Carc cx='0' cy='150' r='40'/%3E%3Cpath d='M 0 110 A 40 40 0 0 1 0 190' fill='none' stroke='rgba(29,185,84,0.05)' stroke-width='1'/%3E%3Cpath d='M 400 110 A 40 40 0 0 0 400 190' fill='none' stroke='rgba(29,185,84,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 400px 300px;
  background-repeat: repeat;
  opacity: 0.6;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 20%, black 70%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 20%, black 70%);
}

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

[data-content="hero"] h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

[data-content="hero"] .subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  text-align: center;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

[data-content="hero"] .hero-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 24px;
  border: none;
  position: relative;
  z-index: 1;
}

[data-content="hero"] .hero-meta {
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

[data-content="hero"] .hero-meta .badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 4px 10px;
  border-radius: 3px;
}

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

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

[data-content="hero"] figure figcaption {
  text-align: center;
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.btn-start {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-start:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
  .btn-start {
    color: #111111;
  }
}

/* ========================================
   5b. TOC — horizontal compact strip
   ======================================== */
[data-content="toc"] {
  max-width: none;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
  margin-bottom: var(--section-gap);
}

[data-content="toc"] nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

[data-content="toc"] nav a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-card);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}

[data-content="toc"] nav a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

[data-content="toc"] nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   6. FAQ Accordion
   ======================================== */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

summary {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 500;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  text-align: left;
  color: var(--color-text);
  transition: color 0.2s;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.3s;
}

details[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
}

summary:hover {
  color: var(--color-accent);
}

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

/* Modern details animation */
details {
  interpolate-size: allow-keywords;
}

::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
  opacity: 0;
  block-size: 0;
  overflow: hidden;
}

details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  @keyframes faq-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease;
  }
}

details > div {
  padding-bottom: 20px;
}

details > div p {
  text-align: left;
  color: var(--color-text);
}

/* ========================================
   7. Back to Top
   ======================================== */
.btn-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-top:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

[data-content="finale"] {
  text-align: left;
}

.back-to-top-wrap {
  text-align: center;
  margin-top: 32px;
}

/* ========================================
   9. Media Queries
   ======================================== */
@media (max-width: 768px) {
  :root {
    --section-gap: 40px;
  }

  [data-content="hero"] {
    padding: 48px var(--content-padding) 32px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .odds-example .odds-row {
    flex-direction: column;
    gap: 12px;
  }

  [data-content="toc"] nav {
    gap: 8px;
  }

  [data-content="toc"] nav a {
    font-size: 12px;
    padding: 6px 12px;
  }
}

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

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

.top-navigation-bar {
    max-width: var(--wide-width, 1100px);
    margin: 0 auto;
    padding: 15px var(--component-padding, 24px);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep mobile burger on the right */
}

/* --- DESKTOP MENU --- */
.site-nav--desktop {
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 769px) {
    .top-navigation-bar {
        justify-content: center; /* Center the desktop menu */
    }

    .site-nav--desktop {
        display: block;
    }
    .mobile-controls {
        display: none; /* Hide burger on desktop */
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text);
        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);
    }
}

/* --- 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);
    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%; /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    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; /* Slide in */
}

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

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

.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);
    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);
    padding-left: 10px; /* Nice slide effect on hover */
}

/* --- 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); /* Beautiful blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

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

[data-content="toc"] nav {
  gap: 10px !important; 
  margin-bottom: 20px !important; 
}

[data-content="toc"] nav a {
  margin: 0 !important; 
  line-height: 1.2 !important; 
  box-sizing: border-box !important;
  
  padding: 8px 12px !important; 
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
    background-color: var(--color-bg-card, #1C1C1C);
    border-top: 1px solid var(--color-border, #333);
    padding: 60px 0 20px;
    margin-top: 60px;
    font-family: var(--font-body, sans-serif);
}

.footer-inner {
    max-width: 1200px !important; /* Force a wider container specifically for the footer */
    margin: 0 auto;
    padding: 0 var(--content-padding, 24px);
}

/* 4-Column Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force exactly 4 equal columns */
    gap: 30px;
    margin-bottom: 50px;
}

.footer-heading {
    color: var(--color-text, #E8E8E8);
    font-family: var(--font-heading, sans-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent, #1DB954); /* Green accent line */
    display: inline-block;
}

/* Base styles for lists in all columns */
.footer-list,
.footer-nav-menu ul {
    list-style: none !important; /* Force remove default WP bullets */
    padding: 0 !important;
    margin: 0 !important;
}

.footer-list li,
.footer-nav-menu ul li {
    margin-bottom: 12px;
    color: var(--color-text-secondary, #999999);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
    text-align: left;
}

/* Custom green bullets */
.footer-list li::before,
.footer-nav-menu ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent, #1DB954);
}

/* Link hover effects */
.footer-list a,
.footer-nav-menu ul a {
    color: var(--color-text-secondary, #999999);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover,
.footer-nav-menu ul a:hover {
    color: var(--color-accent, #1DB954);
}

/* Bottom Copyright Bar */
.footer-bottom {
    border-top: 1px solid var(--color-border, #333);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-secondary, #999999);
    font-size: 13px;
    margin: 0;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        gap: 30px;
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
}

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

/* Mobile layout: 1 column */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}