/*
 * MSS theme: design tokens as CSS custom properties.
 *
 * Every value here is copied from the live GovCloud portal stylesheet
 * web/mss-access/app/style.css (main @ 48c96e26). Where that file sets a
 * value and later overrides it, the value the browser ends up using is the
 * one recorded here. Row-by-row sources: ../SOURCES.md.
 *
 * This file only declares variables. It does not style any element, so it is
 * safe to import into any project. For the portal look itself, also import
 * components.css.
 */
:root {
  color-scheme: light;

  /* Colour: core */
  --mss-ink: #123453;            /* body text, headings, dark buttons */
  --mss-muted: #526b81;          /* hints, secondary text, footer */
  --mss-accent: #b9ddff;         /* pale blue accent (legacy header mark, arrow on dark button) */
  --mss-line: #d5e3f0;           /* dividers, header/footer rules, step circles */
  --mss-blue: #0057a6;           /* brand blue: primary button, brand name, links, progress, focus ring */
  --mss-blue-hover: #004889;     /* primary button hover */
  --mss-white: #ffffff;

  /* Colour: surfaces */
  --mss-page: #f2f7fc;           /* page background */
  --mss-card: #ffffff;           /* card background */
  --mss-card-border: #d7e5f2;    /* card border */
  --mss-tint: #e9f2fb;           /* icon tile, secondary button */
  --mss-message: #e8f2fc;        /* status message background */
  --mss-input-bg: #fbfdff;       /* text input background */
  --mss-input-border: #c5d8e9;   /* text input border, toolbar divider */
  --mss-track: #e3eef9;          /* progress bar track */
  --mss-rule-soft: #e1ebf5;      /* <details> top rule */
  --mss-line-art: #c3d9ee;       /* decorative line art */

  /* Colour: secondary text */
  --mss-step-number: #5a7b9a;    /* numbered step circles (hero layout) */
  --mss-pilot-label: #567a9b;    /* "MSS PILOT" label */

  /* Colour: desktop viewer */
  --mss-desk-bg: #000000;
  --mss-desk-toolbar-bg: rgba(255, 255, 255, .92);
  --mss-desk-toolbar-ink: #0e1b29;

  /* Colour: status (portal file states; added by #402 from the #381 visual spec, see ../SOURCES.md).
     Each ink colour passes WCAG 2.1 AA (4.5:1) on its own background and on white. */
  --mss-status-ok-bg: #e3f4e9;   /* clean, released */
  --mss-status-ok-ink: #1b6236;
  --mss-status-warn-bg: #fff2d2; /* scanning, awaiting approval */
  --mss-status-warn-ink: #7a4a00;
  --mss-status-bad-bg: #fde6e6;  /* threat, quarantined, flagged CUI */
  --mss-status-bad-ink: #9e1c26;
  --mss-status-bad-line: #f3c4c7;
  --mss-status-ai-bg: #ece9fa;   /* AI review */
  --mss-status-ai-ink: #46378f;

  /* Overlays (walkthrough scrim, popovers; added by #402) */
  --mss-scrim: rgba(18, 52, 83, .55);
  --mss-shadow-popover: 0 24px 70px rgba(18, 52, 83, .22);

  /* Elevation */
  --mss-shadow-card: 0 18px 70px #0057a610;

  /* Typography */
  --mss-font-sans: Arial, Helvetica, sans-serif;
  --mss-line-height-body: 1.6;

  --mss-text-hero: clamp(50px, 5.8vw, 86px);  /* large h1 on hero pages (setup, enroll) */
  --mss-text-hero-mobile: 58px;
  --mss-text-title: 30px;        /* card title: "Sign in", "Hi, Jane Smith." */
  --mss-text-brand: 25px;        /* legacy large brand header */
  --mss-text-h2: 26px;
  --mss-text-progress-title: 24px;
  --mss-text-lead: 16px;
  --mss-text-progress-stage: 15px;
  --mss-text-input: 14px;
  --mss-text-topbar: 14px;
  --mss-text-card-h3: 14px;
  --mss-text-body-sm: 13px;      /* hint, buttons, steps, nav */
  --mss-text-label: 12px;
  --mss-text-meta: 12px;
  --mss-text-foot: 11px;
  --mss-text-eyebrow: 10px;
  --mss-text-footer-legacy: 10px;
  --mss-text-tag: 9px;

  --mss-weight-regular: 400;
  --mss-weight-medium: 500;      /* hero h1, h2 */
  --mss-weight-semibold: 600;    /* card title, labels, buttons */
  --mss-weight-bold: 700;        /* top bar brand name, eyebrow */
  --mss-weight-heavy: 800;       /* legacy large brand header */

  --mss-tracking-hero: -4px;
  --mss-tracking-title: -1px;
  --mss-tracking-h2: -.9px;
  --mss-tracking-progress-title: -.5px;
  --mss-tracking-eyebrow: 2px;
  --mss-tracking-pilot: 1.6px;
  --mss-tracking-tag: 1.3px;

  /* Spacing */
  --mss-space-topbar: 14px 24px;     /* top bar and footer padding */
  --mss-space-topbar-gap: 12px;      /* logo to name */
  --mss-space-card: 36px;            /* wide card padding */
  --mss-space-card-compact: 32px;    /* centred card padding */
  --mss-space-card-compact-mobile: 24px;
  --mss-space-progress-card: 28px;
  --mss-space-control: 15px;         /* input and button padding */
  --mss-space-title-below: 22px;
  --mss-space-hint-above: 14px;
  --mss-space-button-above: 13px;
  --mss-space-label-below: 10px;
  --mss-space-center-top: 9vh;
  --mss-space-center-top-mobile: 6vh;

  /* Sizes */
  --mss-logo-header: 44px;           /* logo in the top bar */
  --mss-logo-hero: 68px;             /* legacy large brand header */
  --mss-width-card-compact: 400px;
  --mss-width-progress-card: 440px;
  --mss-width-page: 1500px;
  --mss-progress-height: 10px;
  --mss-step-circle: 22px;
  --mss-breakpoint-mobile: 800px;    /* reference only: CSS variables do not work inside @media */

  /* Radii */
  --mss-radius-card: 14px;
  --mss-radius-icon: 10px;
  --mss-radius-control: 6px;         /* inputs, buttons, messages */
  --mss-radius-progress: 5px;
  --mss-radius-round: 50%;
  --mss-radius-toolbar: 0 0 10px 10px;

  /* States */
  --mss-disabled-opacity: .55;
  --mss-focus-ring: 3px solid #0057a6;
  --mss-focus-offset: 3px;
}
