/* =============================================
   1. CSS Variables & Reset
   ============================================= */
:root {
  /* Colors - Light theme */
  --color-bg: #F5F4F0;
  --color-bg-hero: #F5F4F0;
  --color-text: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-accent: #2D7A4F;
  --color-accent-hover: #1E5A38;
  --color-surface: #EDECEA;
  --color-border: #D4D2CE;
  --color-danger: #C0392B;
  --color-success: #2D7A4F;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --content-width: 800px;
  --wide-width: 1200px;
  --section-gap: clamp(64px, 8vw, 120px);
  --body-size: 18px;
  --body-lh: 1.7;

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #141413;
    --color-bg-hero: #141413;
    --color-text: #E8E7E3;
    --color-text-secondary: #A3A19D;
    --color-accent: #4CAF72;
    --color-accent-hover: #6BCF8F;
    --color-surface: #1E1E1C;
    --color-border: #333330;
    --color-danger: #E05A4F;
    --color-success: #4CAF72;
}



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

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

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

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

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

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

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

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

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

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  scroll-margin-top: 2rem;
}

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

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

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

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

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

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

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

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

th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

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

figcaption {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.75em;
}

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

main {
  width: 100%;
}

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

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

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

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  margin: 2em 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.info-box p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
  background: transparent;
}

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

.info-box p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* --- calc-example --- */
.calc-example {
  background: #1A1A1A;
  color: #F5F4F0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  padding: 32px;
  margin: 2em 0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.calc-example p {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #F5F4F0;
  background: transparent;
  text-align: left;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

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

.calc-example strong,
.calc-example .num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

.calc-example .arrow {
  font-family: var(--font-body);
  font-weight: 300;
  color: #F5F4F0;
  opacity: 0.5;
}

@media (prefers-color-scheme: dark) {
  .calc-example {
    background: #0D0D0D;
    color: #F5F4F0;
  }
  .calc-example p {
    color: #F5F4F0;
  }
}

/* --- callout --- */
.callout {
  background: transparent;
  border: 2px solid var(--color-accent);
  padding: 24px 28px;
  margin: 2em 0;
  border-radius: 0;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.callout::before {
  content: "!";
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-accent);
  position: absolute;
  top: 24px;
  left: 28px;
}

.callout p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  background: transparent;
  text-align: left;
  padding-left: 28px;
}

.callout a {
  color: var(--color-accent);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.card-grid > div {
  background: var(--color-surface);
  padding: 24px;
  border-bottom: 2px solid var(--color-accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-grid > div p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
  background: transparent;
  text-align: left;
  margin-bottom: 0.5em;
}

.card-grid > div p:first-child {
  margin-bottom: 0.5em;
}

.card-grid > div p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 2em 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.comparison > div {
  padding: 24px;
}

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

.comparison > div:last-child {
  background: var(--color-bg);
}

.comparison p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  text-align: left;
}

.comparison p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--color-text);
  display: block;
  margin-bottom: 12px;
}

.comparison ul {
  list-style: none;
  padding-left: 0;
}

.comparison li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.comparison li:last-child {
  border-bottom: none;
}

@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: 2em 0;
}

.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.35;
  color: var(--color-text);
  background: transparent;
  text-align: left;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 24px;
  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-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  background: transparent;
  text-align: left;
}

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

.glossary-term strong,
.glossary-term .term {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.glossary-term span,
.glossary-term .definition {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
}

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

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dos-donts > div {
  padding: 20px;
  background: transparent;
}

.dos-donts > div:first-child {
  border-left: 4px solid var(--color-success);
}

.dos-donts > div:last-child {
  border-left: 4px solid var(--color-danger);
}

.dos-donts p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  text-align: left;
}

.dos-donts p strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

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

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

.dos-donts li {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  padding: 5px 0;
  text-align: left;
}

.dos-donts > div:first-child li::before {
  content: "\2713 ";
  color: var(--color-success);
  font-weight: 700;
  margin-right: 6px;
}

.dos-donts > div:last-child li::before {
  content: "\2717 ";
  color: var(--color-danger);
  font-weight: 700;
  margin-right: 6px;
}

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

/* --- pre-game-checklist --- */
.pre-game-checklist {
  margin: 2em 0;
  position: relative;
}

.pre-game-checklist > p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-align: left;
  background: transparent;
}

.pre-game-checklist ul {
  list-style: none;
  padding-left: 32px;
  border-left: 2px solid var(--color-border);
  position: relative;
}

.pre-game-checklist li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  padding: 8px 0;
  position: relative;
  text-align: left;
}

.pre-game-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -42px;
  color: var(--color-accent);
  font-size: 16px;
  background: var(--color-bg);
  padding: 0 4px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-surface);
  margin: 2em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

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

.at-a-glance p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  text-align: left;
  margin-bottom: 0.4em;
}

