/* ============================================================================
   ACS TYPOGRAPHY - Mulish
   ----------------------------------------------------------------------------
   Aligns the legacy admin UI with the modern apps (cs-addons-ui-react), which
   use Mulish and nothing else - headings and body share the family and are
   separated by weight alone.

   MUST be linked AFTER assets/plugins/roboto/roboto.css.

   Two things happen in this file:

   1. Mulish is registered under its own name for new code, via --acs-font-sans.

   2. Mulish is ALSO registered under the name "Roboto". assets/css/style.min.css
      hard-codes "font-family: Roboto" in about nine rules, and seventeen master
      pages link roboto.css. Re-declaring the Roboto family here - after
      roboto.css - repoints every one of those rules at Mulish without editing
      style.min.css or a single master page. The explicit 400/500 rules at the
      bottom exist because roboto.css declares those exact weights; declaring
      the same weight later in the cascade is what makes this deterministic
      rather than relying on how a browser ranks a weight range against an
      exact value.

      When style.min.css is eventually cleaned up to use var(--acs-font-sans),
      the alias block can be deleted and nothing else has to change.

   The files are self-hosted rather than pulled from fonts.gstatic.com: Roboto
   already is, on-premise tenants may not reach Google, and server-side report
   rendering does not fetch external stylesheets.

   Source: Google Fonts Mulish v18, variable weight axis 200-1000, latin and
   latin-ext subsets, upright and italic.
   ============================================================================ */

:root {
    --acs-font-sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --acs-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ============================================
   MULISH - under its own name
   ============================================ */

@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/mulish/mulish-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: "Mulish";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/mulish/mulish-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: "Mulish";
    font-style: italic;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/mulish/mulish-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Mulish";
    font-style: italic;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/mulish/mulish-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;
}

/* ============================================
   ALIAS - the same font, answering to "Roboto"
   Delete this block once style.min.css stops
   hard-coding the family name.
   ============================================ */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/mulish/mulish-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: "Roboto";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/mulish/mulish-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: "Roboto";
    font-style: italic;
    font-weight: 200 1000;
    font-display: swap;
    src: url("../fonts/mulish/mulish-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* roboto.css declares exactly these three: weight 400, weight normal, and
   weight 500. Same declarations, later in the cascade, pointing at Mulish. */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/mulish/mulish-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url("../fonts/mulish/mulish-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/mulish/mulish-latin.woff2") format("woff2");
}
