/* =============================================
   1. CSS Variables & Reset
   ============================================= */
:root {
  --color-accent: #C85A2A;
  --color-accent-light: #E8A87C;
  --color-bg: #FAFAF7;
  --color-bg-alt: #F2F0EB;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-border: #D9D5CE;
  --color-surface: #FFFFFF;
  --color-success: #2E7D32;
  --color-danger: #C62828;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --content-width: 790px;
  --component-width: 740px;
  --section-gap: clamp(64px, 8vw, 120px);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141413;
    --color-bg-alt: #1E1E1B;
    --color-text: #E8E6E1;
    --color-text-muted: #9A9A94;
    --color-border: #3A3832;
    --color-surface: #1E1E1B;
    --color-accent: #D97B4A;
    --color-accent-light: #A0623D;
}



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

html {
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
}

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

/* =============================================
   2. General Typography
   ============================================= */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 24px;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
  text-align: left;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 16px;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.2em;
  max-width: var(--content-width);
}

ul, ol {
  text-align: left;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  max-width: var(--content-width);
}

li { margin-bottom: 0.5em; }

strong { font-weight: 600; }
em { font-style: italic; }

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

a {
  color: var(--color-accent);
  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);
  outline-offset: 2px;
  border-radius: 2px;
}

figure {
  margin: 24px auto;
  max-width: 100%;
}

figcaption {
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
  font-size: 16px;
}

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

th {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

details { margin-bottom: 0; }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ''; }

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

main { width: 100%; }

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

[data-content="hero"],
[data-content="toc"] {
  max-width: none;
}

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

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 32px 0;
  max-width: var(--component-width);
}
.info-box p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
}
.info-box p + p { margin-top: 12px; margin-bottom: 0; }
.info-box strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* --- odds-example --- */
.odds-example {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 20px 24px;
  margin: 32px 0;
  max-width: var(--component-width);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.odds-example p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 12px;
  max-width: none;
}
.odds-example p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
}
.odds-example table { margin-bottom: 12px; }
.odds-example th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  background: transparent;
  text-align: left;
}
.odds-example td {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
}
.odds-example td:nth-child(3) {
  font-weight: 500;
  font-size: 20px;
}
.odds-example td:nth-child(5) {
  color: var(--color-text-muted);
}

/* --- callout --- */
.callout {
  background: transparent;
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  margin: 32px 0;
  max-width: var(--component-width);
}
.callout p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  font-style: italic;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
  max-width: var(--component-width);
}
.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.card-grid > div:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.card-grid > div p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 8px;
  max-width: none;
}
.card-grid > div p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg-alt);
  margin: 32px 0;
  max-width: var(--component-width);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.comparison > div {
  padding: 24px;
}
.comparison > div:first-child {
  border-right: 1px solid var(--color-border);
}
.comparison > div p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 8px;
  max-width: none;
}
.comparison > div p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--color-text);
}
@media (max-width: 600px) {
  .comparison { grid-template-columns: 1fr; }
  .comparison > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 16px;
  margin: 32px 0;
  max-width: var(--component-width);
}
.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 24px;
  margin: 32px 0;
  max-width: var(--component-width);
}
.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.fun-fact p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  color: var(--color-text-muted);
  text-align: left;
  margin-bottom: 0;
  max-width: none;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0;
  max-width: var(--component-width);
}
.glossary-term p {
  margin-bottom: 0;
  max-width: none;
}
.glossary-term p strong {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.glossary-term p:last-child {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text-muted);
  text-align: left;
}
@media (max-width: 600px) {
  .glossary-term { flex-direction: column; gap: 4px; }
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin: 32px 0;
  max-width: var(--component-width);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.dos-donts > div { padding: 20px; }
.dos-donts > div:first-child { border-right: 1px solid var(--color-border); }
.dos-donts > div p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 12px;
  max-width: none;
}
.dos-donts > div:first-child p strong {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-success);
}
.dos-donts > div:last-child p strong {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-danger);
}
.dos-donts ul {
  padding-left: 0;
  list-style: none;
  max-width: none;
}
.dos-donts li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  text-align: left;
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 8px;
}
.dos-donts > div:first-child li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.dos-donts > div:last-child li::before {
  content: '\2717';
  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: 32px 0;
  max-width: var(--component-width);
}
.pre-bet-checklist p strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}
.pre-bet-checklist p {
  text-align: left;
  margin-bottom: 12px;
  max-width: none;
}
.pre-bet-checklist ul {
  list-style: none;
  padding-left: 24px;
  border-left: 2px solid var(--color-border);
  max-width: none;
}
.pre-bet-checklist li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 10px;
}
.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -14px;
  color: var(--color-accent);
  background: var(--color-bg);
  font-size: 16px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0;
  max-width: var(--component-width);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.at-a-glance > div {
  padding: 20px;
  border-right: 1px solid var(--color-border);
}
.at-a-glance > div:last-child { border-right: none; }
.at-a-glance > div p {
  text-align: center;
  margin-bottom: 4px;
  max-width: none;
}
.at-a-glance > div p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--color-text);
}
.at-a-glance > div p:not(:first-child) {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
}
@media (max-width: 600px) {
  .at-a-glance { grid-template-columns: 1fr; }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:last-child { border-bottom: none; }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  padding: 28px 32px;
  margin: 32px 0;
  max-width: var(--component-width);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
}
.worked-example p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 12px;
  max-width: none;
}
.worked-example p strong { font-weight: 600; }
.worked-example code,
.worked-example span.mono {
  font-family: var(--font-mono);
  font-size: 16px;
}
.worked-example hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 16px 0;
}
.worked-example .result {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-accent);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 48px auto;
  max-width: var(--component-width);
}
.section-bridge::before,
.section-bridge::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 16px;
}
.section-bridge::after { margin: 16px auto 0; }
.section-bridge p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 0;
  max-width: none;
}

