/* =========================================================
   SDO DavOcc DTS — Google Sans Variable Font Foundation
   Self-hosted and forced across the DTS web UI
   ========================================================= */

@font-face {
    font-family: "Google Sans";
    src: url("../fonts/google-sans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf") format("truetype-variations");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Google Sans";
    src: url("../fonts/google-sans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf") format("truetype-variations");
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --dts-font-sans: "Google Sans", Arial, Helvetica, sans-serif;
}

html,
body {
    font-family: var(--dts-font-sans) !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Force the UI font without overriding Font Awesome's icon font. */
body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: var(--dts-font-sans) !important;
}

button,
input,
select,
textarea,
option,
optgroup {
    font-family: var(--dts-font-sans) !important;
}

/*
 * The supplied Google Sans variable font provides weights 400–700.
 * UI styles requesting 800/900 will resolve to the closest available
 * Google Sans face (700) rather than switching families.
 */
strong,
b,
h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.eyebrow,
table thead th {
    font-family: var(--dts-font-sans) !important;
}

/* Preserve Font Awesome exactly. */
.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fa-brands,
.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

/* Stable numeric alignment for dashboards, counters, IDs and tables. */
.metric-value,
.stat-value,
.kpi-value,
.dashboard-stat-value,
[data-number],
[data-count] {
    font-variant-numeric: tabular-nums;
}