/* =============================================================================
   Avenir Next W1G — Custom Font
   ============================================================================= */

/* Light (300) */
@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-LightItalic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Regular (400) */
@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Medium (500) */
@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-MediumItalic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Demi (600) / Bold (700) — added 2026-09-07 for the talenttrends Key design refresh
   (docs/plans design handoff). Previously 600/700 both pointed at the Medium.woff2 file as a
   stand-in (no true Demi/Bold face was available); these are the real weights, only shipped as
   .otf (no woff2/woff conversion tool was available at the time — .otf via @font-face is fully
   supported by all evergreen browsers, so this is a size trade-off, not a compatibility one).
   Licensed corporate webfont — same license basis as the Light/Regular/Medium faces above. */
@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-Demi.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/AvenirNextW1G-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Override DevExpress Design System font variable */
:root {
    --dxds-font-family-sans-serif: 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Enable Old Style Figures globally */
body {
    font-feature-settings: "onum" 1;
}

/* =============================================================================
   Instrument Sans (OFL variable) — the canonical micro-app typeface.
   The six shared micro-apps bundle this in their own wwwroot; Ask and Ask Admin
   render on host pages with no per-app CSS bundle, so the host serves it here so
   they use the SAME typeface as the dashboard apps (design-system §3).
   ============================================================================= */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/InstrumentSans-Variable-latin.woff2') format('woff2');
    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: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/InstrumentSans-Variable-latin-ext.woff2') format('woff2');
    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;
}
