/* leerhtml.nl — huisstijl
   Kleuren en typografie volgen het ontwerp: paars, serif-koppen (Bitter),
   Source Sans 3 voor lopende tekst en IBM Plex Mono voor code. */

:root {
    --paars-900: #2c0f3d;
    --paars-800: #3b1050;
    --paars-700: #4c1568;
    --paars-600: #571a78;
    --paars-500: #6f2596;
    --paars-300: #b98fd2;
    --paars-200: #c9a2e0;
    --paars-100: #e6d4f0;
    --lila-50: #f6f0fa;
    --lila-100: #f1e7f7;
    --lijn: #e4dbec;
    --lijn-zacht: #efe8f4;
    --inkt: #1f1a24;
    --inkt-zacht: #40384a;
    --grijs: #5b5266;
    --grijs-licht: #7b6f86;
    --wit: #ffffff;

    --breedte: 1120px;
    --radius: 6px;
    --schaduw: 0 2px 0 rgba(59, 16, 80, 0.12);

    --font-tekst: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-kop: "Bitter", Georgia, serif;
    --font-code: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wit);
    color: var(--inkt);
    font-family: var(--font-tekst);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--paars-500);
}

a:hover {
    color: var(--paars-700);
}

::selection {
    background: var(--paars-100);
}

:focus-visible {
    outline: 3px solid var(--paars-500);
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

.omhulsel {
    max-width: var(--breedte);
    margin: 0 auto;
    padding: 0 24px;
}

.overslaan {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--wit);
    color: var(--paars-800);
    padding: 12px 18px;
    z-index: 10;
}

.overslaan:focus {
    left: 8px;
    top: 8px;
}

/* ------------------------------------------------------------------ */
/* Kop van de site                                                      */
/* ------------------------------------------------------------------ */

.topbalk {
    background: var(--paars-700);
    color: #f3e9f8;
    font-size: 15px;
}

.topbalk .omhulsel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    gap: 16px;
    flex-wrap: wrap;
}

.topbalk span {
    opacity: 0.85;
}

.topbalk nav {
    display: flex;
    gap: 4px;
}

.topbalk a {
    color: #d9c3e8;
    text-decoration: none;
    padding: 10px 14px;
}

.topbalk a.actief {
    color: #f3e9f8;
    font-weight: 600;
    border-bottom: 3px solid var(--paars-200);
}

.topbalk a:hover {
    color: var(--wit);
}

/* Nog geen pagina, dus ook geen link. */
.topbalk .binnenkort {
    color: #c3a8d6;
    padding: 10px 14px;
    opacity: 1;
}

.sitekop {
    background: var(--wit);
    border-bottom: 1px solid var(--lijn);
}

.sitekop .omhulsel {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.merk {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.merk-logo {
    display: block;
    height: 34px;
    width: auto;
    max-width: 100%;
}

.merk-tagline {
    font-size: 15px;
    color: var(--grijs);
}

.voetmerk {
    gap: 10px;
}

.voetlogo {
    width: 190px;
    max-width: 100%;
    height: auto;
}

.hoofdnav {
    display: flex;
    gap: 26px;
    font-size: 17px;
    flex-wrap: wrap;
}

.hoofdnav a {
    text-decoration: none;
    color: var(--paars-800);
    font-weight: 600;
    padding: 4px 0;
}

.hoofdnav a:hover {
    color: var(--paars-500);
    border-bottom: 2px solid var(--paars-200);
}

.hoofdnav a[aria-current="page"] {
    border-bottom: 3px solid var(--paars-500);
}

/* ------------------------------------------------------------------ */
/* Zoeken                                                               */
/* ------------------------------------------------------------------ */

.hero {
    background: var(--lila-50);
    border-bottom: 1px solid var(--lijn);
}

.hero .omhulsel {
    padding-top: 56px;
    padding-bottom: 48px;
    display: grid;
    gap: 28px;
    justify-items: center;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-kop);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
    margin: 0;
    color: var(--paars-800);
    max-width: 760px;
    text-wrap: balance;
}

.hero p.lead {
    margin: 0;
    font-size: 20px;
    color: #4f4659;
    max-width: 620px;
    text-wrap: pretty;
}

.zoekformulier {
    width: 100%;
    max-width: 780px;
    display: grid;
    gap: 12px;
    position: relative;
}

.zoekformulier label {
    font-size: 17px;
    font-weight: 600;
    color: var(--paars-800);
    text-align: left;
}

.zoekvak {
    display: flex;
    background: var(--wit);
    border: 2px solid var(--paars-500);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--schaduw);
}

