/* ============================================================================
   leylive — blog (/blog/ + /blog/<slug>/), 2026-11-16. Loaded after pack.css.
   The scenes reuse the /aanbod/ pk-* and vp-* parts (aanbod.css, pack.css); this
   file only sizes them for a reading column and adds two blog scenes (stappen,
   vergelijk). Accent yellow: one small square on the [Kort antwoord] label only.
   Text on chip colours is always ink #101010 (≥ 7.1:1); muted text on paper uses
   --text-muted (AA).
   ========================================================================== */

/* ---------- layout (Maxim 16-11): the reading column sits in the middle of the page; the contents
   list stays at the left edge, sticky, with its CTA. Hero and body share one column grid, so the
   title starts on the same line as the text. Column 760px at 18px ≈ 80 characters: wide enough
   for few lines, still readable. ---------- */
:root { --bl-col: 760px; }
.bl-hero, .bl-grid { display: grid; grid-template-columns: minmax(0, var(--bl-col)); justify-content: center; }
.bl-grid { padding: 0 6vw var(--s9); }
@media (min-width: 1100px) {
  .bl-hero, .bl-grid { grid-template-columns: minmax(220px, 1fr) minmax(0, var(--bl-col)) minmax(0, 1fr); column-gap: var(--s7); justify-content: stretch; }
  .bl-hero > * { grid-column: 2 / 4; }
  .bl-aside { grid-column: 1; justify-self: start; max-width: 260px; }
  .bl-body { grid-column: 2; }
}

/* ---------- post hero ---------- */
.bl-hero { padding-bottom: var(--s7); }
.bl-hero .label a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bl-title { font-size: clamp(36px, 5.4vw, 76px); max-width: 17em; text-wrap: balance; }
.bl-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); font-size: 13px; letter-spacing: .02em; color: var(--text-muted); }

/* ---------- contents list: sticky, one Leylive chip colour per section ---------- */
.bl-aside { display: none; }
@media (min-width: 1100px) {
  .bl-aside { display: flex; flex-direction: column; gap: var(--s4); position: sticky; top: 112px; align-self: start; }
}
.bl-toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.bl-toc a {
  display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: baseline; gap: var(--s3);
  padding: 6px 0 6px var(--s4); margin-left: -1px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--text-muted);
  transition: color .2s ease-out, border-color .2s ease-out;
}
.bl-toc a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sec); translate: 0 -1px; transition: scale .2s var(--pk-ease); }
.bl-toc a:hover, .bl-toc a.is-on { color: var(--ink); border-left-color: var(--sec); }
.bl-toc a.is-on::before { scale: 1.25; }
.bl-aside-cta { align-self: flex-start; margin-top: var(--s4); }

/* ---------- body text ----------
   Reading text flows freely (data-no-typo on .bl-body keeps shell.js's sentence boxes out: those are
   for headlines, in prose they pushed every sentence onto its own line). The browser's own
   text-wrap: pretty keeps a last line from holding one word. */
.bl-body { min-width: 0; font-size: 18px; line-height: 1.65; }
.bl-body p, .bl-body li, .bl-body figcaption, .bl-row-l { text-wrap: pretty; }
.bl-body > p + p, .bl-body > .bl-list + p, .bl-body > p + .bl-list { margin-top: var(--s4); }
.bl-body a:not(.pill) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease-out; }
.bl-body a:not(.pill):hover { text-decoration-color: transparent; }
.bl-body strong { font-weight: 500; }
.bl-lead { margin-top: var(--s7); font-size: 19px; line-height: 1.6; }

/* short answer: the text left, the topic icon (draws itself once) + the key figure right */
.bl-answer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(232px, auto); gap: var(--s6); align-items: stretch;
  padding: var(--s6); border-radius: var(--radius-card); background: var(--dark); color: var(--dark-text);
}
.bl-answer .label { display: inline-flex; align-items: center; gap: var(--s2); color: var(--dark-muted); }
.bl-answer .label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.bl-answer-t { margin-top: var(--s3); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; font-weight: 300; text-wrap: balance; } /* no 2-word tail (Maxim 16-11) */
.bl-answer a { color: var(--dark-text); }
.bl-answer-side {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5);
  padding: var(--s5); border-radius: 12px; background: var(--hue); color: #101010;
}

