/* ============================================================
   FrisseWebsite — Kennisbank design-systeem
   "Redactioneel laboratorium": papier-witte leescanvas, ink koppen,
   acid-lime accent. Brand v2 (ink #0A0A12, lime #C8FF3F, Fraunces+Inter).
   Self-hosted fonts via brand.css — geen externe calls.
   ============================================================ */

/* ---------- 0. Leesvoortgangsbalk ---------- */
.kb-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--lime-deep));
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---------- 1. Mega-menu (sitewide) ---------- */
.fw-mega { position: relative; }
.fw-mega > a { cursor: pointer; }
.fw-mega-panel {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(880px, 92vw);
  background: var(--ink-1, #14141B);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 28px 30px 22px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 130;
}
.fw-mega:hover .fw-mega-panel,
.fw-mega:focus-within .fw-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(7px);
}
.fw-mega-col { min-width: 0; }
.fw-mega-col > .fw-mega-pillar {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #FAFAF7;
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 4px;
}
.fw-mega-col > .fw-mega-pillar:hover { color: var(--lime); }
.fw-mega-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-deep);
  display: block;
  margin-bottom: 6px;
}
.fw-mega-spokes { list-style: none; margin: 12px 0 0; padding: 0; }
.fw-mega-spokes li { margin: 0 0 2px; }
.fw-mega-spokes a {
  display: block;
  padding: 6px 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #C0C0CA;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.fw-mega-spokes a:hover { color: var(--lime); padding-left: 5px; }
.fw-mega-spokes a.is-soon { color: #6E6E78; cursor: default; pointer-events: none; }
.fw-mega-spokes a.is-soon::after {
  content: "binnenkort";
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6E6E78;
  margin-left: 8px;
  opacity: 0.7;
}
.fw-mega-all {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  text-decoration: none;
}
.fw-mega-all:hover { opacity: 0.8; }
@media (max-width: 1024px) { .fw-mega-panel { display: none; } }

/* Mobile: mega-menu collapsible section inside overlay */
.nav-mobile-kb { border-top: 1px solid rgba(255,255,255,0.10); margin-top: 6px; padding-top: 6px; }
.nav-mobile-kb-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: #FAFAF7;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 500;
  padding: 10px 0;
  cursor: pointer;
  text-align: left;
}
.nav-mobile-kb-toggle::after { content: "+"; color: var(--lime); font-family: var(--font-mono); transition: transform 0.25s ease; }
.nav-mobile-kb.is-open .nav-mobile-kb-toggle::after { transform: rotate(45deg); }
.nav-mobile-kb-body { display: none; padding: 4px 0 14px; }
.nav-mobile-kb.is-open .nav-mobile-kb-body { display: block; }
.nav-mobile-kb-body .grp { margin-bottom: 14px; }
.nav-mobile-kb-body .grp > a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--lime);
  text-decoration: none;
  margin-bottom: 4px;
}
.nav-mobile-kb-body .grp ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile-kb-body .grp ul a {
  display: block;
  font-size: 0.95rem;
  color: #C0C0CA;
  text-decoration: none;
  padding: 4px 0 4px 12px;
}
.nav-mobile-kb-body .grp ul a.is-soon { color: #6E6E78; pointer-events: none; }

/* ---------- 2. Breadcrumb ---------- */
.kb-crumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.kb-crumb a { color: var(--text-3); text-decoration: none; }
.kb-crumb a:hover { color: var(--lime-text); }
.kb-crumb .sep { opacity: 0.5; margin: 0 4px; }

/* ---------- 3. Meta-strip (leestijd / datum / auteur) ---------- */
.kb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--surface-3);
}
.kb-meta .kb-author { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }
.kb-meta .kb-avatar {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--ink); color: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  flex-shrink: 0;
}
.kb-meta .sep { opacity: 0.45; }

/* ---------- 4. Spoke reading layout ---------- */
.kb-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 68ch);
  gap: 56px;
  align-items: start;
  justify-content: center;
}
.kb-article { min-width: 0; max-width: 68ch; }

