/* "Knowing When to Stop": figures, café simulation, what-if calculator and decision check.
   Uses the Homepage tokens from home.css. Colour is functional only:
   teal = contribution gained or kept, red = value lost, ink = everything else. */

.article-body h3 { margin: 32px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 560; letter-spacing: -.01em; }

/* ---------- shared figure frame (same rhythm as the agent-flow figure) ---------- */
.ks-fig { margin: 44px 0 48px; padding-top: 14px; border-top: 1px solid var(--hair); }
.ks-kicker { font: 500 12px/1.35 var(--mono); letter-spacing: .02em; color: var(--muted); }
.ks-fig figcaption { margin-top: 22px; padding-top: 12px; border-top: 1px dashed var(--dash); font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.article-body .ks-fig p + p, .article-body .ks-sim p + p, .article-body .ks-calc p + p, .article-body .ks-check p + p { margin-top: 0; }
.ks-gain { color: var(--teal); }
.ks-loss { color: var(--red); }
b.ks-gain, b.ks-loss { font-weight: 600; }

/* ---------- column charts (figures 1 and 3): real text, so labels stay legible on phones ---------- */
.ks-bars { position: relative; height: 270px; margin: 22px 0 0; padding-bottom: 46px; font-variant-numeric: tabular-nums; }
.ks-grid, .ks-plot { position: absolute; top: 0; right: 0; bottom: 46px; }
.ks-grid { left: 0; }
.ks-plot { left: 44px; display: flex; }
.ks-grid span { position: absolute; left: 0; right: 0; top: var(--y); height: 0; font: 500 11.5px/0 var(--mono); color: var(--faint); }
.ks-grid span::after { content: ""; position: absolute; left: 44px; right: 0; top: 0; border-top: 1px solid var(--hair-2); }
.ks-grid .ks-zero { color: var(--ink); }
.ks-grid .ks-zero::after { border-top: 1.5px solid var(--ink); }
.ks-col, .ks-group { position: relative; flex: 1 1 0; min-width: 0; }
.ks-bar { position: absolute; top: var(--t); height: var(--h); left: 50%; width: min(64px, 58%); translate: -50% 0; border-radius: 3px 3px 0 0; font-style: normal; }
.ks-bar b { position: absolute; left: 50%; bottom: 100%; translate: -50% -6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ks-pos { background: var(--teal); }
.ks-pos b { color: var(--teal); }
.ks-neg { background: var(--red); border-radius: 0 0 3px 3px; }
.ks-neg b { bottom: auto; top: 100%; translate: -50% 6px; color: var(--red); }
.ks-nil { height: 3px; margin-top: -1.5px; background: var(--ink); border-radius: 2px; }
.ks-x { position: absolute; left: 0; right: 0; top: calc(100% + 34px); text-align: center; font-size: 14px; line-height: 1.3; color: var(--muted); }
.ks-bars-slices .ks-x { top: calc(100% + 36px); }
.ks-x small { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--faint); }

.ks-bars-churn { height: 300px; padding-bottom: 54px; }
.ks-bars-churn .ks-grid, .ks-bars-churn .ks-plot { bottom: 54px; }
.ks-bars-churn .ks-x { top: calc(100% + 10px); }
.ks-pair { position: absolute; inset: 0; left: 50%; width: min(150px, 80%); translate: -50% 0; }
.ks-pair .ks-bar { width: 44%; translate: 0 0; }
.ks-pair .ks-bar:first-child { left: 0; }
.ks-pair .ks-bar:nth-child(2) { left: 52%; }
.ks-ink { background: var(--ink); }
.ks-ink b { color: var(--ink); }
.ks-teal { background: var(--teal); }
.ks-teal b { color: var(--teal); }
.ks-drop { position: absolute; left: 100%; margin-left: 8px; top: var(--from); height: calc(var(--to) - var(--from)); width: 6px; border: 1.5px solid var(--teal); border-left: 0; }
.ks-group:last-child .ks-x small { color: var(--teal); }
.ks-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.ks-legend li { display: flex; align-items: center; gap: 8px; }
.ks-sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.ks-sw-ink { background: var(--ink); }
.ks-sw-teal { background: var(--teal); }

/* ---------- tables ---------- */
.ks-table { width: 100%; margin: 28px 0 8px; border-collapse: collapse; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.ks-table caption { text-align: left; font: 500 12px/1.35 var(--mono); letter-spacing: .02em; color: var(--muted); padding-bottom: 10px; }
.ks-table th, .ks-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hair); text-align: right; vertical-align: bottom; }
.ks-table th:first-child { text-align: left; }
.ks-table thead th { font-weight: 500; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.ks-table tbody th { font-weight: 600; }

/* ---------- flow (figure 2) ---------- */
.ks-stages { margin-top: 20px; display: grid; justify-items: start; }
.ks-stage-card { width: min(100%, 520px); background: var(--sheet); border-radius: 10px; box-shadow: var(--lift); padding: 16px 18px 15px; }
.ks-stage-name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.ks-stage-what { margin-top: 4px; font-size: 15.5px; line-height: 1.5; }
.ks-stage-unit { margin-top: 8px; font: 500 11.5px/1.45 var(--mono); color: var(--muted); }
.ks-stage-decide { box-shadow: inset 0 0 0 1.5px var(--ink), var(--lift); }
.ks-link { position: relative; min-height: 58px; width: min(100%, 520px); display: flex; align-items: center; padding-left: calc(32px + 18px); }
.ks-link::before { content: ""; position: absolute; left: 32px; top: 6px; bottom: 9px; width: 1.5px; background: rgba(31, 36, 33, .55); }
.ks-link::after { content: ""; position: absolute; left: 28.3px; bottom: 9px; width: 8px; height: 8px; border-right: 1.5px solid rgba(31, 36, 33, .55); border-bottom: 1.5px solid rgba(31, 36, 33, .55); rotate: 45deg; }
.ks-link span { font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.ks-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ks-actions li { font-size: 14.5px; line-height: 1.3; padding: 5px 11px 6px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.ks-actions li:last-child { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- equations ---------- */
.article-body .ks-eq { margin: 22px 0 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ks-eq > span:nth-child(2) { color: var(--faint); }
.ks-eq b { font-weight: 600; }
.article-body .ks-eq-words { font-size: 17.5px; line-height: 1.55; letter-spacing: 0; gap: 2px 10px; }
.ks-eq-words > span:first-child { font-weight: 600; }
.ks-eq-words i { font-style: normal; color: var(--faint); padding: 0 2px; }

/* ---------- waterfall (figure 4) ---------- */
.ks-water { margin-top: 22px; display: grid; grid-template-columns: minmax(170px, 34%) 1fr; column-gap: 20px; font-variant-numeric: tabular-nums; }
.ks-water-axis { grid-column: 2; position: relative; height: 20px; }
.ks-water-axis span { position: absolute; left: var(--x); translate: -50% 0; font: 500 11.5px/1 var(--mono); color: var(--faint); }
.ks-w-row { display: contents; }
.ks-w-label { padding: 12px 0; font-size: 15px; line-height: 1.35; border-top: 1px solid var(--hair-2); }
.ks-w-label small { display: block; margin-top: 2px; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.ks-w-track { position: relative; min-height: 64px; border-top: 1px solid var(--hair-2); }
.ks-w-track::before { content: ""; position: absolute; left: 25%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: var(--ink); }
.ks-w-bar { position: absolute; left: var(--l); width: var(--w); top: 50%; height: 30px; translate: 0 -50%; border-radius: 3px; }
.ks-gain-bar { background: var(--teal); }
.ks-loss-bar { background: color-mix(in srgb, var(--red) 16%, var(--sheet)); box-shadow: inset 0 0 0 1.5px var(--red); }
.ks-net-bar { background: var(--red); }
.ks-w-val { position: absolute; top: 50%; translate: 0 -50%; font-size: 16px; font-weight: 600; white-space: nowrap; }
.ks-w-val.ks-gain { right: calc(100% - var(--x) + 10px); color: #fff; }
.ks-w-val.ks-w-left { left: calc(var(--x) + 10px); }
.ks-w-big { left: calc(var(--x) + 12px); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; line-height: 1; }
.ks-w-net .ks-w-label { font-weight: 600; }
.ks-w-net .ks-w-label, .ks-w-net .ks-w-track { border-top: 1.5px solid var(--ink); }
.ks-w-net .ks-w-track { min-height: 76px; }

@media (max-width: 560px) {
  .ks-water { grid-template-columns: 1fr; }
  .ks-water-axis { grid-column: 1; }
  .ks-w-label { padding-bottom: 0; }
  .ks-w-track { border-top: 0; }
  .ks-w-net .ks-w-track { border-top: 0; }
  .ks-bars { height: 230px; }
  .ks-bars-churn { height: 280px; }
  .ks-x { font-size: 13px; }
  .ks-table { font-size: 14.5px; }
}

/* ---------- interactive 01: the café ---------- */
.ks-sim { --stage-gap: 14px; position: relative; width: min(1060px, calc(100vw - 48px)); margin: 36px 0 32px 50%; translate: -50% 0; padding: 22px 0 0; border-top: 1px solid var(--ink); }
.ks-sim-head { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 8px 40px; align-items: start; }
.ks-sim h4, .ks-calc h4 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; font-weight: 540; font-variation-settings: "wdth" 96; letter-spacing: -.02em; }
.ks-sim-head p { max-width: 40em; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.ks-stage { position: relative; margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: var(--stage-gap); }
.ks-pane { position: relative; background: var(--sheet); border-radius: 10px; box-shadow: var(--lift); overflow: hidden; }
.ks-pane canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* the floor plan keeps 3:2, with a strip above it for its label */
.ks-pane-floor::before { content: ""; display: block; margin-top: 40px; padding-top: 66.667%; }
.ks-pane-floor canvas { top: 40px; height: calc(100% - 40px); }
.ks-pane-counter { min-height: 220px; }
/* time: the counter is today, the dining room is the visits that follow */
.ks-pane-when { position: absolute; top: 11px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 15.5px; line-height: 1.25; font-weight: 600; pointer-events: none; }
.ks-pane-when span { font: 500 11.5px/1.3 var(--mono); color: var(--muted); }
.ks-pane-label { position: absolute; top: 40px; left: 14px; max-width: 44%; font: 500 11.5px/1.3 var(--mono); color: var(--muted); pointer-events: none; }
.ks-pl-right { left: auto; right: 14px; text-align: right; }
.ks-short { display: none; }
.ks-then { position: absolute; z-index: 2; top: 50%; left: calc((100% - var(--stage-gap)) / 2.22 + var(--stage-gap) / 2); translate: -50% -50%; display: grid; place-items: center; padding: 5px 10px 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 11.5px/1 var(--mono); pointer-events: none; }
.ks-then span::after { content: " \2192"; }
.ks-debt { position: absolute; right: 0; width: 50%; top: 22%; display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--red); pointer-events: none; }
.ks-debt b { font-size: clamp(30px, 4.4vw, 48px); line-height: 1; font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ks-debt span { font: 500 12px/1.3 var(--mono); }
.ks-debt[hidden] { display: none; }
.ks-nojs { grid-column: 1 / -1; padding: 18px 0; color: var(--muted); }
.ks-sim:not(.is-live) .ks-pane, .ks-sim:not(.is-live) .ks-curve, .ks-sim:not(.is-live) .ks-curve-key { display: none; }
.ks-sim.is-live .ks-nojs { display: none; }

.ks-sim .ks-control { grid-area: control; }
.ks-sim .ks-receipt { grid-area: receipt; }
.ks-sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); column-gap: var(--stage-gap);
  grid-template-areas: "head head" "stage stage" "control receipt" "note note" "details details"; }
.ks-sim-head { grid-area: head; }
.ks-stage { grid-area: stage; }
.ks-sim-note { grid-area: note; }
.ks-details { grid-area: details; }
.ks-sim > .vh, .ks-sim > script { position: absolute; }

.ks-control { margin-top: 18px; padding: 16px 18px 14px; background: var(--sheet); border-radius: 10px; box-shadow: var(--lift); }
.ks-control label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15.5px; font-weight: 560; }
.ks-control output { font-size: 30px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ks-curve { display: block; width: calc(100% - 26px); height: 72px; margin: 10px 13px 0; overflow: visible; }
.ks-curve .c-zero { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .5; }
.ks-curve path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ks-curve .c-gain { stroke: var(--teal); }
.ks-curve .c-loss { stroke: var(--red); stroke-dasharray: 4 3; }
.ks-curve .c-negfill { fill: color-mix(in srgb, var(--red) 16%, transparent); stroke: none; }
.ks-curve .c-posfill { fill: color-mix(in srgb, var(--teal) 14%, transparent); stroke: none; }
.ks-curve .c-mark { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }

.ks-sim input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 34px; margin: 2px 0 0; background: none; cursor: pointer; touch-action: pan-y; }
.ks-sim input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--ink) 0 var(--fill, 40%), var(--hair) var(--fill, 40%)); }
.ks-sim input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--hair); }
.ks-sim input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ink); }
.ks-sim input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(31, 36, 33, .2); }
.ks-sim input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); }
.ks-sim input[type="range"]:focus-visible { outline: none; }
.ks-sim input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 3px; }
.ks-sim input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 3px; }
.ks-scale { display: flex; justify-content: space-between; gap: 12px; font: 500 11.5px/1.3 var(--mono); color: var(--faint); }
.ks-curve-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ks-curve-key li { display: flex; align-items: center; gap: 7px; }
.ks-curve-key li::before { content: ""; width: 16px; height: 0; border-top: 2px solid; }
.ks-k-gain::before { color: var(--teal); }
.ks-k-loss::before { color: var(--red); border-top-style: dashed !important; }
.ks-curve-key .ks-k-net::before { height: 10px; border: 0 !important; background: linear-gradient(to right, color-mix(in srgb, var(--teal) 30%, transparent) 50%, color-mix(in srgb, var(--red) 30%, transparent) 50%); }

