:root {
  --bg-page: #fafaf8;
  --bg-header: #ffffff;
  --bg-footer: #1a1a1a;
  --text-primary: #1c1c1e;
  --accent: #e53419;
  --secondary: #3a3a3c;
  --border: #d4d2cd;
  --text-muted: #8e8e93;
  --content-width: 940px;
  --section-gap: 4.5rem;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Bebas Neue', sans-serif;
  --surface: #f2f2ef;
  --accent-light: rgba(229, 52, 25, 0.06);
  --success: #2d7a3a;
  --danger: #c0392b;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── General Typography ── */

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

h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 1.25rem;
  margin-top: 0;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #e6edf0;
  text-align: left;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  scroll-margin-top: 2rem;
}

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

a:hover {
  opacity: 0.75;
}

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

strong {
  font-weight: 700;
}

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

li {
  margin-bottom: 0.4em;
}

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

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-muted);
  margin-top: 0.5rem;
}

/* ── Layout: Sections ── */

main {
  width: 100%;
}

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

/* ── Site Header ── */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

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

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

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

.header-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
}

/* ── Hero Section ── */

[data-content="hero"] {
  max-width: 100%;
  width: 100vw;
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-page);
  margin-bottom: var(--section-gap);
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(229, 52, 25, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

[data-content="hero"]::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpolygon fill='none' stroke='%231c1c1e' stroke-width='1' points='30,3 53.6,15.5 53.6,44.5 30,57 6.4,44.5 6.4,15.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

[data-content="hero"] .hero-rubric {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-align: center;
}

[data-content="hero"] h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: var(--content-width);
  margin: 0 auto 1rem;
  text-align: center;
  line-height: 1.2;
}

[data-content="hero"] .hero-subtitle {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

[data-content="hero"] .hero-byline {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

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

[data-content="hero"] figure img {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin: 0 auto;
}

/* ── TL;DR ── */

.tldr {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem;
  border-radius: 0 4px 4px 0;
}

.tldr h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

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

/* ── TOC (Horizontal compact) ── */

[data-content="toc"] {
  margin-bottom: 3.5rem;
}

.toc-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

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

.toc-links a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}

.toc-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

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

/* ── Components ── */

/* info-box */
.info-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
  margin: 1.75rem 0;
}

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

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

/* callout */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 4px 4px 0;
  background: var(--bg-page);
}

.callout p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.75em;
  font-size: 0.95rem;
}

.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 {
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 0;
}

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

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

.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

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

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

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

/* odds-example */
.odds-example {
  background: var(--secondary);
  color: #f0f0ed;
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  margin: 1.75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.odds-example p {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #f0f0ed;
  margin-bottom: 0.6em;
}

.odds-example p:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 1em;
}

.odds-example p:last-child {
  margin-bottom: 0;
  color: #c8c8c3;
  font-style: italic;
  font-family: var(--font-body);
}

/* comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.comparison > div {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  border-top: 2px solid var(--accent);
}

.comparison > div:nth-child(2) {
  border-top-color: var(--secondary);
}

.comparison p {
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

.comparison p:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75em;
}

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

/* pre-bet-checklist */
.pre-bet-checklist {
  margin: 1.75rem 0;
}

.pre-bet-checklist p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.65em;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

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

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

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

.at-a-glance p {
  text-align: center;
  margin-bottom: 0.25em;
  color: var(--text-primary);
}

.at-a-glance p:first-child {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.at-a-glance p:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* worked-example */
.worked-example {
  background: var(--surface);
  padding: 1.75rem 2rem;
  border-radius: 4px;
  margin: 1.75rem 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.worked-example p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.75em;
}

.worked-example p:first-child {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1em;
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 1rem 0;
}

.worked-example .result {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* section-bridge */
.section-bridge {
  text-align: center;
  margin: 2.5rem 0 0.5rem;
}

.section-bridge::before,
.section-bridge::after {
  content: '\00B7\00A0\00B7\00A0\00B7';
  color: var(--border);
  font-size: 0.85rem;
  vertical-align: middle;
}

.section-bridge p {
  display: inline;
  text-align: center;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0.5rem;
}

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

.card-grid > div {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card-grid p {
  text-align: left;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5em;
}

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

/* dos-donts */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

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

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

.dos-donts > div {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 0 0 4px 4px;
}

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

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

.dos-donts li {
  font-size: 0.9rem;
  color: var(--text-primary);
}

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

/* ── FAQ Accordion ── */

[data-content="faq"] details {
  border-bottom: 1px solid var(--border);
}

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

[data-content="faq"] summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

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

[data-content="faq"] summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.25s 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;
}

[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 > p {
  padding-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--secondary);
}

/* ── Back to Top ── */

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
  margin-top: 1rem;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

/* ── Footer ── */

.site-footer {
  background: var(--bg-footer);
  color: #a1a1a1;
  padding: 3rem 1.25rem 1.5rem;
  font-size: 0.78rem;
  line-height: 1.65;
}

.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.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e0e0e0;
  margin-bottom: 0.85rem;
}

.footer-col p {
  text-align: left;
  color: #a1a1a1;
  margin-bottom: 0.5em;
  font-size: 0.78rem;
}

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

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

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

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

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.72rem;
  color: #777;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .site-header {
    padding: 0.65rem 1rem;
  }

  .header-trust {
    display: none;
  }

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

  .at-a-glance {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .at-a-glance > div:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .at-a-glance > div:nth-last-child(-n+2) {
    border-bottom: none;
  }

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

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc-links {
    gap: 0.35rem;
  }

  .toc-links a {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }
}

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

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

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

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

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




.cl-hero img,
.content-article img,
img.article-image,
img.wp-post-image {
    max-width: 100%;
    width: 100%;
    height: auto !important; /* Forces height to scale proportionally with width */
    object-fit: cover; /* Prevents any remaining distortion */
    border-radius: 8px; /* Optional: adds modern rounded corners */
    display: block;
    margin: 0 auto;
}

header,
.top-navigation-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.menu-desktop a,
.site-header a,
.top-navigation-bar a,
.site-title,
.site-logo {
    color: #111827 !important;
    font-weight: 500;
}

.menu-desktop a:hover,
.site-header a:hover {
    color: #dc2626 !important; 
}

.burger span {
    background-color: #111827 !important;
}
