/*
 * Design tokens: the only place colours are written down
 * (TemplateConventionsTest refuses hex colours anywhere else).
 *
 * The owner's brand (design gate, 2026-11-18): navy for headings, main buttons
 * and links; medical teal for the header bar and the hero; gold as the one
 * accent, always behind navy lettering and never as text on white; mist for the
 * page ground. TokenContrastTest checks every pair that is put one on the other.
 */
:root {
    color-scheme: light;

    /* Teal header bar, hero and admin sidebar */
    --color-header: #0B7285;
    --color-on-header: #FFFFFF;
    --color-header-tint: #E6F4F6;

    /* Navy: headings, main buttons, links */
    --color-primary: #122E5C;
    --color-primary-strong: #0B1F40;
    --color-primary-tint: #E8EDF6;
    --color-on-primary: #FFFFFF;
    --color-heading: #122E5C;

    /* Gold: the one action to notice. Navy lettering on it; never text on white. */
    --color-accent: #DDA51F;
    --color-accent-strong: #C9972B;
    --color-on-accent: #122E5C;

    /* Text */
    --color-ink: #16202E;
    --color-muted: #4A5668;
    --color-faint: #8A94A6;

    /* Ground, cards, rules */
    --color-canvas: #F3F5F9;
    --color-surface: #FFFFFF;
    --color-surface-sunken: #F3F5F9;
    --color-border: #DDE2EA;
    --color-border-input: #8A94A6;

    /* Errors */
    --color-danger: #B3261E;
    --color-danger-strong: #8A1F17;
    --color-danger-tint: #FDECEA;
    --color-on-danger: #FFFFFF;
    --color-on-danger-tint: #5E130D;

    /* Notices */
    --color-notice-tint: #FFF6E0;
    --color-on-notice: #4A2A00;
    --color-success: #1F7A48;
    --color-success-tint: #E6F4EC;
    --color-on-success-tint: #0F3D24;

    /* The scrim behind anything that sits over the page */
    --color-scrim: rgb(22 32 46 / 55%);

    /* Status pills: the app's four tones. Words always; colour never alone. */
    --pill-copy-bg: #DCEBFA;
    --pill-copy-ink: #0E3F73;
    --pill-exemption-bg: #E6E0F5;
    --pill-exemption-ink: #3F2A7A;
    --pill-attention-bg: #FBE7CF;
    --pill-attention-ink: #7A3D00;
    --pill-neutral-bg: #E9ECF1;
    --pill-neutral-ink: #333D4D;

    /* The same statuses in the child care centre's portal, in its own palette (StatusLabels::portalTone) */
    --portal-green-bg: #E7EFE4;
    --portal-green-ink: #3F5238;
    --portal-blue-bg: #E6EFF3;
    --portal-blue-ink: #3D6072;
    --portal-plum-bg: #EFE9F1;
    --portal-plum-ink: #56425F;
    --portal-amber-bg: #F4EAD9;
    --portal-amber-ink: #7A5524;
    --portal-grey-bg: #F1ECE3;
    --portal-grey-ink: #5E566A;

    /* The ring that shows where the keyboard is: navy; white on teal (set where the ground is teal) */
    --focus-ring: var(--color-primary);

    --font-heading: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --text-xs: 0.8125rem;
    --text-sm: 0.875rem;
    --text-md: 0.9375rem;
    --text-base: 1rem;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    --radius-control: 10px;
    --radius-card: 14px;
    --radius-pill: 999px;
    --radius: var(--radius-control);

    --target-min: 44px;
    --target-button: 48px;
    --target-hero: 52px;

    --page-gutter: 1.5rem;
    --page-max: 70rem;
}
