/**
 * Tier 1 - Psychiatry UK colour primitives (canonical hex from Brand Sheet + Brand Book).
 * Do not reference these variables from components; use semantic tokens only.
 */
:root {
  /* Primary palette */
  --puk-primitive-dark-navy: #05144a;
  --puk-primitive-mid-navy: #1c2b70;
  --puk-primitive-dark-green: #002b2e;
  --puk-primitive-mid-green: #0c7d7d;
  --puk-primitive-mid-purple: #c2c2ff;
  --puk-primitive-warm-white: #fffaf7;
  --puk-primitive-light-purple: #e8e8ff;
  --puk-primitive-light-navy: #e9f4ff;
  --puk-primitive-light-green: #e3f7f5;
  --puk-primitive-white: #ffffff;
  /** Cool neutral — disabled / read-only form control fill (pair with `--puk-primitive-text-body` via semantic text-muted). */
  --puk-primitive-neutral-100: #f1f3f5;

  /* Extended primary / secondary accents (use with contrast verification) */
  --puk-primitive-light-orange: #ffc7b5;
  --puk-primitive-mid-orange: #ff7d4a;
  --puk-primitive-teal: #82d9c9;
  --puk-primitive-black: #000000;
  --puk-primitive-error-red: #b91c1c;
  --puk-primitive-consent-yellow-surface: #fffbeb;
  --puk-primitive-consent-yellow-border: #e8d87a;
  --puk-primitive-consent-yellow-text: #5c4b00;
  /* Brand light blue tint for document upload panels (pair with default/muted text). */
  --puk-primitive-upload-blue-border: #9ec5e8;

  /*
   * Dark / inverse primitives. Additive only: light defaults above stay canonical.
   * Values retain a Psychiatry UK navy/green/purple bias while meeting WCAG AA
   * when mapped through the semantic dark theme in semantic.css.
   */
  --puk-primitive-invert-surface-canvas: #02071b;
  --puk-primitive-invert-surface-subtle: #05144a;
  --puk-primitive-invert-surface-page: #030b28;
  --puk-primitive-invert-surface-card: #0b1f4d;
  --puk-primitive-invert-surface-elevated: #123064;
  --puk-primitive-invert-field-control-surface: #07183c;
  --puk-primitive-invert-field-disabled-surface: #17213a;
  --puk-primitive-invert-border-default: #5f6b9f;
  --puk-primitive-invert-border-strong: #8f98d2;
  --puk-primitive-invert-text-body: #e9f4ff;
  --puk-primitive-invert-text-muted: #c2c2ff;
  --puk-primitive-invert-error-red: #ffb4ab;
  --puk-primitive-invert-consent-surface: #2f2600;
  --puk-primitive-invert-consent-border: #c7a900;
  --puk-primitive-invert-consent-text: #fff2a8;
  --puk-primitive-invert-upload-blue-surface: #0b1f4d;
  --puk-primitive-invert-upload-blue-border: #5f6b9f;

  /**
   * Neutral body grey - sampled from `--body_typography-color` on the live
   * site (https://psychiatry-uk.com/). Used for non-heading text so the
   * prototype reads as continuous with the live site. AAA on all surfaces
   * in `docs/contrast-matrix.md`.
   */
  --puk-primitive-text-body: #242c2d;

  /* Spacing scale (4px base) */
  --puk-primitive-space-1: 0.25rem;
  --puk-primitive-space-2: 0.5rem;
  --puk-primitive-space-3: 0.75rem;
  --puk-primitive-space-4: 1rem;
  --puk-primitive-space-5: 1.25rem;
  --puk-primitive-space-6: 1.5rem;
  --puk-primitive-space-8: 2rem;
  --puk-primitive-space-10: 2.5rem;
  --puk-primitive-space-12: 3rem;
  --puk-primitive-space-16: 4rem;

  /* Radius */
  --puk-primitive-radius-sm: 0.25rem;
  --puk-primitive-radius-md: 0.5rem;
  --puk-primitive-radius-lg: 1rem;
  /** Promo / intro hero panels (larger corner radius than default cards). */
  --puk-primitive-radius-xl: 1.5rem;
  --puk-primitive-radius-pill: 9999px;

  /* Elevation */
  --puk-primitive-shadow-card: 0 10px 15px -3px rgb(5 20 74 / 0.08),
    0 4px 6px -4px rgb(5 20 74 / 0.06);

  /**
   * Layout primitives — values not on the 4px spacing scale (hub / tooling specs).
   * Prefer semantic `--puk-space-*` or `--puk-component-*` aliases at higher tiers.
   */
  --puk-primitive-layout-prototype-controller-link-gap: 2.625rem; /* 42px hub spec */

  /* Motion */
  --puk-primitive-duration-fast: 150ms;
  --puk-primitive-duration-medium: 300ms;
  --puk-primitive-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* Type weight (Montserrat supports the full 100-900 scale) */
  --puk-primitive-font-weight-regular: 400;
  --puk-primitive-font-weight-medium: 500;
  --puk-primitive-font-weight-semibold: 600;
  --puk-primitive-font-weight-bold: 700;

  /**
   * Monospace / code-style inputs (NHS numbers, insurer auth codes): em-based
   * letter-spacing so it scales with font size. Deliberately well above
   * Tailwind `tracking-wider` (0.05em) so digit separation reads on screen —
   * small deltas (e.g. 0.0625em) are effectively invisible at body size.
   */
  --puk-primitive-letter-spacing-mono-input: 0.12em;
}
