/* Section flow (see FLOW.md). Flat paints nothing: the bands are plain blocks, so every page looks exactly as it did before.
   Soft and Banded colour each full-bleed band from the theme's tone tokens (--tone-0 .. --tone-dark, defined per theme in packs/<niche>/themes.css).
   Soft reads data-ts, Banded reads data-tb; a band whose design brings its own background (data-own) is left alone so nothing doubles up.
   Fonts, the 18px / 1.65 / #303030 body rule and image corners are never touched here. */
.fl-band{display:block}
/* Prerendered pages inherit the browser's 8px body margin; bands must reach the window edge, so the margin goes when a flow is on (Flat keeps today's layout). */
body.np-site[data-flow]{margin:0}
body[data-flow=soft] .fl-band,body[data-flow=banded] .fl-band{display:flow-root}
body[data-flow=soft] .fl-band[data-ts="0"],body[data-flow=banded] .fl-band[data-tb="0"]{background:var(--tone-0)}
body[data-flow=soft] .fl-band[data-ts="1"]{background:var(--tone-1s)}
body[data-flow=soft] .fl-band[data-ts="2"]{background:var(--tone-2s)}
body[data-flow=banded] .fl-band[data-tb="1"]{background:var(--tone-1)}
body[data-flow=banded] .fl-band[data-tb="2"]{background:var(--tone-2)}
body[data-flow=soft] .fl-band+.fl-band{border-top:1px solid var(--tone-line)}
/* Sections that carry their own full-width background keep it: the band behind them stays clear. */
body[data-flow] .fl-band[data-own=tint],body[data-flow] .fl-band[data-own=dark]{background:transparent;border-top-color:transparent}
body[data-flow=soft] .fl-band[data-own=tint]+.fl-band,body[data-flow=soft] .fl-band[data-own=dark]+.fl-band{border-top-color:transparent}
/* Deep band (Banded only). The audit in tools/audit-flow.mjs lists the designs that stay legible here (darkSafe in packs/<niche>/flow.js); only those are given it. */
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]){background:var(--tone-dark);color:var(--tone-dark-soft);--ink:var(--tone-dark-text);--accent:var(--tone-dark-link);--accent-hover:var(--tone-dark-text);--line:var(--tone-dark-line)}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) :is(h1,h2,h3,h4,h5,h6,strong,dt,th){color:var(--tone-dark-text)!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) :is(p,li,dd,td,small,span,label,summary,figcaption,blockquote,em,cite,div){color:var(--tone-dark-soft)!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) a:not([class*=button]):not(.np-button){color:var(--tone-dark-link)!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) :is(.np-button,a[class*=button],button.np-button):not(.np-secondary){background:var(--tone-dark-btn)!important;color:var(--tone-dark-btn-text)!important;border-color:var(--tone-dark-btn)!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) :is(.np-secondary){background:transparent!important;color:var(--tone-dark-text)!important;border-color:var(--tone-dark-link)!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) :is(hr,details,article,li){border-color:var(--tone-dark-line)!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) :is([class*=chip],[class*=chip] *){background:var(--tone-dark-chip)!important;color:var(--tone-dark-chip-text)!important;border-color:var(--tone-dark-line)!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) [class*=chip] *{background:transparent!important}
body[data-flow=banded] .fl-band[data-tb=dark]:not([data-own]) .np-eyebrow{color:var(--tone-dark-link)!important}
/* Picker (toolbar and builder) */
.fl-picker{margin-inline:12px}
.fl-opt{min-height:44px;padding:0 14px;border:1px solid #8a9496;border-radius:10px;background:#fff;color:#303030;font:600 16px/1 'Google Sans',Arial,sans-serif;cursor:pointer;margin-right:4px}
.fl-opt[aria-pressed=true]{background:#1f2a2c;color:#fff;border-color:#1f2a2c}
.fl-opt:focus-visible{outline:3px solid #f4b400;outline-offset:2px}
.vb-shelf-head .fl-picker{margin:4px 0}
