/* Circloud NEST's typography: Rajdhani for headings, titles and navigation,
   Inter for every other text. The owner's pick of 2026-11-05, the "NVIDIA
   feel" of the font explorer, at the sizes the pages already have: first the
   NEST site's, since 2026-11-11 every surface's (backlog 137).

   Linked by every page of each surface, after its own stylesheets:
     - the NEST site (nest-business/business-page): the home page, the
       download page, the profile and its receipts, the approval and sign-in
       page, its docs and API pages;
     - both portals: the dashboards, the sign-in pages, About, Documentation
       and the API page (cloudManagerGui, cloudUserGui, gui-common/pages);
     - the webmail (cloudManager/email-service/webmail.py);
     - the business dashboard (nest-business/business-dashboard/app.py);
     - the installer's wizard (installer/web/templates/wizard.html).

   The fonts are Circloud's own (assets/fonts, SIL Open Font License 1.1,
   OFL-Inter.txt and OFL-Rajdhani.txt), each surface serves them itself and
   no page asks another site for a font, so a customer's cluster and the
   installer offline have them too: the NEST site and the portals serve
   assets/ at /assets/ (their images copy it); the webmail serves its image's
   copies (webmail.ASSETS, its Dockerfile), the business dashboard its
   image's (app.py TYPE_FILES, its Dockerfile); the installer its EXE's
   (build_packages.WIN_PYINSTALLER_DATAS), at /assets/ (installer/web/app.py).
   Latin and Latin Extended only, as Google Fonts cuts them: a browser
   downloads the extended file only for a page that shows one of its letters.

   A font's bytes never change under its name: a changed font gets a new
   file name, and its url() here with it (gui-common/tests/
   test_portal_headers.py pins each font's SHA-256 to its name). So the
   portals and the NEST site let a browser keep each font a year and never
   ask for it again (public, max-age=31536000, immutable; gui-common/
   cache_rules.py), and every portal page asks for the header's faces as
   soon as it arrives (gui-common/portal_headers.py). This
   file keeps its name whatever it holds, so it is asked for on every page,
   as every stylesheet is (no-store).

   The tokens are set on body, not :root: the header links brand.css inside
   the page (gui-common/components/header.py), after this file, and
   brand.css sets --cr-font-sans on :root, so a value on :root here would
   lose to it on every page with a header. Every element in the body inherits
   the body's value, whichever stylesheet came last.

   The Circloud NEST lockup keeps its own font (brand.css --cr-font-brand; the
   installer's lockup, installer.css), and code, logs and keys keep their
   monospace: their own rules name it. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-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: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/rajdhani-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/rajdhani-400-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: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/rajdhani-500-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/rajdhani-500-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: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/rajdhani-600-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/rajdhani-600-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: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/rajdhani-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/rajdhani-700-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;
}

body {
  --cr-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cr-font-display: 'Rajdhani', 'Inter', system-ui, sans-serif;
}

/* Form controls take the browser's own font unless told otherwise. */
button, input, select, textarea {
  font-family: var(--cr-font-sans);
}

/* Headings, the header's links, the tab bars that move between a page's
   sections, and the titles of its sections, cards and dialogs:
     - every surface: h1-h6, the shared header's links (.nav-link);
     - the NEST site: the home page's tabs (.ab-tab), the profile's (.pf-tab);
     - the portals: their tabs at every level (.tab-button), the
       Documentation's (.docs-tab), the panels' section titles
       (.section-title), the form cards' (.form-card-title), the alert's
       dialog (.alert-modal-title), the console's and the logs' window
       (.console-title);
     - the webmail: its name in its bar (.webmail-title strong), its folders
       (.email-folder);
     - the installer: its steps (.step-label), its cards' titles (.card-title,
       .mode-option-title), the upgrade plan's lists (.upgrade-plan-title). */
h1, h2, h3, h4, h5, h6,
.nav-link, .ab-tab, .pf-tab,
.tab-button, .docs-tab, .section-title, .form-card-title, .alert-modal-title, .console-title,
.webmail-title strong, .email-folder,
.step-label, .card-title, .mode-option-title, .upgrade-plan-title {
  font-family: var(--cr-font-display);
}
