/* =============================================
   1. CSS Variables & Reset
   ============================================= */
:root {
  --page-bg: #f5f7fb;
  --header-bg: #ffffff;
  --footer-bg: #0a1832;
  --text-primary: #1a1e2e;
  --text-secondary: #525670;
  --accent: #0a2463;
  --accent-hover: #081d52;
  --accent-light: #ebeef6;
  --muted-border: #d0d4e2;
  --content-width: 940px;
  --section-gap: 4rem;
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;
  --success: #1a7a3a;
  --danger: #b91c1c;
  --surface: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   2. General Typography
   ============================================= */
h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.2;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.5vw + 0.8rem, 1.85rem);
  line-height: 1.3;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.35rem);
  line-height: 1.35;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

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

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

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

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

strong {
  font-weight: 700;
}

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

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

li {
  margin-bottom: 0.5rem;
}

figure {
  margin: 1.5em auto;
}

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

figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

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

th {
  font-family: var(--font-heading);
  font-weight: 700;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

td {
  background-color: var(--surface);
}

tr:nth-child(even) td {
  background-color: var(--accent-light);
}

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

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

[data-content="faq"] {
  margin-bottom: 2rem;
}

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

/* --- TL;DR --- */
.tldr {
  background-color: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.75rem 2rem;
}

.tldr h2 {
  font-size: clamp(1.05rem, 1vw + 0.7rem, 1.2rem);
  margin-bottom: 1rem;
  color: var(--accent);
}

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

.tldr li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.tldr li:last-child {
  margin-bottom: 0;
}

/* --- Info Box --- */
.info-box {
  border-left: 4px solid var(--accent);
  background-color: var(--accent-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 1.75rem 0;
  box-shadow: 0 1px 3px rgba(10, 36, 99, 0.06);
}

.info-box p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: left;
}

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

/* --- Callout --- */
.callout {
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 2px 6px rgba(10, 36, 99, 0.08);
}

.callout p {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  text-align: left;
  margin-bottom: 0.5rem;
}

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

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

.key-takeaway p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1vw + 0.75rem, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 0;
}

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

.fun-fact::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.75;
}

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

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

.glossary-term p {
  margin-bottom: 0;
  text-align: left;
}

.glossary-term strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dotted;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Odds Example --- */
.odds-example {
  background-color: var(--footer-bg);
  color: #e0e4ef;
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  margin: 1.75rem 0;
  box-shadow: 0 2px 8px rgba(10, 24, 50, 0.15);
}

.odds-example p {
  color: #e0e4ef;
  background-color: var(--footer-bg);
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

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

.odds-example strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.odds-example .mono,
.odds-example code {
  font-family: var(--font-mono);
  color: var(--accent-light);
}

/* --- Comparison --- */
.comparison {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison table {
  min-width: 480px;
}

.comparison th {
  background-color: var(--accent);
  color: #ffffff;
}

.comparison td {
  font-size: 0.93rem;
}

/* --- At a Glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--muted-border);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--surface);
}

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

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

.at-a-glance p {
  text-align: center;
  margin-bottom: 0.25rem;
}

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

.at-a-glance strong {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.at-a-glance p:not(:first-child) {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

.pre-bet-checklist p:first-child,
.pre-bet-checklist > strong:first-child {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: left;
}

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.5rem;
  color: var(--accent);
  font-size: 1rem;
  background-color: var(--page-bg);
  padding: 0 2px;
}

.pre-bet-checklist li:last-child {
  margin-bottom: 0;
}

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

.section-bridge::before,
.section-bridge::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background-color: var(--muted-border);
}

.section-bridge::before {
  right: calc(50% + 12rem);
}

.section-bridge::after {
  left: calc(50% + 12rem);
}

.section-bridge p {
  display: inline;
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 0;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.card-grid > div {
  background-color: var(--surface);
  border: 1px solid var(--muted-border);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(10, 36, 99, 0.06);
}

.card-grid p {
  text-align: left;
  font-size: 0.93rem;
  margin-bottom: 0.5rem;
}

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

/* --- Dos & Don'ts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0;
}

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

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

.dos-donts p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 0.75rem;
}

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

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

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

.dos-donts li {
  font-size: 0.93rem;
}

/* --- Worked Example --- */
.worked-example {
  background-color: var(--surface);
  border: 1px solid var(--muted-border);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin: 1.75rem 0;
  box-shadow: 0 2px 6px rgba(10, 36, 99, 0.06);
}

.worked-example p {
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

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

.worked-example code,
.worked-example .mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
}

.worked-example hr {
  margin: 1rem 0;
  border-top-style: dashed;
}

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

/* =============================================
   5. Hero Section
   ============================================= */
.site-header {
  background-color: var(--header-bg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--muted-border);
  position: relative;
  z-index: 10;
}

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

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.header-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.header-trust {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: var(--header-bg);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 14px,
    var(--accent-light) 14px,
    var(--accent-light) 15px
  );
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

[data-content="hero"] > * {
  position: relative;
  z-index: 1;
}

.hero-rubric {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: center;
}

[data-content="hero"] h1 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  max-width: var(--content-width);
  margin: 0 auto 1.25rem;
  text-align: center;
}

.hero-byline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

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

[data-content="hero"] figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(10, 36, 99, 0.1);
}

/* =============================================
   6. TOC — Horizontal compact strip
   ============================================= */
[data-content="toc"] {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-strip li {
  margin-bottom: 0;
}

.toc-strip a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--muted-border);
  border-radius: 4px;
  background-color: var(--surface);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.toc-strip a:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
}

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

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

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

[data-content="faq"] summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  transition: color 0.2s ease;
  text-align: left;
}

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

[data-content="faq"] summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  content: "\2212";
}

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

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

/* Modern CSS animation for details */
[data-content="faq"] details {
  interpolate-size: allow-keywords;
}

[data-content="faq"] ::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
  opacity: 0;
  block-size: 0;
  overflow: hidden;
}

[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[open] > *:not(summary) {
    animation: faqFadeIn 0.3s ease forwards;
  }
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-content="faq"] details div {
  padding-bottom: 1.1rem;
}

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

/* =============================================
   8. Footer
   ============================================= */
.site-footer {
  background-color: var(--footer-bg);
  color: #a0a8c0;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: var(--section-gap);
  font-size: 0.8rem;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c8cee0;
  margin-bottom: 0.85rem;
}

.footer-col p {
  color: #a0a8c0;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  text-align: left;
  line-height: 1.55;
}

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

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #a0a8c0;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.72rem;
  color: #6b7394;
}

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

/* =============================================
   9. Responsive
   ============================================= */
@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [data-content="hero"] {
    padding: 2.5rem 1rem 2rem;
  }

  .at-a-glance {
    grid-template-columns: 1fr;
  }

  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--muted-border);
  }

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

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

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

  .comparison {
    overflow-x: auto;
  }

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

  .toc-strip {
    gap: 0.4rem;
  }

  .toc-strip a {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .header-meta {
    gap: 0.5rem;
  }

  .section-bridge::before,
  .section-bridge::after {
    display: none;
  }
}

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

  .site-logo img {
    width: 140px;
  }
}

/* Image utilities */
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

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


.site-footer h3 {
    color: #ffffff !important;
}

body {
  overflow-x: clip;
}