/* ============================================================
   FoodPeace AOS — design tokens
   ------------------------------------------------------------
   v2 (Oct 31, 2026, platform batch 1): the FROZEN FoodPeace design
   system is appended below. The legacy block above it is kept at
   its exact historical values so every existing client module
   stylesheet keeps rendering identically; the new admin theme
   (aos-admin.css) remaps context for admin screens only.
   Canonical rules: docs/design/DESIGN-CONTRACT.md (see repo docs).
   ============================================================ */

/* ---------- legacy @font-face (client shell keeps DM Sans) ---------- */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/dm-sans-400.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/dm-sans-500.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/dm-sans-600.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/dm-sans-700.ttf') format('truetype')}

/* ---------- NEW type system (admin + future client reskin) ---------- */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/poppins-400.ttf') format('truetype')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/poppins-500.ttf') format('truetype')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/poppins-600.ttf') format('truetype')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/poppins-700.ttf') format('truetype')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/poppins-800.ttf') format('truetype')}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/inter-var.ttf') format('truetype')}

/* ---------- legacy tokens (UNCHANGED VALUES — client compatibility) ----------
   Do not edit these values until the Phase 5 client migration retires them.
   Admin context remaps a subset via aos-admin.css, as the previous theme did. */
:root {
 --aos-teal:#489BAD; --aos-orange:#F67443; --aos-blue:#46618F; --aos-blue-alt:#345F8E;
 --aos-plum:#7D5080; --aos-lavender:#7B5CA7; --aos-green:#2F7A5A; --aos-olive:#718E51;
 --aos-pink:#B23A78; --aos-violet:#5F3AAE; --aos-purple:#8134A8; --aos-capacity-orange:#D9772F;
 --aos-soft-blue:#EDF2F8; --aos-soft-plum:#F4EDF4; --aos-soft-lavender:#F0EBF7;
 --aos-soft-orange:#FEF1EB; --aos-soft-green:#EAF7F2; --aos-soft-olive:#EFF3E9; --aos-soft-pink:#FBE3EF;
 --aos-action-teal:#2F7F90; --aos-action-orange:#A8410F;
 --aos-ink:#111; --aos-body:#172024; --aos-secondary:#3E4A4F; --aos-muted:#61747A;
 --aos-line:#DBE6E8; --aos-line-strong:#C7DADE; --aos-canvas:#F5F9FA;
 --aos-font:"DM Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 --aos-radius-rail:22px; --aos-radius-workspace:20px; --aos-radius-card:16px; --aos-radius-control:10px;
 --aos-shadow-card:0 2px 6px rgba(23,32,36,.03),0 8px 20px rgba(23,32,36,.04);
 --aos-shadow-feature:0 8px 20px rgba(23,32,36,.12); --aos-shadow-floating:0 12px 32px rgba(23,32,36,.14);
}

/* ============================================================
   FROZEN DESIGN TOKENS — FoodPeace design system v1 (Phase 0)
   Source of truth: LMS prototype globals.css; brand-600 = #489bad.
   COLOR LAW: one page tone; white surfaces; teal is action only;
   pastel accents are labels and dots; dark = brand-950 only.
   No color literals outside this block (see DESIGN-CONTRACT.md).
   ============================================================ */
:root {
  /* brand scale */
  --fp-brand-50:#eef9fc;  --fp-brand-100:#daf3f9; --fp-brand-200:#c0e7f1;
  --fp-brand-300:#9ed3e0; --fp-brand-400:#73b7c6; --fp-brand-500:#5ca9ba;
  --fp-brand-600:#489bad; --fp-brand-700:#388292; --fp-brand-800:#2d6976;
  --fp-brand-900:#24535e; --fp-brand-950:#08343f;

  /* semantic surfaces & text */
  --fp-page:#f9fbfc;        /* THE page tone (muted/40 over white) */
  --fp-ink:#0f222b;
  --fp-ink-muted:#516770;
  --fp-surface:#ffffff;
  --fp-muted:#eff5f7;       /* quiet fills, table header wash */
  --fp-accent:#e0f7fd;      /* hover fill */
  --fp-accent-fg:#075062;
  --fp-secondary:#edf8fb;   /* pale teal fill */
  --fp-secondary-fg:#1c3a44;
  --fp-destructive:#e5484d;
  --fp-border:#dbe6e8;      /* the only border color */
  --fp-ring:#5ca9ba;        /* focus ring base (drawn @50% alpha) */
  --fp-primary:#489bad; --fp-primary-fg:#fafafa;

  /* functional chip palette — bg-100/fg-700 recipe, meaning is fixed */
  --fp-chip-amber-bg:#fef3c7;   --fp-chip-amber-fg:#b45309;   --fp-chip-amber-fg-strong:#92400e;
  --fp-chip-green-bg:#d1fae5;   --fp-chip-green-fg:#047857;
  --fp-chip-rose-bg:#ffe4e6;    --fp-chip-rose-fg:#e11d48;    --fp-chip-rose-solid:#f43f5e; --fp-chip-rose-hover:#be123c;
  --fp-chip-violet-bg:#ede9fe;  --fp-chip-violet-fg:#6d28d9;
  --fp-chip-sky-bg:#e0f2fe;     --fp-chip-sky-fg:#0369a1;    --fp-chip-sky-fg-strong:#075985;
  --fp-chip-lime-bg:#ecfccb;    --fp-chip-lime-fg:#4d7c0f;
  --fp-chip-orange-bg:#ffedd5;  --fp-chip-orange-fg:#c2410c;
  --fp-chip-fuchsia-bg:#fae8ff; --fp-chip-fuchsia-fg:#a21caf;
  --fp-chip-slate-bg:#f1f5f9;   --fp-chip-slate-fg:#475569;
  --fp-chip-brand-bg:#daf3f9;   --fp-chip-brand-fg:#388292;
  --fp-star:#fbbf24; --fp-star-empty:rgba(81,103,112,.25);

  /* type */
  --fp-font-head:'Poppins',system-ui,sans-serif;
  --fp-font-body:'Inter','DM Sans',system-ui,sans-serif;
  --fp-title:30px; --fp-subtitle:16px; --fp-section:20px; --fp-card-title:16px;
  --fp-body:14px; --fp-small:13px; --fp-xs:12px; --fp-micro:11px; --fp-stat:32px;
  --fp-eyebrow:12px;

  /* radius / shadow / motion */
  --fp-radius-control:10px; --fp-radius-item:12px; --fp-radius-card:16px;
  --fp-radius-panel:24px;
  --fp-modal-backdrop:rgba(15,34,43,.48);
  --fp-shadow-sm:0 1px 2px rgba(15,34,43,.05);
  --fp-shadow-md:0 4px 6px -1px rgba(15,34,43,.07),0 2px 4px -2px rgba(15,34,43,.05);
  --fp-shadow-lg:0 10px 15px -3px rgba(15,34,43,.08),0 4px 6px -4px rgba(15,34,43,.05);
  --fp-shadow-xl:0 20px 25px -5px rgba(15,34,43,.10),0 8px 10px -6px rgba(15,34,43,.06);
  --fp-motion:150ms cubic-bezier(.4,0,.2,1);
  --fp-focus:0 0 0 3px rgba(92,169,186,.5);

  /* layout */
  --fp-sidebar-w:256px; --fp-topbar-h:56px; --fp-pad:24px; --fp-gap:20px;
}
