/* Gegenereerd door tools/artikel_css.py uit de mockup (topicdelen van kennis.css). Niet met de hand wijzigen. */
/* ---- uit css/pages/kennis.css (topicpagina) ---- */
html body.rb-site .kp-kop h1 { max-width: 17em; }
html body.rb-site .kp-kop .intro { margin-top: 16px; color: var(--muted); }
html body.rb-site .topic-kop h1 { font-size: clamp(34px, 1.6vw + 18px, 48px); max-width: 15em; }
html body.rb-site .topic-kop h1,
html body.rb-site .artikel > :is(h2, h3) { overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
html body.rb-site .topic-kop .intro { max-width: 34em; }
html body.rb-site .topic-kop [data-topic="vergunningsplichtige-werken"] h1 { max-width: 16em; }
@media (min-width: 768px) and (max-width: 789px) {
  html body.rb-site .topic-kop [data-topic="voorbereiding-budget-huizenjager"] h1 { font-size: 31px; }
}
html body.rb-site .topic-kop-beeld .beeld { border-radius: var(--rb-r-vlak); }
@media (max-width: 767px) {
  html body.rb-site .topic-kop h1 { font-size: clamp(28px, 6vw + 6px, 34px); }
  @media (min-width: 370px) and (max-width: 399px) {
    html body.rb-site .topic-kop [data-topic="offertes-van-aannemers"] h1 { font-size: calc((100vw - 32px) * 0.08); }
  }
  @media (max-width: 339px) {
    html body.rb-site .topic-kop [data-topic="voorbereiding-budget-huizenjager"] h1 { font-size: 27px; }
  }
}
html body.rb-site .topic-kort-kader { padding: 36px 48px 48px; }
html body.rb-site .topic-kernpunten { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; margin-top: 24px; }
html body.rb-site .topic-kolommen {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px);
  gap: 48px 92px; justify-content: start; align-items: start;
}
html body.rb-site .topic-zijkolom { align-self: stretch; }
html body.rb-site .topic-zijkolom > h2 { font-size: clamp(26px, 0.8vw + 18px, 32px); }
html body.rb-site .topic-zijkolom > p { margin-top: 12px; }
html body.rb-site .bronnen-lijst { display: grid; gap: 0; counter-reset: bron; border-top: 1px solid var(--line); }
html body.rb-site .bronnen-lijst li {
  counter-increment: bron;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px;
  padding-block: 6px 16px; border-bottom: 1px solid var(--line);
}
html body.rb-site .bronnen-lijst li::before {
  content: counter(bron) "."; grid-row: 1 / span 2; padding-top: 10px;
  font-family: var(--rb-font-kop); color: var(--rb-oranje);
}
html body.rb-site .bronnen-lijst a {
  display: block; padding-block: 10px; justify-self: start;
  color: var(--rb-paars); overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--rb-oranje);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