/* mini scene per topic (worker/blog.mjs miniHtml): ink on the topic colour, plays once after the card rises */
.bl-mini { --d: 1s; --ease: cubic-bezier(.22, 1, .36, 1); flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 120px; font-size: 13px; line-height: 1; color: #101010; }
.bl-mini .ic { width: 15px; height: 15px; flex: none; stroke-width: 2; }
.bm-row, .bm-url, .bm-res, .bm-pill, .bm-chip { display: flex; align-items: center; gap: 8px; border-radius: 8px; background: rgba(255, 255, 255, .5); }
.bm-row { padding: 9px 10px; }
.bm-row > span { flex: 1; }
.bm-row b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #101010; color: var(--hue); }
.bm-row b .ic { width: 10px; height: 10px; stroke-width: 3; }
.bm-pill { align-self: flex-start; padding: 5px 9px; border-radius: 999px; font-weight: 500; }
.bm-pill i { width: 7px; height: 7px; border-radius: 50%; background: #101010; }
.bm-up { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin-top: 4px; }
.bm-up i { height: 34px; border-radius: 3px; background: #101010; }
.bm-cap { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.bm-url { padding: 10px 12px; }
.bm-url--sm { align-self: flex-start; }
.bm-type { white-space: nowrap; overflow: hidden; }
.bm-chip { align-self: flex-start; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #101010; color: var(--hue); }
.bm-shield .ic { width: 64px; height: 64px; stroke-width: 1.6; }
.bm-win { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .5); }
.bm-dots { display: flex; gap: 4px; margin-bottom: 2px; }
.bm-dots i { width: 6px; height: 6px; border-radius: 50%; background: #101010; opacity: .35; }
.bm-b { display: block; height: 7px; width: 78%; border-radius: 3px; background: #101010; opacity: .35; }
.bm-b--h { height: 14px; width: 62%; opacity: 1; }
.bm-b--img { height: 34px; width: 100%; border-radius: 5px; opacity: .18; }
.bm-b--s { width: 52%; }
.bm-b--btn { height: 16px; width: 38%; border-radius: 999px; opacity: 1; }
.bm-res { padding: 10px 12px; }
.bm-acts { display: flex; gap: 6px; }
.bm-acts .bm-chip { animation-delay: calc(var(--d) + 2.1s); }
.bm-acts .bm-chip + .bm-chip { animation-delay: calc(var(--d) + 2.25s); }
.bm-res .bm-b { flex: 1; width: auto; opacity: 1; height: 7px; }
.bm-stars { display: flex; gap: 2px; }
.bm-stars i { width: 10px; height: 10px; background: #101010; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.bm-bon { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .5); }
.bm-bl { display: flex; align-items: center; gap: 8px; }
.bm-bl i { flex: 1; height: 0; border-bottom: 1.5px dotted #101010; opacity: .5; }
.bm-bl--t { padding-top: 6px; border-top: 1.5px solid #101010; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .bm-row { animation: bm-in .5s var(--ease) calc(var(--d) + var(--i) * .25s) both; }
  .bm-row b { animation: bm-pop .35s var(--ease) calc(var(--d) + .35s + var(--i) * .25s) both; }
  .bl-mini--onderhoud .bm-row:first-child > .ic { animation: bm-spin .9s var(--ease) var(--d) both; }
  .bm-pill i { animation: bm-pulse 1.6s ease-out calc(var(--d) + .8s) 3; }
  .bm-up i { animation: bm-fill .3s var(--ease) calc(var(--d) + var(--i) * .06s) both; }
  .bm-cap { animation: bm-in .5s var(--ease) calc(var(--d) + 1s) both; }
  .bm-type { animation: bm-type 1s steps(13, end) var(--d) both; }
  .bm-chip, .bm-res { animation: bm-in .5s var(--ease) calc(var(--d) + 1.1s) both; }
  .bm-shield .ic > * { stroke-dasharray: 80; animation: bl-draw 1.1s cubic-bezier(.65, 0, .35, 1) var(--d) both; }
  .bl-mini--veilig .bm-url { animation: bm-in .5s var(--ease) calc(var(--d) + .8s) both; }
  .bm-win { animation: bm-in .5s var(--ease) var(--d) both; }
  .bm-win .bm-b { animation: bm-grow .5s var(--ease) calc(var(--d) + .3s + var(--i) * .18s) both; transform-origin: left; }
  .bm-stars i { animation: bm-pop .3s var(--ease) calc(var(--d) + 1.5s) both; }
  .bm-stars i:nth-child(2) { animation-delay: calc(var(--d) + 1.6s); } .bm-stars i:nth-child(3) { animation-delay: calc(var(--d) + 1.7s); }
  .bm-stars i:nth-child(4) { animation-delay: calc(var(--d) + 1.8s); } .bm-stars i:nth-child(5) { animation-delay: calc(var(--d) + 1.9s); }
  .bm-bl { animation: bm-in .45s var(--ease) calc(var(--d) + var(--i) * .22s) both; }
}
@keyframes bm-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes bm-pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes bm-spin { from { rotate: -270deg; } to { rotate: 0deg; } }
@keyframes bm-pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 16, 16, .45); } 100% { box-shadow: 0 0 0 7px rgba(16, 16, 16, 0); } }
@keyframes bm-fill { from { opacity: .15; scale: 1 .4; } to { opacity: 1; scale: 1 1; } }
@keyframes bm-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bm-grow { from { scale: 0 1; } to { scale: 1 1; } }
.bl-key { display: flex; flex-direction: column; gap: var(--s1, 4px); }
.bl-key-v { font-size: clamp(24px, 2vw, 28px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-key-l { font-size: 13px; line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) {
  .bl-key { animation: bl-rise .5s var(--pk-ease, ease-out) 1.6s both; }
}
@keyframes bl-draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes bl-rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* section headings carry their colour from the contents list */
.bl-h2 {
  margin: var(--s8) 0 var(--s4); scroll-margin-top: 112px;
  font-size: clamp(24px, 2.3vw, 32px); font-weight: 400; line-height: 1.2; letter-spacing: -.02em; max-width: 30ch; text-wrap: balance;
}
.bl-h2[style]::before { content: ""; display: inline-block; width: .3em; height: .3em; margin-right: .45em; border-radius: 2px; background: var(--sec); vertical-align: .2em; }
.bl-list { list-style: none; margin: 0; padding: 0; }
.bl-list li { position: relative; padding: 6px 0 6px var(--s6); }
.bl-list li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 12px; height: 1.5px; background: var(--ink); }
/* tip (11-16, Maxim "valt out of tone"): a soft wash of its section colour + a solid chip, like the site's chips */
.bl-tip { margin-top: var(--s6); padding: var(--s5) var(--s6); border-radius: var(--radius-card); background: color-mix(in srgb, var(--sec, #FFD91B) 16%, var(--bg)); color: var(--ink, #101010); }
.bl-tip-l { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--sec, #FFD91B); color: var(--sec-ink, #101010); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.bl-tip-l .ic { width: 14px; height: 14px; }
.bl-tip p:last-child { margin-top: var(--s3); font-size: 18px; line-height: 1.55; font-weight: 400; text-wrap: balance; } /* ≤6 lines: even lines, no 2-word tail */

/* ---------- scenes in the reading column ---------- */
.bl-scene { margin: var(--s7) 0; }
.bl-scene .pk-vis {
  height: auto; min-height: 280px; margin-bottom: 0; padding: var(--s7) var(--s5);
  border-radius: var(--radius-panel);
  background: color-mix(in srgb, var(--hue) 22%, var(--surface));
  transition: background-color .3s ease-out;
}
@media (hover: hover) and (pointer: fine) { .bl-scene:hover .pk-vis { background: var(--hue); } }
.bl-scene figcaption { margin-top: var(--s3); font-size: 14px; line-height: 1.5; color: var(--text-muted); max-width: 60ch; }

.bl-chat { width: 100%; max-width: 420px; }
.bl-chat .pk-msg { font-size: 14.5px; }
.bl-stack { display: flex; flex-direction: column; align-items: center; gap: var(--s4); width: 100%; }
.bl-stack .pk-addr { max-width: 360px; }
.bl-scene .pk-panel, .bl-scene .pk-callcard { max-width: 360px; }
.bl-hours { width: 100%; max-width: 300px; }
.bl-bon { display: block; width: 100%; max-width: 440px; }
.bl-bon .vpb-l { font-size: 15px; }
.bl-scene--post .pk-vis { gap: var(--s5); }
.bl-scene--post .vp-ask { width: 46%; max-width: 260px; }
.bl-scene .vp-slots { max-width: 380px; }

/* scene: numbered steps that tick off one by one */
.bl-steps { display: flex; flex-direction: column; gap: var(--s2); width: 100%; max-width: 420px; }
.bl-step {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: var(--s3);
  padding: 10px 14px; border-radius: 12px; background: #fff; color: #101010;
  font-size: 14.5px; line-height: 1.35; box-shadow: 0 2px 8px rgba(16,16,16,.08);
}
.bl-step b {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: #101010; color: #F6F5F1; font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums;
}
.bl-step .ic { width: 18px; height: 18px; color: #101010; }

/* scene: without / with */
.bl-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); width: 100%; max-width: 560px; }
.bl-vs-card { display: flex; flex-direction: column; gap: 2px; padding: var(--s4); border-radius: 14px; background: #fff; color: #101010; box-shadow: 0 2px 8px rgba(16,16,16,.08); }
.bl-vs-card.is-good { background: #101010; color: #F6F5F1; }
.bl-vs-h { padding-bottom: var(--s2); font-size: 11px; letter-spacing: .06em; color: #5F5C57; }
.bl-vs-card.is-good .bl-vs-h { color: #B9B6AF; }
.bl-vs-row { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2); align-items: start; padding: 6px 0; font-size: 14px; line-height: 1.35; }
.bl-vs-row + .bl-vs-row { border-top: 1px solid var(--line); }
.bl-vs-card.is-good .bl-vs-row + .bl-vs-row { border-top-color: #2A2A28; }
.bl-vs-row .ic { width: 16px; height: 16px; margin-top: 1px; color: #8E8B84; }
.bl-vs-card.is-good .bl-vs-row .ic { color: #80ED99; }

/* the two blog scenes play once, like the /aanbod/ ones (pack.js arms [data-scenes]) */
.pk-armed .bl-step, .pk-armed .bl-vs-row { opacity: 0; translate: 0 8px; transition: opacity .35s var(--pk-ease), translate .35s var(--pk-ease); }
.pk-armed .bl-step .ic { opacity: 0; scale: .4; transition: opacity .25s ease-out, scale .3s var(--pk-ease); }
.pk-armed .is-live .bl-step, .pk-armed .is-live .bl-vs-row { opacity: 1; translate: 0 0; }
.pk-armed .is-live .bl-step { transition-delay: calc(.15s + var(--i) * .32s); }
.pk-armed .is-live .bl-step .ic { opacity: 1; scale: 1; transition-delay: calc(.4s + var(--i) * .32s); }
.pk-armed .is-live .bl-vs-card:first-child .bl-vs-row { transition-delay: calc(.15s + var(--i) * .12s); }
.pk-armed .is-live .bl-vs-card.is-good .bl-vs-row { transition-delay: calc(.85s + var(--i) * .12s); }

/* ---------- vaak gevraagd ---------- */
.bl-faq { margin-top: var(--s8); }
.bl-faq .bl-h2 { margin-top: 0; }
.bl-q { border-top: 1px solid var(--line); }
.bl-q:last-child { border-bottom: 1px solid var(--line); }
.bl-q summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: var(--s5) 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 400; line-height: 1.35;
}
.bl-q summary::-webkit-details-marker { display: none; }
.bl-q-i { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.bl-q-i::before, .bl-q-i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: currentColor; transition: rotate .25s var(--pk-ease); }
.bl-q-i::after { rotate: 90deg; }
.bl-q[open] .bl-q-i::after { rotate: 0deg; }
.bl-q p { padding: 0 var(--s6) var(--s5) 0; color: var(--text-muted); }

/* ---------- bronnen ---------- */
.bl-src { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 14px; }
.bl-src ul { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s2); }
.bl-src a { color: var(--text-muted); }

/* ---------- /blog/ list + "meer vragen" ---------- */
.bl-index { padding-top: var(--s6); }
.bl-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bl-row { border-bottom: 1px solid var(--line); }
.bl-row-a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta go" "q go" "l go";
  column-gap: var(--s6); row-gap: var(--s2); align-items: center;
  padding: var(--s6) var(--s4); border-radius: 12px; transition: background-color .25s ease-out;
}
.bl-row-meta { grid-area: meta; display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; letter-spacing: .03em; color: var(--text-muted); }
.bl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue); }
.bl-row-q { grid-area: q; font-size: clamp(22px, 2.4vw, 34px); font-weight: 300; line-height: 1.18; letter-spacing: -.02em; max-width: 30ch; text-wrap: balance; }
.bl-row-l { grid-area: l; color: var(--text-muted); font-weight: 300; max-width: 62ch; }
.bl-row-go {
  grid-area: go; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  border-radius: var(--radius-pill); background: var(--pill); font-size: 14px; white-space: nowrap;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.bl-row-go span { transition: translate .2s ease-out; }
@media (hover: hover) and (pointer: fine) {
  .bl-row-a:hover { background: color-mix(in srgb, var(--hue) 20%, var(--bg)); }
  .bl-row-a:hover .bl-row-go { background: var(--ink); color: var(--bg); }
  .bl-row-a:hover .bl-row-go span { translate: 3px 0; }
}
.bl-row-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.bl-row-a:active .bl-row-go { scale: .97; }
.bl-rows--more .bl-row-q { font-size: clamp(20px, 1.9vw, 26px); }
.bl-empty { color: var(--text-muted); }
.bl-more { padding-top: 0; }

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  .bl-body { font-size: 16.5px; }
  .bl-lead { font-size: 17.5px; margin-top: var(--s6); }
  .bl-answer { grid-template-columns: minmax(0, 1fr); gap: var(--s5); padding: var(--s5); }
  .bl-answer-side { gap: var(--s4); padding: var(--s4); }
  .bl-mini { flex: 1; min-width: 0; }
  .bl-tip { padding: var(--s5); }
  .bl-h2 { margin-top: var(--s7); }
  .bl-scene { margin: var(--s6) 0; }
  .bl-scene .pk-vis { min-height: 220px; padding: var(--s6) var(--s4); }
  .bl-scene--post .pk-vis { flex-direction: column; }
  .bl-scene--post .vp-ask { width: 100%; max-width: none; }
  .bl-vs { grid-template-columns: 1fr; }
  .bl-row-a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "q" "l" "go"; padding: var(--s5) 0; }
  .bl-row-go { justify-self: start; margin-top: var(--s2); }
  .bl-q summary { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-scene .pk-vis, .bl-row-a, .bl-row-go, .bl-row-go span, .bl-toc a, .bl-q-i::before, .bl-q-i::after { transition: none; }
}
