/* GENERATED from tokens.ts brandable defaults (branding plan D4) — do not edit. */
@scope (.theme-canvas) {
  :scope {
    --flow-surface: #faf8f3;
    --flow-surface-raised: #fffdf7;
    --flow-surface-sunken: #f1ede3;
    --flow-surface-inverse: #0a0f12;
    --flow-accent: #c66e48;
    --flow-ink-emphasis: #a4502e;
    --flow-ink-emphasis-on-dark: #e0875c;
    --flow-ink-subtle: #5b5d57;
    --flow-ink-subtle-on-dark: #b8b3a8;
    --flow-ink-accent: #2f6e49;
    --flow-ink-accent-on-dark: #7fbf97;
    --flow-fg-on-light: #0a0f12;
    --flow-fg-on-dark: #faf8f3;
    --flow-link-on-light: #a4502e;
    --flow-link-on-dark: #e0875c;
    --flow-field-bg: #ffffff;
    --flow-field-bg-on-dark: rgba(255, 255, 255, 0.06);
    --flow-field-text: #0a0f12;
    --flow-field-text-on-dark: #faf8f3;
    --flow-field-border: #d6d2c8;
    --flow-field-border-on-dark: #6c6e68;
    --flow-field-label-color: #0a0f12;
    --flow-field-label-color-on-dark: #faf8f3;
    --flow-field-placeholder-color: #a5a095;
    --flow-field-placeholder-color-on-dark: #b8b3a8;
    --flow-field-help-color: #6c6e68;
    --flow-field-help-color-on-dark: #b8b3a8;
    --flow-field-required-color: #b14535;
    --flow-field-required-color-on-dark: #e8917a;
    --flow-field-group-border: #d6d2c8;
    --flow-field-group-border-on-dark: #a5a095;
    --flow-footer-ground: #141d27;
    --flow-footer-band: #233246;
    --flow-footer-ink: #f9f6f0;
    --flow-footer-band-ink: #f9f6f0;
    --flow-footer-accent: #e5bd92;
    --flow-index-gap: 4rem;
    --flow-card-surface: #ffffff;
    --flow-card-ink: #172432;
    --flow-card-border: #d5dbe1;
    --flow-card-padding: 1.75rem;
    --flow-card-radius: 12px;
    --flow-editorial-ground: #070b16;
    --flow-editorial-accent: #a5c8ff;
    --flow-editorial-secondary: #c8ed8d;
    --flow-editorial-tertiary: #c4b5fd;
    --flow-editorial-font: Georgia, "Times New Roman", serif;
    --color-emerald: #3c8b5c;
    --color-amber: #c2832c;
    --color-claret: #b14535;
    --font-sans: "Switzer", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  }
}

@scope (.theme-canvas) {
/*! flow-structural-contract v1 (@treeviewdesigns/flow-shared) */
/*
 * Theme-independent BEHAVIOUR rules for the Pages layout contract — what the
 * editor's block controls (width / alignment / space-below) actually DO.
 * Versioned with `blockClasses()` (src/layout/contract.ts), the emitter of
 * this class vocabulary, so the two can never drift apart.
 *
 * Themes do NOT copy these rules. Each theme's build concatenates this file
 * (wrapped in `@scope (.theme-canvas)`) AHEAD of the theme's authored
 * tokens.css inside `dist/tokens.css` — contract first, theme after, so a
 * theme can deliberately override a structural default by plain source order
 * (e.g. the NHS narrow-surface `--mb-*` remap). The sentinel banner above is
 * asserted by the theme build guard and (per the tenant-branding plan, B1.c)
 * by Flow's scan-time validator.
 *
 * SKIN stays out of this file entirely: values come from theme tokens
 * (`--space-*`), and per-widget rules target CANONICAL classes only
 * (`.flow-button`, `.flow-heading`, `.flow-richtext`) — theme widget
 * overrides keep the canonical root + modifier classes alongside their own
 * (the D-C convention), so no theme class name ever appears here.
 */

/* ── Segment surfaces — UNIVERSAL render recipes (segment-surface-styles) ──
   Theme-independent MECHANISM for the four segment background modes. The
   contract's `sectionStyle()` emits per-section custom properties
   (`--flow-section-bg-image`, `--flow-section-gradient`, …) and
   `sectionClasses()` emits the gating `flow-section--surface-{mode}` class; the
   recipes below turn those into a rendered surface. Every CONFORMING theme gets
   the mechanism for free (the theme only gates which modes the drawer offers);
   theme `tokens.css` supplies FLAVOUR (default tints, preset colour mixes) only.

   Positioning contract: `.flow-section` had NO `position` before this feature.
   `position: relative` anchors the surface layers to the section; `isolation:
   isolate` gives them a clean stacking context so the `::before` overlay and the
   `z-index:1` inner cannot escape into sibling sections. The surface covers the
   FULL `<section>` (including gutters / full-bleed), NOT the max-width
   `.flow-section__inner`. */
.flow-section { position: relative; isolation: isolate; }

/* Content lift — all content sits ABOVE the image / overlay / gradient layers
   and stays interactive (links + buttons clickable). */
.flow-section__inner { position: relative; z-index: 1; }

/* image — a positioned background layer painted on the section itself. The
   `image-set()` lives in `--flow-section-bg-image` (responsive WebP set); the
   `@supports` block below feeds a plain `url(...)` fallback for engines without
   `image-set()`. Position + attachment default to a sensible centre/scroll. */
.flow-section--surface-image {
  background-image: var(--flow-section-bg-image);
  background-position: var(--flow-section-bg-position, center);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: var(--flow-section-bg-attachment, scroll);
}

/* overlay — a tint laid OVER the image, BELOW the content (`z-index:0` keeps it
   under the `z-index:1` inner). `pointer-events: none` so it never intercepts
   clicks meant for the content above it. Only paints when an overlay colour is
   set (a transparent default leaves the image untouched). */
.flow-section--surface-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--flow-section-overlay-colour, transparent);
  opacity: var(--flow-section-overlay-opacity, 1);
}

/* gradient FILL — the section background is the resolved gradient value. A
   `gradient-*` Colour fill (Workstream B) emits this class; it is SUPPRESSED by
   `sectionClasses()` while an image overlay is active (both paint
   `background-image`), so the two never collide. A `solid-*` Colour base paints
   `background-color` and so coexists with an image. */
.flow-section--fill-gradient {
  background-image: var(--flow-section-gradient);
}

/* ════════════════════════════════════════════════════════════════════════
   SECTION-RENDER FLOOR + block-spacing rhythm (theme-agnostic LAYOUT floor).

   `sectionClasses()` (contract.ts) ALWAYS emits `flow-section--pad-{token}`,
   `flow-section--width-{token}` and `flow-section--bg-{token}` on every section,
   and the render stacks blocks as direct children of `.flow-section__inner` /
   `.flow-column`. Turning those emitted classes into real `padding-block` /
   `max-width` / `background-color`, and giving stacked blocks a default vertical
   rhythm, is LAYOUT the contract already presupposes — so it lives HERE, not per
   theme. A theme that authors none of it still renders plain-but-correct instead
   of a collapsed, unpadded, transparent mess.

   BOUNDARY: layout + token PLUMBING only. Every value is a theme token
   (`--space-*`, `--section-bg-*`, `--container-*`); NO literal skin (colours,
   borders, shadows, card chrome) lives here — that stays theme-authored in
   `tokens.css`, which is concatenated AFTER this contract and so overrides any
   floor rule on source order (a theme styles its look on top of the floor). */

/* Section box — vertical padding on the section; the horizontal GUTTER belongs to
   the CONTAINED inner (Workstream B §B5), NOT the section, so `pad-none` /
   `width-full_bleed` content bleeds edge-to-edge while a contained section keeps
   its breathing room. The surface (background + `::before` overlay, inset:0 on
   `.flow-section`) still covers the FULL section width regardless. */
.flow-section { padding-block: var(--space-md); }
.flow-section__inner { width: 100%; }
.flow-section--width-contained .flow-section__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter, 1.5rem);
}
.flow-section--width-full_bleed .flow-section__inner { max-width: none; }

/* Padding token scale (the emitted `flow-section--pad-{token}` classes). */
.flow-section--pad-none { padding-block: var(--space-none); }
.flow-section--pad-sm { padding-block: var(--space-sm); }
.flow-section--pad-md { padding-block: var(--space-md); }
.flow-section--pad-lg { padding-block: var(--space-lg); }
.flow-section--pad-xl { padding-block: var(--space-xl); }
.flow-section--pad-2xl { padding-block: var(--space-2xl); }

/* Solid Colour backgrounds — wire the emitted `flow-section--bg-{token}` class
   (the `solid-{token}` fill, prefix-stripped) to the theme's surface token.
   WITHOUT this a section is transparent, so a prior section's fixed-image surface
   bleeds through (the reported bug). Colour ONLY; the dark-surface text flip is
   content-tone's job (tone classes below + the `data-surface-tone` predicate). A
   solid base coexists with an image overlay (it shows behind it); only a
   `gradient-*` fill is suppressed under an image (Workstream B). */
.flow-section--bg-default { background-color: var(--section-bg-default); }
.flow-section--bg-muted { background-color: var(--section-bg-muted); }
.flow-section--bg-accent { background-color: var(--section-bg-accent); }
.flow-section--bg-brand { background-color: var(--section-bg-brand); }
.flow-section--bg-hero { background-color: var(--section-bg-hero); }
/* Transparent fill (`solid-transparent`) — an EXPLICIT no-surface base so the
   section shows the page/body background. NOT a `--section-bg-*` colour token
   (it has no variable + no contrast model — transparent-background plan D1); it
   is the one fill that intentionally paints nothing. Explicit (not the mere
   absence of a rule) so a prior section's fixed-image surface cannot bleed
   through. Foreground stays light-surface ink by default (never a dark surface,
   D3); an author layering over a dark page sets contentTone. */
.flow-section--bg-transparent { background-color: transparent; }

/* Hero transparent baseline (`transparentBackground` prop, D5/D6) — the shared
   floor for a hero that claims no surface of its own. Themes paint `.flow-hero`
   with their own band + on-band light ink, so each theme MUST also handle
   `.flow-hero--transparent` to drop that band, reset foreground to on-light ink,
   and suppress image-less decorations. This baseline guarantees a sensible
   default for any future theme that ships no explicit override. */
.flow-hero--transparent { background: transparent; }

/* Hero image overlay scrim (component-surface-parity-and-motion A) — a tint laid
   OVER the background image, UNDER the content; the SFC renders it + sets the
   colour/opacity inline. Content is lifted above it generically so the scrim
   never covers the copy regardless of each theme's hero-layer z-index. */
.flow-hero__overlay { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.flow-hero__eyebrow, .flow-hero__headline, .flow-hero__subhead, .flow-hero__actions { position: relative; z-index: 1; }

/* Hero call-to-action group (repeater-properties-hero-buttons plan) — the Hero
   renders 0..N buttons inside this wrapper. Baseline layout (flex + wrap + gap)
   so multiple buttons sit in a row and wrap on narrow widths regardless of
   theme; a theme tunes the gap/alignment. Content-lift via the rule above. */
.flow-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm, 0.75rem); }

/* Authorable surface MOTION (B) — the shared contract. Ken Burns "zoom" is this
   CSS keyframe on the image; `parallax` is the JS composable; `cinematic` = both
   (they compose: scale on the <img>, translate on the <picture>). The a11y +
   editor guards are promoted from lumen to the shared contract so EVERY
   theme/component inherits them — themes only retune timing/easing. */
@keyframes flow-kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
img[data-surface-motion="zoom"],
img[data-surface-motion="cinematic"] {
  animation: flow-kenburns 18s ease-out forwards;
  will-change: transform;
}
@keyframes flow-pan-left {
  from { transform: scale(1.1) translateX(3%); }
  to { transform: scale(1.1) translateX(-3%); }
}
@keyframes flow-pan-right {
  from { transform: scale(1.1) translateX(-3%); }
  to { transform: scale(1.1) translateX(3%); }
}
img[data-surface-motion="pan-left"] { animation: flow-pan-left 12s ease-in-out forwards; }
img[data-surface-motion="pan-right"] { animation: flow-pan-right 12s ease-in-out forwards; }
@media (prefers-reduced-motion: reduce) {
  img[data-surface-motion] { animation: none; }
}
/* Editor-canvas freeze: this file is concatenated INSIDE `@scope (.theme-canvas)`
   (see banner above), so `:scope` IS the `.theme-canvas` root. Target the root
   carrying `data-editor-mode` (the live editor canvas) — a nested
   `.theme-canvas[data-editor-mode]` would never match, since the scope root is
   the only `.theme-canvas`. The tenant FRONT root has no `data-editor-mode`, so
   its hero animates; only the editor freezes. */
:scope[data-editor-mode] img[data-surface-motion] { animation: none; }

/* Block-spacing rhythm (Layer 1) — uniform `--space-md` between stacked blocks.
   `margin-block-start: 0` kills UA top-margins generically (no per-widget reset
   needed); `margin-block-end` carries the rhythm so the authorable per-block
   `.flow-block--mb-*` `!important` override (below) replaces it cleanly. Row
   children lay out horizontally → no vertical rhythm on them. */
.flow-section__inner > * { margin-block-start: 0; margin-block-end: var(--space-md); }
.flow-section__inner > :last-child { margin-block-end: 0; }
.flow-row > * { margin-block-end: 0; }
.flow-column > * { margin-block-start: 0; margin-block-end: var(--space-md); }
.flow-column > :last-child { margin-block-end: 0; }

/* RichText list-item paragraph reset (richtext-list-item-paragraph-spacing
   plan) — theme-agnostic DOM-parity normalisation. Tiptap's list schema wraps
   every `<li>`'s content in a `<p>`, and the sanitiser keeps it, so the saved +
   live-editor markup is `<li><p>…</p></li>`. Without this reset the theme's
   `.flow-richtext p` block margin stacks on top of `.flow-richtext li`,
   spreading list items apart the moment a list is edited — on the editor canvas
   AND the published front render. Zeroing the paragraph margin hands list
   spacing back to the theme's `.flow-richtext li` rule alone, keeping both
   surfaces identical. Specificity (0,1,2) beats the theme's `.flow-richtext p`
   (0,1,1) regardless of source order, so no theme override is needed; the
   drawer RichTextEditor.vue carries the same reset locally. */
.flow-richtext li > p { margin: 0; }

/* Content tone (segment-content-tone plan) — colour-agnostic PLUMBING. A
   non-token surface can flip its foreground so text stays readable on a dark
   surface; the THEME supplies the actual colours via the four brandable tokens
   (`--flow-fg-on-dark`, `--flow-link-on-dark`, `--flow-fg-on-light`,
   `--flow-link-on-light`). The white/`inherit` fallbacks make "Light text" work
   in EVERY theme (even un-migrated ones) before any theme declares the tokens.
   `.flow-heading` / `.flow-richtext` are `color: inherit`, so they follow the
   section automatically. The link selector is `a:where(:any-link)` —
   specificity (0,1,1): ONE class + ONE element — deliberately above every
   (0,1,0) theme link rule (`:where(a)`, `:where(a):visited`,
   `.flow-section--bg-hero :where(a)`), which sit in the later authored block and
   would otherwise win on source order (a visited link would render the theme's
   visited colour — e.g. NHS purple — on a dark surface). */