.zoekvak input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 18px 20px;
    font-size: 19px;
    font-family: inherit;
    color: var(--inkt);
    min-width: 0;
    background: transparent;
}

.zoekvak button {
    border: 0;
    background: var(--paars-500);
    color: var(--wit);
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    padding: 0 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoekvak button:hover {
    background: var(--paars-600);
}

.zoekvak:focus-within {
    box-shadow: 0 0 0 3px var(--paars-100);
}

.veelgezocht {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 16px;
    color: var(--grijs);
}

.tagknop {
    text-decoration: none;
    background: var(--wit);
    border: 1px solid #d8c8e4;
    color: var(--paars-600);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--font-code);
    font-size: 15px;
}

.tagknop:hover {
    background: #efe3f6;
    border-color: var(--paars-300);
}

.suggestielijst {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--wit);
    border: 1px solid var(--paars-200);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(59, 16, 80, 0.16);
    text-align: left;
    z-index: 20;
    overflow: hidden;
    display: none;
}

.suggestielijst[data-open="true"] {
    display: block;
}

.suggestielijst a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--inkt);
    border-bottom: 1px solid var(--lijn-zacht);
}

.suggestielijst a:last-child {
    border-bottom: 0;
}

.suggestielijst a:hover,
.suggestielijst a.gemarkeerd {
    background: var(--lila-50);
}

.suggestielijst code {
    font-family: var(--font-code);
    color: var(--paars-600);
    font-size: 16px;
}

.suggestielijst span {
    color: var(--grijs);
    font-size: 15px;
    grid-column: 2;
}

/* ------------------------------------------------------------------ */
/* Secties en kaarten                                                   */
/* ------------------------------------------------------------------ */

.sectie {
    padding: 64px 0 8px;
}

.sectie.laatste {
    padding-bottom: 64px;
}

.sectie h2 {
    font-family: var(--font-kop);
    font-size: 32px;
    margin: 0 0 8px;
    color: var(--paars-800);
}

.sectie > .omhulsel > p.intro {
    margin: 0 0 32px;
    font-size: 18px;
    color: var(--grijs);
}

.kaarten {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.kaart {
    display: grid;
    gap: 8px;
    align-content: start;
    text-decoration: none;
    background: var(--wit);
    border: 1px solid var(--lijn);
    border-left: 5px solid var(--paars-500);
    border-radius: var(--radius);
    padding: 22px 24px;
    color: inherit;
}

.kaart:hover {
    background: #faf6fc;
    border-color: var(--paars-200);
    border-left-color: var(--paars-700);
}

.kaart h3 {
    margin: 0;
    font-family: var(--font-kop);
    font-size: 21px;
    color: var(--paars-600);
}

.kaart p {
    margin: 0;
    font-size: 16px;
    color: #4f4659;
    line-height: 1.5;
    text-wrap: pretty;
}

.kaart .tags {
    font-family: var(--font-code);
    font-size: 14px;
    color: var(--grijs-licht);
}

.kaart .aantal {
    font-size: 15px;
    color: var(--grijs);
}

/* ------------------------------------------------------------------ */
/* Code en resultaat                                                    */
/* ------------------------------------------------------------------ */

.duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.paneel {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Beide kolommen even hoog: de langste bepaalt, de rest rekt mee. */
.duo .paneel pre,
.duo .paneel .paneel-resultaat {
    flex: 1;
}

.paneel-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--lila-50);
    border-bottom: 1px solid var(--lijn);
    padding: 12px 18px;
    font-weight: 600;
    font-size: 16px;
    color: var(--paars-800);
}

.paneel pre {
    margin: 0;
    background: var(--paars-900);
    color: #f0e6f7;
    padding: 22px;
    font-family: var(--font-code);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: auto;
}

.paneel-resultaat {
    padding: 0;
    background: var(--wit);
}

.paneel-resultaat iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 140px;
    display: block;
}

