/* ===== EIKBERG — KENNISBANK =====
   Article pages, the /blog/ overview, and the "recente artikelen"
   block on index.html. All markup using these
   classes is generated by tools/build_kennisbank.py — see
   specs/kennisbank.md. Load after base.css.

   Design rule: restraint. One column for reading, no boxed labels or
   decorative frames — type size and whitespace carry the hierarchy, gold is
   only an accent (kickers, the active tab, the reading-progress line).
   Brand tokens, serif and square corners come from base.css. */

/* ===== SHARED ===== */
.kb-kicker {
  font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 16px; display: block;
}
.kb-kicker a { color: inherit; text-decoration: none; }
.kb-kicker a:hover { color: var(--navy); }
.kb-sep { color: var(--border); margin: 0 4px; }
.kb-hero .kb-sep { color: var(--hairline-gold); }

/* ===== SECTION HEAD (block, "lees ook") ===== */
.sec-kennisbank { background: var(--off); padding: 120px 6%; }
.kb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.kb-head h2 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; color: var(--navy); line-height: 1.1; }
.kb-all {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex-shrink: 0;
  font-size: 15px; font-weight: 500; color: var(--navy); text-decoration: none;
}
.kb-all svg { width: 16px; height: 16px; transition: transform .3s ease; }
.kb-all:hover { color: var(--gold-deep); }
.kb-all:hover svg { transform: translateX(4px); }

/* ===== CARDS =====
   White cells on a 2px hairline grid. Icon and labels on top, date + reading
   time and an arrow at the bottom; the whole card is the link. */
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--border); }
.kb-card {
  display: flex; flex-direction: column; position: relative;
  background: #fff; padding: 32px 30px 24px;
  text-decoration: none; color: inherit;
  transition: box-shadow .25s, transform .25s;
}
.kb-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease; }
.kb-card:hover { box-shadow: 0 18px 36px -24px rgba(13,27,46,.45); transform: translateY(-2px); z-index: 1; }
.kb-card:hover::after { transform: scaleX(1); }
.kb-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.kb-card-icon { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--gold); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; }
.kb-card-icon svg { width: 20px; height: 20px; }
.kb-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.kb-tag { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-deep); background: #F7F1E2; padding: 4px 7px; line-height: 1.3; }
.kb-tag-sector { color: var(--navy); background: var(--off); }
.kb-card-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--border);
}
.kb-card-meta svg { width: 16px; height: 16px; color: var(--navy); flex-shrink: 0; transition: transform .3s ease; }
.kb-card:hover .kb-card-meta svg { transform: translateX(4px); color: var(--gold-deep); }
.kb-card h2, .kb-card h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3;
  color: var(--navy); margin-bottom: 12px; overflow-wrap: break-word; hyphens: auto; transition: color .2s;
}
.kb-card p { font-size: 13.5px; line-height: 1.75; color: var(--muted); flex: 1; margin-bottom: 20px; }
.kb-card:hover h2, .kb-card:hover h3 { color: var(--gold-deep); }
/* Fills the empty cells of a short row (fewer than 3 articles). */
.kb-card-more {
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 32px; font-size: 14px; font-weight: 500; color: var(--navy); text-decoration: none;
}
.kb-card-more:hover { color: var(--gold-deep); }
.kb-card-more svg { width: 16px; height: 16px; margin-left: 8px; transition: transform .3s ease; }
.kb-card-more:hover svg { transform: translateX(4px); }

/* ===== HERO ===== */
/* Navy like every page header (.page-hero in base.css). */
.kb-hero { background: var(--navy); padding: 152px 6% 72px; }
.kb-col { max-width: var(--wrap); margin: 0 auto; }
/* Reading width, left-aligned on the site grid (see --wrap in base.css). */
.kb-col > * { max-width: 720px; }
.kb-hero h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.01em; color: #fff; margin-bottom: 24px;
}
.kb-hero-sub { font-size: 21px; line-height: 1.5; font-weight: 300; color: var(--on-navy-soft); }
.kb-meta {
  margin-top: 32px; font-size: 14px; color: var(--on-navy-mute);
}


/* Reading progress: a gold hairline right under the fixed nav. */
.kb-progress { position: fixed; top: 72px; left: 0; right: 0; height: 2px; z-index: 99; pointer-events: none; }
.kb-progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }

/* ===== OVERVIEW ===== */
.sec-kb-overview { background: var(--off); padding: 64px 6% 120px; scroll-margin-top: 72px; /* fixed nav */ }
/* All articles by date, filterable (FILTER_JS in the build). Cards sit on
   the off-white page with 2px gaps, so a filtered, half-empty row has no
   grey holes. */
.kb-grid-all { background: none; }
.kb-grid-all .kb-card[hidden] { display: none; }
/* One row per group; labels share a fixed-width column so the buttons line up.
   The article count sits right, level with the last row. */
