/* One reading scale for the article; device chrome keeps its own hierarchy. */
#inhoud.wa-story {
  --wa-copy-size: 1.0625rem;
  --wa-caption-size: 1rem;
}
#inhoud.wa-story :where(.wa-hero-copy, .wa-section-intro, .wa-step, .wa-message-copy,
  .wa-placements figcaption, .wa-related-note, .wa-change-layout > div,
  .wa-insight-layout > div, .wa-start > div) > p:not(.wa-live),
#inhoud.wa-story .wa-flow-foot,
#inhoud.wa-story .wa-start-check li {
  font-size: var(--wa-copy-size);
  line-height: 1.6;
}
#inhoud.wa-story .wa-hero-copy .wa-intro {font-size: max(1.1875rem, var(--wa-copy-size))}
#inhoud.wa-story :is(.wa-hero-scene, .wa-change-visual, .wa-insight-visual, .wa-message-preview) figcaption,
#inhoud.wa-story :is(.wa-message-choices small, .wa-composer > span, .wa-field-message,
  .wa-first-message > div, .wa-first-message > p, .wa-change-messages p,
  .wa-chat-log p, .wa-flow .wa-field-line, .wa-change-code > span) {
  font-size: var(--wa-caption-size);
  line-height: 1.45;
}
#inhoud.wa-story :is(.wa-step-label > strong, .wa-message-choices strong, .wa-textlink,
  .wa-button, .wa-related-note a, .wa-start-check a, .wa-jump a) {
  font-size: var(--wa-caption-size);
  line-height: 1.4;
}
#inhoud.wa-story .wa-step-art {height:auto; min-height:16rem}
#inhoud.wa-story .wa-hero-phone .wa-phone {height:auto; min-height:0}
#inhoud.wa-story .wa-composer > span {height:auto}
#inhoud.wa-story .wa-message-preview .wa-phone {width:min(100%,15rem);min-height:max-content}

