/* ============================================
   1. CSS VARIABLES & RESET
   ============================================ */
:root {
  /* Colors */
  --page-bg: #0e0e10;
  --header-bg: #15151a;
  --footer-bg: #08080a;
  --card-bg: #16161c;
  --surface-bg: #1a1a22;
  --text-primary: #f5f5f7;
  --text-secondary: #9ea0a8;
  --text-tertiary: #6b6d76;
  --text-on-accent: #000000;
  --accent: #ed512a;
  --accent-secondary: #ff7a4a;
  --accent-glow: rgba(237, 81, 42, 0.06);
  --muted: #2a2a32;
  --border: #2e2e36;
  --border-soft: #22222a;
  --success: #3dd68c;
  --danger: #ff4d4d;

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

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

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-secondary); }

::selection { background: var(--accent); color: var(--text-on-accent); }

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

/* ============================================
   2. TYPOGRAPHY (general — applies in prose)
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 0.6em 0;
  text-align: left;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  margin-top: 0;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
  position: relative;
  padding-left: 1.25rem;
}
h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 4px;
  height: 0.95em;
  background: var(--accent);
  border-radius: 1px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
  color: var(--text-primary);
}

p {
  margin: 0 0 1.2em 0;
  text-align: left;
  color: var(--text-primary);
}

p strong, li strong { color: var(--text-primary); font-weight: 600; }
em { color: var(--text-primary); }

ul, ol {
  margin: 0 0 1.4em 0;
  padding-left: 1.4em;
  text-align: left;
}
li { margin-bottom: 0.5em; line-height: 1.7; }

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

figure { margin: 1.8em auto; max-width: 100%; }
figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius); }
figcaption {
  margin-top: 0.75em;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent-secondary);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* ============================================
   3. LAYOUT — SECTIONS
   ============================================ */
main { width: 100%; margin: 0; padding: 0; }

article { width: 100%; }

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-top: var(--section-gap);
  margin-bottom: 0;
  position: static;
}
[data-content]:first-of-type { margin-top: 0; }

/* TL;DR sits closer to intro */
[data-content="tldr"] { margin-top: clamp(2rem, 4vw, 3rem); }

/* Section eyebrow above each H2 — purely cosmetic */
[data-content] > h2 {
  position: relative;
  margin-bottom: 1.5rem;
}

/* ============================================
   4. HEADER
   ============================================ */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.9rem 0;
  position: relative;
  z-index: 10;
}
.header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-logo {
  display: inline-block;
  line-height: 0;
}
.site-logo img {
  width: 180px;
  height: auto;
  display: block;
}
.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.header-trust {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   5. HERO
   ============================================ */
.hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(237,81,42,0.10), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(237,81,42,0.04), transparent 70%),
    var(--page-bg);
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.5rem clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* Soft fade into page */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--page-bg));
  pointer-events: none;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero h1 {
  margin: 0 auto 1.25rem;
  max-width: 16ch;
  text-align: center;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

.hero-subtitle {
  margin: 0 auto 2rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  color: var(--text-secondary);
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
  margin: 0 auto 0;
  width: fit-content;
  max-width: 100%;
}
.hero-meta .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}
.hero-meta strong { color: var(--text-primary); font-weight: 600; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem auto 0;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: var(--text-on-accent);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 1;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(237, 81, 42, 0.25);
}
.hero-cta:hover {
  background: var(--accent-secondary);
  color: var(--text-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(237, 81, 42, 0.35);
}
.hero-cta::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 1em;
  transition: transform var(--transition);
}
.hero-cta:hover::after { transform: translateX(4px); }

/* ============================================
   6. TABLE OF CONTENTS — vertical 2-column
   ============================================ */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}
.toc-header {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem 0;
  padding: 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toc-header::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.toc h2.toc-header::before {
  /* override generic h2 bar */
  position: static;
  width: 14px;
  height: 1px;
  top: auto;
}
.toc h2.toc-header {
  padding-left: 0;
}
.toc h2.toc-header::before {
  background: var(--accent);
}
/* Reset generic h2 bar for toc */
.toc .toc-header { padding-left: 0; }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 2rem;
  font-family: var(--font-body);
}
.toc-list > li {
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 1.1rem 0;
  display: block;
}
.toc-list > li > a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
  padding: 0.25rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.7rem;
  margin-left: -0.7rem;
  transition: border-color var(--transition), color var(--transition);
}
.toc-list > li > a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}
.toc-list ul {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0 0 0 0.9rem;
  border-left: 1px dashed var(--border);
}
.toc-list ul li { margin: 0 0 0.3rem 0; }
.toc-list ul li a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  line-height: 1.4;
  padding: 0.15rem 0;
  transition: color var(--transition);
}
.toc-list ul li a:hover { color: var(--accent); }

/* ============================================
   7. INTERNAL NAV BUTTONS (start reading / back to top)
   ============================================ */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.nav-button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(237, 81, 42, 0.06);
}