/* =============================================
   5. Hero Section
   ============================================= */
[data-content="hero"] {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(60px, 10vw, 120px) 20px clamp(40px, 6vw, 80px);
  text-align: center;
  background: var(--color-bg);
  overflow: hidden;
  margin-bottom: var(--section-gap);
}

/* Track pattern — parallel lane lines (straight sections) */
[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47%,
      var(--color-border) 47%,
      var(--color-border) 47.6%,
      transparent 47.6%,
      transparent 52.4%,
      var(--color-border) 52.4%,
      var(--color-border) 53%,
      transparent 53%
    );
  opacity: 0.1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 0%, transparent 70%);
}

/* Track pattern — oval arcs (curved sections) */
[data-content="hero"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Cellipse cx='400' cy='200' rx='350' ry='150' fill='none' stroke='%23D9D5CE' stroke-width='2'/%3E%3Cellipse cx='400' cy='200' rx='310' ry='110' fill='none' stroke='%23D9D5CE' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 35%;
  background-size: 90% auto;
  opacity: 0.08;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 0%, transparent 65%);
}

.hero-rubric {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

[data-content="hero"] h1 {
  max-width: 900px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 24px;
  border: none;
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-accent);
}

[data-content="hero"] figure {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

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

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

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

.toc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

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

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

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

[data-content="toc"] nav > ul > li > a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
[data-content="toc"] nav > ul > li > a:hover {
  color: var(--color-accent);
  opacity: 1;
}

[data-content="toc"] nav ul ul {
  list-style: none;
  padding-left: 16px;
  margin-top: 6px;
  max-width: none;
}

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

[data-content="toc"] nav ul ul a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
[data-content="toc"] nav ul ul a:hover {
  color: var(--color-accent);
  opacity: 1;
}

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

/* =============================================
   6. FAQ Accordion
   ============================================= */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}

[data-content="faq"] summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--color-text);
  padding: 20px 40px 20px 0;
  position: relative;
  text-align: left;
  transition: color 0.2s ease;
}

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

[data-content="faq"] summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  content: '\2212';
  transform: translateY(-50%);
}

/* Modern accordion animation (Chrome 131+, Firefox 143+, Safari 18.4+) */
[data-content="faq"] details::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
  opacity: 0;
  block-size: 0;
  overflow: clip;
}

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

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

[data-content="faq"] details > div {
  padding-bottom: 20px;
}

[data-content="faq"] details p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  line-height: 1.7;
  max-width: none;
}


/* =============================================
   8. Back to Top
   ============================================= */
.back-to-top {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 40px;
}
.back-to-top:hover {
  background: var(--color-accent);
  color: var(--color-surface);
  opacity: 1;
}
.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =============================================
   9. Media Queries
   ============================================= */
@media (max-width: 768px) {
  [data-content] { padding: 0 16px; }
  [data-content="hero"] { padding: 48px 16px 40px; }
  h3 { margin-top: 32px; }
}

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

/* Header Base */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border, #333);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-navigation-bar {
    max-width: var(--wide-width, 1100px);
    margin: 0 auto;
    padding: 15px var(--component-padding, 24px);
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keep mobile burger on the right */
}

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

@media (min-width: 769px) {
    .top-navigation-bar {
        justify-content: center; /* Center the desktop menu */
    }

    .site-nav--desktop {
        display: block;
    }
    .mobile-controls {
        display: none; /* Hide burger on desktop */
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent);
    }
}

/* --- MOBILE BURGER BUTTON --- */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- MOBILE MENU SLIDER --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; /* Slide in */
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent);
    padding-left: 10px; /* Nice slide effect on hover */
}

/* --- OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); /* Beautiful blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   FOOTER STYLES (Dark & Orange Theme)
   ========================================= */
.site-footer {
    background-color: #0c0c0c; /* Deep black-gray */
    color: #999999;
    padding: 70px 20px 30px;
    font-family: inherit;
    border-top: 1px solid #1a1a1a;
}

.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: 30px; }
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-list li {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

/* Custom Amber/Orange Bullets */
.footer-list.custom-bullets li {
    padding-left: 18px;
}
.footer-list.custom-bullets li::before {
    content: "›";
    color: #e85d26; /* Orange accent */
    position: absolute;
    left: 0;
    top: -1px;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-list a {
    color: #e85d26; /* Orange links */
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-list a:hover {
    color: #ff8c00; /* Brighter amber on hover */
    text-decoration: underline;
}

/* Nav links hover effect */
.footer-list.links-list a:hover {
    transform: translateX(5px);
    text-decoration: none;
    display: inline-block;
}

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

.footer-bottom p {
  text-align: right;
  color: #dbcaca;
}

body {
  overflow-x: clip;
}