/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
  --color-primary: #1B4332;
  --color-accent: #F59E0B;
  --color-bg: #F8F6F3;
  --color-text: #1F2937;
  --color-surface: #FFFFFF;
  --color-error: #DC2626;
  --color-success: #16a34a;
  --color-border: #E5E1DB;
  --color-text-secondary: #6B7280;
  --color-text-inv: #F8F6F3;

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  --size-h1: clamp(2rem, 4vw, 3.5rem);
  --size-h2: clamp(1.5rem, 3vw, 2.25rem);
  --size-h3: clamp(1.125rem, 2vw, 1.5rem);
  --size-body: clamp(0.938rem, 1.5vw, 1.063rem);
  --size-small: clamp(0.75rem, 1.2vw, 0.875rem);
  --size-mono: 0.875rem;

  --weight-h1: 800;
  --weight-h2: 700;
  --weight-h3: 600;
  --weight-body: 400;

  --max-content: 800px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #A7F3D0;
    --color-accent: #F59E0B;
    --color-bg: #111827;
    --color-text: #E5E7EB;
    --color-surface: #1F2937;
    --color-border: #374151;
    --color-text-secondary: #9CA3AF;
    --color-text-inv: #111827;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
}



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

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

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: var(--weight-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

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

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

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

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

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

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

thead th {
  background: var(--color-primary);
  color: var(--color-text-inv);
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 500;
  font-size: var(--size-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody td {
  padding: 0.65em 1em;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--color-surface) 60%, var(--color-bg));
}

tbody tr:hover {
  background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg));
}

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

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

/* ============================================
   3. LAYOUT — data-content SECTIONS
   ============================================ */
[data-content] {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  margin-bottom: var(--section-gap);
}

[data-content] h2 {
  margin-bottom: 1.25em;
}

[data-content] h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

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

/* --- info-box --- */
.info-box {
  border-left: 4px solid #3B82F6;
  background: color-mix(in srgb, #3B82F6 6%, var(--color-surface));
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.info-box p {
  text-align: left;
  margin-bottom: 0.5em;
  color: var(--color-text);
}
.info-box p:last-child {
  margin-bottom: 0;
}
.info-box strong {
  color: var(--color-primary);
}

/* --- odds-example --- */
.odds-example {
  background: var(--color-primary);
  color: var(--color-text-inv);
  padding: 1.5em;
  border-radius: var(--radius);
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.odds-example p {
  text-align: center;
  color: var(--color-text-inv);
  margin-bottom: 0.5em;
}
.odds-example p:last-child {
  margin-bottom: 0;
}
.odds-example strong {
  color: var(--color-accent);
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #1B4332;
    color: #F8F6F3;
  }
  .odds-example p {
    color: #F8F6F3;
  }
}

/* --- callout / callout-expert --- */
.callout,
.callout-expert {
  background: #1B4332;
  color: #F8F6F3;
  padding: 1.5em 1.75em;
  border-radius: var(--radius);
  margin: 1.75em 0;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}
.callout p,
.callout-expert p {
  text-align: left;
  color: #F8F6F3;
  margin-bottom: 0.5em;
}
.callout p:last-child,
.callout-expert p:last-child {
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .callout,
  .callout-expert {
    background: #1B4332;
    color: #F8F6F3;
  }
  .callout p,
  .callout-expert p {
    color: #F8F6F3;
  }
}

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

.data-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.data-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.data-card p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
.data-card p:last-child {
  margin-bottom: 0;
}
.data-card strong {
  color: var(--color-primary);
  font-family: var(--font-mono);
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25em;
  margin: 1.5em 0;
}
.comparison > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25em;
  box-shadow: var(--shadow-sm);
}
.comparison > div h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-body);
  margin-bottom: 0.75em;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--size-small);
}
.comparison p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
.comparison p:last-child {
  margin-bottom: 0;
}

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

/* --- tldr --- */
.tldr {
  background: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
  border-left: none;
  border-top: 4px solid var(--color-accent);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.75em 2em;
  margin: 1.5em auto;
  text-align: center;
}
.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75em;
}
.tldr ul {
  padding-left: 0;
  list-style-position: inside;
}
.tldr li {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 0.6em;
  line-height: 1.65;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1em;
  margin: 2em 0;
}
.key-takeaway p {
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5em;
  margin: 1.5em 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);
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}
.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.glossary-term span {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}

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

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25em;
  margin: 1.5em 0;
}
.dos-donts .do-col {
  border-top: 3px solid var(--color-success);
  padding-top: 1em;
}
.dos-donts .dont-col {
  border-top: 3px solid var(--color-error);
  padding-top: 1em;
}
.dos-donts h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--size-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}
.dos-donts .do-col h4 {
  color: var(--color-success);
}
.dos-donts .dont-col h4 {
  color: var(--color-error);
}
.dos-donts ul {
  padding-left: 1.25em;
}
.dos-donts li {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.4em;
}

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

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.5em 0;
}
.pre-bet-checklist h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  font-size: var(--size-small);
  margin-bottom: 0.75em;
}
.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.5em;
  border-left: 2px solid var(--color-border);
}
.pre-bet-checklist li {
  position: relative;
  text-align: left;
  color: var(--color-text);
  padding: 0.35em 0;
}
.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.5em;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
  font-size: 1em;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.at-a-glance > div {
  padding: 1.25em;
  text-align: center;
  border-right: 1px solid var(--color-border);
}
.at-a-glance > div:last-child {
  border-right: none;
}
.at-a-glance p:first-child {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35em;
}
.at-a-glance p:not(:first-child) {
  text-align: center;
  font-size: var(--size-small);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .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: 1.75em 2em;
  border-radius: var(--radius);
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.worked-example p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
}
.worked-example p:last-child {
  margin-bottom: 0;
}
.worked-example code,
.worked-example .calc {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  color: var(--color-primary);
}
.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1em 0;
}
.worked-example .result {
  font-weight: 700;
  font-size: 1.15em;
  color: var(--color-accent);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2em 0;
  position: relative;
}
.section-bridge p {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  display: inline;
}
.section-bridge::before,
.section-bridge::after {
  content: '\2014\2014';
  color: var(--color-border);
  font-size: 0.85em;
  vertical-align: middle;
  margin: 0 0.75em;
}

