/* ========================================
   1. CSS Variables & Reset
   ======================================== */
:root {
  /* Colors - Light theme */
  --color-primary: #0B6E4F;
  --color-primary-dark: #064E3B;
  --color-accent: #F59E0B;
  --color-accent-soft: rgba(245, 158, 11, 0.12);
  --color-base: #1E293B;
  --color-bg: #F8FAFC;
  --color-surface: #F1F5F9;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-border: #E2E8F0;
  --color-danger: #EF4444;
  --color-success: #10B981;
  --color-success-soft: rgba(16, 185, 129, 0.1);
  --color-danger-soft: rgba(239, 68, 68, 0.1);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --size-h1: clamp(2rem, 5vw, 3.5rem);
  --size-h2: clamp(1.5rem, 3.5vw, 2.25rem);
  --size-h3: clamp(1.125rem, 2.5vw, 1.5rem);
  --size-body: clamp(0.938rem, 1.5vw, 1.063rem);
  --size-data: clamp(0.813rem, 1.2vw, 0.938rem);
  --size-caption: clamp(0.75rem, 1vw, 0.875rem);
  --weight-h1: 800;
  --weight-h2: 700;
  --weight-h3: 600;

  /* Layout */
  --content-width: 740px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-padding: clamp(1.25rem, 3vw, 2rem);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #0F172A;
    --color-surface: #1E293B;
    --color-text: #E2E8F0;
    --color-text-secondary: #94A3B8;
    --color-border: #334155;
    --color-accent-soft: rgba(245, 158, 11, 0.15);
    --color-success-soft: rgba(16, 185, 129, 0.12);
    --color-danger-soft: rgba(239, 68, 68, 0.12);
}



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

html {
  scroll-behavior: smooth;
}

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

/* ========================================
   2. General Typography
   ======================================== */
h1 {
  font-family: var(--font-body);
  font-size: var(--size-h1);
  font-weight: var(--weight-h1);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-body);
  font-size: var(--size-h2);
  font-weight: var(--weight-h2);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

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

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

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

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: var(--size-data);
  font-weight: 500;
}

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

th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
}

/* ========================================
   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: var(--section-gap) 1.25rem 0;
}

[data-content]:last-child {
  padding-bottom: var(--section-gap);
}

[data-content="hero"] {
  max-width: none;
  padding: 0;
}

[data-content="toc"] {
  max-width: none;
  padding-top: 2rem;
  padding-bottom: 0;
}

figure {
  margin: 1.5rem auto;
  max-width: 100%;
}

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

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

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

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

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  padding: var(--component-padding);
  margin: 1.75rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

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

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

/* --- odds-example --- */
.odds-example {
  background: var(--color-primary-dark);
  color: #F8FAFC;
  border-radius: 8px;
  padding: var(--component-padding);
  margin: 1.75rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.odds-example p {
  text-align: center;
  color: #F8FAFC;
  background: transparent;
  margin-bottom: 0.5rem;
}

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

.odds-example strong {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--size-data);
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #064E3B;
    color: #F8FAFC;
  }
  .odds-example p {
    color: #F8FAFC;
  }
}

/* --- callout --- */
.callout {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  background: var(--color-accent-soft);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

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

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

.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--component-padding);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