.kb-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px; align-items: end; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hairline-gold); }
.kb-filters[hidden] { display: none; }
.kb-filter { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kb-filter-label { width: 112px; flex-shrink: 0; font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.kb-filter button {
  font: inherit; font-size: 13.5px; color: var(--on-navy); background: transparent; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); padding: 8px 14px; min-height: 40px; transition: border-color .2s, background .2s, color .2s;
}
.kb-filter button:hover { border-color: var(--gold); }
.kb-filter button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.kb-count { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-size: 13px; color: var(--on-navy-soft); padding-bottom: 11px; }
.kb-empty { background: #fff; padding: 40px 32px; font-size: 15px; color: var(--muted); }
.kb-empty button { font: inherit; color: var(--gold-deep); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* ===== ARTICLE ===== */
.sec-kb-article { background: #fff; padding: 64px 6% 120px; }


.kb-toc { margin-bottom: 56px; padding-left: 24px; border-left: 2px solid var(--gold); }
.kb-toc h2 { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.kb-toc ol { list-style: none; }
.kb-toc li + li { margin-top: 8px; }
.kb-toc a { font-size: 15px; line-height: 1.5; color: var(--navy); text-decoration: none; }
.kb-toc a:hover { color: var(--gold-deep); }

.kb-body { font-size: 18px; line-height: 1.7; color: var(--text); }
.kb-body > * + * { margin-top: 24px; }
.kb-body > p:first-child { font-size: 22px; line-height: 1.55; color: var(--navy); }
.kb-body h2 {
  font-family: var(--serif); font-size: clamp(25px, 2.8vw, 30px); font-weight: 700;
  line-height: 1.25; color: var(--navy); margin-top: 64px; scroll-margin-top: 104px;
}
.kb-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--navy); margin-top: 40px; }
.kb-body h2 + *, .kb-body h3 + * { margin-top: 16px; }
.kb-body ul { list-style: none; }
.kb-body ul > li { position: relative; padding-left: 24px; }
.kb-body ul > li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; background: var(--gold); }
.kb-body ol { padding-left: 24px; }
.kb-body ol > li { padding-left: 4px; }
.kb-body ol > li::marker { color: var(--gold-deep); font-weight: 500; }
.kb-body li + li { margin-top: 10px; }
.kb-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.kb-body a:hover { color: var(--gold-deep); }
.kb-body strong { font-weight: 600; color: var(--navy); }
.kb-body blockquote {
  margin: 56px 0; padding-left: 28px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--navy);
}
.kb-body blockquote p { margin: 0; }
.kb-body code { font-size: .9em; background: var(--off); padding: 2px 5px; }
.kb-body hr { border: none; height: 1px; background: var(--border); margin: 56px 0; }
.kb-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; margin: 40px 0; }
.kb-body th, .kb-body td { padding: 14px 24px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.kb-body thead th { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--navy); }
.kb-body td:first-child { color: var(--navy); font-weight: 500; }

/* CTA in the brand's own vocabulary: eyebrow with gold rule (base.css) and a
   price card that mirrors .hero-card on /privacyverklaring. */
/* Full-width navy band, like the closing CTA (.sec-final) on other pages. */
.kb-cta { background: var(--navy); padding: var(--s-7) 6%; }
.kb-cta-inner { max-width: var(--container); margin: 0 auto; }
.kb-cta-inner.has-card { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: center; }
.kb-cta .eyebrow { margin-bottom: 20px; }
.kb-cta h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.2; color: #fff; margin-bottom: 16px; max-width: 560px; }
.kb-cta p { font-size: 16px; line-height: 1.8; font-weight: 300; color: var(--on-navy-soft); margin-bottom: 32px; max-width: 520px; }
.kb-cta-card { border: 1px solid var(--hairline-gold); background: var(--on-navy-field); padding: 32px 30px 24px; }
.kb-cta-label { font-size: 10px; font-weight: 500; color: var(--gold); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px; }
.kb-cta-amount { font-family: var(--serif); font-size: 48px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 4px; }
.kb-cta-note { font-size: 12px; color: var(--on-navy-mute); margin-bottom: 16px; }
.kb-cta-card ul { list-style: none; }
.kb-cta-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--on-navy-soft); padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.kb-cta-chk { width: 15px; height: 15px; border: 1px solid var(--gold); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.kb-cta-chk::after { content: '✓'; font-size: 8px; color: var(--gold); }

.kb-disclaimer { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.6; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .kb-card:hover { transform: none; }
  .kb-card::after { transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Filler spans were sized for 3 columns. In 2 columns: one cell next to a
     single card; with two cards the row is already full. */
  .kb-card-more { grid-column: auto !important; }
  .kb-card:nth-child(2) + .kb-card-more { display: none; }
}
@media (max-width: 860px) {
  .sec-kennisbank { padding: 80px 6%; }
  .kb-hero { padding: 132px 6% 56px; }
  .sec-kb-overview { padding: 40px 6% 80px; }
  .sec-kb-article { padding-bottom: 80px; }
  .kb-cta { padding: 72px 6%; }
}
@media (max-width: 640px) {
  .kb-grid { grid-template-columns: 1fr; }
  .kb-card:nth-child(2) + .kb-card-more { display: flex; }
  .kb-card { padding: 32px 26px 28px; }
  .kb-card-more { padding: 22px; }
  .kb-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 32px; }
  .kb-filters { grid-template-columns: 1fr; }
  .kb-filter-label { width: 100%; }
  .kb-count { grid-column: 1; grid-row: auto; padding-bottom: 0; }
  .kb-hero h1 { font-size: 34px; hyphens: auto; overflow-wrap: break-word; }
  .kb-hero-sub { font-size: 19px; }
  .kb-body { font-size: 17px; }
  .kb-body > p:first-child { font-size: 20px; }
  .kb-body blockquote { font-size: 22px; padding-left: 20px; }
  .kb-cta-inner.has-card { grid-template-columns: 1fr; gap: 36px; }
}