.kopieer {
    border: 1px solid var(--paars-200);
    background: var(--wit);
    color: var(--paars-600);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.kopieer:hover {
    background: #efe3f6;
}

/* Syntaxkleuren */
.tok-tag {
    color: var(--paars-300);
}

.tok-attr {
    color: #f0c674;
}

.tok-str {
    color: #9ad6c2;
}

.tok-com {
    color: #9c86ab;
    font-style: italic;
}

.tok-kw {
    color: #e6a3ff;
}

.tok-num {
    color: #ffb38a;
}

/* ------------------------------------------------------------------ */
/* Elementpagina                                                        */
/* ------------------------------------------------------------------ */

.kruimels {
    font-size: 15px;
    color: var(--grijs);
    padding: 18px 0 0;
}

.kruimels a {
    color: var(--paars-600);
    text-decoration: none;
}

.kruimels a:hover {
    text-decoration: underline;
}

.elementkop {
    display: grid;
    gap: 10px;
    padding: 24px 0 8px;
}

.elementkop .categorie {
    font-family: var(--font-code);
    font-size: 15px;
    color: var(--grijs-licht);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.elementkop h1 {
    font-family: var(--font-kop);
    font-size: clamp(26px, 4vw, 34px);
    margin: 0;
    color: var(--paars-800);
}

.elementkop h1 code {
    font-family: var(--font-code);
    font-size: 0.9em;
    background: var(--lila-100);
    padding: 2px 8px;
    border-radius: 4px;
}

.elementkop .samenvatting p {
    margin: 0;
    font-size: 19px;
    color: var(--inkt-zacht);
    max-width: 740px;
    line-height: 1.6;
    text-wrap: pretty;
}

.tekst.artikel {
    max-width: none;
    padding: 8px 0 0;
}

/* Lopende tekst blijft smal genoeg om prettig te lezen; tabellen, code en
   voorbeelden mogen de volle breedte gebruiken. */
.artikel > p,
.artikel > ul,
.artikel > ol,
.artikel > h2,
.artikel > h3,
.artikel > h4,
.artikel > .callout {
    max-width: 82ch;
}

.inhoudsopgave {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    border: 1px solid var(--lijn);
    border-left: 5px solid var(--paars-500);
    border-radius: var(--radius);
    background: var(--lila-50);
    padding: 14px 20px;
    margin: 32px 0 8px;
    font-size: 16px;
}

.inhoudsopgave-titel {
    font-family: var(--font-kop);
    font-size: 16px;
    color: var(--paars-800);
}

.inhoudsopgave ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.inhoudsopgave a {
    text-decoration: none;
    color: var(--paars-600);
}

.inhoudsopgave a:hover {
    text-decoration: underline;
}

/* Bij het scrollen verschijnt dezelfde inhoudsopgave als smalle balk naast de
   container. Dat gebeurt alleen als die ruimte er is (zie site.js), zodat de
   balk nooit over de inhoud valt. */
.inhoudsopgave-rail {
    position: fixed;
    top: 24px;
    width: 240px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    display: none;
    margin: 0;
    background: var(--wit);
    box-shadow: 0 8px 24px rgba(59, 16, 80, 0.12);
    z-index: 5;
}

.inhoudsopgave-rail[data-zichtbaar="true"] {
    display: block;
}

.inhoudsopgave-rail .inhoudsopgave-titel {
    display: block;
    margin-bottom: 10px;
}

.inhoudsopgave-rail ul {
    flex-direction: column;
    gap: 8px;
}

.attribuutlijst {
    display: grid;
    gap: 24px;
}

.attribuutblok {
    border: 1px solid var(--lijn);
    border-left: 5px solid var(--paars-500);
    border-radius: var(--radius);
    padding: 20px 24px;
    background: var(--wit);
    scroll-margin-top: 24px;
}

.attribuutblok h2 {
    margin: 0 0 6px;
    font-family: var(--font-kop);
    font-size: 22px;
}

.attribuutblok h2 a {
    text-decoration: none;
    color: var(--paars-600);
}

.attribuutblok h2 code {
    font-family: var(--font-code);
}

.attribuut-element {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--grijs);
}

.attribuut-uitleg {
    max-width: none;
}

.attribuut-uitleg > *:last-child {
    margin-bottom: 0;
}

.attribuutlink {
    text-decoration: none;
}

.attribuutlink code {
    text-decoration: underline;
    text-decoration-color: var(--paars-200);
    text-underline-offset: 3px;
}

.attribuutlink:hover code {
    background: var(--paars-100);
}

.aantalbadge {
    display: inline-block;
    margin-left: 6px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--lila-100);
    color: var(--paars-600);
    font-size: 13px;
}

