/* ── Forest.Web typography: one typeface everywhere ────────────────────────
   Inter (variable, SIL Open Font License -- wwwroot/fonts/inter/LICENSE.txt), served from this app
   rather than Google Fonts: no third-party DNS/TLS round trip, cached with the app's other assets, and
   App.razor preloads the Latin file so text paints in Inter on first load (font-display: swap shows the
   system font for the few ms before it arrives instead of invisible text).

   Every stylesheet uses the tokens below instead of naming a font. This file loads last (App.razor) so it
   also points Bootstrap's and DevExpress's own font variables at Inter -- grids, menus, editors and
   pivot tables then match the rest of the app instead of falling back to Segoe UI / Helvetica.

   Only exceptions: the AgencyFB brand wordmark (site.css .forest-brand) and icon fonts. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                   U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                   U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Faces */
    --fw-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --fw-font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    /* Type scale (px, matching the sizes the app already uses most) */
    --fw-text-2xs: 10.5px;  /* tiny caps labels */
    --fw-text-xs: 11.5px;   /* captions, hints, table footnotes */
    --fw-text-sm: 12.5px;   /* secondary text, sidebar links, chips */
    --fw-text-base: 13.5px; /* body, inputs, table cells */
    --fw-text-md: 15px;     /* card and panel titles */
    --fw-text-lg: 18px;     /* section headings */
    --fw-text-xl: 22px;     /* page titles */

    --fw-weight-regular: 400;
    --fw-weight-medium: 500;
    --fw-weight-semibold: 600;
    --fw-weight-bold: 700;

    --fw-leading-tight: 1.25;
    --fw-leading-normal: 1.5;

    /* Bootstrap 5 */
    --bs-font-sans-serif: var(--fw-font-sans);
    --bs-body-font-family: var(--fw-font-sans);
    --bs-font-monospace: var(--fw-font-mono);

    /* DevExpress Fluent theme (grids, menus, editors, pivot, scheduler, ...) */
    --dxds-font-family-sans-serif: var(--fw-font-sans);
    --dxds-font-family-inter: var(--fw-font-sans);
    --dxds-font-family-segoe-ui: var(--fw-font-sans);
    --dxds-font-family-mono: var(--fw-font-mono);
}

html, body {
    font-family: var(--fw-font-sans);
    font-feature-settings: 'cv11', 'ss01';   /* Inter: single-storey a, open digits -- easier to scan */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Form controls don't inherit the page font by default. */
button, input, select, textarea, optgroup {
    font-family: inherit;
}

/* Figures line up in columns in every report, grid and dashboard table. */
table, .dxbl-grid, .dxbl-pivot-table, .num, [class*="-num"], [class*="amount"], .forest-mono {
    font-variant-numeric: tabular-nums;
}

code, kbd, pre, samp {
    font-family: var(--fw-font-mono);
}
