:root {
  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Colors - Tennis-inspired palette */
  --color-bg: #fafaf9;
  --color-surface: #f5f5f4;
  --color-surface-alt: #e7e5e4;
  --color-text: #1c1917;
  --color-text-secondary: #57534e;
  --color-text-muted: #78716c;
  --color-accent: #90e519;
  --color-accent-dark: #65a30d;
  --color-border: #d6d3d1;
  --color-border-light: #e7e5e4;
  --color-success: #22c55e;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  
  /* Layout */
  --content-width: 940px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-padding: clamp(1.25rem, 3vw, 2rem);
  
  /* Typography sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
  --text-5xl: clamp(2.75rem, 2rem + 3vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

h2 {
  font-size: var(--text-3xl);
  margin-top: var(--section-gap);
  margin-bottom: 1.5rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--text-2xl);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25em;
}

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

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

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

strong {
  font-weight: 600;
}

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

li {
  margin-bottom: 0.5em;
}

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

/* Figure - global */
figure {
  margin: 1.5em auto;
  max-width: 100%;
}

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

figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Layout - Main */
main {
  width: 100%;
}

article {
  width: 100%;
}

/* Sections - data-content */
[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: var(--section-gap);
  padding-bottom: 0;
}

[data-content]:first-of-type {
  padding-top: 2rem;
}



.site-logo img {
  display: block;
  width: 180px;
  height: auto;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-surface);
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
}

.trust-marker {
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
}

/* Hero Section */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  padding: clamp(4rem, 10vw, 8rem) 1.5rem clamp(3rem, 8vw, 6rem);
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(144, 229, 25, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-rubric {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  margin-bottom: 1.5rem;
}

[data-content="hero"] h1 {
  position: relative;
  z-index: 1;
  font-size: var(--text-5xl);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-byline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.hero-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

[data-content="hero"] figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-accent);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(144, 229, 25, 0.3);
  color: var(--color-text);
}

/* TL;DR Component */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: var(--component-padding);
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 0 6px 6px 0;
}

.tldr h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.tldr ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.tldr li {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* TOC Component - Vertical style */
.toc-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--component-padding);
  margin: 2rem 0;
}

.toc-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-light);
}

.toc-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  column-count: 2;
  column-gap: 2rem;
}

.toc-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.toc-link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.toc-link:hover {
  color: var(--color-accent-dark);
}

.toc-sublist {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.toc-sublist .toc-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Info Box Component */
.info-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--component-padding);
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-box p {
  text-align: left;
  margin-bottom: 0.75em;
}

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

/* Callout Component */
.callout {
  position: relative;
  border-left: 3px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: linear-gradient(90deg, rgba(144, 229, 25, 0.05) 0%, transparent 100%);
}

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

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

.key-takeaway p {
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0;
  color: var(--color-text);
}

/* Fun Fact Component */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

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

.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Glossary Term Component */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.5rem 0;
}

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

.glossary-term dd {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Odds Example Component */
.odds-example {
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 8px;
  padding: var(--component-padding);
  margin: 2rem 0;
  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);
}

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

.card-grid .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
}

.card-grid .card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Comparison Component */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.comparison p {
  text-align: left;
}

/* Dos and Donts Component */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.dos-donts .do,
.dos-donts .dont {
  padding: var(--component-padding);
  border-radius: 8px;
}

.dos-donts .do {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.dos-donts .dont {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.dos-donts h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.dos-donts .do h4 {
  color: var(--color-success);
}

.dos-donts .dont h4 {
  color: var(--color-danger);
}

.dos-donts ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.dos-donts li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

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

.pre-bet-checklist h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-dark);
  margin-bottom: 1rem;
}

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
}

.pre-bet-checklist li::before {
  content: '☐';
  position: absolute;
  left: -1.25rem;
  color: var(--color-accent-dark);
  background: var(--color-bg);
  padding: 0 2px;
}

/* At a Glance Component */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
}

.at-a-glance > div {
  padding: 1.25rem;
  text-align: center;
  border-right: 1px solid var(--color-border-light);
}

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

.at-a-glance h5 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.at-a-glance p {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Worked Example Component */
.worked-example {
  background: var(--color-surface);
  border-radius: 8px;
  padding: calc(var(--component-padding) * 1.25);
  margin: 2rem 0;
}

.worked-example h4 {
  font-size: var(--text-lg);
  margin-bottom: 1rem;
}

.worked-example .step {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--color-border);
}

