/*
 * The stock look's palette: the neutral starting look of every new centre (a dark slate main
 * colour and grey area markers).
 *
 * Loaded after the seven shared stylesheets (so these values win over the shared
 * public/assets/ui/tokens.css) and before theme.css. It declares EVERY custom property
 * the shared tokens.css declares, with the stock look's values, so no value of the
 * shared set can show through; a test pins that. It also declares the stock-only slot names
 * (--slot-families, --slot-fees, --slot-staff, --slot-building, each with a -tint),
 * which theme.css reads.
 *
 * A centre will set TWO colours in Branding (a later unit): a main colour (#334155 here) and an
 * accent (#94A3B8 here). The main colour gives the interaction colours (--plum*) and the three
 * --oak* names; the slots are computed from both colours by the rule in the design system. The
 * colour lines below are the ones Branding overrides; everything else here is fixed, and is the
 * same for every centre. The Acme demo's palette (the KinderNexus colours) is
 * App\Demo\Seed\DemoPalette::kinderNexus(), never loaded by a client install.
 */

:root {
    /* Surfaces and lines: Cloud, white, Mist, Field. Fixed. */
    --paper: #F6F7FB;
    --card: #FFFFFF;
    --sunken: #EEF0F6;
    --line: #E6E9F2;
    --line-control: #868DAA; /* 3:1 or better on --paper and --card: a control can sit on the page */

    /* Text: Ink and Slate. Fixed. */
    --ink: #2E354D;
    --muted: #5A6178;
    --header-muted: #5A6178;

    /* Plum: interaction. Derived from the centre's main colour. */
    --plum: #334155;
    --plum-dark: #283342;
    --plum-soft: #C2C6CC;
    --plum-tint: #E9EAEC;
    --on-plum: #FFFFFF;

    /* Oak: current tab line, focus ring, highlight. Follows the main colour in stock. */
    --oak: #334155;
    --oak-deep: #283342;
    --oak-tint: #E9EAEC;

    /* Sage: positive. Fixed status colour. */
    --sage: #2E7D4F;
    --sage-deep: #1D6239;
    --sage-tint: #E2F3E8;

    /* Danger and info. Fixed status colours. */
    --danger: #B3261E;
    --danger-tint: #FCEBE9;
    --info: #1F5F99;
    --info-tint: #E5EFF9;

    /* Attention: a warning, a draft, an over-staffed period. A fixed amber, the same in
       every centre: never the centre's accent, never an area colour. */
    --attention: #7A4600;
    --attention-tint: #FFF0D6;

    /* Break cover: a timeline segment for a break being covered (fixed, not a warning). */
    --break-cover: #7A4600;
    --break-cover-tint: #FFF0D6;
    --break-cover-line: #B86E00;

    /* The mark only; not interface colours. The stock look has no use for them. */
    --acorn: #2E354D;
    --leaf: #2E354D;

    /* The four colour slots: neutral greys. A slot colour is only ever a shape beside a
       label, never text; its tint carries Ink text. */
    --slot-families: #94A3B8;
    --slot-families-tint: #F0F2F5;
    --slot-fees: #6B7584;
    --slot-fees-tint: #EAECEE;
    --slot-staff: #334155;
    --slot-staff-tint: #E2E4E7;
    --slot-building: #8F96A2;
    --slot-building-tint: #EFF0F2;

    /* Type families: served from the install (public/themes/stock/fonts/). */
    --font-display: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

    /* Weights: 400, 600 and 700 only */
    --weight-regular: 400;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Type scale: page titles a step larger and tighter. */
    --text-display-page: 34px;
    --leading-display-page: 40px;
    --tracking-display-page: -0.02em;
    --text-display-stat: 34px;
    --leading-display-stat: 40px;
    --text-display-section: 22px;
    --leading-display-section: 28px;
    --text-display-card: 19px;
    --leading-display-card: 24px;

    --text-body: 16px;
    --leading-body: 25px;
    --leading-body-ratio: 1.5625; /* 25 / 16, unitless so descendants that set only a font-size scale their line height */
    --text-table: 15px;
    --leading-table: 22px;
    --text-button: 15px;
    --leading-button: 20px;
    --text-label: 14px;
    --leading-label: 20px;
    --text-small: 13px;
    --leading-small: 18px;
    --text-overline: 12px;
    --leading-overline: 16px;
    --tracking-overline: 0.07em;

    /* Spacing: the shared 4px scale, unchanged */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Radius: boxes 20px, controls 12px */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Elevation: Ink-tinted */
    --shadow-raised: 0 12px 32px rgba(46, 53, 77, 0.14);
    --shadow-overlay: 0 20px 48px rgba(46, 53, 77, 0.25);

    /* Layout: unchanged */
    --shell-max: 1440px;
    --sidebar-width: 232px;
    --parent-max: 1060px;

    /* The portal's older token names, kept as aliases so rules written with them keep working. */
    --shadow: var(--shadow-raised);
    --radius: var(--radius-lg);
    --radius-small: var(--radius-md);
}