.byline {
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--grijs);
}

.byline a {
    color: var(--paars-600);
    font-weight: 600;
    text-decoration: none;
}

.byline a:hover {
    text-decoration: underline;
}

.auteurkaart {
    display: flex;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    background: var(--lila-50);
    padding: 20px 24px;
    margin: 48px 0 8px;
}

.auteurfoto {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--wit);
    border: 2px solid var(--paars-200);
    flex: none;
}

.auteurfoto.groot {
    width: 140px;
    height: 140px;
}

.auteurtekst p {
    margin: 0;
}

.auteurlabel {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grijs-licht);
}

.auteurnaam {
    font-family: var(--font-kop);
    font-size: 19px;
}

.auteurnaam a {
    color: var(--paars-800);
    text-decoration: none;
}

.auteurnaam a:hover {
    text-decoration: underline;
}

.auteurbio,
.auteurdatum {
    font-size: 15px;
    color: var(--grijs);
}

.auteurprofiel {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 0 8px;
}

.auteurprofiel h1 {
    font-family: var(--font-kop);
    font-size: clamp(28px, 4vw, 38px);
    margin: 4px 0 8px;
    color: var(--paars-800);
}

.auteurprofiel .categorie {
    font-family: var(--font-code);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--grijs-licht);
}

.verwant {
    margin: 40px 0 0;
}

.verwant h2 {
    font-family: var(--font-kop);
    font-size: 22px;
    color: var(--paars-800);
    margin: 0 0 12px;
}

.verwantlijst {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.voorbeeldrij {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.voorbeeldkaart {
    display: grid;
    gap: 14px;
    align-content: start;
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--wit);
}

.voorbeeldkaart header {
    display: grid;
    gap: 6px;
}

.voorbeeldkaart .categorie {
    font-family: var(--font-code);
    font-size: 13px;
    color: var(--grijs-licht);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.voorbeeldkaart h3 {
    margin: 0;
    font-family: var(--font-kop);
    font-size: 22px;
}

.voorbeeldkaart h3 a {
    text-decoration: none;
    color: var(--paars-600);
}

.voorbeeldkaart h3 code {
    font-family: var(--font-code);
}

.voorbeeldkaart header p {
    margin: 0;
    font-size: 15px;
    color: var(--grijs);
    line-height: 1.5;
}

.voorbeeldkaart .paneel pre {
    font-size: 15px;
    padding: 18px;
    max-height: 320px;
}

.leesmeer {
    font-weight: 600;
    text-decoration: none;
    color: var(--paars-600);
}

.leesmeer:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lila-100);
    color: var(--paars-600);
    vertical-align: middle;
}

.badge-verouderd {
    background: #fbe6e6;
    color: #8c2020;
}

.badge-experimenteel {
    background: #fff3d9;
    color: #8a5a00;
}

.badge-niet-standaard {
    background: #eae6f5;
    color: #4a3b78;
}

.waarschuwing {
    border: 1px solid #f0cfcf;
    background: #fdf2f2;
    color: #6b1c1c;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.waarschuwing p {
    margin: 0 0 10px;
}

.waarschuwing p:last-child {
    margin-bottom: 0;
}

.waarschuwing code {
    background: #f7e2e2;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: var(--font-code);
    font-size: 0.94em;
}

/* Het alternatief bij een verouderd element. */
.vervanger-links a {
    color: #6b1c1c;
    font-weight: 600;
}

.vervanger-links a code {
    background: none;
    padding: 0;
}

/* ------------------------------------------------------------------ */
/* Tekst uit de bron (prose)                                            */
/* ------------------------------------------------------------------ */

.tekst {
    font-size: 17px;
    color: var(--inkt-zacht);
    max-width: 78ch;
}

.tekst h2 {
    font-family: var(--font-kop);
    font-size: 26px;
    color: var(--paars-800);
    margin: 40px 0 12px;
    scroll-margin-top: 24px;
}

.tekst h3 {
    font-family: var(--font-kop);
    font-size: 21px;
    color: var(--paars-800);
    margin: 32px 0 10px;
}

.tekst h4 {
    font-family: var(--font-kop);
    font-size: 18px;
    color: var(--paars-600);
    margin: 24px 0 8px;
}

