/* ── View Transitions (soepele paginanavigatie) ── */
@view-transition { navigation: auto; }

/* Zachte crossfade — geen harde witte/zwarte flits */
::view-transition-old(root) {
  animation: 180ms ease-out both vt-fade-out;
}
::view-transition-new(root) {
  animation: 220ms ease-in both vt-fade-in;
}
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } to { opacity: 1; } }

/* Geen transitie bij initial page load (voorkomt spring bij JS-classes) */
html.no-transition * { transition-duration: 0ms !important; }

/* ── Reset & Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d0d0d;
  --bg-soft:      #141414;
  --bg-card:      #1a1a1a;
  --bg-hover:     #222222;
  --bg-code:      #181818;
  --border:       #2a2a2a;
  --text:         #e8e6e0;
  --muted:        #888682;
  --hint:         #444240;
  --green:          #3ecf8e;
  --green-dim:      #0f2a1e;
  --border-hover:   #3a3a3a;
  --bg-code-header: #111111;
  --font-sans:      'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --rail-w:       56px;
  --panel-w:      224px;
  --topbar-h:     48px;
}

/* ── Licht thema ────────────────────────── */
:root[data-theme="light"] {
  --bg:             #f7f7f5;
  --bg-soft:        #efefec;
  --bg-card:        #ffffff;
  --bg-hover:       #e8e8e5;
  --bg-code:        #181818;  /* code-blokken altijd donker (dracula syntax) */
  --bg-code-header: #1e1e1e;
  --border:         #d8d8d3;
  --border-hover:   #a0a09a;
  --text:           #1a1a18;
  --muted:          #44443f;  /* donkerder voor betere leesbaarheid */
  --hint:           #77776e;  /* donkerder dan donker thema voor contrast */
  --green:          #047857;  /* donkerder groen — leesbaar op wit */
  --green-dim:      #ecfdf5;
  --callout-warning-bg:    #fffbeb;
  --callout-warning-color: #92400e;  /* donker amber ipv geel */
}

html {
  font-size: 16px;
  overflow-x: hidden; /* iOS fix: overflow-x op html én body nodig */
}
body {
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: var(--text); text-decoration: none; }

/* ── Icon Rail ──────────────────────────── */
/*
  Icon-positie is altijd constant:
  - rail-item heeft align-self: stretch + margin: 0 6px
  - padding-left: 13px → icoon altijd op 6+13=19px van rail-edge
  - Bij uitklappen groeit de breedte mee, icoon staat stil
*/
.nav-rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;   /* logo/brand/version: horizontaal gecentreerd */
  padding: 8px 0;
  gap: 2px;
  z-index: 100;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Logo */
.rail-logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.rail-logo:hover { opacity: 0.85; }
.rail-logo svg { width: 16px; height: 16px; color: #000; }

/* Sectie- en tags-knoppen: altijd volle breedte, icoon staat nooit */
.rail-item {
  align-self: stretch;      /* vult de railbreedte */
  margin: 0 6px;
  height: 36px;
  border-radius: 7px;
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 13px;       /* icoon gecentreerd in collapsed (44px - 18px) / 2 = 13 */
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.rail-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.rail-item:hover { background: var(--bg-hover); color: var(--text); }
.rail-item.is-active { background: var(--bg-card); color: var(--green); }
.rail-item.is-active::before {
  content: '';
  position: absolute;
  left: -6px; top: 50%;    /* compenseer margin zodat lijn aan railrand zit */
  transform: translateY(-50%);
  width: 2px; height: 18px;
  background: var(--green);
  border-radius: 0 2px 2px 0;
}


.rail-spacer { flex: 1; }

/* Brand + version at bottom of rail */
.rail-brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 0;
  user-select: none;
  transition: opacity 0.2s;
}
.nav-rail.is-expanded .rail-brand { display: none; }

.rail-version {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--hint);
  padding: 6px 0 8px;
  text-align: center;
  opacity: 0.6;
}
.nav-rail.is-expanded .rail-version { display: none; }