/* --- results-table (extends base table) --- */
.results-table table {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}
.results-table thead th {
  background: var(--color-primary);
  color: var(--color-text-inv);
}

@media (prefers-color-scheme: dark) {
  .results-table thead th {
    background: #1B4332;
    color: #F8F6F3;
  }
}

/* ============================================
   5. HERO SECTION
   ============================================ */
[data-content="hero"] {
  max-width: none;
  padding: 0;
  margin-bottom: var(--section-gap);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}

.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 67, 50, 0.92) 0%,
    rgba(27, 67, 50, 0.85) 40%,
    rgba(27, 67, 50, 0.6) 100%
  );
  z-index: 1;
}

.hero-inner figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-inner figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: var(--max-content);
  margin: 0 auto;
  width: 100%;
}

.hero-text h1 {
  color: #FFFFFF;
  margin-bottom: 0.5em;
  text-align: center;
}

.hero-subtitle {
  text-align: center;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25em;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #1B4332;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-small);
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.65em 1.75em;
  border-radius: var(--radius);
  transition: transform var(--transition), opacity var(--transition);
  margin-top: 1em;
}
.hero-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.hero-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* ============================================
   6. HEADER (date badge, trust marker)
   ============================================ */
[data-content="hero"] header {
  position: absolute;
  top: clamp(1rem, 3vw, 1.5rem);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  padding: 0 1.25rem;
}

.date-badge,
.trust-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 0.35em 0.9em;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* ============================================
   7. TOC — grid 2 columns
   ============================================ */
[data-content="toc"] {
  max-width: var(--max-content);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2em 2.25em;
  box-shadow: var(--shadow-sm);
}

[data-content="toc"] h2 {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1.25em;
}

.toc-grid {
  column-count: 2;
  column-gap: 2em;
}

.toc-group {
  break-inside: avoid;
  margin-bottom: 1em;
}

.toc-group > a {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-body);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.3em 0;
  transition: color var(--transition);
}
.toc-group > a:hover {
  color: var(--color-primary);
}

.toc-sub {
  list-style: none;
  padding-left: 1em;
  margin: 0.15em 0 0.5em;
}
.toc-sub li a {
  font-size: var(--size-small);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.2em 0;
  transition: color var(--transition);
}
.toc-sub li a:hover {
  color: var(--color-accent);
}

@media (max-width: 600px) {
  .toc-grid {
    column-count: 1;
  }
  [data-content="toc"] {
    padding: 1.5em;
  }
}

/* ============================================
   8. 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: 1em 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--size-body);
  color: var(--color-text);
  list-style: none;
  transition: color var(--transition);
}

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

summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25em;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1em;
}

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;
}

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

details::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition:
    opacity var(--transition),
    block-size var(--transition),
    content-visibility var(--transition);
  transition-behavior: allow-discrete;
}

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

details[open] > div {
  padding-bottom: 1em;
}

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

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

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

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  loading: lazy;
}

[data-content] figure {
  margin-left: auto;
  margin-right: auto;
}

[data-content] figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .hero-inner {
    min-height: 380px;
  }

  h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .hero-inner {
    min-height: 320px;
  }
}

/* =========================================
   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: 55px; /* 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 (Greyhound Site - Dark Navy)
   ========================================= */
.site-footer {
    background-color: #0b1120; /* Deep navy blue matching your theme */
    color: #94a3b8; /* Soft blue-grey for text */
    padding: 0 20px 30px;
    font-family: var(--font-body, sans-serif);
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}

/* Back to Top Section */
.footer-top-action {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.back-to-top-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-family: inherit;
}

.back-to-top-btn:hover {
    color: #f59e0b; /* Orange matching your 'Start Reading' button */
}

.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); }
}

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

.footer-title {
    color: #f8fafc; /* Very light grey/white for titles */
    font-size: 1.05rem;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

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

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

/* Links */
.footer-list a {
    color: #34d399; /* Mint green matching your logo text */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: #f59e0b; /* Orange hover state for contrast */
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

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

body {
  overflow-x: clip;
}