.tekst p {
    margin: 0 0 16px;
    line-height: 1.65;
    text-wrap: pretty;
}

.tekst ul,
.tekst ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.tekst li {
    margin-bottom: 8px;
}

.tekst code {
    font-family: var(--font-code);
    font-size: 0.92em;
    background: var(--lila-100);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--paars-600);
}

.tekst a code {
    color: inherit;
}

.tekst a.extern::after {
    content: " ↗";
    font-size: 0.85em;
    color: var(--grijs-licht);
}

.tabelwikkel {
    overflow-x: auto;
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    margin: 0 0 24px;
}

.tekst table,
.attributen-tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
    background: var(--wit);
}

.tekst th,
.attributen-tabel th {
    text-align: left;
    padding: 14px 18px;
    border-bottom: 1px solid var(--lijn);
    color: var(--paars-800);
    background: var(--lila-50);
    vertical-align: top;
}

.tekst td,
.attributen-tabel td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--lijn-zacht);
    color: var(--inkt-zacht);
    line-height: 1.55;
    vertical-align: top;
}

.tekst tr:last-child td,
.tekst tr:last-child th,
.attributen-tabel tr:last-child td,
.attributen-tabel tr:last-child th {
    border-bottom: 0;
}

/* Vaste kolombreedte: anders duwt een lange naam of een codeblok in de cel de
   hele tabel breder dan de pagina. */
.deflist {
    table-layout: fixed;
}

.deflist th {
    width: 200px;
    font-family: var(--font-code);
    font-weight: 600;
    color: var(--paars-600);
    background: var(--wit);
    border-right: 1px solid var(--lijn-zacht);
    overflow-wrap: anywhere;
}

.tekst td,
.tekst th {
    overflow-wrap: break-word;
}

.tekst td code,
.tekst th code,
.tekst td a,
.tekst th a {
    overflow-wrap: anywhere;
}

.tekst td .codeblok,
.tekst td pre,
.tekst td .preview {
    max-width: 100%;
}

/* Op een smal scherm leest naam-boven-uitleg prettiger dan twee kolommen. */
@media (max-width: 640px) {
    .deflist,
    .deflist tbody,
    .deflist tr,
    .deflist th,
    .deflist td {
        display: block;
        width: auto;
    }

    .deflist th {
        border-right: 0;
        border-bottom: 0;
        padding-bottom: 4px;
    }

    .deflist td {
        padding-top: 0;
    }
}

.tekst td > p:last-child,
.tekst th > p:last-child {
    margin-bottom: 0;
}

.callout {
    background: var(--lila-50);
    border: 1px solid var(--lijn);
    border-left: 5px solid var(--paars-500);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 0 0 24px;
    display: grid;
    gap: 8px;
}

.callout-warning,
.callout-caution {
    background: #fdf6ec;
    border-color: #f0dcc0;
    border-left-color: #c9861f;
}

.callout-titel {
    font-family: var(--font-kop);
    font-size: 17px;
    color: var(--paars-800);
}

.callout p:last-child {
    margin-bottom: 0;
}

.codeblok {
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 24px;
}

.codeblok-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--lila-50);
    border-bottom: 1px solid var(--lijn);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--paars-800);
    letter-spacing: 0.04em;
}

.codeblok pre {
    margin: 0;
    background: var(--paars-900);
    color: #f0e6f7;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: auto;
}

.codeblok code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.preview {
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 24px;
    background: var(--wit);
}

.preview-kop {
    background: var(--lila-50);
    border-bottom: 1px solid var(--lijn);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--paars-800);
}

.preview-frame {
    width: 100%;
    border: 0;
    min-height: 120px;
    display: block;
}

/* ------------------------------------------------------------------ */
/* Lijsten van elementen                                                */
/* ------------------------------------------------------------------ */

.letterindex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 32px;
}

.letterindex a {
    display: inline-flex;
    min-width: 36px;
    justify-content: center;
    padding: 6px 8px;
    border: 1px solid var(--lijn);
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-code);
    color: var(--paars-600);
    background: var(--wit);
}

.letterindex a:hover {
    background: var(--lila-50);
    border-color: var(--paars-200);
}

.lettergroep {
    margin-bottom: 40px;
    scroll-margin-top: 24px;
}

