/* ============================================
   1. CSS VARIABELEN & RESET
   ============================================ */
:root {
  /* Palet — uit design-spec.md (dark thema) */
  --bg-page: #0f1410;
  --bg-header: #0a0e0b;
  --bg-footer: #080b09;
  --bg-surface: #131914;
  --text-primary: #f5f7f3;
  --text-secondary: #8a948c;
  --accent: #92ed2a;
  --accent-dim: #5fb818;
  --border: #2a332c;
  --danger: #c94a4a;
  --success: #92ed2a;

  /* Typografie */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-logo: 'Orbitron', 'Space Grotesk', sans-serif;

  /* Layout */
  --content-width: 720px;
  --wide-width: 1200px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --radius: 4px;

  /* Tekst-skalering */
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-small: 0.8125rem;
  --fs-meta: 0.75rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   2. ALGEMENE TYPOGRAFIE
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  text-align: left;
  margin: 0 0 0.75em;
  scroll-margin-top: 2rem;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; margin-top: 0; }
h3 { font-size: var(--fs-h3); }

p {
  margin: 0 0 1.15em;
  text-align: left;
}

p, li, td, th, blockquote, details, summary {
  text-align: left;
}

strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-dim); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ul, ol {
  margin: 0 0 1.15em;
  padding-left: 1.5em;
}
li { margin-bottom: 0.35em; }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}
thead th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 2px solid var(--accent);
  background: var(--bg-surface);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tbody td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }

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

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

::selection {
  background: var(--accent);
  color: var(--bg-page);
}

/* ============================================
   3. LAYOUT — MAIN EN SECTIES
   ============================================ */
main {
  width: 100%;
}

article {
  display: block;
}

[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);
  position: static;
}

[data-content="hero"] {
  max-width: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

[data-content="tldr"] {
  max-width: var(--content-width);
}

/* ============================================
   4. COMPONENTEN (uit design-spec.md)
   ============================================ */

/* INFO-BOX — kader met linker accent-strip */
.info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.75em 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.info-box p { margin-bottom: 0.75em; text-align: left; }
.info-box p:last-child { margin-bottom: 0; }

/* CALLOUT — accent-omrande waarschuwing */
.callout {
  position: relative;
  background: rgba(146, 237, 42, 0.04);
  border: 1px solid rgba(146, 237, 42, 0.4);
  padding: 1.25rem 1.5rem 1.25rem 3rem;
  margin: 1.75em 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.callout::before {
  content: "!";
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-page);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
}
.callout p { margin-bottom: 0.75em; text-align: left; color: var(--text-primary); }
.callout p:last-child { margin-bottom: 0; }

/* KEY-TAKEAWAY — display-tekst met border-top */
.key-takeaway {
  border: none;
  border-top: 2px solid var(--accent);
  padding: 1.25rem 0 0;
  margin: 2em 0;
  background: none;
  box-shadow: none;
}
.key-takeaway::before {
  content: "TAKEAWAY";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75em;
  font-weight: 600;
}
.key-takeaway p {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: left;
  margin: 0;
}

/* FUN-FACT — typografisch, geen kader */
.fun-fact {
  position: relative;
  margin: 1.75em 0;
  padding: 0.25rem 0 0.25rem 2.5rem;
  background: none;
  border: none;
  box-shadow: none;
}
.fun-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
}
.fun-fact p {
  font-style: italic;
  color: var(--text-secondary);
  text-align: left;
  margin: 0;
}
.fun-fact p strong {
  font-style: normal;
  color: var(--text-primary);
}

/* GLOSSARY-TERM — regel-definitie */
.glossary-term {
  display: block;
  padding: 0.75rem 0;
  margin: 1.25em 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: none;
}
.glossary-term p {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: left;
  margin: 0;
  color: var(--text-secondary);
}
.glossary-term p strong {
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
  white-space: nowrap;
}