/* ============================================
   8. COMPONENTS
   ============================================ */

/* info-box */
.info-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.8em 0;
  box-shadow: var(--shadow-sm);
}
.info-box p {
  margin: 0 0 0.7em 0;
  text-align: left;
  color: var(--text-primary);
}
.info-box p:last-child { margin-bottom: 0; }
.info-box p strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4em;
}
.info-box p:first-child strong:first-child {
  /* When only strong wraps a title-like line */
}

/* callout — quote */
.callout {
  margin: 2em 0;
  padding: 1.25rem 1.4rem 1.25rem 2rem;
  background: linear-gradient(to right, rgba(237,81,42,0.04), transparent 60%);
  border-left: 3px solid var(--accent);
  position: relative;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout::before {
  content: "❝";
  position: absolute;
  left: 0.6rem;
  top: 0.4rem;
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.55;
}
.callout p {
  text-align: left;
  color: var(--text-primary);
  margin: 0 0 0.6em 0;
}
.callout p:first-child {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}
.callout p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: normal;
}
.callout em { font-style: italic; }

/* key-takeaway — strong display line */
.key-takeaway {
  margin: 2em 0;
  padding: 1.25rem 0 0 0;
  border-top: 2px solid var(--accent);
}
.key-takeaway p {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
  text-align: left;
}

/* fun-fact — marginal note */
.fun-fact {
  margin: 1.8em 0;
  padding: 0 0 0 1.5rem;
  position: relative;
}
.fun-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.fun-fact p {
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

/* glossary-term — inline-ish definition row */
.glossary-term {
  margin: 1.5em 0;
  padding: 0.6rem 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.glossary-term p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.glossary-term p strong {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(237,81,42,0.4);
}

/* odds-example */
.odds-example {
  margin: 2em 0;
  padding: 1.4rem 1.5rem;
  background: var(--surface-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.odds-example::before {
  content: "ODDS";
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  background: var(--page-bg);
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.odds-example p {
  margin: 0 0 0.7em 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-primary);
}
.odds-example p:last-child { margin-bottom: 0; }
.odds-example p strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 0.5em;
  font-weight: 700;
}

/* comparison */
.comparison {
  margin: 2em 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}
.comparison p {
  margin: 0;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.comparison p:last-child { border-bottom: none; }
.comparison p strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4em;
}

/* dos-donts */
.dos-donts {
  margin: 2em 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.dos-donts > div {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.dos-donts > div:first-child { border-top: 3px solid var(--success); }
.dos-donts > div:last-child { border-top: 3px solid var(--danger); }
.dos-donts > div p {
  margin: 0;
  text-align: left;
  color: var(--text-primary);
}
.dos-donts > div p strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.9em;
}
.dos-donts > div:first-child p strong:first-child { color: var(--success); }
.dos-donts > div:last-child p strong:first-child { color: var(--danger); }
.dos-donts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.dos-donts li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.7em;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.dos-donts > div:first-child li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--success);
  font-weight: 700;
}
.dos-donts > div:last-child li::before {
  content: "−";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--danger);
  font-weight: 700;
}

/* pre-bet-checklist */
.pre-bet-checklist {
  margin: 2em 0;
  padding: 0;
}
.pre-bet-checklist p {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem 0;
  font-weight: 500;
  text-align: left;
}
.pre-bet-checklist p strong { color: var(--accent); font-weight: 500; }
.pre-bet-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--border);
}
.pre-bet-checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85em;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary);
  text-align: left;
}
.pre-bet-checklist li::before {
  content: "☐";
  position: absolute;
  left: -1.4rem;
  top: -0.05em;
  width: 1.4rem;
  background: var(--page-bg);
  color: var(--accent);
  font-size: 1.1rem;
  font-family: var(--font-mono);
  line-height: 1.3;
  text-align: left;
  padding-right: 0.3rem;
}