.lettergroep h2 {
    font-family: var(--font-kop);
    font-size: 24px;
    color: var(--paars-800);
    margin: 0 0 12px;
    border-bottom: 2px solid var(--lijn);
    padding-bottom: 6px;
}

.taglijst {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.tagkaart {
    display: grid;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--wit);
}

.tagkaart:hover {
    border-color: var(--paars-200);
    background: #faf6fc;
}

.tagkaart .tag {
    font-family: var(--font-code);
    font-size: 17px;
    color: var(--paars-600);
    font-weight: 600;
}

.tagkaart .uitleg {
    font-size: 15px;
    color: var(--grijs);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filterbalk {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 24px;
    font-size: 15px;
}

.filterbalk a {
    text-decoration: none;
    border: 1px solid var(--lijn);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--paars-600);
    background: var(--wit);
}

.filterbalk a.actief {
    background: var(--paars-500);
    border-color: var(--paars-500);
    color: var(--wit);
}

/* Zoekresultaten */
.resultaten {
    display: grid;
    gap: 16px;
    margin: 0 0 48px;
}

.resultaat {
    display: grid;
    gap: 6px;
    border: 1px solid var(--lijn);
    border-left: 5px solid var(--paars-500);
    border-radius: var(--radius);
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    background: var(--wit);
}

.resultaat:hover {
    background: #faf6fc;
    border-color: var(--paars-200);
    border-left-color: var(--paars-700);
}

.resultaat .tag {
    font-family: var(--font-code);
    font-size: 19px;
    color: var(--paars-600);
    font-weight: 600;
}

.resultaat .uitleg {
    font-size: 16px;
    color: var(--inkt-zacht);
    line-height: 1.5;
}

.resultaat .herkomst {
    font-size: 14px;
    color: var(--grijs-licht);
}

.leeg {
    background: var(--lila-50);
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--inkt-zacht);
}

/* ------------------------------------------------------------------ */
/* Oproep en voettekst                                                  */
/* ------------------------------------------------------------------ */

.oproep {
    background: var(--paars-700);
    color: #f6eefb;
    margin-top: 64px;
}

.oproep .omhulsel {
    padding: 52px 24px;
    display: grid;
    gap: 14px;
    justify-items: start;
}

.oproep h2 {
    font-family: var(--font-kop);
    font-size: 28px;
    margin: 0;
}

.oproep p {
    margin: 0;
    font-size: 18px;
    color: #e2cff0;
    max-width: 640px;
    text-wrap: pretty;
}

.knop-wit {
    background: var(--wit);
    color: var(--paars-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    padding: 14px 26px;
    border-radius: 4px;
}

.knop-wit:hover {
    background: #f0e2f8;
    color: var(--paars-700);
}

.voettekst {
    background: var(--lila-50);
    border-top: 1px solid var(--lijn);
}

.voettekst .omhulsel {
    padding: 44px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    font-size: 16px;
}

.voettekst div {
    display: grid;
    gap: 8px;
    align-content: start;
}

.voettekst strong {
    color: var(--paars-800);
}

.voettekst div:first-child strong {
    font-family: var(--font-kop);
    font-size: 18px;
}

.voettekst span {
    color: var(--grijs);
}

.voettekst a {
    text-decoration: none;
}

.voettekst a:hover {
    text-decoration: underline;
}

.paginanav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--lijn);
    padding: 24px 0 0;
    margin-top: 40px;
    font-size: 16px;
}

.paginanav a {
    text-decoration: none;
    color: var(--paars-600);
    font-weight: 600;
}

@media (max-width: 640px) {
    .merk-logo {
        height: 26px;
    }

    .zoekvak {
        flex-direction: column;
    }

    .zoekvak button {
        padding: 14px 0;
        justify-content: center;
    }

    .sitekop .omhulsel {
        gap: 12px;
    }

    .hero .omhulsel {
        padding-top: 36px;
        padding-bottom: 32px;
    }
}

@media print {
    .topbalk,
    .hoofdnav,
    .oproep,
    .zijbalk,
    .zoekformulier {
        display: none;
    }
}

/* ------------------------------------------------------------------ */
/* Knoppen                                                              */
/* ------------------------------------------------------------------ */

.knoprij {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 0;
}

.knop,
.tekst a.knop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.knop-icoon {
    flex: none;
}

.knop-linkedin,
.tekst a.knop-linkedin {
    background: #0a66c2;
    color: var(--wit);
    border: 1px solid #0a66c2;
}

