/* === 1. CSS Variables & Reset === */
:root {
  --color-bg: #f8fafb;
  --color-surface: #f3f4f6;
  --color-border: #d1d5db;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-accent: #059669;
  --color-accent-dark: #047857;
  --color-header-bg: #ffffff;
  --color-footer-bg: #111827;
  --color-footer-text: #e5e7eb;
  --color-success: #059669;
  --color-danger: #dc2626;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;
  --content-width: 940px;
  --section-gap: 4rem;
}

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

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* Global text overflow prevention */
[data-content] { overflow-wrap: break-word; word-break: normal; }
[data-content] p, [data-content] li, [data-content] td { overflow-wrap: break-word; }

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent-dark); }
a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 2px; }

/* === 2. General Typography === */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); text-align: left; scroll-margin-top: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); text-align: left; scroll-margin-top: 2rem; margin-bottom: 1rem; }

h3 {
  color: #f4fcff;
}

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

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

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}
th, td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  background: var(--color-surface);
}

figure { margin: 1.5em auto; }
figure img { display: block; max-width: 100%; height: auto; }
figcaption {
  text-align: center;
  font-size: 0.85em;
  color: var(--color-text-secondary);
  margin-top: 0.5em;
}

/* === 3. Layout — Sections === */
main { width: 100%; }

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

[data-content="intro"] { margin-top: 2.5rem; }

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

/* - info-box - */
.info-box {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  padding: 1.25rem 1.5rem;
  margin: 1.75em 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow-wrap: break-word;
  word-break: normal;
}
.info-box p { text-align: left; color: var(--color-text); margin-bottom: 0.75em; }
.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--color-text); }

/* - odds-example - */
.odds-example {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.75em 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.odds-example table { margin: 0; }
.odds-example th {
  background: transparent;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}
.odds-example td {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95em;
  color: var(--color-text);
  text-align: left;
}
.odds-example td:first-child { font-family: var(--font-body); font-weight: 700; }
.odds-example p { text-align: center; color: var(--color-text-secondary); font-size: 0.85em; margin-top: 0.75em; }
.odds-example em { color: var(--color-text-secondary); }

/* - callout - */
.callout {
  background: rgba(5, 150, 105, 0.07);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75em 0;
  border-radius: 0 6px 6px 0;
}
.callout p { text-align: left; color: var(--color-text); margin-bottom: 0.75em; }
.callout p:last-child { margin-bottom: 0; }

/* - card-grid - */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.75em 0;
}
.card-grid > div {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.card-grid > div:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card-grid p { text-align: left; color: var(--color-text); margin-bottom: 0.5em; }
.card-grid p:last-child { margin-bottom: 0; }
.card-grid strong { color: var(--color-text); font-family: var(--font-heading); font-size: 1.05em; }

/* - comparison - */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75em 0;
}
.comparison > div {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.25rem;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.comparison p { text-align: left; color: var(--color-text); margin-bottom: 0.5em; }
.comparison p:last-child { margin-bottom: 0; }
.comparison strong { font-family: var(--font-heading); font-size: 1.1em; color: var(--color-text); }

/* - tldr - */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  overflow-wrap: break-word;
  word-break: normal;
}
.tldr h2 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-accent-dark);
  text-align: left;
}
.tldr ul { padding-left: 1.25em; margin-bottom: 0; }
.tldr li { margin-bottom: 0.5em; font-size: 0.95em; color: var(--color-text); text-align: left; }
.tldr li:last-child { margin-bottom: 0; }

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

/* - fun-fact - */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.75em 0;
}
.fun-fact::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2em;
  line-height: 1.75;
}
.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--color-text-secondary);
}

/* - glossary-term - */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.75em 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.glossary-term p { text-align: left; margin-bottom: 0; color: var(--color-text); min-width: 0; }
.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* - dos-donts - */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75em 0;
}
.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 {
  background: var(--color-surface);
  border-radius: 0 0 6px 6px;
  padding: 1.25rem;
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.dos-donts p { text-align: left; color: var(--color-text); margin-bottom: 0.75em; }
.dos-donts strong { font-family: var(--font-heading); font-size: 1em; }
.dos-donts > div:first-child strong { color: var(--color-success); }
.dos-donts > div:last-child strong { color: var(--color-danger); }
.dos-donts ul { padding-left: 1.25em; margin-bottom: 0; }
.dos-donts li { text-align: left; color: var(--color-text); margin-bottom: 0.4em; font-size: 0.95em; }

/* - pre-bet-checklist - */
.pre-bet-checklist {
  margin: 1.75em 0;
}
.pre-bet-checklist > p {
  text-align: left;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85em;
  color: var(--color-accent);
  margin-bottom: 0.75em;
}
.pre-bet-checklist ul {
  border-left: 2px solid var(--color-border);
  padding-left: 1.75rem;
  list-style: none;
  margin-bottom: 0;
}
.pre-bet-checklist li {
  position: relative;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.6em;
  padding-left: 0.25rem;
}
.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.75rem;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
  font-size: 1.05em;
}

/* - at-a-glance - */
.at-a-glance {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  table-layout: fixed;
}
.at-a-glance td {
  width: 50%;
  padding: 1.1rem 1rem;
  text-align: center;
  vertical-align: top;
  border: 1px solid var(--color-border);
}
.at-a-glance p { text-align: center; color: var(--color-text); margin-bottom: 0.25em; }
.at-a-glance p:last-child { margin-bottom: 0; color: var(--color-text-secondary); font-size: 0.8em; line-height: 1.45; }
.at-a-glance strong {
  font-family: var(--font-mono);
  font-size: 1.05em;
  font-weight: 500;
  color: var(--color-accent-dark);
  display: block;
}

