/*
 * Khorshid IS -- locally-hosted primary fonts (confirmed decision, replaces
 * the earlier Vazirmatn-via-Google-Fonts placeholder). See
 * agentic-dev-system-v4/docs/04_DECISIONS.md ADR-020 and
 * docs/08_UI_STYLE_GUIDE.md Step 3.
 *
 * Vazirmatn (variable font, weights 100-900 in one file) -- primary UI font,
 * used everywhere Velzon's stock theme uses Poppins/hkgrotesk.
 *   License: SIL Open Font License 1.1 -- fonts/licenses/OFL-Vazirmatn.txt
 *
 * Vazir Code (monospace, single weight 400 -- no bold cut exists) -- for
 * codes/technical values (SKU codes, order numbers) where a fixed-width
 * Persian-aware face reads better than the proportional primary font.
 *   License: Bitstream-Vera-derived, permissive -- fonts/licenses/LICENSE-Vazir-Code.txt
 */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn[wght].woff2') format('woff2-variations'),
         url('../fonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir Code';
    src: url('../fonts/Vazir-Code.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/*
 * Velzon's compiled CSS does NOT apply its base font uniformly through one
 * variable -- verified by grep against the actual compiled files, not
 * assumed:
 *   - body text goes through the Bootstrap variable --vz-font-sans-serif
 *     (bootstrap.min.css / bootstrap-rtl.min.css), which the "default" demo
 *     sets to "Poppins", sans-serif.
 *   - headings (h1-h6 / .h1-.h6) have Poppins hardcoded directly in
 *     bootstrap.min.css / bootstrap-rtl.min.css, bypassing that variable.
 *   - the sidebar nav-links (.navbar-menu .navbar-nav .nav-link) and the
 *     .ff-secondary utility class have hkgrotesk hardcoded in
 *     app.min.css / app-rtl.min.css. Three more selectors also hardcode
 *     hkgrotesk (.chat-list>li a, .contact-list li,
 *     .navbar-landing .navbar-nav .nav-item .nav-link) but belong to
 *     Velzon apps this project doesn't use (Chat, Contacts, the marketing
 *     landing page -- see the "Parked" section in 08_UI_STYLE_GUIDE.md);
 *     included below anyway since it costs nothing and avoids a stray
 *     untranslated font if one of those ever gets resurrected.
 * All of these are overridden below so Vazirmatn is genuinely used
 * everywhere, not just wherever the CSS variable happens to reach.
 */
:root {
    --vz-font-sans-serif: 'Vazirmatn', sans-serif;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazirmatn', sans-serif;
}

.navbar-menu .navbar-nav .nav-link,
.ff-secondary,
.chat-list > li a,
.contact-list li,
.navbar-landing .navbar-nav .nav-item .nav-link {
    font-family: 'Vazirmatn', sans-serif;
}

/* Vazir Code for anything meant to look like a fixed-width code/id value. */
.font-monospace,
code, kbd, pre, samp {
    font-family: 'Vazir Code', SFMono-Regular, Menlo, Consolas, monospace;
}
