/* ==========================================================================
   KUI design tokens  (RE-KYC revamp)
   Add code kingshuk 22/10/2026
   --------------------------------------------------------------------------
   Same token names, shapes, type and component scale as the E-KYC kui layer, with the "Infinity Sky" colour identity:
   the blue-to-turquoise sky hero, teal buttons/links and navy headings of https://www.eurekasec.com/infinitybyeureka/.
   Colour sources:  [V] verified on the site (style.css / infinity11.css :root tokens)   [D] derived (contrast checked, WCAG AA).
   Light by default; dark mode through data-kui-theme="dark". Semantic colours (success / warning / danger / info) are identical to E-KYC.
   ========================================================================== */
:root {
    /* Button scale (same as E-KYC) */
    --kui-btn-radius: 8px;
    --kui-btn-h: 44px;
    --kui-btn-h-sm: 36px;
    --kui-btn-h-lg: 48px;

    /* Brand: Infinity teal */
    --kui-brand-500: #1993b3;    /* [V] --secondary-700: focus, borders, glows */
    --kui-brand-600: #147994;    /* [V] --secondary-800 (the site's main button/link colour): links, text, fills (5.01:1 on white) */
    --kui-brand-700: #105f75;    /* [V] --secondary-900: hover, deep (7.2:1 on white) */
    --kui-brand-100: #d3f1f9;    /* [V] --secondary-100 */
    --kui-brand-50: #e5faff;     /* [V] --card-bg */
    --kui-on-brand: #ffffff;
    --kui-btn: #147994;          /* primary button fill, white text 5.01:1 */
    --kui-btn-hover: #105f75;

    /* Accent: sky cyan (decorative highlights, active indicators; never used for alerts) */
    --kui-accent-500: #50c7e7;   /* [V] --secondary-400 */
    --kui-accent-600: #31bde3;   /* [V] --secondary-500 */
    --kui-accent-text: #105f75;  /* accent as text on light */
    --kui-accent-bg: #e5faff;
    --kui-heading: #083259;      /* [V] --primary-900: navy headings, 13:1 on white */

    /* Hero: the site's sky gradient. Copy sits on a navy veil (kui-landing.css) so small white text keeps AA contrast. */
    --kui-hero-bg: linear-gradient(165deg, #1b6ea4 0%, #1993b3 55%, #31bde3 100%);   /* Infinity sky: deep blue to turquoise, same in both themes */
    --kui-hero-text: #ffffff;
    --kui-hero-muted: #f2fbff;
    --kui-hero-faint: #ffffff;
    --kui-hero-card: rgba(8, 50, 89, .35);
    --kui-hero-line: rgba(255, 255, 255, .25);
    --kui-hero-chip: rgba(255, 255, 255, .2);
    --kui-hero-chip-fg: #ffffff;
    --kui-hero-neon: #a8e8fa;

    /* Semantic (identical to E-KYC) */
    --kui-success: #12a150;
    --kui-success-bg: #e8f7ef;
    --kui-success-text: #0b7a3b;
    --kui-warning: #b7791f;
    --kui-warning-text: #8a5a00;
    --kui-warning-line: #e8c46a;
    --kui-warning-bg: #fff6e0;
    --kui-danger: #FF6262; /* Add code kingshuk 05/11/2026 : red standardised */
    --kui-danger-text: #FF6262; /* Add code kingshuk 05/11/2026 */
    --kui-danger-bg: rgba(255, 98, 98, .12); /* Add code kingshuk 05/11/2026 */
    --kui-info: #0b73c9;
    --kui-info-bg: #e7f3fd;

    /* Surfaces and text: the site's own neutrals */
    --kui-bg: #f8f9fd;           /* [V] --gray-25 */
    --kui-surface: #ffffff;
    --kui-surface-2: #f5f6f8;    /* [V] --gray-50 */
    --kui-border: #e5e7eb;       /* [V] --gray-200 */
    --kui-border-strong: #cbd2db;/* [D] */
    --kui-text: #1f2937;         /* [V] --gray-900 */
    --kui-text-muted: #6b7280;   /* [V] --gray-500 */
    --kui-text-faint: #9aa3af;   /* [V] --gray-400 */
    --kui-text-subtle: #3f4756;  /* [V] --gray-700: small uppercase labels, table headers */
    --kui-focus: rgba(20, 121, 148, .30);

    /* Shape / elevation (same as E-KYC, navy-tinted shadow) */
    --kui-radius-sm: 6px;
    --kui-radius: 8px;
    --kui-radius-lg: 12px;
    --kui-shadow-1: 0 1px 2px rgba(5, 31, 56, .06), 0 1px 3px rgba(5, 31, 56, .08);
    --kui-shadow-2: 0 4px 12px rgba(5, 31, 56, .07);
    --kui-shadow-3: 0 12px 32px rgba(5, 31, 56, .14);

    /* Type: Roboto (text) + Montserrat (headings); fonts loaded by Content/eureka-typography.css */
    --kui-font: "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --kui-font-heading: "Montserrat", "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --kui-control-h: 42px;
    --kui-header-h: 60px;
    --kui-rail-w: 264px;
    color-scheme: light;
}

/* Add code kingshuk 22/10/2026 : dark mode. Applied only through <html data-kui-theme="dark"> (set by kui-theme.js), so pages that do not load the script stay light. */
:root[data-kui-theme="dark"] {
    color-scheme: dark;
    --kui-hero-bg: linear-gradient(165deg, #1b6ea4 0%, #1993b3 55%, #31bde3 100%);   /* Infinity sky: deep blue to turquoise, same in both themes */
    --kui-hero-text: #ffffff;
    --kui-hero-muted: #f2fbff;
    --kui-hero-faint: #ffffff;
    --kui-hero-card: rgba(8, 50, 89, .35);
    --kui-hero-line: rgba(255, 255, 255, .25);
    --kui-hero-chip: rgba(255, 255, 255, .2);
    --kui-hero-chip-fg: #ffffff;
    --kui-hero-neon: #a8e8fa;
    --kui-brand-500: #1993b3;
    --kui-brand-600: #50c7e7;    /* [V] links/text on dark (7.4:1 on #0a2a47) */
    --kui-brand-700: #8bdcf2;    /* [D] */
    --kui-brand-100: #0e3a62;
    --kui-brand-50: #0a2a47;
    --kui-btn: #147994;          /* white text 5.01:1 */
    --kui-btn-hover: #105f75;
    --kui-accent-text: #50c7e7;
    --kui-accent-bg: #0e3a62;
    --kui-heading: #e8f0f8;

    --kui-success-bg: #0f2a1d;
    --kui-success-text: #4ade80;
    --kui-warning-bg: #2c2410;
    --kui-warning-text: #f5c451;
    --kui-warning-line: #6b5420;
    --kui-danger-bg: rgba(255, 98, 98, .12); /* Add code kingshuk 05/11/2026 */
    --kui-danger-text: #FF6262; /* Add code kingshuk 05/11/2026 */
    --kui-info-bg: #0f2538;

    --kui-bg: #051f38;           /* [V] --primary-1000 */
    --kui-surface: #0a2a47;      /* [D] */
    --kui-surface-2: #0e3456;    /* [D] */
    --kui-border: #17436a;
    --kui-border-strong: #245b8a;
    --kui-text: #e8f0f8;
    --kui-text-muted: #a9bdd1;
    --kui-text-faint: #7b93ab;
    --kui-text-subtle: #a9bdd1;
    --kui-focus: rgba(80, 199, 231, .40);
    --kui-shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --kui-shadow-2: 0 6px 16px rgba(0, 0, 0, .4);
    --kui-shadow-3: 0 18px 40px rgba(0, 0, 0, .5);
}