/* ── Slide-out panels ───────────────────── */
.nav-panel {
  position: fixed;
  top: 0; bottom: 0;
  left: var(--rail-w);
  width: var(--panel-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 90;
  transform: translateX(calc(-1 * var(--panel-w)));
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.nav-panel.is-open { transform: translateX(0); }

.panel-header {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  flex-shrink: 0;
}

.panel-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.panel-icon svg { width: 16px; height: 16px; }

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.panel-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.panel-item {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.12s, color 0.12s;
  border-left: 2px solid transparent;
}
.panel-item:hover { background: var(--bg-hover); color: var(--text); }
.panel-item.active {
  color: var(--green);
  border-left-color: var(--green);
  background: var(--green-dim);
  font-weight: 500;
}

.panel-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hint);
  padding: 12px 10px 4px;
}

.panel-more {
  font-size: 12px;
  color: var(--hint);
  margin-top: 2px;
}
.panel-more:hover { color: var(--green); background: none; }

/* Brand helpers (used in mobile-nav too) */
.brand-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 14px; height: 14px; color: #000; }

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

/* ── Mobile hamburger btn ───────────────── */
.mobile-menu-btn {
  display: none;
  width: 30px; height: 30px;
  border-radius: 6px;
  background: none;
  border: none;
  color: var(--muted);
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  margin-right: 8px;
}
.mobile-menu-btn svg { width: 18px; height: 18px; }

/* ── Main ───────────────────────────────── */
.main {
  margin-left: var(--rail-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
body.panel-open .main { margin-left: calc(var(--rail-w) + var(--panel-w)); }

/* ── Topbar search button ───────────────── */
.topbar-search-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.topbar-search-btn:hover { background: var(--bg-hover); border-color: var(--border-hover); }
.topbar-search-btn svg { width: 14px; height: 14px; color: var(--muted); }
.topbar-search-btn kbd {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--hint);
  margin-left: 4px;
}

/* Panel tag count badge */
.panel-tag-count {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--hint);
  margin-left: auto;
  padding: 0 4px;
}

/* ── Topbar ─────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}

.breadcrumb { font-size: 13px; color: var(--hint); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--hint); }
.breadcrumb .current { color: var(--text); }

/* first link in breadcrumb = site title, slightly bolder */
.breadcrumb a:first-child { color: var(--text); font-weight: 500; }

/* ── Content ────────────────────────────── */
.content { padding: 44px 40px 80px; flex: 1; max-width: 820px; }
.content:has(.has-toc) { max-width: none; }

/* Article layout: body + optional right TOC */
.article-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.article-body { flex: 1; min-width: 0; max-width: 680px; }

/* TOC right column */
.article-toc {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--topbar-h) + 32px);
  max-height: calc(100vh - var(--topbar-h) - 48px);
  overflow-y: auto;
}

.toc-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 10px;
}

/* Hugo TOC output styling */
.article-toc nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.article-toc nav ul ul { padding-left: 12px; }

.article-toc a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 3px 6px;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: color 0.1s, background 0.1s, border-color 0.1s;
  line-height: 1.4;
}

.article-toc a:hover { color: var(--text); background: var(--bg-hover); }

.article-toc a.active {
  color: var(--green);
  border-left-color: var(--green);
  background: var(--green-dim);
}

/* Tags in rechterkolom */
.toc-tags-section {
  margin-top: 8px;
}
.toc-tags-section.has-toc-above {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.toc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.toc-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.toc-tag:hover { color: var(--green); border-color: var(--green); background: var(--green-dim); }

/* Hide TOC on narrow screens */
@media (max-width: 1100px) {
  .article-toc { display: none; }
  .article-body { max-width: none; }
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 10px;
}

h1 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }

