/* polish-artikel.css — opmaak van artikelpagina's (/deep-dives/ en /news/). Geladen na artikel.css, vóór polish.css.
   Alleen verfijning; kleuren en maten uit de variabelen. */

/* ---------- Leesvoortgang (dun streepje bovenaan) ---------- */
.hb-leesbalk { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.hb-leesbalk span { display: block; height: 100%; background: var(--hb-groen, #67BF61); transform: scaleX(0); transform-origin: 0 50%; }
@media print { .hb-leesbalk { display: none; } }

/* ---------- Hero: auteur en datum in een nette meta-rij ---------- */
.hb-hero-meta { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); max-width: 100%; box-sizing: border-box; }
.hb-hero-avatar { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.85); box-sizing: border-box; }
.hb-hero-metatext { flex: 1 1 auto; gap: 2px; color: rgba(255,255,255,.85); min-width: 0; }
.hb-hero-author { font-weight: 700; font-size: 15px; }
.hb-hero-author a { color: #fff; text-decoration: none; }
.hb-hero-author a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-hero-metadate { white-space: normal; font-size: 13px; }
@media (max-width: 781px) { .hb-hero-meta { border-radius: 18px; padding-right: 14px; } }

/* ---------- Leesbare kolom en typografie ---------- */
.hb-ins { --hb-ins-max: 720px; }
.hb-ins-col p { font-size: 17.5px; line-height: 1.8; color: #3b3d3b; }
.hb-ins .hb-toc + p { margin-top: 36px; font-size: 18.5px; line-height: 1.7; padding-left: 18px; border-left: 3px solid var(--hb-groen, #67BF61); }
.hb-ins .hb-toc + p strong { font-weight: 600; }
.hb-ins-sec { padding-top: 40px !important; }
.hb-ins-col h2.wp-block-heading { margin-top: 56px; padding-top: 4px; letter-spacing: -.01em; }
.hb-ins-col h3.wp-block-heading { margin-top: 32px; }
.hb-ins-col ul:not(.hb-ins-toc-list) li, .hb-ins-col ol li { font-size: 17px; }
.hb-ins-col a:not([class]) { text-decoration-thickness: 1px; text-decoration-color: rgba(62,140,57,.45); transition: text-decoration-color .15s, color .15s; }
.hb-ins-col a:not([class]):hover { text-decoration-color: currentColor; }
.hb-ins-col > .hb-ins-sec-tight, .hb-ins-col .hb-atglance, .hb-ins-col .hb-toc { box-sizing: border-box; }

/* ---------- Kaders: rustig en gelijk (At a glance, tip, pros/cons, FAQ, stappen) ---------- */
.hb-atglance { margin-top: 8px; padding: 26px 30px; border-radius: 16px; box-shadow: 0 1px 2px rgba(31,32,36,.04); border-left: 4px solid var(--hb-groen, #67BF61); }
.hb-atglance-label, .hb-toc-label { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.hb-atglance ul { gap: 10px; }
.hb-atglance li { position: relative; padding-left: 26px; font-size: 16px; }
.hb-ins .hb-atglance ul li::before { content: "" !important; position: absolute; left: 2px; top: .55em; width: 11px; height: 6px; border-left: 2px solid var(--hb-groen-donker, #2F7432); border-bottom: 2px solid var(--hb-groen-donker, #2F7432); transform: rotate(-45deg) translateY(-50%); }
.hb-tip, .hb-proscons-col, .hb-faq-item, .hb-trust-card { border-radius: 14px; }
.hb-tip { margin-top: 36px; padding: 22px 26px; }
.hb-tip-heading { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--hb-groen-donker, #2F7432); }
.hb-tip-text { font-size: 16px; }
.hb-proscons { margin-top: 36px; }
.hb-proscons-heading { margin-bottom: 16px !important; }
.hb-faq-heading { margin-top: 56px; }
.hb-faq-item { padding: 18px 22px; }
.hb-faq-item[open] { border-color: rgba(103,191,97,.6); box-shadow: 0 4px 14px rgba(31,32,36,.05); }
.hb-steps { margin-top: 32px; padding: 24px; background: var(--hb-frost, #F7F8F7); border-radius: 16px; }
.hb-steps-title { font-size: 16px; }
.hb-steps-text { font-size: 15px; }

.hb-ins .hb-toc ul li::before { content: none !important; }
.hb-ins .hb-toc ul li { padding-left: 0; }

/* ---------- Inhoudsopgave ---------- */
.hb-toc { margin-top: 24px; padding: 20px 24px; border-radius: 16px; gap: 8px; }
.hb-toc ul { gap: 2px; }
.hb-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.4; background: none; transition: color .15s, border-color .15s; }
.hb-toc a:hover { background-size: 0; border-left-color: var(--hb-groen, #67BF61); }
.hb-toc a.is-actief { border-left-color: var(--hb-groen, #67BF61); color: var(--hb-zwart, #1F2024); }
@media (min-width: 900px) and (max-width: 1199px) { .hb-toc ul { columns: 2; column-gap: 32px; } }
/* Breed scherm: inhoudsopgave staat links naast de tekst en schuift mee */
@media (min-width: 1200px) {
  .hb-ins-col:has(.hb-toc) { max-width: 1060px; display: grid; grid-template-columns: 250px minmax(0, 720px); column-gap: 60px; justify-content: center; align-content: start; }
  .hb-ins-col:has(.hb-toc) > .wp-block-group__inner-container > * { grid-column: 2; min-width: 0; }
  .hb-ins-col:has(.hb-toc) > .wp-block-group__inner-container > .hb-toc { grid-column: 1; grid-row: 1 / span 200; align-self: start; position: sticky; top: 100px; margin-top: 8px; max-height: calc(100vh - 130px); overflow: auto; background: transparent; padding: 0; border-radius: 0; border-left: 0; }
  .hb-toc ul { columns: 1 !important; display: flex !important; }
  .hb-toc-label { padding-left: 14px; margin-bottom: 6px; }
  .hb-toc a { color: var(--hb-grijs, #454645); font-weight: 500; }
  .hb-toc a:hover, .hb-toc a.is-actief { color: var(--hb-groen-donker, #2F7432); font-weight: 600; }
  }

/* ---------- Afbeeldingen en bijschriften ---------- */
.hb-ins-col img { border-radius: 14px; }
.hb-ins-col figure { margin: 32px 0 0; }
.hb-ins-col figure img { display: block; width: 100%; height: auto; margin: 0; box-shadow: 0 6px 22px rgba(31,32,36,.10); }
.hb-ins-col figcaption { margin: 10px 4px 0; text-align: left; color: var(--hb-grijs-licht, #6B6D6B); font-size: 13.5px; line-height: 1.5; }

/* ---------- Tabellen: scrollbaar op mobiel, rustig ---------- */
.hb-ins .wp-block-table { margin: 32px 0 0; border-radius: 14px; border: 1px solid var(--hb-lijn, #E6E8E6); background: #fff; -webkit-overflow-scrolling: touch; }
.hb-ins .wp-block-table table { border: 0; border-radius: 0; min-width: 520px; }
.hb-ins .wp-block-table thead { border-bottom: 0; }
.hb-ins .wp-block-table th, .hb-ins .wp-block-table td { padding: 12px 16px; vertical-align: top; }
.hb-ins .wp-block-table tbody tr:nth-child(even) td { background: #FBFCFB; }
.hb-ins .wp-block-table td:first-child { font-weight: 600; color: var(--hb-zwart, #1F2024); }
.hb-ins .wp-block-table figcaption { padding: 0 14px 12px; }

/* ---------- Auteurblok ---------- */
.hb-author { margin-top: 64px; padding: 28px 32px; border-radius: 18px; background: var(--hb-frost, #F7F8F7); border: 1px solid var(--hb-lijn, #E6E8E6); gap: 20px; }
.hb-author-person { align-items: center; gap: 22px; }
.hb-author-avatar { width: 84px; height: 84px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(31,32,36,.15); box-sizing: border-box; }
.hb-author-label { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--hb-grijs-licht, #6B6D6B); }
.hb-author-name { font-size: 18px; }
.hb-author-name a { text-decoration: none !important; }
.hb-author-bio { margin-top: 6px !important; }
.hb-ins-col .hb-author-more { align-self: flex-start; margin-top: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.hb-ins-col .hb-author-more::after { content: " \2192"; }
.hb-ins-col .hb-author-more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .hb-author { padding: 22px 20px; }
  .hb-author-person { align-items: flex-start; flex-wrap: nowrap; gap: 14px; }
  .hb-author-avatar { width: 56px; height: 56px; }
  .hb-author-text { flex: 1 1 0; }
}

/* ---------- Nieuwsbriefblok in het artikel ---------- */
.hb-newsletter { margin-top: 48px; padding: 32px; border-radius: 18px; background: var(--hb-mist, #EDF8ED); border: 1px solid rgba(103,191,97,.35); box-sizing: border-box; }
.hb-newsletter-heading { margin: 0 0 6px !important; font-size: 22px !important; font-weight: 800; }
.hb-newsletter-sub { margin: 0 0 16px !important; font-size: 15.5px !important; }
@media (max-width: 640px) { .hb-newsletter { padding: 22px 18px; } }

/* ---------- Slotbanner ---------- */
.hb-cta { padding: 56px 24px; margin-top: 64px; background: linear-gradient(135deg, #43963D 0%, #357F30 100%); }
.hb-cta-inner { max-width: 1000px; }
@media (max-width: 640px) { .hb-cta { padding: 40px 20px; } .hb-cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Gerelateerde artikelen ---------- */
.hb-ins-related-wrap .hb-insightsgrid-breakout { background: var(--hb-frost, #F7F8F7); padding-left: 24px; padding-right: 24px; }
.hb-ins-related-wrap .hb-insightsgrid-wrap { max-width: 1040px; margin-top: 0; padding: 56px 0 64px; }
.hb-insightsgrid-subhead { font-size: 24px; font-weight: 800; margin-bottom: 24px; }
.hb-ins-related-wrap .hb-insightscard { background: #fff; border-radius: 14px; overflow: hidden; }
.hb-ins-related-wrap .hb-insightscard-date { font-size: 13px; color: var(--hb-grijs-licht, #6B6D6B); }
@media (max-width: 640px) { .hb-ins-related-wrap .hb-insightsgrid-wrap { padding: 40px 0 48px; } }

/* ---------- Mobiel ---------- */
@media (max-width: 640px) {
  .hb-ins-sec { padding-left: 20px; padding-right: 20px; }
  .hb-ins-col p { font-size: 17px; line-height: 1.75; }
  .hb-ins .hb-toc + p { font-size: 18.5px; padding-left: 14px; }
  .hb-atglance { padding: 22px 20px; }
  .hb-steps { padding: 18px; }
}

/* ---------- Auteurblok: tekstmaten (wint van .hb-ins-col p) ---------- */
.hb-author-person { align-items: flex-start; }
.hb-ins .hb-author .hb-author-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.hb-ins .hb-author .hb-author-name a { color: var(--hb-zwart, #1F2024); }
.hb-ins .hb-author .hb-author-name a:hover { color: var(--hb-groen-donker, #2F7432); }
.hb-ins .hb-author .hb-author-role { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--hb-groen-donker, #2F7432); }
.hb-ins .hb-author .hb-author-bio { font-size: 15px; line-height: 1.65; color: var(--hb-grijs, #454645); }
.hb-ins-sec { padding-bottom: 8px; }
.hb-ins-sec.hb-ins-related-wrap { padding-top: 0 !important; padding-bottom: 0; }
@media (max-width: 640px) {
  .hb-ins .hb-atglance li { font-size: 15.5px; line-height: 1.6; padding-left: 24px; }
  .hb-ins-related-wrap .hb-insightscard-img img { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; height: auto; }
}
.hb-ins .wp-block-table th, .hb-ins .wp-block-table td { border: 0; border-bottom: 1px solid var(--hb-lijn, #E6E8E6); }
.hb-ins .wp-block-table tr:last-child td { border-bottom: 0; }
.hb-ins .hb-tip .hb-tip-text { font-size: 16px; line-height: 1.7; }
@media (max-width: 640px) { .hb-ins .hb-tip .hb-tip-text { font-size: 15.5px; } .hb-ins .wp-block-table { margin-inline: 0; } }
.hb-ins .hb-proscons-col li { font-size: 15px; }

/* Intro-alinea uniform: ook de varianten met klasse hb-ins-lead krijgen de stijl van .hb-toc + p */
.hb-ins .hb-ins-col p.hb-ins-lead:not(#hb-specificity-boost) { margin-top: 36px; font-size: 18.5px !important; font-weight: 400; line-height: 1.7; padding-left: 18px; border-left: 3px solid var(--hb-groen, #67BF61); color: var(--hb-grijs, #454645) !important; }
@media (max-width: 600px) { .hb-ins .hb-ins-col p.hb-ins-lead:not(#hb-specificity-boost) { padding-left: 14px; } }