/* the receipt: the till's view of the same numbers */
.ks-receipt, .ks-calc-out { font-variant-numeric: tabular-nums; }
.ks-receipt { margin-top: 18px; padding: 10px 18px 14px; background: var(--sheet); border-radius: 10px; box-shadow: var(--lift); }
.ks-r-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--dash); font-size: 15.5px; line-height: 1.35; }
.ks-r-row small { display: block; margin-top: 3px; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.ks-r-row b { font-size: 19px; white-space: nowrap; }
.ks-r-row b.is-zero { color: var(--muted); }
.ks-r-net { border-bottom: 0; padding-bottom: 2px; font-weight: 600; }
.ks-r-net b { font-size: clamp(30px, 3.6vw, 40px); line-height: 1; letter-spacing: -.03em; transition: color .2s; }
.ks-r-net.is-neg b { color: var(--red); }
.ks-r-net.is-pos b { color: var(--teal); }
.ks-r-net small { font-weight: 500; }
.ks-r-net.is-neg small { color: var(--red); }

.ks-sim-note { margin-top: 16px; max-width: 46em; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ks-details { margin-top: 12px; font-size: 15px; }
.ks-details summary { cursor: pointer; color: var(--teal); font-weight: 500; width: fit-content; }
.ks-details p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.ks-details .ks-table { margin-top: 12px; }
.ks-table-wrap { overflow-x: auto; }

@media (max-width: 760px) {
  .ks-sim { width: calc(100vw - 24px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "control" "receipt" "note" "details"; }
  .ks-sim-head { grid-template-columns: minmax(0, 1fr); }
  .ks-stage { grid-template-columns: minmax(0, 1fr); --stage-gap: 10px; }
  .ks-then { position: static; translate: none; justify-self: center; }
  .ks-then span::after { content: " \2193"; }
  .ks-pane-counter { aspect-ratio: 16 / 10; }
  .ks-long { display: none; }
  .ks-short { display: inline; }
  .ks-debt { top: 34%; }
  .ks-debt span { max-width: 15em; }
  .ks-receipt { margin-top: 10px; }
  .ks-details { overflow-x: auto; }
  .ks-table-num { font-size: 13px; }
  .ks-table-num th, .ks-table-num td { padding-right: 8px; }
}

/* ---------- interactive 02: what if? ---------- */
.ks-calc { margin: 32px 0 28px; padding: 20px 22px 22px; background: var(--sheet); border-radius: 12px; box-shadow: var(--lift); }
.ks-calc-intro { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.ks-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin-top: 20px; }
.ks-group-src { min-width: 0; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--hair); display: grid; gap: 16px; }
.ks-group-src legend { float: left; width: 100%; padding: 0; font: 500 12px/1.35 var(--mono); letter-spacing: .02em; color: var(--muted); }
.ks-group-src legend span { display: block; margin-top: 2px; font: 400 13.5px/1.4 var(--sans); letter-spacing: 0; color: var(--faint); }
.ks-field { position: relative; display: grid; grid-template-columns: fit-content(78%) minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; }
.ks-field label { font-size: 15px; line-height: 1.35; }
.ks-tip summary { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; list-style: none; cursor: pointer; font: 600 12.5px/1 var(--sans); color: var(--teal); box-shadow: inset 0 0 0 1px var(--hair); }
.ks-tip summary::-webkit-details-marker { display: none; }
.ks-tip summary:hover, .ks-tip[open] summary { background: var(--teal); color: #fff; box-shadow: none; }
.ks-tip p { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 4px); padding: 10px 13px 11px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 14.5px; line-height: 1.5; box-shadow: 0 14px 30px -14px rgba(31, 36, 33, .5); }
.ks-field output { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ks-field > input { grid-column: 1 / -1; width: 100%; height: 30px; margin: 0; accent-color: var(--ink); cursor: pointer; touch-action: pan-y; }
.ks-example { margin-top: 18px; font-size: 15px; line-height: 1.55; }
.ks-example summary { cursor: pointer; width: fit-content; color: var(--teal); font-weight: 500; }
.ks-example > p { margin-top: 10px; color: var(--muted); }
.ks-ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 12px 16px; margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: var(--paper); }
.ks-ex-grid label { display: grid; gap: 6px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.ks-ex-grid input { width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--hair); font: 500 17px/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.ks-ex-out { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.ks-ex-out b { font-size: 24px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ks-ex-grid .ks-reset { grid-column: 1 / -1; justify-self: start; margin: 0; }
.ks-ex-grid .ks-reset:disabled { color: var(--faint); cursor: default; }
.ks-calc-out { margin-top: 18px; border-top: 1px solid var(--hair); }
.ks-calc-out .ks-r-net b { font-size: clamp(28px, 3.4vw, 36px); }
.ks-meter { display: flex; height: 8px; margin: 14px 0 0; border-radius: 999px; overflow: hidden; background: var(--hair-2); }
.ks-meter i { width: var(--w); transition: width .2s; }
.ks-meter-gain { background: var(--teal); }
.ks-meter-loss { background: var(--red); }
.ks-be { margin-top: 12px; font-size: 15px; line-height: 1.55; }
.ks-reset { margin-top: 16px; font: 500 15px/1 var(--sans); color: var(--ink); background: none; border: 0; border-radius: 999px; padding: 9px 16px 10px; box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; }
.ks-reset:hover { background: var(--paper); }
@media (max-width: 640px) {
  .ks-calc { padding: 18px 16px 18px; }
  .ks-fields { grid-template-columns: minmax(0, 1fr); }
  .ks-ex-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ks-ex-out { grid-column: 1 / -1; }
}

/* ---------- interactive 03: decision check ---------- */
.ks-check { margin: 40px 0 8px; padding-top: 14px; border-top: 1px solid var(--hair); }
.article-body .ks-check h3 { margin-top: 0; }
.ks-check-intro { font-size: 15.5px; color: var(--muted); }
.ks-check fieldset { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.ks-check legend { padding: 0; margin-bottom: 8px; font: 500 12px/1.35 var(--mono); letter-spacing: .02em; color: var(--muted); }
.ks-tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-tasks label { position: relative; display: inline-flex; align-items: center; padding: 8px 14px 9px; border-radius: 999px; font-size: 15px; line-height: 1.25; box-shadow: inset 0 0 0 1px var(--hair); cursor: pointer; }
.ks-tasks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ks-tasks label:has(input:checked) { background: var(--ink); color: var(--paper); box-shadow: none; }
.ks-tasks label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.ks-checks label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hair-2); font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.ks-checks input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.ks-check-out { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--ink); }
.ks-step-label { font: 500 12px/1.35 var(--mono); letter-spacing: .02em; color: var(--muted); }
.ks-step { margin-top: 6px; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.15; font-weight: 580; letter-spacing: -.015em; }
.ks-check[data-action="pause"] .ks-step { color: var(--red); }
.ks-check[data-action="pilot"] .ks-step, .ks-check[data-action="simple"] .ks-step { color: var(--teal); }
.ks-check-out .ks-advice { margin-top: 8px; }
.ks-advice { font-size: 16.5px; line-height: 1.6; max-width: 34em; }