.worked-example .step:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.worked-example .result {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--color-accent);
}

/* Section Bridge Component */
.section-bridge {
  text-align: center;
  margin: 3rem 0;
  position: relative;
}

.section-bridge::before,
.section-bridge::after {
  content: '·';
  color: var(--color-text-muted);
  margin: 0 0.75rem;
}

.section-bridge span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent-dark);
}

/* Author Bio Component */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-style: italic;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 3rem;
}

/* FAQ Section */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 0;
}

[data-content="faq"] details:last-of-type {
  border-bottom: none;
}

[data-content="faq"] summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

[data-content="faq"] summary::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.3s ease;
}

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

[data-content="faq"] details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

[data-content="faq"] details[open] > div {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.25rem;
}

[data-content="faq"] details p {
  text-align: left;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--text-sm);
}

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

th {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--color-surface);
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: var(--color-surface);
  padding: 4rem 1.5rem 2rem;
  margin-top: var(--section-gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-column h5 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-surface);
  margin-bottom: 1.25rem;
}

.footer-column p,
.footer-column li,
.footer-column a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--color-surface);
}

.footer-bottom {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Images */
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .site-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .header-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .toc-list {
    column-count: 1;
  }
  
  .comparison,
  .dos-donts {
    grid-template-columns: 1fr;
  }
  
  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }
  
  .at-a-glance {
    grid-template-columns: 1fr 1fr;
  }
  
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
  }
  
  .at-a-glance > div:nth-child(odd) {
    border-right: 1px solid var(--color-border-light);
  }
  
  .at-a-glance > div:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  [data-content="hero"] h1 {
    font-size: var(--text-4xl);
  }
  
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  
  .at-a-glance > div {
    border-right: none;
  }
}

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

/* Header Base */
.site-header {
    background-color: var(--color-bg, #121212);
    border-bottom: 1px solid var(--color-border, #333333);
    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: 55px; 
    width: auto !important; 
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

/* Desktop Menu */
.site-nav--desktop {
    display: none; 
}

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

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; 
    }

    .mobile-controls {
        display: none; 
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text, #ffffff);
        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, #eab308);
    }
}

/* 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, #ffffff);
    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%; 
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg, #121212);
    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; 
}

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

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

.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, #ffffff);
    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, #eab308);
    padding-left: 10px; 
}

/* 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); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

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


#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(0, 0, 0);
}




.sitemap-main{
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.sitemap-title{
  margin: 0 0 8px;
  text-align: center;
}

.sitemap-subtitle{
  margin: 0 0 24px;
  text-align: center;
  opacity: 0.75;
}

.sitemap-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.sitemap-link{
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  text-decoration: none;
}

.sitemap-link:hover{
  border-color: rgba(255,255,255,0.2);
}

/* ===== Universal hub (NO body_class needed) ===== */

main.hub-children-main{
  padding-bottom: 48px;
}

/* Article wrapper */
main.hub-children-main .hub-children-article{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Header */
main.hub-children-main .hub-children-header{
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

main.hub-children-main .hub-children-title{
  margin: 0 0 10px;
}

main.hub-children-main .hub-children-intro{
  max-width: 900px;
  margin: 0 auto;
  opacity: .9;
}

/* Grid */
main.hub-children-main .hub-children-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 12px;
}

/* Card */
main.hub-children-main .hub-children-card{
  display: block;
  text-decoration: none;
}

main.hub-children-main .hub-children-card__media{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .22s ease, box-shadow .22s ease;
}

main.hub-children-main .hub-children-card:hover .hub-children-card__media{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

/* Image */
main.hub-children-main .hub-children-card__img{
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

/* Overlay */
main.hub-children-main .hub-children-card__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.42) 55%,
    rgba(0,0,0,0.70) 100%
  );
}

/* Text */
main.hub-children-main .hub-children-card__content{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

main.hub-children-main .hub-children-card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0,0,0,.55);
}

/* Responsive */
@media (max-width: 1024px){
  main.hub-children-main .hub-children-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px){
  main.hub-children-main .hub-children-grid{
    grid-template-columns: 1fr;
  }
}
