/* The Dimensionality Reduction page. Built only from the live site's tokens, so both themes work. */
.wf-hero { padding-top: 64px; padding-bottom: 30px; }
.wf-hero h1 { margin: 14px 0 22px; }
.wf-hero h1 em { color: var(--accent); }
.wf-hero .ws-lede { max-width: 780px; }
.wf-q { color: var(--ink); margin-bottom: 12px; }
.wf-a { margin-bottom: 0; }
.wf-fig { padding-bottom: 76px; }
.wf-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule-dark); background: var(--card); margin-bottom: 18px; }
.wf-tabs button { all: unset; cursor: pointer; padding: 12px 16px; font-size: 17px; color: var(--ink-2); border-left: 1px solid var(--rule); box-shadow: inset 0 -2px 0 transparent; }
.wf-tabs button:first-child { border-left: 0; }
.wf-tabs button span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.wf-tabs button:hover { color: var(--accent); }
.wf-tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.wf-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#wfSmileCap { white-space: pre-line; }
#wfField { cursor: grab; touch-action: pan-y; }
#wfField:active { cursor: grabbing; }
.wf-setup { display: flex; flex-wrap: wrap; gap: 4px 30px; margin: 0 0 14px; font-size: 15px; color: var(--ink); }
.wf-setup i { font-style: normal; color: var(--muted); margin-right: 8px; }
.wf-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.wf-chips[hidden] { display: none; }
.wf-chips-l { font-size: 14px; color: var(--muted); margin-right: 4px; }
.wf-chips button { all: unset; cursor: pointer; font-size: 14px; color: var(--ink-2); border: 1px solid var(--rule-dark); background: var(--card); padding: 6px 12px; }
.wf-chips button:hover { color: var(--accent); }
.wf-chips button[data-i][aria-pressed="false"] { color: var(--gated-ink); background: var(--gated-bg); border-color: var(--gated-ink); text-decoration: line-through; }
.wf-seg { display: inline-flex; align-items: center; }
.wf-seg > span { font-size: 14px; color: var(--ink-2); margin-right: 6px; }
.wf-seg button + button { margin-left: -1px; }
.wf-chips .wf-seg button[data-x][aria-pressed="true"], .wf-chips .wf-seg button[data-d="0"][aria-pressed="true"] { color: var(--accent); border-color: var(--accent); position: relative; }
.wf-chips .wf-seg button[data-d]:not([data-d="0"])[aria-pressed="true"] { color: var(--gated-ink); background: var(--gated-bg); border-color: var(--gated-ink); position: relative; }
.wf-chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wf-gap { margin-left: auto; display: flex; align-items: baseline; gap: 8px; }
.wf-gap b { font-weight: 400; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.wf-gap span { font-size: 14px; color: var(--ink-2); }
.wf-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 52px; align-items: center; }
.wf-split-r { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.wf-text { font-size: 19px; max-width: none; margin-bottom: 0; }
.wf-wide { max-width: 860px; margin-bottom: 40px; }
.wf-figure { margin: 0; min-width: 0; }
.wf-steps { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; border: 1px solid var(--rule-dark); background: var(--card); margin-top: 14px; }
.wf-steps-2 { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
.wf-steps > div { padding: 12px 14px; }
.wf-steps b { display: block; font-weight: 400; font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.wf-steps > div:last-child b { color: var(--accent); }
.wf-steps span { font-size: 13px; color: var(--ink-2); }
.wf-steps i { font-style: normal; color: var(--muted); text-align: center; }
.wf-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wf-three figure { margin: 0; min-width: 0; }
.wf-three h3 { margin: 0 0 12px; font-size: 22px; font-weight: 400; }
.wf-lead { font-size: 16px; line-height: 1.4; color: var(--ink-2); margin: 0 0 12px; min-height: 4.2em; max-width: none; }
.wf-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
.wf-stat b { font-weight: 400; font-size: 26px; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.wf-stat span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.wf-more { display: inline-block; margin-top: 22px; font-size: 18px; }
@media (max-width: 920px) {
  .wf-split, .wf-split-r { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .wf-split-r > div { order: -1; }
  .wf-three { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .wf-lead { min-height: 0; }
}
@media (max-width: 520px) {
  .wf-gap { margin-left: 0; width: 100%; }
  .wf-tabs button { padding: 10px 10px; font-size: 15px; }
  .wf-tabs button span { font-size: 12px; }
  .wf-steps { grid-template-columns: minmax(0, 1fr); }
  .wf-steps i { display: none; }
  .wf-steps > div + i + div { border-top: 1px solid var(--rule); }
}

/* The film (fit_story.js, owner 2026-11-11): prices -> vols -> the fit -> one input broken, then the reader's turn.
   Its buttons mark a BROKEN input with aria-pressed="true" (the old chips used "false" for that), so they have their
   own class rather than .wf-chips. */
.fs-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.fs-chips button { all: unset; cursor: pointer; font-size: 14px; color: var(--ink-2); border: 1px solid var(--rule-dark); background: var(--card); padding: 6px 12px; }
.fs-chips button:hover { color: var(--accent); }
.fs-chips button[aria-pressed="true"] { color: var(--gated-ink); background: var(--gated-bg); border-color: var(--gated-ink); text-decoration: line-through; }
.fs-chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-legend { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.fs-legend b { font-weight: 400; color: var(--ink-2); }
.fs-story { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 14px; }
.fs-ctl { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.fs-ctl button { all: unset; cursor: pointer; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--rule-dark); padding: 7px 16px; min-width: 64px; text-align: center; }
.fs-ctl button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-prog { display: flex; gap: 4px; flex: 1; }
.fs-prog i { flex: 1; height: 6px; background: var(--rule); cursor: pointer; }
.fs-prog i.done { background: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.fs-prog i.on { background: var(--accent); }
.fs-count { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.fs-story h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 2px 0 6px; }
.fs-story p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; min-height: 5em; max-width: 920px; }
@media (max-width: 640px) { .fs-story p { min-height: 8em; } .fs-chips .wf-gap { margin-left: 0; width: 100%; } }