p { margin-bottom: 16px; color: var(--muted); line-height: 1.75; font-size: 15px; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 6px; color: var(--muted); font-size: 15px; line-height: 1.7; }

code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text);
}

/* Reset inline-code stijlen binnen code-blokken — anders wordt de code
   in lichtmodus wit (--bg-card) bovenop de donkere pre-achtergrond */
.highlight pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ── Tabellen ───────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 28px;
  font-size: 14px;
}

th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hint);
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  white-space: nowrap;
}

td {
  padding: 10px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--bg-card); }

/* Tabelwrapper voor overflow op mobiel */
table { display: block; overflow-x: auto; }

/* ── Blockquotes ────────────────────────── */
blockquote {
  margin: 4px 0 24px;
  padding: 14px 18px 14px 20px;
  border-left: 3px solid var(--border);
  background: var(--bg-soft);
  border-radius: 0 6px 6px 0;
}

blockquote p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  font-style: italic;
}

blockquote p + p { margin-top: 8px; }

/* Citaat-attributie (laatste regel die met — begint) */
blockquote p:last-child:not(:first-child) {
  margin-top: 10px;
  font-size: 12px;
  font-style: normal;
  color: var(--hint);
  font-family: var(--font-mono);
}

/* ── Code blocks ────────────────────────── */
/* Code-blokken: altijd donker, ongeacht thema */
.highlight {
  margin: 8px 0 24px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  position: relative;
}

.highlight pre {
  background: #181818 !important;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
}

/* Code header met taaltype + copy knop */
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 6px 14px;
  background: #111111;
  border-bottom: 1px solid #2a2a2a;
}

.code-lang {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--hint);
  letter-spacing: 0.06em;
}

.copy-btn {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: none;
  border: 1px solid transparent;
  color: var(--hint);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.copy-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.copy-btn.copied { color: var(--green); }

/* ── Artikel meta (datum + leestijd onder titel) */
.article-meta {
  font-size: 12px;
  color: var(--hint);
  font-family: var(--font-mono);
  margin: 6px 0 20px;
}


/* ── Mermaid diagrammen ─────────────────── */
/* Mermaid: altijd donker, ongeacht thema */
.mermaid-wrap {
  margin: 8px 0 24px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #181818;
  color: #e8e6e0;
  padding: 24px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

.mermaid-wrap .mermaid svg {
  max-width: 100%;
  background: #181818 !important;
}
/* Forceer lichte tekst in mermaid — SVG text én foreignObject HTML-labels */
.mermaid-wrap svg text,
.mermaid-wrap svg .label,
.mermaid-wrap svg .nodeLabel,
.mermaid-wrap svg .edgeLabel { fill: #e8e6e0 !important; color: #e8e6e0 !important; }

/* foreignObject: mermaid v11 flowcharts renderen labels als HTML in SVG */
.mermaid-wrap svg foreignObject div,
.mermaid-wrap svg foreignObject span,
.mermaid-wrap svg foreignObject p { color: #e8e6e0 !important; background: transparent !important; }

/* ── Callout ────────────────────────────── */
.callout {
  border-left: 2px solid var(--green);
  background: var(--green-dim);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 4px 0 24px;
}

.callout strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 5px;
}

.callout p { margin: 0; font-size: 14px; color: var(--muted); }

.callout.warning { border-left-color: var(--callout-warning-color, #e6a817); background: var(--callout-warning-bg, #201a08); }
.callout.warning strong { color: var(--callout-warning-color, #e6a817); }

/* ── Homepage ───────────────────────────── */
.home-header {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.terminal-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.tt-line { font-size: 13px; }
.tt-prompt { color: var(--green); }
.tt-sep    { color: var(--hint); }
.tt-path   { color: #3b82f6; }
.tt-dollar { color: var(--hint); }
.tt-cmd    { color: var(--muted); }

.tt-output {
  font-size: 36px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.tt-tagline {
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.tt-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--green);
  border-radius: 1px;
  margin-left: 6px;
  flex-shrink: 0;
  animation: tt-blink 1.1s step-end infinite;
}
@keyframes tt-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.home-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.home-stats-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.home-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; align-items: baseline; gap: 6px; }
.stat-num { font-size: 20px; font-weight: 600; color: var(--text); font-family: var(--font-mono); }
.stat-label { font-size: 12px; color: var(--hint); }
.stat-sep { width: 1px; height: 18px; background: var(--border); }

.home-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 12px;
}

.home-sections { display: flex; flex-direction: column; gap: 8px; }

.home-section-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  transition: border-color 0.15s, background 0.15s;
}

.home-section-card:hover { border-color: var(--border-hover); background: var(--bg-hover); }

.hsc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
}

.hsc-icon svg { width: 18px; height: 18px; }

.hsc-body { flex: 1; min-width: 0; }
.hsc-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.hsc-desc  { font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.hsc-meta    { font-size: 11px; color: var(--hint); font-family: var(--font-mono); }
.hsc-updated { font-size: 11px; color: var(--hint); margin-top: 3px; }

.hsc-arrow { font-size: 16px; color: var(--hint); flex-shrink: 0; transition: color 0.15s; }
.home-section-card:hover .hsc-arrow { color: var(--green); }

/* ── Homepage zoekbalk ──────────────────── */
.home-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--hint);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: left;
}
.home-search:hover { border-color: var(--border-hover); background: var(--bg-hover); color: var(--muted); }
.home-search svg { width: 14px; height: 14px; flex-shrink: 0; }
.home-search span { flex: 1; }
.home-search kbd {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--hint);
}

/* ── Ga verder kaart ────────────────────── */
.continue-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green-dim);
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.continue-card:hover { background: var(--bg-hover); border-color: var(--green); }
.continue-card svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.continue-body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.continue-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  flex-shrink: 0;
}
.continue-title { font-size: 13px; font-weight: 500; color: var(--text); }

/* ── Externe links ──────────────────────── */
.ext-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 3px;
  opacity: 0.5;
  position: relative;
  top: -1px;
}
.ext-icon:hover { opacity: 1; }