.knop-linkedin:hover,
.knop-linkedin:focus-visible,
.tekst a.knop-linkedin:hover,
.tekst a.knop-linkedin:focus-visible {
    background: #094f96;
    border-color: #094f96;
    color: var(--wit);
    text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Attribuutpagina: algemene uitleg en kleurkiezer                      */
/* ------------------------------------------------------------------ */

.attribuut-algemeen {
    margin-bottom: 32px;
}

.voorbeeldenlijst {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.attribuutlijst-kop {
    font-family: var(--font-kop);
    font-size: 22px;
    margin: 0 0 12px;
}

.kleurkiezer {
    border: 1px solid var(--lijn);
    border-left: 5px solid var(--paars-500);
    border-radius: var(--radius);
    padding: 20px 24px;
    background: var(--lila-50);
    margin-bottom: 32px;
}

.kleurkiezer h2 {
    margin: 0 0 4px;
    font-family: var(--font-kop);
    font-size: 22px;
}

.kleurkiezer > p {
    margin: 0 0 18px;
    color: var(--grijs);
}

.kleurkiezer-rij {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.kleurkiezer-veld {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--paars-800);
}

.kleurkiezer-veld input[type="color"] {
    width: 64px;
    height: 44px;
    padding: 2px;
    border: 1px solid var(--lijn);
    border-radius: 8px;
    background: var(--wit);
    cursor: pointer;
}

.kleurkiezer-veld input[type="text"] {
    width: 140px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--lijn);
    border-radius: 8px;
    background: var(--wit);
    font-family: var(--font-code);
    font-size: 16px;
    color: var(--paars-900);
}

.kleurkiezer-veld input[type="text"]:invalid {
    border-color: #c94b4b;
    color: #c94b4b;
}

.kleurkiezer .paneel {
    background: var(--wit);
}

/* ------------------------------------------------------------------ */
/* Bootstrap-documentatie                                               */
/* ------------------------------------------------------------------ */

.badge-nieuw {
    background: #e1f3ea;
    color: #14663f;
}

.callout-danger {
    background: #fbeaea;
    border-color: #f0c4c4;
    border-left-color: #a52a2a;
}

.bs-scss-verwijzing {
    font-size: 15px;
    color: var(--grijs);
    background: var(--lila-50);
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    padding: 10px 14px;
}

.bd-example {
    border: 1px solid var(--lijn);
    border-radius: var(--radius);
    padding: 20px;
    margin: 0 0 24px;
}

.bs-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: 8px;
    padding-bottom: 56px;
}

.bs-zijbalk-toggle summary {
    display: none;
}

.bs-zijbalk-inhoud {
    gap: 20px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding-right: 8px;
}

/* Alleen grid tonen als de <details> ook echt open is (klap open op mobiel,
   of geforceerd open op desktop hieronder) — anders wint deze regel van de
   browsers eigen "verberg dicht-geklapte details-inhoud"-gedrag. */
.bs-zijbalk-toggle[open] .bs-zijbalk-inhoud {
    display: grid;
}

.bs-groep-titel {
    display: block;
    font-family: var(--font-kop);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--paars-800);
    margin-bottom: 8px;
}

.bs-groep ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

.bs-groep a {
    display: block;
    padding: 5px 10px;
    margin-left: -10px;
    border-radius: var(--radius);
    text-decoration: none;
    color: #4f4659;
    font-size: 15px;
}

.bs-groep a:hover {
    background: var(--lila-50);
    color: var(--paars-700);
}

.bs-groep a[aria-current="page"] {
    background: var(--lila-100);
    color: var(--paars-800);
    font-weight: 600;
}

.bs-inhoud {
    min-width: 0;
}

@media (max-width: 900px) {
    .bs-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bs-zijbalk {
        margin-bottom: 28px;
    }

    .bs-zijbalk-toggle {
        border: 1px solid var(--lijn);
        border-radius: var(--radius);
        background: var(--lila-50);
    }

    .bs-zijbalk-toggle summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 12px 16px;
        font-weight: 600;
        color: var(--paars-800);
        list-style: none;
    }

    .bs-zijbalk-toggle summary::-webkit-details-marker {
        display: none;
    }

    .bs-zijbalk-inhoud {
        position: static;
        max-height: none;
        padding: 4px 16px 16px;
    }
}

