﻿/* kc-v2 v1.5.0 */
/*
 * Design tokens for the kc-v2 component library.
 * Source: Kenton County Updates Figma (Pmxto4JUkHUO2KYKS7FLQA), Color + Typography and
 * Spacing & Radius foundation sections.
 *
 * This file only declares custom properties. It has no selectors beyond :root and
 * therefore no self-containment obligations of its own -- kc-v2.css is what must
 * declare every property it uses rather than relying on inheritance from these tokens
 * cascading through a host page.
 */

:root {
  --kc-v2-version: "1.5.7";

  /* Primary */
  --kc-v2-blue: #00509D;
  --kc-v2-blue-dark: #003F7D;
  --kc-v2-green: #2BB673;

  /* Secondary palette */
  --kc-v2-indigo: #293B97;
  --kc-v2-blue-2: #005DA6;
  --kc-v2-blue-3: #548CC9;
  --kc-v2-teal: #087482;
  --kc-v2-teal-dark: #00837C;
  --kc-v2-green-2: #289A48;
  --kc-v2-lime: #95C93D;
  --kc-v2-lime-light: #A0D083;

  /* Semantic
     Each alert has THREE distinct shades, not two: a background tint, a
     darker title-text color, and a separate mid-tone reserved for the icon
     -- exactly as Figma draws it. Info and error's icon color already equal
     an existing token (--kc-v2-blue, --kc-v2-error itself) so no separate
     "-icon" token exists for those two. */
  --kc-v2-success: #289A48;
  --kc-v2-success-icon: #1E8049;
  --kc-v2-success-text: #155E35;
  --kc-v2-success-text-2: #2F6B47;
  --kc-v2-success-bg: #E7F6EE;
  --kc-v2-success-border: #C4E6D2;

  --kc-v2-warning: #E0A100;
  --kc-v2-warning-icon: #A06F00;
  --kc-v2-warning-text: #7A5500;
  --kc-v2-warning-text-2: #8A6410;
  --kc-v2-warning-bg: #FFF6E5;
  --kc-v2-warning-border: #F0DFB0;

  --kc-v2-error: #C0392B;
  --kc-v2-error-text: #A5271A;
  --kc-v2-error-bg: #FDF3F2;
  --kc-v2-error-border: #E6B8B2;

  --kc-v2-info: #005DA6;
  --kc-v2-info-text: #0D3B6E;
  --kc-v2-info-text-2: #3A5878;
  --kc-v2-info-bg: #EAF1F9;
  --kc-v2-info-border: #CFE0F2;

  /* Focus ring -- deliberately lime, not blue, per Figma states(primary) spec */
  --kc-v2-focus-ring-color: #95C93D;
  --kc-v2-focus-ring-width: 3px;
  --kc-v2-focus-ring-offset: 2px;

  /* Disabled state -- shared across buttons and, where applicable, form controls */
  --kc-v2-disabled-bg: #A9BCCD;
  --kc-v2-disabled-text: #EEF2F6;

  /* Neutrals, darkest to lightest */
  --kc-v2-ink-900: #0D2438;
  --kc-v2-ink-800: #16202B;
  --kc-v2-ink-600: #334656;
  --kc-v2-ink-500: #5B6B7A;
  --kc-v2-ink-400: #8A99A8; /* Only 2.92:1 on white -- fails WCAG's 3:1 non-text
                                minimum, let alone 4.5:1 for text. Verified during
                                the Phase 6 audit. Reserve this token for contexts
                                exempt from contrast requirements (disabled/
                                aria-disabled UI, purely decorative separators) --
                                use --kc-v2-ink-500 (5.48:1) for any real
                                informational text or icon on a white/near-white
                                background instead. */
  --kc-v2-ink-300: #CDD8E2;
  --kc-v2-ink-200: #E3E9EF;
  --kc-v2-ink-100: #EEF2F6;
  --kc-v2-ink-50: #F6F8FA;
  --kc-v2-white: #FFFFFF;
  --kc-v2-mint: #7FD3A6;
  --kc-v2-blue-tint: #E6EEF7; /* reused by the blue category tag and, in Phase 4,
                                  the card icon tile -- same hex in both places
                                  in Figma, so it earns a token rather than being
                                  duplicated */

  /* Type -- Montserrat is the approved digital substitute for the brand face, Gotham */
  --kc-v2-font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --kc-v2-display-size: 52px;
  --kc-v2-display-weight: 800;
  --kc-v2-display-line-height: 52px;
  --kc-v2-display-letter-spacing: -1.5px;

  --kc-v2-h1-size: 38px;
  --kc-v2-h1-weight: 800;
  --kc-v2-h1-line-height: 40px;
  --kc-v2-h1-letter-spacing: -0.8px;

  --kc-v2-h2-size: 28px;
  --kc-v2-h2-weight: 700;
  --kc-v2-h2-line-height: 34px;
  --kc-v2-h2-letter-spacing: -0.4px;

  --kc-v2-h3-size: 21px;
  --kc-v2-h3-weight: 600;
  --kc-v2-h3-line-height: 26px;
  --kc-v2-h3-letter-spacing: 0;

  --kc-v2-body-size: 16px;
  --kc-v2-body-weight: 400;
  --kc-v2-body-line-height: 1.6;
  --kc-v2-body-letter-spacing: 0;

  --kc-v2-small-size: 13px;
  --kc-v2-small-weight: 400;
  --kc-v2-small-line-height: 16px;
  --kc-v2-small-letter-spacing: 0;

  --kc-v2-overline-size: 11.5px;
  --kc-v2-overline-weight: 700;
  --kc-v2-overline-line-height: 14px;
  --kc-v2-overline-letter-spacing: 2px;

  /* Spacing scale (4-point) */
  --kc-v2-space-1: 4px;
  --kc-v2-space-2: 8px;
  --kc-v2-space-3: 16px;
  --kc-v2-space-4: 24px;
  --kc-v2-space-5: 40px;
  --kc-v2-space-6: 64px;

  /* Corner radius scale */
  --kc-v2-radius-sm: 8px;
  --kc-v2-radius-md: 12px;
  --kc-v2-radius-lg: 16px;
  --kc-v2-radius-xl: 18px; /* Off the 8/12/16 progression on purpose: Figma's modal
                                dialog (frame "return workflow", 54:403) is exactly 18px,
                                and rounding it to lg (16px) is visible at a 720px-wide
                                surface. Same reasoning as --kc-v2-counter--gov's 6px --
                                match the mockup rather than force the nearest token. */
  --kc-v2-radius-pill: 100px;

  /* z-index scale -- reserved now so future components never pick an ad-hoc number.
     Admin's ambient stack tops out well above these (Kendo widgets run 10000+,
     Bootstrap modals 1040/1050) -- kc-v2 stays below all of it by design. */
  --kc-v2-z-dropdown: 500;
  --kc-v2-z-sticky: 600;
  --kc-v2-z-overlay: 700;
  --kc-v2-z-modal: 800;
  --kc-v2-z-toast: 900;
  --kc-v2-z-tooltip: 950;
}
