/* =================================================================
   1. CSS VARIABLES & RESET
   ================================================================= */
:root {
  --color-primary: #1B5E20;
  --color-primary-dark: #145218;
  --color-accent: #F9A825;
  --color-accent-light: rgba(249,168,37,0.10);
  --color-bg: #F5F5F0;
  --color-surface: #ECEEE8;
  --color-text: #212121;
  --color-text-secondary: #616161;
  --color-danger: #C62828;
  --color-success: #1B5E20;
  --color-border: #D5D5CE;
  --color-border-light: #E0E0DA;
  --color-link: #1B5E20;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-h1: clamp(2rem, 5vw, 3.5rem);
  --text-h2: clamp(1.5rem, 3.5vw, 2.25rem);
  --text-h3: clamp(1.125rem, 2.5vw, 1.5rem);
  --text-body: clamp(0.938rem, 1.5vw, 1.063rem);
  --text-caption: clamp(0.75rem, 1.2vw, 0.875rem);
  --text-blockquote: clamp(1.125rem, 2vw, 1.375rem);

  --content-max: 820px;
  --section-gap: clamp(48px, 6vw, 80px);
  --component-padding: clamp(20px, 3vw, 32px);
  --component-radius: 4px;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-primary: #4CAF50;
    --color-primary-dark: #388E3C;
    --color-accent: #FFB300;
    --color-accent-light: rgba(255,179,0,0.12);
    --color-bg: #141413;
    --color-surface: #1E1E1C;
    --color-text: #E8E6E1;
    --color-text-secondary: #9A9890;
    --color-danger: #EF5350;
    --color-success: #66BB6A;
    --color-border: #333330;
    --color-border-light: #2A2A27;
    --color-link: #66BB6A;
}



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

html {
  scroll-behavior: smooth;
}

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

/* =================================================================
   2. GENERAL TYPOGRAPHY
   ================================================================= */
p {
  text-align: left;
  margin-bottom: 1.2em;
}

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

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

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

ul, ol {
  text-align: left;
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

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

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

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

img.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius);
}

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

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

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

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

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

/* =================================================================
   3. LAYOUT — SECTIONS
   ================================================================= */
header {
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
}

main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(16px, 4vw, 24px);
  margin-bottom: var(--section-gap);
}

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

[data-content="toc"] {
  max-width: 820px;
}

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

/* --- TL;DR --- */
.tldr {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: var(--component-padding);
  border-radius: var(--component-radius);
}

.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.8em;
  color: var(--color-text);
}

.tldr ul {
  padding-left: 1.2em;
  margin-bottom: 0;
}

.tldr li {
  text-align: left;
  margin-bottom: 0.6em;
  font-size: var(--text-body);
  color: var(--color-text);
}

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

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

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

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

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

/* --- Odds Example --- */
.odds-example {
  background: #1B3A1B;
  color: #F5F5F0;
  border-radius: var(--component-radius);
  padding: var(--component-padding);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 1.5em 0;
  text-align: center;
}

.odds-example p {
  text-align: center;
  color: #F5F5F0;
  background: transparent;
  margin-bottom: 0.6em;
}

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

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

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0D1F0D;
    color: #E8E6E1;
  }
  .odds-example p {
    color: #E8E6E1;
  }
  .odds-example strong {
    color: #FFB300;
  }
}

/* --- Callout --- */
.callout {
  border-left: 3px solid var(--color-danger);
  padding: 16px 16px 16px 20px;
  margin: 1.5em 0;
  background: rgba(198,40,40,0.04);
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
}

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

@media (prefers-color-scheme: dark) {
  .callout {
    background: rgba(239,83,80,0.06);
  }
}

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

.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--component-radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

.card-grid h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  margin-bottom: 0.4em;
  color: var(--color-text);
}

.card-grid strong {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.2em;
}

/* --- Comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 1.5em 0;
  border-radius: var(--component-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

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

.comparison p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0.6em;
}

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

.comparison h4 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--color-text);
}

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

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

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

/* --- Fun Fact --- */
.fun-fact {
  position: relative;
  padding-left: 20px;
  margin: 1.5em 0;
}

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

.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: 0.8em 0;
}

.glossary-term .term {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-caption);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.glossary-term .definition {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
}

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

/* --- Dos & Don'ts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 1.5em 0;
  border-radius: var(--component-radius);
  overflow: hidden;
}

.dos-donts > div:first-child {
  background: rgba(27,94,32,0.05);
  padding: var(--component-padding);
}

.dos-donts > div:last-child {
  background: rgba(198,40,40,0.05);
  padding: var(--component-padding);
}

.dos-donts h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  margin-bottom: 0.6em;
}

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

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

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

.dos-donts li {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.4em;
}

@media (prefers-color-scheme: dark) {
  .dos-donts > div:first-child {
    background: rgba(102,187,106,0.08);
  }
  .dos-donts > div:last-child {
    background: rgba(239,83,80,0.08);
  }
}

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

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

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

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

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

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -26px;
  color: var(--color-accent);
  background: var(--color-bg);
  font-size: 14px;
}

/* --- At a Glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin: 1.5em 0;
}

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

.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.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0.2em;
}

.at-a-glance p:last-child {
  text-align: center;
  font-size: var(--text-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-light);
  }
}

/* --- Worked Example --- */
.worked-example {
  background: var(--color-surface);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--component-radius);
  margin: 1.5em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  background: transparent;
  margin-bottom: 0.8em;
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-caption);
}