/* ODDS-EXAMPLE */
.odds-example {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75em 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.odds-example p {
  text-align: left;
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: 0.5em;
}
.odds-example p:first-child {
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.odds-example table { margin: 0.75em 0; min-width: 420px; }
.odds-example td, .odds-example th { font-family: var(--font-mono); }
.odds-example tbody td:nth-child(3) { color: var(--accent); font-weight: 600; }

/* WORKED-EXAMPLE */
.worked-example {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.75em 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.worked-example p {
  text-align: left;
  margin-bottom: 0.85em;
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--text-primary);
}
.worked-example p:first-child {
  padding-left: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1.25em;
}
.worked-example p:first-child::before { display: none; }
.worked-example p::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.worked-example p:last-child {
  border-top: 1px dashed var(--border);
  padding-top: 1em;
  margin-top: 1em;
  color: var(--accent);
  font-weight: 600;
}

/* COMPARISON — table */
.comparison {
  margin: 1.75em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison table {
  min-width: 500px;
}
.comparison tbody tr:nth-child(even) {
  background: rgba(42, 51, 44, 0.3);
}

/* CARD-GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.75em 0;
}
.card-grid > div {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.card-grid p {
  text-align: left;
  margin-bottom: 0.75em;
  font-size: 0.95em;
}
.card-grid p:last-child { margin-bottom: 0; }
.card-grid p:first-child strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25em;
}

/* DOS-DONTS */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75em 0;
}
.dos-donts > div {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.dos-donts > div:first-child { border-top: 3px solid var(--success); }
.dos-donts > div:last-child { border-top: 3px solid var(--danger); }
.dos-donts p { text-align: left; margin-bottom: 0.75em; }
.dos-donts > div:first-child p:first-child strong { color: var(--success); }
.dos-donts > div:last-child p:first-child strong { color: var(--danger); }
.dos-donts p:first-child strong {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dos-donts ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.dos-donts li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.6em;
  font-size: 0.95em;
  text-align: left;
  color: var(--text-primary);
}
.dos-donts > div:first-child li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.dos-donts > div:last-child li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

/* PRE-BET-CHECKLIST */
.pre-bet-checklist {
  margin: 1.75em 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.pre-bet-checklist p:first-child {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1em;
  text-align: left;
}
.pre-bet-checklist p:first-child strong {
  font-weight: 700;
  color: var(--accent);
}
.pre-bet-checklist ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-left: 2px solid var(--border);
  padding-left: 1.75rem;
  position: relative;
}
.pre-bet-checklist li {
  position: relative;
  margin-bottom: 0.9em;
  padding-left: 1.75em;
  text-align: left;
  line-height: 1.55;
}
.pre-bet-checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--accent);
  font-size: 1.25em;
  line-height: 1;
  background: var(--bg-page);
  padding-right: 0.35em;
  font-weight: 700;
}

/* AT-A-GLANCE */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin: 1.75em 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  overflow: hidden;
}
.at-a-glance > div {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
}
.at-a-glance > div:last-child { border-right: none; }
.at-a-glance p {
  text-align: left;
  margin-bottom: 0.5em;
  font-size: 0.95em;
}
.at-a-glance p:last-child { margin-bottom: 0; }
.at-a-glance p:first-child strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

/* SECTION-BRIDGE */
.section-bridge {
  text-align: center;
  margin: 1.5em auto;
  padding: 0.5em 0;
  max-width: 520px;
  position: relative;
}
.section-bridge p {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0;
  padding: 0 2.5rem;
  position: relative;
  display: inline-block;
}
.section-bridge p::before,
.section-bridge p::after {
  content: "·";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.section-bridge p::before { left: 0; }
.section-bridge p::after { right: 0; }

/* TLDR */
.tldr {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  margin-top: var(--section-gap);
  margin-bottom: var(--section-gap);
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}
.tldr h2 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1em;
  font-weight: 700;
}
.tldr ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.tldr li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.55;
  text-align: left;
}
.tldr li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}
.tldr li:last-child { margin-bottom: 0; }

/* AUTHOR-BIO */
.author-bio {
  max-width: var(--content-width);
  margin: var(--section-gap) auto;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-style: italic;
  text-align: left;
}
.author-bio strong {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  margin-right: 0.5em;
}

/* ============================================
   5. HEADER
   ============================================ */
