/* Global design tokens. Keep small and reusable.
 *
 * Advancement Stage 10A. Single documented source for the color/
 * radius/shadow values already used informally across static/css/ —
 * consolidates rather than replaces (most of these already existed
 * before this stage, just undocumented and, in one place
 * — pages/dashboards/dashboard.css — hardcoded instead of referencing
 * them). Tailwind utility classes in templates remain the primary
 * styling system; these tokens exist for the small amount of custom
 * CSS this project needs (component partials, page-specific overrides).
 */

:root {
    color-scheme: light;

    /* Brand — Modernization Phase 1 (2026-09). Primary deepened toward
       the boss-approved forest-green mockups; primary-dark is
       unchanged (already the correct hover anchor). Both hex values
       are also the emerald-700/emerald-800 steps of the @theme ramp
       in theme/static_src/src/styles.css — keep both in sync if either
       ever changes. Contrast vs white: primary 5.40:1 (AA), dark
       7.69:1 (AAA). */
    --b4-color-primary: #0f7a43;
    --b4-color-primary-dark: #065f46;
    --b4-color-primary-rgb: 15, 122, 67;

    /* Status (drives templates/components/badge.html's variants —
       "success" intentionally reuses the brand color: every admin
       badge already using emerald for a positive/active state, per
       Stage 10A's own audit, not a new convention introduced here).
       Modernization Phase 1: kept in sync with the new primary/emerald-
       100 ramp above — this must never drift into a second green. */
    --b4-color-success: #0f7a43;
    --b4-color-success-bg: #d9f7e8;
    --b4-color-warning: #facc15;
    --b4-color-warning-bg: #fef9c3;
    --b4-color-danger: #dc2626;
    --b4-color-danger-bg: #fee2e2;
    --b4-color-neutral: #334155;
    --b4-color-neutral-bg: #f1f5f9;

    /* Surfaces and text */
    --b4-color-surface: #ffffff;
    --b4-color-page: #f8fafc;
    --b4-color-text: #0f172a;
    --b4-color-border: #e2e8f0;
    --b4-color-text-muted: #475569;
    --b4-color-text-subtle: #64748b; /* slate-500: lightest text passing AA (4.76:1) on white */
    --b4-color-text-faint: #94a3b8;
    --b4-color-surface-rgb: 255 255 255;
    --b4-color-surface-muted: #f1f5f9;
    --b4-color-border-strong: #cbd5e1;

    --b4-color-tint: #e8f5ee;
    --b4-color-tint-strong: #dcfce7;
    --b4-color-tint-border: #b7dfc6;
    --b4-color-primary-text: #065f46;
    --b4-color-warning-tint: #fef3c7;
    --b4-color-warning-border: #fde68a;
    --b4-color-warning-text: #92400e;
    --b4-color-danger-tint: #fef2f2;
    --b4-color-danger-border: #fecaca;
    --b4-color-danger-text: #b91c1c;
    --b4-color-info-tint: #e0f2fe;
    --b4-color-info-border: #bae6fd;
    --b4-color-info-text: #075985;

    /* Shape */
    --b4-radius-card: 1rem;
    --b4-radius-pill: 9999px;

    /* Elevation — the exact shadow value already shared identically by
       .dashboard-card and every article/table-shell card in the app
       (Tailwind's shadow-sm). */
    --b4-shadow-card: 0 1px 2px 0 rgb(0 0 0 / 0.05);

    /* Modernization Phase 1: defined for later phases to opt specific
       hero/KPI surfaces into (not applied anywhere yet). */
    --b4-shadow-raised: 0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);

    /* Type scale (Modernization Phase 1 — documented only, not yet
       applied to any template). Matches the approved mockups'
       hierarchy: Display for hero headlines, Title for section/card
       headings, Body for running text, Caption for muted metadata. */
    --b4-font-size-display: clamp(1.875rem, 1.6rem + 1.2vw, 2.25rem); /* 30-36px, bold, tracking-tight */
    --b4-font-size-title: 1.5rem; /* 24px, bold */
    --b4-font-size-body: 1rem; /* 14-16px, leading-6 depending on density */
    --b4-font-size-caption: 0.75rem; /* 12px, muted */

    /* Motion */
    --b4-duration-fast: 150ms;
    --b4-duration-base: 200ms;
    --b4-ease-standard: ease;
}