/* ═══════════════════════════════════════════════════════════════════════════
   CRMS — Inter font, hosted with the site (works offline, same on every device)
   Inter by Rasmus Andersson · SIL Open Font License 1.1 (see OFL-LICENSE.txt)
   Load after style.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Basic Latin (English, Filipino incl. ñ) — the only file most pages need */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin-wght-normal.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: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin-wght-italic.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;
}
/* Extended Latin — downloaded only if a page actually uses these letters */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin-ext-wght-normal.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: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('inter-latin-ext-wght-italic.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;
}

/* Use Inter everywhere CRMS uses its font setting; the old fonts stay as backup */
:root {
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
:where(button, input, select, textarea) { font-family: inherit; }

/* Clearer for grades: tell 1 / l / I apart, and line numbers up in columns */
body { font-feature-settings: 'cv05' 1, 'calt' 1; }
table, .td-no, input[type="number"], #calcDisplay { font-variant-numeric: tabular-nums; }

/* Printing (Print buttons build #_printArea) uses the same font */
@media print {
  body { font-family: var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
#_printArea, #_printArea * { font-family: var(--font) !important; }
#_printArea table { font-variant-numeric: tabular-nums; }