.recent-list { display: flex; flex-direction: column; }

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  transition: background 0.1s;
}

.recent-item:hover { background: var(--bg-card); }

.recent-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hint);
  width: 72px;
  flex-shrink: 0;
}

.recent-title { font-size: 13.5px; color: var(--text); flex: 1; }
.recent-date  { font-size: 11px; color: var(--hint); font-family: var(--font-mono); flex-shrink: 0; }

/* ── Page nav ───────────────────────────── */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
}

.page-nav-item { display: flex; flex-direction: column; gap: 4px; }
.page-nav-item .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hint); }
.page-nav-item a { font-size: 13px; font-weight: 500; color: var(--text); }
.page-nav-item a:hover { color: var(--green); }
.page-nav-item.next { text-align: right; }

/* ── Search modal ───────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.15s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.search-overlay.is-open .search-modal { transform: translateY(0); }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.search-icon { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }

#searchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 16px 0;
  caret-color: var(--green);
}

#searchInput::placeholder { color: var(--hint); }

.search-esc {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--hint);
}

.search-results { max-height: 360px; overflow-y: auto; }

.search-result {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.is-selected { background: var(--bg-hover); }

.search-result-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.search-result-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.search-result-group {
  font-size: 10px;
  color: var(--hint);
}

.search-result-group::before { content: '·'; margin-right: 6px; }

.search-result-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 3px; }

.search-result-summary { font-size: 12px; color: var(--muted); line-height: 1.5; }

.search-result-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }

.search-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--hint);
}

.search-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.search-footer {
  display: flex;
  gap: 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.search-footer span { font-size: 11px; color: var(--hint); display: flex; align-items: center; gap: 4px; }

.search-footer kbd {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── Doc cards (list page) ──────────────── */
.doc-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  transition: border-color 0.15s, background 0.15s;
}