.card-grid > div h3 {
  color: var(--color-text);
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

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

.comparison > div h3 {
  color: var(--color-primary);
  font-size: var(--size-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

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

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

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

/* --- tldr --- */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 6px 6px 0;
  padding: var(--component-padding);
  margin: 0 auto;
}

.tldr h2 {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.tldr ul {
  text-align: left;
  color: var(--color-text);
}

.tldr li {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

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

.key-takeaway p {
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(1.188rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0;
}

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

.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-secondary);
  background: transparent;
  margin-bottom: 0;
}

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

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

.glossary-term span {
  font-family: var(--font-body);
  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: 1.75rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

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

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

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

.dos-donts h4 {
  font-size: var(--size-body);
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dos-donts ul {
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.dos-donts li {
  text-align: left;
  color: var(--color-text);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5em;
}

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

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

@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: 1.75rem 0;
}

.pre-bet-checklist h4 {
  font-family: var(--font-body);
  font-size: var(--size-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.pre-bet-checklist li {
  text-align: left;
  color: var(--color-text);
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.6em;
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -0.75rem;
  color: var(--color-accent);
  background: var(--color-bg);
  font-size: 0.875rem;
  line-height: 1.7;
}

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

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

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

.at-a-glance > div strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

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

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

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 8px;
  margin: 1.75rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--size-data);
  margin-bottom: 0.75rem;
}

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

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

.worked-example .result {
  color: var(--color-accent);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

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

.section-bridge::before,
.section-bridge::after {
  content: "\2014\2014";
  color: var(--color-border);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: -0.15em;
}

.section-bridge::before { left: 0; }
.section-bridge::after { right: 0; }

.section-bridge p {
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  background: transparent;
  font-size: var(--size-body);
  margin-bottom: 0;
}

/* ========================================
   5. Hero Section
   ======================================== */
[data-content="hero"] {
  position: relative;
  background: linear-gradient(160deg, #0B6E4F 0%, #064E3B 100%);
  padding: clamp(4rem, 10vw, 7rem) 1.25rem clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='200' viewBox='0 0 400 200'%3E%3Cpath d='M0 100 Q100 60 200 100 Q300 140 400 100' fill='none' stroke='%23ffffff' stroke-width='1'/%3E%3Cpath d='M0 120 Q100 80 200 120 Q300 160 400 120' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3Cpath d='M0 80 Q100 40 200 80 Q300 120 400 80' fill='none' stroke='%23ffffff' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 400px 200px;
  opacity: 0.05;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

[data-content="hero"] h1 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}

.hero-subtitle {
  text-align: center;
  font-size: var(--size-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.date-badge {
  font-size: var(--size-caption);
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  padding: 0.3em 0.8em;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.trust-marker {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
}

[data-content="hero"] figure {
  margin: 2rem auto 0;
  max-width: 100%;
}

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

[data-content="hero"] figcaption {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: var(--size-caption);
  margin-top: 0.5rem;
}

/* ========================================
   5b. TOC — Horizontal compact strip
   ======================================== */
[data-content="toc"] .toc-strip {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

[data-content="toc"] .toc-strip a {
  display: inline-block;
  font-size: var(--size-caption);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.35em 0.85em;
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

[data-content="toc"] .toc-strip a:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

[data-content="toc"] .toc-strip 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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: var(--size-body);
  color: var(--color-text);
  list-style: none;
  transition: color 0.2s ease;
}

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

summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

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

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

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

/* Smooth accordion animation — modern CSS */
details {
  interpolate-size: allow-keywords;
}

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

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

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

details > div {
  padding-bottom: 1rem;
}

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

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


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

  [data-content="hero"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-bridge::before,
  .section-bridge::after {
    display: none;
  }
}

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

/* 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: 950px; /* Optimized width to keep menu centered but separated */
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes logo left and burger/menu right */
}

/* --- LOGO FIXES --- */
.site-logo img {
    max-height: 75px; /* Optimal height for most logos */
    width: auto !important; /* Prevents squishing */
    display: block;
    transition: transform 0.2s ease;
}

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

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

@media (min-width: 769px) {
    .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 (Tonight's Greyhound - Midnight & Teal)
   ========================================= */
.site-footer {
    background-color: #050b14; /* Very dark midnight blue */
    color: #94a3b8;
    padding: 0 20px 20px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    position: relative;
}

/* Gradient accent line at the very top of the footer */
.footer-accent-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #0f766e 0%, #06b6d4 50%, #0f766e 100%);
    margin-bottom: 50px;
}

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

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

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

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

.footer-title {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

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

.footer-list li {
    margin-bottom: 0.6rem;
}

.footer-list a {
    color: #06b6d4; /* Bright cyan/teal for links */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Subtle neon glow on hover */
.footer-list a:hover {
    color: #22d3ee;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

/* Minimalist Back to Top button */
.back-to-top-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

.back-to-top-btn:hover {
    color: #06b6d4;
}

.arrow-up {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-top: 4px;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

body {
  overflow-x: clip;
}