.kb-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text-1);
  margin: 52px 0 16px;
  scroll-margin-top: 110px;
}
.kb-article h2:first-child { margin-top: 0; }
.kb-article h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.3;
  color: var(--text-1);
  margin: 34px 0 10px;
  scroll-margin-top: 110px;
}
.kb-article p {
  font-size: 1.06rem;
  line-height: 1.7;
  margin: 0 0 20px;
  color: var(--text-2);
}
.kb-article ul, .kb-article ol { margin: 0 0 24px; padding-left: 24px; }
.kb-article li { font-size: 1.06rem; line-height: 1.65; margin-bottom: 10px; color: var(--text-2); }
.kb-article li::marker { color: var(--lime-deep); }
.kb-article a {
  color: var(--lime-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-lime);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.kb-article a:hover { text-decoration-color: var(--lime-deep); }
.kb-article strong { color: var(--text-1); font-weight: 600; }
.kb-article em { font-style: italic; }

/* ---------- 5. Sticky TOC + scroll-spy ---------- */
.kb-toc {
  position: sticky;
  top: 104px;
  align-self: start;
}
.kb-toc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin: 0 0 14px;
  padding-left: 14px;
}
.kb-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--surface-3); }
.kb-toc li { margin: 0; }
.kb-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.kb-toc a:hover { color: var(--text-1); }
.kb-toc a.is-active {
  color: var(--lime-text);
  border-left-color: var(--lime-deep);
  font-weight: 600;
}
.kb-toc li.lvl-3 a { padding-left: 26px; font-size: 0.82rem; }

/* Mobile collapsible TOC */
.kb-toc-mobile { display: none; }
@media (max-width: 980px) {
  .kb-layout { display: block; }
  .kb-article { max-width: 68ch; margin: 0 auto; }
  .kb-toc { display: none; }
  .kb-toc-mobile {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--surface-3);
    border-radius: 14px;
    margin: 0 0 36px;
    overflow: hidden;
  }
  .kb-toc-mobile summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-2);
    display: flex; justify-content: space-between; align-items: center;
  }
  .kb-toc-mobile summary::-webkit-details-marker { display: none; }
  .kb-toc-mobile summary::after { content: "+"; color: var(--lime-deep); font-family: var(--font-mono); font-size: 1.2rem; }
  .kb-toc-mobile[open] summary::after { content: "–"; }
  .kb-toc-mobile ul { list-style: none; margin: 0; padding: 0 20px 18px; }
  .kb-toc-mobile li { margin: 0 0 8px; }
  .kb-toc-mobile a { font-size: 0.92rem; color: var(--text-1); text-decoration: none; }
  .kb-toc-mobile a:hover { color: var(--lime-text); }
  .kb-toc-mobile li.lvl-3 a { padding-left: 14px; font-size: 0.86rem; color: var(--text-2); }
}

/* ---------- 6. Callouts ---------- */
.kb-callout {
  position: relative;
  background: var(--lime-haze);
  border: 1px solid var(--border-lime);
  border-radius: 16px;
  padding: 22px 26px 22px 26px;
  margin: 32px 0;
}
.kb-callout .kb-callout-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime-text);
  display: block;
  margin-bottom: 8px;
}
.kb-callout p { margin: 0 0 12px; font-size: 1.0rem; line-height: 1.6; color: var(--text-2); }
.kb-callout p:last-child { margin-bottom: 0; }
.kb-callout strong { color: var(--text-1); }

/* Key takeaway box — ink dark, lime accent */
.kb-takeaway {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: 18px;
  padding: 30px 32px;
  margin: 40px 0;
  border-left: 4px solid var(--lime);
}
.kb-takeaway .kb-callout-label { color: var(--lime); }
.kb-takeaway p { color: var(--text-on-dark-2); font-size: 1.08rem; line-height: 1.6; margin: 0; }
.kb-takeaway strong { color: var(--text-on-dark); }

/* ---------- 7. In-content CTA ---------- */
.kb-incontent-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 40px 0;
}
.kb-incontent-cta .txt { min-width: 0; flex: 1 1 280px; }
.kb-incontent-cta h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-1);
  margin: 0 0 6px;
}
.kb-incontent-cta p { margin: 0; font-size: 0.95rem; color: var(--text-2); line-height: 1.5; }
.kb-incontent-cta .btn { flex: 0 0 auto; }

/* ---------- 8. Price/data tables (mobile-safe) ---------- */
.kb-table-wrap { overflow-x: auto; margin: 8px 0 28px; -webkit-overflow-scrolling: touch; }
.kb-pricetable { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 460px; }
.kb-pricetable th, .kb-pricetable td {
  text-align: left; padding: 13px 14px;
  border-bottom: 1px solid var(--surface-3); vertical-align: top;
}
.kb-pricetable th {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); font-weight: 600;
}
.kb-pricetable td:first-child { font-weight: 600; color: var(--text-1); }
.kb-pricetable .pr { color: var(--lime-text); font-weight: 700; white-space: nowrap; }