html body.rb-site .bronnen-lijst a:hover { text-decoration-color: var(--rb-paars); }
html body.rb-site .bron-uitgever { grid-column: 2; margin-top: -6px; font-size: var(--rb-fs-klein); color: var(--muted); }
@media (max-width: 1024px) {
  html body.rb-site .topic-kolommen { grid-template-columns: minmax(0, 720px); }
  html body.rb-site .topic-kernpunten { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 767px) {
  html body.rb-site .topic-kort-kader { padding: 24px 24px 32px; }
  html body.rb-site .topic-kolommen { gap: 24px; }
}
html body.rb-site .artikel { font-size: 18px; line-height: 1.5; }
html body.rb-site .artikel > * + * { margin-top: 16px; }
html body.rb-site .artikel > p:first-child {
  font-size: clamp(19px, 0.4vw + 15px, 21px); font-weight: 300; line-height: 1.5;
}
html body.rb-site .artikel > h2 {
  margin-top: 64px;
  font-size: clamp(26px, 0.8vw + 18px, 32px);
}
html body.rb-site .artikel > h2:first-child { margin-top: 0; }
html body.rb-site .artikel > h3 {
  margin-top: 36px;
  font-size: clamp(20px, 0.3vw + 17px, 22px);
}
html body.rb-site .artikel > h2 + * { margin-top: 16px; }
html body.rb-site .artikel > h3 + * { margin-top: 8px; }
html body.rb-site .artikel > h2 + h3 { margin-top: 24px; }
html body.rb-site .artikel :is(p, li, td, th) a {
  color: var(--rb-paars);
  text-decoration: underline; text-decoration-color: var(--rb-oranje);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}
html body.rb-site .artikel :is(p, li, td, th) a:hover { text-decoration-color: var(--rb-paars); }
html body.rb-site .artikel :is(ul, ol) > li > a { padding-block: 11px; }
html body.rb-site .artikel > ul > li + li,
html body.rb-site .artikel > ol > li + li { margin-top: 8px; }
html body.rb-site .artikel > ol { counter-reset: stap; }
html body.rb-site .artikel > ol > li { position: relative; padding-left: 44px; counter-increment: stap; }
html body.rb-site .artikel > ol > li::before {
  content: counter(stap);
  position: absolute; left: 0; top: calc((1.5em - 30px) / 2);
  box-sizing: border-box; width: 30px; height: 30px; padding-top: 2px;
  background: var(--primary-zacht); color: var(--rb-paars);
  border-radius: var(--rb-r-ui);
  font-family: var(--rb-font-kop);
  font-size: 15px; line-height: 28px; text-align: center; font-variant-numeric: tabular-nums;
}
html body.rb-site .artikel > blockquote {
  position: relative; margin-top: 32px;
  padding: 32px 64px 32px 36px;
  background: var(--rb-licht);
  border-radius: var(--rb-r-vlak);
}
html body.rb-site .artikel > blockquote::after {
  content: ""; position: absolute; top: 20px; right: 20px; width: 24px; height: 26px;
  background: var(--rb-oranje);
  -webkit-mask: url("../assets/icons/pijl.svg") center / contain no-repeat;
          mask: url("../assets/icons/pijl.svg") center / contain no-repeat;
}
html body.rb-site .artikel > blockquote + * { margin-top: 32px; }
html body.rb-site .artikel blockquote p + p { margin-top: 8px; }
html body.rb-site .artikel blockquote > p:first-child strong {
  font-family: var(--rb-font-kop);
  font-weight: var(--rb-gewicht-kop);
  font-size: 21px; line-height: 1.3;
}
html body.rb-site .artikel > table {
  width: 100%; margin-top: 32px;
  border-collapse: collapse;
  font-size: 16px; line-height: 1.45;
}
html body.rb-site .artikel > table + * { margin-top: 32px; }
html body.rb-site .artikel th,
html body.rb-site .artikel td { padding: 12px 16px; text-align: left; vertical-align: top; }
html body.rb-site .artikel th,
html body.rb-site .artikel tbody td:first-child { text-wrap-style: balance; }
@media (max-width: 767px) {
  html body.rb-site .artikel td { text-wrap-style: pretty; }
}
html body.rb-site .artikel th {
  background: var(--rb-licht);
  border-bottom: 2px solid var(--rb-paars);
  font-family: var(--rb-font-kop);
  font-weight: 400; font-size: 15px; line-height: 1.3;
}
html body.rb-site .artikel td { border-bottom: 1px solid var(--line-strong); }
html body.rb-site .artikel tbody td:first-child { font-weight: 500; }
html body.rb-site .artikel th:first-child,
html body.rb-site .artikel td:first-child { min-width: 7.5em; }
html body.rb-site .artikel > figure { margin-top: 32px; }
html body.rb-site .artikel > figure + * { margin-top: 32px; }
html body.rb-site .artikel figure img { width: 100%; height: auto; border-radius: var(--rb-r-vlak); }
html body.rb-site .artikel > .lead-band { margin-top: 64px; flex-direction: column; align-items: flex-start; gap: 24px; }
html body.rb-site .artikel > .lead-band > p { padding-right: 32px; }
html body.rb-site .artikel > .lead-band + * { margin-top: 64px; }
html body.rb-site .artikel > :is(blockquote, table, figure) + h2 { margin-top: 64px; }
html body.rb-site .artikel > :is(blockquote, table, figure) + h3 { margin-top: 40px; }
@media (max-width: 767px) {
  html body.rb-site .artikel { font-size: 17px; }
  html body.rb-site .artikel > h2 { margin-top: 48px; }
  html body.rb-site .artikel > h3 { margin-top: 32px; }
  html body.rb-site .artikel > blockquote { padding: 24px 48px 24px 24px; }
  html body.rb-site .artikel > blockquote::after { top: 16px; right: 16px; width: 20px; height: 22px; }
  html body.rb-site .artikel > .lead-band { margin-top: 48px; }
  html body.rb-site .artikel > .lead-band + * { margin-top: 48px; }
  html body.rb-site .artikel > :is(blockquote, table, figure) + h2 { margin-top: 48px; }
  html body.rb-site .artikel > :is(blockquote, table, figure) + h3 { margin-top: 32px; }
  html body.rb-site .artikel > table {
      display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain;
      font-size: 15px;
      background:
        linear-gradient(to right, var(--rb-wit) 30%, transparent) left center / 40px 100% no-repeat local,
        linear-gradient(to left, var(--rb-wit) 30%, transparent) right center / 40px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--rb-tekst) 22%, transparent), transparent) left center / 14px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--rb-tekst) 22%, transparent), transparent) right center / 14px 100% no-repeat scroll;
    }
  html body.rb-site .artikel th,
  html body.rb-site .artikel td { min-width: 7.5em; padding: 12px; }
}

/* ==========================================================================
   Handgeschreven aansluiting op WordPress (tools/artikel_css.py, EXTRA)
   ========================================================================== */
/* Naamsvermelding onder het beeld (CC BY-SA), enkel als het veld beeld_credit gevuld is. Niet in de mockup:
   klein en gedempt, zoals .bron-uitgever, zodat ze het beeld niet beconcurreert. */
