/* ==========================================================================
   Kennisbank-artikel (layouts/artikel.njk)
   Kop, gegenereerd beeld, artikeltekst (.prose), sticky zijbalk,
   pitchdeck-CTA, auteursblok en leestips.
   ========================================================================== */

/* ---- 1. Kop ------------------------------------------------------------------ */
.art-kop { max-width: 1040px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-top: 72px; padding-bottom: 56px; }
.art-kop__crumbs { justify-content: center; }
.art-cat { font-size: 14px; font-weight: 600; line-height: 1.2; padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-light); color: var(--c-blue-hover); text-decoration: none; transition: background-color .45s var(--ease), color .45s var(--ease); }
.art-cat:hover { background: var(--c-blue); color: #fff; }
.art-titel { font-size: clamp(42px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -.05em; color: var(--c-black); overflow-wrap: break-word; }
.art-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 15px; }
.art-meta__rest { display: flex; flex-wrap: wrap; justify-content: center; gap: inherit; }

/* ---- 2. Gegenereerd beeld ------------------------------------------------------ */
.art-beeld-sec { padding-bottom: 96px; }
.art-beeld {
  /* beschikbare breedte binnen .wrap, voor het schalen van lange trefwoorden */
  --bw: min(100vw - 2 * var(--gutter), var(--container) - 2 * var(--gutter));
  position: relative; overflow: hidden; isolation: isolate;
  height: 520px; border-radius: 32px; background: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
}
.art-beeld--wd { background: var(--c-navy); }
.art-beeld__woord {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  max-width: 100%; white-space: nowrap; overflow-wrap: anywhere;
  /* max 230 px (design), maar lange woorden passen altijd op één regel.
     --k = gemiddelde breedte per letter (em) incl. tussenruimte */
  --k: .58;
  font-size: min(clamp(90px, 16vw, 230px), calc(var(--bw) * .84 / (var(--n, 6) * var(--k))));
  gap: .04em;
  font-weight: 800; line-height: 1.2; letter-spacing: -.06em; color: #fff;
}
.art-beeld__woord--acr { --k: .7; gap: min(clamp(8px, 2vw, 28px), .12em); }
.art-beeld__woord .b { color: var(--c-navy); }
.art-beeld--wd .art-beeld__woord .b { color: var(--c-blue); }
.art-beeld__woord .sp { width: .25em; }
.art-beeld__m { position: absolute; pointer-events: none; }
/* Online marketing: ring rechtsboven */
.art-beeld__ring { right: -100px; top: -100px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); }
/* Webdesign: browservenster rechtsonder */
.art-beeld__venster { right: -48px; bottom: -72px; width: min(46%, 560px); aspect-ratio: 4 / 3; border: 2px solid rgba(255, 255, 255, .22); border-radius: 26px; }
.art-beeld__venster span { position: absolute; }
.art-beeld__venster .bar { left: 0; right: 0; top: 54px; height: 2px; background: rgba(255, 255, 255, .22); }
.art-beeld__venster .dt { top: 21px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.art-beeld__venster .dt:nth-child(2) { left: 24px; }
.art-beeld__venster .dt:nth-child(3) { left: 46px; }
.art-beeld__venster .dt:nth-child(4) { left: 68px; }
.art-beeld__venster .blk { left: 28px; top: 84px; width: 42%; height: 26%; border-radius: 14px; background: rgba(61, 115, 220, .26); }
.art-beeld__venster .lijn { left: 28px; top: 66%; width: 56%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.art-beeld__venster .lijn--kort { top: 76%; width: 34%; }

/* ---- 3. Tekst + zijbalk --------------------------------------------------------- */
.art-body { display: grid; grid-template-columns: minmax(0, 760px) minmax(300px, 1fr); column-gap: 64px; align-items: start; padding-bottom: 120px; }
.art-tekst { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* Zijbalk: blijft staan tijdens het lezen, alleen als het scherm hoog genoeg is (geen interne scroll) */
.art-zij {
  position: static; top: 110px; min-width: 0;
  display: flex; flex-direction: column; gap: 24px;

  margin: -6px; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--c-input) transparent;
}
.art-zij__kop { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 8px; }

/* Inhoudsopgave: streepje groeit bij hover */
.art-toc { display: flex; flex-direction: column; gap: 4px; }
.toc { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--c-muted); text-decoration: none; font-size: 15px; line-height: 1.45; transition: color .4s var(--ease), transform .5s var(--ease); }
.toc::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: calc(.725em - 1px); background: currentColor; transition: width .5s var(--ease); }
.toc:hover { color: var(--c-blue); transform: translateX(4px); }
.toc:hover::before { width: 28px; }

