/* CRMAA — shared portal design tokens
 *
 * One source for the token set that 12 portals were each carrying their own
 * copy of. Identical copies in 12 files meant every change had to be made 12
 * times, and the contrast fix in Phase 0.13 had to touch all of them.
 *
 * This is deliberately NOT the same palette as the marketing site
 * (styles.css). The portals run cooler and flatter — white surfaces, a bluer
 * ink, slightly larger radii — because they are working tools rather than
 * marketing pages. That difference is intentional and documented here so it
 * does not read as drift:
 *
 *            marketing site        portals
 *   surface  #F4F3EF (warm)        #FFFFFF
 *   text     #1A1A2E               #1A2332 (bluer)
 *   muted    #374151               #5B6B84
 *   border   #E5E7EB               #E3E9F2
 *   radius   12px                  16px
 *
 * Brand colours (navy, gold) and type are shared with the site and must stay
 * in step with styles.css. --gold is decorative only: it fails WCAG AA as text
 * at 2.75:1, so anything that renders as text uses --gold-text. See
 * AUDIT-RESPONSE.md §6.
 */
:root{
  /* Brand — keep in step with styles.css */
  --navy:#0B3D91; --navy-deep:#071F52; --navy-mid:#0E3580;
  --gold:#C8923A;                        /* decorative only — never as text */
  --gold-text:#8A6024;                   /* AA on LIGHT surfaces only; dark
  --teal-text:#0C7D6C;          /* AA on LIGHT surfaces (5.04 on white);
                                  dark panels override it below, because
                                  a darker teal measures 1.99 on navy. */
                                          surfaces take --gold-light */
  --gold-light:#E8B96A; --gold-pale:#F9F0E3;

  /* Portal surfaces */
  --white:#FFFFFF; --bg:#F6F8FC; --surface:#FFFFFF;
  --text:#1A2332; --text-muted:#5B6B84; --border:#E3E9F2;

  /* Semantic */
  --green:#16A34A; --amber:#D97706; --red:#DC2626;

  /* Type */
  --font-sans:'DM Sans',system-ui,sans-serif;
  --font-display:'Manrope',system-ui,sans-serif;

  /* Shape and rhythm */
  --radius:16px; --radius-sm:10px;
  --shadow:0 1px 3px rgba(7,31,82,.07),0 4px 14px rgba(7,31,82,.05);
  --shadow-lg:0 8px 32px rgba(7,31,82,.13);
  --max-width:1240px; --gutter:clamp(1.1rem,4vw,3rem);
}

/* Inline UI icons (see /icons/crmaa-ui.svg).
   Sized in em so an icon always matches the text it sits beside, and aligned on
   the text baseline rather than the line box. currentColor means an icon
   inherits its context exactly as the emoji it replaced did. */
.cicon{width:1em;height:1em;flex:0 0 auto;vertical-align:-0.125em;
  fill:none;stroke:currentColor;pointer-events:none;}
.cicon-good{color:var(--green,#16A34A);}
.cicon-bad{color:var(--red,#DC2626);}
.cicon-warn{color:var(--amber,#D97706);}
