/* ============================================================================
   DL-2954 — Plus Jakarta Sans, self-hosted.
   Loaded after Daitalens.ui.css and dl-effects.css, before site.css.
   ========================================================================= */

/* -- 0. the faces --------------------------------------------------------- */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;          /* variable axis, not a single weight */
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-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;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-Italic-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+2074, U+20AC,
                   U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: italic;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/PlusJakartaSans-Italic-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;
}

/* -- 1. the single family variable (DL-2023 white-label pattern) ----------- */
:root {
    --dl-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* dl-effects.css:63 declared --dl-font-display: 'Inter', never loaded.
       It is edited at source to collapse into this one variable. */
    --dl-font-display: var(--dl-font);
}

/* -- 2. the app's own three declarations ----------------------------------
   NOT overridden here. Edited at source, no !important needed:
     · Source/Daitalens.UI/wwwroot/Daitalens.ui.css:20            body
     · Source/Daitalens.Web.Server/wwwroot/css/dl-effects.css:63  --dl-font-display
     · Source/Daitalens.Web.Server/wwwroot/index.html:437         .dl-shell
   ------------------------------------------------------------------------ */

/* -- 3. Syncfusion ---------------------------------------------------------
   Controls do NOT inherit from body: bootstrap5.css v32.1.19 hardcodes a
   system stack in 61 declarations (51 system-ui + 10 "Segoe UI").
   !important is REQUIRED — we cannot edit their file, and 96 of their 120
   family selectors are compound and out-specify a flat sweep.              */
.e-control,
.e-css,
[class^="e-"],
[class*=" e-"] {
    font-family: var(--dl-font) !important;
}

/* -- 4. ICON FONTS ARE EXCLUDED — the tofu guard --------------------------
   The sweep above also matches .e-icons. bootstrap5.css declares
   font-family:"e-icons" in 47 rules; overriding those turns every Syncfusion
   glyph into an empty box. This block MUST stay AFTER the sweep so it wins at
   equal specificity.

   `.e-icon-btn` is a BUTTON THAT CONTAINS an icon, not the glyph, so it is
   deliberately NOT listed — matching it would put the icon font on the
   button's own text label.                                                 */
.e-icons,
.e-icons::before,
[class^="e-icons"],
[class*=" e-icons"],
.e-btn-icon, .e-clear-icon, .e-search-icon, .e-ddl-icon,
.e-date-icon, .e-input-group-icon, .e-caret, .e-check,
.e-sortfilterdiv, .e-columnmenu {
    font-family: 'e-icons' !important;
}
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
.fa::before, .fas::before, .far::before, .fab::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands',
                 'Font Awesome 5 Free', 'FontAwesome' !important;
}
.bi, .bi::before          { font-family: 'bootstrap-icons' !important; }
.material-symbols-outlined,
.material-icons           { font-family: 'Material Symbols Outlined', 'Material Icons' !important; }

/* -- 5. TABULAR FIGURES ----------------------------------------------------
   Mandatory wherever numbers stack. Plus Jakarta Sans ships digit advances
   from 371 units (1) to 732 units (0); tnum sets all ten to 600.
   PROSE IS DELIBERATELY EXCLUDED — tabular figures in a sentence read as a
   spreadsheet.                                                              */
.e-grid .e-rowcell,
.e-grid .e-headercell,
.e-summarycell,
.e-summaryrow .e-rowcell,
.e-groupfooterrow .e-rowcell,
.e-gridfooter .e-rowcell,
.e-pager, .e-pager .e-numericitem, .e-parentmsgbar,
.stat-number, .summary-value, .tile-trend, .tile-label,
.e-chart text, svg text {
    font-variant-numeric: tabular-nums;
}

/* -- 6. CHART SVG TEXT -----------------------------------------------------
   Syncfusion writes an inline font-family ATTRIBUTE on chart <text> nodes
   (measured: font-family="Segoe UI"). A CSS rule BEATS a presentation
   attribute, so this reaches them and ChartFontSettings is NOT required.    */
.e-chart text,
.e-accumulationchart text,
svg text {
    font-family: var(--dl-font) !important;
}