html body.rb-site .rb-art-beeld .beeld-credit {
  margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere;
}
html body.rb-site .rb-art-beeld .beeld-credit a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
html body.rb-site .rb-art-beeld .beeld-credit a:hover { color: var(--rb-paars); text-decoration-color: currentColor; }
html body.rb-site .rb-art-beeld .beeld > img { display: block; }

/* Tabellen in de artikeltekst: Hello (reset.css) zet een rand rond elke cel, regelhoogte 1.5, zebrastrepen en
   15px onder de tabel. De mockup heeft dat niet. Rand en regelhoogte via :where() (0,1,2): wint van Hello (0,0,2),
   verliest van de gegenereerde regels hierboven (randen onderaan, th 1.3). De strepen en hover van Hello wegen
   (0,1,4), dus de td-achtergrond met volle specificiteit; th houdt zijn achtergrond uit de mockup. */
html body.rb-site :where(.artikel) :where(th, td) { border: 0; line-height: inherit; }
html body.rb-site :where(.artikel) > table { margin-bottom: 0; border: 0; }
html body.rb-site .artikel td { background: none; }

/* Figuren in de artikeltekst: Elementor (frontend.css) zet margin 0 op elke figure in een widget,
   `.elementor .elementor-widget:not(...):not(...) figure` (0,4,1). Daardoor viel de 32px boven een figuur uit de
   mockup weg en plakte de foto tegen de tabel of alinea erboven. Hier met (0,4,3), zelfde maat als een tabel. */
html body.rb-site .elementor .elementor-widget .artikel > figure { margin: 32px 0 0; }
html body.rb-site .artikel figure img { display: block; }

/* Bijschrift onder een figuur in de tekst (naamsvermelding bij een CC-foto): zelfde behandeling als de credit onder
   het kopbeeld (.beeld-credit hierboven), klein en gedempt, links, 8px onder het beeld. Hello (reset.css) zet een
   figcaption cursief, de credit onder het kopbeeld is recht: hier ook recht. */
html body.rb-site .artikel figure figcaption {
  margin-top: 8px; font-size: 13px; font-style: normal; line-height: 1.45; color: var(--muted); text-align: left;
  overflow-wrap: anywhere;
}
html body.rb-site .artikel figure figcaption a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
html body.rb-site .artikel figure figcaption a:hover { color: var(--rb-paars); text-decoration-color: currentColor; }

/* Tabellen op gsm (2026-12-02): de mockup geeft elke cel min-width 7.5em, waardoor een tabel met drie of meer kolommen
   op 390px in zijn kader scrolde. Nu passen ze: geen vaste minimumbreedte, 8px tussen de kolommen (12px aan de randen)
   en afbreken op lettergrepen (html lang="nl-BE"). Kolomkoppen houden hun woorden heel, zodat een kolom minstens zo
   breed blijft als zijn kop. De eerste kolom (rijlabels) heeft een ondergrens; vanaf drie kolommen mag ze als laatste
   redmiddel overal breken, wat browsers zonder Nederlandse woordafbreking opvangt. Vier of meer kolommen: 14px en alles mag breken,
   met een ondergrens per cel (border-box) zodat bedragen heel blijven. Het scrollkader uit de mockup blijft als vangnet. */
@media (max-width: 767px) {
  html body.rb-site .artikel th,
  html body.rb-site .artikel td,
  html body.rb-site .artikel th:first-child,
  html body.rb-site .artikel td:first-child {
    min-width: 0; padding: 12px 8px;
    hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word;
  }
  html body.rb-site .artikel :is(th, td):last-child { padding-right: 12px; }
  html body.rb-site .artikel th:not(:first-child) { hyphens: manual; -webkit-hyphens: manual; }
  html body.rb-site .artikel :is(th, td):first-child { min-width: 6em; padding-left: 12px; hyphenate-limit-chars: 6 3 3; }
  html body.rb-site .artikel > table:has(tr > :nth-child(3)) :is(th, td):first-child { min-width: 5em; overflow-wrap: anywhere; }
  html body.rb-site .artikel > table:has(tr > :nth-child(4)),
  html body.rb-site .artikel > table:has(tr > :nth-child(4)) th { font-size: 14px; }
  html body.rb-site .artikel > table:has(tr > :nth-child(4)) :is(th, td) {
    min-width: 3.5em; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 5 2 2; overflow-wrap: anywhere;
  }
  html body.rb-site .artikel > table:has(tr > :nth-child(4)):not(:has(tr > :nth-child(5))) :is(th, td):not(:first-child) { min-width: 5em; }
  html body.rb-site .artikel > table:has(tr > :nth-child(4)) :is(th, td):first-child { min-width: 5.5em; }
}
@media (max-width: 359px) {
  html body.rb-site .artikel > table:not(:has(tr > :nth-child(4))) :is(th, td):not(:first-child) { min-width: 4em; overflow-wrap: anywhere; }
}