/* Inhoudsopgave op mobiel/tablet: inklapbaar blok boven de tekst */
.art-toc-m { display: none; border: 1px solid var(--c-line); border-radius: 20px; background: #fff; interpolate-size: allow-keywords; }
.art-toc-m summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.art-toc-m summary::-webkit-details-marker { display: none; }
.art-toc-m__pijl { flex: none; transition: transform .5s var(--ease); }
.art-toc-m[open] .art-toc-m__pijl { transform: rotate(180deg); }
.art-toc-m__lijst { display: flex; flex-direction: column; padding: 0 22px 14px; }
.art-toc-m::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s var(--ease) allow-discrete; }
.art-toc-m[open]::details-content { block-size: auto; }

/* Mini-downloadformulier (blauw vlak) */
.art-dl { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 26px; background: var(--c-blue-deep); color: #fff; }
.art-dl__kop { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.art-dl__sub { font-size: 15px; line-height: 1.5; color: #fff; }
.art-dl__form { display: flex; flex-direction: column; gap: 16px; }
.art-dl .veld { color: #fff; }
.art-dl__in, .art-dl__in:hover { border-color: #fff; }
.art-dl__in:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.art-dl .in-f[aria-invalid="true"] { border-color: #f2a2a3; }
.art-dl .veld-fout { color: #fff; font-weight: 600; }
.art-dl__klein { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.art-dl__klein a { color: #fff; }
.art-dl :focus-visible { outline-color: #fff; }

/* Populaire artikelen */
.art-pop { display: flex; flex-direction: column; }
.pop { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; font-size: 16px; line-height: 1.4; transition: color .4s var(--ease); }
.pop:hover { color: var(--c-blue); }
.pop__n { flex: none; font-weight: 800; color: var(--c-blue-tekst); transition: transform .5s var(--ease); }
.pop:hover .pop__n { transform: scale(1.15) rotate(-6deg); }
.pop__t { font-weight: 600; }

/* ---- Artikeltekst ------------------------------------------------------------------ */
.prose { display: flex; flex-direction: column; gap: 24px; color: var(--c-ink); }
.prose > p, .prose li { font-size: 19px; line-height: 1.75; }
.prose > .prose__lead { font-size: 23px; line-height: 1.6; color: var(--c-black); }
.prose h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; color: var(--c-black); margin-top: 24px; scroll-margin-top: 120px; overflow-wrap: break-word; }
.prose h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; color: var(--c-black); margin-top: 8px; scroll-margin-top: 120px; }
.prose h2 + h3 { margin-top: 0; }
.prose strong { font-weight: 700; color: var(--c-black); }
.prose a { color: var(--c-blue-hover); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; transition: color .4s var(--ease), text-decoration-color .4s var(--ease); }
.prose a:hover { color: var(--c-ink); text-decoration-color: var(--c-blue); }

/* Lijsten: blauw streepje (ul) of blauw nummer (ol) */
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 10px; }
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 30px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: calc(.875em - 1px); width: 14px; height: 2px; border-radius: 2px; background: var(--c-blue); }
.prose ol { padding-left: 1.6em; }
.prose ol > li { padding-left: 6px; }
.prose ol > li::marker { color: var(--c-blue); font-weight: 800; }
.prose li > ul, .prose li > ol { margin-top: 10px; }

.prose blockquote { margin: 16px 0; padding: 8px 0 8px 32px; border-left: 4px solid var(--c-blue); font-size: 30px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; color: var(--c-black); }
.prose blockquote p + p { margin-top: 12px; }

.prose figure { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 8px 0; padding: clamp(16px, 3vw, 32px); border-radius: 26px; background: var(--c-light); }
.prose figure img { width: auto; max-width: 100%; height: auto; max-height: 640px; border-radius: 14px; box-shadow: 0 18px 40px -26px rgba(28, 35, 43, .4); }
.prose figcaption { max-width: 560px; font-size: 14px; line-height: 1.5; color: var(--c-muted); text-align: center; }
.prose hr { width: 100%; height: 1px; margin: 16px 0; border: 0; background: var(--c-line); }

/* LENS-blok: 4 lichte kaarten met grote blauwe letter; hover = blauw + 8 px naar rechts */
.lens-lijst { display: flex; flex-direction: column; gap: 12px; }
.lens-lijst > div { display: flex; gap: 24px; align-items: center; padding: 24px 28px; border-radius: 22px; background: var(--c-light); transition: background-color .6s var(--ease), color .6s var(--ease), transform .6s var(--ease); }
.lens-lijst > div:hover { background: var(--c-blue); color: #fff; transform: translateX(8px); }
.lens-lijst b { flex: none; width: 48px; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--c-blue); transition: color .6s var(--ease), transform .6s var(--ease); }
.lens-lijst > div:hover b { color: #fff; transform: scale(1.1); }
.lens-lijst span { display: flex; flex-direction: column; gap: 2px; font-size: 17px; line-height: 1.5; color: var(--c-muted); transition: color .6s var(--ease); }
.lens-lijst strong { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--c-ink); transition: color .6s var(--ease); }
.lens-lijst > div:hover span { color: rgba(255, 255, 255, .88); }
.lens-lijst > div:hover strong { color: #fff; }

/* ---- 4. Pitchdeck-CTA + auteur ------------------------------------------------------ */
.art-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: 40px; border-radius: 28px; background: var(--c-navy); color: #fff; }
.art-cta__txt { display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.art-cta h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.art-cta p { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
/* Op navy is een navy vulling onzichtbaar: daarom blauw bij hover */
.art-cta__knop::before { background: var(--c-blue); }
.art-cta__knop:hover { border-color: var(--c-blue); }
.art-cta :focus-visible { outline-color: var(--c-blue-light); }

.art-auteur { margin-top: 16px; display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: 24px; border: 1px solid var(--c-line); }
.art-auteur__ic { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c-blue); color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.04em; transition: transform .6s var(--ease); }
.art-auteur:hover .art-auteur__ic { transform: rotate(-8deg) scale(1.05); }
.art-auteur__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.art-auteur__naam { font-size: 17px; line-height: 1.4; font-weight: 700; }
.art-auteur__txt .muted { font-size: 15px; line-height: 1.5; }
.art-auteur .nw { white-space: nowrap; }

/* ---- 5. Leestips -------------------------------------------------------------------- */
.art-tips { background: var(--c-light); padding: 120px 0; }
.art-tips__in { display: flex; flex-direction: column; gap: 48px; }
.art-tips__kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.art-tips__kop h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -.04em; color: var(--c-black); }
.art-tips__kop .lk { font-size: 17px; color: var(--c-ink); }
.art-tips__grid { gap: 28px; }

/* ---- Responsive ----------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .art-body { grid-template-columns: minmax(0, 1fr); row-gap: 56px; max-width: calc(760px + 2 * var(--gutter)); }
  .art-zij { position: static; max-height: none; overflow: visible; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 40px; align-items: start; }
  .art-toc { display: none; }
  .art-toc-m { display: block; }
  .art-beeld { height: 400px; }
  .art-beeld-sec { padding-bottom: 64px; }
}
@media (max-width: 760px) {
  .art-kop { gap: 20px; padding-top: 40px; padding-bottom: 36px; }
  .art-titel { font-size: clamp(34px, 9.6vw, 44px); letter-spacing: -.045em; }
  .art-meta { flex-direction: column; align-items: center; gap: 2px; font-size: 14px; }
  .art-meta__sep { display: none; }
  .art-meta__rest { gap: 10px; }
  .art-beeld { height: 260px; border-radius: 24px; }
  .art-beeld__ring { width: 240px; height: 240px; right: -70px; top: -70px; }
  .art-beeld__venster { right: -36px; bottom: -48px; width: 58%; border-radius: 18px; }
  .art-beeld__venster .bar { top: 36px; }
  .art-beeld__venster .dt { top: 13px; width: 9px; height: 9px; }
  .art-beeld__venster .dt:nth-child(2) { left: 16px; }
  .art-beeld__venster .dt:nth-child(3) { left: 31px; }
  .art-beeld__venster .dt:nth-child(4) { left: 46px; }
  .art-beeld__venster .blk { left: 18px; top: 54px; border-radius: 10px; }
  .art-beeld-sec { padding-bottom: 40px; }
  .art-body { row-gap: 44px; padding-bottom: 72px; }
  .art-tekst { gap: 20px; }
  .prose { gap: 20px; }
  .prose > p, .prose li { font-size: 17px; line-height: 1.7; }
  .prose > .prose__lead { font-size: 20px; line-height: 1.55; }
  .prose h2 { font-size: 27px; margin-top: 16px; scroll-margin-top: 96px; }
  .prose h3 { font-size: 21px; scroll-margin-top: 96px; }
  .prose blockquote { margin: 8px 0; padding-left: 20px; font-size: 23px; }
  .prose figure { border-radius: 20px; }
  .prose figure img { max-height: 520px; border-radius: 10px; }
  .lens-lijst > div { gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; }
  .lens-lijst b { width: 32px; font-size: 40px; }
  .lens-lijst span { font-size: 16px; }
  .lens-lijst strong { font-size: 19px; }
  .art-cta { margin-top: 12px; padding: 28px 24px; border-radius: 24px; }
  .art-cta h2 { font-size: 23px; }
  .art-cta__knop { width: 100%; }
  .art-auteur { margin-top: 4px; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 20px; }
  .art-auteur__ic { width: 52px; height: 52px; font-size: 18px; }
  .art-dl { padding: 24px 22px; border-radius: 22px; }
  .art-tips { padding: 72px 0; }
  .art-tips__in { gap: 32px; }
}

/* ---- Veelgestelde vragen ------------------------------------------------- */
.art-faq { display: flex; flex-direction: column; gap: 12px; margin-top: 56px; }
.art-faq__kop { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; color: var(--c-black); margin-bottom: 8px; }
.art-faq__item { border-radius: 20px; background: var(--c-light); transition: background-color .5s var(--ease); }
.art-faq__item[open] { background: #edf2fc; }
.art-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--c-black); }
.art-faq__item summary::-webkit-details-marker { display: none; }
.art-faq__plus { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; transition: transform .5s var(--ease), background-color .5s var(--ease); }
.art-faq__plus::before, .art-faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--c-blue); transition: transform .5s var(--ease); }
.art-faq__plus::after { transform: rotate(90deg); }
.art-faq__item[open] .art-faq__plus { transform: rotate(180deg); background: var(--c-blue); }
.art-faq__item[open] .art-faq__plus::before, .art-faq__item[open] .art-faq__plus::after { background: #fff; }
.art-faq__item[open] .art-faq__plus::after { transform: rotate(0deg); }
.art-faq__item p { padding: 0 24px 22px; font-size: 17px; line-height: 1.7; color: var(--c-ink); animation: fd .6s var(--ease) both; }
.art-faq__item summary:hover { color: var(--c-blue-tekst); }
@media (max-width: 760px) {
  .art-faq { margin-top: 40px; }
  .art-faq__kop { font-size: 28px; }
  .art-faq__item summary { padding: 18px 18px; font-size: 16px; }
  .art-faq__item p { padding: 0 18px 18px; font-size: 16px; }
}

@media (min-width: 1024px) and (min-height: 860px) { .art-zij { position: sticky; } }
