/* ============================================================
   Kennisbank / blog — overzicht + artikel
   Huisstijl-vars uit style.css (--green, --amber, --ink, --muted,
   --mist-soft, --green-soft, --font-display). Zelfstandig: geen
   afhankelijkheid van extras.css voor de kaart-/auteur-stijlen.
   ============================================================ */

/* De gedeelde .page-hero schuift onder de (sticky, transparante) header en
   krijgt witte tekst via .on-hero — net als onderhoud.html. We laten dat gedrag
   intact en tunen alleen de maatvoering. */
.blog-hero.page-hero h1 { max-width: 18ch; }

/* ---------- Overzicht: grid van artikelkaarten ---------- */
.blog-list-section { padding-top: clamp(48px, 6vw, 80px); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--green-soft);
  overflow: hidden;
}
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }

/* Fallback wanneer er (nog) geen hero-afbeelding is: regendruppel-glyph op tint */
.blog-card-glyph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 90% at 70% -10%, rgba(30,92,74,.16), transparent 60%),
    linear-gradient(150deg, var(--green-soft), var(--mist-soft));
  position: relative;
}
.blog-card-glyph::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 38px; height: 48px;
  background: var(--green);
  opacity: .28;
  clip-path: path("M19 0C19 0 38 23 38 36C38 44.8 29.5 48 19 48C8.5 48 0 44.8 0 36C0 23 19 0 19 0Z");
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
  flex: 1;
}
.blog-card-meta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}
.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
}
.blog-card-sum { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.blog-card-auteur {
  margin-top: auto;
  padding-top: 6px;
  font-size: .86rem;
  color: var(--muted);
  font-weight: 500;
}

.blog-empty { color: var(--muted); font-size: 1.1rem; }

/* ---------- Artikel ---------- */
.blog-article { padding-top: clamp(40px, 6vw, 72px); }

.blog-article-head { margin-bottom: 8px; }
.blog-crumbs {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.blog-crumbs a { color: var(--green); text-decoration: none; font-weight: 600; }
.blog-crumbs a:hover { text-decoration: underline; }
.blog-crumbs span[aria-hidden] { color: var(--mist); }

.blog-article-meta {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.blog-article-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  max-width: 20ch;
}
.blog-article-sum { margin-top: 18px; max-width: 60ch; }

.blog-article-hero {
  margin: clamp(28px, 4vw, 44px) 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.blog-article-hero img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16 / 9; }

/* ---------- Auteur-kaart ---------- */
.blog-auteur { margin: clamp(24px, 3vw, 34px) 0; }
.blog-auteur-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 14px 14px;
  background: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.blog-auteur-card:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.blog-auteur-avatar {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green);
  display: grid; place-items: center;
}
.blog-auteur-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blog-auteur-initialen {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1;
}
.blog-auteur-text { display: flex; flex-direction: column; gap: 1px; }
.blog-auteur-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.blog-auteur-naam { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.blog-auteur-functie { font-size: .9rem; color: var(--green); }

/* ---------- Leesbare body-typografie ---------- */
.blog-body {
  font-size: 1.12rem;
  line-height: 1.78;
  color: var(--text);
  max-width: 68ch;
}
.blog-body > * + * { margin-top: 1.1em; }
.blog-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
  margin-top: 1.8em;
}
.blog-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: 1.5em;
}
.blog-body h2 + *, .blog-body h3 + * { margin-top: .5em; }
.blog-body p { color: var(--text); }
.blog-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.blog-body a:hover { color: var(--green-deep); }
.blog-body strong { color: var(--ink); font-weight: 700; }
.blog-body ul, .blog-body ol { padding-left: 1.4em; }
.blog-body li { margin-top: .4em; }
.blog-body li::marker { color: var(--green); }
.blog-body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  font-style: italic;
  font-size: 1.15rem;
}
.blog-body img { border-radius: var(--radius-sm); }

/* ---------- Gerelateerde content ---------- */
.blog-rel-section { padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); }
.blog-rel-section--tint { background: var(--mist-soft); }
.blog-rel-section h2 { margin-bottom: 28px; }

.blog-rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.blog-rel-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-lift);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.blog-rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-rel-eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}
.blog-rel-card h3 { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.25; color: var(--ink); }
.blog-rel-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.blog-rel-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.blog-rel-tags span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- TL;DR / Direct antwoord ---------- */
.blog-tldr {
  margin-bottom: 1.6em;
  padding: 20px 24px;
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
}
.blog-tldr-label {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.blog-tldr p { margin: 0; color: var(--ink); font-size: 1.05rem; line-height: 1.6; }

/* ---------- FAQ ---------- */
.blog-faq-section { background: var(--mist-soft); }
.blog-faq-section h2 { margin-bottom: 28px; }
.blog-faq { display: flex; flex-direction: column; gap: 14px; }
.blog-faq-item {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
}
.blog-faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 8px;
}
.blog-faq-item p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 0; }

/* ---------- Responsief ---------- */
@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-rel-grid { grid-template-columns: 1fr; }
  .blog-auteur-card { width: 100%; border-radius: var(--radius-sm); }
  .blog-body { font-size: 1.06rem; }
}