.worked-example .result {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  color: var(--color-accent);
  font-weight: 700;
}

.worked-example hr {
  border-top-color: var(--color-border);
  margin: 1em 0;
}

/* --- Section Bridge --- */
.section-bridge {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  margin: 1.5em 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.section-bridge::before {
  content: '\2014\2002';
  color: var(--color-border);
}

.section-bridge::after {
  content: '\2002\2014';
  color: var(--color-border);
}

/* =================================================================
   5. HERO SECTION
   ================================================================= */
[data-content="hero"] {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 24px) clamp(30px, 5vw, 50px);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #1B5E20 0%, #2E7D32 100%);
}

/* Diamond / crossed-lines pattern — jockey silks reference */
[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 28px,
      rgba(255,255,255,0.06) 28px,
      rgba(255,255,255,0.06) 29px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 28px,
      rgba(255,255,255,0.06) 28px,
      rgba(255,255,255,0.06) 29px
    );
  pointer-events: none;
}

/* Soft gold centre glow */
[data-content="hero"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(249,168,37,0.07), transparent);
  pointer-events: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.4em;
  position: relative;
}

.date-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 2px;
}

.trust-marker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
}

.hero-rubric {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 1em;
  position: relative;
}

[data-content="hero"] h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.08;
  color: #FFFFFF;
  max-width: 780px;
  margin: 0 auto 0.4em;
  text-align: center;
  position: relative;
}

.hero-hook {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  color: rgba(249,168,37,0.85);
  margin-top: 0.6em;
  margin-bottom: 2em;
  text-align: center;
  position: relative;
}

[data-content="hero"] figure {
  max-width: 780px;
  margin: 2em auto 0;
  position: relative;
}

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

[data-content="hero"] img.hero-image {
  border-radius: var(--component-radius);
}

/* =================================================================
   6. TOC — Grid (2 columns via column-count)
   ================================================================= */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

.toc-list {
  column-count: 2;
  column-gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 1em;
}

.toc-list > li > a {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.toc-list > li > a:hover {
  color: var(--color-primary);
  opacity: 1;
}

.toc-sublist {
  list-style: none;
  padding-left: 16px;
  margin-top: 0.3em;
}

.toc-sublist li {
  margin-bottom: 0.25em;
}

.toc-sublist a {
  font-size: var(--text-caption);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.toc-sublist a:hover {
  color: var(--color-primary);
  opacity: 1;
}

@media (max-width: 600px) {
  .toc-list {
    column-count: 1;
  }
}

/* =================================================================
   7. FAQ — Details/Summary Accordion
   ================================================================= */
details {
  border-bottom: 1px solid var(--color-border-light);
  interpolate-size: allow-keywords;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  transition: color 0.2s ease;
}

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

summary::marker {
  content: '';
}

summary::after {
  content: '+';
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

details[open] summary::after {
  content: '\2212';
}

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

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

/* Modern animated accordion — ::details-content */
::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
  block-size: 0;
  opacity: 0;
  overflow: clip;
}

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

/* 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 p {
  text-align: left;
  padding-bottom: 16px;
}

/* =================================================================
   8. BACK TO TOP
   ================================================================= */
.back-to-top {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 0;
  margin-top: 1em;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--color-primary);
  opacity: 1;
}

/* =================================================================
   10. RESPONSIVE
   ================================================================= */
@media (max-width: 768px) {
  [data-content="hero"] {
    padding: clamp(60px, 10vw, 100px) 16px clamp(40px, 6vw, 60px);
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }
}

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

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

/* --- LOGO FIXES --- */
.site-logo img {
    max-height: 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 */
}

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

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; /* Locks menu perfectly in the center */
    }

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

/* =========================================
   4-COLUMN FOOTER (UK Horse Racing Tips)
   ========================================= */
.site-footer-4col {
    background-color: #121212; /* Very dark background to match your screenshot */
    color: #94a3b8;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #2E8B57); /* Classic Forest/Racing Green */
}

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

/* Legal Disclaimers Block */
.footer-disclaimers {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimers p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.footer-disclaimers a {
    color: var(--color-accent, #2E8B57);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-disclaimers a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Grid Layout */
.footer-4col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

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

/* Green Titles */
.widget-title {
    color: var(--color-accent, #2E8B57); 
    font-family: var(--font-display, serif); /* Matches the serif headers in your screenshot */
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    margin-top: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.widget-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

.widget-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-list a:hover {
    color: var(--color-accent, #2E8B57);
}

/* Bullets */
.bullet-list li {
    position: relative;
    padding-left: 16px;
}

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #2E8B57); 
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    line-height: 1;
}

.clean-list li {
    padding-left: 0;
    padding-bottom: 0.8rem;
}

.clean-list li::before {
    display: none;
}

.footer-4col-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    text-align: center;
}

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

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent, #2E8B57);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #1E6B40;
    transform: translateY(-5px);
}

body {
  overflow-x: clip;
}