.at-a-glance p:last-child {
  margin-bottom: 0;
}

.at-a-glance p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 700px) {
  .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: 32px;
  margin: 2em 0;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.worked-example p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: transparent;
  text-align: left;
  margin-bottom: 1em;
}

.worked-example .step {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
}

.worked-example .step::after {
  content: "\2193";
  display: block;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 18px;
  margin: 8px 0;
}

.worked-example .step:last-of-type::after {
  display: none;
}

.worked-example .result {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  background: transparent;
  border-top: 2px solid var(--color-accent);
  padding-top: 12px;
  margin-top: 12px;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  padding: 40px 24px;
  margin: 0;
  position: relative;
}

.section-bridge::before,
.section-bridge::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto 20px;
}

.section-bridge::after {
  margin: 20px auto 0;
}

.section-bridge p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: center;
  background: transparent;
  margin: 0;
}

/* =============================================
   5. Hero Section
   ============================================= */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 0 var(--section-gap);
  position: relative;
  overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect x='16' y='16' width='8' height='8' transform='rotate(45 20 20)' fill='rgba(45,122,79,0.04)'/%3E%3C/svg%3E") repeat,
    radial-gradient(ellipse at 30% 60%, rgba(45,122,79,0.08) 0%, transparent 60%),
    var(--color-bg-hero);
  background-blend-mode: normal;
}

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

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 100px) 24px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-inner .label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

[data-content="hero"] h1 {
  font-size: clamp(36px, 6vw, 56px);
  margin-bottom: 20px;
  text-align: center;
}

[data-content="hero"] .subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto 28px;
  text-align: center;
}

.hero-divider {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  margin: 0 auto 24px;
}

.hero-inner .meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}

.hero-inner .meta time {
  margin-right: 12px;
}

.hero-inner .meta .badge {
  display: inline-block;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 3px 10px;
  vertical-align: middle;
}

[data-content="hero"] figure {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

[data-content="hero"] figure figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

.hero-inner .start-reading {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-decoration: none;
  border: 1.5px solid var(--color-accent);
  padding: 10px 28px;
  margin-top: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-inner .start-reading:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* =============================================
   6. Table of Contents — Vertical list
   ============================================= */
[data-content="toc"] {
  max-width: var(--content-width);
  padding-bottom: calc(var(--section-gap) * 0.6);
}

.toc-nav {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}

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

.toc-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-nav > ol > li {
  margin-bottom: 10px;
}

.toc-nav > ol > 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;
}

.toc-nav > ol > li > a:hover {
  color: var(--color-accent);
}

.toc-nav ol ol {
  list-style: none;
  padding-left: 20px;
  margin-top: 6px;
}

.toc-nav ol ol li {
  margin-bottom: 4px;
}

.toc-nav ol ol a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-nav ol ol a:hover {
  color: var(--color-accent);
}

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

[data-content="faq"] details:first-of-type {
  border-top: 1px solid var(--color-border);
}

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

[data-content="faq"] summary::-webkit-details-marker {
  display: none;
}

[data-content="faq"] summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 24px;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

[data-content="faq"] details[open] summary::after {
  transform: rotate(45deg);
}

[data-content="faq"] summary:hover {
  color: var(--color-accent);
}

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

/* Modern animated accordion — ::details-content */
[data-content="faq"] details::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition:
    opacity 0.3s ease,
    block-size 0.3s ease,
    content-visibility 0.3s ease allow-discrete;
}

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

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

[data-content="faq"] details div p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  background: transparent;
}

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

/* =============================================
   8. Article 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;
  loading: lazy;
}

/* =============================================
   10. Media Queries
   ============================================= */
@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }

  [data-content] {
    padding-left: 18px;
    padding-right: 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  [data-content="hero"] h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .hero-inner {
    padding-top: clamp(36px, 6vw, 60px);
  }
}

@media (max-width: 480px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   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 & Green Accent)
   ========================================= */
.site-footer {
    background-color: #0d0d0d; /* Very dark background to blend with the new site */
    color: #9ba0a8;
    padding: 60px 20px 20px;
    font-family: inherit;
    border-top: 1px solid #1f2124;
}

.footer-container {
    max-width: 1100px; /* Aligned with the site's main container width */
    margin: 0 auto;
}

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

/* Tablet layout */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-title {
    color: #e8e6e3;
    font-size: 1.05rem;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px; /* Matches the hero typography */
}

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

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

/* Bullets with matching green accent */
.footer-list.custom-bullets li {
    padding-left: 15px;
}
.footer-list.custom-bullets li::before {
    content: "•";
    color: #2EAD64; /* Matching the green accent from the button */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.footer-list a {
    color: #9ba0a8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #2EAD64; /* Green hover effect */
}

/* Subtle slide-right effect for navigation links on hover */
.footer-list.links-list a:hover {
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid #1f2124;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #7a7f87;
}

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