/* GENERATED FILE. Do not edit by hand.
   Source: prototype/app/assets/tokens.json (W3C Design Tokens Community Group format).
   Built by prototype/scripts/build-tokens.js with Style Dictionary (TY-S08); its
   LAYOUT holds this file's prose. check-tokens-drift.js fails on any difference
   between this file and a fresh build. */
/**
 * tokens.css
 * last-updated: 2026-11-08
 * owner: Alex
 *
 * Changelog:
 * - 2026-11-11 (TY-S27, prototype/typography-build-plan.md §4.28): inside a
 *   customer canvas --text-caption is 14px, not 12px. Vendor surfaces and
 *   the export point scales are unchanged.
 * - 2026-11-08 (TY-S17, prototype/typography-build-plan.md §4.18): the fixed
 *   Bright Growth palette, --palette-*, at the end of layer 2. It replaces
 *   the --color-* aliases app-shell.css declared; every value is the one the
 *   alias carried, so nothing on screen changes.
 * - 2026-11-07 (TY-S06, prototype/typography-build-plan.md §4.6): the chart
 *   categorical palette, --chart-1 to --chart-6, at the end of layer 2 (the
 *   TY-S01 kickoff moved it to this sprint). The dashboards' series, stage
 *   and category colours read it; nothing else changes.
 * - 2026-11-07 (TY-S03, prototype/typography-build-plan.md §4.3): the first
 *   customer-canvas rule, at the end of this file. Inside an element marked
 *   data-brand-scope="tenant", body text is 16px with a 1.6 line height
 *   (decision D-TY2). The Executive Summary's memo cards and its Appendix
 *   are the first two scopes. Nothing else changes.
 * - 2026-11-06 (TY-S01, prototype/typography-build-plan.md §4.1): new. The
 *   one source of every text size, weight, line height, font and text or
 *   surface colour the app uses. Imported first by app-shell.css. Layer 1
 *   (base) is never overridden. Layer 2 (vendor) holds Bright Growth's
 *   values; from TY-S04 a tenant overrides a fixed subset of layer-2 names,
 *   and only inside elements carrying data-brand-scope="tenant" (decision
 *   D-TY1). Rules for using it: prototype/design-principles.md.
 *   Contrast ratios below are WCAG 2.x, measured 2026-11-06 for TY-S01.
 *   The chart palette is not defined here yet: none existed in
 *   app-shell.css, so it arrives with TY-S06 (Alex, TY-S01 kickoff).
 *
 * This file is the one place a hex colour belongs. check-type-tokens.js
 * never scans it.
 */

/* ----------------------------------------------------------- fonts
   Self-hosted from assets/fonts/ (copied from
   customers/bright-growth/brand/fonts/, converted to WOFF2). Montserrat is
   one variable-weight file. Poppins ships as static weights; only 400, 500
   and 600 are served, exactly the set the pages fetched from Google Fonts
   before TY-S01, so nothing changes weight. Both fonts are SIL Open Font
   License. The "Fallback" faces are Arial scaled to each font's average
   letter width (size-adjust), so text barely moves when the real font
   arrives after font-display: swap. size-adjust measured over A-Z a-z 0-9
   and space against Arial's metrics (Liberation Sans). */
