/* CTR UI Foundations — corporate tokens (PULSO-UX-CTR-01).
 *
 * Source of truth: the approved Keycloak CTR login theme, corporate-ti
 * themes/ctr/login/resources/css/ctr.css at cf53f9b (MR !19, merged; NOT
 * installed on any Keycloak instance as of 2026-11-09). Values are copied, not
 * the rules: nothing here depends on PatternFly or on Keycloak's markup, and
 * PULSO does not load anything from Keycloak.
 *
 * Only corporate identity lives here (--ctr-*). Product decisions — status
 * vocabulary, density, Edge states — are --pulso-* tokens in styles.css.
 * Light only: the theme declares darkMode=false ("la identidad es sobre fondo
 * blanco"). assets/access.css repeats the subset it needs (it is public and
 * must not load this file through the gate); tests/ctr-tokens.dom.test.js
 * keeps both in sync and checks the contrast ratios noted below.
 */
:root {
  /* Brand: flat colours taken from the official logo */
  --ctr-navy: #14194e;              /* logo blue; headings, hover of primary actions */
  --ctr-blue: #1f2c86;              /* primary actions and links (11:1 on white) */
  --ctr-red: #cf0000;               /* logo red (5.7:1 on white): brand marks only, never a state */
  --ctr-red-strong: #a30000;        /* error text in the theme's alerts */

  /* Text, surfaces, borders */
  --ctr-text: #1b1d2a;
  --ctr-muted: #4d5266;             /* 7.6:1 on white */
  --ctr-surface: #ffffff;
  --ctr-surface-readonly: #f3f4f8;
  --ctr-border-subtle: #e3e6ef;     /* card outline (decorative) */
  --ctr-border: #c9cddb;
  --ctr-border-strong: #8a90a8;     /* form controls: 3.3:1 on white (WCAG 1.4.11) */

  /* Focus: 3px ring in corporate blue (WCAG 2.4.7 / 2.4.11) */
  --ctr-focus: #1f2c86;
  --ctr-focus-ring: 0 0 0 3px rgba(31, 44, 134, .22);

  /* Shape and depth */
  --ctr-radius-card: 16px;
  --ctr-radius-alert: 12px;
  --ctr-radius-control: 10px;
  --ctr-shadow: 0 1px 2px rgba(20, 25, 78, .06), 0 12px 32px rgba(20, 25, 78, .10);
  --ctr-shadow-sm: 0 1px 2px rgba(20, 25, 78, .06), 0 4px 12px rgba(20, 25, 78, .06);

  /* Brand stripe: navy 62 % / red 38 %, 5px, on top of a branded card */
  --ctr-brand-stripe: linear-gradient(90deg, #14194e 0 62%, #cf0000 62% 100%);
  --ctr-brand-stripe-height: 5px;

  /* Controls: 44px touch target (WCAG 2.5.8); 1rem text so iOS does not zoom */
  --ctr-control-height: 44px;
  --ctr-control-font-size: 1rem;

  /* Spacing scale used by the theme (4-based) */
  --ctr-space-1: 4px;
  --ctr-space-2: 8px;
  --ctr-space-3: 12px;
  --ctr-space-4: 16px;
  --ctr-space-5: 24px;
  --ctr-space-6: 32px;
}
