
/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B7280;
  --color-accent: #10B981;
  --color-accent-hover: #059669;
  --color-border: #E5E7EB;
  --color-hero-bg: #111827;
  --color-hero-text: #FFFFFF;
  --color-danger: #EF4444;
  --color-success: #10B981;
  --color-callout-bg: #FFFBEB;
  --color-callout-border: #F59E0B;
  --color-calc-bg: #F9FAFB;
  --color-surface-alt: #F3F4F6;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --content-width: 840px;
  --component-width: 1080px;
  --section-gap: 80px;
  --section-gap-mobile: 48px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-component: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);

    /* --- AUTO-FORCED DARK THEME --- */
    --color-bg: #111827;
    --color-surface: #1F2937;
    --color-text: #F3F4F6;
    --color-text-secondary: #9CA3AF;
    --color-border: #374151;
    --color-hero-bg: #0B0F19;
    --color-calc-bg: #1F2937;
    --color-callout-bg: #292218;
    --color-surface-alt: #1F2937;
    --shadow-component: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
}



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

/* ============================================
   2. General Typography
   ============================================ */
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 24px;
  scroll-margin-top: 2rem;
}

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

p {
  text-align: left;
  margin-bottom: 24px;
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  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;
}

strong {
  font-weight: 600;
}

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

ul, ol {
  text-align: left;
  padding-left: 0;
  margin-bottom: 24px;
  list-style: none;
}

li {
  text-align: left;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 14px;
  line-height: 1.8;
}

ol {
  counter-reset: list-counter;
}

ol li {
  counter-increment: list-counter;
}

ol li::before {
  content: counter(list-counter) '.';
  font-weight: 600;
  font-size: 16px;
}

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

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

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

th {
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
  background-color: var(--color-surface-alt);
}

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

/* ============================================
   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: var(--section-gap) 24px;
}

[data-content] img.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

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

/* --- info-box --- */
.info-box {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  margin: 32px 0;
  box-shadow: var(--shadow-component);
}

.info-box p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
  background-color: var(--color-surface);
}

.info-box p:not(:last-child) {
  margin-bottom: 12px;
}

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

/* --- calc-example --- */
.calc-example {
  background-color: var(--color-calc-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-component);
}

.calc-example p {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 8px;
  background-color: var(--color-calc-bg);
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.calc-example p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.calc-example p:first-child strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.calc-example p:last-child,
.calc-example p:nth-last-child(1) {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-accent);
  background-color: var(--color-calc-bg);
}

/* --- callout --- */
.callout {
  background-color: var(--color-callout-bg);
  border-left: 4px solid var(--color-callout-border);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  margin: 32px 0;
  box-shadow: var(--shadow-component);
}

.callout p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
  background-color: var(--color-callout-bg);
}

.callout p:not(:last-child) {
  margin-bottom: 12px;
}

.callout strong {
  font-weight: 600;
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card-grid > div {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-component);
  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.08);
}

.card-grid > div p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 8px;
  background-color: var(--color-surface);
}

.card-grid > div p:last-child {
  margin-bottom: 0;
}

.card-grid > div strong {
  font-weight: 600;
  color: var(--color-text);
}

/* --- comparison --- */
.comparison {
  margin: 32px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-component);
}

.comparison table {
  margin-bottom: 0;
}

.comparison th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--color-surface-alt);
  color: var(--color-text);
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.comparison td {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

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

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 20px;
  margin: 40px 0;
}

.key-takeaway p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 24px;
  margin: 32px 0;
  border-left: 2px solid var(--color-border);
}

.fun-fact p {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
}

.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: -2px;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  transform: translateX(-50%);
}

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

.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.glossary-term span,
.glossary-term p {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  font-size: 16px;
  text-align: left;
  margin-bottom: 0;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.dos-donts > div {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-component);
}

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

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

.dos-donts > div:first-child p strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-success);
}

.dos-donts > div:last-child p strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-danger);
}

.dos-donts > div p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 12px;
  background-color: var(--color-surface);
}

.dos-donts > div ul {
  margin-bottom: 0;
}

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

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

.dos-donts > div li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  background-color: var(--color-surface);
}

/* --- pre-game-checklist --- */
.pre-game-checklist {
  margin: 32px 0;
}

.pre-game-checklist > p strong {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  font-size: 16px;
}

.pre-game-checklist > p {
  margin-bottom: 16px;
  text-align: left;
}

.pre-game-checklist ul {
  border-left: 2px solid var(--color-border);
  padding-left: 32px;
  margin-bottom: 0;
}

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