/* - worked-example - */
.worked-example {
  background: var(--color-surface);
  padding: 1.75rem;
  margin: 1.75em 0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow-wrap: break-word;
  word-break: normal;
}
.worked-example p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
  font-family: var(--font-mono);
  font-size: 0.88em;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}
.worked-example p:first-child {
  font-family: var(--font-heading);
  font-size: 1.05em;
  font-weight: 600;
  color: var(--color-accent-dark);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75em;
  margin-bottom: 1em;
}
.worked-example p:last-child {
  color: var(--color-accent-dark);
  font-weight: 500;
  margin-bottom: 0;
}

/* - section-bridge - */
.section-bridge {
  text-align: center;
  margin: 2.5em 0 0.5em;
  position: relative;
}
.section-bridge::before,
.section-bridge::after {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--color-border);
  vertical-align: middle;
  margin: 0 0.75rem;
}
.section-bridge p {
  display: inline;
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.95em;
}

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

/* === 5. Hero Section === */
.site-header {
  background: var(--color-header-bg);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img {
  height: 36px;
  width: auto;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
}
.header-meta time {
  color: var(--color-text-secondary);
}
.trust-marker {
  color: var(--color-accent);
  font-weight: 600;
}

[data-content="hero"] {
  max-width: 100%;
  padding: 3.5rem 1.25rem 3rem;
  margin-top: 0;
  margin-bottom: 0;
  background: var(--color-header-bg);
  text-align: center;
}
[data-content="hero"] > * {
  position: relative;
  z-index: 1;
}
[data-content="hero"] .hero-subtitle {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  text-align: center;
}
[data-content="hero"] h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 1rem;
  text-transform: uppercase;
}
[data-content="hero"] .hero-byline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 1.5rem;
}
[data-content="hero"] figure {
  margin: 0 auto;
  max-width: var(--content-width);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-content="hero"] figure img {
  display: block;
  width: 100%;
  height: auto;
}
[data-content="hero"] .hero-cta {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.65rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: var(--color-accent);
  border-radius: 4px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
[data-content="hero"] .hero-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  color: #ffffff;
}

/* === TOC === */
[data-content="toc"] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.toc-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.toc-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-right: 0.5rem;
  white-space: nowrap;
}
.toc-bar a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.toc-bar a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(5,150,105,0.04);
}

/* === FAQ Accordion === */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
  padding: 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;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--color-text);
  list-style: none;
  transition: color 0.2s ease;
}
[data-content="faq"] summary::-webkit-details-marker { display: none; }
[data-content="faq"] summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
[data-content="faq"] details[open] > summary::after {
  content: "-";
}
[data-content="faq"] summary:hover { color: var(--color-accent); }

/* FAQ animation — primary method */
[data-content="faq"] details {
  interpolate-size: allow-keywords;
}
[data-content="faq"] ::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, block-size 0.35s ease, content-visibility 0.35s ease allow-discrete;
}
[data-content="faq"] details[open]::details-content {
  opacity: 1;
  block-size: auto;
}
/* Fallback for older browsers */
@supports not selector(::details-content) {
  [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;
  }
}

[data-content="faq"] details > div { padding: 0 0 1rem 0; }
[data-content="faq"] details p {
  text-align: left;
  color: var(--color-text);
  font-size: 0.95em;
  line-height: 1.7;
}

/* === 6. Footer === */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: var(--section-gap);
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto 2rem;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.footer-col p {
  text-align: left;
  color: var(--color-footer-text);
  margin-bottom: 0.5em;
  font-size: 0.78rem;
  opacity: 0.8;
}
.footer-col a {
  color: var(--color-footer-text);
  opacity: 0.8;
  transition: opacity 0.2s ease;
  font-size: 0.78rem;
}
.footer-col a:hover { opacity: 1; color: #ffffff; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.35em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.72rem;
  color: var(--color-footer-text);
  opacity: 0.7;
}

/* === 7. Media Queries === */
@media (max-width: 768px) {
  :root { --section-gap: 2.5rem; }
  [data-content] { padding-left: 1rem; padding-right: 1rem; }
  [data-content="hero"] { padding: 2.5rem 1rem 2rem; }
  .comparison { grid-template-columns: 1fr; }
  .dos-donts { grid-template-columns: 1fr; }
  .at-a-glance td { padding: 0.85rem 0.75rem; font-size: 0.95em; }
  .card-grid { grid-template-columns: 1fr; }
  .glossary-term { flex-direction: column; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .toc-bar { gap: 0.4rem; }
  .toc-bar a { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
  table { font-size: 0.85em; }
  .odds-example { overflow-x: auto; }
  .worked-example { padding: 1.25rem; }
  .worked-example p { font-size: 0.82em; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
  .header-meta { font-size: 0.65rem; }
  .at-a-glance td { display: block; width: 100%; border-right: none; }
  .at-a-glance tr { display: block; }
}

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




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

.home main > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero),
.home main article > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero) {
    max-width: var(--content-max-width, 940px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

.home main iframe,
.home main article iframe {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
    width: 100% !important;
}

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



