/* FOREIGN FAMILY design tokens — one file for both portals (Product Studio foundation, 2026-10-27).
   Canonical copy: shared/ff-tokens.css. Mirrored byte-for-byte to admin/assets/ff-tokens.css and artist-portal/assets/ff-tokens.css by
   scripts/sync-shared.sh; tests/shared_assets.test.mjs fails on any drift. Tokens only: no selectors that style elements.
   Themes: black is the default; white applies to any element with data-theme="white" (the page root today, a preview panel on /design).
   Base names (--bg --tx --ac --act …) are the ones both portals already use, with the same values, so linking this file first changes
   nothing on an existing page. New names are prefixed --ff-. Breakpoints cannot be variables inside @media; they are listed here for
   reference and must be written as: phone < 600px, tablet < 900px, desktop >= 900px. */
:root,[data-theme="black"]{
 /* base surfaces and text (unchanged values) */
 --bg:#000;--s1:#0A0A0A;--s2:#111;--line:#292929;--tx:#fff;--mu:#A3A3A3;
 --ac:#C4B0EE;              /* brand lavender: fills, selected states */
 --act:#C4B0EE;             /* accent for text, icons and focus on this theme */
 --acx:#1a1230;             /* text on an --ac fill */
 --ok:#7fc8a4;--wn:#e6b567;--bd:#f08a92;
 --glass:rgba(255,255,255,.04);--glassl:rgba(255,255,255,.16);--hl:rgba(255,255,255,.07);
 /* cards (artist portal names, now shared) */
 --cd:rgba(24,23,30,.62);--cd2:rgba(255,255,255,.04);--edge:rgba(255,255,255,.09);--in:#b9a6ee;
 --elev:inset 0 1px 0 rgba(255,255,255,.07),0 1px 2px rgba(0,0,0,.8),0 16px 36px -16px rgba(0,0,0,1),0 12px 44px -22px rgba(196,176,238,.18);
 /* semantic backgrounds (the colour aliases are in the rule below) */
 --ff-info-bg:rgba(196,176,238,.10);--ff-ok-bg:rgba(127,200,164,.10);--ff-warn-bg:rgba(230,181,103,.10);--ff-err-bg:rgba(240,138,146,.10);
 --ff-focus-w:2px;--ff-focus-o:2px;
 /* glass surface for new components, both themes (audit #11) */
 --ff-surface:rgba(22,19,38,.46);--ff-surface2:rgba(255,255,255,.035);--ff-edge:rgba(196,176,238,.20);--ff-edge2:rgba(196,176,238,.42);
 --ff-blur:blur(18px) saturate(140%);--ff-shadow:0 18px 48px -20px rgba(0,0,0,.9),0 10px 40px -24px rgba(150,120,240,.22);
 --ff-scrim:rgba(0,0,0,.55);
 /* type scale (audit #9: 25 sizes in use; new work uses these six) */
 --ff-font:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;--ff-display:Fraunces,Georgia,serif;
 --ff-fs-xs:12px;--ff-fs-sm:13px;--ff-fs-md:15px;--ff-fs-lg:17px;--ff-fs-xl:22px;--ff-fs-2xl:28px;--ff-fs-3xl:34px;--ff-lh:1.5;
 /* spacing, radius, targets */
 --ff-sp-1:4px;--ff-sp-2:8px;--ff-sp-3:12px;--ff-sp-4:16px;--ff-sp-5:24px;--ff-sp-6:32px;
 --ff-r-sm:8px;--ff-r-md:12px;--ff-r-lg:16px;--ff-r-pill:999px;
 --ff-target:44px;          /* minimum touch target */
 --ff-dur:.15s;
 /* --ff-viz-*: data visualisation in the Projects PTT sections only (progress fills, Gantt bars and markers, status fills); not for buttons, links or general UI. Mint = Complete only. Approved by the frontend (PTT spec v0.2 / D-PTT-1). */
 --ff-viz-mid:#111021;--ff-viz-a:#7765D6;--ff-viz-b:#BDA5FF;--ff-viz-hi:#E2D1FF;--ff-viz-ok:#80D9B6;
}
[data-theme="white"]{
 --bg:#fff;--s1:#F7F7F7;--s2:#EEE;--line:#DDD;--tx:#111;--mu:#666;
 --ac:#C4B0EE;--act:#5a3fb0;--acx:#1a1230;
 --ok:#1f6f4a;--wn:#8a5a00;--bd:#b0303a;
 --glass:rgba(0,0,0,.025);--glassl:rgba(0,0,0,.16);--hl:rgba(255,255,255,.9);
 --cd:rgba(255,255,255,.86);--cd2:rgba(20,10,50,.035);--edge:rgba(0,0,0,.09);--in:#5a3fb0;
 --elev:0 1px 2px rgba(0,0,0,.06),0 10px 28px -14px rgba(20,10,50,.22);
 --ff-info-bg:rgba(90,63,176,.08);--ff-ok-bg:rgba(31,111,74,.08);--ff-warn-bg:rgba(138,90,0,.08);--ff-err-bg:rgba(176,48,58,.08);
 /* light glass: frosted white with the lavender edge, so the white theme reads as the same product */
 --ff-surface:rgba(255,255,255,.72);--ff-surface2:rgba(20,10,50,.035);--ff-edge:rgba(90,63,176,.18);--ff-edge2:rgba(90,63,176,.38);
 --ff-shadow:0 1px 2px rgba(0,0,0,.05),0 14px 36px -18px rgba(20,10,50,.28);
 --ff-scrim:rgba(20,10,50,.28);
 --ff-viz-a:var(--act);--ff-viz-b:#8f78e0;--ff-viz-hi:#3b2a80;--ff-viz-ok:var(--ok);   /* --ff-viz-*: see the black theme */
}
/* Aliases of theme colours are declared on every themed element, so a white panel inside a black page (or the reverse) resolves them
   against its own theme — a var() inherited from :root would keep the root theme's value. */
:root,[data-theme]{--ff-info:var(--act);--ff-ok:var(--ok);--ff-warn:var(--wn);--ff-err:var(--bd);
 --ff-focus:var(--act);   /* focus: always the high-contrast accent, never the pale fill (audit #5) */}