.doc-card:hover { border-color: var(--border-hover); background: var(--bg-hover); }

.doc-card-title { font-size: 14px; font-weight: 500; color: var(--text); }

.doc-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.doc-card-meta { font-size: 11px; color: var(--hint); font-family: var(--font-mono); margin-top: 2px; }

/* ── Tag filter explorer ────────────────── */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.tag-filter:hover { color: var(--text); border-color: var(--border-hover); background: var(--bg-hover); }
.tag-filter.is-active { color: var(--green); border-color: var(--green); background: var(--green-dim); }

.tag-filter-count {
  font-size: 10px;
  font-family: var(--font-mono);
  opacity: 0.7;
}

.filter-empty {
  font-size: 13px;
  color: var(--hint);
  padding: 24px 0 8px;
}

.filter-status {
  font-size: 12px;
  color: var(--hint);
  font-family: var(--font-mono);
  margin-bottom: 16px;
  min-height: 18px;
}

.doc-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Tags overview page */
.tags-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.tag-pill:hover { color: var(--green); border-color: var(--green); background: var(--green-dim); }

.tag-pill-count {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--hint);
}

.doc-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

.doc-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--hint);
}

.list-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hint);
  margin: 24px 0 8px;
}

/* ── Mobile nav drawer ──────────────────── */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
body.mobile-nav-open .mobile-nav { transform: translateX(0); }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 299;
}
body.mobile-nav-open .mobile-nav-overlay { display: block; }

.mobile-nav-header {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
}

.mobile-nav-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: none;
  border: none;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-close:hover { background: var(--bg-hover); color: var(--text); }
.mobile-nav-close svg { width: 16px; height: 16px; }

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
}
.mobile-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-item:hover { background: var(--bg-hover); color: var(--text); }
.mobile-item.active { color: var(--text); font-weight: 500; }

.mobile-section {
  border: none;
  background: none;
}
.mobile-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-section-header::-webkit-details-marker { display: none; }
.mobile-section-header:hover { background: var(--bg-hover); color: var(--text); }
.mobile-section[open] .mobile-section-header { color: var(--text); }

.mobile-section-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mobile-section-icon svg { width: 16px; height: 16px; }

.mobile-section-title { flex: 1; font-size: 13.5px; font-weight: 500; color: inherit; }

.mobile-section-count {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--hint);
  font-family: var(--font-mono);
}

