/* =============================================
   1. CSS Variables & Reset
   ============================================= */
:root {
  --color-primary: #1A1B2E;
  --color-accent: #F7931A;
  --color-accent-blue: #00D4FF;
  --color-bg: #F4F5F7;
  --color-text: #6B7280;
  --color-text-secondary: #9CA3AF;
  --color-heading: #1A1B2E;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-purple: #8B5CF6;
  --color-surface: #FFFFFF;
  --color-border: #E5E7EB;
  --color-hero-start: #1A1B2E;
  --color-hero-end: #0F172A;
  --font-family: 'Inter', sans-serif;
  --max-content: 830px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --info-box-bg: #EFF6FF;
  --info-box-border: #00D4FF;
  --callout-bg: #FFFBEB;
  --callout-border: #F59E0B;
  --key-takeaway-border: #10B981;
  --risk-alert-bg: #FEF2F2;
  --risk-alert-border: #EF4444;
  --fun-fact-bg: #F5F3FF;
  --fun-fact-border: #8B5CF6;
  --dos-success: #10B981;
  --dos-danger: #EF4444;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #111218;
    --color-surface: #1C1D2E;
    --color-text: #C9CDD5;
    --color-text-secondary: #8B90A0;
    --color-heading: #E8EAF0;
    --color-border: #2E3044;
    --color-hero-start: #0D0E1A;
    --color-hero-end: #070810;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --info-box-bg: #151C2C;
    --callout-bg: #1C1A14;
    --risk-alert-bg: #1C1416;
    --fun-fact-bg: #18152C;
}



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

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

body {
  font-family: var(--font-family);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  text-align: left;
  margin-bottom: 1em;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-heading);
  text-align: left;
  margin-bottom: 0.75em;
  scroll-margin-top: 2rem;
}

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

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

strong { font-weight: 700; color: var(--color-heading); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9em;
}
thead th {
  text-align: left;
  padding: 0.75em 1em;
  background: var(--color-primary);
  color: #FFFFFF;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
}
tbody td {
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--color-border);
}
tbody tr:nth-child(even) { background: rgba(247,147,26,0.04); }
tbody tr:hover { background: rgba(247,147,26,0.08); transition: background 0.2s ease; }

@media (prefers-color-scheme: dark) {
  thead th { background: #252740; }
}

figure {
  margin: 2em auto;
  text-align: center;
}
figcaption {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: var(--color-text-secondary);
  margin-top: 0.75em;
  text-align: center;
}

/* =============================================
   3. Layout — Sections
   ============================================= */
header {
  padding: 0;
  margin: 0;
}

main {
  width: 100%;
}

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

[data-content] + [data-content] {
  padding-top: 0;
}

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

[data-content="table-of-contents"] {
  max-width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

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

/* --- info-box --- */
.info-box {
  background: var(--info-box-bg);
  border-left: 4px solid var(--info-box-border);
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
.info-box p { color: var(--color-text); text-align: left; margin-bottom: 0.75em; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--color-heading); }

/* --- callout / callout-warning --- */
.callout,
.callout-warning {
  background: var(--callout-bg);
  border-left: 4px solid var(--callout-border);
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
.callout p,
.callout-warning p { color: var(--color-text); text-align: left; margin-bottom: 0.75em; }
.callout p:last-child,
.callout-warning p:last-child { margin-bottom: 0; }
.callout strong,
.callout-warning strong { color: var(--color-heading); }

/* --- risk-alert --- */
.risk-alert {
  background: var(--risk-alert-bg);
  border-left: 4px solid var(--risk-alert-border);
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
.risk-alert p { color: var(--color-text); text-align: left; margin-bottom: 0.75em; }
.risk-alert p:last-child { margin-bottom: 0; }

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--key-takeaway-border);
  padding-top: 1em;
  margin: 2em 0;
}
.key-takeaway p {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-heading);
  text-align: left;
  margin-bottom: 0;
}

/* --- 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 {
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}
.glossary-term .term {
  font-family: 'Courier New', monospace;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  font-weight: 600;
}
.glossary-term .definition {
  color: var(--color-text-secondary);
}
@media (max-width: 600px) {
  .glossary-term { flex-direction: column; gap: 4px; }
}

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

@media (prefers-color-scheme: dark) {
  .odds-example { background: #252740; color: #E8EAF0; }
  .odds-example p { color: #E8EAF0; }
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  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 h3 { font-size: 1rem; margin-bottom: 0.5em; }
.comparison > div p { text-align: left; color: var(--color-text); margin-bottom: 0.5em; }
.comparison > div p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .comparison { grid-template-columns: 1fr; }
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25em;
  margin: 1.5em 0;
}
.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-grid > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-grid > div h3 { font-size: 1rem; margin-bottom: 0.5em; }
.card-grid > div p { text-align: left; color: var(--color-text); margin-bottom: 0; }

/* --- step-card --- */
.step-card {
  position: relative;
  padding-left: 3em;
  margin: 1.5em 0;
}
.step-card::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
}
.step-card p { text-align: left; color: var(--color-text); }

/* --- stat-highlight --- */
.stat-highlight {
  text-align: center;
  margin: 2em 0;
}
.stat-highlight .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  display: block;
}
.stat-highlight .stat-label {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5em;
  display: block;
}