.flow-section--tone-light {
  color: var(--flow-fg-on-dark, #ffffff);
}

.flow-section--tone-light a:where(:any-link) {
  color: var(--flow-link-on-dark, #ffffff);
  text-decoration: underline;
}

/* Linked content tokens keep readable ink on automatically detected dark
   surfaces too, including visited links. The theme owns the colour value. */
[data-surface-tone="dark"] .flow-token-block a:where(:any-link) {
  color: var(--flow-link-on-dark, #ffffff);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.flow-section--tone-dark {
  color: var(--flow-fg-on-light, inherit);
}

.flow-section--tone-dark a:where(:any-link) {
  color: var(--flow-link-on-light, currentColor);
}

/* Inline ink roles (palette-provenance plan, D9.2) — colour-agnostic PLUMBING
   for the per-span `inkColor` RichText mark and the block-level Heading ink
   prop. Each `flow-ink-{role}` class resolves to the THEME's own
   `--flow-ink-{role}` colour; the literal `currentColor` final fallback makes a
   role inert-but-safe in any theme that hasn't declared the token yet (it reads
   as the surrounding text colour, never an illegible default). Ink is FLOOR-ONLY
   in v1 — exactly `emphasis / subtle / accent`, no theme extras (D9.5).

   Dark-surface override — keyed on BOTH dark-band signals (the ink-level
   application of Lesson 114). A role prefers its `-on-dark` realisation on:
     · `[data-surface-tone="dark"]` — the AUTO marker the render predicate emits
       for a dark token/gradient surface or an image overlay; AND
     · `.flow-section--tone-light` — the author's EXPLICIT "Light text" content
       tone. This case does NOT emit the `data-surface-tone` marker
       (`buildIsDarkSurface()` opts an explicit light tone OUT), so without this
       second selector an `emphasis`/`accent` heading on an author-declared dark
       band would wrongly use its on-LIGHT token and turn illegible. "Light text"
       means "this ground is dark", so the on-dark ink realisation is correct.
   On either signal the role cascades on-dark → base token → `currentColor`. The
   shared package owns these class names + the signal-scoped selectors; each theme
   owns the `--flow-ink-{role}[-on-dark]` values + the dark-surface metadata.

   SPECIFICITY (doubled class, deliberate — palette-provenance follow-up): the
   block-level Heading ink prop applies `flow-ink-{role}` to the SAME element that
   carries `.flow-heading` (likewise `.flow-richtext`), whose theme rule is
   `color: inherit` at (0,1,0). A single `.flow-ink-{role}` is also (0,1,0), so it
   would lose on source order to the theme's later-authored `.flow-heading` block.
   Doubling the class — `.flow-ink-{role}.flow-ink-{role}` — lifts the base rule to
   (0,2,0) so ink wins over the element's inherit, and the dark override to (0,3,0)
   so it still beats the base. Harmless on inline `<span class="flow-ink-{role}">`
   (a single class matches the doubled selector). */
.flow-ink-emphasis.flow-ink-emphasis { color: var(--flow-ink-emphasis, currentColor); }
.flow-ink-subtle.flow-ink-subtle { color: var(--flow-ink-subtle, currentColor); }
.flow-ink-accent.flow-ink-accent { color: var(--flow-ink-accent, currentColor); }

[data-surface-tone="dark"] .flow-ink-emphasis.flow-ink-emphasis,
.flow-section--tone-light .flow-ink-emphasis.flow-ink-emphasis { color: var(--flow-ink-emphasis-on-dark, var(--flow-ink-emphasis, currentColor)); }
[data-surface-tone="dark"] .flow-ink-subtle.flow-ink-subtle,
.flow-section--tone-light .flow-ink-subtle.flow-ink-subtle { color: var(--flow-ink-subtle-on-dark, var(--flow-ink-subtle, currentColor)); }
[data-surface-tone="dark"] .flow-ink-accent.flow-ink-accent,
.flow-section--tone-light .flow-ink-accent.flow-ink-accent { color: var(--flow-ink-accent-on-dark, var(--flow-ink-accent, currentColor)); }

/* image fallback — engines without `image-set()` cannot parse
   `--flow-section-bg-image` (an `image-set(...)`), so the whole `background`
   shorthand drops. The resolver also emits a `url(src)` form there is no clean
   way to express as a second custom property; instead, where `image-set()` is
   unsupported we let the declared property fail gracefully (the section shows
   its token/transparent base). Modern engines (the support floor for the
   editor + front) all support `image-set()`, so this is a rare-old-browser
   degradation, not a primary path. */


/* Per-block "space below" overrides — `.flow-block--mb-{token}` (element spacing).
   `auto` emits no class (the theme's own rhythm applies); `!important` beats
   the theme rhythm pairs (`.flow-section__inner > *` / `.flow-column > *`)
   and their `:last-child` resets. Values are the THEME's spacing tokens. */
.flow-block--mb-none { margin-block-end: var(--space-none) !important; }
.flow-block--mb-sm { margin-block-end: var(--space-sm) !important; }
.flow-block--mb-md { margin-block-end: var(--space-md) !important; }
.flow-block--mb-lg { margin-block-end: var(--space-lg) !important; }
.flow-block--mb-xl { margin-block-end: var(--space-xl) !important; }
.flow-block--mb-2xl { margin-block-end: var(--space-2xl) !important; }

/* ── Block width + alignment ─────────────────────────────────────────────
   The `flow-block--w-*` / `flow-block--a-*` classes land on the column /
   row-track ITEM on both surfaces: the front widget root (WidgetRenderer)
   and the editor's BlockShell wrapper. `auto` width emits no class — the
   widget's own CSS decides. Margins, not `justify-self`, so one mechanism
   aligns in the front flex column, the front nested-row grid track, AND the
   editor wrapper's normal flow.

   `display: flex` BLOCKIFIES the item — `margin-inline: auto` cannot
   position an inline-level box (the button widget root is inline-flex) in
   normal block flow. Flex (not block) so a widget root keeps its flex
   interior (gap / align-items) when the class lands on it.

   TEXT WIDGETS (.flow-heading, .flow-richtext) are EXCLUDED from the box
   transform in the self-targeted form: `blockClasses()` emits `--w-hug`
   whenever align != left, and on the front these classes sit directly on
   the widget root — without the exclusion an aligned heading would be
   flexified and shrunk to fit-content. Text widgets align via text-align
   (below); their box stays a full-width block, and an explicit `hug` width
   on them is visually inert by design. */
.flow-block--w-hug:not(:is(.flow-heading, .flow-richtext)) { display: flex; inline-size: fit-content; max-inline-size: 100%; }
.flow-block--w-fill:not(:is(.flow-heading, .flow-richtext)) { display: flex; inline-size: 100%; }
.flow-block--a-center { margin-inline: auto; }
.flow-block--a-right { margin-inline-start: auto; margin-inline-end: 0; }

/* Button pair rules — the editor's wrapper indirection: the BlockShell
   wrapper carries the class (and deliberately stays full slot width — it is
   the DnD hitbox), so the width-constrained widget INSIDE must follow.
   Descendant rules never match on the front (the classes sit ON the widget
   root), so the descendant forms are editor-only by construction. */
.flow-block--w-fill .flow-button { inline-size: 100%; }
.flow-block--w-hug .flow-button { display: flex; inline-size: fit-content; }

/* Editor inner alignment. `:not(--w-fill)` keeps these off FILL blocks: on
   fill, align moves the LABEL (the justify-content rules below) —
   `fit-content` here would out-cascade the fill pair rule's
   `inline-size: 100%` (same specificity, later in source) and shrink the
   widget. */
.flow-block--a-center:not(.flow-block--w-fill) .flow-button {
  display: flex;
  inline-size: fit-content;
  margin-inline: auto;
}
.flow-block--a-right:not(.flow-block--w-fill) .flow-button {
  display: flex;
  inline-size: fit-content;
  margin-inline-start: auto;
  margin-inline-end: 0;
}

/* Fill + align — the DUAL semantic: on a fill block the align tokens move
   the CONTENT (the button label), not the block. Default (no align class) =
   left; the self form covers the front, the descendant form covers the
   editor's wrapper indirection. */
.flow-block--w-fill.flow-button,
.flow-block--w-fill .flow-button { justify-content: flex-start; }
.flow-block--w-fill.flow-block--a-center.flow-button,
.flow-block--w-fill.flow-block--a-center .flow-button { justify-content: center; }
.flow-block--w-fill.flow-block--a-right.flow-button,
.flow-block--w-fill.flow-block--a-right .flow-button { justify-content: flex-end; }

/* Bare-grid button width — editor↔live parity (editor-theme-invariant-interactions
   W3). The front render is WRAPPER-LESS: a button (inline-flex, hugs by default)
   is a DIRECT grid child of its row/column track, so the grid's default
   `justify-items: stretch` STRETCHES the auto-width button to fill the track —
   diverging from the EDITOR, where the `.flow-block` SLOT is the grid child (it
   fills the track) and the button hugs INSIDE it. `justify-self: start` makes the
   bare front button keep its intrinsic (hug) width at the track start; the
   existing `--a-*` (margin-inline auto) + `--w-fill` (inline-size: 100%) rules
   above then center / right / fill it exactly as they do the editor's inner
   button. This matches ONLY on the front: in the editor the button is
   `.flow-row > .flow-block > .flow-button` (not a direct grid child), so the
   editor's slots — which SHOULD fill the track — are untouched. A content-sized
   (button-group) track already hugs, so `start` is a no-op there. */
.flow-row > .flow-button,
.flow-column > .flow-button { justify-self: start; }

/* ── Text-widget alignment ───────────────────────────────────────────────
   Alignment on text widgets is TEXT alignment — identical in hug and fill
   (no "alignment only works when hugging" trap), no flexification of
   semantic text elements. Descendant form = editor (classes on the
   BlockShell wrapper); self form = front no-wrapper render (classes on the
   widget root). Richtext has no Tiptap text-align extension, so this is the
   only alignment mechanism for it. */
.flow-block--a-center :is(.flow-heading, .flow-richtext),
.flow-block--a-center:is(.flow-heading, .flow-richtext) { text-align: center; }
.flow-block--a-right :is(.flow-heading, .flow-richtext),
.flow-block--a-right:is(.flow-heading, .flow-richtext) { text-align: right; }

/* ── Row responsive layout — STRUCTURE only (per-breakpoint row toolbar) ───
   Theme-independent PER-BREAKPOINT row geometry for `.flow-row`. The contract's
   `rowStyle()` emits four families of inline custom properties, each with a
   `-d` (desktop >= 1024px), `-t` (tablet 640-1023px), `-m` (mobile < 640px)
   variant: `--row-cols-*` (a `grid-template-columns` track string),
   `--row-justify-*` (`justify-content`), `--row-gap-*` (`gap`), and
   `--row-valign-*` (`align-items`). Inline styles cannot hold container
   queries, so the queries that SELECT the active band live here. EVERY row
   (proportional AND content) emits all four families — the per-band toolbar
   (`docs/plans/segment-responsive-toolbar.md`) lets Size / Gap / Align / Justify
   vary by device, so the structural rules must own all four.

   `display: grid` is the contract's too (editor-theme-invariant-interactions):
   it WAS left to each theme's authored base rule (§2.1, with gap/align stripped
   in lockstep), but that proved fragile — a theme conversion can silently omit
   it, and without `display: grid` every `grid-template-columns` here is inert,
   so the row renders as a block and its columns STACK. `flow-theme-lumen@0.3.0`
   shipped exactly that omission while `flow-theme-nhs` carried the rule, so the
   same payload laid out side-by-side on NHS and stacked on Lumen. The base
   geometry is theme-INVARIANT, so it belongs here where every conforming theme
   embeds it and none can drop it. A theme that wants a non-grid row can still
   override on source order (its authored `tokens.css` follows this contract).

   The query container is the NAMED `theme-canvas` container (the canvas / front
   page region establishes `container: theme-canvas / inline-size`), the SAME
   container the theme's legacy auto-stack queried — NOT a row-level container
   (a contained row can be narrower than the canvas, which would pick the wrong
   band). The bands match the List Grid widget's (mobile-first base, >= 640
   tablet, >= 1024 desktop) so rows and grids break at the same widths.

   STACKING is class-driven (`rowClasses()` emits `flow-row--stack-{mobile|
   tablet}`): a band-scoped `grid-template-columns: 1fr !important` collapses the
   row to one column. The `!important` + class scope is deliberate — it beats the
   per-band `--row-cols-*` rules below. This SUPERSEDES the theme's old blanket
   force-stack (dropped in lockstep). A CONTENT row gets the default
   `flow-row--stack-mobile`, so it keeps stacking < 640px exactly as before;
   `sizing*` is moot on a collapsed band. */
.flow-row {
  display: grid;
  grid-template-columns: var(--row-cols-m, 1fr);
  gap: var(--row-gap-m, var(--space-md));
  align-items: var(--row-valign-m, start);
  justify-content: var(--row-justify-m, normal);
}
@container theme-canvas (min-width: 640px) {
  .flow-row {
    grid-template-columns: var(--row-cols-t, 1fr);
    gap: var(--row-gap-t, var(--space-md));
    align-items: var(--row-valign-t, start);
    justify-content: var(--row-justify-t, normal);
  }
}
@container theme-canvas (min-width: 1024px) {
  .flow-row {
    grid-template-columns: var(--row-cols-d, 1fr);
    gap: var(--row-gap-d, var(--space-md));
    align-items: var(--row-valign-d, start);
    justify-content: var(--row-justify-d, normal);
  }
}
/* Stack intent — collapse to one column at-and-below the authored breakpoint.
   `639.98px` / `1023.98px` keep the columns ON at exactly 640 / 1024 (aligning
   the row break edge with the List Grid `min-width` bands). */
@container theme-canvas (max-width: 639.98px) {
  .flow-row--stack-mobile { grid-template-columns: 1fr !important; }
}
@container theme-canvas (max-width: 1023.98px) {
  .flow-row--stack-tablet { grid-template-columns: 1fr !important; }
}

/* ── List Grid widget — STRUCTURE only (Lists module plan §7.4) ───────────
   Theme-independent LAYOUT for the `listgrid` render widget: the responsive
   column grid + per-card span. Card SKIN (border, padding, shadow,
   typography) is the theme's — only grid geometry lives here.

   The SFC emits inline `--listgrid-cols-d/t/m` (clamped column counts) and a
   `--listgrid-gap` token; inline styles cannot hold container queries, so the
   queries that SELECT which column count + which per-card span is active live
   here. Responsiveness uses CONTAINER queries (not viewport media queries) so
   the grid reflows correctly inside the edit-in-place canvas device frames as
   well as on the front. The widget root is the query container.

   VARIANT SKIN HOOK (theme-declared-widget-variants plan, Workstream A): the SFC
   emits `flow-listgrid--{variant}` / `flow-listaccordion--{variant}` (the resolved,
   post-fallback variant key) as a BEM modifier on the block. The variant GEOMETRY
   (columns/gap/imageRatio/contentAlign) arrives via the inline custom-props above —
   so the canonical variants already render distinctly with NO skin here. By
   contract decision the canonical skin is EMPTY: structural.css ships no
   `--{variant}` rules; the SKIN (eyebrow colour, hover, sliding arrow, layout)
   is wholly THEME-owned (each theme's tokens.css targets these hooks). */
.flow-listgrid-widget { container-type: inline-size; }

/* Gap scale → theme spacing tokens. Structure maps the named steps; the
   `--space-*` values are the THEME's. */
.flow-listgrid { --listgrid-gap-none: 0; }
.flow-listgrid {
  --listgrid-gap-sm: var(--space-sm);
  --listgrid-gap-md: var(--space-md);
  --listgrid-gap-lg: var(--space-lg);
  --listgrid-gap-xl: var(--space-xl);
}

.flow-listgrid {
  display: grid;
  gap: var(--listgrid-gap, var(--space-md));
  /* Mobile-first: the mobile column count is the base. */
  grid-template-columns: repeat(var(--listgrid-cols-m, 1), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Per-card span — mobile-first base picks the mobile-clamped value. */
.flow-listgrid__card { grid-column: span var(--card-span-m, 1); }

@container (min-width: 640px) {
  .flow-listgrid {
    grid-template-columns: repeat(var(--listgrid-cols-t, 2), minmax(0, 1fr));
  }
  .flow-listgrid__card { grid-column: span var(--card-span-t, 1); }
}

@container (min-width: 1024px) {
  .flow-listgrid {
    grid-template-columns: repeat(var(--listgrid-cols-d, 3), minmax(0, 1fr));
  }
  .flow-listgrid__card { grid-column: span var(--card-span-d, 1); }
}

/* Each card's inner wrapper (an <a> when the card is a link — so the whole
   card is one discernible-name click target — otherwise a <div>) is the flex
   column that stacks the media frame above the content. It fills the
   equal-height card (stretched by the grid) so the theme can pin a cta to the
   bottom. SKIN (the card's own border / padding / shadow) is the theme's. */
.flow-listgrid__card { display: flex; min-inline-size: 0; }
.flow-listgrid__inner {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
}
/* Content column under the media frame; grows to fill the card height so a
   bottom-pinned cta lines up across a row of mixed-length cards. */
.flow-listgrid__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-inline-size: 0;
}
/* Every card image is cropped to the author-chosen ratio (the SFC emits
   `--flow-list-image-aspect` from the `imageRatio` prop; `cover` crops without
   distortion) so a row of mixed-size source images stays uniform. The image
   fills its media frame, which the theme may round / clip. */
.flow-listgrid__image {
  display: block;
  inline-size: 100%;
  aspect-ratio: var(--flow-list-image-aspect, 3 / 2);
  object-fit: cover;
}

/* ── Stats widget — STRUCTURE only (stats-as-list-collection-widget plan) ──
   Theme-independent LAYOUT for the `liststats` render widget: the responsive
   column grid + per-card span — the SAME mechanism as `.flow-listgrid`, with
   `liststats`-namespaced custom properties. Card SKIN (border, glass, figure
   typography, icon size) is the theme's; only grid geometry lives here.

   The SFC emits inline `--liststats-cols-d/t/m` (clamped column counts) + a
   `--liststats-gap` token; the container queries that SELECT the active column
   count + per-card span live here (inline styles cannot hold container queries).
   Responsiveness uses CONTAINER queries so the grid reflows in the edit-in-place
   canvas device frames as well as on the front. The widget root is the query
   container.

   VARIANT SKIN HOOK: the SFC emits `flow-liststats--{variant}` (the resolved,
   post-fallback variant key) as a BEM modifier. The variant GEOMETRY arrives via
   the inline custom-props; the canonical skin is EMPTY here — every theme owns the
   `--{variant}` appearance (each theme's tokens.css targets these hooks). */
.flow-liststats-widget { container-type: inline-size; }

/* Gap scale → theme spacing tokens (structure maps the named steps; the
   `--space-*` values are the THEME's). */
.flow-liststats { --liststats-gap-none: 0; }
.flow-liststats {
  --liststats-gap-sm: var(--space-sm);
  --liststats-gap-md: var(--space-md);
  --liststats-gap-lg: var(--space-lg);
  --liststats-gap-xl: var(--space-xl);
}

.flow-liststats {
  display: grid;
  gap: var(--liststats-gap, var(--space-md));
  /* Mobile-first: the mobile column count is the base. */
  grid-template-columns: repeat(var(--liststats-cols-m, 1), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Per-card span — mobile-first base picks the mobile-clamped value. */
.flow-liststats__card { grid-column: span var(--card-span-m, 1); }

@container (min-width: 640px) {
  .flow-liststats {
    grid-template-columns: repeat(var(--liststats-cols-t, 2), minmax(0, 1fr));
  }
  .flow-liststats__card { grid-column: span var(--card-span-t, 1); }
}

@container (min-width: 1024px) {
  .flow-liststats {
    grid-template-columns: repeat(var(--liststats-cols-d, 4), minmax(0, 1fr));
  }
  .flow-liststats__card { grid-column: span var(--card-span-d, 1); }
}

/* Each card's inner wrapper (an <a> when the card links — so the whole card is
   one discernible-name click target — otherwise a <div>) fills the equal-height
   card (stretched by the grid). SKIN (the card's own border / padding / glass) is
   the theme's. */
.flow-liststats__card { display: flex; min-inline-size: 0; }
.flow-liststats__inner {
  display: flex;
  inline-size: 100%;
}
/* The figure is the stacked figure column (icon / eyebrow / value / caption). It
   fills the card so the theme can centre or distribute the figure. Margin reset
   because <figure> carries a default UA margin. */
.flow-liststats__figure {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-inline-size: 0;
  margin: 0;
}

/* ── List Timeline widget — STRUCTURE only (listtimeline-widget plan) ──────
   Layout for the `listtimeline` widget: an ordered list of entries, each a
   marker column (dot / number / thumbnail) + a content column (date/title/
   blurb). The marker TREATMENT (dot vs CSS `counter` number vs thumbnail), the
   vertical connecting LINE, the gutter width, and all colour are the THEME's
   (keyed on `.flow-listtimeline--{variant}`); structure provides only the row
   layout + entry rhythm. `position: relative` on the entry/marker lets a theme
   draw the connecting line as an absolutely-positioned pseudo-element.

   VARIANT SKIN HOOK: the SFC emits `flow-listtimeline--{variant}` (the resolved,
   post-fallback key). Geometry (`gap`) arrives via the inline custom prop; the
   canonical skin is EMPTY here. */
.flow-listtimeline-widget { container-type: inline-size; }

/* Gap scale → theme spacing tokens (structure maps the named steps; the
   `--space-*` values are the THEME's). */
.flow-listtimeline { --listtimeline-gap-none: 0; }
.flow-listtimeline {
  --listtimeline-gap-sm: var(--space-sm);
  --listtimeline-gap-md: var(--space-md);
  --listtimeline-gap-lg: var(--space-lg);
  --listtimeline-gap-xl: var(--space-xl);
}

.flow-listtimeline {
  display: flex;
  flex-direction: column;
  gap: var(--listtimeline-gap, var(--space-lg));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Each entry: marker column beside the content column. `position: relative` so a
   theme can draw the connecting line; `min-inline-size: 0` lets the content wrap. */
.flow-listtimeline__entry {
  position: relative;
  display: flex;
  gap: var(--listtimeline-marker-gap, var(--space-md));
  min-inline-size: 0;
}

/* The marker holds the dot AND (optionally) the thumbnail; the variant CSS shows
   one. `flex: none` keeps the gutter fixed; `position: relative` anchors the line. */
.flow-listtimeline__marker {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The content column (date / title / blurb). */
.flow-listtimeline__content { min-inline-size: 0; flex: 1 1 auto; }
.flow-listtimeline__date { margin: 0; }
.flow-listtimeline__title { margin: 0; }
.flow-listtimeline__blurb > :first-child { margin-block-start: 0; }
.flow-listtimeline__blurb > :last-child { margin-block-end: 0; }

/* A linked entry: the whole content block is one discernible-name target. */
.flow-listtimeline__link { color: inherit; text-decoration: none; display: block; }

/* ── List Accordion widget — STRUCTURE only (Lists module plan §7.4) ──────
   Progressive-enhancement layout for the scripted `listaccordion` widget.
   Pre-hydration (no `.is-enhanced`) every panel is open + present (the SSR /
   no-JS contract — nothing is collapsed by CSS the client cannot undo). Once
   the component hydrates it adds `.is-enhanced`, and the `[hidden]` panels
   collapse; the open panel animates. SKIN (header chevron, borders, panel
   padding, type) is the theme's. */
.flow-listaccordion { display: block; }
.flow-listaccordion__heading { margin: 0; }
.flow-listaccordion__header {
  display: flex;
  inline-size: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm, 0.5rem);
  text-align: start;
  cursor: pointer;
}
/* The title fills the row so the author's `contentAlign` (emitted as an inline
   text-align on this span) has space to act; the chevron stays pinned to the
   trailing edge as the expand affordance. `left` (default) reads as a left-hug
   title — identical to the prior space-between layout, so no visual regression. */
.flow-listaccordion__header-text {
  flex: 1 1 auto;
  min-inline-size: 0;
}
/* The browser honours `hidden` (collapsed = removed from layout + AT). The
   open panel animates its reveal once enhanced; pre-enhancement no transition
   runs (content is simply present). */
.flow-listaccordion.is-enhanced .flow-listaccordion__panel {
  overflow: hidden;
}
/* Panel body: a row so an image renders as a small thumbnail BESIDE the answer
   text (never full-width). Image-less panels are just the text column. The
   thumbnail is cropped to the author-chosen ratio (`--flow-list-image-aspect`,
   default square) and sized by `clamp` so it stays a thumbnail at any width.
   SKIN (thumbnail radius, gaps, type) is the theme's. */
.flow-listaccordion__panel-inner {
  display: flex;
  gap: var(--space-md, 1rem);
  align-items: flex-start;
  min-inline-size: 0;
}
.flow-listaccordion__image {
  flex: 0 0 auto;
  inline-size: clamp(88px, 28%, 132px);
  aspect-ratio: var(--flow-list-image-aspect, 1 / 1);
  object-fit: cover;
  display: block;
}
/* The text column (body + cta) beside the thumbnail; `min-inline-size:0` lets
   long words wrap instead of pushing the thumbnail. */
.flow-listaccordion__content {
  flex: 1 1 auto;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm, 0.5rem);
}

/* ── Article List widget — STRUCTURE only (article-list-render-layer plan) ──
   Theme-independent LAYOUT for the `articlelist` render widget: a fixed
   responsive card grid (3 / 2 / 1 via container queries — no authorable
   column count in v1) + the card's inner flex anatomy, mirroring
   `.flow-listgrid` so themes skin both from the same patterns. Card SKIN
   (border, padding, shadow, typography, hover) is the theme's. The pager's
   controls are canonical `flow-button` anchors — the theme's tone-adaptive
   button skin applies with no pager-specific colour rules needed here. */
.flow-articlelist { container-type: inline-size; }

.flow-articlelist__grid {
  display: grid;
  gap: var(--flow-articlelist-gap, var(--space-md, 1rem));
  grid-template-columns: repeat(1, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

@container (min-width: 640px) {
  .flow-articlelist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (min-width: 1024px) {
  .flow-articlelist__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Card anatomy mirrors `.flow-listgrid`: the inner wrapper (an <a> when the
   article resolves a URL — the whole card is one discernible-name click
   target — otherwise a <div>) is the flex column stacking media over a
   growing content column, so bottom edges line up across a row. */
.flow-articlelist__card { display: flex; min-inline-size: 0; }
.flow-articlelist__inner {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
}
.flow-articlelist__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-inline-size: 0;
}
.flow-articlelist__image {
  display: block;
  inline-size: 100%;
  aspect-ratio: var(--flow-list-image-aspect, 3 / 2);
  object-fit: cover;
}

/* Pager row: centred controls with the page status between them. The
   disabled boundary control is a same-classed <span> (aria-disabled) so the
   pager keeps its shape on the first / last page. */
.flow-articlelist__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md, 1rem);
  margin-block-start: var(--space-lg, 1.5rem);
}
.flow-articlelist__pager [aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Form widget (forms-theme-styling plan) ────────────────────────────────
   The shared FormRenderer / FormFieldRenderer emit ONLY these canonical
   `flow-form*` / `flow-form-field*` hooks — all bespoke skin was removed from the
   components, so this floor is the single source of form appearance. The values
   are STANDARD DEFAULTS: neutral, accessible fallbacks behind `--flow-field-*` /
   `--flow-form-*` custom properties so a form reads cleanly on a theme that
   declares nothing. A theme RE-SKINS either cheaply (set the variables in its
   tokens.css) or deeply (write full rules against these same hooks); authored
   tokens.css follows this contract in source order, so a theme wins at equal
   specificity.

   The submit button is a canonical `.flow-button` skinned by the theme's own
   button rules (forms-theme-styling P1) — so NO button skin lives here, only the
   actions-row layout. */
.flow-form {
  display: flex;
  flex-direction: column;
  gap: var(--flow-form-gap, 1.25rem);
}
.flow-form__page {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--flow-form-field-gap, 1rem);
}
.flow-form__field { min-inline-size: 0; }
.flow-form__actions { display: flex; }

/* A missing / unpublished / withdrawn form (null payload) — a discreet note. */
.flow-form--unavailable {
  padding: 1rem 1.25rem;
  border: 1px dashed var(--flow-field-border, #94a3b8);
  border-radius: var(--flow-field-group-radius, 8px);
  color: var(--flow-field-help-color, #475569);
  font-size: 0.95rem;
}

/* Field wrapper + label / help / required marker. */
.flow-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  min-inline-size: 0;
  border: 0;
  padding: 0;
}
.flow-form-field--group {
  border: 1px solid var(--flow-field-group-border, #cbd5e1);
  border-radius: var(--flow-field-group-radius, 8px);
  padding: 0.75rem 1rem;
}
.flow-form-field__label,
.flow-form-field__legend {
  font-weight: var(--flow-field-label-weight, 600);
  font-size: 0.9rem;
  color: var(--flow-field-label-color, inherit);
}
.flow-form-field__required { color: var(--flow-field-required-color, #dc2626); }
.flow-form-field__help,
.flow-form-field__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--flow-field-help-color, #64748b);
}

/* The text-entry controls (input / select / textarea / file upload). */
.flow-form-field__control {
  inline-size: 100%;
  padding: var(--flow-field-padding, 0.5rem 0.6rem);
  border: 1px solid var(--flow-field-border, #cbd5e1);
  border-radius: var(--flow-field-radius, 6px);
  background: var(--flow-field-bg, #ffffff);
  color: var(--flow-field-text, var(--flow-field-fg, inherit));
  font: inherit;
}
/* Native date/time inputs have no ::placeholder — the `dd/mm/yyyy` hint renders
   via the WebKit/Blink edit pseudo. It serves BOTH the empty hint AND the entered
   value with no reliable CSS state selector, so emptiness is signalled by the
   `data-filled` attribute the form renderer toggles from the input's value:
   default (empty) = PLACEHOLDER colour; `[data-filled]` = input TEXT colour. So
   it behaves like a normal input. (Firefox ignores this pseudo and uses the
   control colour — acceptable.) */
.flow-form-field__control::-webkit-datetime-edit {
  color: var(--flow-field-placeholder-color, #94a3b8);
}
.flow-form-field__control[data-filled]::-webkit-datetime-edit {
  color: var(--flow-field-text, var(--flow-field-fg, inherit));
}
.flow-form-field__control:focus-visible {
  outline: var(--flow-field-focus-width, 2px) solid var(--flow-field-focus-color, #2563eb);
  outline-offset: var(--flow-field-focus-offset, 1px);
}
/* Placeholder text — brandable per tone (theme-brandability-semantic-vocabulary).
   Defaults to a muted grey; on a dark band it flips to the on-dark value. */
.flow-form-field__control::placeholder {
  color: var(--flow-field-placeholder-color, #94a3b8);
  opacity: 1; /* Firefox lowers placeholder opacity by default — pin it. */
}
[data-surface-tone="dark"] .flow-form-field__control::placeholder,
.flow-section--tone-light .flow-form-field__control::placeholder {
  color: var(--flow-field-placeholder-color-on-dark, var(--flow-field-placeholder-color, rgba(255, 255, 255, 0.6)));
}

/* Native <select> — the OS dropdown arrow's position is inconsistent and often
   sits flush/too far against the right edge. Replace it with a chevron pinned a
   controlled inset from the inline-end, and reserve inline-end padding so a long
   value never runs under it.

   The chevron is DRAWN, not an image: two diagonal stripes (the arms) and three
   round dots (both ends and the point, for round caps), every layer in
   `currentColor`. So it is always the select's own text colour — the floor's
   `--flow-field-text` / `-on-dark`, a theme rule that pins the field colour, a
   focus state, or a tenant's `field-text` branding — with nothing per theme or
   per surface. An image could not read any of those.

   Geometry: each layer sits in its own square tile of the arm size. Keep the arm
   size an EVEN pixel count — tiles of different parity snap half a pixel apart
   and the caps drift off the arms. `--flow-field-chevron-inset` places the 1em
   box the arrow used to occupy; the arrow's right end sits a quarter of it in.

   Every rule that colours the control (incl. on a dark surface) must set
   `background-color`, never the `background` shorthand or a `background-image` —
   either outranks this rule there and replaces the chevron. */
select.flow-form-field__control {
  --_chevron-arm: var(--flow-field-chevron-arm, 4px);
  --_chevron-stroke: var(--flow-field-chevron-stroke, 1.4px);
  --_chevron-end: calc(var(--flow-field-chevron-inset, 0.75rem) + 0.25em);
  --_chevron-arm-stops:
    transparent calc(50% - var(--_chevron-stroke) / 2 - 0.35px),
    currentColor calc(50% - var(--_chevron-stroke) / 2 + 0.35px),
    currentColor calc(50% + var(--_chevron-stroke) / 2 - 0.35px),
    transparent calc(50% + var(--_chevron-stroke) / 2 + 0.35px);
  --_chevron-cap: radial-gradient(
    circle,
    currentColor calc(var(--_chevron-stroke) / 2 - 0.35px),
    transparent calc(var(--_chevron-stroke) / 2 + 0.35px)
  );
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, var(--_chevron-arm-stops)),
    linear-gradient(-45deg, var(--_chevron-arm-stops)),
    var(--_chevron-cap),
    var(--_chevron-cap),
    var(--_chevron-cap);
  background-repeat: no-repeat;
  background-size: var(--_chevron-arm) var(--_chevron-arm);
  background-position:
    right calc(var(--_chevron-end) + var(--_chevron-arm)) center,
    right var(--_chevron-end) center,
    right calc(var(--_chevron-end) + 1.5 * var(--_chevron-arm)) top calc(50% - var(--_chevron-arm) / 2),
    right calc(var(--_chevron-end) + 0.5 * var(--_chevron-arm)) top calc(50% + var(--_chevron-arm) / 2),
    right calc(var(--_chevron-end) - 0.5 * var(--_chevron-arm)) top calc(50% - var(--_chevron-arm) / 2);
  padding-inline-end: var(--flow-field-chevron-gap, 2rem);
}
/* Forced colours (Windows High Contrast) drop gradient backgrounds, so the drawn
   chevron would vanish; hand the arrow back to the browser, which paints it in
   the system colours. (The fixed-colour SVG it replaced stayed, near-invisible.) */
@media (forced-colors: active) {
  select.flow-form-field__control {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
  }
}

.flow-form-field__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.flow-form-field__children {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.flow-form-field__repeat {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px dashed var(--flow-field-border, #94a3b8);
  border-radius: var(--flow-field-radius, 6px);
  background: transparent;
  color: var(--flow-field-help-color, #475569);
  font-size: 0.85rem;
}
.flow-form-field__signature {
  display: flex;
  align-items: center;
  justify-content: center;
  block-size: 90px;
  border: 1px dashed var(--flow-field-border, #94a3b8);
  border-radius: var(--flow-field-radius, 6px);
  color: var(--flow-field-help-color, #94a3b8);
  font-size: 0.85rem;
}
.flow-form-field__value { color: var(--flow-field-help-color, #475569); }

/* On-dark — mirror the ink-role dual signal (Lesson 116): the AUTO dark marker
   `[data-surface-tone="dark"]` AND the author's EXPLICIT "Light text" tone
   `.flow-section--tone-light` (which never emits the auto marker). Only the text
   sitting DIRECTLY on the dark band lifts to light + the group outline; the
   white control keeps its dark text and stays readable as-is (a theme may
   override the control on dark via the `-on-dark` variables). */
[data-surface-tone="dark"] .flow-form-field__label,
[data-surface-tone="dark"] .flow-form-field__legend,
[data-surface-tone="dark"] .flow-form-field__option,
.flow-section--tone-light .flow-form-field__label,
.flow-section--tone-light .flow-form-field__legend,
.flow-section--tone-light .flow-form-field__option {
  color: var(--flow-field-label-color-on-dark, var(--flow-fg-on-dark, #ffffff));
}
[data-surface-tone="dark"] .flow-form-field__help,
[data-surface-tone="dark"] .flow-form-field__hint,
[data-surface-tone="dark"] .flow-form-field__value,
[data-surface-tone="dark"] .flow-form-field__repeat,
[data-surface-tone="dark"] .flow-form-field__signature,
.flow-section--tone-light .flow-form-field__help,
.flow-section--tone-light .flow-form-field__hint,
.flow-section--tone-light .flow-form-field__value,
.flow-section--tone-light .flow-form-field__repeat,
.flow-section--tone-light .flow-form-field__signature {
  color: var(--flow-field-help-color-on-dark, rgba(255, 255, 255, 0.75));
}
/* The dashed repeat/signature affordance borders flip with the input border
   (same opt-in-with-light-fallback shape as the control border rule below). */
[data-surface-tone="dark"] .flow-form-field__repeat,
[data-surface-tone="dark"] .flow-form-field__signature,
.flow-section--tone-light .flow-form-field__repeat,
.flow-section--tone-light .flow-form-field__signature {
  border-color: var(--flow-field-border-on-dark, var(--flow-field-border, #94a3b8));
}
/* The required `*` marker — consumes the (previously dormant) on-dark role. */
[data-surface-tone="dark"] .flow-form-field__required,
.flow-section--tone-light .flow-form-field__required {
  color: var(--flow-field-required-color-on-dark, #fca5a5);
}
/* Authored html_body content is body text sitting directly on the band. */
[data-surface-tone="dark"] .flow-form-field__html,
.flow-section--tone-light .flow-form-field__html {
  color: var(--flow-fg-on-dark, #ffffff);
}
[data-surface-tone="dark"] .flow-form-field--group,
.flow-section--tone-light .flow-form-field--group {
  border-color: var(--flow-field-group-border-on-dark, rgba(255, 255, 255, 0.4));
}
/* Control border on dark — the white input stays readable on a dark band, but a
   theme/tenant may want a distinct input border there (branding-component-colours
   -per-scheme). Defaults to the light `--flow-field-border` so nothing changes
   unless `--flow-field-border-on-dark` is set. */
[data-surface-tone="dark"] .flow-form-field__control,
.flow-section--tone-light .flow-form-field__control {
  border-color: var(--flow-field-border-on-dark, var(--flow-field-border, #cbd5e1));
}
/* Control BACKGROUND on dark — a solid light input reads poorly on a dark band,
   so a theme/tenant may set a translucent `--flow-field-bg-on-dark` (the
   `color-alpha` brandable role). Defaults to the light `--flow-field-bg` so
   nothing changes unless the on-dark value is set
   (theme-brandability-semantic-vocabulary plan). */
[data-surface-tone="dark"] .flow-form-field__control,
.flow-section--tone-light .flow-form-field__control {
  background-color: var(--flow-field-bg-on-dark, var(--flow-field-bg, #ffffff));
}
/* Control TEXT on dark — the typed value AND native date/time format text
   (which inherits the control colour) must flip legible on a dark band. Defaults
   to the light field text so nothing changes unless the on-dark value is set. */
[data-surface-tone="dark"] .flow-form-field__control,
.flow-section--tone-light .flow-form-field__control {
  color: var(--flow-field-text-on-dark, var(--flow-field-text, var(--flow-field-fg, inherit)));
}
/* Native date/time edit on dark — empty hint = placeholder-on-dark, filled
   (`data-filled`) = input text-on-dark (mirrors the base rules above per tone). */
[data-surface-tone="dark"] .flow-form-field__control::-webkit-datetime-edit,
.flow-section--tone-light .flow-form-field__control::-webkit-datetime-edit {
  color: var(--flow-field-placeholder-color-on-dark, var(--flow-field-placeholder-color, rgba(255, 255, 255, 0.6)));
}
[data-surface-tone="dark"] .flow-form-field__control[data-filled]::-webkit-datetime-edit,
.flow-section--tone-light .flow-form-field__control[data-filled]::-webkit-datetime-edit {
  color: var(--flow-field-text-on-dark, var(--flow-field-text, var(--flow-field-fg, inherit)));
}

/* ── Scroll-reveal (lumen-theme-conversion plan §3.3b) ──────────────────────
   Opt-in via the `data-reveal` attribute, set ONLY by the shared `v-reveal`
   directive when a live IntersectionObserver will flip it. The DEFAULT (no
   attribute) is fully visible + no animation, so SSR, the editor canvas, and
   reduced-motion all render settled content — the directive simply never adds
   the attribute there. Animation values read from `--flow-reveal-*` custom
   properties a theme may tune. */
[data-reveal] {
  transition:
    opacity var(--flow-reveal-duration, 1s) var(--flow-reveal-ease, cubic-bezier(0.2, 0.7, 0.2, 1)),
    transform var(--flow-reveal-duration, 1s) var(--flow-reveal-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
  transition-delay: var(--flow-reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="hidden"] {
  opacity: 0;
  transform: translateY(var(--flow-reveal-distance, 28px));
}
[data-reveal="visible"] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── "On this page" section index — MECHANISM (section-anchors plan) ─────────
   Two things every conforming theme gets free, and one variable that governs
   both. `--flow-anchor-offset` is how far below the viewport top an anchored
   section should come to rest — set it once for a taller sticky header and the
   native `#hash` landing, the sticky index and the JS-driven jump all follow,
   because `SectionNav` MEASURES `scroll-margin-top` back off the target rather
   than keeping its own copy of the number.

   Everything here is wrapped in `:where()` for zero specificity: these are
   defaults a theme overrides with a single plain class selector, never a wall
   the theme has to fight. SKIN (colour, the active marker, type, spacing)
   belongs entirely to the theme, exactly as it does for `flow-nav*`. */

/* A section the index can link to must not land under fixed chrome — this is
   also what the browser uses for a `#hash` arriving on first load. */
:where(.flow-section[id]) {
  scroll-margin-top: var(--flow-anchor-offset, 6rem);
}

:where(.flow-section-nav__list) {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The variants name a LAYOUT AXIS, so honouring the axis is mechanism: the
   stacked forms (`sidebar`, `left`, `right`) stack — the list default — and the
   top strip lays out inline and wraps rather than overflowing. */
:where(.flow-section-nav--top .flow-section-nav__list) {
  display: flex;
  flex-wrap: wrap;
}

/* `left` / `right` additionally ask to sit BESIDE the content. Reserving that
   room is the host's or theme's job, not this file's — only they know the
   content column's width, and a theme with no room to give is entitled to
   render them exactly like `sidebar`. What is mechanism is the ORDER: a
   right-hand index must come after the content for a reader moving through the
   page in sequence, so it is placed with `order` rather than moved in the DOM.
   Keeping the markup order fixed means the tab order and the screen-reader
   order stay the reading order whichever side is chosen. */
:where(.flow-section-nav--right) {
  order: 1;
}

/* PLACEMENT — including whether the index follows the reader — belongs to
   whoever places it, not to this file. A `position: sticky` on the nav itself
   would be inert anyway: sticky travels within its CONTAINING BLOCK, and the
   nav's parent is only ever as tall as the nav. The element that can usefully
   stick is the host's slot, whose parent spans the page — so the host or the
   theme sets it, using the same `--flow-anchor-offset` this file uses for
   `scroll-margin-top` so the resting line stays a single number. */

/* Optional, schema-authored image geometry. No marker means the old theme
   appearance. The backing stays INSIDE the image's layout box: no overflow. */
.flow-image[data-image-frame] { display: block; box-sizing: border-box; }
.flow-image[data-image-frame="plain"] img { border-radius: 0; }
.flow-image[data-image-frame="rounded"] img { border-radius: var(--flow-image-radius, 1.5rem); }
.flow-image[data-image-frame="offset"] {
  padding: 0 1rem 1rem 0;
  border-radius: var(--flow-image-radius, 1.5rem);
  background: linear-gradient(135deg, transparent 25%, var(--flow-image-backing, color-mix(in srgb, currentColor 12%, transparent)) 25%);
}
.flow-image[data-image-frame="offset"] img { border-radius: var(--flow-image-radius, 1.5rem); }
.flow-image[data-image-crop] img { width: 100%; height: auto; object-fit: cover; }
.flow-image[data-image-crop="landscape"] img { aspect-ratio: 3 / 2; }
.flow-image[data-image-crop="square"] img { aspect-ratio: 1; }
.flow-image[data-image-crop="portrait"] img { aspect-ratio: 2 / 3; }
[data-reveal-effect="fade"][data-reveal="hidden"] { transform: none; }
[data-reveal-effect="rise"][data-reveal="hidden"] { transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal-effect][data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Practice details: shared geometry, theme-owned colour and type. */

.flow-practiceinfo { font-family:var(--flow-font-body,inherit); font-size:1rem; line-height:1.6; }
.flow-practiceinfo p { margin:0 0 .75rem; }
.flow-practiceinfo a { color:inherit; text-decoration:underline; text-underline-offset:.2em; display:inline-block; padding-block:.4rem; }
.flow-practiceinfo__nhs { display:block; width:288px; max-width:none; height:auto; background:#fff; margin-inline:max(calc((100% - 288px)/2), -8px); }

/* A menu item's icon (icon-library plan slice 2): FlowIcon sizes and aligns itself; only the gap to the label is
   shared geometry. A theme may change it on .flow-nav__icon in its tokens.css. */
:where(.flow-nav__icon) { margin-inline-end: .4em; flex-shrink: 0; }
/* A callout or token block icon sits in running text; a token link's icon is spaced by the link's own flex gap. */
:where(.flow-callout__icon, .flow-token-block__icon) { margin-inline-end: .4em; }

.flow-navigationmenu-widget[data-presentation="columns"] > .flow-nav { width:100%; max-width:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap:1.5rem 2rem; }
.flow-navigationmenu-widget[data-presentation="columns"] > .flow-nav > .flow-nav__item { border:0; min-width:0; }
.flow-navigationmenu-widget[data-presentation="columns"] .flow-nav__nested { border:0; padding-left:0; }

/* Contact panel owns its white ground and dark ink; the official black NHS
   descriptor stays intact. Other practice blocks inherit their section. */
.flow-navigationmenu-widget[data-density="compact"] > .flow-nav { border:0; }
.flow-navigationmenu-widget[data-density="compact"] .flow-nav .flow-nav__item { border:0; }
.flow-navigationmenu-widget[data-density="compact"] .flow-nav .flow-nav__link { min-height:44px; padding:.5rem 0; line-height:1.5; }
.flow-navigationmenu-widget[data-density="compact"] .flow-nav .flow-nav__label { padding:0 0 .65rem; font-size:.8rem; line-height:1.5; letter-spacing:.075em; text-transform:uppercase; }
.flow-navigationmenu-widget[data-density="compact"] .flow-nav__nested { padding:0; border:0; }

/* Navigation presentation belongs to the bound block, including in the editor. */
.flow-navigationmenu-widget[data-density="dense"] > .flow-nav,
.flow-navigationmenu-widget[data-density="dense"] .flow-nav__nested,
.flow-navigationmenu-widget[data-density="dense"] .flow-nav .flow-nav__item { border: 0; }
.flow-navigationmenu-widget[data-density="dense"] .flow-nav__nested { padding: 0; }
.flow-navigationmenu-widget[data-density="dense"] .flow-nav .flow-nav__link {
  min-height: 32px; padding: 3px 0; line-height: 1.5;
}
.flow-navigationmenu-widget[data-density="dense"] .flow-nav .flow-nav__label {
  padding: 0 0 .65rem; font-size: .8rem; line-height: 1.5; letter-spacing: .075em; text-transform: uppercase;
}
@container theme-canvas (max-width: 639.98px) {
  .flow-navigationmenu-widget[data-density="dense"] .flow-nav .flow-nav__link { min-height: 44px; padding-block: .5rem; }
}
@media (any-pointer: coarse) {
  .flow-navigationmenu-widget[data-density="dense"] .flow-nav .flow-nav__link { min-height: 44px; padding-block: .5rem; }
}
.flow-navigationmenu-widget {
  --flow-menu-emphasis: var(--flow-ink-emphasis, currentColor);
  --flow-menu-subtle: var(--flow-ink-subtle, currentColor);
  --flow-menu-accent: var(--flow-ink-accent, currentColor);
}
[data-surface-tone="dark"] .flow-navigationmenu-widget,
.flow-section--tone-light .flow-navigationmenu-widget {
  --flow-menu-emphasis: var(--flow-ink-emphasis-on-dark, currentColor);
  --flow-menu-subtle: var(--flow-ink-subtle-on-dark, currentColor);
  --flow-menu-accent: var(--flow-ink-accent-on-dark, currentColor);
}
.flow-navigationmenu-widget[data-heading-tone="emphasis"] .flow-nav .flow-nav__label { color: var(--flow-menu-emphasis); }
.flow-navigationmenu-widget[data-heading-tone="subtle"] .flow-nav .flow-nav__label { color: var(--flow-menu-subtle); }
.flow-navigationmenu-widget[data-heading-tone="accent"] .flow-nav .flow-nav__label { color: var(--flow-menu-accent); }
.flow-navigationmenu-widget[data-link-tone="emphasis"] .flow-nav .flow-nav__link:not(:focus) { color: var(--flow-menu-emphasis); }
.flow-navigationmenu-widget[data-link-tone="subtle"] .flow-nav .flow-nav__link:not(:focus) { color: var(--flow-menu-subtle); }
.flow-navigationmenu-widget[data-link-tone="accent"] .flow-nav .flow-nav__link:not(:focus) { color: var(--flow-menu-accent); }
.flow-navigationmenu-widget[data-link-tone]:not([data-link-tone="theme"]) .flow-nav .flow-nav__link:hover:not(:focus) {
  background: transparent; color: var(--flow-menu-emphasis); text-decoration: underline; text-underline-offset: .25em;
}

/* Token-bound links: the token remains the only source of their destination.
   Palettes have separate light/dark ink; filled buttons own both ground and ink. */
.flow-token-block {
  --flow-token-link-ink: var(--flow-fg, #172432);
  --flow-token-link-blue: #0759ad;
  --flow-token-link-violet: #6d28d9;
  --flow-token-link-green: #146b45;
  --flow-token-link-solid-text: #ffffff;
}
[data-surface-tone="dark"] .flow-token-block,
.flow-section--tone-light .flow-token-block {
  --flow-token-link-ink: var(--flow-fg-on-dark, #ffffff);
  --flow-token-link-blue: #86c5ff;
  --flow-token-link-violet: #c4b5fd;
  --flow-token-link-green: #88d9b0;
  --flow-token-link-solid-text: #0b1320;
}
.flow-token-block .flow-token-link.flow-token-link[data-link-colour="blue"] { --flow-token-link-ink: var(--flow-token-link-blue); }
.flow-token-block .flow-token-link.flow-token-link[data-link-colour="violet"] { --flow-token-link-ink: var(--flow-token-link-violet); }
.flow-token-block .flow-token-link.flow-token-link[data-link-colour="green"] { --flow-token-link-ink: var(--flow-token-link-green); }
.flow-token-block .flow-token-link.flow-token-link[data-link-appearance] {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem; max-width: 100%;
  color: var(--flow-token-link-ink); vertical-align: middle; overflow-wrap: anywhere;
}
.flow-token-block .flow-token-link.flow-token-link svg { flex: 0 0 20px; }
.flow-token-block .flow-token-link.flow-token-link[data-link-appearance]:not([data-link-appearance="text"]) {
  box-sizing: border-box; min-height: 44px; min-width: 44px; padding: .65rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--flow-token-link-ink) 65%, transparent);
  border-radius: 999px; line-height: 1.5; font-weight: 600; text-decoration: none;
}
.flow-token-block .flow-token-link.flow-token-link[data-link-appearance="outline"] { background: transparent; }
.flow-token-block .flow-token-link.flow-token-link[data-link-appearance="soft"] { background: color-mix(in srgb, var(--flow-token-link-ink) 9%, transparent); }
.flow-token-block .flow-token-link.flow-token-link[data-link-appearance="solid"] { background: var(--flow-token-link-ink); color: var(--flow-token-link-solid-text); }
.flow-token-block .flow-token-link.flow-token-link[data-link-shape="rounded"] { border-radius: .75rem; }
.flow-token-block .flow-token-link.flow-token-link[data-icon-only] { width: 48px; height: 48px; min-height: 48px; padding: 0; flex-shrink: 0; }
.flow-token-block .flow-token-link.flow-token-link[data-link-appearance]:not([data-link-appearance="text"]):hover:not(:focus) {
  border-color: var(--flow-token-link-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--flow-token-link-ink) 12%, transparent);
}
.flow-token-block .flow-token-link.flow-token-link[data-link-appearance]:focus-visible {
  color: #172432 !important; background: #ffeb3b !important;
  outline: 3px solid #ffeb3b; outline-offset: 3px; box-shadow: 0 0 0 6px #172432;
}
@media (prefers-reduced-motion: no-preference) {
  .flow-token-block .flow-token-link.flow-token-link[data-link-appearance]:not([data-link-appearance="text"]) { transition: transform 160ms ease, box-shadow 160ms ease; }
  .flow-token-block .flow-token-link.flow-token-link[data-link-appearance]:not([data-link-appearance="text"]):hover:not(:focus) { transform: translateY(-2px); }
}

/* Saturated brand fills need paler coloured ink than near-black sections. */
.flow-section--bg-brand[data-surface-tone="dark"] .flow-token-block,
.flow-section--bg-accent[data-surface-tone="dark"] .flow-token-block {
  --flow-token-link-blue: #e5f2ff;
  --flow-token-link-violet: #f1ebff;
  --flow-token-link-green: #e1faed;
}

/* Visitor control remains legible independently of the selected photograph. */
.flow-surface-motion-toggle {
  position: absolute; inset-inline-end: 1rem; bottom: 1rem; z-index: 20;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .5rem .875rem; border: 1px solid #aab2be; border-radius: 999px;
  background: #101827; color: #fff; font: 600 .8125rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.flow-surface-motion-toggle:hover { background: #253449; }
.flow-surface-motion-toggle:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 3px; }
.flow-hero[data-surface-paused="true"] * { animation-play-state: paused; }
/* Custom shading replaces, rather than stacks with, theme gradients. */
.flow-hero[data-shading="custom"]::before,
.flow-hero[data-shading="custom"]::after { content: none; }
.flow-hero[data-shading="custom"] .flow-hero__overlay { z-index: 1; }
.flow-hero[data-shading="custom"] .flow-hero__headline,
.flow-hero[data-shading="custom"] .flow-hero__eyebrow,
.flow-hero[data-shading="custom"] .flow-hero__subhead,
.flow-hero[data-shading="custom"] .flow-hero__actions { position: relative; z-index: 2; }

@media (max-width: 700px) {
  .flow-hero:has(.flow-surface-motion-toggle) { padding-bottom: 3rem; }
}

/* Animated hero: shared, theme-portable scene composition. */

.flow-animatedhero { --scene-ground: var(--flow-editorial-ground, #080f1c); --scene-ink: #f8fafc; --scene-accent: var(--flow-editorial-accent, #a5c8ff); position: relative; isolation: isolate; overflow: clip; background: var(--scene-ground); color: var(--scene-ink); min-height: 44rem; display: grid; align-items: center; }
.flow-animatedhero[data-height="compact"] { min-height: 34rem; }
.flow-animatedhero[data-height="immersive"] { min-height: min(58rem, 95svh); }
.flow-animatedhero__background { position: absolute; inset: -70px -3%; z-index: -3; }
.flow-animatedhero__background picture, .flow-animatedhero__background img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flow-animatedhero__shade { opacity: var(--scene-shading, 1); position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, color-mix(in srgb, var(--scene-ground) 94%, transparent), color-mix(in srgb, var(--scene-ground) 65%, transparent) 40%, color-mix(in srgb, var(--scene-ground) 10%, transparent)); }
.flow-animatedhero__layer { position: absolute; inset: -100px -4%; z-index: -1; display: flex; align-items: end; justify-content: end; pointer-events: none; }
.flow-animatedhero__layer picture { display: block; width: 90%; height: 100%; }
.flow-animatedhero__layer img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom right; }
.flow-animatedhero__layer[data-position="left"] { justify-content: start; }
.flow-animatedhero__layer[data-position="left"] img { object-position: bottom left; }
.flow-animatedhero__layer[data-position="centre"] { justify-content: center; }
.flow-animatedhero__layer[data-position="centre"] img { object-position: bottom center; }
.flow-animatedhero__layer[data-size="medium"] picture { width: 65%; }
.flow-animatedhero__layer[data-size="small"] picture { width: 40%; }
.flow-animatedhero__content { width: min(100% - 3rem, var(--flow-content-max-width, 72rem)); margin-inline: auto; padding-block: clamp(4rem, 8vw, 7rem); z-index: 1; }
.flow-animatedhero .flow-hero.flow-hero--transparent { min-height: 0; padding: 0; margin: 0; max-width: 43rem; background: none; color: var(--scene-ink); border: 0; box-shadow: none; display: block; }
.flow-animatedhero .flow-hero::before, .flow-animatedhero .flow-hero::after { display: none; }
.flow-animatedhero .flow-hero__headline { font-size: clamp(2.75rem, 5vw, 5rem); line-height: 1.04; letter-spacing: -.04em; max-width: 100%; margin: 0; color: inherit; }
.flow-animatedhero .flow-hero__eyebrow { margin: 0 0 1.5rem; color: var(--scene-accent); }
.flow-animatedhero .flow-hero__headline-accent { color: var(--scene-accent); }
.flow-animatedhero .flow-hero__subhead { font-size: 1.125rem; line-height: 1.7; max-width: 32rem; margin: 1.75rem 0 0; color: color-mix(in srgb, var(--scene-ink) 85%, var(--scene-ground)); }
.flow-animatedhero .flow-hero__actions { margin: 2rem 0 0; }
.flow-animatedhero .flow-hero__cta.flow-button { color: var(--scene-ink); border-color: color-mix(in srgb, var(--scene-ink) 45%, transparent); background: var(--scene-ground); }
.flow-animatedhero .flow-hero__cta.flow-button:hover { background: color-mix(in srgb, var(--scene-accent) 18%, var(--scene-ground)); }
.flow-animatedhero .flow-hero__cta.flow-button--primary { background: var(--scene-ink); color: var(--scene-ground); border-color: var(--scene-ink); }
.flow-animatedhero .flow-hero__cta.flow-button--primary:hover { background: color-mix(in srgb, var(--scene-ink) 90%, var(--scene-ground)); }
.flow-animatedhero .flow-hero__cta.flow-button--tertiary { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.flow-animatedhero .flow-hero__cta.flow-button:focus-visible { background: #ffeb3b; color: #212b32; outline: 3px solid #ffeb3b; outline-offset: 3px; box-shadow: 0 0 0 6px #212b32; }
.flow-animatedhero__edge { opacity: var(--scene-shading, 1); position: absolute; bottom: 0; left: 0; right: 0; height: 8rem; background: linear-gradient(transparent, var(--scene-ground)); pointer-events: none; }
.flow-animatedhero[data-composition="centre"] .flow-hero { margin-inline: auto; text-align: center; }
.flow-animatedhero[data-composition="centre"] .flow-hero__subhead { margin-inline: auto; }
.flow-animatedhero[data-composition="centre"] .flow-hero__actions { justify-content: center; }
.flow-animatedhero[data-composition="centre"] .flow-animatedhero__shade { background: color-mix(in srgb, var(--scene-ground) 78%, transparent); }
@media (max-width: 767px) {
  .flow-animatedhero, .flow-animatedhero[data-height] { min-height: 0; }
  .flow-animatedhero__content { width: calc(100% - 2rem); padding-block: 4.5rem 5rem; }
  .flow-animatedhero__shade { background: color-mix(in srgb, var(--scene-ground) 85%, transparent); }
  .flow-animatedhero__layer:not([data-mobile]) { display: none; }
  .flow-animatedhero .flow-hero__headline { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .flow-animatedhero__background, .flow-animatedhero__layer { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) { .flow-animatedhero__background, .flow-animatedhero__layer { transform: none !important; } }
/* Match the editor's device preview to the same small-screen composition. */
@container theme-canvas (max-width: 767px) {
  .flow-animatedhero, .flow-animatedhero[data-height] { min-height: 0; }
  .flow-animatedhero__content { width: calc(100% - 2rem); padding-block: 4.5rem 5rem; }
  .flow-animatedhero__shade { background: color-mix(in srgb, var(--scene-ground) 85%, transparent); }
  .flow-animatedhero__layer:not([data-mobile]) { display: none; }
  .flow-animatedhero .flow-hero__headline { font-size: clamp(2.4rem, 9cqi, 3.5rem); }
  .flow-animatedhero__background, .flow-animatedhero__layer { transform: none !important; }
}
[data-editor-mode] .flow-animatedhero__background, [data-editor-mode] .flow-animatedhero__layer { transform: none; }

/* Care journey: native sticky scene. Without JS, on short/narrow screens, and
   with reduced motion this is an ordinary, fully visible two-column hero. */
.flow-care-journey { --scene-ground: var(--flow-editorial-ground, #080f1c); --scene-ink: #f8fafc; --scene-accent: var(--flow-editorial-accent, #a5c8ff); --journey-travel: calc(var(--journey-viewport-height, 100svh) * .9); position: relative; background: var(--scene-ground); color: var(--scene-ink); isolation: isolate; }
.flow-care-journey[data-height="compact"] { --journey-travel: calc(var(--journey-viewport-height, 100svh) * .65); }
.flow-care-journey[data-height="immersive"] { --journey-travel: calc(var(--journey-viewport-height, 100svh) * 1.2); }
.flow-care-journey__stage { position: relative; isolation: isolate; overflow: clip; min-height: 42rem; display: grid; align-items: start; }
/* Reserve the stage before hydration. Narrow editor containers override this below. */
@media (min-width: 1000px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .flow-care-journey__stage { min-height: var(--journey-viewport-height, 100svh); }
}
.flow-care-journey__sky { position: absolute; inset: 0; z-index: -5; background: radial-gradient(ellipse at 75% 20%, color-mix(in srgb, var(--scene-accent) 24%, var(--scene-ground)), transparent 65%), var(--scene-ground); }
.flow-care-journey__photo { position: absolute; inset: -8%; }
.flow-care-journey__sky picture, .flow-care-journey__sky img { width: 100%; height: 100%; display: block; object-fit: cover; }
.flow-care-journey__shade { position: absolute; inset: 0; opacity: var(--scene-shading, 1); background: linear-gradient(90deg, var(--scene-ground), color-mix(in srgb, var(--scene-ground) 50%, transparent)); }
.flow-care-journey__orb { position: absolute; width: clamp(2.5rem, 4vw, 4.5rem); aspect-ratio: 1; top: 7%; right: 12%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--scene-sky-colour, #e4ecff), color-mix(in srgb, var(--scene-sky-colour, #e4ecff) 65%, transparent)); box-shadow: 0 0 3rem color-mix(in srgb, var(--scene-sky-colour, #e4ecff) 18%, transparent); }
.flow-care-journey__orb[data-sky-object="sun"] { background: var(--scene-sky-colour, #ffdc9e); box-shadow: 0 0 4rem 1rem color-mix(in srgb, var(--scene-sky-colour, #ffdc9e) 24%, transparent); }
.flow-care-journey[data-spacing="balanced"] .flow-care-journey__content { padding-top: clamp(5rem, 12svh, 9rem); }
.flow-care-journey__information { display: grid; gap: 2rem; min-width: 0; }
.flow-care-journey__stats { min-width: 0; color: var(--scene-ink); }
/* Composition sizing stays inside the reusable scene, including its editor preview. */
.flow-care-journey .flow-care-journey__stats .flow-liststats-widget[data-presentation] { padding: 0; background: transparent; color: inherit; }
.flow-care-journey .flow-care-journey__stats .flow-liststats-widget .flow-liststats { padding: 0; border: 0; gap: 1.75rem; }
.flow-care-journey[data-has-stats] .flow-care-journey__stats .flow-liststats-widget[data-presentation] .flow-liststats__card { padding: 1rem 0; border-inline: 0; }
.flow-care-journey[data-has-stats] .flow-care-journey__stats .flow-liststats-widget[data-presentation] .flow-liststats__value { font-size: clamp(2.5rem, 4cqi, 3.5rem); }
@container (min-width: 440px) {
  .flow-care-journey .flow-care-journey__stats .flow-liststats-widget .flow-liststats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.flow-care-journey[data-journey-phase] .flow-care-journey__information { align-items: center; }
.flow-care-journey[data-journey-phase] .flow-care-journey__information > * { grid-area: 1 / 1; }
.flow-care-journey[data-journey-phase] .flow-care-journey__stats { opacity: 0; }
.flow-care-journey[data-journey-phase]:has(.flow-care-journey__stats :focus-visible) .flow-care-journey__stats { opacity: 1 !important; transform: none !important; }
.flow-care-journey[data-journey-phase]:has(.flow-care-journey__stats :focus-visible) .flow-care-journey__message { opacity: 0 !important; }
.flow-care-journey__stars { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--scene-accent); opacity: .65; }
.flow-care-journey__land { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-care-journey__land--far { z-index: -4; fill: color-mix(in srgb, var(--scene-accent) 12%, var(--scene-ground)); }
.flow-care-journey__ridge { fill: color-mix(in srgb, var(--scene-accent) 8%, var(--scene-ground)); }
.flow-care-journey__land--middle { z-index: -3; fill: color-mix(in srgb, var(--scene-accent) 17%, var(--scene-ground)); }
.flow-care-journey__village { fill: color-mix(in srgb, var(--scene-accent) 22%, var(--scene-ground)); }
.flow-care-journey__windows { fill: color-mix(in srgb, var(--scene-accent) 75%, var(--scene-ink)); opacity: .5; }
.flow-care-journey__tree { stroke: color-mix(in srgb, var(--scene-accent) 22%, var(--scene-ground)); stroke-width: 7; }
.flow-care-journey__land--near-left, .flow-care-journey__land--near-right { z-index: 2; fill: var(--scene-ground); }
.flow-care-journey__leaves { color: color-mix(in srgb, var(--scene-accent) 20%, var(--scene-ground)); fill: currentColor; }
.flow-care-journey__content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: center; width: min(100% - 4rem, var(--flow-content-max-width, 72rem)); margin-inline: auto; padding-block: clamp(3rem, 6svh, 5rem) 6rem; }
.flow-care-journey .flow-care-journey__content .flow-hero.flow-hero--transparent { display: block; min-height: 0; max-width: none; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; color: var(--scene-ink); box-shadow: none; }
.flow-care-journey .flow-hero::before, .flow-care-journey .flow-hero::after { display: none; }
.flow-care-journey .flow-hero.flow-hero--transparent .flow-hero__headline { margin: 0; max-width: none; font-size: clamp(2.8rem, 4.7vw, 4.6rem); line-height: 1.07; letter-spacing: -.045em; color: inherit; }
.flow-care-journey .flow-hero.flow-hero--transparent .flow-hero__headline-accent { color: var(--scene-accent); }
.flow-care-journey .flow-hero.flow-hero--transparent .flow-hero__eyebrow { color: var(--scene-accent); margin: 0 0 1.6rem; font-size: .75rem; letter-spacing: .16em; line-height: 1.6; }
.flow-care-journey .flow-hero.flow-hero--transparent .flow-hero__subhead { color: color-mix(in srgb, var(--scene-ink) 83%, var(--scene-ground)); font-size: 1.0625rem; line-height: 1.75; max-width: 29rem; margin: 1.8rem 0 0; }
.flow-care-journey__panel { position: relative; background: color-mix(in srgb, var(--scene-ground) 96%, var(--scene-accent)); border: 1px solid color-mix(in srgb, var(--scene-accent) 30%, var(--scene-ground)); border-radius: 1.5rem; padding: 1.75rem; box-shadow: 0 2rem 5rem #0005, 0 0 0 7px color-mix(in srgb, var(--scene-accent) 4%, transparent); transform-origin: center; }
.flow-care-journey__panel::after { content: ''; position: absolute; inset: -.75rem; border: 1px solid color-mix(in srgb, var(--scene-accent) 10%, transparent); border-radius: 2rem; pointer-events: none; }
.flow-care-journey__panel-rule { display: flex; gap: .3rem; padding-bottom: 1.4rem; }
.flow-care-journey__panel-rule span { width: .3rem; height: .3rem; border-radius: 50%; background: var(--scene-accent); opacity: .6; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__headline { font-family: inherit; font-size: 1.5rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 1.5rem 0 0; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: .7rem; width: auto; min-width: 0; min-height: 5.25rem; height: auto; white-space: normal; margin: 0; padding: 1rem; border-radius: .7rem; border: 1px solid color-mix(in srgb, var(--scene-ink) 16%, transparent); box-shadow: none; background: color-mix(in srgb, var(--scene-accent) 6%, var(--scene-ground)); color: var(--scene-ink); font-size: .94rem; font-weight: 500; line-height: 1.4; text-decoration: none; transition: background .18s, border-color .18s; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button:hover { background: color-mix(in srgb, var(--scene-accent) 17%, var(--scene-ground)); border-color: var(--scene-accent); text-decoration: underline; text-underline-offset: .25em; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta svg { flex-shrink: 0; color: var(--scene-accent); }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button:focus-visible { color: #212b32; background: #ffeb3b; outline: 3px solid #ffeb3b; outline-offset: 3px; box-shadow: 0 0 0 6px #212b32; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta:focus-visible svg { color: inherit; }
.flow-care-journey__media-layer { position: absolute; bottom: 0; right: 0; width: 45%; height: 35%; z-index: 2; pointer-events: none; }
.flow-care-journey__media-layer[data-position="left"] { right: auto; left: 0; }
.flow-care-journey__media-layer[data-position="centre"] { right: 25%; }
.flow-care-journey__media-layer[data-size="small"] { width: 20%; }
.flow-care-journey__media-layer[data-size="medium"] { width: 30%; }
.flow-care-journey__media-layer picture, .flow-care-journey__media-layer img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.flow-care-journey__media-layer[data-position="left"] img { object-position: left bottom; }
.flow-care-journey__media-layer[data-position="right"] img { object-position: right bottom; }
.flow-care-journey__edge { opacity: var(--scene-shading, .45); position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: 5rem; background: linear-gradient(transparent, var(--scene-ground)); pointer-events: none; }
.flow-care-journey:has(:focus-visible) .flow-care-journey__panel { transform: none !important; }
.flow-care-journey:has(:focus-visible) .flow-care-journey__content { z-index: 4; }
@media (min-width: 1000px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .flow-care-journey[data-journey-active] { height: calc(var(--journey-viewport-height, 100svh) + var(--journey-travel)); }
  .flow-care-journey[data-journey-active] .flow-care-journey__stage { position: sticky; top: 0; height: var(--journey-viewport-height, 100svh); min-height: 0; }
}
@media (max-width: 999px), (max-height: 699px) {
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__information { display: contents; }
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__message { grid-row: 1; }
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__panel { grid-row: 2; }
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__stats { grid-row: 3; }
  .flow-care-journey__content { grid-template-columns: 1fr; gap: 2.5rem; max-width: 40rem; width: calc(100% - 3rem); padding-block: 4rem 7rem; }
  .flow-care-journey__stage { min-height: 0; }
  .flow-care-journey__panel { padding: 1.4rem; }
  .flow-care-journey .flow-hero.flow-hero--transparent .flow-hero__headline { font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__headline { font-size: 1.4rem; }
  .flow-care-journey__land--near-left, .flow-care-journey__land--near-right, .flow-care-journey__media-layer { display: none; }
}
@media (max-width: 420px) {
  .flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__actions { grid-template-columns: 1fr; }
  .flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button { min-height: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-care-journey { height: auto !important; }
  .flow-care-journey__stage { position: relative !important; height: auto !important; }
  .flow-care-journey [data-journey-part] { transform: none !important; }
  .flow-care-journey__stats, .flow-care-journey__message { opacity: 1 !important; }
  .flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button { transition: none; }
}
@container theme-canvas (max-width: 999px) {
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__information { display: contents; }
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__message { grid-row: 1; }
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__panel { grid-row: 2; }
  .flow-care-journey:not([data-journey-phase]) .flow-care-journey__stats { grid-row: 3; }
  .flow-care-journey__content { grid-template-columns: 1fr; gap: 2.5rem; max-width: 40rem; width: calc(100% - 3rem); padding-block: 4rem 6rem; }
  .flow-care-journey__stage { min-height: 0; }
  .flow-care-journey__land--near-left, .flow-care-journey__land--near-right, .flow-care-journey__media-layer { display: none; }
  .flow-care-journey .flow-hero.flow-hero--transparent .flow-hero__headline { font-size: clamp(2.4rem, 8cqi, 3.5rem); }
  .flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__headline { font-size: 1.4rem; }
}
@container theme-canvas (max-width: 420px) {
  .flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__actions { grid-template-columns: 1fr; }
  .flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button { min-height: 3.5rem; }
}
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button--primary { background: var(--scene-accent); color: var(--scene-ground); border-color: var(--scene-accent); }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button--primary svg { color: inherit; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button--primary:hover { background: color-mix(in srgb, var(--scene-accent) 85%, var(--scene-ink)); }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button--tertiary { background: transparent; border-color: transparent; text-decoration: underline; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__content { grid-template-columns: 1fr; max-width: 48rem; gap: 2.5rem; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__message { text-align: center; }
.flow-care-journey[data-composition="centre"] .flow-hero__subhead { margin-inline: auto; }
.flow-care-journey__panel .flow-hero.flow-hero--transparent .flow-hero__cta.flow-button:focus-visible { color: #212b32; background: #ffeb3b; }
@media (max-width: 999px) { .flow-care-journey__media-layer[data-mobile] { display: block; height: 8rem; } }
@container theme-canvas (max-width: 999px) { .flow-care-journey__media-layer[data-mobile] { display: block; height: 8rem; } }

/* Care journey: centred story. The scene floor is rooted; the care panel settles behind it. */
.flow-care-journey__meteors { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mask-image: radial-gradient(ellipse 38% 32% at 50% 48%, transparent 50%, #000 100%); }
.flow-care-journey__meteors i { position: absolute; height: 1px; opacity: 0; transform-origin: 0 50%; background: linear-gradient(90deg, transparent, #edf6ff66 60%, #fff); }
.flow-care-journey__meteors i::after { content: ''; position: absolute; right: -1px; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #e5f1ffb3; }
.flow-care-journey__media-layer, .flow-care-journey__land--near-left, .flow-care-journey__land--near-right { transform-origin: center bottom; }
.flow-care-journey__media-layer { mask-image: linear-gradient(#000 88%, transparent); }
.flow-care-journey__ground { opacity: var(--scene-shading, .45); position: absolute; inset: auto 0 0; height: 30%; z-index: 2; pointer-events: none; background: linear-gradient(transparent, var(--scene-ground) 96%); }
.flow-care-journey[data-composition="centre"] .flow-care-journey__content { max-width: var(--flow-content-max-width, 72rem); gap: 2rem; padding-block: 2.75rem 3rem; align-items: start; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__information { width: 100%; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__message { max-width: 64rem; margin-inline: auto; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__message .flow-hero__headline { font-size: clamp(2.5rem, 4.7vw, 4.6rem); }
.flow-care-journey[data-composition="centre"] .flow-care-journey__message .flow-hero__subhead { max-width: 64rem; margin-inline: auto; text-wrap: balance; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__panel { width: min(100%, 58rem); box-sizing: border-box; justify-self: center; padding: 1.5rem 1.75rem; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__panel-rule { display: none; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__panel .flow-hero__headline { text-align: center; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__panel .flow-hero__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__panel .flow-hero__cta.flow-button { min-height: 4.75rem; font-size: 1rem; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__stats { align-self: center; }
.flow-care-journey[data-composition="centre"] .flow-care-journey__stats .flow-liststats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.flow-care-journey[data-composition="centre"][data-has-stats] .flow-care-journey__stats .flow-liststats-widget[data-presentation] .flow-liststats__card { padding: 1rem 1.5rem; border: 0; border-inline-start: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.flow-care-journey[data-composition="centre"][data-has-stats] .flow-care-journey__stats .flow-liststats-widget[data-presentation] .flow-liststats__card:first-child { border-inline-start: 0; }
.flow-care-journey[data-composition="centre"][data-journey-phase] .flow-care-journey__information { min-height: 13rem; }
.flow-care-journey:has(.flow-care-journey__panel :focus-visible) .flow-care-journey__panel { opacity: 1 !important; transform: none !important; z-index: 5; }
@media (min-width: 1000px) and (min-height: 700px) {
  .flow-care-journey[data-composition="centre"] .flow-care-journey__stage { min-height: var(--journey-viewport-height, 100svh); }
  .flow-care-journey[data-composition="centre"][data-journey-active] .flow-care-journey__stage { height: var(--journey-viewport-height, 100svh); }
}
@media (max-width: 999px) {
  .flow-care-journey[data-composition="centre"] .flow-care-journey__panel .flow-hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-care-journey[data-composition="centre"] .flow-care-journey__stats .flow-liststats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-care-journey__meteors { display: none; }
}
@container theme-canvas (max-width: 999px) {
  .flow-care-journey[data-composition="centre"] .flow-care-journey__panel .flow-hero__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-care-journey[data-composition="centre"] .flow-care-journey__stats .flow-liststats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .flow-care-journey[data-composition="centre"] .flow-care-journey__panel .flow-hero__actions, .flow-care-journey[data-composition="centre"] .flow-care-journey__stats .flow-liststats { grid-template-columns: 1fr; }
}
@container theme-canvas (max-width: 420px) {
  .flow-care-journey[data-composition="centre"] .flow-care-journey__panel .flow-hero__actions, .flow-care-journey[data-composition="centre"] .flow-care-journey__stats .flow-liststats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .flow-care-journey__meteors { display: none; } }
.flow-care-journey[data-composition="centre"][data-spacing="balanced"] .flow-care-journey__content { padding-top: clamp(4rem, 8svh, 6rem); }
/* The still/editor view keeps the same reading order as narrow screens. */
.flow-care-journey[data-composition="centre"]:not([data-journey-phase]) .flow-care-journey__information { display: contents; }
.flow-care-journey[data-composition="centre"]:not([data-journey-phase]) .flow-care-journey__message { grid-row: 1; }
.flow-care-journey[data-composition="centre"]:not([data-journey-phase]) .flow-care-journey__panel { grid-row: 2; }
.flow-care-journey[data-composition="centre"]:not([data-journey-phase]) .flow-care-journey__stats { grid-row: 3; }

/* Centre the opening in the visible viewport; retain natural flow for still/tall layouts. */
.flow-care-journey[data-composition="centre"][data-journey-phase] .flow-care-journey__content { align-self: center; translate: 0 calc(var(--journey-entry-offset, 0px) / -2); }
.flow-care-journey[data-composition="centre"][data-journey-phase] .flow-care-journey__information { min-height: 13rem; }

/* Optional practice panels reuse Content Tokens; unselected panels take no space. */
.flow-care-journey__practice-panels { position: relative; z-index: 4; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; width: min(calc(100% - 3rem), var(--flow-content-max-width, 72rem)); margin: 2.5rem auto 0; }
.flow-care-journey__practice-panel { display: flex; align-items: flex-start; gap: .8rem; max-width: 24rem; padding: 1.1rem 1.4rem; border: 1px solid color-mix(in srgb, var(--scene-ink) 25%, transparent); border-radius: 1rem; background: color-mix(in srgb, var(--scene-ground) 90%, transparent); color: var(--scene-ink); box-shadow: 0 .75rem 2.5rem #051a3026; }
.flow-care-journey__practice-panel svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .15rem; color: var(--scene-accent); }
.flow-care-journey__practice-panel p { margin: 0; font-size: .95rem; line-height: 1.6; }
.flow-care-journey__practice-panel .flow-care-journey__panel-label { font-weight: 700; margin-bottom: .2rem; }
.flow-care-journey__practice-panel address { font-size: .875rem; line-height: 1.5; font-style: normal; }
.flow-care-journey__practice-panel small { display: block; font-size: .75rem; margin-top: .2rem; }
.flow-care-journey__status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--scene-accent); flex: none; margin-top: .5rem; }
.flow-care-journey__practice-panel[data-status="open"] .flow-care-journey__status-dot { background: #9de9c0; }
.flow-care-journey__practice-panel[data-status="soon"] .flow-care-journey__status-dot { background: #ffdc91; }
.flow-care-journey__practice-panel--hours { margin-left: auto; }

@supports (backdrop-filter: blur(1px)) { .flow-care-journey__practice-panel { backdrop-filter: blur(18px); } }
@media (max-width: 599px) {
 .flow-care-journey__practice-panels { display: grid; grid-template-columns: 1fr; }
 .flow-care-journey__practice-panel { width: 100%; max-width: none; box-sizing: border-box; }
}

/* Optional compact opening status: part of the task panel, never another rail. */
.flow-care-journey .flow-care-journey__panel[data-status-badge] { position: relative; }
.flow-care-journey .flow-care-journey__practice-panels[data-compact] { position: absolute; top: 1.5rem; right: 1.75rem; left: auto; transform: none; width: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.flow-care-journey .flow-care-journey__practice-panels[data-compact] .flow-care-journey__practice-panel { min-width: 0; padding: .4rem .75rem; border-radius: 100px; background: color-mix(in srgb, var(--scene-ink) 6%, var(--scene-ground)); border: 1px solid color-mix(in srgb, var(--scene-ink) 18%, transparent); box-shadow: none; }
.flow-care-journey .flow-care-journey__practice-panels[data-compact] .flow-care-journey__panel-label { font-size: .875rem; margin: 0; }
.flow-care-journey .flow-care-journey__panel[data-status-badge] .flow-hero__headline { text-align: left; padding-right: 10rem; min-height: 2.2rem; }
@keyframes flow-opening-welcome { 0%, 100% { box-shadow: 0 0 0 3px rgb(52 211 153 / .12); } 50% { box-shadow: 0 0 0 7px rgb(52 211 153 / .04), 0 0 12px rgb(52 211 153 / .6); } }
@media (prefers-reduced-motion: no-preference) {
  .flow-care-journey__practice-panels[data-compact][data-pulse] [data-status="open"] .flow-care-journey__status-dot { animation: flow-opening-welcome 2s ease-in-out 2; }
}
@media (max-width: 600px) {
 .flow-care-journey .flow-care-journey__practice-panels[data-compact] { position: static; display: flex; justify-content: flex-start; margin: 0 0 .8rem; }
 .flow-care-journey .flow-care-journey__panel[data-status-badge] .flow-hero__headline { padding-right: 0; }
}

@media (max-width: 999px), (prefers-reduced-motion: reduce) {
  .flow-care-journey__effects-toggle { display: none; }
}
}

/* Lumen authored tokens + base skin (lumen-theme-conversion plan B3).
 *
 * The whole file is wrapped in `@scope (.theme-canvas)` so it only styles the
 * Flow render surface (editor canvas + front), never the admin chrome. The vite
 * build prepends (1) the GENERATED brandable block (from tokens.ts) and (2) the
 * flow-shared structural contract — both also `@scope`d — ahead of this file.
 * Brandable tokens (--color-ink/paper/paper-deep/pearl/copper, --flow-fg/link-*,
 * --font-sans) are declared THERE and MUST NOT be re-declared here. No
 * `@import "tailwindcss"` — plain CSS only.
 */
@scope (.theme-canvas) {
  :scope {
    /* ── Semantic-core ALIASES (theme-brandability-semantic-vocabulary) ─────
       The brandable core now lives in tokens.ts as shared `--flow-*` semantic
       roles. These aliases keep Lumen's own palette vocabulary resolving to
       them, so the skin CSS below is untouched — and rebranding a role cascades
       through the alias. (Authored, NOT brandable → no duplicate-guard clash.) */
    --color-paper: var(--flow-surface);
    --color-pearl: var(--flow-surface-raised);
    --color-paper-deep: var(--flow-surface-sunken);
    --color-ink: var(--flow-surface-inverse);
    --color-copper: var(--flow-accent);

    /* ── Non-brandable palette (Lumen audit) ─────────────────────────────── */
    --color-ink-soft: #1a2024;
    --color-ink-faint: #2a3138;
    --color-mist: #d6d2c8;
    --color-mist-soft: #e7e3d9;
    --color-stone: #a5a095;
    --color-stone-soft: #6c6e68;
    --color-fog: rgba(250, 248, 243, 0.65);
    --color-haze: rgba(250, 248, 243, 0.4);
    --color-copper-deep: #a4502e;
    --color-copper-glow: rgba(198, 110, 72, 0.18);
    --color-accent-tint: #f6e9e0;
    /* --color-emerald / -amber / -claret → now brandable EXTRAS in tokens.ts */

    /* ── Section-background FLOOR (portable surface tokens) ───────────────── */
    /* brand + hero are DARK (Lumen's cinematic ink) → declared in
       manifest.darkSurfaces so ink + content-tone flip on them. */
    --section-bg-default: var(--color-paper);
    --section-bg-muted: var(--color-paper-deep);
    --section-bg-brand: var(--color-ink-soft);
    --section-bg-accent: var(--color-accent-tint);
    --section-bg-hero: var(--color-ink);

    /* ── Inline ink ROLES ────────────────────────────────────────────────
       emphasis / subtle / accent (+ on-dark) are now brandable core tokens in
       tokens.ts (theme-brandability-semantic-vocabulary) — generated ahead of
       this file. Removed from here to satisfy the duplicate-declaration guard.
       Their defaults still clear WCAG-AA against the light / dark floors
       (theme-side contrast test gates them). */

    /* ── Padding scale — canonical PaddingToken vocabulary ───────────────── */
    --space-none: 0;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* ── Form fields — skin the shared flow-form-field* floor. The COLOUR tokens
       (border, group-border, help, required + label + their `-on-dark` variants)
       moved to tokens.ts as BRANDABLE (branding-component-colours-per-scheme) —
       they must NOT be authored here too (guard #6). Only the non-colour SHAPE
       tokens + the copper focus ring (deliberately theme-owned, not brandable)
       stay authored. */
    --flow-field-radius: 10px;
    --flow-field-group-radius: 12px;
    --flow-field-focus-color: var(--color-copper);
    --flow-field-focus-width: 2px;
    --flow-field-focus-offset: 2px;

    /* ── Lumen signature easing (register #27) + reveal tuning ───────────── */
    --ease-lumen: cubic-bezier(0.2, 0.7, 0.2, 1);
    /* The shared reveal defaults already match Lumen (28px / 1s / this ease);
       declared explicitly so a brand tweak can't silently drift them. */
    --flow-reveal-distance: 28px;
    --flow-reveal-duration: 1s;
    --flow-reveal-ease: var(--ease-lumen);

    /* ── Container query context ─────────────────────────────────────────── */
    --container-max: 1320px;
    --container-gutter: 1.5rem;
    container: theme-canvas / inline-size;

    font-family: var(--font-sans);
    color: var(--flow-fg-on-light, #0a0f12);
    /* Switzer stylistic sets (register #33). */
    font-feature-settings: "ss01", "cv11";
  }

  /* Copper keyboard-focus ring (register #32). */
  :scope a:focus-visible,
  :scope button:focus-visible,
  :scope [tabindex]:focus-visible {
    outline: 2px solid var(--color-copper);
    outline-offset: 4px;
    border-radius: 2px;
  }

  /* Copper text selection. */
  :scope ::selection {
    background: var(--color-copper);
    color: var(--color-paper);
  }

  /* ── Heading display scale (Switzer at scale) ────────────────────────────
     `color: inherit` is deliberate — it lets the surface's content-tone AND the
     block-level `flow-ink-{role}` (doubled-class, 0,2,0) win over the heading.  */
  .flow-heading {
    font-family: var(--font-sans);
    color: inherit;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.02;
    text-wrap: balance;
  }
  .flow-heading--h1 {
    letter-spacing: -0.035em;
    line-height: 0.92;
    font-size: clamp(3rem, 9cqi, 8.5rem);
  }
  .flow-heading--h2 {
    letter-spacing: -0.03em;
    line-height: 0.95;
    font-size: clamp(2.5rem, 6cqi, 5.5rem);
  }
  .flow-heading--h3 {
    line-height: 1;
    font-size: clamp(2rem, 4cqi, 3.5rem);
  }
  .flow-heading--h4 {
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(1.5rem, 2.5cqi, 2.25rem);
  }
  .flow-heading--h5 {
    font-weight: 500;
    letter-spacing: -0.015em;
    font-size: clamp(1.25rem, 1.8cqi, 1.6rem);
  }
  .flow-heading--h6 {
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
  }

  /* ── Rich text prose — copper underlined links (register #35) ─────────── */
  .flow-richtext {
    line-height: 1.6;
  }
  .flow-richtext :where(p, li, dd) a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--color-copper);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    transition: color 200ms var(--ease-lumen);
  }
  .flow-richtext :where(p, li, dd) a:hover {
    color: var(--color-copper);
  }
  .flow-richtext strong {
    font-weight: 600;
  }

  /* ── Rich Text prose RHYTHM (generic editorial content — content-floor plan
     Phase 4). The links + strong above stay; this adds the paragraph / list /
     in-prose heading / blockquote / table rhythm a generic page needs. The
     shared floor gives block-level spacing; this gives IN-prose rhythm. Lumen
     measure (42rem), copper accents, Switzer. NB the big display scale above is
     the HEADING WIDGET; in-prose h2-h4 stay modest, as prose should. */
  .flow-richtext > :first-child { margin-block-start: 0; }
  .flow-richtext > :last-child { margin-block-end: 0; }
  .flow-richtext p { margin: 0 0 1.1rem; }
  .flow-richtext :where(h2, h3, h4) {
    font-family: var(--font-sans);
    color: inherit;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .flow-richtext h2 { font-size: clamp(1.75rem, 3cqi, 2.4rem); font-weight: 600; line-height: 1.1; margin: 2.5rem 0 1rem; }
  .flow-richtext h3 { font-size: clamp(1.4rem, 2.2cqi, 1.75rem); font-weight: 600; line-height: 1.15; margin: 2rem 0 0.75rem; }
  .flow-richtext h4 { font-size: 1.2rem; font-weight: 500; line-height: 1.25; margin: 1.6rem 0 0.5rem; }
  .flow-richtext ul,
  .flow-richtext ol { margin: 0 0 1.1rem; padding-inline-start: 1.4rem; }
  .flow-richtext ul { list-style: disc; }
  .flow-richtext ol { list-style: decimal; }
  .flow-richtext li { margin-block-end: 0.5rem; }
  .flow-richtext li::marker { color: var(--color-copper); }
  .flow-richtext blockquote {
    margin: 1.5rem 0;
    padding-inline-start: 1.25rem;
    border-inline-start: 2px solid var(--color-copper);
    color: var(--color-stone-soft);
    font-style: italic;
  }
  .flow-richtext table { border-collapse: collapse; width: 100%; margin: 0 0 1.1rem; }
  .flow-richtext th,
  .flow-richtext td { border: 1px solid var(--color-mist); padding: 0.6rem 0.85rem; text-align: start; }
  .flow-richtext th { background-color: var(--color-paper-deep); font-weight: 600; }

  /* ── Image widget — rounded editorial frame ───────────────────────────── */
  .flow-image { display: block; }
  .flow-image img { display: block; width: 100%; height: auto; border-radius: 14px; }

  /* ── Divider widget ───────────────────────────────────────────────────── */
  .flow-divider--line { border: 0; border-top: 1px solid var(--color-mist); margin: 0; }
  .flow-divider--space { display: block; height: var(--space-lg); }

  /* ── Button widget — canonical GLOBAL skin (forms-theme-styling Approach A).
     The pill shape + per-variant colour live HERE (not only in ButtonOverride)
     so EVERY `flow-button` consumer is skinned by plain CSS: the standalone
     Button widget, Hero CTAs, AND the Forms submit button. `ButtonOverride.vue`
     now layers only the sliding arrow + `lumen-button*` hooks on top. Values are
     ported 1:1 from the override's former inline Tailwind recipe, so standalone
     buttons render identically. */
  .flow-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 1rem 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color 220ms var(--ease-lumen),
      color 220ms var(--ease-lumen),
      border-color 220ms var(--ease-lumen),
      transform 220ms var(--ease-lumen);
  }
  /* Variants are EMPHASIS semantics (tone-adaptive-button-variants plan): each
     carries a LIGHT-surface base plus a dark-surface override keyed on the
     established dark-context signals — the AUTO marker, the author's explicit
     "Light text" tone (which never emits the auto marker), and the filled/image
     hero (its own dark surface, no section marker). Every on-dark rule restates
     `color` explicitly: structural's tone-light text rules (0,1,1) outrank the
     bare variant classes (0,1,0), so an inherited-colour button would bleed. */
  /* primary → copper pill on light → ink pill on hover */
  .flow-button--primary {
    background-color: var(--color-copper);
    color: var(--color-paper);
    border-color: var(--color-copper);
  }
  .flow-button--primary:hover {
    background-color: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-paper);
  }
  /* secondary → ink ghost on light (transparent, ink/35% hairline) */
  .flow-button--secondary {
    background-color: transparent;
    color: var(--color-ink);
    border-color: rgba(10, 15, 18, 0.35);
  }
  .flow-button--secondary:hover {
    background-color: rgba(10, 15, 18, 0.08);
    border-color: var(--color-ink);
    color: var(--color-ink);
  }
  /* tertiary → outline-dark (transparent ink → ink fill) */
  .flow-button--tertiary {
    background-color: transparent;
    color: var(--color-ink);
    border-color: var(--color-ink);
  }
  .flow-button--tertiary:hover {
    background-color: var(--color-ink);
    color: var(--color-paper);
  }
  /* dark → ink pill on light → copper on hover (Lumen's extra variant) */
  .flow-button--dark {
    background-color: var(--color-ink);
    color: var(--color-paper);
    border-color: var(--color-ink);
  }
  .flow-button--dark:hover {
    background-color: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-paper);
  }

  /* ── Dark-surface overrides ──────────────────────────────────────────────
     primary/secondary keep their pre-adaptive dark styles VERBATIM (paper pill /
     paper ghost), so existing dark bands and hero call-to-actions render
     identically; tertiary/dark GAIN dark appearances they never had. */
  /* primary on dark → paper pill → copper on hover (today's base, verbatim) */
  [data-surface-tone="dark"] .flow-button--primary,
  .flow-section--tone-light .flow-button--primary,
  .flow-hero:not(.flow-hero--transparent) .flow-button--primary {
    background-color: var(--color-paper);
    color: var(--color-ink);
    border-color: var(--color-paper);
  }
  [data-surface-tone="dark"] .flow-button--primary:hover,
  .flow-section--tone-light .flow-button--primary:hover,
  .flow-hero:not(.flow-hero--transparent) .flow-button--primary:hover {
    background-color: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-paper);
  }
  /* secondary on dark → paper ghost (today's base, verbatim) */
  [data-surface-tone="dark"] .flow-button--secondary,
  .flow-section--tone-light .flow-button--secondary,
  .flow-hero:not(.flow-hero--transparent) .flow-button--secondary {
    background-color: transparent;
    color: var(--color-paper);
    border-color: rgba(250, 248, 243, 0.35);
  }
  [data-surface-tone="dark"] .flow-button--secondary:hover,
  .flow-section--tone-light .flow-button--secondary:hover,
  .flow-hero:not(.flow-hero--transparent) .flow-button--secondary:hover {
    background-color: rgba(250, 248, 243, 0.1);
    border-color: var(--color-paper);
    color: var(--color-paper);
  }
  /* tertiary on dark → paper outline → paper fill on hover */
  [data-surface-tone="dark"] .flow-button--tertiary,
  .flow-section--tone-light .flow-button--tertiary,
  .flow-hero:not(.flow-hero--transparent) .flow-button--tertiary {
    background-color: transparent;
    color: var(--color-paper);
    border-color: var(--color-paper);
  }
  [data-surface-tone="dark"] .flow-button--tertiary:hover,
  .flow-section--tone-light .flow-button--tertiary:hover,
  .flow-hero:not(.flow-hero--transparent) .flow-button--tertiary:hover {
    background-color: var(--color-paper);
    color: var(--color-ink);
  }
  /* dark on dark → paper pill (mirrors primary-on-dark) → copper on hover */
  [data-surface-tone="dark"] .flow-button--dark,
  .flow-section--tone-light .flow-button--dark,
  .flow-hero:not(.flow-hero--transparent) .flow-button--dark {
    background-color: var(--color-paper);
    color: var(--color-ink);
    border-color: var(--color-paper);
  }
  [data-surface-tone="dark"] .flow-button--dark:hover,
  .flow-section--tone-light .flow-button--dark:hover,
  .flow-hero:not(.flow-hero--transparent) .flow-button--dark:hover {
    background-color: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-paper);
  }

  /* ── Form widget — Lumen glass fields (lumen-form-styling). The Forms
     module's shared FormRenderer emits the `flow-form*` hooks below; like
     List Accordion there is NO Lumen FormOverride — the theme skins the
     canonical markup HERE. Submit/previous arrive as `flow-button` pills
     (skinned in the Button section already); this section dresses the rest:
     fog-glass text controls on mist hairlines with a copper focus glow,
     eyebrow labels, pearl panels for grouped fields and repeat rows, stone
     hints, copper-deep errors. Native radios/checkboxes/dates take copper
     via `accent-color`. Input focus swaps the default outline for a
     4px copper-glow ring + copper hairline — an always-visible indicator. */
  .flow-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 40rem;
    font-family: var(--font-sans);
    color: var(--color-ink);
  }
  .flow-form__page {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
  }
  .flow-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  /* Eyebrow labels — the LUMEN letterspaced-caps signature, scaled down. */
  .flow-form-field__label,
  .flow-form-field__legend {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-ink);
  }
  .flow-form-field__required {
    color: var(--color-copper);
  }
  .flow-form-field__hint,
  .flow-form-field__help,
  .flow-form-field__description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-stone-soft);
  }
  .flow-form-field__error {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-copper-deep);
  }
  /* Text-like controls: fog glass, mist hairline, copper glow on focus. */
  /* `__control` is carried BY the field element itself (input/select/textarea),
     not by a wrapper — verified against the rendered FormRenderer DOM. Both
     shapes are matched so a wrapped control (grouped/repeat rows) is skinned
     identically. */
  .flow-form-field__control:is(input, select, textarea):not([type="radio"]):not([type="checkbox"]),
  .flow-form-field__control :is(input, select, textarea):not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    background-color: var(--color-paper-deep);
    border: 1px solid var(--color-mist);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--color-ink);
    transition:
      border-color 220ms var(--ease-lumen),
      box-shadow 220ms var(--ease-lumen),
      background-color 220ms var(--ease-lumen);
  }
  /* The rule above and the focus rule below set `background-color`, never the
     `background` shorthand: at (0,3,1) the shorthand outranks the floor's chevron
     (`select.flow-form-field__control`, 0,1,1) and resets it to `none`. The
     floor draws the chevron in the select's own text colour, so it is Lumen's
     ink on every surface. A select keeps the floor's room for it — the padding
     above would let a long value run underneath; same weight, later. */
  .flow-form-field__control:is(select):not([type="radio"]):not([type="checkbox"]) {
    padding-inline-end: var(--flow-field-chevron-gap, 2.5rem);
  }
  .flow-form-field__control::placeholder,
  .flow-form-field__control :where(input, select, textarea)::placeholder {
    color: var(--color-stone);
  }
  .flow-form-field__control:is(input, select, textarea):not([type="radio"]):not([type="checkbox"]):focus,
  .flow-form-field__control :is(input, select, textarea):not([type="radio"]):not([type="checkbox"]):focus {
    outline: none;
    background-color: var(--color-paper);
    border-color: var(--color-copper);
    box-shadow: 0 0 0 4px var(--color-copper-glow);
  }
  /* Choice rows: comfortable tap targets, copper-tinted native controls. */
  .flow-form-field__option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    font-size: 0.9375rem;
    color: var(--color-ink-soft);
  }
  .flow-form-field__option input[type="radio"],
  .flow-form-field__option input[type="checkbox"],
  input[type="radio"].flow-form-field__control,
  input[type="checkbox"].flow-form-field__control,
  .flow-form-field__control input[type="radio"],
  .flow-form-field__control input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--color-copper);
  }
  /* Grouped fields (fieldsets) sit on a pearl panel, like the accordion. */
  .flow-form-field--group {
    background: var(--color-pearl);
    border: 1px solid var(--color-mist-soft);
    border-radius: 1.25rem;
    padding: 1.35rem 1.5rem 1.5rem;
  }
  /* Float the legend full-width so it renders as a plain block heading inside
     the panel: that suppresses the browser's default `fieldset` border notch,
     which is the only broken outline in the theme. Copper-deep + a touch more
     size separates a PANEL TITLE from the field labels beneath it. */
  .flow-form-field--group > .flow-form-field__legend {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--color-copper-deep);
  }
  /* Repeatable rows (household members): pearl cards + ghost controls. */
  .flow-form-field__rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .flow-form-field__row {
    background: var(--color-pearl);
    border: 1px solid var(--color-mist-soft);
    border-radius: 1rem;
    padding: 1.15rem 1.25rem 1.25rem;
  }
  /* "Entry 1" — the repeat row's own `legend` carries no class. A sub-heading
     INSIDE a panel, so it sits a step below the copper panel title: same caps
     treatment, quieter stone tone. Floated full-width like the panel legend so
     the row's border stays unbroken (a flex fieldset still notches in Chrome —
     the float is what actually suppresses it). */
  .flow-form-field__row > .flow-form-field__legend,
  .flow-form-field__row > legend {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0 0 0.9rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-stone-soft);
  }
  /* The floated legend is full-width, so every following child must clear it
     — otherwise the first control wraps into the float's line box and renders
     squeezed against the panel's right edge. */
  .flow-form-field--group > *:not(legend),
  .flow-form-field__row > *:not(legend) {
    clear: both;
  }
  /* Rhythm inside a repeat row — its children are bare `flow-form-field`
     blocks, so they need explicit separation, and the remove pill needs air
     between it and the last control. */
  .flow-form-field__row > .flow-form-field + .flow-form-field {
    margin-top: 1rem;
  }
  .flow-form-field__row > .flow-form-field__remove {
    margin-top: 1.15rem;
  }
  .flow-form-field__repeat,
  .flow-form-field__remove,
  .flow-form-field__signature-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px dashed var(--color-stone);
    border-radius: 9999px;
    padding: 0.65rem 1.2rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-ink-soft);
    cursor: pointer;
    transition:
      border-color 220ms var(--ease-lumen),
      background-color 220ms var(--ease-lumen),
      color 220ms var(--ease-lumen);
  }
  .flow-form-field__repeat:hover,
  .flow-form-field__remove:hover,
  .flow-form-field__signature-clear:hover {
    border-color: var(--color-copper);
    background: var(--color-accent-tint);
    color: var(--color-copper-deep);
  }
  .flow-form-field__remove,
  .flow-form-field__signature-clear {
    padding: 0.4rem 0.9rem;
    font-size: 0.8125rem;
  }
  /* Signature capture: a fog well behind a dashed mist frame. */
  .flow-form-field__signature-capture {
    background: var(--color-fog);
    border: 1px dashed var(--color-mist);
    border-radius: 0.9rem;
  }
  .flow-form-field__signature-helper {
    font-size: 0.8125rem;
    color: var(--color-stone-soft);
  }
  /* Read-only display fields (review step): quiet pearl chips. */
  .flow-form-field--display .flow-form-field__value {
    background: var(--color-pearl);
    border: 1px solid var(--color-mist-soft);
    border-radius: 0.9rem;
    padding: 0.75rem 1.1rem;
    font-size: 0.9375rem;
  }
  .flow-form__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
  }
  /* The submit is the section's primary call to action — give it the copper
     pill so it speaks the same language as a Hero CTA, rather than inheriting
     the bare `flow-button` outline. `flow-form__previous` stays a ghost. */
  .flow-form__submit {
    background-color: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-paper);
  }
  .flow-form__submit:hover {
    background-color: var(--color-ink);
    border-color: var(--color-ink);
    color: var(--color-paper);
  }
  /* Attention surfaces: warm tint + copper hairline (lumen has no red). */
  .flow-form__error-summary,
  .flow-form__terminal-error {
    background: var(--color-accent-tint);
    border: 1px solid var(--color-copper);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-copper-deep);
  }
  .flow-form--receipt,
  .flow-form__receipt {
    background: var(--color-pearl);
    border: 1px solid var(--color-mist-soft);
    border-radius: 1.25rem;
    padding: var(--space-md);
  }
  .flow-form--unavailable {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--color-stone-soft);
  }

  /* Pearl surfaces stay LIGHT on dark bands, so the canonical on-dark text
     lift (flow-shared structural.css: "only the text sitting DIRECTLY on
     the dark band lifts to light") must hand back to panel ink inside
     them — grouped options, labels and hints otherwise render
     white-on-pearl (~1:1). Covers BOTH dark variants: the auto marker and
     the author's explicit Light-text tone. */
  :is([data-surface-tone="dark"], .flow-section--tone-light) :is(.flow-form-field--group, .flow-form-field__row, .flow-form-field--display) :is(.flow-form-field__label, .flow-form-field__legend, .flow-form-field__html) {
    color: inherit;
  }
  :is([data-surface-tone="dark"], .flow-section--tone-light) :is(.flow-form-field--group, .flow-form-field__row, .flow-form-field--display) .flow-form-field__option {
    color: var(--color-ink-soft);
  }
  :is([data-surface-tone="dark"], .flow-section--tone-light) :is(.flow-form-field--group, .flow-form-field__row, .flow-form-field--display) :is(.flow-form-field__help, .flow-form-field__hint, .flow-form-field__value, .flow-form-field__repeat, .flow-form-field__signature) {
    color: var(--color-stone-soft);
  }
  :is([data-surface-tone="dark"], .flow-section--tone-light) :is(.flow-form-field--group, .flow-form-field__row, .flow-form-field--display) .flow-form-field__required {
    color: var(--color-copper);
  }

  /* ── List Accordion widget — Lumen pearl panel. There is NO Lumen
     ListaccordionOverride (manifest registers only button/hero/listgrid/
     stats/callout), so the canonical base widget renders the
     `flow-listaccordion__*` hooks and the theme skins them HERE in tokens.css.
     (The List Grid skin is also here now — see the next section; the
     ListgridOverride.vue carries skin-free structure only.) Pearl card, mist
     hairlines, copper headers, CSS chevron. */
  .flow-listaccordion {
    border: 1px solid var(--color-mist);
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--color-pearl);
  }
  .flow-listaccordion__item + .flow-listaccordion__item { border-top: 1px solid var(--color-mist); }
  /* Variants (shared-list-variant-vocabulary): `panel` = each item a standalone
     rounded card with a gap; `flush` = borderless, edge-to-edge, items parted only
     by the hairline divider. Distinct re-skins over the neutral base box above. */
  .flow-listaccordion--panel {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background-color: transparent;
  }
  .flow-listaccordion--panel .flow-listaccordion__item {
    border: 1px solid var(--color-mist);
    border-radius: 16px;
    background-color: var(--color-pearl);
    overflow: hidden;
  }
  .flow-listaccordion--panel .flow-listaccordion__item + .flow-listaccordion__item { margin-top: var(--space-sm); }
  .flow-listaccordion--flush {
    border: 0;
    border-radius: 0;
    background-color: transparent;
  }
  .flow-listaccordion__heading { margin: 0; }
  .flow-listaccordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background-color: transparent;
    border: 0;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-align: start;
    color: var(--color-copper-deep);
    cursor: pointer;
    transition: background-color 0.2s var(--ease-lumen), color 0.2s var(--ease-lumen);
  }
  .flow-listaccordion__header:hover { background-color: var(--color-paper-deep); }
  .flow-listaccordion__header[aria-expanded="true"] { color: var(--color-ink); background-color: var(--color-paper-deep); }
  .flow-listaccordion__header-text { flex: 1 1 auto; min-width: 0; }
  .flow-listaccordion__chevron {
    flex: 0 0 auto;
    width: 0.6rem;
    height: 0.6rem;
    margin-inline-start: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s var(--ease-lumen);
  }
  .flow-listaccordion__header[aria-expanded="true"] .flow-listaccordion__chevron { transform: rotate(225deg); }
  .flow-listaccordion__panel-inner {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    color: var(--color-stone-soft);
    font-size: 1rem;
    line-height: 1.55;
  }
  .flow-listaccordion__image { border-radius: 12px; background-color: var(--color-paper-deep); }
  .flow-listaccordion__body > :first-child { margin-top: 0; }
  .flow-listaccordion__body > :last-child { margin-bottom: 0; }
  .flow-listaccordion__link {
    font-weight: 500;
    color: var(--color-copper-deep);
    text-decoration: underline;
    text-decoration-color: var(--color-copper);
    text-underline-offset: 3px;
  }
  .flow-listaccordion__link:hover { color: var(--color-copper); }

  /* ── Content token block widget — structured display (content-tokens plan
     DD5 / §7.3) ─────────────────────────────────────────────────────────
     flow-shared owns the STRUCTURE (an <address> of stacked lines, a weekday
     <table>, a scalar <p>, or the `[label]` fallback <p>); this block owns
     only APPEARANCE, keyed to the Lumen tokens. The INLINE `flow-token` span is
     semantics-only and is deliberately NOT skinned — it inherits the
     surrounding text. Emitted markup (flow-shared Token.vue):

       <div class="flow-token-block">
         <address class="flow-token-block__address">
           <span class="flow-token-block__line">…</span>
         </address>
         — or —
         <table class="flow-token-block__hours"><tbody>
           <tr class="flow-token-block__hours-row">
             <th class="flow-token-block__day">Monday</th>
             <td class="flow-token-block__times">09:00–17:30</td>
           </tr>
         </tbody></table>
         — or —
         <p class="flow-token-block__text">…</p>
         — or —
         <p class="flow-token-block__fallback">[Label]</p>
       </div> */
  .flow-token-block {
    color: var(--color-ink);
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  /* Postal address — stacked lines; reset the browser's italic <address>. */
  .flow-token-block__address {
    font-style: normal;
    display: flex;
    flex-direction: column;
  }
  .flow-token-block__line { display: block; }

  /* Opening hours — a compact two-column weekday table. */
  .flow-token-block__hours {
    border-collapse: collapse;
    inline-size: auto;
    text-align: start;
  }
  .flow-token-block__hours-row + .flow-token-block__hours-row .flow-token-block__day,
  .flow-token-block__hours-row + .flow-token-block__hours-row .flow-token-block__times {
    border-top: 1px solid var(--color-mist);
  }
  .flow-token-block__day {
    padding: 0.4rem 1.5rem 0.4rem 0;
    font-weight: 600;
    text-align: start;
    color: var(--color-ink);
  }
  .flow-token-block__times {
    padding: 0.4rem 0;
    color: var(--color-stone-soft);
    font-variant-numeric: tabular-nums;
  }
  .flow-token-block__times--closed {
    font-style: italic;
    color: var(--color-stone);
  }

  /* Scalar token — plain paragraph, no margin drift inside a block slot. */
  .flow-token-block__text { margin: 0; }

  /* Unresolved reference — muted so an unfilled token reads as a placeholder. */
  .flow-token-block__fallback {
    margin: 0;
    font-style: italic;
    color: var(--color-stone);
  }

  /* Dark-surface flip — the block sits DIRECTLY on the section surface, so its
     ink follows the section foreground on a dark band (both dark signals
     honoured, Lesson 114). */
  .flow-section--tone-light .flow-token-block,
  [data-surface-tone="dark"] .flow-token-block { color: var(--flow-fg-on-dark, #faf8f3); }
  .flow-section--tone-light .flow-token-block__day,
  [data-surface-tone="dark"] .flow-token-block__day { color: var(--flow-fg-on-dark, #faf8f3); }
  .flow-section--tone-light .flow-token-block__times,
  .flow-section--tone-light .flow-token-block__times--closed,
  .flow-section--tone-light .flow-token-block__fallback,
  [data-surface-tone="dark"] .flow-token-block__times,
  [data-surface-tone="dark"] .flow-token-block__times--closed,
  [data-surface-tone="dark"] .flow-token-block__fallback { color: var(--flow-ink-subtle-on-dark, rgba(250, 248, 243, 0.7)); }
  .flow-section--tone-light .flow-token-block__hours-row + .flow-token-block__hours-row .flow-token-block__day,
  .flow-section--tone-light .flow-token-block__hours-row + .flow-token-block__hours-row .flow-token-block__times,
  [data-surface-tone="dark"] .flow-token-block__hours-row + .flow-token-block__hours-row .flow-token-block__day,
  [data-surface-tone="dark"] .flow-token-block__hours-row + .flow-token-block__hours-row .flow-token-block__times {
    border-top-color: rgba(250, 248, 243, 0.28);
  }

  /* ── List Grid widget — Lumen skin, THREE distinct variants ───────────────
     structural.css ships the responsive grid geometry (cols / gap / per-card
     span) + the bare element hooks; ListgridOverride.vue emits skin-free
     structure. The SKIN lives here, keyed off `.flow-listgrid--{variant}`:

       • CARDS     — elevated pearl cards: hairline border, rounded, soft
                     shadow; hover lifts + deepens the shadow + warms the border.
       • EDITORIAL — image-led magazine: tall portrait media, a copper top-rule
                     above the eyebrow, a large display title with a copper
                     underline that GROWS on hover. No card box.
       • LIST      — horizontal directory rows: thumbnail left, content right,
                     mist hairline dividers; the row warms to paper-deep on hover.

     A shared base gives every variant the copper eyebrow, ink→copper title,
     stone body, image zoom, and a "Read →" cta whose arrow slides. All eased
     with `--ease-lumen`; the editor suppresses transitions via `[data-editor-mode]`
     centrally, so no per-rule guard is needed. */

  .lumen-listgrid { font-family: var(--font-sans); }

  /* The whole card is one click target; the title carries the focus ring. */
  .lumen-listgrid__inner {
    display: flex;
    flex-direction: column;
    block-size: 100%;
    color: inherit;
    text-decoration: none;
    outline: none;
  }
  .lumen-listgrid__link:focus-visible .lumen-listgrid__title {
    outline: 2px solid var(--color-copper);
    outline-offset: 3px;
    border-radius: 2px;
  }

  /* Media frame — clip + slow zoom on card hover (shared). */
  .lumen-listgrid__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--flow-list-image-aspect, 3 / 2);
    background: var(--color-paper-deep);
  }
  .lumen-listgrid__image { transition: transform 1200ms var(--ease-lumen); }
  .lumen-listgrid__card:hover .lumen-listgrid__image { transform: scale(1.04); }

  /* Shared type base. */
  .lumen-listgrid__content { display: flex; flex-direction: column; flex: 1 1 auto; }
  .lumen-listgrid__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-copper);
  }
  .lumen-listgrid__title {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-ink);
    text-wrap: balance;
    transition: color 300ms var(--ease-lumen);
  }
  .lumen-listgrid__card:hover .lumen-listgrid__title { color: var(--color-copper); }
  .lumen-listgrid__body { color: var(--color-stone-soft); line-height: 1.6; }
  .lumen-listgrid__body > :first-child { margin-block-start: 0; }
  .lumen-listgrid__body > :last-child { margin-block-end: 0; }
  .lumen-listgrid__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-block-start: auto;
    padding-block-start: 1.1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-ink);
  }
  .lumen-listgrid__cta::after {
    content: "→";
    color: var(--color-copper);
    transition: transform 300ms var(--ease-lumen);
  }
  .lumen-listgrid__card:hover .lumen-listgrid__cta::after { transform: translateX(0.3rem); }

  .lumen-listgrid__placeholder {
    border-radius: 16px;
    border: 1px solid var(--color-mist);
    background: var(--color-paper-deep);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--color-stone-soft);
  }

  /* ── CARDS (+ DUO) — elevated pearl cards ─────────────────────────────────
     `cards` is the 3-up canonical; `duo` is Lumen's theme-declared 2-up
     (manifest gridVariants) and reuses the SAME elevated-card chrome at two
     equal columns, with a slightly larger title to suit the wider card. */
  .flow-listgrid--cards .lumen-listgrid__inner,
  .flow-listgrid--duo .lumen-listgrid__inner {
    background: var(--color-pearl);
    border: 1px solid var(--color-mist);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(10, 15, 18, 0.04);
    transition:
      transform 400ms var(--ease-lumen),
      box-shadow 400ms var(--ease-lumen),
      border-color 400ms var(--ease-lumen);
  }
  .flow-listgrid--cards .lumen-listgrid__card:hover .lumen-listgrid__inner,
  .flow-listgrid--duo .lumen-listgrid__card:hover .lumen-listgrid__inner {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(10, 15, 18, 0.13);
    border-color: color-mix(in oklab, var(--color-copper) 45%, var(--color-mist));
  }
  .flow-listgrid--cards .lumen-listgrid__content,
  .flow-listgrid--duo .lumen-listgrid__content { padding: 1.5rem 1.5rem 1.75rem; }
  .flow-listgrid--cards .lumen-listgrid__title,
  .flow-listgrid--duo .lumen-listgrid__title { font-size: 1.375rem; margin-block-start: 0.7rem; }
  .flow-listgrid--cards .lumen-listgrid__eyebrow + .lumen-listgrid__title,
  .flow-listgrid--duo .lumen-listgrid__eyebrow + .lumen-listgrid__title { margin-block-start: 0.5rem; }
  .flow-listgrid--cards .lumen-listgrid__body,
  .flow-listgrid--duo .lumen-listgrid__body { margin-block-start: 0.65rem; font-size: 0.9375rem; }
  /* Wider 2-up cards carry a larger title + a touch more padding. */
  .flow-listgrid--duo .lumen-listgrid__content { padding: 1.75rem 1.85rem 2rem; }
  .flow-listgrid--duo .lumen-listgrid__title { font-size: 1.625rem; }

  /* ── EDITORIAL — image-led magazine ───────────────────────────────────── */
  .flow-listgrid--editorial .lumen-listgrid__media {
    border-radius: 14px;
    margin-block-end: 1.4rem;
  }
  .flow-listgrid--editorial .lumen-listgrid__eyebrow {
    position: relative;
    padding-block-start: 1.05rem;
  }
  .flow-listgrid--editorial .lumen-listgrid__eyebrow::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 2.5rem;
    block-size: 2px;
    background: var(--color-copper);
  }
  .flow-listgrid--editorial .lumen-listgrid__title {
    align-self: start;
    margin-block-start: 0.7rem;
    font-size: clamp(1.5rem, 2.6cqi, 2.05rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    padding-block-end: 3px;
    background-image: linear-gradient(var(--color-copper), var(--color-copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: color 300ms var(--ease-lumen), background-size 450ms var(--ease-lumen);
  }
  .flow-listgrid--editorial .lumen-listgrid__card:hover .lumen-listgrid__title { background-size: 100% 2px; }
  .flow-listgrid--editorial .lumen-listgrid__body { margin-block-start: 0.85rem; }

  /* ── LIST — horizontal directory rows ─────────────────────────────────── */
  .flow-listgrid--list { gap: 0; }
  .flow-listgrid--list .lumen-listgrid__card {
    padding: 1.85rem 1.1rem;
    border-radius: 14px;
    transition: background-color 300ms var(--ease-lumen);
  }
  .flow-listgrid--list .lumen-listgrid__card:hover {
    background: color-mix(in oklab, var(--color-paper-deep) 65%, transparent);
  }
  .flow-listgrid--list .lumen-listgrid__card + .lumen-listgrid__card { border-top: 1px solid var(--color-mist); }
  .flow-listgrid--list .lumen-listgrid__inner {
    display: grid;
    grid-template-columns: minmax(0, 15rem) 1fr;
    gap: 1.85rem;
    align-items: center;
  }
  .flow-listgrid--list .lumen-listgrid__inner:not(:has(.lumen-listgrid__media)) { grid-template-columns: 1fr; }
  .flow-listgrid--list .lumen-listgrid__media {
    border-radius: 12px;
    aspect-ratio: 3 / 2;
  }
  .flow-listgrid--list .lumen-listgrid__title { font-size: 1.5rem; }
  .flow-listgrid--list .lumen-listgrid__eyebrow + .lumen-listgrid__title { margin-block-start: 0.45rem; }
  .flow-listgrid--list .lumen-listgrid__body { margin-block-start: 0.55rem; }
  .flow-listgrid--list .lumen-listgrid__cta { padding-block-start: 0.85rem; }

  /* ── Article List widget — Lumen card skin (article-list-render-layer) ────
     LAYOUT (the fixed 3/2/1 card grid, inner flex anatomy, pager row) is the
     flow-shared structural contract (`.flow-articlelist*`). Lumen has NO
     articlelist override component, so the CANONICAL classes are skinned here
     in the global tokens.css (theme-owned-canonical-skin rule) — the same
     editorial voice as the Lumen listgrid cards: copper eyebrow, ink→copper
     title, stone body, slow image zoom. Pager Previous/Next are canonical
     `.flow-button` anchors — the Lumen tone-adaptive button skin applies. */
  .flow-articlelist { font-family: var(--font-sans); }
  .flow-articlelist__inner { color: inherit; text-decoration: none; outline: none; }
  .flow-articlelist__link:focus-visible .flow-articlelist__title {
    outline: 2px solid var(--color-copper);
    outline-offset: 3px;
    border-radius: 2px;
  }
  .flow-articlelist__media {
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-paper-deep);
  }
  .flow-articlelist__image { transition: transform 1200ms var(--ease-lumen); }
  .flow-articlelist__card:hover .flow-articlelist__image { transform: scale(1.04); }
  .flow-articlelist__content { padding-block-start: 1.1rem; }
  .flow-articlelist__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-copper);
  }
  .flow-articlelist__title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-ink);
    text-wrap: balance;
    transition: color 300ms var(--ease-lumen);
  }
  .flow-articlelist__card--link:hover .flow-articlelist__title { color: var(--color-copper); }
  .flow-articlelist__eyebrow + .flow-articlelist__title { margin-block-start: 0.45rem; }
  .flow-articlelist__body {
    color: var(--color-stone-soft);
    line-height: 1.6;
    margin-block-start: 0.55rem;
  }
  .flow-articlelist__body > :first-child { margin-block-start: 0; }
  .flow-articlelist__body > :last-child { margin-block-end: 0; }
  .flow-articlelist__placeholder {
    border-radius: 16px;
    border: 1px solid var(--color-mist);
    background: var(--color-paper-deep);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--color-stone-soft);
  }
  .flow-articlelist__pager-status { color: var(--color-stone-soft); }
  /* On-dark legibility (Lesson 116 keying — BOTH dark-band signals): Lumen
     articlelist cards are borderless text-on-surface (no own card ground), so
     the card TEXT must lift on a dark band too — not just the pager status. */
  .flow-section--tone-light .flow-articlelist__title,
  [data-surface-tone="dark"] .flow-articlelist__title,
  .flow-section--tone-light .flow-articlelist__pager-status,
  [data-surface-tone="dark"] .flow-articlelist__pager-status {
    color: var(--flow-fg-on-dark, #ffffff);
  }
  .flow-section--tone-light .flow-articlelist__body,
  [data-surface-tone="dark"] .flow-articlelist__body {
    color: color-mix(in oklab, var(--flow-fg-on-dark, #ffffff) 78%, transparent);
  }

  /* ── Stats widget — Lumen liquid-glass skin (stats-as-list-collection-widget) ─
     LAYOUT (the responsive column grid + per-card span) ships in flow-shared
     structural.css (`.flow-liststats*` + the `--liststats-*` custom props). The
     SKIN lives here, keyed off `.flow-liststats--{variant}`:

       • GLASS — the liquid-glass feature card ported VERBATIM from the retired
                 StatsOverride.vue: a translucent white card with a 38px backdrop
                 blur + saturate/brightness lensing, a 5-layer shadow stack, a
                 ::before sheen, and gradient dividers between figures. White text,
                 designed for the muted/dark surface it sits on.
       • PLAIN — chrome-free copper-on-ink figures (the light surface default).

     SFC markup, per item: <li class="flow-liststats__card">
       <a|div class="flow-liststats__inner"><figure class="flow-liststats__figure">
       <span class="flow-liststats__eyebrow"> <p class="flow-liststats__value">
       <figcaption class="flow-liststats__label"> </figure></a|div></li>. */
  .flow-liststats__inner { display: flex; inline-size: 100%; color: inherit; text-decoration: none; }
  .flow-liststats__figure {
    gap: 0.3rem;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
  }
  .flow-liststats__icon { block-size: 2.25rem; inline-size: 2.25rem; object-fit: contain; margin-block-end: 0.4rem; }
  .flow-liststats__eyebrow {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-copper);
  }
  .flow-liststats__value {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--color-ink);
  }
  .flow-liststats__label {
    margin-block-start: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--color-stone-soft);
  }
  .flow-liststats__label > :first-child { margin-block-start: 0; }
  .flow-liststats__label > :last-child { margin-block-end: 0; }

  /* Dark-surface flip — `figures`/`plain` are chrome-free and sit DIRECTLY on the
     section surface (no card of their own, unlike listgrid), so their ink must
     follow the section foreground the way `.flow-heading` does via `inherit`.
     Without this the ink/stone figures render near-black on a Brand-gradient
     (dark) band and disappear. TWO independent signals mark a dark band, and a
     chrome-free figure must honour BOTH:
       · `.flow-section--tone-light` — the author's explicit "Light text" content
         tone (the class headings ride). The unified `data-surface-tone` marker is
         NOT emitted for this case, so keying only on the marker missed it.
       · `[data-surface-tone="dark"]` — an AUTO-detected dark fill (dark token /
         dark gradient role / image overlay) where no explicit tone was chosen.
     `--glass` brings its OWN dark panel + explicit white ink later in the file; on
     equal specificity (0,2,0) its later rules win, so glass keeps its tuned ink. */
  .flow-section--tone-light .flow-liststats__value,
  [data-surface-tone="dark"] .flow-liststats__value { color: var(--flow-fg-on-dark, #faf8f3); }
  .flow-section--tone-light .flow-liststats__label,
  [data-surface-tone="dark"] .flow-liststats__label { color: var(--flow-ink-subtle-on-dark, rgba(250, 248, 243, 0.7)); }
  .flow-section--tone-light .flow-liststats__eyebrow,
  [data-surface-tone="dark"] .flow-liststats__eyebrow { color: var(--flow-ink-emphasis-on-dark, var(--color-copper)); }

  /* Hero ink roles on the DARK band (component-surface-parity-and-motion, hero
     ink). The default + image hero render a dark ground (the `--color-ink` band /
     the photo + vignette), so an author ink role on the headline/subhead must use
     its on-dark realisation to stay legible. Doubled class (0,3,0) beats the
     structural base `.flow-ink-{role}.flow-ink-{role}` (0,2,0). The TRANSPARENT
     hero is excluded — it follows the section content tone instead (structural F1
     `.flow-section--tone-light .flow-ink-*` on a declared-dark band, or the base
     on-light token + inherited foreground on a light page). */
  .flow-hero:not(.flow-hero--transparent) .flow-ink-emphasis.flow-ink-emphasis { color: var(--flow-ink-emphasis-on-dark); }
  .flow-hero:not(.flow-hero--transparent) .flow-ink-subtle.flow-ink-subtle { color: var(--flow-ink-subtle-on-dark); }
  .flow-hero:not(.flow-hero--transparent) .flow-ink-accent.flow-ink-accent { color: var(--flow-ink-accent-on-dark); }

  /* `glass` — the liquid-glass card, ported from StatsOverride.vue. The whole
     grid becomes ONE translucent glass panel: the widget root carries the glass
     surface + blur, and figures are separated by vertical gradient dividers. */
  .flow-liststats--carded {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
      rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(38px) saturate(1.8) brightness(1.02);
    -webkit-backdrop-filter: blur(38px) saturate(1.8) brightness(1.02);
    box-shadow:
      inset 0 1.2px 1.2px rgba(255, 255, 255, 0.55),
      inset 0 0 0 0.5px rgba(255, 255, 255, 0.05),
      inset 0 -10px 18px -14px rgba(0, 0, 0, 0.32),
      0 22px 50px -22px rgba(0, 0, 0, 0.55);
  }
  .flow-liststats--carded::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: screen;
    background:
      radial-gradient(60% 65% at 22% 8%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%),
      linear-gradient(155deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%);
  }
  .flow-liststats--carded .flow-liststats__value { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
  .flow-liststats--carded .flow-liststats__eyebrow { color: rgba(250, 248, 243, 0.75); }
  .flow-liststats--carded .flow-liststats__label { color: rgba(250, 248, 243, 0.65); }
  /* Gradient dividers between figures (transparent → white → transparent). */
  .flow-liststats--carded .flow-liststats__card + .flow-liststats__card .flow-liststats__inner {
    border-inline-start: 1px solid transparent;
    border-image: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%) 1;
  }

  /* `plain` — chrome-free figures on the light surface (copper-on-ink). */
  .flow-liststats--plain .flow-liststats__card + .flow-liststats__card .flow-liststats__inner {
    border-inline-start: 1px solid var(--color-mist);
  }

  /* ── Timeline widget — Lumen skin (listtimeline-widget plan) ──────────────
     LAYOUT (the entry stack + marker/content columns + `gap`) ships in flow-shared
     structural.css (`.flow-listtimeline*`). The SKIN — marker rail, the marker
     TREATMENT (dot / CSS-`counter` number / avatar thumbnail), the vertical
     connecting LINE, and the per-entry accent — lives here, keyed off
     `.flow-listtimeline--{variant}`. Four variants (D-D): `dotted` (a coloured
     dot), `numbered` (a CSS-`counter` sequential number in place of the dot),
     `compact` (tighter rhythm + smaller dot), `avatar` (a round thumbnail from the
     item's image instead of the dot). The per-entry accent ink rides on the marker
     (→ dot via `currentColor`) AND the title (plan E).

     SFC markup, per entry: <li class="flow-listtimeline__entry">
       <div class="flow-listtimeline__marker [flow-ink-{accent}]">
         <span class="flow-listtimeline__dot"> <img class="flow-listtimeline__thumb">
       <a|div class="flow-listtimeline__content [flow-listtimeline__link]">
         <p class="flow-listtimeline__date"> <p class="flow-listtimeline__title [flow-ink-{accent}]">
         <div class="flow-listtimeline__blurb"> */
  .flow-listtimeline { --listtimeline-marker-gap: 1.1rem; }

  /* Marker rail — a fixed-width vertical column: the dot sits at the top and the
     connecting line is drawn beneath it. `color` is the DEFAULT marker ink, which
     a per-entry `flow-ink-{accent}` (specificity 0,2,0) overrides; the dot reads
     it via `currentColor`. */
  .flow-listtimeline__marker {
    flex-direction: column;
    justify-content: flex-start;
    inline-size: 1.75rem;
    padding-block-start: 0.2rem;
    color: var(--color-copper);
  }
  /* The connecting line — drawn on the marker from just below the dot down through
     the inter-entry gap to the next entry's dot. Hidden on the last entry. */
  .flow-listtimeline__marker::before {
    content: "";
    position: absolute;
    inset-block-start: 1.5rem;
    inset-block-end: calc(-1 * var(--listtimeline-gap, var(--space-lg)));
    inset-inline-start: 50%;
    inline-size: 2px;
    transform: translateX(-50%);
    background: var(--color-mist);
    border-radius: 1px;
  }
  .flow-listtimeline__entry:last-child .flow-listtimeline__marker::before { display: none; }

  /* The dot — a filled disc that inherits the marker ink (so an accent tints it). */
  .flow-listtimeline__dot {
    inline-size: 0.85rem;
    block-size: 0.85rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
  }

  /* The thumbnail is hidden on every variant except `avatar`. */
  .flow-listtimeline__thumb { display: none; }

  /* Content typography — copper date kicker, ink title, stone blurb. */
  .flow-listtimeline__date {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-copper);
  }
  .flow-listtimeline__title {
    margin-block-start: 0.2rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-ink);
  }
  .flow-listtimeline__blurb {
    margin-block-start: 0.4rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-stone-soft);
  }
  .flow-listtimeline__link:hover .flow-listtimeline__title { text-decoration: underline; }

  /* Dark-surface flip — the timeline is chrome-free and sits DIRECTLY on the
     section surface, so its DEFAULT ink must follow the section foreground on a
     dark band; both dark signals are honoured (Lesson 114). A per-entry accent
     overrides this via the structural `[data-surface-tone="dark"] .flow-ink-{role}`
     rule (0,3,0), which beats these (0,2,0). */
  .flow-section--tone-light .flow-listtimeline__marker,
  [data-surface-tone="dark"] .flow-listtimeline__marker { color: var(--flow-ink-emphasis-on-dark, var(--color-copper)); }
  .flow-section--tone-light .flow-listtimeline__marker::before,
  [data-surface-tone="dark"] .flow-listtimeline__marker::before { background: rgba(250, 248, 243, 0.28); }
  .flow-section--tone-light .flow-listtimeline__date,
  [data-surface-tone="dark"] .flow-listtimeline__date { color: var(--flow-ink-emphasis-on-dark, var(--color-copper)); }
  .flow-section--tone-light .flow-listtimeline__title,
  [data-surface-tone="dark"] .flow-listtimeline__title { color: var(--flow-fg-on-dark, #faf8f3); }
  .flow-section--tone-light .flow-listtimeline__blurb,
  [data-surface-tone="dark"] .flow-listtimeline__blurb { color: var(--flow-ink-subtle-on-dark, rgba(250, 248, 243, 0.7)); }

  /* `numbered` — the dot becomes a CSS-`counter` sequential number: the <ol>
     resets the counter, each entry increments it, the dot renders it. */
  .flow-listtimeline--numbered { counter-reset: flow-timeline; }
  .flow-listtimeline--numbered .flow-listtimeline__entry { counter-increment: flow-timeline; }
  .flow-listtimeline--numbered .flow-listtimeline__marker { inline-size: 2.25rem; }
  .flow-listtimeline--numbered .flow-listtimeline__dot {
    inline-size: 1.85rem;
    block-size: 1.85rem;
    background: transparent;
    border: 2px solid currentColor;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
  }
  .flow-listtimeline--numbered .flow-listtimeline__dot::before { content: counter(flow-timeline); }
  .flow-listtimeline--numbered .flow-listtimeline__marker::before { inset-block-start: 2.45rem; }

  /* `compact` — tighter rhythm + a smaller dot, for dense logs. */
  .flow-listtimeline--compact .flow-listtimeline { --listtimeline-marker-gap: 0.8rem; }
  .flow-listtimeline--compact .flow-listtimeline__marker { inline-size: 1.35rem; }
  .flow-listtimeline--compact .flow-listtimeline__dot { inline-size: 0.6rem; block-size: 0.6rem; box-shadow: none; }
  .flow-listtimeline--compact .flow-listtimeline__marker::before { inset-block-start: 1.05rem; }
  .flow-listtimeline--compact .flow-listtimeline__title { font-size: 1rem; }
  .flow-listtimeline--compact .flow-listtimeline__blurb { font-size: 0.875rem; margin-block-start: 0.25rem; }

  /* `avatar` — a round thumbnail replaces the dot (people / quotes). The dot is
     hidden only when the entry HAS a thumbnail, so an image-less entry keeps its
     dot. */
  .flow-listtimeline--avatar .flow-listtimeline__marker { inline-size: 3rem; }
  .flow-listtimeline--avatar .flow-listtimeline__entry:has(.flow-listtimeline__thumb) .flow-listtimeline__dot { display: none; }
  .flow-listtimeline--avatar .flow-listtimeline__thumb {
    display: block;
    inline-size: 2.5rem;
    block-size: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 30%, transparent);
  }
  .flow-listtimeline--avatar .flow-listtimeline__marker::before { inset-block-start: 3rem; }

  /* Placeholder (unbound list in the editor canvas). */
  .flow-listtimeline__placeholder {
    margin: 0;
    padding: 1.5rem;
    text-align: center;
    color: var(--color-stone-soft);
    font-style: italic;
  }

  /* ── Editorial typography + button helpers (override/chrome skin) ─────────
     SOURCE OF TRUTH for what Flow renders. These named helper classes are
     consumed by the widget overrides (ListgridOverride `display-m`/`eyebrow`,
     HeroOverride `display-2xl`/`eyebrow`/`lead`) and the page chrome
     (SiteHeader `btn`/`btn-*`/`btn-arrow`, SiteFooter `display-2xl`/`eyebrow`).
     They originate in the orphaned `src/style.css` (the retired standalone-SPA
     stylesheet Flow never loads); ported here so the editor canvas + front
     render them. Keep these IN SYNC with `src/style.css` or delete style.css —
     see the cross-reference banner there. */
  .eyebrow {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  /* Display sizes — bold, tight tracking, oversized. `display-xl`/`display-l`
     have no current consumer; retained for future overrides. */
  .display-2xl {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.92;
    font-size: clamp(3rem, 9cqi, 8.5rem);
  }
  .display-xl {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 0.95;
    font-size: clamp(2.5rem, 6cqi, 5.5rem);
  }
  .display-l {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1;
    font-size: clamp(2rem, 4cqi, 3.5rem);
  }
  .display-m {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(1.5rem, 2.5cqi, 2.25rem);
  }

  .lead {
    font-size: clamp(1.0625rem, 1.3cqi, 1.25rem);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.005em;
  }

  /* Pill buttons — the chrome header CTA (`btn btn-sm` + `btn-primary`/`btn-dark`)
     and any override opting into the named system. The arrow slide also has a
     Tailwind-utility twin (`group-hover:translate-x-[5px]`) in ButtonOverride,
     which only carries `btn-arrow`; the `.btn:hover .btn-arrow` rule fires for
     chrome CTAs that carry the `.btn` ancestor. */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.6rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: 999px;
    border: 1px solid transparent;
    transition:
      background-color 220ms ease,
      color 220ms ease,
      border-color 220ms ease,
      transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
    cursor: pointer;
  }
  .btn-arrow {
    display: inline-block;
    transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .btn:hover .btn-arrow { transform: translateX(5px); }
  .btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

  .btn-primary {
    background-color: var(--color-paper);
    color: var(--color-ink);
    border-color: var(--color-paper);
  }
  .btn-primary:hover {
    background-color: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-paper);
  }

  .btn-ghost {
    background-color: transparent;
    color: var(--color-paper);
    border-color: rgba(250, 248, 243, 0.35);
  }
  .btn-ghost:hover {
    background-color: rgba(250, 248, 243, 0.1);
    border-color: var(--color-paper);
  }

  .btn-dark {
    background-color: var(--color-ink);
    color: var(--color-paper);
    border-color: var(--color-ink);
  }
  .btn-dark:hover {
    background-color: var(--color-copper);
    border-color: var(--color-copper);
  }

  .btn-outline-dark {
    background-color: transparent;
    color: var(--color-ink);
    border-color: var(--color-ink);
  }
  .btn-outline-dark:hover {
    background-color: var(--color-ink);
    color: var(--color-paper);
  }

  /* Skip link (chrome/SkipLink.vue) — visually hidden until keyboard focus.
     The rule that held this lived in the pre-conversion src/style.css, which is
     NOT part of the built dist/tokens.css, so the link rendered visible. */
  .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 12px 18px;
    background: var(--color-paper);
    color: var(--color-ink);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0 0 0.5rem 0;
    z-index: 1000;
    text-decoration: none;
  }
  .skip-link:focus {
    left: 0;
    outline: 2px solid var(--color-copper);
    outline-offset: 2px;
  }

  /* ══ Navigation skin — the shared NavRenderer's structural hooks ═════════════
     NavRenderer (flow-shared) emits class hooks only (`flow-nav*`); the theme
     owns the skin. structural.css ships NO nav rules, so this block is the whole
     skin: reset + layout + the header / footer chrome overlays. The bound header
     + footer slots wrap NavRenderer in `.flow-header-nav` / `.flow-footer-nav`
     (chrome/SiteHeader.vue + SiteFooter.vue); the page `navigationmenu` widget
     uses the base rules with no wrapper. */

  /* Reset list chrome on every recursion level. */
  .flow-nav,
  .flow-nav__nested {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .flow-nav__item { margin: 0; }

  /* Links + labels + the disclosure trigger share a pill silhouette. `color:
     inherit` lets the header bar's own ink (white over the hero, dark once
     opaque) flow straight through — no per-state restyle needed. */
  .flow-nav__link,
  .flow-nav__label,
  .flow-nav__trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: inherit;
    text-decoration: none;
    border-radius: 9999px;
    transition: color 0.2s var(--ease-lumen, ease), background-color 0.2s var(--ease-lumen, ease);
  }
  .flow-nav__label { cursor: default; }
  .flow-nav__link:hover { color: var(--color-copper); }

  .flow-nav__trigger {
    width: 100%;
    justify-content: space-between;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
  }
  .flow-nav__trigger:hover { color: var(--color-copper); }
  .flow-nav__trigger-text { min-width: 0; }

  .flow-nav__chevron {
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    margin-inline-start: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.65;
    transition: transform 0.2s var(--ease-lumen, ease);
  }
  .flow-nav__trigger[aria-expanded="true"] .flow-nav__chevron { transform: rotate(225deg); }

  .flow-nav__link:focus-visible,
  .flow-nav__trigger:focus-visible {
    outline: 2px solid var(--color-copper);
    outline-offset: 3px;
  }

  /* Horizontal placement (header bar) — first level is a row; nested panels
     stack. */
  .flow-nav--horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem;
  }
  .flow-nav--horizontal > .flow-nav__item { position: relative; }
  .flow-nav--horizontal > .flow-nav__item > .flow-nav__panel {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 100%;
    z-index: 50;
    min-width: 14rem;
  }

  /* Vertical placement (footer columns, mobile drawer, page widget). */
  .flow-nav--vertical {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
  }

  /* Dropdown panel — a warm paper card with ink ink, regardless of the header's
     own light/dark state (it overlays page content). */
  .flow-nav__panel {
    background: var(--color-paper);
    color: var(--color-ink);
    border: 1px solid var(--color-mist);
    border-radius: 1rem;
    box-shadow: 0 18px 44px -18px color-mix(in oklab, var(--color-ink) 45%, transparent);
    padding: 0.5rem;
  }
  .flow-nav__panel[hidden] { display: none; }
  .flow-nav--vertical .flow-nav__panel {
    margin-inline-start: 1rem;
    box-shadow: none;
    border-radius: 0.75rem;
  }

  /* Flat-nested degradation (an unsupported dropdown / `display:link` parent, and
     the footer's normal layout). */
  .flow-nav__nested {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-inline-start: 1rem;
    padding-inline-start: 0.5rem;
    border-inline-start: 1px solid color-mix(in oklab, currentColor 22%, transparent);
  }

  /* ── Header bar overlay — inherits the bar's ink; hover is a glass pill in the
     current ink, so it reads on both the transparent (over-hero) and opaque
     (scrolled) states without a per-state restyle. ───────────────────────── */
  .flow-header-nav .flow-nav__link,
  .flow-header-nav .flow-nav__label,
  .flow-header-nav .flow-nav__trigger {
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
    padding: 0.5rem 0.95rem;
  }
  .flow-header-nav .flow-nav__link:hover,
  .flow-header-nav .flow-nav__trigger:hover {
    color: inherit;
    background: color-mix(in oklab, currentColor 11%, transparent);
  }
  .flow-header-nav .flow-nav__trigger[aria-expanded="true"] {
    color: inherit;
    background: color-mix(in oklab, currentColor 14%, transparent);
  }
  .flow-header-nav .flow-nav--horizontal > .flow-nav__item > .flow-nav__panel {
    margin-block-start: 0.5rem;
    min-width: 15rem;
  }
  /* Panel interior is always on the paper card → ink links, copper on hover. */
  .flow-header-nav .flow-nav__panel .flow-nav__link,
  .flow-header-nav .flow-nav__panel .flow-nav__label {
    color: var(--color-ink);
    border-radius: 0.6rem;
  }
  .flow-header-nav .flow-nav__panel .flow-nav__link:hover {
    color: var(--color-copper);
    background: color-mix(in oklab, var(--color-ink) 6%, transparent);
  }

  /* ── Footer columns — light-on-dark. The footer slot's `supports: []` degrades
     each group to a nested list, so the grid + heading rules target ONLY the
     root list's direct children (the nested recursion stays a plain stack). ── */
  .flow-footer-nav > .flow-nav--vertical {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1.5rem 2.5rem;
    align-items: start;
  }
  .flow-footer-nav > .flow-nav--vertical > .flow-nav__item { min-width: 0; }
  .flow-footer-nav > .flow-nav--vertical > .flow-nav__item > .flow-nav__link,
  .flow-footer-nav > .flow-nav--vertical > .flow-nav__item > .flow-nav__label,
  .flow-footer-nav > .flow-nav--vertical > .flow-nav__item > .flow-nav__trigger {
    display: block;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-haze);
  }
  .flow-footer-nav .flow-nav__nested {
    margin-inline-start: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
    gap: 0;
  }
  .flow-footer-nav .flow-nav__nested .flow-nav__link,
  .flow-footer-nav .flow-nav__nested .flow-nav__label {
    padding: 0.4rem 0;
    font-size: 0.975rem;
    font-weight: 400;
    border-radius: 0;
    color: var(--color-fog);
    transition: color 0.2s var(--ease-lumen, ease), transform 0.2s var(--ease-lumen, ease);
  }
  .flow-footer-nav .flow-nav__nested .flow-nav__link:hover {
    color: var(--color-paper);
    background: transparent;
    transform: translateX(3px);
  }

  /* ── In-page navigation widgets (navigationmenu + pagegroupnav) ───────────
     The base rules above give links their pill silhouette, but a menu DROPPED
     INTO A PAGE has no container of its own — on the tenant front it renders
     as an unstyled stack of words. Header/footer chrome keeps its own scoped
     treatment and is untouched here. Vertical (what both widgets emit by
     default) becomes a hairline index: mist rules, roomy rows, copper on
     hover with the same 3px nudge the footer nav uses. */
  /* Colour is deliberately INHERITED, never pinned: these widgets can sit on a
     dark band, where the canonical on-dark lift (flow-shared structural.css)
     hands the section's text to light. Pinning ink here would render dark on
     dark — the mirror of the pearl-panel legibility fix in 0.8.29. Everything
     quieter below is mixed from `currentColor` for the same reason. */
  .flow-navigationmenu-widget,
  .flow-pagegroupnav-widget {
    font-family: var(--font-sans);
  }
  .flow-navigationmenu-widget > .flow-nav--vertical,
  .flow-pagegroupnav-widget > .flow-nav--vertical {
    max-width: 26rem;
    border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
  .flow-navigationmenu-widget > .flow-nav--vertical > .flow-nav__item,
  .flow-pagegroupnav-widget > .flow-nav--vertical > .flow-nav__item {
    border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
  .flow-navigationmenu-widget .flow-nav--vertical .flow-nav__link,
  .flow-navigationmenu-widget .flow-nav--vertical .flow-nav__label,
  .flow-navigationmenu-widget .flow-nav--vertical .flow-nav__trigger,
  .flow-pagegroupnav-widget .flow-nav--vertical .flow-nav__link,
  .flow-pagegroupnav-widget .flow-nav--vertical .flow-nav__label,
  .flow-pagegroupnav-widget .flow-nav--vertical .flow-nav__trigger {
    padding: 0.9rem 0.2rem;
    border-radius: 0;
    font-size: 0.975rem;
    font-weight: 500;
    transition:
      color 0.2s var(--ease-lumen, ease),
      transform 0.2s var(--ease-lumen, ease);
  }
  .flow-navigationmenu-widget .flow-nav__link:hover,
  .flow-navigationmenu-widget .flow-nav__trigger:hover,
  .flow-pagegroupnav-widget .flow-nav__link:hover,
  .flow-pagegroupnav-widget .flow-nav__trigger:hover {
    color: var(--color-copper);
    background: transparent;
    transform: translateX(3px);
  }
  /* A label is a non-navigable heading row — quieter, and it must not imply
     a hover affordance. */
  .flow-navigationmenu-widget .flow-nav--vertical .flow-nav__label,
  .flow-pagegroupnav-widget .flow-nav--vertical .flow-nav__label {
    color: color-mix(in srgb, currentColor 62%, transparent);
  }
  /* Expanded children indent under their parent on the paper-deep inset. */
  .flow-navigationmenu-widget .flow-nav__nested,
  .flow-pagegroupnav-widget .flow-nav__nested {
    padding: 0.15rem 0 0.5rem 0.9rem;
    border-inline-start: 1px solid color-mix(in srgb, currentColor 16%, transparent);
    margin-inline-start: 0.2rem;
  }
  .flow-navigationmenu-widget .flow-nav__nested .flow-nav__link,
  .flow-navigationmenu-widget .flow-nav__nested .flow-nav__label,
  .flow-pagegroupnav-widget .flow-nav__nested .flow-nav__link,
  .flow-pagegroupnav-widget .flow-nav__nested .flow-nav__label {
    padding: 0.45rem 0.2rem;
    font-size: 0.925rem;
    font-weight: 400;
    color: color-mix(in srgb, currentColor 62%, transparent);
  }
  .flow-navigationmenu-widget .flow-nav__nested .flow-nav__link:hover,
  .flow-pagegroupnav-widget .flow-nav__nested .flow-nav__link:hover {
    color: var(--color-copper);
  }
  /* Horizontal keeps the base pill silhouette; a single hairline underneath
     grounds the strip so it reads as a deliberate band rather than links
     floating in the section, and echoes the vertical variant's rules. */
  .flow-navigationmenu-widget > .flow-nav--horizontal,
  .flow-pagegroupnav-widget > .flow-nav--horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
  .flow-navigationmenu-widget > .flow-nav--horizontal > .flow-nav__item > .flow-nav__link,
  .flow-navigationmenu-widget > .flow-nav--horizontal > .flow-nav__item > .flow-nav__trigger,
  .flow-pagegroupnav-widget > .flow-nav--horizontal > .flow-nav__item > .flow-nav__link,
  .flow-pagegroupnav-widget > .flow-nav--horizontal > .flow-nav__item > .flow-nav__trigger {
    transition:
      color 0.2s var(--ease-lumen, ease),
      background-color 0.2s var(--ease-lumen, ease);
  }
  /* The nudge is a vertical-list gesture — a horizontal row shifts sideways
     into its neighbour, so it tints only. */
  .flow-navigationmenu-widget > .flow-nav--horizontal .flow-nav__link:hover,
  .flow-pagegroupnav-widget > .flow-nav--horizontal .flow-nav__link:hover {
    transform: none;
    background: var(--color-accent-tint);
  }
  /* The editor's "nothing bound yet" states. */
  .flow-navigationmenu__placeholder,
  .flow-pagegroupnav__placeholder {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--color-stone-soft);
  }

  /* ── Base foreground on an auto-dark band ────────────────────────────────
     Lumen's manifest declares `solid-brand`, `solid-hero`, `gradient-brand` and
     `gradient-hero` as DARK surfaces, which makes the renderer emit
     `data-surface-tone="dark"` on those sections. The buttons below have always
     keyed on that marker — but the section's own TEXT never did, and
     structural.css only lifts text for the author's EXPLICIT "Light text" tone.
     So a Brand or Hero section with no tone set rendered ink on ink: measured
     rgb(10,15,18) on rgb(26,32,36), a contrast ratio of 1.05:1. Unreadable, and
     invisible in review because the copy is still there in the DOM.

     Keyed on the AUTO marker only: where the author has expressed a tone, that
     choice wins and this rule stays out of it. NHS solves the same problem on
     its own `--bg-brand` / `--bg-hero` rules; Lumen paints those backgrounds
     from the structural contract instead, so it had no rule to hang this on. */
  [data-surface-tone="dark"]:not(.flow-section--tone-light):not(.flow-section--tone-dark) {
    color: var(--flow-fg-on-dark, var(--color-paper));
  }
  /* PROSE links only. `:not(.flow-button)` is load-bearing, not tidiness: the
     Button widget renders an `<a>`, and this selector sits at (0,4,1) — above
     the (0,2,0) `[data-surface-tone="dark"] .flow-button--*` rules below — so
     without it every button on a dark band would take the link colour and lose
     its own. Structural.css avoids the same collision by keeping its
     `.flow-section--tone-light a:where(:any-link)` rule down at (0,1,1); the
     `:not()` guards this rule needs push it up, so it has to opt out by name.
     (Caught by ButtonToneAdaptiveTest, which asserts the auto-dark and explicit
     "Light text" paths realise identical button styles.) */
  [data-surface-tone="dark"]:not(.flow-section--tone-light):not(.flow-section--tone-dark) a:where(:any-link):not(.flow-button):not(.flow-token-link):not(:where(.flow-liststats__link)) {
    color: var(--flow-link-on-dark, currentColor);
  }

  /* ── "On this page" section index (section-anchors) ───────────────────────
     A reading aid, not navigation — so it stays quieter than the nav widgets
     above and earns its emphasis only on the row the reader is actually on.

     Lumen reads it as an editorial CONTENTS PAGE rather than a utility list:
     numbered rows on hairlines, spanning the measure so it sits in the page
     instead of stranded at one corner of an empty band. The numbers are real
     counters, so they follow the sections rather than being authored.

     PLACEMENT is ours: Flow drops the index into a contained band ahead of the
     content and leaves the rest to the theme. A sticky rule on the nav itself
     would be inert — sticky travels within its containing block, and the nav's
     parent is only as tall as the nav — so the BAND is what sticks, and only
     for the bar, which is short enough to ride along without burying the page.
     The contents list stays put: a tall index following the reader would cover
     the very content it is indexing.

     TONE SAFETY: no text colour is pinned. Quiet tones and hairlines mix from
     `currentColor`, which structural.css has already lifted on a dark band; the
     one real colour is the brandable EMPHASIS ink, swapped for its on-dark twin
     the way structural.css swaps the `.flow-ink-*` roles. Both sides of that
     pair are contrast-gated by Lumen's own theme test (copper-deep #a4502e on
     paper, #e0875c on ink). */
  /* The band Flow drops the index into. It arrives directly under the header,
     so it has to make its own room; without this the label crowds the chrome
     and the whole thing reads as part of the header rather than the page. */
  .flow-section-nav-slot {
    padding-block: var(--space-md) var(--space-sm);
  }

  .flow-section-nav {
    --lumen-index-ink: var(--flow-ink-emphasis, currentColor);
    font-family: var(--font-sans);
  }
  [data-surface-tone="dark"] .flow-section-nav,
  .flow-section--tone-light .flow-section-nav {
    --lumen-index-ink: var(--flow-ink-emphasis-on-dark, var(--flow-ink-emphasis, currentColor));
  }

  .flow-section-nav__label {
    margin: 0 0 1.1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 52%, transparent);
  }

  .flow-section-nav__link {
    display: block;
    text-decoration: none;
    color: color-mix(in srgb, currentColor 72%, transparent);
    transition:
      color 0.25s var(--ease-lumen, ease),
      border-color 0.25s var(--ease-lumen, ease),
      background-color 0.25s var(--ease-lumen, ease),
      transform 0.25s var(--ease-lumen, ease);
  }
  .flow-section-nav__link:hover {
    color: var(--lumen-index-ink);
  }

  /* `left` and `right` are DECLINED here, per their contract: Lumen has no
     column beside its content to give them, so they render as this same
     numbered contents list rather than as unstyled text. Every selector below
     therefore carries all three variants. The NHS theme is the one that
     honours the side placement. */
  /* ── A contents list ──────────────────────────────────────────────────────
     Rows across the measure, each opening with its own number. The number is
     the quiet part until the row is active, when it and the name light
     together — so the eye finds "where am I" in one move, not two. */
  .flow-section-nav--sidebar .flow-section-nav__list,
  .flow-section-nav--left .flow-section-nav__list,
  .flow-section-nav--right .flow-section-nav__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 0 3rem;
    counter-reset: lumen-index;
    border-block-start: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
  .flow-section-nav--sidebar .flow-section-nav__item,
  .flow-section-nav--left .flow-section-nav__item,
  .flow-section-nav--right .flow-section-nav__item {
    counter-increment: lumen-index;
    border-block-end: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  }
  .flow-section-nav--sidebar .flow-section-nav__link,
  .flow-section-nav--left .flow-section-nav__link,
  .flow-section-nav--right .flow-section-nav__link {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.85rem 0.1rem;
    font-size: 1.0625rem;
    font-weight: 450;
    line-height: 1.3;
  }
  .flow-section-nav--sidebar .flow-section-nav__link::before,
  .flow-section-nav--left .flow-section-nav__link::before,
  .flow-section-nav--right .flow-section-nav__link::before {
    content: counter(lumen-index, decimal-leading-zero);
    flex: none;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, currentColor 55%, transparent);
    transition: color 0.25s var(--ease-lumen, ease);
  }
  .flow-section-nav--sidebar .flow-section-nav__link:hover,
  .flow-section-nav--left .flow-section-nav__link:hover,
  .flow-section-nav--right .flow-section-nav__link:hover {
    transform: translateX(3px);
  }
  .flow-section-nav--sidebar .flow-section-nav__link--active,
  .flow-section-nav--left .flow-section-nav__link--active,
  .flow-section-nav--right .flow-section-nav__link--active,
  .flow-section-nav--sidebar .flow-section-nav__link--active:hover,
  .flow-section-nav--left .flow-section-nav__link--active:hover,
  .flow-section-nav--right .flow-section-nav__link--active:hover {
    color: var(--lumen-index-ink);
    font-weight: 600;
    transform: none;
  }
  .flow-section-nav--sidebar .flow-section-nav__link--active::before,
  .flow-section-nav--left .flow-section-nav__link--active::before,
  .flow-section-nav--right .flow-section-nav__link--active::before {
    color: var(--lumen-index-ink);
  }

  /* ── A bar that follows the reader ────────────────────────────────────────
     Sticky on the SLOT (its parent spans the page, so it has somewhere to
     travel). Glass rather than a flat fill, so the page reads as passing
     BEHIND it — the same fog Lumen uses elsewhere for layered chrome. No hover
     nudge here: shifting one chip shoves its neighbours along the line. */
  .flow-section-nav-slot:has(.flow-section-nav--top) {
    position: sticky;
    top: 0;
    z-index: 5;
    /* Tighter than the contents list: this one rides along with the reader, so
       every pixel of its height is height taken from the page underneath. */
    padding-block: 0.7rem;
    background: color-mix(in srgb, var(--color-paper) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 1px 0 0 color-mix(in srgb, var(--color-ink) 9%, transparent);
  }
  .flow-section-nav--top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
  }
  .flow-section-nav--top .flow-section-nav__label {
    margin: 0;
    flex: none;
    display: none;
  }
  .flow-section-nav--top .flow-section-nav__list {
    gap: 0.15rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 0.25rem;
  }
  .flow-section-nav--top .flow-section-nav__list::-webkit-scrollbar {
    display: none;
  }
  .flow-section-nav--top .flow-section-nav__link {
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 450;
    white-space: nowrap;
  }
  .flow-section-nav--top .flow-section-nav__link:hover {
    background: color-mix(in srgb, currentColor 7%, transparent);
  }
  .flow-section-nav--top .flow-section-nav__link--active,
  .flow-section-nav--top .flow-section-nav__link--active:hover {
    background: color-mix(in srgb, var(--lumen-index-ink) 12%, transparent);
    color: var(--lumen-index-ink);
    font-weight: 600;
  }
  @media (min-width: 48rem) {
    .flow-section-nav--top .flow-section-nav__label {
      display: block;
    }
    .flow-section-nav--top .flow-section-nav__list {
      flex-wrap: wrap;
      overflow-x: visible;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .flow-section-nav__link,
    .flow-section-nav__link:hover {
      transition: none;
      transform: none;
    }
  }

  /* Theme-owned section navigation. The explicit column-* variants leave the
     legacy page settings unchanged until the tenant saves its theme settings. */
  :scope { --flow-index-width: 14rem; }
  .flow-section-nav--managed {
    color: var(--flow-fg-on-light, #212b32);
    background: var(--section-bg-default, #fff);
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-block: 1.5rem;
    overflow-wrap: anywhere;
    transform: translateY(var(--flow-index-shift, 0px));
  }
  .flow-section-nav--managed[data-obscured] { visibility: hidden; }
  .flow-section-nav--managed .flow-section-nav__label { color: inherit; font-size: 0.75rem; }
  .flow-section-nav--managed .flow-section-nav__list { list-style: none; padding: 0; margin: 0; }
  .flow-section-nav--managed .flow-section-nav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.625rem 0.75rem;
    border-inline-start: 3px solid color-mix(in srgb, currentColor 22%, transparent);
    color: inherit;
    font-size: 0.875rem;
    line-height: 1.5;
    text-decoration: none;
    text-wrap: pretty;
  }
  .flow-section-nav--managed .flow-section-nav__link:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    background: color-mix(in srgb, currentColor 5%, transparent);
  }
  .flow-section-nav--managed .flow-section-nav__link--active {
    border-inline-start-color: var(--flow-ink-emphasis, currentColor);
    color: var(--flow-ink-emphasis, currentColor);
    background: color-mix(in srgb, currentColor 7%, transparent);
    font-weight: 700;
  }
  .flow-section-nav--managed .flow-section-nav__link:focus-visible,
  .flow-section-nav--managed .flow-section-nav__toggle:focus-visible {
    outline: 3px solid #914719;
    outline-offset: 2px;
    background: #fff;
    color: #0a0f12;
    text-decoration: underline;
  }
  .flow-section-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 44px;
    font: inherit;
    font-weight: 700;
    text-align: start;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0.5rem 0;
    cursor: pointer;
  }
  .flow-section-nav--managed > .flow-section-nav__label,
  .flow-section-nav--managed > .flow-section-nav__progress,
  .flow-section-nav--managed:not([data-expanded]) > .flow-section-nav__list { display: none; }
  .flow-section-nav--managed[data-expanded] > .flow-section-nav__list { margin-block-start: 0.75rem; }
  .flow-section-nav__progress-text { display: flex; align-items: baseline; gap: 0.35rem; font-size: 1.75rem; font-weight: 700; }
  .flow-section-nav__progress-text > span { font-size: 0.75rem; font-weight: 400; }
  .flow-section-nav__progress-track { display: block; height: 3px; margin-block: 0.75rem 1rem; background: color-mix(in srgb, currentColor 15%, transparent); }
  .flow-section-nav__progress-track > span { display: block; height: 100%; background: var(--flow-ink-emphasis, currentColor); }

  @media (min-width: 64rem) {
    .flow-section-nav-slot:has(.flow-section-nav--managed):has(~ .flow-document) {
      /* The zero-height navigation slot must not shield the content beside it. */
      pointer-events: none;
      position: sticky;
      top: var(--flow-anchor-offset, 6rem);
      height: 0;
      z-index: 4;
      padding-block: 0;
      overflow: visible;
    }
    .flow-section-nav-slot:has(~ .flow-document) .flow-section-nav--managed {
      pointer-events: auto;
      width: var(--flow-index-width);
      margin-block: 0;
      max-height: calc(100dvh - var(--flow-anchor-offset, 6rem) - 2rem);
      overflow-y: auto;
      scrollbar-width: thin;
      overscroll-behavior: contain;
    }
    .flow-section-nav-slot:has(~ .flow-document) .flow-section-nav--floating {
      box-shadow: 0 12px 32px -12px #0004;
      border-block-start: 3px solid var(--flow-ink-emphasis, currentColor);
    }
    .flow-section-nav-slot:has(~ .flow-document) :is(.flow-section-nav--column-right, .flow-section-nav--floating-right) { margin-inline-start: auto; }
    .flow-section-nav-slot:has(~ .flow-document) .flow-section-nav--managed > .flow-section-nav__toggle { display: none; }
    .flow-section-nav-slot:has(~ .flow-document) .flow-section-nav--managed > :is(.flow-section-nav__label, .flow-section-nav__list, .flow-section-nav__progress) { display: block; }
    .flow-section-nav-slot:has(:is(.flow-section-nav--column-left, .flow-section-nav--floating-left)) ~ .flow-document .flow-section--width-contained .flow-section__inner {
      padding-inline-start: calc(var(--container-gutter) + var(--flow-index-width) + var(--flow-index-gap));
    }
    .flow-section-nav-slot:has(:is(.flow-section-nav--column-right, .flow-section-nav--floating-right)) ~ .flow-document .flow-section--width-contained .flow-section__inner {
      padding-inline-end: calc(var(--container-gutter) + var(--flow-index-width) + var(--flow-index-gap));
    }
  }
  /* Outer-margin floating needs space for the complete content width AND two
     accessible panels. Below this it takes a reserved column, never overlays. */
  @media (min-width: 120rem) {
    .flow-section-nav-slot:has(~ .flow-document) .flow-section-nav--floating-left {
      translate: calc(-100% - var(--flow-index-gap)) 0;
    }
    .flow-section-nav-slot:has(~ .flow-document) .flow-section-nav--floating-right {
      translate: calc(100% + var(--flow-index-gap)) 0;
    }
    .flow-section-nav-slot:has(.flow-section-nav--floating) ~ .flow-document .flow-section--width-contained .flow-section__inner { padding-inline: var(--container-gutter); }
  }
  :scope[data-editor-mode] .flow-section-nav--managed > .flow-section-nav__toggle { display: none; }
  :scope[data-editor-mode] .flow-section-nav--managed > :is(.flow-section-nav__label, .flow-section-nav__list, .flow-section-nav__progress) { display: block; }
  @media (prefers-reduced-motion: reduce) {
    .flow-section-nav--managed * { transition: none; scroll-behavior: auto; }
  }
  @media print {
    .flow-section-nav-slot:has(.flow-section-nav--managed) { display: none; }
    .flow-section-nav-slot:has(.flow-section-nav--managed) ~ .flow-document .flow-section--width-contained .flow-section__inner { padding-inline: var(--container-gutter); }
  }
}

/* ── Self-starting keyframe animations (register #18 ken-burns, #20 scroll-cue) ──
   @keyframes are global (CSS @scope cannot scope them), so these live OUTSIDE the
   @scope block. The animation PROPERTY is applied via `.lumen-*` classes the hero
   override carries. SUPPRESSED inside the editor canvas ([data-editor-mode]) and
   under reduced-motion — only the live front animates (lumen-theme-conversion §3.3).
   Scroll-reveal entrance (#19/#21/#22) is handled by the shared `v-reveal` directive,
   not here. */
/* Ken Burns is now the shared surface-motion contract (driven by
   data-surface-motion on the hero <img>, structural keyframe + guards) — Lumen's
   former `lm-kenburns` keyframe + `.lumen-kenburns` rule are retired. The scroll
   cue keeps its own pulse here. */
@keyframes lm-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.65; }
  50% { transform: scaleY(1.4); opacity: 1; }
}
.theme-canvas .lumen-scroll-cue-pulse {
  animation: lm-pulse 2.4s ease-in-out infinite;
}
.theme-canvas[data-editor-mode] .lumen-scroll-cue-pulse {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .theme-canvas .lumen-scroll-cue-pulse {
    animation: none;
  }

}

/* Author-selected card surfaces: layout and content stay canonical. */
@scope (.theme-canvas) {
  :scope { --flow-image-backing: color-mix(in srgb, var(--color-copper) 20%, transparent); }
  .flow-listgrid-widget[data-card-treatment] .flow-listgrid__card {
    border: 1px solid color-mix(in srgb, var(--color-copper) 20%, var(--color-pearl));
    border-radius: 1.25rem;
    background: var(--color-pearl);
    box-shadow: none;
  }
  .flow-listgrid-widget[data-card-treatment] .flow-listgrid__inner {
    background: transparent;
    border: 0;
    border-radius: inherit;
    box-shadow: none;
    color: var(--color-ink);
  }
  .flow-listgrid-widget[data-card-treatment] .flow-listgrid__content { position: relative; padding: 1.5rem; }
  .flow-listgrid-widget[data-card-treatment] .flow-listgrid__indicator {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: var(--color-copper);
    background: color-mix(in srgb, var(--color-copper) 9%, var(--color-pearl));
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  .flow-listgrid-widget[data-card-treatment="soft"] .flow-listgrid__card {
    background: linear-gradient(150deg, var(--color-pearl) 55%, color-mix(in srgb, var(--color-copper) 6%, var(--color-pearl)));
    box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--color-ink) 5%, transparent);
  }
  .flow-listgrid-widget[data-card-treatment="outline"] .flow-listgrid__card { border: 2px solid var(--color-copper); }
  .flow-listgrid-widget[data-card-treatment] .flow-listgrid__title { color: var(--color-copper); }
  .flow-listgrid-widget[data-card-treatment] .flow-listgrid__body { color: var(--color-ink); }
  .flow-listgrid-widget[data-card-treatment] .flow-listgrid__card--link:hover { border-color: var(--color-copper); }
  @media (prefers-reduced-motion: reduce) {
    .flow-listgrid-widget .flow-listgrid__card,
    .flow-listgrid-widget .flow-listgrid__inner,
    .flow-listgrid-widget .flow-listgrid__image,
    .flow-listgrid-widget .flow-listgrid__cta::after { transition: none !important; transform: none !important; }
  }
}

/* Opt-in editorial treatments. Each is selected in the component inspector;
   theme colours and typography remain variables, without changing old pages. */
@scope (.theme-canvas) {
  .flow-heading[data-typography="editorial"] {
    font-family: var(--flow-editorial-font, Georgia, 'Times New Roman', serif);
    font-size: clamp(2.25rem, 4.5cqi, 4.25rem); font-weight: 500;
    line-height: 1.08; letter-spacing: -.035em; text-wrap: balance;
  }
  .flow-hero[data-presentation="editorial"] {
    position: relative; isolation: isolate; overflow: hidden; display: block;
    min-height: 38rem; background: var(--flow-editorial-ground, #061b28);
    color: #fff; padding: 0; border-radius: 0;
  }
  .flow-hero[data-presentation="editorial"] .nhs-hero__inner,
  .flow-hero[data-presentation="editorial"] > .relative {
    position: relative; z-index: 2; width: 100%; max-width: 76rem; box-sizing: border-box;
    min-height: 38rem; padding: clamp(4rem, 8cqi, 7rem) 2rem 5rem;
    margin-inline: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  }
  .flow-hero[data-presentation="editorial"] .flow-hero__headline {
    font-family: var(--flow-editorial-font, Georgia, 'Times New Roman', serif);
    font-size: clamp(2.75rem, 4.8cqi, 4.8rem); line-height: 1.04; font-weight: 500;
    letter-spacing: -.04em; max-width: 17ch; margin: 1.5rem 0 0;
  }
  .flow-hero[data-presentation="editorial"] .flow-hero__headline:not([class*="flow-ink-"]) { color: #fff; }
  .flow-hero[data-presentation="editorial"] .flow-hero__subhead:not([class*="flow-ink-"]) { color: #eef4f5; }
  .flow-hero__headline-accent { display: block; color: var(--flow-editorial-accent, #8be0df); }
  .flow-hero__eyebrow { position: relative; font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--flow-editorial-accent, #8be0df); margin: 0; }
  .flow-hero[data-presentation="editorial"] .flow-hero__subhead { max-width: 46ch; font-size: 1.125rem; line-height: 1.8; margin: 1.75rem 0 0; }
  .flow-hero[data-presentation="editorial"] .flow-hero__actions { margin-top: 2rem; position: relative; }
  .flow-hero[data-presentation="editorial"] .flow-hero__cta.flow-button { border-radius: 999px; padding: .9rem 1.5rem; border: 1px solid #abc2ca; background: color-mix(in srgb,var(--flow-editorial-ground) 80%,transparent); color: white; box-shadow: none; min-height: 48px; }
  .flow-hero[data-presentation="editorial"] .flow-hero__cta::after { content: '↓'; margin-left: 1.75rem; }
  .flow-hero[data-presentation="editorial"] .flow-hero__cta.flow-button:hover:not(:focus-visible) { background: color-mix(in srgb,var(--flow-editorial-accent) 15%,var(--flow-editorial-ground)); color: #fff; }
  .flow-hero[data-presentation="editorial"] .flow-hero__cta.flow-button:focus-visible { background: #ffeb3b; color: #151b20; outline: 3px solid #ffeb3b; outline-offset: 4px; }
  .flow-hero[data-background-asset][data-overlay-treatment="directional"]:not([data-shading="custom"])::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--flow-editorial-ground) 0%, color-mix(in srgb,var(--flow-editorial-ground) 90%,transparent) 30%, color-mix(in srgb,var(--flow-editorial-ground) 45%,transparent) 62%, transparent 100%), linear-gradient(0deg, var(--flow-editorial-ground) 0%, transparent 40%); }
  .flow-liststats-widget[data-presentation="editorial"] { padding: 0 2rem 3rem; background: var(--flow-editorial-ground, #061b28); color: #fff; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats { max-width: 72rem; margin: 0 auto; padding-block: 2rem; border-block: 1px solid #ffffff30; gap: 0; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__card { padding: 0 2rem; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__card + .flow-liststats__card { border-left: 1px solid #ffffff30; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__inner { padding: 0; background: transparent; color: #fff; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__value { font-size: clamp(2.75rem, 4cqi, 4rem); line-height: 1.15; font-weight: 600; letter-spacing: -.05em; color: var(--flow-editorial-accent, #8be0df); }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__card:nth-child(2n) .flow-liststats__value:not([data-stat-accent]) { color: var(--flow-editorial-secondary); }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__card:nth-child(3n) .flow-liststats__value:not([data-stat-accent]) { color: var(--flow-editorial-tertiary); }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__label { color: #edf5f7; font-size: .9375rem; margin-top: .6rem; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2.5rem; counter-reset: none; padding: 2rem 0; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry { display: block; padding: 0; border: 0; position: relative; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry::before,
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__marker::before,
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__dot { display: none; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__marker { position: relative; width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center; margin: 0 0 2rem; border-radius: 1.4rem; border: 1px solid color-mix(in srgb,currentColor 40%,transparent); background: color-mix(in srgb,currentColor 7%,transparent); box-shadow: 0 0 3rem color-mix(in srgb,currentColor 12%,transparent); }
  .flow-process__number { font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__thumb { display: block; width: 3rem; height: 3rem; object-fit: contain; border-radius: .5rem; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__marker:has(.flow-listtimeline__thumb) .flow-process__number { display: none; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry:not(:last-child)::after { content: ''; position: absolute; left: 6rem; right: 0; top: 2.5rem; height: 1px; background: linear-gradient(90deg,currentColor,transparent); opacity: .5; transform-origin: left; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__title { font-size: 1.4rem; line-height: 1.3; margin: .75rem 0; color: inherit; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__blurb { color: inherit; opacity: .9; font-size: 1rem; line-height: 1.8; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__date { color: inherit; font-size: .7rem; letter-spacing: .15em; opacity: .8; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry[data-reveal="visible"]::after { animation: flow-process-connect 1000ms ease-out both; }
  @keyframes flow-process-connect { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: .5; } }
  @container theme-canvas (max-width: 700px) {
    .flow-hero[data-presentation="editorial"] .nhs-hero__inner, .flow-hero[data-presentation="editorial"] > .relative { padding: 4rem 1.5rem; min-height: 36rem; }
    .flow-hero[data-background-asset][data-overlay-treatment="directional"]:not([data-shading="custom"])::after { background: linear-gradient(90deg,color-mix(in srgb,var(--flow-editorial-ground) 94%,transparent),color-mix(in srgb,var(--flow-editorial-ground) 80%,transparent)),linear-gradient(0deg,var(--flow-editorial-ground),transparent 70%); }
    .flow-liststats-widget[data-presentation="editorial"] { padding: 0 1.5rem 2rem; }
    .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__card { padding: 1rem 0; }
    .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__card + .flow-liststats__card { border-left: 0; border-top: 1px solid #ffffff30; }
    .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline { grid-template-columns: 1fr; }
    .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry { padding-left: 6.5rem; min-height: 8rem; }
    .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__marker { position: absolute; left: 0; top: 0; }
    .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry:not(:last-child)::after { left: 2.5rem; top: 6rem; bottom: 0; height: auto; width: 1px; right: auto; }
  }
  @media (prefers-reduced-motion: reduce) { .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry::after { animation: none !important; } }
}

@scope (.theme-canvas) {
  .flow-hero[data-presentation="editorial"] [data-surface-motion="zoom"] img,
  .flow-hero[data-presentation="editorial"] img[data-surface-motion="zoom"],
  .flow-hero[data-presentation="editorial"] img[data-surface-motion="cinematic"] { animation-duration: 4s; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__marker::after { display: none; }
}

@scope (.theme-canvas) {
  .flow-hero[data-presentation="editorial"] .flow-hero__cta.flow-button--primary { background: var(--flow-editorial-accent); color: var(--flow-editorial-ground); border-color: transparent; }
  .flow-hero[data-presentation="editorial"] .flow-hero__cta.flow-button--tertiary { background: transparent; color: #fff; border-color: transparent; text-decoration: underline; }
  .flow-hero[data-presentation="editorial"] .flow-hero__cta.flow-button--reverse { background: #fff; color: var(--flow-editorial-ground); }
  .flow-hero[data-presentation="editorial"] .flow-hero__cta.flow-button:focus-visible { background: #ffeb3b; color: #151b20; }
  .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry[data-reveal="visible"] .flow-listtimeline__marker { animation: flow-process-arrive 900ms ease-out both; }
  @keyframes flow-process-arrive { from { box-shadow: 0 0 0 transparent; } 60% { box-shadow: 0 0 3rem color-mix(in srgb,currentColor 25%,transparent); } to { box-shadow: 0 0 3rem color-mix(in srgb,currentColor 12%,transparent); } }
  @media (prefers-reduced-motion: reduce) { .flow-listtimeline-widget[data-presentation="process"] .flow-listtimeline__entry .flow-listtimeline__marker { animation: none !important; } }
}

@scope (.theme-canvas) {
  .flow-hero[data-presentation="editorial"] .flow-hero__cta::after { content: none; }
  .flow-hero__action-icon { flex: 0 0 18px; margin-left: 1.25rem; transition: transform 180ms ease; }
  .flow-hero__action-icon[data-direction="right"] { transform: rotate(-90deg); }
  .flow-hero[data-button-treatment="refined"] .flow-hero__cta.flow-button {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem;
    min-height: 44px; padding: .65rem 1.2rem; border-radius: 999px;
    font-size: .875rem; line-height: 1.4; font-weight: 650; max-width: 100%;
    border-color: color-mix(in srgb,currentColor 38%,transparent);
    transition: background-color 180ms ease, border-color 180ms ease;
  }
  .flow-hero[data-button-treatment="refined"] .flow-hero__action-icon { margin-left: 0; }
  .flow-hero[data-button-treatment="refined"] .flow-hero__cta:hover { border-color: currentColor; }
  .flow-hero[data-button-treatment="refined"] .flow-hero__cta:hover .flow-hero__action-icon[data-direction="down"] { transform: translateY(2px); }
  .flow-hero[data-button-treatment="refined"] .flow-hero__cta:hover .flow-hero__action-icon[data-direction="right"] { transform: translateX(2px) rotate(-90deg); }
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] { padding-bottom: 1.5rem; }
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats { padding-block: 1.5rem; }
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats__card { padding: 0 1.75rem; }
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats__figure { min-height: 0; padding: 0; gap: 0; align-items: stretch; }
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats__value { font-size: clamp(2.25rem, 3.5cqi, 3rem); line-height: 1.1; }
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats__label { margin-top: .5rem; font-size: .875rem; line-height: 1.5; }
  @container theme-canvas (max-width: 700px) {
    .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats__card { padding: 1rem 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .flow-hero .flow-hero__action-icon { transition: none; }
    .flow-hero[data-button-treatment="refined"] .flow-hero__cta:hover .flow-hero__action-icon[data-direction="down"] { transform: none; }
    .flow-hero[data-button-treatment="refined"] .flow-hero__cta:hover .flow-hero__action-icon[data-direction="right"] { transform: rotate(-90deg); }
  }
}

@scope (.theme-canvas) {
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats__card:first-child { padding-left: 0; }
  .flow-liststats-widget[data-presentation="editorial"][data-density="compact"] .flow-liststats__card:last-child { padding-right: 0; }
}

@scope (.theme-canvas) {
  .flow-liststats-widget[data-presentation="editorial"] .flow-stat-affix { font-size: .52em; letter-spacing: -.025em; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__label p + p { margin-top: .4rem; font-size: .8125rem; color: #b9c2d0; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__label strong { font-weight: 650; }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__card:nth-child(4n) .flow-liststats__value:not([data-stat-accent]) { color: var(--flow-editorial-accent); }
}

@scope (.theme-canvas) {
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__card {
    background: var(--flow-card-surface); color: var(--flow-card-ink); border: 1px solid var(--flow-card-border);
    border-radius: var(--flow-card-radius); box-shadow: 0 3px 12px #17243206; overflow: visible;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__inner {
    background: transparent; color: inherit; padding: 0; border-radius: inherit; text-decoration: none; height: 100%;
  }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__content { position: relative; padding: var(--flow-card-padding); display: flex; flex-direction: column; align-items: stretch; gap: 0; flex: 1; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__eyebrow { color: color-mix(in srgb,var(--flow-card-ink) 75%,var(--flow-card-surface)); font-size: .6875rem; letter-spacing: .12em; line-height: 1.5; font-weight: 650; margin: 0 2rem .75rem 0; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__title { color: var(--flow-card-ink); font-size: 1.375rem; line-height: 1.3; letter-spacing: -.025em; font-weight: 650; margin: 0 1.5rem .75rem 0; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__body { color: color-mix(in srgb,var(--flow-card-ink) 85%,var(--flow-card-surface)); font-size: 1rem; line-height: 1.65; margin: 0; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__body p { margin: 0; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__indicator { position: absolute; top: var(--flow-card-padding); right: var(--flow-card-padding); display: flex; width: 20px; height: 20px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--flow-card-ink); transition: transform 180ms ease; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__content:has(.flow-listgrid__cta) .flow-listgrid__indicator { top: auto; bottom: var(--flow-card-padding); }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__content:has(.flow-listgrid__cta) .flow-listgrid__body { margin-bottom: 1.5rem; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__cta { display: block; margin-top: auto; padding: 1rem 2rem 0 0; border-top: 1px solid var(--flow-card-border); color: var(--flow-card-ink); font-size: .8125rem; font-weight: 650; line-height: 1.5; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__cta::after { content: none; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__card--link:hover { border-color: var(--flow-card-ink); box-shadow: 0 12px 24px #17243212; transform: translateY(-2px); }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__card--link:hover .flow-listgrid__indicator { transform: translateX(3px); }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__link:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 3px; box-shadow: 0 0 0 2px #172432; }
  .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__media { border-radius: var(--flow-card-radius) var(--flow-card-radius) 0 0; overflow: hidden; }
  @media (prefers-reduced-motion: reduce) {
    .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__card,
    .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__indicator { transition: none; }
    .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__card--link:hover,
    .flow-listgrid-widget[data-card-treatment="editorial"] .flow-listgrid__card--link:hover .flow-listgrid__indicator { transform: none; }
  }
}

@scope (.theme-canvas) {
  .flow-practice-footer { background: var(--flow-footer-ground); color: var(--flow-footer-ink); }
  .flow-practice-footer__container { max-width: 72rem; padding-inline: 2rem; margin-inline: auto; }
  .flow-practice-footer__signature { background: var(--flow-footer-band); padding-block: 3.5rem; }
  .flow-practice-footer__signature > div { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
  .flow-practice-footer__signature h2 { margin: 0; font-family: var(--flow-editorial-font); font-size: clamp(2.25rem,4cqi,4rem); line-height: 1.15; letter-spacing: -.035em; color: var(--flow-footer-ink); }
  .flow-practice-footer__contact { font-size: 1rem; line-height: 1.6; }
  .flow-practice-footer__body { padding-block: 4rem 2rem; }
  .flow-practice-footer .flow-footer-nav > .flow-nav { gap: 3rem; }
  .flow-practice-footer .flow-footer-nav > .flow-nav > .flow-nav__item > :is(.flow-nav__label,.flow-nav__link) { color: var(--flow-footer-accent); padding-bottom: 1rem; border-color: color-mix(in srgb,var(--flow-footer-ink) 20%,transparent); font-size: .75rem; }
  .flow-practice-footer a, .flow-practice-footer a:visited { color: var(--flow-footer-ink); }
  .flow-practice-footer .flow-footer-nav .flow-nav__nested .flow-nav__link { color: var(--flow-footer-ink); min-height: 44px; display: flex; align-items: center; font-size: .9375rem; line-height: 1.5; }
  .flow-practice-footer .flow-footer-nav .flow-nav__nested .flow-nav__link:hover { color: var(--flow-footer-accent); text-decoration: underline; text-underline-offset: .3em; transform: none; }
  .flow-practice-footer__columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(12rem,1fr)); gap: 2rem; }
  .flow-practice-footer__urgent { margin-top: 3rem; border-block: 1px solid color-mix(in srgb,var(--flow-footer-ink) 20%,transparent); padding-block: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .flow-practice-footer__urgent p { margin: 0; max-width: 45rem; font-size: .9375rem; line-height: 1.7; }
  .flow-practice-footer__action { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-shrink: 0; min-height: 44px; padding: .65rem 1rem; border: 1px solid color-mix(in srgb,var(--flow-footer-ink) 50%,transparent); border-radius: 999px; font-size: .875rem; font-weight: 600; text-decoration: none; }
  .flow-practice-footer__action:hover { background: color-mix(in srgb,var(--flow-footer-ink) 10%,transparent); }
  .flow-practice-footer__legal { margin-top: 2rem; }
  .flow-practice-footer__legal ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; list-style: none; padding: 0; }
  .flow-practice-footer__legal a { display: inline-block; padding-block: .5rem; font-size: .875rem; }
  .flow-practice-footer__copyright { margin: 2rem 0 0; font-size: .8125rem; line-height: 1.7; color: color-mix(in srgb,var(--flow-footer-ink) 80%,var(--flow-footer-ground)); }
  .flow-practice-footer a:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 3px; background: #ffeb3b; color: #172432; }
  @media (max-width: 48rem) {
    .flow-practice-footer__container { padding-inline: 1.25rem; }
    .flow-practice-footer__signature > div, .flow-practice-footer__urgent { flex-direction: column; align-items: flex-start; }
    .flow-practice-footer .flow-footer-nav > .flow-nav { grid-template-columns: 1fr; gap: 2rem; }
  }
}

@scope (.theme-canvas) {
  .flow-practice-footer { --footer-space: 4rem; text-align: left; overflow-wrap: anywhere; }
  .flow-practice-footer[data-footer-density="compact"] { --footer-space: 2rem; }
  .flow-practice-footer__body { padding-block: var(--footer-space) 2rem; }
  .flow-practice-footer__signature { padding-block: var(--footer-space); }
  .flow-practice-footer__introduction { max-width: 36rem; margin: 1.25rem 0 0; font-size: 1.0625rem; line-height: 1.7; color: inherit; }
  .flow-practice-footer[data-footer-alignment="center"] { text-align: center; }
  .flow-practice-footer[data-footer-alignment="center"] .flow-practice-footer__signature > div { justify-content: center; }
  .flow-practice-footer[data-footer-alignment="center"] .flow-practice-footer__introduction { margin-inline: auto; }
  .flow-practice-footer[data-footer-alignment="center"] .flow-footer-nav .flow-nav__link { justify-content: center; }
  .flow-practice-footer[data-footer-alignment="center"] :is(.flow-practice-footer__urgent,.flow-practice-footer__legal ul) { justify-content: center; }
  .flow-practice-footer[data-footer-style="minimal"] .flow-practice-footer__signature { background: transparent; padding-bottom: 0; }
  .flow-practice-footer[data-footer-style="minimal"] .flow-practice-footer__signature h2 { font-family: inherit; font-size: 1.75rem; font-weight: 600; }
  .flow-practice-footer[data-footer-style="minimal"] .flow-practice-footer__body { padding-top: 2rem; }
  .flow-practice-footer[data-footer-style="minimal"] .flow-practice-footer__urgent { margin-top: 2rem; }
  .flow-practice-footer[data-footer-style="columns"] .flow-practice-footer__signature { background: transparent; }
  .flow-practice-footer[data-footer-style="columns"] .flow-practice-footer__signature h2 { font-size: 2.5rem; }
  @media (min-width: 64rem) {
    .flow-practice-footer[data-footer-style="columns"] { display: grid; grid-template-columns: minmax(2rem,1fr) minmax(0,20rem) minmax(0,52rem) minmax(2rem,1fr); }
    .flow-practice-footer[data-footer-style="columns"] .flow-practice-footer__signature { grid-column: 2; padding-inline: 0; }
    .flow-practice-footer[data-footer-style="columns"] .flow-practice-footer__signature > div { display: block; padding-inline: 2rem; }
    .flow-practice-footer[data-footer-style="columns"] .flow-practice-footer__body { grid-column: 3; min-width: 0; width: 100%; }
    .flow-practice-footer[data-footer-style="columns"] .flow-footer-nav > .flow-nav { grid-template-columns: repeat(auto-fit,minmax(9rem,1fr)); gap: 1.5rem; }
    .flow-practice-footer[data-footer-style="columns"] .flow-practice-footer__urgent { flex-wrap: wrap; }
    .flow-practice-footer[data-footer-style="columns"]:not(:has(.flow-practice-footer__signature)) .flow-practice-footer__body { grid-column: 2 / 4; }
  }
  @media (max-width: 48rem) {
    .flow-practice-footer[data-footer-alignment="center"] :is(.flow-practice-footer__signature > div,.flow-practice-footer__urgent) { align-items: center; }
  }
}

@scope (.theme-canvas) {
  .flow-practice-footer__signature h2 { color: inherit; }
  .flow-practice-footer[data-footer-style="statement"] .flow-practice-footer__signature { color: var(--flow-footer-band-ink,var(--flow-footer-ink)); }
  .flow-practice-footer[data-footer-style="statement"] .flow-practice-footer__signature a { color: inherit; }
  .flow-practice-footer__identity { min-width: 0; max-width: 100%; }
  .flow-practice-footer__utility { grid-column: 1 / -1; min-width: 0; width: 100%; }
  .flow-practice-footer__logo { display: flex; align-items: center; max-width: 100%; min-height: 44px; margin-bottom: 1.5rem; }
  .flow-practice-footer__logo img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: contain; object-position: left; }
  .flow-practice-footer[data-footer-alignment="center"] .flow-practice-footer__logo { margin-inline: auto; }
  .flow-practice-footer[data-footer-alignment="center"] .flow-practice-footer__logo img { object-position: center; }
}

@scope (.theme-canvas) {
  .flow-practice-footer a:focus-visible { color: #172432 !important; background: #ffeb3b; outline: 3px solid #ffeb3b; outline-offset: 3px; box-shadow: 0 0 0 6px #172432; }
}

@scope (.theme-canvas) {
  .flow-practice-footer__accreditation { flex: 0 1 auto; max-width: 100%; margin: 0; }
  .flow-practice-footer__accreditation img { display: block; width: 100%; height: auto; }
  .flow-practice-footer[data-footer-logo-placement="accreditation"] .flow-practice-footer__signature > div { flex-wrap: wrap; gap: 2rem 3rem; }
  .flow-practice-footer[data-footer-logo-placement="accreditation"] .flow-practice-footer__identity { flex: 1 1 22rem; }
  .flow-practice-footer[data-footer-logo-placement="accreditation"] .flow-practice-footer__contact { flex-basis: 100%; }
  .flow-practice-footer[data-footer-style="columns"] .flow-practice-footer__accreditation { margin-top: 2rem; }
  .flow-practice-footer[data-footer-alignment="center"] .flow-practice-footer__accreditation { margin-inline: auto; }
  @media (max-width: 48rem) {
    .flow-practice-footer[data-footer-logo-placement="accreditation"] .flow-practice-footer__identity { flex-basis: auto; }
  }
}

/* Explicit list accents win over the editorial position palette. Page overrides are inline. */
@scope (.theme-canvas) {
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__value[data-stat-accent="accent"] { color: var(--flow-ink-accent-on-dark); }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__value[data-stat-accent="emphasis"] { color: var(--flow-ink-emphasis-on-dark); }
  .flow-liststats-widget[data-presentation="editorial"] .flow-liststats__value[data-stat-accent="subtle"] { color: var(--flow-ink-subtle-on-dark); }
}

/* Stats presentations: optional skins share the canonical grid and item spans.
   No new brand tokens: Spotlight reuses the existing editorial palette. */
@scope (.theme-canvas) {
  .flow-liststats-widget:not([data-presentation])[data-density="compact"] .flow-liststats__figure { padding: .75rem; gap: .25rem; }
  .flow-liststats-widget:not([data-presentation])[data-density="compact"] .flow-liststats__value { font-size: 2rem; }
  .flow-liststats-widget:not([data-presentation]) .flow-liststats__card--link:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) { --stats-gap: var(--space-md); --stats-padding: clamp(1.25rem, 2.5cqi, 2.25rem); --stats-size: clamp(2.5rem, 4.5cqi, 4rem); }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"])[data-density="compact"] { --stats-gap: var(--space-sm); --stats-padding: 1rem; --stats-size: clamp(2rem, 3.5cqi, 3rem); }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats { gap: var(--stats-gap); color: inherit; background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; margin: 0; isolation: auto; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats::before { content: none; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__card { padding: 0; border: 0; background: none; box-shadow: none; min-width: 0; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats .flow-liststats__inner { border: 0; box-shadow: none; padding: 0; color: inherit; border-radius: 0; background: none; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__figure { padding: var(--stats-padding); gap: 0; justify-content: flex-start; min-width: 0; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__value { font-size: var(--stats-size); font-weight: 650; line-height: 1.15; letter-spacing: -.04em; text-shadow: none; overflow-wrap: anywhere; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-stat-affix { font-size: .52em; letter-spacing: -.02em; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__eyebrow { color: inherit; font-size: .75rem; line-height: 1.5; letter-spacing: .08em; margin-bottom: .75rem; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__label { color: inherit; text-transform: none; font-size: .9375rem; font-weight: 400; letter-spacing: normal; line-height: 1.6; margin-top: 1.25rem; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__label p + p { margin-top: .35rem; font-size: .8125rem; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__label strong { font-weight: 650; }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats .flow-liststats__inner { border-radius: 1.25rem; background: var(--flow-editorial-ground, #061b28); color: #edf5f7; border: 1px solid #ffffff30; box-shadow: 0 12px 32px #00000012; }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__value { color: var(--flow-editorial-accent); }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__card:nth-child(2n) .flow-liststats__value:not([data-stat-accent]) { color: var(--flow-editorial-secondary); }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__card:nth-child(3n) .flow-liststats__value:not([data-stat-accent]) { color: var(--flow-editorial-tertiary); }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__card:nth-child(4n) .flow-liststats__value:not([data-stat-accent]) { color: var(--flow-editorial-accent); }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__value::after { content: ''; display: block; height: 3px; margin-top: 1.25rem; background: currentColor; border-radius: 2px; opacity: .8; }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__label p + p { color: #b9c2d0; }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__value[data-stat-accent="accent"] { color: var(--flow-ink-accent-on-dark); }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__value[data-stat-accent="emphasis"] { color: var(--flow-ink-emphasis-on-dark); }
  .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__value[data-stat-accent="subtle"] { color: var(--flow-ink-subtle-on-dark); }
  .flow-liststats-widget[data-presentation="minimal"] .flow-liststats .flow-liststats__inner { border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
  .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__figure { padding-inline: .5rem; }
  .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__value { color: inherit; font-weight: 500; letter-spacing: -.055em; }
  .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__value[data-stat-accent="accent"] { color: var(--flow-ink-accent); }
  .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__value[data-stat-accent="emphasis"] { color: var(--flow-ink-emphasis); }
  .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__value[data-stat-accent="subtle"] { color: var(--flow-ink-subtle); }
  :is(.flow-section--tone-light, [data-surface-tone="dark"]) .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__value[data-stat-accent="accent"] { color: var(--flow-ink-accent-on-dark); }
  :is(.flow-section--tone-light, [data-surface-tone="dark"]) .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__value[data-stat-accent="emphasis"] { color: var(--flow-ink-emphasis-on-dark); }
  :is(.flow-section--tone-light, [data-surface-tone="dark"]) .flow-liststats-widget[data-presentation="minimal"] .flow-liststats__value[data-stat-accent="subtle"] { color: var(--flow-ink-subtle-on-dark); }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__link:hover .flow-liststats__label { text-decoration: underline; text-underline-offset: .2em; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__link:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 3px; box-shadow: 0 0 0 6px #172432; }
  @container flow-stats (max-width: 479px) {
    .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__value { font-size: clamp(1.5rem, 8cqi, 2.75rem); }
    .flow-liststats-widget[data-presentation="spotlight"] .flow-liststats__figure { padding: 1rem; }
  }
}

@scope (.theme-canvas) {
  .flow-liststats-widget { container-name: flow-stats; }
  .flow-liststats-widget:is([data-presentation="spotlight"], [data-presentation="minimal"]) .flow-liststats__card { container: flow-stat-card / inline-size; }
  .flow-liststats__label { overflow-wrap: anywhere; }
  @container flow-stat-card (max-width: 240px) {
    .flow-liststats-widget .flow-liststats .flow-liststats__value { font-size: clamp(1.25rem, 16cqi, 2.75rem); overflow-wrap: anywhere; }
  }
}

@scope (.theme-canvas) {
  :is(.flow-section--tone-light, [data-surface-tone="dark"]) .flow-liststats-widget[data-presentation="minimal"] { color: var(--flow-fg-on-dark, #fff); }
}

@scope (.theme-canvas) {
  /* Keep established desktop Editorial typography; only narrow strips need a
     smaller ceiling so a two-column mobile layout can hold figures and affixes. */
  @container flow-stats (max-width: 479px) {
    .flow-liststats-widget.flow-liststats-widget .flow-liststats .flow-liststats__value { font-size: clamp(1.25rem, 7cqi, 2.75rem); }
    .flow-liststats-widget.flow-liststats-widget:not([data-presentation="spotlight"]):not([data-presentation="minimal"]) .flow-liststats__figure { padding-inline: .5rem; }
  }
}

/* A full-bleed section extends its background, not the reading width of a
   standalone stats strip. Cover the public widget and the editor block shell;
   nested column widgets continue to use their column's width. */
@scope (.theme-canvas) {
  .flow-section--width-full_bleed > .flow-section__inner > .flow-liststats-widget:not([data-presentation="editorial"]),
  .flow-section--width-full_bleed > .flow-section__inner > .flow-block > .flow-liststats-widget:not([data-presentation="editorial"]) {
    width: calc(100% - 2 * var(--container-gutter));
    max-width: calc(var(--container-max) - 2 * var(--container-gutter));
    margin-inline: auto;
  }
}

/* Keep the visitor motion control clear of the decorative mobile scroll cue. */
@scope (.theme-canvas) {
  @media (max-width: 700px) {
    .flow-hero:has(.flow-surface-motion-toggle) .lumen-hero__scroll-cue { display: none; }
  }
}

/* Transparent editorial heroes inherit the section surface and ink. */
@scope (.theme-canvas) {
  .flow-hero[data-presentation="editorial"].flow-hero--transparent:not([data-background-asset]) {
    background: none;
    color: inherit;
  }
  .flow-hero[data-presentation="editorial"].flow-hero--transparent:not([data-background-asset]) :is(.flow-hero__headline, .flow-hero__subhead):not([class*="flow-ink-"]) { color: inherit; }
  .flow-hero[data-presentation="editorial"].flow-hero--transparent:not([data-background-asset])::after { background: none; }
  .flow-hero[data-presentation="editorial"].flow-hero--transparent:not([data-background-asset]) :is(.flow-hero__headline-accent, .flow-hero__eyebrow, .flow-hero__cta.flow-button--tertiary:not(:focus-visible)) { color: inherit; }
  .flow-hero.flow-hero--transparent:not([data-background-asset]) :is(.flow-hero__headline-accent, .flow-hero__eyebrow) { color: inherit; }
  .flow-hero[data-presentation="editorial"].flow-hero--transparent:not([data-background-asset]) .flow-hero__cta.flow-button--tertiary:hover:not(:focus-visible) { color: inherit; background: color-mix(in srgb, currentColor 8%, transparent); border-color: currentColor; }
}