.site-header {
  background: var(--bg-header);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-logo {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.site-logo img {
  display: block;
  width: 180px;
  height: auto;
}
.site-logo:hover { opacity: 0.85; }
.site-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--fs-meta);
}
.header-trust {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.65rem;
}
.header-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.7rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.header-date::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================
   6. HERO SECTIE
   ============================================ */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(3rem, 7vw, 6rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Hero glow */
.hero::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 1200px;
  max-height: 1200px;
  background: radial-gradient(
    circle at center,
    rgba(146, 237, 42, 0.06) 0%,
    rgba(146, 237, 42, 0.03) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* Hero hexagoon-patroon */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='62.35' viewBox='0 0 72 62.35'><g fill='none' stroke='%232a332c' stroke-width='1' opacity='0.5'><polygon points='36,2 67,20 67,42 36,60 5,42 5,20'/></g></svg>");
  background-size: 72px 62.35px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 auto 1.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
}

.hero h1 {
  max-width: 18ch;
  margin: 0 auto 1.25rem;
  text-align: center;
  font-size: var(--fs-h1);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  text-align: center;
  max-width: 36ch;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-byline {
  text-align: center;
  margin: 0 auto 2rem;
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-byline::before,
.hero-byline::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--border);
}

.hero-cta {
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--bg-page);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover {
  background: var(--accent-dim);
  color: var(--bg-page);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(146, 237, 42, 0.25);
}

/* ============================================
   7. TOC — vertical
   ============================================ */
.toc {
  max-width: var(--content-width);
  margin: var(--section-gap) auto;
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.toc-list {
  column-count: 2;
  column-gap: 2rem;
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.toc-list > li {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}
.toc-list > li > a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc-list > li > a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.toc-list ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0.35rem 0 0.5rem;
  border-left: 1px solid var(--border);
}
.toc-list ul li { margin-bottom: 0.3rem; }
.toc-list ul a {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.1rem 0 0.1rem 0.75rem;
  display: block;
  transition: color 0.2s ease;
}
.toc-list ul a:hover { color: var(--accent); }

/* ============================================
   8. FAQ (details/summary)
   ============================================ */
[data-content="faq"] details {
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin: 0;
}
[data-content="faq"] details:first-of-type {
  border-top: 1px solid var(--border);
}
[data-content="faq"] summary {
  padding: 1.1rem 3rem 1.1rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}
[data-content="faq"] summary:hover { color: var(--accent); }
[data-content="faq"] summary::-webkit-details-marker { display: none; }
[data-content="faq"] summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s ease;
}
[data-content="faq"] details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

/* FAQ animation via max-height */
[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: 800px;
  opacity: 1;
  padding-bottom: 1.25rem;
}
[data-content="faq"] details > div p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.65;
}

/* Fallback keyframe voor oudere browsers */
@supports not selector(::details-content) {
  @keyframes faq-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  [data-content="faq"] details[open] > div {
    animation: faq-fade-in 0.3s ease;
  }
}

/* ============================================
   9. BACK TO TOP
   ============================================ */
.back-to-top {
  display: block;
  max-width: var(--content-width);
  margin: var(--section-gap) auto 3rem;
  padding: 0 1.25rem;
  text-align: center;
}
.back-to-top a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.back-to-top a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.back-to-top a::before {
  content: "↑";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--accent);
}

/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-secondary);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.footer-grid p {
  margin-bottom: 0.75em;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.55;
}
.footer-grid ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.footer-grid li {
  margin-bottom: 0.4em;
  font-size: 0.78rem;
}
.footer-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-grid a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.footer-bottom p { margin: 0; }
.footer-warning {
  display: inline-block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

/* ============================================
   11. MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: clamp(2rem, 5vw, 3rem);
  }

  .header-inner {
    gap: 0.75rem;
    justify-content: center;
  }
  .site-logo img { width: 150px; }
  .header-meta { justify-content: center; }

  .hero {
    padding: 3rem 1rem 2.5rem;
  }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hero-subtitle { font-size: 0.8rem; }

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

  .toc-list { column-count: 1; }

  .dos-donts,
  .at-a-glance,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .at-a-glance > div:last-child { border-bottom: none; }

  .glossary-term p {
    flex-direction: column;
    gap: 0.25rem;
  }

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

  /* Global table protection */
  [data-content] table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .odds-example table,
  .comparison table {
    display: table;
  }
  .odds-example { overflow-x: auto; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: left;
  }

  .section-bridge p {
    padding: 0 2rem;
  }
  .section-bridge p::before,
  .section-bridge p::after {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-byline {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hero-byline::before,
  .hero-byline::after { display: none; }
}

/* ============================================
   12. PRINT
   ============================================ */
@media print {
  .site-header, .site-footer, .toc, .hero-cta, .back-to-top { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

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

.site-logo img {
    max-height: none !important;
    max-width: none !important; /* Отключаем базовое ограничение WordPress */
    min-width: 200px !important; /* Запрещаем сжиматься меньше этой ширины */
    width: 200px !important;     /* Устанавливаем желаемую ширину */
    height: 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: 10px;
        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(255, 255, 255);
}




.site-nav--desktop a {
    white-space: nowrap !important;
    font-size: 14px; 
    padding: 10px; 
}

.site-nav--desktop ul {
    gap: 15px; 
}

body {
  overflow-x: clip;
}