/* ============================================================
   MassHousing Brand Tokens (_variables.css)
   Single source of truth for all design decisions.

   LAYER ORDER (App.razor):
     1. Telerik Bootstrap theme (--kendo-* properties)
     2. _variables.css  ← aliases & brand tokens (this file)
     3. _telerik-overrides.css
     4. app.css (base reset + global utilities)
     5. MIF.Web.styles.css (Blazor scoped bundles)

   Rule: components reference --mh-* tokens only.
   Never reference --kendo-* or raw values directly in
   component CSS — alias them here first.
   ============================================================ */

:root {
    /* ---- Brand colors ---- */
    --mh-primary: #B1272F;
    --mh-primary-dark: #8e1f26;
    --mh-primary-darker: #6C0D0F;
    --mh-primary-darkest: #5a0a0c;
    --mh-secondary: #707070;
    --mh-accent: #003366;
    --mh-text-on-primary: #fff;
    --mh-text-on-secondary: #fff;
    --mh-link-color: #006bb7;
    --mh-link-color-dark: #00008B;

    /* ---- Surface & Border colors ---- */
    --mh-surface-light: #f8f9fa;
    --mh-border-light: #dee2e6;
    --mh-border-color: var(--kendo-component-border, #dee2e6);
    --mh-surface-alt: var(--kendo-color-surface-alt, #ffffff);
    --mh-color-on-surface: var(--kendo-color-on-app-surface, #212529);
    --mh-color-subtle-text: var(--kendo-color-subtle-text, #6c757d);
    --mh-color-base-subtle: var(--kendo-color-base-subtle, #f8f9fa);

    /* ---- Semantic status colors — aliases of Kendo tokens ---- */
    --mh-color-success: var(--kendo-color-success, #198754);
    --mh-color-warning: var(--kendo-color-warning, #cc8a00);
    --mh-color-error: var(--kendo-color-error, #dc3545);
    --mh-color-info: var(--kendo-color-info, #0d6efd);

    /* ---- Typography — aliases of Kendo tokens ---- */
    --mh-font-size-base: var(--kendo-font-size, 1rem);
    --mh-font-size-sm: 0.875rem;
    --mh-font-size-xs: 0.75rem;
    --mh-font-weight-normal: var(--kendo-font-weight-normal, 400);
    --mh-font-weight-medium: 500;
    --mh-font-weight-bold: var(--kendo-font-weight-bold, 700);

    /* ---- Border radius — aliases of Kendo tokens ---- */
    --mh-radius-xs: var(--kendo-border-radius-xs, 0.25rem);
    --mh-radius-sm: var(--kendo-border-radius-sm, 0.25rem);
    --mh-radius-md: var(--kendo-border-radius-md, 0.375rem);

    /* ---- Compact UI density tokens ---- */
    --mh-ui-font-size: 12px;
    --mh-ui-line-height: 1.2;

    /* ---- Spacing tokens ---- */
    --mh-page-padding: 1.5rem;
    --mh-section-spacing: 1rem;
    --mh-field-spacing: 0.5rem;

    /* ---- Input width tokens (used by _utilities.css .mh-input-*) ---- */
    --mh-input-width-xs: 6.25rem;
    --mh-input-width-sm: 10rem;
    --mh-input-width-md: 16rem;
    --mh-input-width-lg: 25rem;
    --mh-input-width-xl: 36rem;

    /* ---- Account History grid tokens ---- */
    --mh-account-history-comments-col-width: 550px;

    /* ---- Menu tokens ---- */
    --mh-menu-bg: var(--mh-primary);
    --mh-menu-text: var(--mh-text-on-primary);
    --mh-menu-hover: rgba(255, 255, 255, 0.15);
    --mh-menu-border: rgba(255, 255, 255, 0.1);

    /* ---- Footer tokens ---- */
    --mh-footer-bg: var(--mh-secondary);
    --mh-footer-text: var(--mh-text-on-secondary);
    --mh-footer-border: #606060;
    --mh-footer-hover: var(--mh-primary);
}
