/*
 * Digi Hosting Kennisbank: artikel, kennisbankpagina's en zoeken in de stijl van digi.hosting.
 * Kleuren uit het logo (roze → oranje); tekst op wit in het donkere roze #C8175F of het donkere oranje #B54300.
 */
:root {
    --kb-ink: var(--dh-ink, #0A0A0F);
    --kb-text: var(--dh-text, #44495A);
    --kb-muted: var(--dh-muted, #5D6276);
    --kb-line: rgba(10, 20, 58, .09);
    --kb-soft: var(--dh-bg, #F5F6FA);
    --kb-card: #fff;
    --kb-grad: linear-gradient(135deg, #F62E7C, #FE650E);
    --kb-shadow: 0 1px 2px rgba(10, 20, 58, .04), 0 12px 36px rgba(10, 20, 58, .07);
}
.dhkb-i { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ zoekvak */
.dhkb-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 30px auto 0; padding: 7px 7px 7px 20px; border-radius: 100px; background: #fff; border: 1px solid var(--kb-line); box-shadow: 0 20px 60px -24px rgba(10, 10, 15, .35); text-align: left; }
.dhkb-search > .dhkb-i { color: var(--kb-muted); width: 20px; height: 20px; }
.dhkb-search input[type="search"] { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 17px; color: var(--kb-ink); padding: 10px 0 !important; -webkit-appearance: none; appearance: none; }
.dhkb-search input::-webkit-search-cancel-button { display: none; }
.dhkb-search input::placeholder { color: #9a9daa; }
.dhkb-search button[type="submit"] { border: 0; border-radius: 100px; padding: 12px 24px; background: var(--kb-ink); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.dhkb-search:focus-within { box-shadow: 0 0 0 4px rgba(254, 101, 14, .18), 0 20px 60px -24px rgba(10, 10, 15, .35); }
.dhkb-search.is-compact { margin: 0 0 14px; padding: 4px 4px 4px 14px; box-shadow: none; background: var(--kb-card); border-radius: 14px; }
.dhkb-search.is-compact input[type="search"] { font-size: 15px; padding: 8px 0 !important; }
.dhkb-search.is-compact button[type="submit"] { display: none; }
.dhkb-search.is-compact:focus-within { box-shadow: 0 0 0 3px rgba(254, 101, 14, .18); }

.dhkb-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; background: #fff; border: 1px solid var(--kb-line); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(10, 10, 15, .3); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; text-align: left; }
.dhkb-results a { display: block; padding: 11px 14px; border-radius: 14px; text-decoration: none !important; color: var(--kb-ink) !important; }
.dhkb-results a:hover, .dhkb-results a[aria-selected="true"] { background: linear-gradient(135deg, rgba(246, 46, 124, .07), rgba(254, 101, 14, .07)); }
.dhkb-results b { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; }
.dhkb-results small { display: block; color: var(--kb-muted); font-size: 13px; line-height: 1.4; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhkb-results em { font-style: normal; color: #B54300; font-weight: 700; }
.dhkb-results b em { color: #C8175F; font-weight: 800; }
.dhkb-results .dhkb-kb { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #C8175F; margin-bottom: 2px; }
.dhkb-results .dhkb-none { padding: 14px; color: var(--kb-muted); font-size: 14px; margin: 0; }

/* ------------------------------------------------------------------ kop van een artikel */
.dhkb-hero { padding: clamp(130px, 13vw, 170px) 20px 54px; text-align: left; overflow: hidden; }
.dhkb-hero .dh-blobs { position: absolute !important; inset: 0; z-index: -1; pointer-events: none; max-width: none !important; margin: 0 !important; }
.dhkb-hero .dh-blob { opacity: .32; }
.dhkb-hero > .dhkb-hero-in { max-width: 1200px !important; margin: 0 auto !important; }
.dhkb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.dhkb-crumbs a { color: rgba(245, 245, 247, .7) !important; text-decoration: none !important; }
.dhkb-crumbs a:hover { color: #fff !important; }
.dhkb-crumbs span { color: rgba(245, 245, 247, .35); }
.dhkb-title { color: #f5f5f7 !important; font-size: clamp(30px, 4.2vw, 50px) !important; line-height: 1.08 !important; letter-spacing: -.035em !important; font-weight: 800 !important; margin: 0 !important; max-width: 900px; text-transform: none !important; }
.dhkb-meta { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(245, 245, 247, .6); font-size: 14px; margin: 16px 0 0 !important; }

/* ------------------------------------------------------------------ indeling: zijbalk, artikel, inhoudstafel */
.dhkb-main { background: var(--kb-soft); }
.dhkb-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 20px 20px; box-sizing: border-box; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.dhkb-wrap.has-toc { grid-template-columns: 270px minmax(0, 1fr) 220px; }
.dhkb-side, .dhkb-toc-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }

.dhkb-side-box { background: var(--kb-card); border-radius: 20px; padding: 8px; box-shadow: var(--kb-shadow); }
.dhkb-side-title { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; font-weight: 800; color: var(--kb-ink); font-size: 16px; list-style: none; cursor: default; pointer-events: none; }
.dhkb-side-title::-webkit-details-marker { display: none; }
.dhkb-side-title .dhkb-i { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--kb-grad); color: #fff; box-sizing: border-box; }
.dhkb-nav-cat { border-top: 1px solid var(--kb-line); }
.dhkb-nav-cat > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--kb-ink); list-style: none; border-radius: 12px; }
.dhkb-nav-cat > summary::-webkit-details-marker { display: none; }
.dhkb-nav-cat > summary:hover { background: var(--kb-soft); }
.dhkb-nav-cat > summary small { margin-left: auto; color: var(--kb-muted); font-weight: 600; font-size: 12px; }
.dhkb-nav-cat > summary::after { content: ''; width: 7px; height: 7px; border: solid var(--kb-muted); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .2s; flex: none; }
.dhkb-nav-cat[open] > summary::after { transform: rotate(45deg); }
.dhkb-nav-cat ul { list-style: none; margin: 0 0 8px; padding: 0 4px; }
.dhkb-nav-cat a { display: block; padding: 7px 10px 7px 14px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--kb-text) !important; text-decoration: none !important; position: relative; }
.dhkb-nav-cat a:hover { color: var(--kb-ink) !important; background: var(--kb-soft); }
.dhkb-nav-cat a.is-on { color: var(--kb-ink) !important; font-weight: 700; background: linear-gradient(135deg, rgba(246, 46, 124, .08), rgba(254, 101, 14, .08)); }
.dhkb-nav-cat a.is-on::before { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #F62E7C, #FE650E); }

.dhkb-article { background: var(--kb-card); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--kb-shadow); min-width: 0; }
.dhkb-toc-inline { display: none; }
.dhkb-toc p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kb-muted); }
.dhkb-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--kb-line); }
.dhkb-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--kb-text) !important; text-decoration: none !important; }
.dhkb-toc li.is-h3 a { padding-left: 26px; font-size: 13.5px; }
.dhkb-toc li a:hover { color: var(--kb-ink) !important; }
.dhkb-toc li a.is-on { color: var(--kb-ink) !important; font-weight: 700; border-image: linear-gradient(180deg, #F62E7C, #FE650E) 1; }

/* ------------------------------------------------------------------ tekst van het artikel */
.dhkb-body { color: var(--kb-text); font-size: 17px; line-height: 1.7; }
.dhkb-body > :first-child { margin-top: 0 !important; }
.dhkb-body p { margin: 0 0 1.1em !important; }
.dhkb-body h2, .dhkb-body h3 { color: var(--kb-ink) !important; letter-spacing: -.02em; font-weight: 800; scroll-margin-top: 110px; text-transform: none !important; }
.dhkb-body h2 { font-size: 26px !important; margin: 1.8em 0 .6em !important; }
.dhkb-body h3 { font-size: 20px !important; margin: 1.6em 0 .5em !important; }
.dhkb-body a { color: #C8175F !important; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dhkb-body strong { color: var(--kb-ink); }
.dhkb-body code { font-size: .88em; background: var(--kb-soft); border: 1px solid var(--kb-line); padding: 2px 6px; border-radius: 6px; color: var(--kb-ink); }
.dhkb-body pre { background: #0f0f14; color: #f5f5f7; border-radius: 16px; padding: 16px 18px; overflow-x: auto; font-size: 14px; }
.dhkb-body pre code { background: none; border: 0; color: inherit; padding: 0; }
.dhkb-body img { max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--kb-line); }
.dhkb-body table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.2em; }
.dhkb-body th, .dhkb-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--kb-line); }
.dhkb-body th { color: var(--kb-ink); font-weight: 700; }

/* Genummerde stappen als bolletjes met een cijfer */
.dhkb-body ol { list-style: none; counter-reset: dhkb-step; margin: 0 0 1.3em !important; padding: 0 !important; display: grid; gap: 12px; }
.dhkb-body ol > li { counter-increment: dhkb-step; position: relative; padding-left: 46px; min-height: 30px; }
.dhkb-body ol > li::before { content: counter(dhkb-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--kb-grad); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; line-height: 1; }
.dhkb-body ul { margin: 0 0 1.2em !important; padding-left: 1.2em !important; }
.dhkb-body ul > li { margin: .3em 0; }
.dhkb-body ul > li::marker { color: #FE650E; }

/* Tip en waarschuwing */
.dhkb-body .dh-kb-tip { position: relative; background: linear-gradient(135deg, rgba(246, 46, 124, .06), rgba(254, 101, 14, .08)); border-radius: 16px; padding: 14px 18px 14px 50px !important; color: var(--kb-ink); font-size: 15.5px; }
.dhkb-body .dh-kb-tip::before { content: ''; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B54300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 00-4 12.7V17h8v-2.3A7 7 0 0012 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dhkb-body .dh-kb-warn { background: #FFF4EC; border-radius: 16px; padding: 14px 18px !important; color: #7A2E00; font-size: 15.5px; }

/* ------------------------------------------------------------------ nuttig?, vorige/volgende */
.dhkb-feedback { margin-top: 40px; padding: 22px 24px; border-radius: 20px; background: var(--kb-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.dhkb-fb-q { margin: 0 !important; font-weight: 800; color: var(--kb-ink); font-size: 17px; }
.dhkb-fb-btns { display: flex; gap: 8px; }
.dhkb-fb-btns button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--kb-line); background: #fff; color: var(--kb-ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .15s, transform .15s; }
.dhkb-fb-btns button:hover { border-color: var(--kb-ink); transform: translateY(-1px); }
.dhkb-fb-btns button.is-on { background: var(--kb-grad); border-color: transparent; color: #fff; }
.dhkb-fb-thanks { flex-basis: 100%; margin: 0 !important; color: var(--kb-text); font-size: 15px; }
.dhkb-feedback.is-done .dhkb-fb-btns button:not(.is-on) { opacity: .45; pointer-events: none; }

.dhkb-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.dhkb-pn a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--kb-line); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.dhkb-pn a:hover { border-color: rgba(10, 10, 15, .3); box-shadow: var(--kb-shadow); }
.dhkb-pn a.is-next { text-align: right; align-items: flex-end; }
.dhkb-pn small { display: inline-flex; align-items: center; gap: 6px; color: var(--kb-muted); font-size: 13px; font-weight: 700; }
.dhkb-pn small .dhkb-i { width: 15px; height: 15px; }
.dhkb-pn b { color: var(--kb-ink); font-size: 15.5px; line-height: 1.35; }

/* ------------------------------------------------------------------ hulp */
.dhkb-help { max-width: 1240px; margin: 0 auto; padding: 24px 20px 48px; box-sizing: border-box; }
.dhkb-help-card { display: flex; align-items: center; gap: 20px; padding: 26px 30px; border-radius: 28px; background: #0b0b10; color: #f5f5f7; position: relative; overflow: hidden; isolation: isolate; }
.dhkb-help-card::before { content: ''; position: absolute; inset: auto -10% -60% 40%; height: 160%; background: radial-gradient(closest-side, rgba(246, 46, 124, .35), transparent), radial-gradient(closest-side at 70% 40%, rgba(254, 101, 14, .3), transparent); z-index: -1; }
.dhkb-help-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--kb-grad); display: grid; place-items: center; color: #fff; }
.dhkb-help-ic .dhkb-i { width: 24px; height: 24px; }
.dhkb-help-card > div { flex: 1; min-width: 0; }
.dhkb-help h2 { color: #f5f5f7 !important; font-size: 22px !important; margin: 0 0 4px !important; letter-spacing: -.02em; }
.dhkb-help p { margin: 0 !important; color: #b9bac4; font-size: 15.5px; }
.dhkb-btn { flex: none; display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 100px; background: var(--kb-grad); color: #fff !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 12px 30px -10px rgba(246, 46, 124, .6); }
.dhkb-btn:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------------ kennisbankpagina: categorieën */
.dhkb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; align-items: start; }
.dhkb-cat { background: var(--kb-card); border-radius: 24px; padding: 24px 22px 18px; box-shadow: var(--kb-shadow); scroll-margin-top: 110px; }
.dhkb-cat h3 { display: flex; align-items: baseline; gap: 8px; font-size: 19px !important; letter-spacing: -.02em; margin: 0 0 12px !important; font-weight: 800; color: var(--kb-ink) !important; }
.dhkb-cat h3 small { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 100px; background: var(--kb-soft); color: var(--kb-muted); }
.dhkb-cat ul { list-style: none; margin: 0; padding: 0; }
.dhkb-cat li.is-more { display: none; }
.dhkb-cat.is-open li.is-more { display: block; }
.dhkb-cat a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--kb-line); color: var(--kb-ink) !important; text-decoration: none !important; font-size: 15px; line-height: 1.4; }
.dhkb-cat li:first-child a { border-top: 0; }
.dhkb-cat a .dhkb-i { width: 16px; height: 16px; color: var(--kb-muted); transition: transform .15s, color .15s; }
.dhkb-cat a:hover .dhkb-i { transform: translateX(3px); color: #B54300; }
.dhkb-more { margin-top: 8px; border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 700; font-size: 14px; color: #B54300; cursor: pointer; }
.dhkb-cat:target { box-shadow: 0 0 0 3px rgba(254, 101, 14, .35), var(--kb-shadow); }

/* Tegels met alle kennisbanken */
.dhkb-bases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; text-align: left; }
.dhkb-base { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 24px; background: var(--kb-card); box-shadow: var(--kb-shadow); text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.dhkb-base:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(10, 20, 58, .05), 0 24px 60px rgba(10, 20, 58, .12); }
.dhkb-base-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--kb-grad); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.dhkb-base-ic .dhkb-i { width: 22px; height: 22px; }
.dhkb-base b { color: var(--kb-ink); font-size: 18px; letter-spacing: -.02em; }
.dhkb-base span { color: var(--kb-text); font-size: 14.5px; line-height: 1.45; }
.dhkb-base small { margin-top: auto; padding-top: 6px; color: #B54300; font-weight: 700; font-size: 13px; }

/* ------------------------------------------------------------------ smaller */
@media (max-width: 1180px) {
    .dhkb-wrap.has-toc { grid-template-columns: 250px minmax(0, 1fr); }
    .dhkb-toc-side { display: none; }
    .dhkb-toc-inline { display: block; margin-bottom: 26px; padding: 18px 20px; border-radius: 18px; background: var(--kb-soft); }
}
@media (max-width: 900px) {
    .dhkb-wrap, .dhkb-wrap.has-toc { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
    .dhkb-side { position: static; max-height: none; overflow: visible; order: 2; }
    .dhkb-side-title { pointer-events: auto; cursor: pointer; }
    .dhkb-side-title::after { content: ''; margin-left: auto; width: 8px; height: 8px; border: solid var(--kb-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
    .dhkb-grid { grid-template-columns: 1fr 1fr; }
    .dhkb-help-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .dhkb-hero { padding-top: 150px; padding-bottom: 36px; }
    .dhkb-article { border-radius: 22px; padding: 22px 18px; }
    .dhkb-body { font-size: 16px; }
    .dhkb-grid { grid-template-columns: 1fr; }
    .dhkb-pn { grid-template-columns: 1fr; }
    .dhkb-search button[type="submit"] { padding: 11px 16px; }
    .dhkb-feedback { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .dhkb-base, .dhkb-fb-btns button, .dhkb-cat a .dhkb-i { transition: none; } }
