/* ============ The kennisbank: the hub, a category, an article (pages generated by scripts/lib/kb-render.mjs) ============
   Inside the shell's panel, after shell.css, built with its primitives (.wk-wash, .wk-wrap, .wk-card, .wk-sec, .wk-seg,
   .wk-glyph, …); this sheet adds only what is the kennisbank's own: the breadcrumb in the bar, rows of articles, the
   hub's drawn plate (the sailboat on rougher water, the search on it) and search and places, an article's path chip, steps, label chips, notes, AI bubbles and "Was dit nuttig?".
     ≤ 820 px  one column: the hub's places and tiles stack
     ≤ 719 px  the phone: the bar shows only the page, the jump pills scroll sideways, 44 px buttons */

/* ---------- the bar: the breadcrumb ---------- */
.shell .kb-crumbs{flex:1; min-width:0}
.shell .kb-crumbs ol{display:flex; align-items:center; gap:8px; margin:0; padding:0; list-style:none; white-space:nowrap}
.shell .kb-crumbs li{min-width:0}
.shell .kb-crumbs li:last-child{overflow:hidden; text-overflow:ellipsis}
.shell .kb-crumbs li + li::before{content:"/"; margin-right:8px; color:var(--wk-faint)}
.shell .kb-crumbs a{color:var(--wk-quiet); text-decoration:none}
.shell .kb-crumbs a:hover{color:var(--wk-ink); text-decoration:underline}
.shell .kb-crumbs b{font-weight:600; color:var(--wk-ink)}

/* ---------- shared ---------- */
.shell .kb .wk-wash img{object-position:50% 30%}
.shell .kb .wk-wrap.kb-narrow{max-width:780px; padding-top:36px; gap:22px}
.shell .kb .wk-wrap p{margin:0}
.shell .kb .wk-card{overflow:hidden}
.shell .kb .wk-wrap svg{fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; flex:none}
.shell .kb-quiet{font-size:13px; color:var(--wk-quiet)}