.pre-game-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -4px;
  color: var(--color-accent);
  font-size: 18px;
  background-color: var(--color-bg);
  padding: 0 2px;
  line-height: 1.8;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 3px solid var(--color-accent);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  background-color: var(--color-surface);
  margin: 32px 0;
  box-shadow: var(--shadow-component);
}

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

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

.at-a-glance > div p:first-child {
  text-align: left;
  margin-bottom: 4px;
}

.at-a-glance > div p:first-child strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.at-a-glance > div p:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text);
  text-align: left;
  line-height: 1.2;
  margin-bottom: 4px;
  background-color: var(--color-surface);
}

.at-a-glance > div p:last-child:not(:nth-child(2)) {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
  background-color: var(--color-surface);
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius-md);
  margin: 32px 0;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-component);
}

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

.worked-example p strong {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}

.worked-example hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 16px 0;
}

.worked-example p:last-child {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-accent);
  margin-bottom: 0;
  background-color: var(--color-surface);
}

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

.section-bridge::before,
.section-bridge::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: 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: 17px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 0;
}

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: radial-gradient(ellipse at 50% 40%, rgba(16,185,129,0.15) 0%, rgba(17,24,39,0) 60%), var(--color-hero-bg);
  padding: 80px 24px 60px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] {
    background: radial-gradient(ellipse at 50% 40%, rgba(16,185,129,0.12) 0%, rgba(11,15,25,0) 60%), var(--color-hero-bg);
  }
}

[data-content="hero"] .hero-rubric {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

[data-content="hero"] h1 {
  color: var(--color-hero-text);
  max-width: 780px;
  margin: 0 auto 16px;
}

[data-content="hero"] .hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

[data-content="hero"] .hero-divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 24px auto;
  border: none;
}

[data-content="hero"] .hero-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 0;
}

[data-content="hero"] .hero-meta .updated-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background-color: rgba(16,185,129,0.15);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-content="hero"] figure {
  max-width: 960px;
  margin: 40px auto 0;
}

[data-content="hero"] figure img.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
}

/* ============================================
   6. TOC — Grid 2 Columns
   ============================================ */
[data-content="toc"] {
  max-width: var(--component-width);
  padding-top: 48px;
  padding-bottom: 48px;
}

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

.toc-nav {
  column-count: 2;
  column-gap: 48px;
}

.toc-group {
  break-inside: avoid;
  margin-bottom: 16px;
}

.toc-group a.toc-h2 {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.toc-group a.toc-h2:hover {
  color: var(--color-accent);
}

.toc-group a.toc-h2:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.toc-sub {
  list-style: none;
  padding-left: 16px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.toc-sub li {
  padding-left: 0;
  margin-bottom: 4px;
}

.toc-sub li::before {
  display: none;
}

.toc-sub 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-sub a:hover {
  color: var(--color-accent);
}

.toc-sub a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   7. FAQ Accordion
   ============================================ */
details {
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

details:first-of-type {
  border-top: 1px solid var(--color-border);
}

summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  text-align: left;
  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: 20px;
  font-weight: 400;
  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);
  outline-offset: 2px;
}

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

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

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

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

details div p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  padding-bottom: 20px;
}

/* ============================================
   9. Media Queries
   ============================================ */
@media (max-width: 768px) {
  [data-content] {
    padding: var(--section-gap-mobile) 20px;
  }

  [data-content="hero"] {
    padding: 56px 20px 40px;
  }

  .toc-nav {
    column-count: 1;
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

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

  .comparison th,
  .comparison td {
    font-size: 14px;
    padding: 10px 12px;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

  .calc-example {
    padding: 20px 24px;
  }

  .worked-example {
    padding: 24px;
  }

  .card-grid {
    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 (Slate Navy & Teal Accent)
   ========================================= */
.site-footer {
    background-color: #0f172a; /* Slate/Navy dark background */
    color: #94a3b8; /* Light slate text */
    padding: 60px 20px 20px;
    font-family: inherit;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    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: #f8fafc;
    font-size: 1.05rem;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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 Teal accent and arrow style */
.footer-list.custom-bullets li {
    padding-left: 18px;
}
.footer-list.custom-bullets li::before {
    content: "▶"; /* Arrow style from your screenshot */
    color: #00d4a1; /* Teal accent */
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.7rem;
}

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

.footer-list a:hover {
    color: #00d4a1; /* Teal 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 #1e293b;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

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

