:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --surface: #ffffff;
  --surface-soft: #edf4ed;
  --ink: #17231c;
  --muted: #647168;
  --line: #d9e1da;
  --green: #207348;
  --green-dark: #155735;
  --green-soft: #dcecdf;
  --yellow: #f0c85a;
  --blue-soft: #e6f0f5;
  --shadow: 0 18px 50px rgba(28, 52, 37, .09);
  --radius: 18px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101612;
  --surface: #172019;
  --surface-soft: #1d2b21;
  --ink: #eef5ef;
  --muted: #aab8ad;
  --line: #314137;
  --green: #69c88d;
  --green-dark: #a0e1b7;
  --green-soft: #203b2a;
  --yellow: #e4bf58;
  --blue-soft: #1e3038;
  --shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: #f2f6f0;
  color: var(--ink);
  font-family: "Hanken Grotesk", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif; }
h1 { font-size: clamp(2.45rem, 6vw, 5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.08rem; }

.theory-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}
.theory-topbar-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.theory-brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}
.theory-logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
}
.theory-topbar nav { display: flex; align-items: center; gap: 5px; }
.theory-topbar nav a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
}
.theory-topbar nav a:hover,
.theory-topbar nav a.active { color: var(--ink); background: var(--surface-soft); }
.theory-start {
  margin-left: auto;
  padding: 9px 17px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.theory-page,
.theory-hub,
.about-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.breadcrumbs {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .86rem;
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.eyebrow,
.section-label {
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 30px 0 70px;
}
.article-hero h1 { max-width: 720px; margin-bottom: 20px; }
.article-intro { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.26rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; color: var(--muted); font-size: .82rem; }
.article-meta span { position: relative; }
.article-meta span:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.article-hero figure { margin: 0; }
.article-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.article-hero figcaption { margin-top: 10px; color: var(--muted); font-size: .72rem; line-height: 1.45; }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 58px; justify-content: center; align-items: start; }
.article-aside { position: sticky; top: 96px; }
.toc { border-left: 2px solid var(--line); padding-left: 18px; }
.toc strong { display: block; margin-bottom: 10px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 6px 0; }
.toc a { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--green-dark); }
.article-content > section { margin-bottom: 42px; }
.learning-goals,
.reasoning-card,
.self-check,
.source-box,
.article-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  background: var(--surface);
}
.learning-goals { background: var(--surface-soft); }
.learning-goals ul { padding-left: 21px; columns: 2; column-gap: 38px; }
.learning-goals li { break-inside: avoid; margin: 9px 0; }
.reasoning-card { border-color: color-mix(in srgb, var(--green) 36%, var(--line)); box-shadow: inset 5px 0 0 var(--green); }
.reasoning-card p:last-child { margin-bottom: 0; font-size: 1.08rem; }