/* ---------- the hub's plate (the drawn sea: shell.css .dp; its close is shell.css .dp-close) ---------- */
.shell .kb-plate .dp-art{object-position:50% 40%}
.shell .kb-plate::before{content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(100deg, rgb(234 226 218 / .8) 0%, rgb(234 226 218 / .45) 40%, rgb(234 226 218 / 0) 62%)}
.shell .kb-plate .kb-quiet{color:#3D5566}
.shell .kb .dp-play svg{fill:currentColor; stroke:none}
.shell .kb-ui{padding:2px 7px; border-radius:6px; background:var(--wk-well); box-shadow:inset 0 0 0 1px var(--wk-border); font-weight:500; font-size:.9em; white-space:nowrap; color:var(--wk-ink); -webkit-box-decoration-break:clone; box-decoration-break:clone}
.shell .kb-h1{font:400 36px/1.1 var(--serif); letter-spacing:-.01em; text-wrap:balance}
.shell .kb-lede{font-size:17px; line-height:1.6; color:var(--wk-body)}

/* rows: an icon, a title with its line, an arrow */
.shell .kb-rows{display:flex; flex-direction:column}
.shell .kb .kb-row{display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:14px; padding:13px 20px; border-top:1px solid var(--wk-line); color:var(--wk-ink); text-decoration:none}
.shell .kb .kb-row:first-child, .shell .kb .kb-rows > h2 + .kb-row{border-top:0}
.shell .kb .kb-row:hover{background:var(--wk-panel)}
.shell .kb-row-t{display:flex; flex-direction:column; min-width:0}
.shell .kb-row-t b{font-weight:500}
.shell .kb-row-t span{font-size:13px; color:var(--wk-quiet)}
.shell .kb-arrow{color:var(--wk-faint)}

/* ---------- the hub ---------- */
.shell .kb-search{display:flex; align-items:center; gap:10px; max-width:560px; height:46px; padding:0 16px; border-radius:999px; background:var(--wk-card); border:1px solid var(--wk-edge); box-shadow:0 10px 30px -20px rgb(31 29 26 / .35); color:var(--wk-quiet)}
.shell .kb-search:focus-within{border-color:var(--wk-teal); box-shadow:0 0 0 3px rgb(18 177 194 / .2)}
.shell .kb-search input{flex:1; min-width:0; border:0; background:transparent; font:400 15px var(--ui); color:var(--wk-ink); outline:none; text-overflow:ellipsis}
.shell .kb-search input::placeholder{color:var(--wk-quiet)}
.shell .kb-results-n{font-size:13px; color:var(--wk-quiet)}
.shell .kb-seg{flex-wrap:wrap; align-self:flex-start}
.shell .kb-group{display:flex; flex-direction:column; gap:10px}
.shell .kb-group + .kb-group{margin-top:10px}
.shell .kb .kb-group-h{font-size:13px; color:var(--wk-quiet)}
.shell .kb-tabbed .kb-group-h{display:none}
.shell .kb-tabbed .kb-group + .kb-group{margin-top:0}
.shell .kb-cols{display:grid; grid-template-columns:repeat(3, minmax(0,1fr))}
.shell .kb-cols-2{grid-template-columns:repeat(2, minmax(0,1fr))}
.shell .kb-cols-1{grid-template-columns:minmax(0,1fr)}
.shell .kb-col{display:flex; flex-direction:column; gap:2px; padding:18px 20px 20px; border-left:1px solid var(--wk-line)}
.shell .kb-cols-3 .kb-col:nth-child(3n+1), .shell .kb-cols-2 .kb-col:nth-child(2n+1), .shell .kb-cols-1 .kb-col{border-left:0}
.shell .kb-cols-3 .kb-col:nth-child(n+4), .shell .kb-cols-2 .kb-col:nth-child(n+3){border-top:1px solid var(--wk-line)}
.shell .kb .kb-col-h{display:flex; align-items:center; gap:10px; margin-bottom:6px; color:var(--wk-ink); text-decoration:none}
.shell .kb-col-h > span:last-child{display:flex; flex-direction:column; min-width:0}
.shell .kb-col-h b{font-weight:600; line-height:1.25}
.shell .kb-col-h:hover b{text-decoration:underline}
.shell .kb-col-h > span:last-child span{font-size:12.5px; color:var(--wk-quiet)}
.shell .kb .kb-art{display:flex; justify-content:space-between; gap:10px; padding:6px 0; color:var(--wk-ink); font-size:14px; text-decoration:none}
.shell .kb .kb-art:hover{color:var(--wk-teal-deep)}
.shell .kb-art span{color:var(--wk-faint)}
.shell .kb .kb-all{margin-top:4px; color:var(--wk-teal-deep); font-size:13px; font-weight:500; text-decoration:none}
.shell .kb .kb-all:hover{text-decoration:underline}
.shell .kb-tiles{display:grid; grid-template-columns:repeat(4, minmax(0,1fr))}
.shell .kb-tiles-3{grid-template-columns:repeat(3, minmax(0,1fr))}
.shell .kb-tiles-2{grid-template-columns:repeat(2, minmax(0,1fr))}
.shell .kb .kb-tile{display:flex; flex-direction:column; gap:6px; padding:16px 18px; border-left:1px solid var(--wk-line); color:var(--wk-ink); text-decoration:none}
.shell .kb .kb-tile:first-child{border-left:0}
.shell .kb .kb-tile:hover{background:var(--wk-panel)}
.shell .kb-tile b{font-weight:500}
.shell .kb-tile span{font-size:13px; color:var(--wk-quiet)}
.shell .kb-more{display:flex; align-items:center; gap:16px; padding:20px 24px}
.shell .kb-more > div{flex:1; display:flex; flex-direction:column; gap:4px}
.shell .kb-more .wk-h3{font-size:19px; line-height:1.3}
.shell .kb-more p{color:var(--wk-quiet)}
.shell .kb .kb-mail{display:inline-flex; align-items:center; flex:none; height:40px; padding:0 18px; border-radius:999px; border:1px solid var(--wk-edge); color:var(--wk-ink); font-weight:500; text-decoration:none}
.shell .kb .kb-mail:hover{background:var(--wk-well)}

/* ---------- a category and an article: the top ---------- */
.shell .kb-top{display:flex; flex-direction:column; gap:14px; padding-top:8px}
.shell .kb-pills, .shell .kb-jump{display:flex; flex-wrap:wrap; gap:6px}
.shell .kb .kb-pills a, .shell .kb .kb-jump a{display:inline-flex; align-items:center; height:30px; padding:0 12px; border-radius:999px; background:var(--wk-well); color:var(--wk-text); font-size:13px; font-weight:500; text-decoration:none}
.shell .kb .kb-pills a:hover, .shell .kb .kb-jump a:hover{background:#E6E1D6; color:var(--wk-ink)}
.shell .kb-path{display:inline-flex; align-items:center; gap:6px; align-self:flex-start; padding:5px 10px 5px 6px; border-radius:999px; background:var(--wk-card); border:1px solid var(--wk-border); font-size:13px; color:var(--wk-text)}
.shell .kb-path b{font-weight:500; color:var(--wk-ink)}

/* ---------- an article ---------- */
.shell .kb-article{display:flex; flex-direction:column; gap:22px}
.shell .kb-article .wk-sec{scroll-margin-top:16px}
.shell .kb-article .wk-h3{font-size:22px}
.shell .kb-steps{margin:0; padding:0; list-style:none; counter-reset:kb-step}
.shell .kb-steps li{display:grid; grid-template-columns:28px minmax(0,1fr); gap:14px; padding:16px 22px; border-top:1px solid var(--wk-line); counter-increment:kb-step}
.shell .kb-steps li:first-child{border-top:0}
.shell .kb-steps li::before{content:counter(kb-step); display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:8px; background:var(--wk-ink); color:var(--wk-paper); font-size:12.5px; font-weight:600}
.shell .kb-steps p, .shell .kb-after p, .shell .kb-ai > p{font-size:15px; line-height:1.75}
.shell .kb-steps p{margin-top:2px}
.shell .kb-after{display:flex; align-items:flex-start; gap:14px; padding:18px 22px}
.shell .kb-dot{flex:none; width:9px; height:9px; margin-top:9px; border-radius:50%; background:var(--wk-teal); box-shadow:0 0 0 4px rgb(18 177 194 / .16)}
.shell .kb-good{margin:0; padding:8px 22px; list-style:none}
.shell .kb-good li{display:grid; grid-template-columns:18px minmax(0,1fr); gap:10px; padding:9px 0; border-top:1px solid var(--wk-line); font-size:15px; line-height:1.65}
.shell .kb-good li:first-child{border-top:0}
.shell .kb-good li::before{content:"·"; color:var(--wk-quiet)}
.shell .kb-ai{display:flex; flex-direction:column; gap:10px; padding:18px 22px}
.shell .kb-chat{display:flex; flex-direction:column; gap:10px}
.shell .kb-bub{align-self:flex-start; max-width:80%; padding:9px 13px; border-radius:14px; background:#F4F1EA; border:1px solid var(--wk-border); font-size:14px; line-height:1.4}
.shell .kb-bub.is-you{align-self:flex-end; background:var(--wk-ink); border-color:var(--wk-ink); color:var(--wk-paper)}
.shell .kb-chat + p{margin-top:6px}
.shell .kb .kb-plain .kb-row{grid-template-columns:minmax(0,1fr) auto}
.shell .kb .kb-article .kb-plain .kb-row{padding:12px 20px; font-size:14.5px}
.shell .kb-useful{display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding-top:6px; border-top:1px solid var(--wk-rule); color:var(--wk-quiet)}
.shell .kb-useful button{height:32px; padding:0 14px; border-radius:999px; border:1px solid var(--wk-edge); background:transparent; font:500 13px var(--ui); color:var(--wk-ink); cursor:pointer}
.shell .kb-useful button:hover{background:var(--wk-well)}
.shell .kb-useful-msg:empty{display:none}
.shell .kb-useful-msg{flex-basis:100%; color:var(--wk-body)}

/* ---------- smaller screens ---------- */
@media (max-width:820px){
  .shell .kb .wk-wrap.kb-narrow{padding:24px 16px 40px}
  .shell .kb-cols, .shell .kb-tiles{grid-template-columns:minmax(0,1fr) !important}
  .shell .kb-col, .shell .kb .kb-tile{border-left:0 !important}
  .shell .kb-col + .kb-col, .shell .kb-tile + .kb-tile{border-top:1px solid var(--wk-line)}
  .shell .kb-more{flex-direction:column; align-items:flex-start}
}
@media (max-width:719px){
  .shell .kb-seg{flex-wrap:nowrap; align-self:stretch; overflow-x:auto; scrollbar-width:none}
  .shell .kb-seg > button{flex:none}
  .shell .kb-starters .kb-row-t span{display:none}
  .shell .kb-crumbs li:not(:last-child){display:none}
  .shell .kb-crumbs li + li::before{content:none}
  .shell .kb .wk-head-link{width:34px; padding:0; justify-content:center}
  .shell .kb .wk-head-link span{display:none}
  .shell .kb-h1{font-size:32px}
  .shell .kb-lede{font-size:16px}
  .shell .kb-jump{flex-wrap:nowrap; overflow-x:auto; margin:0 -16px; padding:0 16px; scrollbar-width:none}
  .shell .kb .kb-jump a{flex:none}
  .shell .kb-steps li{grid-template-columns:26px minmax(0,1fr); gap:12px; padding:14px 16px}
  .shell .kb-steps li::before{width:26px; height:26px; font-size:12px}
  .shell .kb-after, .shell .kb-ai{padding:14px 16px}
  .shell .kb-good{padding:6px 16px}
  .shell .kb .kb-row{padding:12px 16px}
  .shell .kb-ui{white-space:normal}
  .shell .kb-bub{max-width:85%}
  .shell .kb-useful button{height:44px; padding:0 18px; font-size:14px}
}
