/*
 * Qaz.Vision consumer bridge for AV DS.
 *
 * Stable baseline: @sgeo/ui-kit 3.7.2 token source
 * SHA-256: df55ab77b8c9788db7741856d0d4b7538b0fd9ccd3c80b55bc5d054e680142f2
 * Forward contract: @av-ds/tokens 4.0.0-rc.1
 * SHA-256: c9d47f8f0e6c70fca4fd8246acdce74783d162c76226ba1f584771831aaea545
 *
 * AV DS 4 is an RC, not the production package. Generic AV DS 3 tokens are
 * namespaced here because the legacy Qaz.Vision stylesheet already uses names
 * such as --accent and --border for resolved colors.
 */

:root {
    /* AV DS 3.7.2 stable reference values. */
    --avds3-background: 216 20% 97%;
    --avds3-foreground: 220 25% 10%;
    --avds3-card: 216 18% 98%;
    --avds3-border: 216 12% 88%;
    --avds3-primary: 210 70% 42%;
    --avds3-primary-foreground: 0 0% 99%;
    --avds3-muted: 216 12% 92%;
    --avds3-muted-foreground: 216 10% 45%;

    /* AV DS 4 RC1 primitives used by the product-facing semantic layer. */
    --av-color-blue-500: #3b82f6;
    --av-color-blue-600: #2563eb;
    --av-color-blue-700: #1d4ed8;
    --av-color-slate-50: #f8fafc;
    --av-color-slate-100: #f1f5f9;
    --av-color-slate-200: #e2e8f0;
    --av-color-slate-300: #cbd5e1;
    --av-color-slate-500: #64748b;
    --av-color-slate-700: #334155;
    --av-color-slate-900: #0f172a;
    --av-color-white: #ffffff;
    --av-spacing-0: 0;
    --av-spacing-1: 4px;
    --av-spacing-2: 8px;
    --av-spacing-3: 12px;
    --av-spacing-4: 16px;
    --av-spacing-5: 20px;
    --av-spacing-6: 24px;
    --av-spacing-8: 32px;
    --av-spacing-10: 40px;
    --av-spacing-12: 48px;
    --av-radius-sm: 4px;
    --av-radius-md: 8px;
    --av-radius-lg: 12px;
    --av-radius-xl: 16px;
    --av-radius-full: 999px;
    --av-duration-instant: 80ms;
    --av-duration-fast: 120ms;
    --av-duration-base: 180ms;
    --av-duration-slow: 280ms;
    --av-easing-standard: 0.2, 0, 0, 1;
    --av-easing-emphasized: 0.2, 0, 0.1, 1;
    --av-z-dropdown: 1000;
    --av-z-modal: 1300;
    --av-z-tooltip: 1400;
    --av-z-toast: 1500;
    --av-opacity-disabled: 0.48;
    --av-opacity-scrim: 0.64;
    --av-shadow-sm: 0 1px 2px rgb(15 23 42 / 0.12);
    --av-shadow-lg: 0 16px 32px -12px rgb(15 23 42 / 0.18);

    /* AV DS 4 RC1 light defaults. */
    --av-color-background: #f8fafc;
    --av-color-foreground: #020617;
    --av-color-surface: #ffffff;
    --av-color-muted: #f1f5f9;
    --av-color-muted-foreground: #334155;
    --av-color-border: #e2e8f0;
    --av-color-primary: #2563eb;
    --av-color-primary-foreground: #ffffff;
}

/* Product-owned theme: AV DS supplies the contract, Qaz.Vision keeps identity. */
body[data-av-product="qaz-vision"][data-av-theme="institutional"] {
    --av-color-background: #f4f7fa;
    --av-color-foreground: #17283a;
    --av-color-surface: #ffffff;
    --av-color-surface-alt: #eef3f7;
    --av-color-surface-emphasis: #fafcfd;
    --av-color-muted: #eef3f7;
    --av-color-muted-foreground: #435a71;
    --av-color-text-secondary: #435a71;
    --av-color-text-muted: #708196;
    --av-color-text-faint: #9aa8b7;
    --av-color-border: #cdd9e6;
    --av-color-border-subtle: #e2eaf2;
    --av-color-primary: #255e9f;
    --av-color-primary-hover: #1b4b82;
    --av-color-primary-subtle: #e8f1fa;
    --av-color-primary-muted: #c7d8ec;
    --av-color-primary-strong: #123456;
    --av-color-primary-foreground: #ffffff;
    --av-color-gold: #a77b32;
    --av-color-gold-subtle: #f3e8d1;
    --av-color-success: #1f7a63;
    --av-color-warning: #9a6a1f;
    --av-color-danger: #a84646;

    /* The registry intentionally uses the squared institutional variant. */
    --av-radius-sm: 0;
    --av-radius-md: 0;
    --av-radius-lg: 0;
    --av-shadow-sm: 0 1px 2px rgb(23 40 58 / 0.04);
    --av-shadow-md: 0 6px 18px rgb(23 40 58 / 0.07);
    --av-shadow-lg: 0 10px 24px rgb(23 40 58 / 0.09);
}