@font-face{font-family:'Montserrat';src:url('fonts/montserrat-variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Poppins';src:url('fonts/poppins-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Poppins';src:url('fonts/poppins-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Poppins';src:url('fonts/poppins-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Montserrat Fallback';src:local('Arial'),local('ArialMT'),local('Liberation Sans');size-adjust:106.9%}
@font-face{font-family:'Poppins Fallback';src:local('Arial'),local('ArialMT'),local('Liberation Sans');size-adjust:103.0%}

:root{
  /* ========================================================= LAYER 1: BASE
     Never overridden, by a tenant or a page. Sizes in rem so a reader's
     browser text-size setting scales them (WCAG 1.4.4). Seven sizes. */
  --text-display:2rem;      --line-display:1.2;  /* 32px: report cover, hero number on a KPI tile */
  --text-h1:1.5rem;         --line-h1:1.25;      /* 24px: page title, the one <h1> per page */
  --text-h2:1.25rem;        --line-h2:1.3;       /* 20px: section title inside a page or memo */
  --text-h3:1rem;           --line-h3:1.4;       /* 16px: sub-section, card title, table caption */
  --text-body:0.875rem;     --line-body:1.5;     /* 14px: paragraphs, lists, cells, inputs (16px/1.6 inside a canvas from TY-S03, D-TY2) */
  --text-ui:0.8125rem;      --line-ui:1.4;       /* 13px: navigation, tabs, chips, button labels */
  --text-caption:0.75rem;   --line-caption:1.4;  /* 12px: metadata, dates, sources, help text, eyebrow labels. Nothing smaller anywhere */

  /* Three weights. Nothing under 400, nothing over 600. */
  --weight-regular:400;     /* body text */
  --weight-medium:500;      /* UI labels; an emphasized run inside body text */
  --weight-semibold:600;    /* headings */

  --letter-eyebrow:0.06em;  /* letter spacing for a one-line all-caps eyebrow label only */

  /* Spacing on a 4px step, and two radii. */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-7:28px; --space-8:32px;
  --radius-sm:4px; --radius-md:8px;

  /* ========================================================= LAYER 2: VENDOR
     Bright Growth's values. Every vendor surface shows these. From TY-S04 a
     tenant may override the two font families and the colour names marked
     [tenant] below, inside data-brand-scope="tenant" only. */
  --font-heading:'Montserrat','Montserrat Fallback',Arial,sans-serif;  /* [tenant] display, h1, h2 */
  --font-body:'Poppins','Poppins Fallback',Arial,sans-serif;           /* [tenant] h3 and everything else */

  /* Surfaces */
  --surface-page:#F7F7F7;    /* [tenant] page background behind cards */
  --surface-card:#FFFFFF;    /* [tenant] cards, tables, inputs */
  --surface-inset:#F7F7F7;   /* [tenant] an inset on a card: chip, progress track, code block, table header, disabled card. A step darker than --surface-card (1.05-1.15:1); tenant-brand.js derives it as the card blended 3.5% toward --text-primary (TY-S20) */
  --surface-raised:#EBF2FF;  /* hover rows, selected nav item */

  /* Text */
  --text-primary:#1A1A1A;    /* [tenant] headings and body. 17.4:1 on card, 16.3:1 on page */
  --text-secondary:#5F5F5F;  /* [tenant] captions, metadata, help text. 6.4:1 on card, 6.0:1 on page */
  --text-tertiary:#6B6B6B;   /* placeholder and disabled labels only, never information. 5.3:1 on card */
  --text-inverse:#FFFFFF;    /* text on a filled accent. 5.7:1 on --accent */

  /* Accent and brand */
  --accent:#2563C7;          /* [tenant] links, focus ring, primary button fill, the one highlighted element per view. 5.7:1 on card as text; 5.7:1 under white text */
  --accent-soft:#EBF2FF;     /* [tenant] tinted background for a selected or info state. text-primary on it: 15.5:1 */
  --brand-mark:#4285F4;      /* the logo mark and favicon only, never text (3.6:1 on white fails AA as text) */
  --brand-mark-2:#FDB515;    /* the logo mark's second colour; never text */
  --rule:#E3E3E3;            /* [tenant] hairline borders and dividers. 1.3:1, decorative, no requirement */

  /* Status: the only colours that carry meaning, each always paired with a word or icon */
  --status-good:#116E4E;     /* confirmed, passing. 6.2:1 on card */
  --status-warn:#9A6B00;     /* needs attention. 4.7:1 on card */
  --status-bad:#A1123A;      /* failing, blocked. 7.9:1 on card */

  /* Chart categorical palette (TY-S06). Series marks, fills, bars, stage and
     category swatches only: never text, and always paired with a label,
     because the yellow and teal fail 3:1 on white. Bright Growth's own
     series hues, so a dashboard's series keep their colours; a tenant does
     not override these. Pale tints are mixed from these in place
     (color-mix(in srgb, var(--chart-n) 12%, var(--surface-card))). */
  --chart-1:#4285F4;         /* blue */
  --chart-2:#33CC99;         /* teal */
  --chart-3:#FDB515;         /* yellow */
  --chart-4:#F87117;         /* orange */
  --chart-5:#9900CC;         /* purple */
  --chart-6:#E40082;         /* pink */

  /* Fixed Bright Growth palette (TY-S17). The values the old app-shell.css
     --color-* aliases carried, each under one governed name. Never
     overridden by a tenant, so these hold the same colour on every
     workspace, inside a customer canvas too. A page that should follow the
     customer's brand reads the role token above instead. */
  --palette-blue-dark:#2563C7;/* fixed at --accent's Bright Growth value; inside a customer canvas the role token is read instead (TY-S19), so only vendor surfaces use this name */
  --palette-blue-light:#A8C5FA;/* pale blue for borders and progress fills */
  --palette-blue-pale:#EBF2FF;/* fixed at --accent-soft's Bright Growth value; inside a customer canvas the role token is read instead (TY-S19), so only vendor surfaces use this name */
  --palette-yellow-dark:#D49300;/* dark yellow for marks on a yellow wash; never text */
  --palette-yellow-pale:#FFF8E6;/* pale yellow wash behind a notice or a mid score */
  --palette-pink:#E40082;  /* pink mark for a low score tier; never text */
  --palette-pink-pale:#FCE6F2;/* pale pink wash behind a 1-2 score pill or a rejected chip */
  --palette-green:#2CC185; /* green mark for a good score tier; never text */
  --palette-teal-pale:#E6FAF4;/* pale teal wash behind a passing state */
  --palette-orange:#F87117;/* orange mark for a warning tier; never text */
  --palette-orange-pale:#FEF0E3;/* pale orange wash, the resourcing banner fourth tier (RS-S04) */
  --palette-orange-dark:#C55610;/* dark orange text on the orange wash (RS-S04) */
  --palette-gray-900:#1A1A1A;/* fixed at --text-primary's Bright Growth value; inside a customer canvas the role token is read instead (TY-S19), so only vendor surfaces use this name */
  --palette-gray-700:#777777;/* mid grey for secondary marks and icons */
  --palette-gray-500:#999999;/* light grey for disabled marks */
  --palette-gray-400:#CCCCCC;/* grey for borders heavier than --rule */
  --palette-gray-200:#EEEEEE;/* pale grey fill for tracks and empty bars */
  --palette-gray-100:#F7F7F7;/* fixed at --surface-inset's Bright Growth value; inside a customer canvas the role token is read instead (TY-S20), so only vendor surfaces use this name */
  --palette-white:#FFFFFF; /* fixed at --surface-card's Bright Growth value; inside a customer canvas the role token is read instead (TY-S19), so only vendor surfaces use this name */
}

/* ============================================================ CANVAS SCOPE
   A customer canvas (decision D-TY1) is any element carrying
   data-brand-scope="tenant". Inside it, body text steps up to 16px with a
   1.6 line height (D-TY2) and caption text steps up to 14px (TY-S27: a
   12px caption beside 16px body was too small to read); every other size
   stays layer 1. From TY-S04 the tenant's fonts and [tenant] colours are
   applied on this same selector. */
[data-brand-scope="tenant"]{--text-body:1rem; --line-body:1.6; --text-caption:0.875rem}
