/* Six illustrative records. The article is the size container; the host owns
   its marble, placement, scroll behavior and transitions between records. */
.fd-sheet.ds-view {
  --ds-paper: #FFFFFF;
  --ds-ink: #020817;
  --ds-muted: #64748B;
  --ds-rule: #E2E8F0;
  --ds-brass: #A38240;
  --ds-green: #16A34A;
  --ds-pad: clamp(14px, min(5.2cqw, 4.6cqh), 64px);
  --ds-gap: clamp(9px, min(3.4cqw, 2.8cqh), 38px);
  --ds-meta: clamp(12px, min(3.18cqw, 2.95cqh), 20px);
  --ds-body: clamp(13.5px, min(3.75cqw, 3.5cqh), 27px);
  --ds-title: clamp(23px, min(7.3cqw, 7.1cqh), 64px);
  --ds-display: clamp(34px, min(12cqw, 11cqh), 100px);
  --ds-serif: var(--editorial, Georgia, serif);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--ds-gap);
  width: min(91cqw, 156cqh, 80rem);
  padding: var(--ds-pad);
  border: 1px solid #E2E8F0;
  border-radius: clamp(12px, min(3.4cqw, 2.8cqh), 32px);
  background: var(--ds-paper);
  color: var(--ds-ink);
  box-shadow: 0 2px 4px rgba(2, 8, 23, .04), 0 1.4cqh 3.8cqh -2cqh rgba(0, 51, 102, .2);
  font: 500 var(--ds-body)/1.4 var(--sans, system-ui, sans-serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.ds-view :where(h4, h5, p, figure, ul, dl, dd) { margin: 0; }
.ds-view :where(h4, h5, b, strong) { color: inherit; }
.ds-view :where(small, dt) { font-size: var(--ds-meta); }
.ds-folio {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .55em;
  padding-bottom: .75em;
  border-bottom: 1px solid var(--ds-rule);
  color: var(--ds-muted);
  font-size: var(--ds-meta);
  line-height: 1.2;
}
.ds-folio > :first-child { color: var(--ds-brass); font-weight: 750; letter-spacing: .065em; text-transform: uppercase; }
.ds-folio > :last-child { text-align: right; }
.ds-head h4 {
  font-size: var(--ds-title);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.ds-head p { margin-top: .35em; color: var(--ds-muted); }
.ds-note { color: var(--ds-muted); font-size: var(--ds-meta); line-height: 1.4; text-wrap: pretty; }
.ds-note b { color: var(--ds-ink); font-weight: 650; }

/* 02. Capital paths share an origin and a linear scale. The dotted goal stays
   still while the band opens with time; the two labels are legible without motion. */
.ds-projection {
  display: grid;
  gap: .45em;
  padding: clamp(10px, min(3.8cqw, 3.2cqh), 37px);
  border-radius: .72em;
  background: #003366;
  color: #F8FAFC;
}
.ds-projection-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75em; }
.ds-projection-pair > span { display: grid; align-content: start; gap: .27em; }
.ds-projection-pair small { display: flex; align-items: center; gap: .45em; color: rgba(248, 250, 252, .82); line-height: 1.25; }
.ds-projection-pair b {
  font: 400 clamp(27px, min(9.2cqw, 8.9cqh), 77px)/1.13 var(--ds-serif);
  letter-spacing: -.026em;
}
.ds-projection-pair > :first-child b { color: #E7CB96; }
.ds-key { width: 1em; flex: none; border-top: 2px solid #F8FAFC; }
.ds-key--goal { border-color: #C5A059; border-top-style: dashed; }
.ds-projection svg { width: 100%; height: clamp(46px, min(29cqw, 18cqh), 252px); overflow: visible; }
.ds-chart-grid { fill: none; stroke: rgba(248, 250, 252, .16); stroke-width: 1; }
.ds-fan-band { fill: #C5A059; fill-opacity: .45; }
.ds-fan-edges { fill: none; stroke: #E7CB96; stroke-width: 1; }
.ds-centerline { fill: none; stroke: #F8FAFC; stroke-width: 2.7; }
.ds-goalline { fill: none; stroke: #C5A059; stroke-width: 1.5; stroke-dasharray: 5 4; }
.ds-axis { display: flex; justify-content: space-between; color: rgba(248, 250, 252, .72); font-size: var(--ds-meta); line-height: 1; }
.ds-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }
.ds-inputs > :last-child { border-left: 1px solid var(--ds-rule); padding-left: 1em; }
.ds-inputs dt { color: var(--ds-muted); }
.ds-inputs dd { margin-top: .15em; font-size: 1.12em; font-weight: 680; line-height: 1.15; letter-spacing: -.035em; }

/* 03. Relative levels, not percentages or a single health score. Match the
   solid/dashed keys to the plot so color isn't the only distinction. */
.ds-radar-key { display: flex; flex-wrap: wrap; gap: .4em 1.2em; color: var(--navy); font-size: var(--ds-meta); }
.ds-radar-key span { display: inline-flex; align-items: center; gap: .45em; }
.ds-radar-key span::before { content: ""; width: 1.6em; border-top: 2px solid var(--navy); }
.ds-radar-key span + span::before { border-color: var(--gold-deep); border-top-style: dashed; }
.ds-radar-figure {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: .7em; align-items: center; border-block: 1px solid var(--ds-rule); padding-block: .5em;
}
.ds-radar-figure svg { width: 100%; height: min(34cqh, 43cqw); }
.ds-radar-grid { fill: none; stroke: var(--ds-rule); }
.ds-radar-actual { fill: var(--navy); fill-opacity: .09; stroke: var(--navy); stroke-width: 2.7; }
.ds-radar-alt { fill: var(--gold); fill-opacity: .13; stroke: var(--gold-deep); stroke-width: 2.7; stroke-dasharray: 5 3; }
.ds-radar-numbers { font: 650 15px var(--sans); text-anchor: middle; fill: var(--navy); }
.ds-dimensions { display: grid; gap: .26em; margin: 0; padding-left: 1.4em; font-size: var(--ds-body); line-height: 1.25; }
.ds-dimensions li::marker { color: var(--navy); font-weight: 650; }
.ds-radar-figure figcaption small { display: block; margin-top: .65em; color: var(--ds-muted); line-height: 1.25; }

/* 04. A local, illustrative search. Static readers get the full result list. */
.ds-search { --result-row: 2.85em; }
.ds-searchbox {
  display: flex;
  align-items: center;
  gap: .85em;
  padding: .75em 1em;
  border: 1px solid #E2E8F0;
  border-radius: .7em;
  background: #F8FAFC;
}
.ds-searchbox svg { flex: none; width: 1.65em; fill: none; stroke: #003366; stroke-width: 1.65; stroke-linecap: round; }
.ds-searchbox > span { display: grid; align-content: center; justify-items: start; gap: .18em; }
.ds-searchbox small { color: var(--ds-muted); font-size: var(--ds-meta); line-height: 1.32; }
.ds-searchbox strong { font: 620 1.2em/1.15 ui-monospace, monospace; color: var(--navy); }
.ds-results-window { overflow: hidden; border-block: 1px solid var(--ds-rule); }
.ds-results { list-style: none; padding: 0; margin: 0; }
.ds-results li {
  display: grid; grid-template-columns: 3.3em 1fr; align-items: center;
  padding-inline: .65em; height: var(--result-row); line-height: 1.2;
}
.ds-results li + li { border-top: 1px solid var(--ds-rule); }
.ds-results b { color: var(--navy); font-weight: 700; }
.ds-results .ds-match { background: var(--paper); box-shadow: inset 3px 0 var(--gold); }
.ds-search-detail { margin: 0; }

/* These two full records need more reading space on a rotated phone. In
   normal flow the page can grow; don't clip the radar or hide search hits. */
@media (max-height: 31.99rem) and (orientation: landscape) {
  [data-product-story]:not([data-story-mode]) .product-story-screen:is([data-story-screen="2"], [data-story-screen="3"]) {
    container-type: inline-size;
  }
}

/* 05. The two mandates have identical hierarchy, with no default selection or CTA. */
.fd-sheet.ds-paths {
  --ds-ink: #F8FAFC;
  --ds-muted: rgba(248, 250, 252, .72);
  --ds-rule: rgba(248, 250, 252, .2);
  --ds-brass: #E7CB96;
  background: #003366;
  border-color: #002850;
}
.ds-routes { display: grid; grid-template-columns: minmax(0, 1fr); gap: .68em; }
.ds-route {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  align-items: start;
  gap: .75em .92em;
  padding: 1em;
  border: 1px solid rgba(248, 250, 252, .16);
  border-radius: .65em;
  background: #002850;
}
.ds-route:nth-child(2) { border-color: rgba(197, 160, 89, .45); background: #00264D; }
.ds-route svg { align-self: start; width: 100%; fill: none; stroke: #E7CB96; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.ds-route .ds-slider { stroke-width: 3.5; }
.ds-route h5 { font-size: 1.36em; line-height: 1.15; letter-spacing: -.043em; font-weight: 620; }
.ds-route p { margin-top: .4em; color: rgba(248, 250, 252, .86); line-height: 1.42; }
.ds-route-detail { display: grid; grid-column: 2; gap: .15em; padding-top: .68em; border-top: 1px solid var(--ds-rule); }
.ds-route-detail small { color: var(--ds-muted); }
.ds-route-detail b { font-size: .98em; font-weight: 640; }

/* 06. Only the INCREASE is split: 2,500 + 680 = 3,180. The return comparison
   below is in percent over the same period; it doesn't share the dollar scale. */
.ds-balance { display: grid; align-content: start; gap: .32em; }
.ds-balance > small, .ds-balance > p { color: var(--ds-muted); font-size: var(--ds-meta); }
.ds-balance > strong { font: 400 var(--ds-display)/1.12 var(--ds-serif); letter-spacing: -.025em; }
.ds-balance > strong span { font: 650 max(var(--ds-meta), .36em)/1 var(--sans, system-ui, sans-serif); letter-spacing: .035em; vertical-align: .24em; }
.ds-attribution { display: grid; gap: .72em; }
.ds-flowbar { display: grid; grid-template-columns: 2500fr 680fr; gap: 3px; height: clamp(12px, min(4.8cqw, 4cqh), 42px); }
.ds-flowbar i { border-radius: 2px; background: #003366; }
.ds-flowbar i:last-child { background: #C5A059; }
.ds-flow-values { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: .7em; }
.ds-flow-values dt { display: flex; align-items: baseline; gap: .4em; color: var(--ds-muted); line-height: 1.24; }
.ds-flow-values dt i { width: .55em; height: .55em; flex: none; border-radius: 1px; background: #003366; }
.ds-flow-values > :last-child dt i { background: #C5A059; }
.ds-flow-values dd { margin-top: .16em; font-size: 1.43em; line-height: 1.12; font-weight: 640; letter-spacing: -.04em; }
.ds-benchmark { padding: .75em .9em; border-radius: .6em; background: #E8EFF5; }
.ds-benchmark > strong { color: #003366; font-size: var(--ds-meta); font-weight: 680; }
.ds-benchmark dl { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: .7em; margin-top: .42em; }
.ds-benchmark dl > div + div { padding-left: .8em; border-left: 1px solid #E2E8F0; }
.ds-benchmark dt { color: #64748B; }
.ds-benchmark dd { margin-top: .1em; font-size: 1.26em; line-height: 1.13; font-weight: 650; letter-spacing: -.02em; }

/* 07. A single handset on the marble. The article sizes the hardware; the
   glass, not the viewport, determines how much of the preferences can be shown. */
.fd-device.ds-pref-phone {
  --pref-width: min(83cqw, 50.5cqh, 25.5rem);
  --fd-radius: clamp(22px, min(9cqw, 8.7cqh), 55px);
  --fd-frame: clamp(3.5px, min(1.5cqw, 1.1cqh), 7px);
  width: var(--pref-width);
  height: calc(var(--pref-width) * 1.86);
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
}
.ds-pref-phone .fd-glass {
  container: ds-preference-display / size;
  background: #F8FAFC;
}
.ds-pref-phone .fd-status i::after {
  content: "";
  position: absolute;
  right: 15%;
  top: 28%;
  height: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #667c8f, #1b2834 65%);
}
.ds-pref-phone .fd-phone-body {
  --pref-small: clamp(11.5px, 4.7cqw, 15.5px);
  --pref-gap: clamp(5px, 4cqw, 17px);
  --pref-rule: #E2E8F0;
  --pref-muted: #64748B;
  justify-content: flex-start;
  gap: var(--pref-gap);
  padding: clamp(4px, 3.4cqw, 14px) clamp(6px, 5.3cqw, 22px) clamp(5px, 4.7cqw, 19px);
  color: #020817;
  font: 500 clamp(12.5px, 5.8cqw, 21px)/1.32 var(--sans, system-ui, sans-serif);
}
.ds-pref-phone :where(h4, dl, dd, p, ul) { margin: 0; }
.ds-pref-head p { display: flex; align-items: center; gap: .45em; color: #A38240; font-size: var(--pref-small); font-weight: 650; }
.ds-pref-head p::before { content: ""; width: 1.48em; height: 1.48em; background: url("welta-mark.svg") center / contain no-repeat; }
.ds-pref-head h4 { margin-top: .2em; font-size: clamp(16px, 8.8cqw, 36px); font-weight: 670; line-height: 1.09; letter-spacing: -.046em; }
.ds-pref-goal { display: flex; align-items: center; gap: .62em; padding: .78em .8em; border-radius: .74em; background: #003366; color: #F8FAFC; }
.ds-pref-goal svg { flex: none; width: 1.65em; fill: none; stroke: #E7CB96; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ds-pref-goal strong { display: block; font-size: 1.1em; font-weight: 650; line-height: 1.17; letter-spacing: -.025em; }
.ds-pref-goal p { margin-top: .23em; color: rgba(248, 250, 252, .78); font-size: var(--pref-small); }
.ds-pref-goal p span { display: inline-block; }
.ds-pref-goal p i { font-style: normal; }
.ds-pref-topics { flex: 1 0 auto; display: grid; border-block: 1px solid var(--pref-rule); }
.ds-pref-topics > div { display: grid; align-content: center; padding-block: clamp(6px, 4.4cqw, 19px); }
.ds-pref-topics > div + div { border-top: 1px solid var(--pref-rule); }
.ds-pref-topics dt { font-weight: 680; line-height: 1.2; letter-spacing: -.025em; }
.ds-pref-topics dd { display: grid; justify-items: start; gap: .38em; margin: .36em 0 0; }
.ds-pref-selected { display: inline-flex; align-items: center; gap: .38em; color: #166534; font-size: var(--pref-small); font-weight: 700; line-height: 1.22; }
.ds-pref-selected::before { content: ""; flex: none; width: .62em; height: .35em; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: translateY(-.11em) rotate(-45deg); }
.ds-pref-state-brief { display: none; }
.ds-pref-detail, .ds-pref-channel { color: var(--pref-muted); font-size: var(--pref-small); }
.ds-pref-rhythm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  padding: .25em;
  border: 1px solid var(--pref-rule);
  border-radius: .55em;
  background: #F1F5F9;
  color: var(--pref-muted);
  list-style: none;
  text-align: center;
  font-size: var(--pref-small);
}
.ds-pref-rhythm strong { justify-content: center; width: 100%; padding: .55em .14em; border-radius: .36em; background: #003366; color: #F8FAFC; }
.ds-pref-channel { display: flex; align-items: baseline; justify-content: space-between; gap: .42em; }
.ds-pref-channel strong { color: #020817; }

/* D2 is a direct choice; only D1 owns a frequency. When room is scarce,
   keep the chosen values, the housing context and the illustrative label. */
@container ds-preference-display (max-width: 212px) {
  .ds-pref-head p::before, .ds-pref-goal svg, .ds-pref-detail { display: none; }
  .ds-pref-rhythm { display: block; width: auto; padding: 0; border: 0; background: none; }
  .ds-pref-rhythm li:not([aria-current="true"]) { display: none; }
  .ds-pref-rhythm strong { padding: .23em .55em; }
}
@container ds-preference-display (max-width: 164px) {
  .ds-pref-phone .fd-phone-body { gap: 4px; padding: 2px 6px 4px; }
  .ds-pref-head h4 { margin-top: .05em; }
  .ds-pref-goal { padding: .42em .48em; border-radius: .48em; }
  .ds-pref-goal p { display: grid; margin-top: .12em; line-height: 1.17; }
  .ds-pref-goal p i { display: none; }
  .ds-pref-goal strong { font-size: 1em; }
  .ds-pref-topics > div { padding-block: .37em; }
  .ds-pref-topics dd { margin-top: .23em; }
  .ds-pref-long { display: none; }
}
@container ds-preference-display (max-width: 137px) {
  .ds-pref-phone .fd-phone-body { gap: 3px; padding: 1px 5px 3px; }
  .ds-pref-goal { padding: .28em .26em; }
  .ds-pref-topics > div { padding-block: .22em; }
  .ds-pref-topics [data-alert-service="D2"] { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: .18em; }
  .ds-pref-topics [data-alert-service="D2"] dd { margin: 0; }
  .ds-pref-state-full { display: none; }
  .ds-pref-state-brief { display: inline; }
  .ds-pref-rhythm strong { padding: .16em .42em; }
}

/* Horizontal space can buy side-by-side comparisons; never scale a whole
   screen down as an image. Supporting rows give way before the primary facts. */
@container (min-width: 535px) and (min-height: 390px) {
  .ds-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }
  .ds-route { grid-template: "icon" auto "copy" 1fr "detail" auto / minmax(0, 1fr); align-content: start; gap: 1em; padding: 1.15em; }
  .ds-route svg { grid-area: icon; width: 2.5em; }
  .ds-route-detail { grid-area: detail; }
}
@container (min-width: 735px) and (min-height: 560px) {
  .fd-sheet.ds-plan { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; gap: calc(1.2 * var(--ds-gap)); }
  .ds-plan .ds-folio, .ds-plan > .ds-note { grid-column: 1 / -1; }
  .ds-plan .ds-head { align-self: end; }
  .ds-plan .ds-inputs { grid-column: 1; grid-row: 3; align-self: start; grid-template-columns: 1fr; gap: 1em; }
  .ds-plan .ds-inputs > div:last-child { padding: 0; border: 0; }
  .ds-plan .ds-projection { grid-column: 2; grid-row: 2 / 4; }
  .ds-projection svg { height: clamp(100px, 16cqh, 225px); }
  .ds-plan > .ds-note { border-top: 1px solid var(--ds-rule); padding-top: .85em; }
  .fd-sheet.ds-search { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; }
  .ds-search > :is(.ds-folio, .ds-results-window, .ds-note) { grid-column: 1 / -1; }
  .ds-balance { grid-template-columns: auto 1fr; align-items: baseline; gap: .45em 1em; }
  .ds-balance > small { grid-column: 1 / -1; }
}
@container (max-width: 450px) {
  .fd-sheet.ds-view { width: 94cqw; }
}
@container (535px <= width < 990px) and (height > 660px) {
  .fd-sheet.ds-view {
    --ds-pad: clamp(24px, 4cqw, 37px);
    --ds-gap: clamp(15px, min(2.8cqw, 2.5cqh), 25px);
    --ds-title: clamp(32px, min(6.9cqw, 6.8cqh), 49px);
    --ds-display: clamp(48px, min(10.8cqw, 10.2cqh), 74px);
    --ds-body: clamp(16px, min(3.7cqw, 3.2cqh), 21px);
    --ds-meta: clamp(14px, min(3.1cqw, 2.9cqh), 17px);
  }
}
@container (375px < height <= 660px) {
  .fd-sheet.ds-view {
    --ds-pad: clamp(13px, min(4cqw, 4cqh), 22px);
    --ds-gap: clamp(8px, min(2.4cqw, 2cqh), 12px);
    --ds-title: clamp(23px, min(7cqw, 6.1cqh), 36px);
    --ds-display: clamp(32px, min(11cqw, 9.8cqh), 55px);
    --ds-body: clamp(13.5px, min(3.75cqw, 3.5cqh), 17px);
    --ds-meta: clamp(12px, min(3.18cqw, 3.1cqh), 14px);
  }
  .ds-folio { padding-bottom: .5em; }
  .ds-projection svg { height: clamp(45px, min(24cqw, 15cqh), 84px); }
}
@container (max-height: 480px) or (450px <= width < 535px) {
  .ds-route { padding: .8em; gap: .55em .8em; }
  .ds-route-detail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .55em; padding-top: .5em; }
  .ds-route-detail b { font-size: var(--ds-meta); }
}
@container (375px < height <= 420px) {
  .ds-route-detail, .ds-attribution .ds-secondary { display: none; }
}
@container (max-height: 375px) or ((max-width: 340px) and (max-height: 420px)) {
  .fd-sheet.ds-view {
    --ds-pad: clamp(10px, 3.7cqh, 14px);
    --ds-gap: clamp(5px, 2.3cqh, 8px);
    --ds-title: clamp(21px, min(6.7cqw, 7.8cqh), 28px);
    --ds-display: clamp(32px, 10cqh, 38px);
    --ds-body: clamp(13px, 4cqh, 14.5px);
    --ds-meta: clamp(11.75px, 3.6cqh, 12.5px);
  }
  .ds-folio { padding-bottom: .38em; }
  .ds-head p { margin-top: .14em; font-size: var(--ds-meta); }
  .ds-projection { gap: 3px; padding: .48em .7em; }
  .ds-projection-pair b { font-size: clamp(24px, 8.2cqh, 30px); line-height: 1; }
  .ds-projection svg { height: clamp(29px, 12cqh, 44px); }
  .ds-inputs dd { margin-top: .1em; }
  .ds-search { --result-row: 2.5em; }
  .ds-dimensions { font-size: var(--ds-meta); gap: .16em; }
  .ds-searchbox { padding: .48em .7em; }
  .ds-routes { gap: .5em; }
  .ds-route { grid-template-columns: 1.95em 1fr; padding: .62em .7em; gap: .5em .7em; }
  .ds-route h5 { font-size: 1.19em; }
  .ds-route p { margin-top: .2em; line-height: 1.27; }
  .ds-route-detail, .ds-secondary { display: none; }
  .ds-balance { gap: .08em; }
  .ds-attribution { gap: .4em; }
  .ds-flowbar { height: .85em; }
  .ds-benchmark { padding: .42em .68em; }
  .ds-benchmark dl { margin-top: .18em; }
}
@container (max-height: 320px) {
  .ds-balance { grid-template: "value label" auto "value change" auto / auto minmax(0, 1fr); align-items: center; column-gap: .85em; }
  .ds-balance > strong { grid-area: value; }
  .ds-balance > small { grid-area: label; color: var(--ds-ink); font-weight: 650; }
  .ds-balance > p { grid-area: change; }
  .ds-expanded-label { display: none; }
}
@container (max-height: 288px) {
  .ds-searchbox > span { flex: 1; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: .3em; }
}
@container (max-width: 350px) and (max-height: 305px) {
  .fd-sheet.ds-view { --ds-gap: 5px; }
  .ds-plan .ds-axis { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-story-screen].active .ds-draw { animation: ds-read-series .95s .08s var(--ease, ease-out) backwards; }
  /* One pass per visit. Only the results move; no wheel/touch interception.
     The final frame holds on the two international exposures. */
  [data-story-screen].active .ds-searchbox strong { animation: ds-type-query .9s .12s steps(8, end) backwards; }
  [data-story-screen].active .ds-results-window { height: calc(2 * var(--result-row) + 2px); }
  [data-story-screen].active .ds-results { animation: ds-browse-results 4.8s ease-in-out both; }
  [data-story-screen].active .ds-search-detail { animation: ds-reveal-match .32s 4.28s backwards; }
  [data-story-screen].active .ds-flowbar { animation: ds-read-series .75s .1s var(--ease, ease-out) backwards; }
}
@keyframes ds-read-series { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes ds-type-query { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes ds-browse-results {
  0%, 18% { opacity: 0; transform: translateY(0); }
  28%, 47% { opacity: 1; transform: translateY(0); }
  61%, 72% { opacity: 1; transform: translateY(calc(-1 * var(--result-row))); }
  88%, 100% { opacity: 1; transform: translateY(calc(-2 * var(--result-row))); }
}
@keyframes ds-reveal-match { from { opacity: 0; } to { opacity: 1; } }
