/*
 * Malayalam web fonts for this edition.
 *
 * The quantecon_book_theme loads Source Sans Pro (body) and PT Serif
 * (headings) from Google Fonts; neither covers the Malayalam block, so
 * Malayalam runs otherwise fall back to the reader's OS font (Nirmala UI,
 * Malayalam Sangam MN, ...) whose glyphs sit visibly larger than the Latin.
 *
 * These @font-face rules supply Noto Sans / Noto Serif Malayalam for the
 * Malayalam Unicode range only (unicode-range), so Latin text, digits and
 * punctuation keep the theme's fonts. The woff2 files are the Google Fonts
 * "malayalam" subsets of each family, self-hosted under _static/fonts/
 * (SIL Open Font License 1.1 — see fonts/OFL.txt).
 *
 * If the Malayalam still looks large or small next to the Latin, tune
 * `size-adjust` on the four faces below (e.g. 95%) rather than font-size.
 */

@font-face {
  font-family: "Noto Sans Malayalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/notosansmalayalam-400-malayalam.woff2") format("woff2");
  unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Malayalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/notosansmalayalam-700-malayalam.woff2") format("woff2");
  unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Serif Malayalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/notoserifmalayalam-400-malayalam.woff2") format("woff2");
  unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Serif Malayalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/notoserifmalayalam-700-malayalam.woff2") format("woff2");
  unicode-range: U+0D00-0D7F, U+200C-200D, U+25CC;
}

/* Body text: theme uses Source Sans Pro. Prepend the Malayalam face; the
   unicode-range above means Latin still falls through to the theme font. */
html, body,
.qe-sidebar__header,
.stderr-toggle-button {
  font-family: "Noto Sans Malayalam", "Source Sans Pro", sans-serif;
}

/* Headings: theme uses PT Serif. */
h1, h2, h3, h4, h5, h6,
.qe-sidebar__nav .caption-text,
.toctree-wrapper .caption-text {
  font-family: "Noto Serif Malayalam", "PT Serif", serif;
}