.mobile-subitem {
  display: block;
  padding: 9px 10px 9px 36px;
  border-radius: 6px;
  font-size: 14px;
  min-height: 40px;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-subitem:hover { background: var(--bg-hover); color: var(--text); }
.mobile-subitem.active { color: var(--green); border-left-color: var(--green); background: var(--green-dim); font-weight: 500; }

.mobile-nav-footer {
  padding: 10px 8px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-search-btn:hover { background: var(--bg-hover); color: var(--text); }
.mobile-search-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.mobile-search-btn kbd {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--hint);
}

/* ── Mobile responsive ──────────────────── */
@media (max-width: 768px) {
  /* ── Navigatie ── */
  .nav-rail  { display: none; }
  .nav-panel { display: none; }
  .mobile-menu-btn { display: flex; }
  body.panel-open .main { margin-left: 0; }
  .main { margin-left: 0; }

  /* ── Overflow: niets mag buiten het scherm ── */
  .main, .content, .article-body, .article-layout { max-width: 100%; overflow-x: hidden; }
  pre, code, table { max-width: 100%; }

  /* ── Terminal prompt: afbreken als het te breed wordt ── */
  .terminal-title { max-width: 100%; }
  .tt-line { white-space: normal; word-break: break-all; }
  .tt-output { font-size: 28px; }
  .tt-tagline { white-space: normal; }

  /* ── Topbar ── */
  .topbar { padding: 0 14px; gap: 6px; }
  .topbar-search-btn kbd { display: none; }
  .topbar-search-btn span { display: none; }
  .topbar-search-btn { padding: 6px 10px; gap: 0; }

  /* Breadcrumb: verberg alles behalve huidige pagina */
  .breadcrumb a:not(:last-of-type),
  .breadcrumb .sep { display: none; }
  .breadcrumb { font-size: 13px; font-weight: 500; color: var(--text); }

  /* ── Content ── */
  .content { padding: 20px 16px 80px; }

  /* ── Typografie ── */
  h1 { font-size: 22px; }
  h2 { font-size: 16px; }
  h3 { font-size: 14px; }
  p, li { font-size: 15px; }

  /* ── Article ── */
  .article-toc  { display: none; }
  .article-body { max-width: none; }
  .article-layout { gap: 0; }

  /* ── Zoek modal ── */
  .search-overlay { padding-top: 0; align-items: flex-end; }
  .search-modal   { margin: 0; border-radius: 16px 16px 0 0; max-width: 100%; }

  /* ── Terug naar top ── */
  .back-to-top { bottom: 16px; right: 16px; }

  /* ── Tabellen: horizontaal scrollbaar ── */
  .article-body table { font-size: 13px; }

  /* ── Code blokken ── */
  .highlight pre { font-size: 12px; padding: 14px 14px; }
  .code-header   { padding: 5px 8px 5px 12px; }

  /* ── Homepage ── */
  .home-brand    { font-size: 26px; }
  .home-stats    { gap: 14px; }
  .stat-num      { font-size: 17px; }
  .home-section-card { padding: 14px 14px; gap: 12px; }
  .hsc-icon      { width: 30px; height: 30px; }
  .recent-item   { padding: 8px 6px; }

  /* ── Pagina navigatie (vorige/volgende) ── */
  .page-nav { flex-direction: column; gap: 8px; margin-top: 40px; }
  .page-nav-item.next { text-align: left; }

  /* ── Gerelateerde artikelen ── */
  .related-item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .related-item-section { width: auto; }

  /* ── Notched phones (iPhone e.d.) ── */
  .content { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .topbar  { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
}

/* ── Thema toggle knop ──────────────────── */
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-hover); }
.theme-toggle svg { width: 15px; height: 15px; }

:root[data-theme="dark"]  .theme-toggle .icon-light { display: none; }
:root[data-theme="light"] .theme-toggle .icon-dark  { display: none; }

/* ── Gerelateerde artikelen ─────────────── */
.related-articles {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.related-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 12px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.12s, background 0.12s;
}
.related-item:hover { border-color: var(--border-hover); background: var(--bg-hover); }

.related-item-section {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hint);
  width: 72px;
  flex-shrink: 0;
}

.related-item-title { font-size: 13.5px; color: var(--text); }

/* ── 404 pagina ─────────────────────────── */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 48px;
}

