/* BSSP-280 (Ticket C): the design tokens Screens 1 and 2 (BSSP-281, BSSP-282) use, so their
   components carry no hex literals. Loaded by index.html after css/fonts.css.

   Values: BSSP-278 design rev 2.2, "Design tokens used", with the decisions since:
   - no disease palette (2026-11-25, OQ-6): a screener card's colour is the platform's
     (jobtype.testhubcolor, from the config); --sr-color-neutral is the fallback, which
     js/screening-config.js's NEUTRAL_COLOR mirrors (tests/tokens.spec.js checks they agree);
   - hint #767676, not #979797 (2026-11-27, OQ-16: 4.54:1 on white, passes WCAG AA). The help
     dot keeps #F6925A, an accepted exception to A11Y-12;
   - the focus ring (2026-11-27, OQ-17), applied by .sr-focus-ring;
   - a centred column at most 420px wide (2026-11-27, OQ-18). */

:root {
    /* colour */
    --sr-color-brand: #116AA6;
    --sr-color-brand-hover: #0D5586;
    --sr-color-brand-wash: rgba(0,108,167,0.16);
    --sr-color-text: #000;
    --sr-color-subtext: #333;
    --sr-color-hint: #767676;
    --sr-color-border: #D9D9D9;
    --sr-color-neutral: var(--sr-color-border);
    --sr-color-help: #F6925A;

    /* radius */
    --sr-radius-card: 12px;
    --sr-radius-checkbox: 4px;
    --sr-radius-cta: 24px;

    /* spacing */
    --sr-space-page: 16px;
    --sr-space-block: 16px;
    --sr-space-card-gap: 10px;
    --sr-space-timeline-row: 22px;

    /* layout */
    --sr-column-max: 420px;

    /* focus (OQ-17) */
    --sr-focus-ring-width: 2px;
    --sr-focus-ring-color: var(--sr-color-brand);
    --sr-focus-ring-offset: 2px;

    /* type */
    --sr-font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* icons */
    --sr-icon-size: 18px;
    --sr-icon-size-notice: 24px;

    /* Bootstrap reads its body font from this */
    --bs-body-font-family: var(--sr-font-family);
}

body {
    font-family: var(--sr-font-family);
}

/* The OQ-17 focus ring: on the Terms checkbox and link, both CTAs and the Back link. Keyboard
   focus only (:focus-visible), so a tap leaves no ring. */
.sr-focus-ring:focus-visible {
    outline: var(--sr-focus-ring-width) solid var(--sr-focus-ring-color);
    outline-offset: var(--sr-focus-ring-offset);
}

/* Icon sizes: 18px in the Terms check and the Screen 2 timeline, 24px in the provider notice. */
.material-symbols-outlined.sr-icon {
    font-size: var(--sr-icon-size);
}

.material-symbols-outlined.sr-icon-notice {
    font-size: var(--sr-icon-size-notice);
}