/* ---------- 9. FAQ accordion ---------- */
.kb-faq { margin: 12px 0 0; }
.kb-faq details {
  border-bottom: 1px solid var(--surface-3);
  padding: 4px 0;
}
.kb-faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  padding: 16px 36px 16px 0;
  position: relative;
}
.kb-faq summary::-webkit-details-marker { display: none; }
.kb-faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--lime-deep); font-family: var(--font-mono); font-size: 1.5rem;
  transition: transform 0.25s ease;
}
.kb-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.kb-faq details p { margin: 0 0 18px; font-size: 1rem; line-height: 1.65; color: var(--text-2); max-width: 64ch; }

/* ---------- 10. "Verder lezen" cards ---------- */
.kb-readmore { margin-top: 10px; }
.kb-readmore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.kb-next {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.kb-next:hover {
  transform: translateY(-4px);
  border-color: var(--border-lime);
  box-shadow: var(--shadow-lg);
}
.kb-next .lbl {
  font-family: var(--font-mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3); display: block; margin-bottom: 8px;
}
.kb-next .ttl {
  font-family: var(--font-display);
  font-size: 1.12rem; font-weight: 600; line-height: 1.25;
  color: var(--text-1); display: block;
}
.kb-next:hover .ttl { color: var(--lime-text); }

/* ---------- 11. End-CTA block (ink-dark, lime button) ---------- */
.kb-endcta {
  position: relative;
  background: var(--ink);
  border-radius: 28px;
  padding: 64px 48px;
  margin: 72px 0 0;
  text-align: center;
  overflow: hidden;
}
.kb-endcta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--lime-glow), transparent 60%);
  pointer-events: none;
}
.kb-endcta .eyebrow { color: var(--lime); position: relative; z-index: 1; }
.kb-endcta h2 {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: 14px 0 0;
}
.kb-endcta h2 em { color: var(--lime); font-style: italic; }
.kb-endcta p { position: relative; z-index: 1; color: var(--text-on-dark-2); max-width: 540px; margin: 18px auto 0; font-size: 1.05rem; }
.kb-endcta .kb-endcta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ============================================================
   HUB & PILLAR cards — asymmetric grid, hover-lift,
   Fraunces-outline numbers, lime accent on hover.
   ============================================================ */

/* Asymmetric pillar grid (hub) */
.kb-pillar-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.kb-pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: 22px;
  padding: 34px 34px 30px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.kb-pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-lime);
  box-shadow: var(--shadow-lg);
}
.kb-pillar-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--lime);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.kb-pillar-card:hover::after { transform: scaleY(1); }
/* Asymmetry: first card spans wider, others narrower */
.kb-pillar-card.span-7 { grid-column: span 7; }
.kb-pillar-card.span-5 { grid-column: span 5; }
.kb-pillar-card.span-6 { grid-column: span 6; }

.kb-pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--lime-deep);
  text-stroke: 1.4px var(--lime-deep);
  margin-bottom: 14px;
  display: block;
}
.kb-pillar-card.is-soon .kb-pillar-num { -webkit-text-stroke-color: var(--border-3); text-stroke-color: var(--border-3); }
.kb-pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.12;
  color: var(--text-1);
  margin: 0 0 10px;
}
.kb-pillar-card .kb-pillar-desc { font-size: 0.98rem; line-height: 1.55; color: var(--text-2); margin: 0 0 18px; }
.kb-pillar-card .kb-pillar-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-3);
}
.kb-pillar-card .kb-count {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3);
}
.kb-pillar-card .kb-more {
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--lime-text);
}
.kb-pillar-card.is-soon { opacity: 0.78; pointer-events: none; }
.kb-pillar-card.is-soon .kb-more { color: var(--text-3); }
.kb-pillar-pill {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.64rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-3);
}

