/* Infinity2X typography - self-hosted Barlow (body) + Barlow Condensed (headings).
   Copy the "fonts" folder next to this file (e.g. wwwroot/css/fonts/) and link this CSS
   after Bootstrap/theme CSS so it wins. Works offline, so it is also right for
   .NET MAUI Blazor Hybrid apps (put both in the app's wwwroot). */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
    --bs-body-font-family: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --i2x-heading-font: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}
body, button, input, select, textarea { font-family: var(--bs-body-font-family); }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--i2x-heading-font);
    letter-spacing: .005em;
}

/* GlassOne: the theme, Kendo and the app's own CSS take their font from these variables (they were Arimo and system-ui), so the same typography reaches
   the grids, editors, dropdowns and pop-ups. Printed documents, labels and the report layouts do not load this file and keep Arial / Arimo. */
:root {
    --infinity-font-sans-serif: var(--bs-body-font-family);
    --infinity-font-base: var(--bs-body-font-family);
    --infinity-body-font-family: var(--bs-body-font-family);
    --kendo-font-family: var(--bs-body-font-family);
}