@media (min-width: 651px) and (max-width: 1100px) {
  #inhoud.wa-story :is(.wa-hero, .wa-message-layout, .wa-change-layout, .wa-insight-layout) {
    grid-template-columns:minmax(0,1fr);
    justify-items:center;
    row-gap:2rem;
  }
  #inhoud.wa-story :is(.wa-hero-copy, .wa-hero-scene, .wa-message-copy, .wa-message-preview,
    .wa-change-layout > div, .wa-change-visual, .wa-insight-layout > div, .wa-insight-visual,
    .wa-placements, .wa-section-intro) {
    box-sizing:border-box;
    width:min(100%,42rem);
    max-width:100%;
    margin-inline:auto;
    justify-self:center;
  }
  #inhoud.wa-story .wa-change-layout > div {order:-1}
  #inhoud.wa-story .wa-placements {grid-template-columns:minmax(0,1fr);gap:2.5rem}
  #inhoud.wa-story .wa-placements figure {display:block;width:100%;margin:0}
  #inhoud.wa-story .wa-placements figcaption {padding:1rem 0 0}
}
@media (max-width: 650px) {
  #inhoud.wa-story {--wa-copy-size:1.125rem}
  html body #inhoud.wa-story :is(.wa-example-note,.wa-step > p) {font-size:var(--wa-copy-size);line-height:1.6}
  #inhoud.wa-story .wa-step > p {padding-inline-start:0}
  #inhoud.wa-story .wa-step-art {padding-inline-start:0}
  #inhoud.wa-story .wa-flow::before {display:none}
}
.wa-story .wa-scan-target .wa-real-qr {width:108px}
.wa-story .wa-change-code .wa-real-qr {width:104px}
.wa-example-data fieldset {border:0;padding:0;margin:0 0 .9rem;min-width:0}
.wa-example-data legend {font-size:1rem;font-weight:650;padding:0}
.wa-place-picker {display:flex;gap:1rem;flex-wrap:wrap}
.wa-place-picker label {position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 .15rem;font-size:1rem;color:var(--wa-muted);cursor:pointer}
.wa-place-picker input {appearance:auto;width:1rem;height:1rem;flex:none;margin:0 .45rem 0 0;accent-color:var(--wa-accent);cursor:pointer;color-scheme:light}
html[data-theme=dark] .wa-place-picker input {color-scheme:dark}
.wa-place-picker label:has(:checked) {color:var(--wa-ink);font-weight:650}
.wa-place-picker label:has(:checked)::after {content:"";position:absolute;bottom:3px;inset-inline:0;height:2px;background:var(--wa-accent);pointer-events:none}
.wa-place-picker label:hover {color:var(--wa-accent)}
.wa-place-picker label:has(:focus-visible) {outline:2px solid var(--wa-accent);outline-offset:2px;border-radius:3px}
.wa-example-data:has(input[value="folder"]:checked) #trend-verpakking,
.wa-example-data:has(input[value="verpakking"]:checked) #trend-folder {display:none}
.wa-example-data .wa-trend {--panel:#fff;--axis:#526780;--grid:#d8e3ef;--ink:#071639;--tag:#eef7fb;--accent:#007d80;
  color:var(--ink);background:var(--panel);border:1px solid var(--grid);border-radius:8px;padding:clamp(.95rem,2vw,1.5rem);box-shadow:0 12px 32px #0716390d;container-type:inline-size}
html[data-theme=dark] .wa-example-data .wa-trend {--panel:#172b49;--ink:white;--axis:#bbc8d8;--grid:#405570;--tag:#273d58;--accent:#03dac5}
.wa-chart-top,.wa-chart-top span,.wa-chart-top small {display:flex;align-items:center;gap:.45rem}
.wa-chart-top {justify-content:space-between;color:var(--accent);font-size:.95rem;font-weight:650}
.wa-chart-top small {background:var(--tag);padding:.3rem .6rem;border-radius:6px;font-size:.875rem;color:var(--axis)}
.wa-example-data .wa-trend h3 {margin:.3rem 0 0;color:var(--ink);font-size:1.3rem;line-height:1.4}
.wa-example-data .wa-trend p {margin:.15rem 0 0;color:var(--axis);font-size:1rem}
.wa-plot {position:relative;height:clamp(8rem,28cqw,12.5rem);margin:1.4rem 1.1rem 2rem 2.1rem}
.wa-curve,.wa-gridline,.wa-dates,.wa-dates span,.wa-gridline span {position:absolute}
.wa-curve {inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.wa-gridline {inset-inline:0;border-top:1px dashed var(--grid)}
.wa-gridline span,.wa-dates span {font-size:.875rem;color:var(--axis);font-variant-numeric:tabular-nums;white-space:nowrap}
.wa-gridline span {right:100%;padding-right:.65rem;transform:translateY(-50%)}
.wa-dates {top:calc(100% + .65rem);inset-inline:0}
.wa-dates span {transform:translateX(-50%)}
.wa-point {position:absolute;transform:translate(-50%,-50%);width:clamp(24px,7cqw,42px);height:40px;border:0;padding:0;background:transparent;cursor:pointer;display:grid;place-items:center}
.wa-point::before {content:"";width:8px;height:8px;box-sizing:border-box;border-radius:50%;background:#00b4b4;border:2px solid var(--panel)}
.wa-point:is(:hover,:focus)::before {background:#03dac5;border-color:white;width:11px;height:11px;box-shadow:0 0 0 1px #007d80}
.wa-point-tip {display:none;position:absolute;bottom:80%;white-space:nowrap;padding:.45rem .65rem;font:600 .875rem/1.5 Arial,sans-serif;color:white;background:#071639;border:1px solid #29686d;border-radius:8px;pointer-events:none}
.wa-point-tip strong {display:block;color:#03dac5}
.wa-point:is(:hover,:focus) {z-index:1}
.wa-point:is(:hover,:focus) .wa-point-tip {display:block}
.wa-point:first-of-type .wa-point-tip {left:25%}
.wa-point:last-of-type .wa-point-tip {right:25%}
@container (max-width:390px) {.wa-dates span:nth-child(even) {display:none}}

html[data-theme="dark"] .wa-story,
html[data-theme="dark"] .wa-story .wa-jump {
  background-color: #071639;
}
html[data-theme="dark"] .wa-story :is(.wa-flow-section, .wa-placements-section, .wa-insight-section, .wa-start) {
  background-color: #0D203D;
}
html[data-theme="dark"] .wa-story :is(#beginbericht, #wijzigen) {
  background-color: #07132F;
}

/* Hergebruik de tint van het voorbeeldgesprek voor uitgelichte vlakken. */
html[data-theme="dark"] .wa-story :is(.wa-hero-scene, .wa-hero-scene figcaption, .wa-change-visual) {
  background: var(--wa-soft);
  border-color: var(--wa-edge);
}

html[data-theme="dark"] .wa-story .wa-hero-scene figcaption {
  color: var(--wa-muted);
}

html[data-theme="dark"] .wa-story .wa-change-messages .wa-current-message {
  background-color: #194655;
  border-color: #487082;
  color: var(--wa-ink);
}