/* Pillar page: spoke card grid */
.kb-spoke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.kb-spoke-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: 18px;
  padding: 26px 26px 24px;
  text-decoration: none;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.kb-spoke-card:not(.is-soon):hover {
  transform: translateY(-5px);
  border-color: var(--border-lime);
  box-shadow: var(--shadow-md);
}
.kb-spoke-card .kb-spoke-kicker {
  font-family: var(--font-mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--lime-text); margin-bottom: 12px;
}
.kb-spoke-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem; line-height: 1.2;
  color: var(--text-1); margin: 0 0 8px;
}
.kb-spoke-card p { font-size: 0.92rem; line-height: 1.5; color: var(--text-2); margin: 0 0 16px; }
.kb-spoke-card .kb-spoke-go {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  color: var(--lime-text); letter-spacing: 0.04em;
}
.kb-spoke-card.is-soon { opacity: 0.7; pointer-events: none; }
.kb-spoke-card.is-soon .kb-spoke-kicker { color: var(--text-3); }
.kb-spoke-card.is-soon .kb-spoke-go { color: var(--text-3); }

/* Latest-articles strip */
.kb-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* Pillar sticky CTA */
.kb-pillar-cta {
  position: sticky;
  bottom: 22px;
  z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 22px;
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: 18px;
  padding: 18px 24px;
  box-shadow: var(--shadow-xl);
  margin-top: 8px;
}
.kb-pillar-cta .txt { min-width: 0; flex: 1 1 240px; }
.kb-pillar-cta strong { color: var(--text-on-dark); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; display: block; }
.kb-pillar-cta span { color: var(--text-on-dark-2); font-size: 0.9rem; }

@media (max-width: 860px) {
  .kb-pillar-card.span-7, .kb-pillar-card.span-5, .kb-pillar-card.span-6 { grid-column: span 12; }
  .kb-pillar-cta { position: static; }
}

/* ---------- Print ---------- */
@media print {
  .kb-progress, .kb-toc, .kb-toc-mobile, .kb-incontent-cta,
  .kb-endcta, .kb-pillar-cta, .nav, .footer { display: none !important; }
  .kb-layout { display: block; }
  .kb-article { max-width: none; }
}

/* ---------- Mobile overflow guards ---------- */
@media (max-width: 640px) {
  /* Kennisbank hero headline: keep it inside the viewport */
  main > section h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.08; }
  .kb-article h1, main h1 { overflow-wrap: anywhere; word-break: break-word; }
  .kb-article h2, .kb-article h3 { overflow-wrap: anywhere; }
  .kb-crumb { white-space: normal; line-height: 1.6; }
  /* Long mono eyebrow can force width: let it wrap */
  main .eyebrow { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .kb-progress, .kb-pillar-card, .kb-spoke-card, .kb-next, .fw-mega-panel { transition: none; }
  .kb-pillar-card:hover, .kb-spoke-card:hover, .kb-next:hover { transform: none; }
}

/* ============================================================
   PREMIUM EDITORIAL COMPONENT SYSTEM  (v2 · 2026-06-11)
   Additive. Stripe-docs ontmoet design-magazine.
   Elk component = vaste class-API voor de schrijf-pipeline.
   Brand v2: ink #07070A/#0A0A12, lime #C8FF3F, papier #FAFAF7,
   Fraunces (display) + Inter (body). Self-hosted, geen externe calls.
   ============================================================ */

/* ---------- E0. Typografisch ritme & optische details ---------- */
.kb-article h1,
.kb-article h2,
.kb-article h3,
.kb-endcta h2,
main > section h1 { text-wrap: balance; }

.kb-article p { text-wrap: pretty; hanging-punctuation: first allow-end; }

/* Optische marge: openingsaanhaling laten uithangen waar de browser het steunt */
.kb-article p.kb-hang { text-indent: -0.46em; }

/* ---------- E1. Editorial intro: drop-cap + lead-paragraph ---------- */
/* Markeer het intro-blok met .kb-lede; eerste <p> wordt de lead. */
.kb-lede > p:first-of-type,
p.kb-lead-p {
  font-size: 1.32rem;
  line-height: 1.6;
  color: var(--text-1);
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}
/* Drop-cap: zet .kb-dropcap op de eerste paragraaf */
p.kb-dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: 4.6em;
  line-height: 0.78;
  padding: 0.04em 0.10em 0 0;
  margin: 0.02em 0 0;
  color: var(--ink);
  -webkit-initial-letter: 3;
  initial-letter: 3;
}
p.kb-dropcap.kb-dropcap-lime::first-letter { color: var(--lime-deep); }