/* --- tldr --- */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5em 2em;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.tldr h2 {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.75em;
}
.tldr ul { margin-bottom: 0; }
.tldr li { text-align: left; color: var(--color-text); }

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin: 1.5em 0;
}
.dos-donts .do-col { border-left: 4px solid var(--dos-success); padding-left: 1.25em; }
.dos-donts .dont-col { border-left: 4px solid var(--dos-danger); padding-left: 1.25em; }
.dos-donts h4 { font-weight: 700; margin-bottom: 0.5em; }
.dos-donts .do-col h4 { color: var(--dos-success); }
.dos-donts .dont-col h4 { color: var(--dos-danger); }
.dos-donts p { text-align: left; color: var(--color-text); }
.dos-donts li { text-align: left; color: var(--color-text); }
@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-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 0.75em;
}
.pre-bet-checklist ul {
  border-left: 2px solid var(--color-border);
  padding-left: 1.75em;
  list-style: none;
}
.pre-bet-checklist li {
  position: relative;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
}
.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.75em;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
  font-size: 0.9em;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.at-a-glance > div {
  padding: 1.25em;
  border-right: 1px solid var(--color-border);
  text-align: center;
}
.at-a-glance > div:last-child { border-right: none; }
.at-a-glance > div h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.25em;
}
.at-a-glance > div p { text-align: center; color: var(--color-text-secondary); font-size: 0.85em; margin-bottom: 0; }
@media (max-width: 600px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div { border-right: none; border-bottom: 1px solid var(--color-border); }
  .at-a-glance > div:last-child { border-bottom: none; }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75em 2em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
.worked-example h4 { font-weight: 700; color: var(--color-heading); margin-bottom: 0.75em; }
.worked-example p { text-align: left; color: var(--color-text); }
.worked-example code, .worked-example .mono {
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  color: var(--color-accent);
}
.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1em 0;
}
.worked-example .result {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--color-accent);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  margin: 2em 0;
  position: relative;
  padding: 0 2em;
}
.section-bridge::before,
.section-bridge::after {
  content: "\2014\2014";
  color: var(--color-border);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.section-bridge::before { left: 0; }
.section-bridge::after { right: 0; }

/* --- comparison-table (same as table but with hover accent) --- */
.comparison-table table { width: 100%; }
.comparison-table tbody tr:hover { background: rgba(247,147,26,0.1); }

/* =============================================
   5. Hero Section
   ============================================= */
[data-content="hero"] {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: linear-gradient(180deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 1.25rem clamp(3rem, 8vw, 6rem);
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23FFFFFF' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%23FFFFFF' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.5;
}

[data-content="hero"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
  pointer-events: none;
}

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

[data-content="hero"] h1 {
  color: #FFFFFF;
  margin-bottom: 0.5em;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] h1 { color: #FFFFFF; }
}

.hero-subtitle {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.5em;
}

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

.hero-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  padding: 0.35em 0.75em;
  border-radius: 4px;
}

.hero-trust {
  font-size: clamp(0.65rem, 0.9vw, 0.75rem);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

[data-content="hero"] figure {
  margin: 2em auto 0;
  max-width: 100%;
}
[data-content="hero"] .hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
}

/* =============================================
   5b. TOC — Horizontal Compact Strip
   ============================================= */
[data-content="table-of-contents"] {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}

.toc-strip a {
  display: inline-flex;
  align-items: center;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.4em 0.85em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.toc-strip a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(247,147,26,0.06);
}
.toc-strip a:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}

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

summary {
  padding: 1em 2em 1em 0;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25em;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}
details[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
}
summary:hover { color: var(--color-accent); }
summary:focus-visible { outline: 2px solid var(--color-accent-blue); outline-offset: 2px; border-radius: 2px; }

/* Modern CSS details animation */
::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
  opacity: 0;
  block-size: 0;
  overflow: hidden;
}
details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

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

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



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

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

  .toc-strip { gap: 0.35em; }

  table { font-size: 0.8em; }
  thead th, tbody td { padding: 0.5em 0.6em; }

  .at-a-glance { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .dos-donts { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 0.5em; }
}

/* =========================================
   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 (Denmark Bitcoin Betting)
   ========================================= */
.site-footer-4col {
    background-color: #0b1121; /* Deep navy matching the UI background */
    color: #94a3b8;
    padding: 60px 20px 30px;
    margin-top: 80px;
    font-family: var(--font-body, sans-serif);
    border-top: 3px solid var(--color-accent, #0ea5e9); /* Sky Blue border */
}

.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, #0ea5e9);
    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;
    }
}

/* Sky Blue Titles (Using div for W3C) */
.widget-title {
    color: var(--color-accent, #0ea5e9); 
    font-family: var(--font-display, sans-serif); 
    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, #0ea5e9);
}

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

.bullet-list li::before {
    content: '•';
    color: var(--color-accent, #0ea5e9); 
    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, #0ea5e9);
    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: #0284c7;
    transform: translateY(-5px);
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden !important; 
        width: 100% !important;
        max-width: 100vw !important;
    }

    main {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    [data-content="hero"], 
    main:not(:has([data-content="toc"])) [data-content="hero"],
    .article-hero,
    .cl-hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important; 
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
    
    .tldr, [data-content], article {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}