/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Colours — Light */
  --color-bg: #F7F6F3;
  --color-text: #1A1A1A;
  --color-text-secondary: #5C5C5C;
  --color-accent: #2D7A4F;
  --color-accent-hover: #1E5C3A;
  --color-surface: #EDECE8;
  --color-border: #D4D2CC;
  --color-error: #C0392B;
  --color-success: #2D7A4F;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --h1-size: clamp(2.4rem, 5vw, 3.5rem);
  --h2-size: clamp(1.6rem, 3vw, 2.25rem);
  --h3-size: clamp(1.15rem, 1.8vw, 1.375rem);
  --body-size: clamp(1rem, 1.2vw, 1.125rem);
  --small-size: 0.875rem;
  --mono-size: 1rem;

  --line-height-body: 1.75;
  --content-width: 770px;
  --section-gap: clamp(60px, 8vw, 100px);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141413;
    --color-text: #E8E6E1;
    --color-text-secondary: #9A9890;
    --color-accent: #4DAF72;
    --color-accent-hover: #6BC48D;
    --color-surface: #1F1F1D;
    --color-border: #333330;
    --color-error: #E05A4F;
    --color-success: #4DAF72;
}



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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-accent-hover); }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* ============================================
   2. GENERAL TYPOGRAPHY
   ============================================ */
h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

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

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

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

li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

em { font-style: italic; }

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

figure {
  margin: 2em auto;
  max-width: 100%;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--body-size);
}

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

th {
  font-weight: 600;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

tr:last-child td { border-bottom: none; }

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

/* ============================================
   3. LAYOUT — SECTIONS
   ============================================ */
header {
  padding: 0;
  margin: 0;
}

main {
  width: 100%;
}

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

[data-content] h2 {
  margin-top: 0;
}

/* ============================================
   4. COMPONENTS
   ============================================ */

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: 0;
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  margin-bottom: 0.75em;
}

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

.info-box p strong {
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.25em;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- odds-example --- */
.odds-example {
  background: #1A1A1A;
  color: #F7F6F3;
  padding: 20px 24px;
  border-radius: 0;
  margin: 2em 0;
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0D0D0C;
    color: #F7F6F3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
}

.odds-example p {
  text-align: left;
  color: #F7F6F3;
  font-family: var(--font-mono);
  margin-bottom: 0.75em;
}

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

.odds-example p strong {
  color: #F7F6F3;
  font-weight: 600;
  font-family: var(--font-body);
}

.odds-example table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75em 0;
}

.odds-example th {
  color: #9A9890;
  font-family: var(--font-body);
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-bottom: 1px solid #333;
  text-align: left;
  font-weight: 600;
}

.odds-example td {
  color: #F7F6F3;
  font-family: var(--font-mono);
  padding: 10px 12px;
  border-bottom: 1px solid #222;
  text-align: left;
}

.odds-example tr:last-child td { border-bottom: none; }

/* --- callout --- */
.callout {
  background: transparent;
  border: 2px solid var(--color-error);
  padding: 20px 24px;
  border-radius: 0;
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.callout p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-body);
  margin-bottom: 0.75em;
}

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

.callout p strong {
  color: var(--color-error);
  font-weight: 600;
}

.callout--tip {
  border-color: var(--color-success);
}

.callout--tip p strong {
  color: var(--color-success);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card-grid > div {
  background: var(--color-surface);
  padding: 24px;
}

.card-grid > div p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-body);
  margin-bottom: 0.5em;
}

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

.card-grid > div p strong {
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.35em;
}

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

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.comparison > div {
  background: var(--color-surface);
  padding: 24px;
}

.comparison > div p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  margin-bottom: 0.5em;
}

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

.comparison > div p strong {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.5em;
}

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

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

.key-takeaway p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 24px;
  margin: 2em 0;
}

.fun-fact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 20px;
  background: var(--color-accent);
}

.fun-fact p {
  text-align: left;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  line-height: var(--line-height-body);
}

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

.glossary-term p {
  text-align: left;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
}

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

.glossary-term p:last-child {
  color: var(--color-text-secondary);
}

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

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2em 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.dos-donts > div {
  padding: 24px;
  background: var(--color-surface);
}

.dos-donts > div:first-child {
  border-right: 1px solid var(--color-border);
}

.dos-donts > div p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  margin-bottom: 0.75em;
}

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

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

.dos-donts > div:last-child p strong {
  color: var(--color-error);
  font-weight: 600;
}

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

.dos-donts li {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  margin-bottom: 0.4em;
}

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

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 2em 0;
}

.pre-bet-checklist p strong {
  font-family: var(--font-display);
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1em;
}

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

.pre-bet-checklist li {
  position: relative;
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  margin-bottom: 0.75em;
  padding-left: 8px;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -22px;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--color-surface);
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

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