/* ---------- E2. Genummerde section-markers (H2 met marge-nummer) ---------- */
/* Wikkel de genummerde sectie in <section class="kb-sec" data-kb-num="01">…<h2>…  */
.kb-sec { position: relative; }
.kb-sec > h2[data-kb-num]::before,
.kb-article h2[data-kb-num]::before {
  content: attr(data-kb-num);
  position: absolute;
  left: -88px;
  top: 0.04em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--lime-deep);
  text-stroke: 1.2px var(--lime-deep);
  pointer-events: none;
}
.kb-article h2[data-kb-num] { position: relative; }
@media (max-width: 1180px) {
  /* Geen ruimte in de marge: nummer inline boven de kop */
  .kb-sec > h2[data-kb-num]::before,
  .kb-article h2[data-kb-num]::before {
    position: static;
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
  }
}

/* ---------- E3. Pull-quote (grid-breaking Fraunces) ---------- */
.kb-pullquote {
  margin: 48px 0 48px -1px;
  padding: 4px 0 4px 28px;
  border-left: 4px solid var(--lime);
  /* Breekt licht uit de leesmaat naar rechts voor magazine-effect */
  width: calc(100% + clamp(0px, 8vw, 120px));
  max-width: none;
}
@media (min-width: 1100px) {
  .kb-pullquote { margin-left: -32px; padding-left: 32px; }
}
.kb-pullquote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--text-1);
  margin: 0;
  text-wrap: balance;
}
.kb-pullquote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kb-pullquote cite::before { content: "— "; color: var(--lime-deep); }

/* ---------- E4. Key-takeaway-box (ink-dark + lime label + bullets) ---------- */
/* .kb-takeaway bestaat al (single paragraph). Hier de uitgebreide lijst-variant. */
.kb-takeaway ul { list-style: none; margin: 14px 0 0; padding: 0; }
.kb-takeaway li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--text-on-dark-2);
}
.kb-takeaway li:last-child { margin-bottom: 0; }
.kb-takeaway li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 11px;
  background: var(--lime);
  border-radius: 3px;
  transform: rotate(45deg);
}
.kb-takeaway li strong { color: var(--text-on-dark); }
.kb-takeaway h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-on-dark);
  margin: 6px 0 4px;
}

/* ---------- E5. Data-stat-row (2-4 grote cijfers) ---------- */
.kb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4px;
  margin: 40px 0;
  border: 1px solid var(--surface-3);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-3);
}
.kb-stat {
  background: var(--surface-1);
  padding: 28px 24px 24px;
  text-align: left;
}
.kb-stat .kb-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kb-stat .kb-stat-num .u { color: var(--lime-deep); }
.kb-stat .kb-stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-2);
}
.kb-stat .kb-stat-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- E6. Comparison-table (lime header + zebra) ---------- */
.kb-compare-wrap { overflow-x: auto; margin: 8px 0 32px; -webkit-overflow-scrolling: touch; }
.kb-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.96rem;
  min-width: 520px;
  border: 1px solid var(--surface-3);
  border-radius: 16px;
  overflow: hidden;
}
.kb-compare thead th {
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
}
.kb-compare thead th:first-child { color: var(--lime); }
.kb-compare tbody th[scope="row"],
.kb-compare tbody td:first-child {
  font-weight: 600;
  color: var(--text-1);
  text-align: left;
}
.kb-compare tbody th, .kb-compare tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--surface-3);
  vertical-align: top;
  color: var(--text-2);
}
.kb-compare tbody tr:nth-child(even) td,
.kb-compare tbody tr:nth-child(even) th { background: var(--surface-2); }
.kb-compare .kb-yes { color: var(--lime-text); font-weight: 700; }
.kb-compare .kb-no { color: var(--text-3); }
.kb-compare .kb-best { box-shadow: inset 3px 0 0 var(--lime); }

/* ---------- E7. Figure + caption (mono) ---------- */
.kb-figure { margin: 36px 0; }
.kb-figure img,
.kb-figure .kb-figure-frame {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--surface-3);
  background: var(--surface-2);
}
.kb-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--text-3);
  padding-left: 14px;
  border-left: 2px solid var(--border-lime);
}
.kb-figure figcaption b,
.kb-figure figcaption strong { color: var(--text-2); font-weight: 600; }
/* placeholder-diagram frame (geen externe afbeelding nodig) */
.kb-figure-frame {
  aspect-ratio: 16 / 7;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    linear-gradient(var(--surface-3) 1px, transparent 1px) 0 0 / 100% 38px,
    linear-gradient(90deg, var(--surface-3) 1px, transparent 1px) 0 0 / 38px 100%,
    var(--surface-1);
  overflow: hidden;
}

