/* ============================================================================
   new_content.css — the new_content builder stylesheet (R3, 2026-07-06).

   R3.2 progressively moves the builder's CSS bands here from assets/styles.css.
   LOAD ORDER: Dash serves assets alphabetically, so this file loads BEFORE
   styles.css. For the token definitions below that is irrelevant (unique
   custom-property names on their own selectors). For MIGRATED bands it matters:
   a band moved here loses to any same-specificity rule still in styles.css —
   every band move must verify its cascade dependencies (screenshot diff).
   ========================================================================== */

/* ---------------------------------------------------------------------------
   R3.1 Broadcast design tokens (--bc-*)
   Originally ported 1:1 from the (deleted) redesign_mockup_v3 --m-* block:
   steel-graphite + scoreboard-amber in BOTH themes, radius 6/4, condensed-caps
   eyebrows, tabular mono numerals, validated blue/aqua/yellow series palette.

   Plan C-1b (2026-08-29, decisions C5 + C6 in
   docs/design/builder_v6_decisions.md): the VALUES now come from the design
   system (docs/design_system.md §1 — dark-first surfaces, orange = navigation /
   CTA, lime = selected setting value); the token MECHANISM is unchanged (every
   chrome color still flows through --bc-*, nothing is hardcoded in
   components). Radii and type tokens are NOT retuned here (geometry/typography
   of the whole inspector = a separate revision). The former app-accent aliases
   (var(--sp-page-*)) are gone: the studio chrome no longer follows the app
   light/dark scheme — C6 = dark-only builder chrome (the CANVAS keeps
   its own Dark/Light via layout-background-mode; that is content, not chrome).

   Namespace: --bc-* ("Broadcast") is the builder's design-system namespace,
   following the existing domain-token pattern (--builder-*, --feed-*). NOT
   --sp-* because that namespace already carries site-wide tokens with
   colliding names (--sp-border-soft at :root) — shadowing them inside the
   shell would silently restyle any in-shell consumer.

   Keying: dark is the builder default (dmc.MantineProvider
   defaultColorScheme="dark"); since C-1b the same values apply regardless of
   the .new-content-theme-{t} class the shell still carries (the class is kept
   for the theme-sync callback and the bootstrap stamp; it has no token
   consumer any more).

   Scope: body:has(#new-content-shell), NOT the shell itself — custom
   properties inherit, so the shell subtree still resolves them, and the
   body-level builder rules (page/app-container background, portaled
   .mantine-*-dropdown / Pill chrome, which render as <body> children outside
   the shell) can finally resolve them too (they consumed var(--builder-*)
   that never resolved at body level pre-R3).
   -------------------------------------------------------------------------- */

body:where([data-sp-has~="studio-or-editor"]):not(#sp-s) {
  /* surfaces (DS §1.1): page ground, chrome strips, cards/inputs, track */
  --bc-bg: var(--sp-bg);
  --bc-panel: var(--sp-chrome);
  --bc-raised: var(--sp-surface);
  --bc-sunken: var(--sp-bg);
  /* borders (DS §1.4): universal hairline + nested-card hairline */
  --bc-border: var(--sp-border-strong);
  --bc-border-soft: var(--sp-border);
  /* text (DS §1.2) */
  --bc-text: var(--sp-text);
  --bc-text2: var(--sp-text-2);
  --bc-faint: var(--sp-text-3);
  /* accent (DS §1.3): orange = navigation / filters / CTA ("where I go / what
     I launch"); ink on any accent fill is the page ground */
  --bc-accent: var(--sp-accent);
  --bc-accent-hover: var(--sp-accent-hover);
  --bc-accent-ink: var(--sp-bg);
  --bc-accent-soft: color-mix(in srgb, var(--sp-accent) 10%, transparent);
  /* selection (DS §1.3 idiom, C5): lime = the selected setting value / live
     content ("what is chosen / what lives") — segments, option chips */
  --bc-select: #b4ff3a;
  --bc-select-soft: rgba(180, 255, 58, 0.1);
  /* semantic (DS §1.6 proposal: positive = lime, warning = #FFC24C) */
  --bc-good: #b4ff3a;
  --bc-warn: #ffc24c;
  /* radii — unchanged (see header note) */
  --bc-r: 6px;
  --bc-rs: 4px;
  /* type — unchanged (see header note) */
  --bc-body: system-ui, "Segoe UI", sans-serif;
  --bc-num: ui-monospace, "Cascadia Mono", Consolas, monospace;
  /* series palette (validated reference set: blue / aqua / yellow) — FROZEN */
  --bc-s1: #3987e5;
  --bc-s2: #199e70;
  --bc-s3: #c98500;
  /* preview / chart-adjacent surfaces — FROZEN by the 2b kickoff (canvas /
     export tokens never alias chrome); the stage ground follows the DS page
     ground so the card sits on the same dark field as the rest of the chrome */
  --bc-grid: #232c36;
  --bc-canvas: #0e1216;
  --bc-cardbg: #101820;
  --bc-zone: rgba(242, 165, 31, 0.10);
  /* editor tooling (2d): zones/grid/drag overlays — kept blue (C5: it still
     needs contrast against the orange chrome accent AND the lime selection;
     never a content color). */
  --bc-editor-tool: #5e97f5;
}

/* (R3.2: the --builder-* alias layer was inlined into the extracted
   stylesheet and removed — --bc-* is the only builder vocabulary now.) */

/* C6 (approved 2026-08-28): the builder chrome is dark-only. The light token
   block that used to live here (steel paper + darkened amber) is retired; the
   .new-content-theme-light class is still stamped on the shell by
   sync_new_content_theme / 00_theme_bootstrap.js but resolves to the same
   values above. The exported card's own Dark/Light is layout-background-mode
   (Canvas tab) and is untouched by this. The --bc-cardbg "stays dark in both
   themes" note from R3 is therefore moot — there is one theme. */

/* 2b amber-ink override retired with the aliases: the DS accent is always
   orange and its ink is always the page ground (--bc-accent-ink above). */