.at-a-glance > div p {
  text-align: center;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  margin-bottom: 0.35em;
}

.at-a-glance > div p:last-child { margin-bottom: 0; }

.at-a-glance > div p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.5em;
}

.at-a-glance > div p:not(:first-child) {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--color-text);
}

@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-surface);
  padding: 28px;
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
  margin-bottom: 0.6em;
}

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

.worked-example p strong {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-accent);
}

.worked-example p strong:only-child {
  font-size: 1.125rem;
  display: block;
  margin-bottom: 0.25em;
}

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

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

.section-bridge::before,
.section-bridge::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-border);
  vertical-align: middle;
}

.section-bridge::before { margin-right: 16px; }
.section-bridge::after { margin-left: 16px; }

.section-bridge p {
  display: inline;
  text-align: center;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2rem, 5vw, 4rem);
  margin-bottom: var(--section-gap);
  text-align: center;
  background: var(--color-bg);
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-rubric {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

[data-content="hero"] h1 {
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  margin: 0 auto 1.5rem;
}

.hero-meta {
  font-family: var(--font-body);
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
}

.hero-meta time {
  margin-right: 0.75em;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 3px 10px;
  vertical-align: middle;
}

[data-content="hero"] figure {
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--color-accent);
  padding: 10px 28px;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero-cta:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================
   5b. TOC — Grid 2-column
   ============================================ */
[data-content="toc"] {
  max-width: var(--content-width);
  margin-bottom: var(--section-gap);
}

.toc-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

[data-content="toc"] nav {
  column-count: 2;
  column-gap: 2.5rem;
}

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

[data-content="toc"] nav > ul > li {
  break-inside: avoid;
  margin-bottom: 1.25em;
}

[data-content="toc"] nav > ul > li > a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

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

[data-content="toc"] nav ul ul {
  list-style: none;
  padding: 0;
  margin-top: 0.4em;
  margin-left: 0;
}

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

[data-content="toc"] nav ul ul a {
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 600px) {
  [data-content="toc"] nav {
    column-count: 1;
  }
}

/* ============================================
   6. FAQ — Details/Summary
   ============================================ */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

[data-content="faq"] details:first-of-type {
  border-top: 1px solid var(--color-border);
}

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

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

[data-content="faq"] summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-left: 1em;
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  transform: rotate(45deg);
}

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

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

/* Modern animated accordion via ::details-content */
[data-content="faq"] ::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition:
    opacity 0.35s ease,
    block-size 0.35s ease,
    content-visibility 0.35s ease allow-discrete;
}

[data-content="faq"] details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

[data-content="faq"] details div {
  padding-bottom: 1.25em;
}

[data-content="faq"] details div p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--line-height-body);
}

/* Fallback for browsers without ::details-content */
@supports not selector(::details-content) {
  @keyframes faq-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  [data-content="faq"] details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
}


/* ============================================
   8. BACK TO TOP
   ============================================ */
.back-to-top {
  display: block;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-bottom: var(--section-gap);
  text-align: center;
}

.back-to-top a {
  font-family: var(--font-body);
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.back-to-top a:hover {
  color: var(--color-accent);
}

/* ============================================
   9. IMAGES
   ============================================ */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  loading: lazy;
}

/* ============================================
   10. MEDIA QUERIES
   ============================================ */
@media (max-width: 768px) {
  [data-content] {
    padding: 0 1rem;
  }

  [data-content="hero"] {
    padding: clamp(2rem, 6vw, 4rem) 1rem clamp(1.5rem, 4vw, 3rem);
  }

  .hero-cta {
    margin-top: 1.5rem;
  }

  .worked-example {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 48px;
  }
}

/* =========================================
   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;
}

/* =========================================
   FOOTER STYLES (Dark Theme & Forest Green)
   ========================================= */
.site-footer {
    background-color: #111111; /* Very dark background */
    color: #a3a3a3; /* Muted gray text */
    padding: 60px 20px 20px;
    font-family: inherit;
    border-top: 1px solid #222222;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Tablet layout */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop layout */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

.footer-title {
    color: #eaeaea;
    font-size: 1.05rem;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-list li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
}

/* Bullets matching the green links */
.footer-list.custom-bullets li {
    padding-left: 15px;
}
.footer-list.custom-bullets li::before {
    content: "•";
    color: #388e3c; /* Forest green accent color */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.footer-list a {
    color: #388e3c; /* Green links */
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #4caf50; /* Brighter green on hover */
    text-decoration: underline;
}

/* Subtle slide-right effect for navigation links on hover */
.footer-list.links-list a:hover {
    transform: translateX(4px);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #666666;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
}

body {
  overflow-x: clip;
}