.not-found-code {
  font-size: 72px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.not-found-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.not-found-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.not-found-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.15s;
}
.not-found-btn:hover { opacity: 0.85; color: #000; }

/* ── Skip-to-content ────────────────────── */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-to-content:focus {
  position: fixed;
  left: 50%;
  top: 0;
  width: auto; height: auto;
  overflow: visible;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  outline: none;
  white-space: nowrap;
}

/* ── Leesvoortgangsbalk ─────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--green);
  z-index: 9999;
  width: 0%;
  pointer-events: none;
  will-change: width;
}

/* ── Terug naar top ─────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, background 0.15s, color 0.15s, border-color 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--bg-hover); color: var(--text); border-color: var(--border-hover); }
.back-to-top svg { width: 14px; height: 14px; }

/* ── Anchor links op koppen ─────────────── */
.heading-anchor {
  opacity: 0;
  margin-left: 7px;
  color: var(--hint);
  text-decoration: none;
  transition: opacity 0.15s, color 0.15s;
  user-select: none;
  font-size: 0.8em;
  font-weight: 400;
}
h2:hover .heading-anchor,
h3:hover .heading-anchor { opacity: 1; }
.heading-anchor:hover { color: var(--green); }
.heading-anchor.copied { color: var(--green) !important; opacity: 1 !important; }

/* ── Print ──────────────────────────────── */
@media print {
  .nav-rail, .nav-panel, .topbar, .mobile-nav, .mobile-nav-overlay,
  .search-overlay, .back-to-top, .reading-progress, .skip-to-content,
  .theme-toggle, .topbar-search-btn, .page-nav, .related-articles,
  .mobile-menu-btn { display: none !important; }

  .main { margin-left: 0 !important; }
  .content { padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }

  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  h2 { border-bottom: 1px solid #ccc !important; }
  p, li { color: #222 !important; }
  a { color: #000 !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }

  .highlight { border: 1px solid #ccc !important; }
  .highlight pre { background: #f5f5f5 !important; color: #000 !important; }
  .callout { border: 1px solid #ccc !important; background: #f5f5f5 !important; }
  .heading-anchor { display: none; }

  @page { margin: 2cm; }
}

/* ── Extra callout types ────────────────── */
.callout.info   { border-left-color: #3b82f6; background: #0f1929; }
.callout.info   strong { color: #3b82f6; }
.callout.danger { border-left-color: #ef4444; background: #1f0909; }
.callout.danger strong { color: #ef4444; }
.callout.note   { border-left-color: #8b5cf6; background: #160f29; }
.callout.note   strong { color: #8b5cf6; }

:root[data-theme="light"] .callout.info   { background: #eff6ff; }
:root[data-theme="light"] .callout.danger { background: #fef2f2; }
:root[data-theme="light"] .callout.note   { background: #f5f3ff; }

/* ── Afbeeldingen in artikelen ──────────── */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 1.5rem 0;
}

/* ── Afbeelding lightbox ────────────────── */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.img-lightbox.is-open { opacity: 1; pointer-events: auto; }
.img-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  object-fit: contain;
}

/* ── Code tabs ──────────────────────────── */
.code-tabs {
  margin: 8px 0 24px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
}
.code-tabs-nav {
  display: flex;
  background: #111111;
  border-bottom: 1px solid #2a2a2a;
  overflow-x: auto;
}
.code-tab-btn {
  padding: 7px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--hint);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.code-tab-btn:hover { color: var(--text); }
.code-tab-btn.is-active { color: var(--green); border-bottom-color: var(--green); }
.code-tab-panel { display: none; }
.code-tab-panel.is-active { display: block; }
.code-tab-panel .highlight { margin: 0; border-radius: 0; border: none; }
.code-tab-panel .code-header { border-radius: 0; }

/* ── Sectie voortgang ───────────────────── */
.panel-progress {
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  border-radius: 1px;
  overflow: hidden;
}
.panel-progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 1px;
  transition: width 0.4s ease;
  width: 0%;
}
.panel-progress-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--hint);
  padding: 3px 14px 6px;
}

/* ── Mobiele TOC ────────────────────────── */
.mobile-toc {
  display: none;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.mobile-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hint);
  cursor: pointer;
  background: var(--bg-soft);
  list-style: none;
  user-select: none;
}
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc summary svg { width: 14px; height: 14px; transition: transform 0.2s; flex-shrink: 0; }
.mobile-toc[open] summary svg { transform: rotate(180deg); }
.mobile-toc-body { padding: 4px 0; background: var(--bg-card); }
.mobile-toc-body nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-toc-body nav ul ul { padding-left: 12px; }
.mobile-toc-body nav a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 14px;
  border-left: 2px solid transparent;
  transition: color 0.1s, background 0.1s;
}
.mobile-toc-body nav a:hover { color: var(--text); background: var(--bg-hover); }
@media (max-width: 1100px) { .mobile-toc { display: block; } }

/* Code tabs JS init */