/* at-a-glance — horizontal stacked rows */
.at-a-glance {
  margin: 2.5em 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.at-a-glance > div {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.at-a-glance > div:last-child { border-bottom: none; }
.at-a-glance > div p {
  margin: 0;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.at-a-glance > div p:first-child {
  margin: 0;
}
.at-a-glance > div p:first-child strong {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 400;
  color: var(--accent);
  display: block;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.at-a-glance > div p:last-child {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* worked-example — step-by-step calculation */
.worked-example {
  margin: 2em 0;
  padding: 1.5rem 1.6rem;
  background: var(--surface-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.worked-example::before {
  content: "REKENVOORBEELD";
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  background: var(--page-bg);
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.worked-example p {
  margin: 0 0 0.7em 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
}
.worked-example p:last-child {
  margin-bottom: 0;
  padding-top: 0.7em;
  border-top: 1px solid var(--border);
  color: var(--accent);
}
.worked-example p strong:first-child {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.6em;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

/* section-bridge */
.section-bridge {
  margin: 2.5em 0 1.5em;
  text-align: center;
  position: relative;
  padding: 1rem 0;
}
.section-bridge p {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0 1.5rem;
  background: var(--page-bg);
  position: relative;
  z-index: 1;
  text-align: center;
}
.section-bridge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

/* tldr */
.tldr {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.tldr h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  padding-left: 0;
  scroll-margin-top: 2rem;
}
.tldr h2::before { display: none; }
.tldr ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tldr li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.65em;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}
.tldr li:last-child { margin-bottom: 0; }
.tldr li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 400;
}

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

/* card-grid */
.card-grid {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card-grid > * {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
}

/* ============================================
   9. FAQ (details/summary)
   ============================================ */
[data-content="veelgestelde-vragen"] > div {
  display: block;
}
details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
details:hover { border-color: var(--muted); }
details[open] { border-color: var(--accent); }

summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding-right: 3rem;
  line-height: 1.4;
  user-select: none;
  transition: color var(--transition);
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  line-height: 1;
}
details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.4rem;
}
details[open] > div {
  max-height: 800px;
  opacity: 1;
  padding: 0 1.4rem 1.2rem;
}
details > div p {
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-primary);
}

/* ============================================
   10. FOOTER
   ============================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--text-secondary);
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: 3rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem;
}
.footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem 0;
  font-weight: 500;
  padding-left: 0;
}
.footer-col h3::before { display: none; }
.footer-col p, .footer-col li {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 0.6em 0;
  text-align: left;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 0.45em; }
.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  font-size: 0.78rem;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.footer-bottom p { margin: 0; font-size: 0.75rem; }

/* ============================================
   11. RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-gap: 2.5rem; }

  body { font-size: 1rem; }

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

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .site-logo img { width: 150px; }

  .hero { padding: 2.5rem 1rem 2.5rem; }
  .hero h1 { max-width: 100%; }
  .hero-subtitle { font-size: 0.98rem; }

  .toc-list { column-count: 1; }
  .dos-donts { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .at-a-glance > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1rem 0;
  }

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

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

  h2 { padding-left: 1rem; }
  h2::before { width: 3px; }

  details > div { padding: 0 1.1rem; }
  details[open] > div { padding: 0 1.1rem 1rem; }
  summary { padding: 1rem 3rem 1rem 1.1rem; font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .hero-meta { gap: 0.4rem 1rem; font-size: 0.72rem; }
}

/* =========================================
   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 {
    min-width: 180px;
    margin: 0;
}

.site-logo img {
    max-height: 50px !important;
    max-width: none !important;
    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: flex; 
        justify-content: space-between;
        align-items: center;
        gap: 30px;
    }
    
    .site-nav--desktop {
        display: block;
        flex: 1; 
        min-width: 0; 
    }

    .mobile-controls {
        display: none; 
    }
    
    .site-nav--desktop ul {
        display: flex;
        flex-wrap: wrap; 
        justify-content: flex-end; 
        gap: 15px 25px; 
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .site-nav--desktop a {
        text-decoration: none;
        color: var(--color-text, #ffffff);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 14px; 
        transition: color 0.2s ease;
        white-space: normal !important;
        line-height: 1.2;
    }
    
    .site-nav--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;
}

/* ===== ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS) - LIGHT & DARK ===== */

/* БАЗОВАЯ (СВЕТЛАЯ) ТЕМА */
#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #64748b; 
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #475569; 
    transition: color 0.2s ease;
}

#crumbs a:hover {
    color: #2563eb; 
    text-decoration: underline;
}

#crumbs .current {
    font-weight: 600;
    color: #0f172a; 
}

/* ТЕМНАЯ ТЕМА (Автоматическое переключение) */
@media (prefers-color-scheme: dark) {
    #crumbs {
        color: rgba(255, 255, 255, 0.5); 
    }

    #crumbs a {
        color: rgba(255, 255, 255, 0.7); 
    }

    #crumbs a:hover {
        color: #ffffff; 
    }

    #crumbs .current {
        color: #ffffff; 
    }
}

/* =========================================
   СТИЛИ ДЛЯ ОГЛАВЛЕНИЯ (TOC) - LIGHT & DARK
   ========================================= */

/* БАЗОВАЯ (СВЕТЛАЯ) ТЕМА */
.toc-card {
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px;
    padding: 25px 30px;
    margin: 40px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.toc-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #1e293b; 
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.toc-columns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-group a {
    color: #475569 !important; 
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.toc-group a:hover {
    color: #2563eb !important; 
    transform: translateX(4px);
}

/* Две колонки на компьютерах */
@media (min-width: 768px) {
    .toc-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 40px;
    }
}

/* ТЕМНАЯ ТЕМА */
@media (prefers-color-scheme: dark) {
    .toc-card {
        background: #1a1a1f;
        border-color: #2d2d35;
        box-shadow: none;
    }

    .toc-card h2 {
        color: #ffffff;
        border-bottom-color: #2d2d35;
    }

    .toc-group a {
        color: #a0a0b0 !important; 
    }

    .toc-group a:hover {
        color: #ffffff !important; 
    }
}