/* ---------- E8. Inline lime-highlight ---------- */
.kb-article mark,
.kb-mark {
  background: linear-gradient(180deg, transparent 58%, var(--lime) 58%);
  color: inherit;
  padding: 0 0.06em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- E9. Stappen-lijst (genummerde stappen, grote cijfers) ---------- */
.kb-steps { list-style: none; counter-reset: kbstep; margin: 28px 0 32px; padding: 0; }
.kb-steps > li {
  counter-increment: kbstep;
  position: relative;
  padding: 0 0 24px 64px;
  margin: 0;
}
.kb-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px; top: 46px; bottom: 6px;
  width: 2px;
  background: var(--surface-3);
}
.kb-steps > li::before {
  content: counter(kbstep, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: 12px;
}
.kb-steps > li h3,
.kb-steps > li .kb-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--text-1);
  margin: 8px 0 6px;
  scroll-margin-top: 110px;
}
.kb-steps > li p { margin: 0 0 8px; }
.kb-steps > li p:last-child { margin-bottom: 0; }

/* ---------- E10. In-content CTA-bridge (zachte variant) ---------- */
.kb-cta-bridge {
  position: relative;
  margin: 44px 0;
  padding: 28px 30px 28px 32px;
  background: var(--lime-haze);
  border: 1px solid var(--border-lime);
  border-radius: 18px;
  overflow: hidden;
}
.kb-cta-bridge::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--lime);
}
.kb-cta-bridge .kb-callout-label { color: var(--lime-text); display:block; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; }
.kb-cta-bridge p { font-size: 1.05rem; line-height: 1.55; color: var(--text-1); margin: 0 0 16px; }
.kb-cta-bridge p:last-child { margin-bottom: 0; }
.kb-cta-bridge .kb-cta-bridge-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- E-print & reduced-motion (additief) ---------- */
@media print {
  .kb-cta-bridge { display: none !important; }
  .kb-pullquote { width: auto; border-color: #000; }
  .kb-takeaway, .kb-stats, .kb-stat { background: #fff !important; color: #000 !important; }
  .kb-takeaway li, .kb-takeaway p { color: #000 !important; }
  .kb-compare thead th { background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  p.kb-dropcap::first-letter { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .kb-cta-bridge, .kb-figure { transition: none; }
}

/* Mobile guard voor de nieuwe componenten */
@media (max-width: 640px) {
  .kb-pullquote { width: 100%; margin-left: 0; padding-left: 20px; }
  .kb-stat { padding: 22px 18px 18px; }
  .kb-steps > li { padding-left: 56px; }
  .kb-steps > li::before { width: 40px; height: 40px; }
  .kb-steps > li:not(:last-child)::after { left: 19px; }
}

/* ============================================================
   MOBIELE FIX (schoon, 2026-06-11) — leescontent altijd zichtbaar
   + harde overflow-eliminatie op het uithangbord.
   ============================================================ */
/* 1. Leescontent mag nooit van scroll/JS afhangen (reveal-bug bij lange artikelen) */
.kb-layout, .kb-layout.reveal, .kb-endcta.reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }

@media (max-width: 860px) {
  /* 2. Niets mag breder zijn dan het scherm */
  html, body { overflow-x: hidden; }
  main, section, .container, .nav-inner, .kb-layout, .kb-article,
  .kb-lede, .kb-meta, .kb-crumb { max-width: 100%; box-sizing: border-box; min-width: 0; }
  /* 3. Eyebrow is inline-block met grote letter-spacing in brand.css → block + breken */
  .eyebrow { display: block !important; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; letter-spacing: 0.08em !important; }
  /* 4. Breedte-forcerende componenten binnen het scherm houden */
  .kb-pullquote { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; padding-left: 18px !important; }
  .kb-stats, .kb-takeaway, .kb-cta-bridge, .kb-callout, .kb-figure, .kb-steps, .kb-endcta { max-width: 100% !important; box-sizing: border-box; }
  .kb-compare-wrap, .kb-pricetable-wrap { overflow-x: auto; max-width: 100%; }
}

/* Ghost-CTA op donkere kb-endcta leesbaar maken (was donkere tekst op ink) */
.kb-endcta .btn-ghost {
  color: #F5F5F2 !important;
  border-color: rgba(245,245,242,0.45) !important;
}
.kb-endcta .btn-ghost:hover {
  color: var(--lime) !important;
  border-color: var(--lime) !important;
  background: rgba(245,245,242,0.06) !important;
}
