/* Malayalam webfont — self-hosted, no external requests.
   Noto Sans Malayalam (variable, 400–700) served from our own /assets.

   unicode-range restricts this face to the Malayalam block (plus the few marks
   and joiners Malayalam needs). Consequence: browsers download the 88 KB file
   ONLY when a page actually contains Malayalam characters. English-only pages
   pay nothing, and Latin text keeps rendering in Roboto even where the family
   is listed first. */
@font-face {
  font-family: 'Noto Sans Malayalam';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/NotoSansMalayalam-variable.woff2) format('woff2');
  unicode-range: U+0307, U+0323, U+0951-0952, U+0964-0965, U+0D00-0D7F,
                 U+1CDA, U+1CF2, U+200C-200D, U+20B9, U+25CC, U+A830-A832;
}

/* Listed FIRST so Malayalam codepoints resolve to Noto; every other character
   falls through to the site's normal stack because of the unicode-range above. */
.sona-pr, .sona-pr .pr-ml, .sona-pr .pr-ml-big,
.sona-rc, .sona-rc .rc-ml, .sona-rc .rc-cml,
.sona-dt, .sona-dt .dt-ml,
.ml {
  font-family: 'Noto Sans Malayalam', 'Roboto', Arial, sans-serif;
}

/* Serif headings that carry Malayalam keep their serif fallback for Latin. */
.sona-pr .pr-ml-big,
.sona-dt h2 .ml,
.sona-rc h2 .ml {
  font-family: 'Noto Sans Malayalam', 'Libre Baskerville', Georgia, serif;
}

/* Malayalam sits slightly small next to Latin at the same px size, and its
   ascenders/descenders need a little more room. */
.ml, .sona-pr .pr-ml, .sona-rc .rc-ml {
  line-height: 1.7;
}
