/* ============================================================
   CertREV, Color tokens
   ------------------------------------------------------------
   Base palette + semantic aliases. Resolved against the editorial
   expert-email design system (the brand's north star), the portal
   globals.css, and BRAND.md / STYLE-GUIDE.md.

   Persona color logic (loose, not rigid):
     navy  → the expert / authority voice (also primary text)
     coral → the brand / client voice + primary CTAs
     lime  → success, certification, celebratory accents (sparingly)
   ============================================================ */

:root {
	/* ---- Brand primaries ---- */
	--navy: #0a1b3f;          /* primary text, authority, dark surfaces */
	--coral: #e8603c;         /* canonical brand accent + CTAs (editorial) */
	--coral-hover: #d14e2a;   /* hover / active for coral */
	--coral-deep: #bb4726;    /* deeper coral, use for coral TEXT on light (AA) */
	--lime: #d4e157;          /* certification, success fill, celebratory */
	--lime-dark: #a8b43e;     /* lime as a darker line/text */
	--lime-text: #4d5a1a;     /* lime as readable text (AA on white & lime-light) */
	--lime-light: #e8f5a0;    /* success backgrounds */
	--beige: #e8e4db;         /* structural borders, dividers, muted bands */

	/* ---- Navy alpha ladder (all neutrals derive from navy) ---- */
	--navy-90: rgba(10, 27, 63, 0.90);
	--navy-75: rgba(10, 27, 63, 0.72);  /* body copy on white (navySoft) */
	--navy-55: rgba(10, 27, 63, 0.55);  /* muted labels (navyMuted) */
	--navy-35: rgba(10, 27, 63, 0.35);  /* subtle / placeholder (navySubtle) */
	--navy-10: rgba(10, 27, 63, 0.10);  /* hairline borders (navyFaint) */
	--navy-06: rgba(10, 27, 63, 0.06);  /* faintest rule (navyHair) */
	--navy-03: rgba(10, 27, 63, 0.03);  /* navy tint wash */

	--coral-soft: rgba(232, 96, 60, 0.40); /* underline color for inline links */
	--coral-faint: rgba(232, 96, 60, 0.08);

	/* ---- Surfaces ---- */
	--bg: #f4f4f2;            /* outer page background (outside the card) */
	--surface: #ffffff;       /* cards, elevated surfaces */
	--surface-muted: #f8f7f5; /* page background, muted bands */
	--paper: #fafaf8;         /* warm paper surface */
	--stone: #f1f1f2;         /* "manila folder" fill, cool stone */
	--beige-light: #f4f2ec;   /* warm tinted band */

	/* ---- Semantic text (WCAG-safe on white / beige / stone) ---- */
	--text: var(--navy);
	--text-muted: #47546f;    /* secondary copy, AAA on white */
	--text-subtle: #525c75;   /* tertiary copy, AAA on white */
	--text-placeholder: #788295;
	--text-disabled: #9198a9;
	--text-inverse: #ffffff;

	/* ---- Actions ---- */
	--action: var(--coral);
	--action-hover: var(--coral-hover);

	/* ---- Status (fill + AA foreground companions) ---- */
	--success: var(--lime-dark);
	--success-bg: var(--lime-light);
	--success-fg: var(--lime-text);

	--danger: #dc2626;
	--danger-hover: #b91c1c;
	--danger-light: #fef2f2;
	--danger-fg: #991b1b;

	--warning: #d97706;
	--warning-light: #fffbeb;
	--warning-fg: #92400e;

	--info: #0d9488;
	--info-light: #f0fdfa;
	--info-fg: #115e59;

	--accent: #7c3aed;
	--accent-light: #f5f3ff;
	--accent-fg: #5b21b6;

	/* ---- Review tier ladder (used in scan/quality reports) ---- */
	--tier-1: var(--coral);
	--tier-2: var(--warning);
	--tier-3: var(--info);
	--tier-4: var(--accent);
}