.theory-section {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0 42px;
  border-bottom: 1px solid var(--line);
}
.theory-section-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--surface);
  font-size: .75rem;
  font-weight: 900;
}
.theory-section-body > p { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.key-terms { margin-top: 25px; }
.key-terms h3 { margin-bottom: 10px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.key-terms dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.key-terms dl > div { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.key-terms dt { color: var(--green-dark); font-size: .82rem; font-weight: 900; }
.key-terms dd { margin: 5px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }

.pitfall { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 26px; border-radius: var(--radius); background: color-mix(in srgb, var(--yellow) 22%, var(--surface)); }
.pitfall > div { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #332b15; font-weight: 900; }
.pitfall h2 { margin-bottom: 10px; }
.pitfall p:last-child { margin-bottom: 0; }
.self-check ol { counter-reset: check; padding: 0; list-style: none; }
.self-check li { counter-increment: check; display: grid; grid-template-columns: 34px 1fr; gap: 13px; align-items: start; margin-top: 17px; }
.self-check li::before { content: counter(check); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--green); font-weight: 900; font-size: .8rem; }
.source-box { color: var(--muted); font-size: .85rem; }
.source-box h2 { color: var(--ink); font-size: 1.2rem; }
.article-cta { display: flex; gap: 25px; align-items: center; justify-content: space-between; background: var(--green); color: white; border: 0; }
.article-cta p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.article-cta .section-label { color: #c9eed6; }
.article-cta a { flex: 0 0 auto; padding: 12px 18px; border-radius: 999px; color: var(--green-dark); background: white; font-weight: 900; text-decoration: none; }
.article-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 50px 0 80px; }
.article-pagination a { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.article-pagination a:last-child { text-align: right; }
.article-pagination span { color: var(--muted); font-size: .75rem; }
.article-pagination b { color: var(--ink); }

.hub-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 50px;
  align-items: center;
  padding: 80px 0;
}
.hub-hero h1 { max-width: 850px; margin-bottom: 25px; }
.hub-hero > div > p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.2rem; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hub-actions a { padding: 12px 18px; border: 1px solid var(--green); border-radius: 999px; font-weight: 850; text-decoration: none; }
.hub-actions a:first-child { color: white; background: var(--green); }
.hub-hero aside { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.hub-hero aside strong { display: block; margin-bottom: 14px; }
.hub-hero aside ul { margin: 0; padding: 0; list-style: none; }
.hub-hero aside li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; }
.hub-hero aside li::before { content: "✓"; position: absolute; left: 2px; color: var(--green-dark); font-weight: 900; }
.hub-method { padding: 70px 0; border-top: 1px solid var(--line); }
.hub-method > div:first-child { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.method-grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.method-grid article span { color: var(--green-dark); font-size: .78rem; font-weight: 900; }
.method-grid article p { margin-bottom: 0; color: var(--muted); }
.hub-chapters { padding: 70px 0; }
.hub-chapters > header { max-width: 720px; margin-bottom: 34px; }
.hub-chapters > header > p:last-child { color: var(--muted); }
.theory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.theory-card { min-height: 300px; display: grid; grid-template-columns: 42% 58%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.theory-card-image { min-height: 100%; overflow: hidden; }
.theory-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.theory-card:hover .theory-card-image img { transform: scale(1.035); }
.theory-card > div { padding: 24px; }
.theory-card > div > p:first-child { margin-bottom: 5px; color: var(--green-dark); font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.theory-card h2 { margin-bottom: 4px; font-size: 1.35rem; }
.theory-card h2 a { color: var(--ink); text-decoration: none; }
.theory-card span { color: var(--muted); font-size: .75rem; }
.theory-card > div > p:not(:first-child) { margin: 15px 0; color: var(--muted); font-size: .85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.theory-card .card-link { font-size: .83rem; font-weight: 900; text-decoration: none; }
.hub-trust { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin: 50px 0 90px; padding: 38px; border-radius: 24px; background: var(--surface-soft); }
.hub-trust > div { max-width: 760px; }
.hub-trust > div p:last-child { color: var(--muted); margin-bottom: 0; }
.hub-trust > a { flex: 0 0 auto; font-weight: 900; }

.about-page { padding-bottom: 90px; }
.about-page > header { max-width: 900px; padding: 50px 0 70px; }
.about-page > header p:last-child { max-width: 760px; color: var(--muted); font-size: 1.2rem; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-grid article { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.about-grid article p:not(.section-label) { color: var(--muted); }
.text-link { font-weight: 900; }

.theory-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 58px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .83rem;
}
.theory-footer-brand { color: var(--ink); font-weight: 900; text-decoration: none; }
.theory-footer p { margin: 4px 0 0; }
.theory-footer nav { display: flex; flex-wrap: wrap; align-items: start; gap: 8px 18px; }
.theory-footer nav a { color: var(--muted); text-decoration: none; }

@media (max-width: 980px) {
  .article-hero { grid-template-columns: 1fr; }
  .article-hero figure { max-width: 760px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: none; }
  .article-content { max-width: 760px; margin: auto; }
  .hub-hero { grid-template-columns: 1fr; }
  .hub-hero aside { max-width: 620px; }
  .theory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .theory-topbar-inner { width: min(100% - 24px, 1180px); gap: 10px; overflow-x: auto; }
  .theory-brand span:last-child { display: none; }
  .theory-topbar nav { gap: 0; }
  .theory-topbar nav a { padding: 9px 8px; font-size: .82rem; }
  .theory-start { display: none; }
  .theory-page, .theory-hub, .about-page, .theory-footer { width: min(100% - 28px, 1180px); }
  .article-hero { padding-top: 15px; }
  .article-hero h1 { font-size: 2.55rem; }
  .article-meta { display: grid; gap: 3px; }
  .article-meta span::after { display: none; }
  .learning-goals ul { columns: 1; }
  .theory-section { grid-template-columns: 1fr; }
  .key-terms dl { grid-template-columns: 1fr; }
  .article-cta { align-items: start; flex-direction: column; }
  .article-pagination { grid-template-columns: 1fr; }
  .article-pagination a:last-child { text-align: left; }
  .hub-hero { min-height: 0; padding: 60px 0; }
  .hub-hero h1 { font-size: 2.7rem; }
  .hub-method > div:first-child, .method-grid { grid-template-columns: 1fr; }
  .theory-card { grid-template-columns: 1fr; }
  .theory-card-image { min-height: 190px; max-height: 220px; }
  .hub-trust, .theory-footer { align-items: start; flex-direction: column; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theory-card-image img { transition: none; }
}

/* De statische theorie gebruikt exact dezelfde shell als de leeromgeving. */
.theory-static .app-topbar { display: flex; align-items: center; }
.theory-static .experimental-tests-nav { display: none; }
html.tests-menu-enabled .theory-static .experimental-tests-nav { display: inline-flex; }
.theory-static .app-top-spacer { flex: 1 1 auto; }
.theory-static .shell-brand { text-decoration: none; }
.theory-static .shell-auth-actions { display: flex; align-items: center; gap: 8px; }
.theory-static .shell-auth-actions a { text-decoration: none; text-transform: none; letter-spacing: 0; }
.theory-streak { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.theory-static-content {
  width: 100%;
  max-width: none;
  padding: 0;
  background:
    radial-gradient(840px 440px at 88% -120px, rgba(205, 230, 205, .62) 0%, transparent 68%),
    linear-gradient(180deg, #f7faf6 0%, #f1f6f0 100%);
}
.theory-static-content > main,
.theory-static-content > footer { width: min(1360px, calc(100% - clamp(36px, 8vw, 96px))); }
.theory-static-content .theory-hub { margin: 0 auto; }
.theory-static-content .hub-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  margin: 0;
  padding: clamp(38px, 5.5vw, 76px) 4px 34px;
  border-bottom: 1px solid rgba(60, 106, 68, .18);
}
.theory-static-content .hub-hero h1 {
  max-width: 880px;
  margin: 10px 0 16px;
  color: #203e2b;
  font-size: clamp(43px, 5.3vw, 72px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.055em;
}
.theory-static-content .hub-hero > div > p:not(.eyebrow) {
  max-width: 68ch;
  margin-bottom: 0;
  color: #607362;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.62;
}
.theory-static-content .eyebrow,
.theory-static-content .section-label {
  margin-bottom: 8px;
  color: #56865b;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .15em;
}
.theory-static-content .hub-count {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 240px;
  margin-bottom: 4px;
  padding: 16px 20px;
  overflow: hidden;
  border-radius: 17px;
  background: #2e6040;
  box-shadow: none;
}
.theory-static-content .hub-count::after {
  position: absolute;
  right: -31px;
  bottom: -49px;
  width: 122px;
  height: 122px;
  border: 1px solid rgba(214, 244, 207, .28);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(214, 244, 207, .05);
  content: "";
}
.theory-static-content .hub-count b { color: #c2e775; font: 700 46px/.9 "Bricolage Grotesque", sans-serif; letter-spacing: -.06em; }
.theory-static-content .hub-count span { position: relative; z-index: 1; color: rgba(239, 249, 237, .82); font-size: 12px; font-weight: 700; line-height: 1.35; }
.theory-static-content .hub-count i { position: absolute; top: 18px; right: 18px; width: 7px; height: 7px; border-radius: 50%; background: #bfe978; box-shadow: 0 0 0 5px rgba(191,233,120,.11); }
.theory-static-content .hub-actions a { border-radius: 10px; }
.theory-static-content .hub-actions a:first-child { background: #36784a; }

@media (max-width: 920px) {
  .theory-static .top-premium-btn,
  .theory-static .theory-streak { display: none; }
  .theory-static-content .hub-hero { grid-template-columns: 1fr; }
  .theory-static-content .hub-count { justify-self: start; }
}
@media (max-width: 560px) {
  .theory-static .shell-auth-actions { display: none; }
  .theory-static-content > main,
  .theory-static-content > footer { width: min(100% - 28px, 1360px); }
  .theory-static-content .hub-hero h1 { font-size: 43px; }
}

/* Volledige bibliotheekstijl: dezelfde beeldkaarten, groentinten en compacte
   informatiedichtheid als het bestaande hoofdstukkenoverzicht. */
.theory-static-content a { color: #2f7042; }
.theory-static-content .breadcrumbs {
  min-height: 56px;
  padding: 0 4px;
  color: #728374;
  font-size: 12px;
  font-weight: 650;
}
.theory-static-content .breadcrumbs a { color: inherit; }
.theory-static-content .hub-actions { margin-top: 22px; }
.theory-static-content .hub-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #92b99a;
  color: #316d42;
  font-size: 13px;
  font-weight: 800;
}
.theory-static-content .hub-actions a:first-child { color: #fff; border-color: #36784a; }

.hub-method {
  padding: 45px 4px 48px;
  border-top: 0;
  border-bottom: 1px solid rgba(60, 106, 68, .16);
}
.hub-method > div:first-child { grid-template-columns: minmax(140px, .42fr) minmax(0, 1fr); align-items: end; }
.hub-method h2,
.hub-chapters > header h2,
.hub-posts > header h2,
.all-posts > header h2 {
  margin: 0 0 8px;
  color: #294330;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.04em;
}
.method-grid { gap: 13px; margin-top: 23px; }
.method-grid article {
  padding: 21px;
  border-color: #d7e4d8;
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 27px -26px rgba(27, 68, 38, .5);
}
.method-grid article h3 { margin: 8px 0 7px; color: #294330; font-size: 17px; }
.method-grid article p { color: #6a7d6c; font-size: 13px; font-weight: 600; line-height: 1.55; }

.hub-chapters { padding: 50px 4px 55px; }
.hub-chapters > header { max-width: 740px; margin-bottom: 24px; }
.hub-chapters > header > p:last-child,
.hub-posts > header p:last-child,
.all-posts > header p:last-child { color: #687b6a; font-size: 14px; font-weight: 600; line-height: 1.6; }
.theory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.theory-card {
  position: relative;
  display: block;
  min-height: 226px;
  overflow: hidden;
  border: 0;
  border-radius: 17px;
  background: #244e35;
  box-shadow: 0 13px 28px -24px rgba(21, 54, 31, .78);
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
.theory-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 34, 21, .05) 0%, rgba(14, 45, 28, .14) 36%, rgba(16, 43, 27, .95) 100%);
  content: "";
  pointer-events: none;
}
.theory-card:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -24px rgba(19, 56, 32, .64); }
.theory-card-image,
.theory-card-typographic { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; }
.theory-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: .86; filter: saturate(.92) contrast(1.05) brightness(.86); }
.theory-card:hover .theory-card-image img { opacity: .98; transform: scale(1.035); }
.theory-card-typographic {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 21px;
  color: rgba(226, 244, 220, .8);
  background:
    radial-gradient(circle at 84% 20%, rgba(194,231,117,.2) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 20%, transparent 0 29px, rgba(194,231,117,.14) 30px 31px, transparent 32px),
    linear-gradient(145deg, #285c3b, #173c29);
  text-decoration: none;
}
.theory-card-typographic span { color: #c2e775; font: 700 54px/.9 "Bricolage Grotesque", sans-serif; letter-spacing: -.06em; }
.theory-card-typographic i { color: rgba(237,248,233,.55); font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .14em; line-height: 1.45; text-align: right; }
.theory-card > div:last-child {
  position: relative;
  z-index: 2;
  min-height: 226px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 17px;
}
.theory-card > div:last-child > p:first-child {
  align-self: flex-start;
  margin: 0 0 auto;
  padding: 6px 8px;
  border-radius: 8px;
  color: #204d31;
  background: #dff0dc;
  font-size: 10px;
  letter-spacing: .08em;
}
.theory-card h2 { max-width: 18ch; margin: 30px 0 4px; font-size: 21px; line-height: 1.02; }
.theory-card h2 a { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.16); }
.theory-card > div:last-child > span { color: rgba(246,253,244,.68); font-size: 10.5px; font-weight: 650; }
.theory-card > div:last-child > p:not(:first-child) { display: none; }
.theory-card .card-link { margin-top: 12px; color: #c8ec8d; font-size: 12px; }

.hub-posts {
  padding: 54px 4px 60px;
  border-top: 1px solid rgba(60, 106, 68, .16);
}
.hub-posts > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}
.hub-posts > header > div { max-width: 760px; }
.hub-posts > header > a { flex: 0 0 auto; font-size: 13px; font-weight: 800; text-decoration: none; }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.post-card {
  min-width: 0;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid #d7e4d8;
  border-radius: 15px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 12px 27px -26px rgba(27, 68, 38, .5);
}
.post-card > p:first-child { margin: 0 0 12px; color: #4a8052; font-size: 9.5px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.post-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.12; }
.post-card h3 a { color: #294330; text-decoration: none; }
.post-card > p:not(:first-child) { margin: 0 0 18px; color: #6a7d6c; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.post-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid #e1ebe1; }
.post-card footer span { color: #829185; font-size: 10.5px; font-weight: 650; }
.post-card footer a { color: #347443; font-size: 11.5px; font-weight: 800; text-decoration: none; }

.hub-trust {
  margin: 12px 4px 72px;
  padding: 31px 33px;
  border: 1px solid #cfe0cf;
  border-radius: 18px;
  background: #e1efdf;
}
.hub-trust h2 { margin-bottom: 8px; color: #294330; font-size: 25px; }
.hub-trust > div p:last-child { color: #5f7562; font-size: 13.5px; font-weight: 600; }

/* Hoofdstukpagina's volgen de donkere, rand-tot-rand studiebriefing van de app. */
.theory-static-content .theory-page { width: min(1160px, calc(100% - clamp(36px, 8vw, 96px))); margin: 0 auto; }
.article-hero {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(310px, .38fr);
  gap: 0;
  margin-bottom: 38px;
  padding: 42px;
  overflow: hidden;
  border-radius: 22px;
  background: #163f2a;
  box-shadow: 0 22px 48px -36px rgba(18, 52, 30, .9);
}
.article-hero-copy { position: relative; z-index: 3; max-width: 660px; align-self: center; }
.article-hero h1 { margin: 8px 0 13px; color: #f7fbf5; font-size: clamp(43px, 5vw, 62px); font-weight: 700; line-height: .95; letter-spacing: -.055em; }
.article-hero .eyebrow { color: #c2e774; }
.article-intro { max-width: 56ch; margin-bottom: 19px; color: rgba(241,249,238,.82); font-size: 15px; font-weight: 550; line-height: 1.58; }
.article-meta { color: rgba(239,249,237,.62); font-size: 11.5px; font-weight: 600; }
.article-meta a { color: #d7efcf; }
.article-hero figure { position: absolute; inset: 0 0 0 auto; z-index: 1; width: 52%; height: 100%; overflow: hidden; }
.article-hero figure::after { position: absolute; inset: 0; background: linear-gradient(90deg, #163f2a 0%, rgba(22,63,42,.85) 20%, rgba(22,63,42,.12) 72%); content: ""; }
.article-hero figure img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; object-fit: cover; opacity: .9; filter: saturate(.9) contrast(1.05) brightness(.86); box-shadow: none; }
.article-hero figcaption { position: absolute; z-index: 3; right: 13px; bottom: 9px; max-width: 76%; margin: 0; color: rgba(255,255,255,.62); font-size: 9px; text-align: right; }
.article-hero figcaption a { color: rgba(255,255,255,.82); }
.article-hero-index {
  position: relative;
  z-index: 2;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: start;
  margin: -42px -42px -42px 34px;
  padding: 40px;
  overflow: hidden;
  border-left: 1px solid rgba(229,247,223,.15);
  background: rgba(8,36,21,.24);
}
.article-hero-index::after { position: absolute; top: -56px; right: -52px; width: 176px; height: 176px; border: 1px solid rgba(214,245,200,.21); border-radius: 50%; box-shadow: 0 0 0 27px rgba(214,245,200,.055), 0 0 0 61px rgba(214,245,200,.025); content: ""; }
.article-hero-index > span { color: #b8dbab; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.article-hero-index b { margin: 12px 0; color: #c6eb8d; font: 700 64px/.85 "Bricolage Grotesque", sans-serif; letter-spacing: -.06em; }
.article-hero-index i { width: 78px; height: 1px; background: #9fc58f; }
.article-hero-index small { margin-top: 15px; color: rgba(239,249,237,.64); font-size: 11.5px; font-weight: 600; line-height: 1.5; }

.article-layout { grid-template-columns: 210px minmax(0, 760px); gap: 50px; }
.article-aside { top: 22px; }
.toc { border-left-color: #cddccd; }
.toc strong { color: #426749; font-size: 10px; }
.toc a { color: #728374; font-size: 12px; font-weight: 600; }
.learning-goals,
.reasoning-card,
.self-check,
.source-box,
.article-cta,
.post-brief {
  border-color: #d7e4d8;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 27px -26px rgba(27, 68, 38, .5);
}
.learning-goals { background: #e5f0e2; }
.learning-goals h2,
.reasoning-card h2,
.self-check h2,
.source-box h2,
.article-cta h2,
.theory-section h2,
.chapter-related h2 { color: #294330; font-weight: 700; }
.learning-goals li,
.reasoning-card p:last-child,
.self-check,
.source-box { color: #526b57; font-weight: 550; }
.reasoning-card { border-color: #b8d4bc; box-shadow: inset 4px 0 0 #4c9960; }
.theory-section { border-bottom-color: #d9e4d9; }
.theory-section-number { border-color: #cddccd; color: #347443; background: #eef6ec; }
.theory-section-body > p { color: #415b47; font-size: 15px; font-weight: 500; line-height: 1.7; }
.key-terms dl > div { border-color: #d8e5d8; background: rgba(238,246,236,.82); }
.key-terms dt { color: #347443; }
.key-terms dd { color: #687b6a; }
.pitfall { background: #fff2cf; }
.pitfall .section-label { color: #7b6220; }
.pitfall h2 { color: #443a20; }
.pitfall p,
.pitfall li { color: #65583a; }
.self-check li::before { background: #36784a; }
.article-cta { background: #28613f; }
.article-cta h2 { color: #fff; }
.article-cta a { color: #28613f; }
.article-pagination a { border-color: #d7e4d8; background: rgba(255,255,255,.74); }
.article-pagination b { color: #294330; }
.chapter-related { padding-top: 10px; }
.related-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.related-post-grid .post-card { min-height: 220px; }

/* Verdiepingsartikelen: typografisch, rustig en zonder geforceerde stockfoto. */
.post-hero {
  position: relative;
  margin-bottom: 38px;
  padding: clamp(34px, 5vw, 56px);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 89% 20%, rgba(194,231,117,.22) 0 5px, transparent 6px),
    radial-gradient(circle at 89% 20%, transparent 0 58px, rgba(194,231,117,.13) 59px 60px, transparent 61px),
    linear-gradient(130deg, #1d4c32, #2e6842);
  box-shadow: 0 22px 48px -36px rgba(18, 52, 30, .9);
}
.post-hero h1 { max-width: 920px; margin: 9px 0 17px; color: #f7fbf5; font-size: clamp(42px, 5.3vw, 66px); line-height: .97; letter-spacing: -.052em; }
.post-hero > p:not(.eyebrow) { max-width: 73ch; color: rgba(241,249,238,.82); font-size: 16px; font-weight: 550; line-height: 1.65; }
.post-hero .eyebrow { color: #c2e774; }
.post-brief { padding: 23px 26px; }
.post-brief p:last-child { margin: 0; color: #4f6954; font-size: 15px; line-height: 1.65; }
.post-section { padding-top: 32px; }
.post-pitfall ul { margin-bottom: 0; padding-left: 20px; }
.post-pitfall li + li { margin-top: 8px; }

.posts-index { padding-bottom: 70px; }
.posts-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 22px 4px 40px;
  border-bottom: 1px solid rgba(60,106,68,.18);
}
.posts-index-hero h1 { margin: 9px 0 17px; color: #203e2b; font-size: clamp(44px, 5.2vw, 70px); line-height: .96; letter-spacing: -.055em; }
.posts-index-hero > div > p:last-child { max-width: 72ch; color: #607362; font-size: 16px; font-weight: 600; line-height: 1.62; }
.posts-index-hero aside { display: flex; align-items: center; gap: 13px; min-width: 235px; padding: 17px 20px; border-radius: 17px; background: #2e6040; }
.posts-index-hero aside b { color: #c2e775; font: 700 47px/.9 "Bricolage Grotesque", sans-serif; }
.posts-index-hero aside span { color: rgba(239,249,237,.8); font-size: 12px; font-weight: 700; }
.all-posts { padding: 48px 4px 0; }
.all-posts > header { margin-bottom: 23px; }

.about-page > header h1 { color: #203e2b; }
.about-grid article { border-color: #d7e4d8; background: rgba(255,255,255,.74); }
.theory-footer { color: #718173; }

:root[data-theme="dark"] .theory-static-content { background: radial-gradient(680px 400px at 88% -120px, rgba(42,108,65,.17) 0%, transparent 68%), var(--paper); }
:root[data-theme="dark"] .theory-static-content .hub-hero h1,
:root[data-theme="dark"] .hub-method h2,
:root[data-theme="dark"] .hub-chapters > header h2,
:root[data-theme="dark"] .hub-posts > header h2,
:root[data-theme="dark"] .all-posts > header h2,
:root[data-theme="dark"] .posts-index-hero h1,
:root[data-theme="dark"] .about-page > header h1 { color: var(--ink); }
:root[data-theme="dark"] .method-grid article,
:root[data-theme="dark"] .post-card,
:root[data-theme="dark"] .learning-goals,
:root[data-theme="dark"] .reasoning-card,
:root[data-theme="dark"] .self-check,
:root[data-theme="dark"] .source-box,
:root[data-theme="dark"] .post-brief,
:root[data-theme="dark"] .article-pagination a,
:root[data-theme="dark"] .about-grid article { border-color: var(--line); background: var(--card); }
:root[data-theme="dark"] .post-card h3 a,
:root[data-theme="dark"] .learning-goals h2,
:root[data-theme="dark"] .reasoning-card h2,
:root[data-theme="dark"] .self-check h2,
:root[data-theme="dark"] .source-box h2,
:root[data-theme="dark"] .theory-section h2,
:root[data-theme="dark"] .article-pagination b { color: var(--ink); }
:root[data-theme="dark"] .theory-section-body > p,
:root[data-theme="dark"] .post-card > p:not(:first-child),
:root[data-theme="dark"] .post-brief p:last-child { color: var(--muted-2); }
:root[data-theme="dark"] .hub-trust { border-color: #2f6b48; background: #16291f; }
:root[data-theme="dark"] .hub-trust h2 { color: var(--ink); }

@media (max-width: 1120px) {
  .theory-grid,
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .theory-grid,
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-hero { display: block; padding: 34px 29px; }
  .article-hero.has-image { padding-right: 29px; }
  .article-hero figure { width: 100%; opacity: .42; }
  .article-hero figure::after { background: linear-gradient(90deg, #163f2a 0%, rgba(22,63,42,.9) 45%, rgba(22,63,42,.38) 100%); }
  .article-hero figcaption { display: none; }
  .article-hero-index { width: fit-content; margin: 30px 0 0; padding: 18px 24px; border: 1px solid rgba(229,247,223,.15); border-radius: 15px; }
  .article-hero-index b { font-size: 47px; }
  .article-layout { grid-template-columns: 1fr; }
  .hub-posts > header { align-items: start; flex-direction: column; }
  .posts-index-hero { grid-template-columns: 1fr; }
  .posts-index-hero aside { justify-self: start; }
}
@media (max-width: 600px) {
  .theory-static-content .theory-page { width: min(100% - 28px, 1160px); }
  .theory-grid,
  .post-grid,
  .related-post-grid { grid-template-columns: 1fr; }
  .theory-card { min-height: 205px; }
  .theory-card > div:last-child { min-height: 205px; }
  .hub-method > div:first-child,
  .method-grid { grid-template-columns: 1fr; }
  .hub-trust { align-items: start; flex-direction: column; padding: 25px; }
  .article-hero h1,
  .post-hero h1 { font-size: 40px; }
  .article-hero { min-height: 285px; }
  .article-hero .article-meta,
  .post-hero .article-meta { gap: 4px; }
  .post-hero { padding: 33px 24px; }
  .posts-index-hero h1 { font-size: 42px; }
}
