/* ===== 1. CSS Variables & Reset ===== */
:root {
  --color-bg: #f8faf9;
  --color-header-bg: #ffffff;
  --color-footer-bg: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a5568;
  --color-accent: #0eb366;
  --color-accent-dark: #0a8a4e;
  --color-border: #e2e8f0;
  --color-muted: #718096;
  --color-surface: #f1f5f3;
  --color-white: #ffffff;
  --color-danger: #d32f2f;
  --color-danger-bg: #fef2f2;
  --color-success-bg: #f0fdf4;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Bebas Neue', sans-serif;
  --content-width: 940px;
  --section-gap: 4rem;
  --h1-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);
  --h2-size: clamp(1.35rem, 2vw + 0.75rem, 2rem);
  --h3-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.5rem);
  --body-size: 1.125rem;
  --body-lh: 1.7;
  --heading-lh: 1.2;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== 2. General Typography ===== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--heading-lh);
  color: var(--color-text);
  text-align: left;
}

h2 {
  font-size: var(--h2-size);
  margin-top: 0;
  margin-bottom: 1.25rem;
  scroll-margin-top: 2rem;
}

h3 {
  font-size: var(--h3-size);
  margin-top: 2rem;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
  color: #c1abab;
}

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

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

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

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

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

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

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

li { margin-bottom: 0.5rem; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-text-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.875rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

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

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

th {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  background: var(--color-surface);
}

hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

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

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

[data-content] [data-content] {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

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

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

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

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

/* --- callout --- */
.callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent-dark);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

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

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

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

.key-takeaway p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

/* --- 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(--color-accent);
  font-weight: 700;
}

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

/* --- glossary-term --- */
.glossary-term {
  margin: 1.5rem 0;
}

.glossary-term p {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
  margin-bottom: 0;
}

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

/* --- odds-example --- */
.odds-example {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 1.75rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.odds-example table {
  margin-bottom: 0.75rem;
}

.odds-example th {
  background: var(--color-surface);
  color: var(--color-muted);
}

.odds-example td {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text);
}

.odds-example > p {
  text-align: left;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0;
  font-style: italic;
}

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

.comparison > div {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comparison > div p {
  text-align: left;
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

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

.comparison > div p strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 1.75rem 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  overflow: hidden;
}

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

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

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

.at-a-glance > div p:first-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.at-a-glance > div p:first-child strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.at-a-glance > div p:last-child {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0;
}

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

.card-grid > div {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.card-grid > div:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.card-grid > div p {
  text-align: left;
  color: var(--color-text);
  font-size: 0.925rem;
  margin-bottom: 0.5rem;
}

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

.card-grid > div p strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

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

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

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

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.975rem;
  color: var(--color-text);
}

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

/* --- tldr --- */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.tldr h2 {
  font-size: clamp(1rem, 1.25vw + 0.5rem, 1.2rem);
  color: var(--color-accent-dark);
  margin-bottom: 1rem;
  text-align: left;
}

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

.tldr li {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.625rem;
  line-height: 1.6;
}

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

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

.dos-donts > div {
  padding: 1.25rem;
  border-radius: 6px;
}

.dos-donts > div:first-child {
  background: var(--color-success-bg);
  border: 1px solid #bbf7d0;
}

.dos-donts > div:last-child {
  background: var(--color-danger-bg);
  border: 1px solid #fecaca;
}

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

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

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

.dos-donts li {
  font-size: 0.925rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

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

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

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

.worked-example strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.worked-example hr {
  border: none;
  height: 0;
  margin: 0.75rem 0;
  position: relative;
}

.worked-example hr::after {
  content: "\2193";
  display: block;
  text-align: center;
  color: var(--color-accent);
  font-size: 1rem;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  color: var(--color-accent-dark);
  font-style: italic;
  font-size: 1rem;
}

.section-bridge::before,
.section-bridge::after {
  content: "\00B7\00A0\00B7\00A0\00B7";
  color: var(--color-border);
  font-style: normal;
  margin: 0 0.75rem;
}

/* --- author-bio --- */
.author-bio {
  display: 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: 2rem;
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== 5. Hero Section ===== */
[data-content="hero"] {
  max-width: 100%;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  margin-bottom: var(--section-gap);
  text-align: center;
  background: var(--color-white);
}

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

.hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-dark);
  margin-bottom: 1.25rem;
}

[data-content="hero"] h1 {
  font-size: var(--h1-size);
  max-width: var(--content-width);
  margin: 0 auto 1.25rem auto;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}

.hero-meta .byline { font-style: italic; }

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
  background: var(--color-surface);
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
}

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

[data-content="hero"] figure {
  max-width: var(--content-width);
  margin: 0 auto 1.5rem auto;
  padding: 0 1.5rem;
}

[data-content="hero"] figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0 auto;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-accent);
  padding: 0.625rem 1.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ===== 5b. Header ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-logo {
    display: flex;
    align-items: center;
    min-width: 150px; 
}

.header-meta {
  font-size: 0.7rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
}

/* ===== 6. TOC (Vertical) ===== */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

.toc-strip {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}


.toc-strip a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.15s ease;
  white-space: normal;
  text-align: left;
}

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

/* ===== 7. FAQ Accordion ===== */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

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

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

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

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

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

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

[data-content="faq"] details[open] ::details-content {
  opacity: 1;
  block-size: auto;
}

@supports not selector(::details-content) {
  [data-content="faq"] details[open] > div {
    animation: faqFadeIn 0.3s ease forwards;
  }
}

@keyframes faqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

[data-content="faq"] details > div p {
  text-align: left;
  color: var(--color-text-secondary);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* ===== 8. Back to Top ===== */
.back-to-top {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: 1rem;
}

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

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

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

/* ===== 10. Footer ===== */
.site-footer {
  background: var(--color-footer-bg);
  color: #a0aec0;
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 3rem 1.5rem 1.5rem;
}

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

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

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

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

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

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

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

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

.footer-logo img {
  display: block;
  margin: 0 auto 1rem auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

/* ===== 11. Media Queries ===== */
@media (max-width: 768px) {
  :root {
    --section-gap: 2.75rem;
  }

  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  [data-content] [data-content] {
    padding-left: 0;
    padding-right: 0;
  }

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

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

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

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

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

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

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

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

  .toc-strip {
    gap: 0.375rem;
  }

  .toc-strip a {
    font-size: 0.725rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .odds-example {
    padding: 1rem;
  }

  [data-content="hero"] {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }

  [data-content="hero"] h1 {
    padding: 0 1rem;
  }

  [data-content="hero"] figure {
    padding: 0 1rem;
  }
}

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

  .toc-strip a {
    font-size: 0.675rem;
    padding: 0.25rem 0.5rem;
  }
}

/* =========================================
   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, .custom-logo {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 50px; 
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

@media (min-width: 992px) {
    .site-logo {
        min-width: 200px;
    }
    
    .site-logo img, .custom-logo {
        max-height: 75px; 
    }
}

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

.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(11, 9, 9);
}




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


