/*
 * WebMastro: the fonts of the scripts a system may lack, by language
 * (docs/GUIDELINES.md D92), written by tools/noto-fonts: never edit it.
 * Loaded before the first paint by a page in one of these languages, or
 * with words in one (Core\ScriptFont).
 *
 * For each, the system's own fonts for the script first (the site's font
 * before them, --wm-font-latin, for the Latin letters: web fonts only),
 * then Noto Sans served by the site, then the Latin system fonts. The order
 * matters: Chrome on Linux draws a character with the first installed font
 * of the list even when that font lacks it (squares).
 */

:where( :lang(ja) ) {
  font-family: var( --wm-font-latin, "Hiragino Sans" ), "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "WM Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

:where( :lang(ko) ) {
  font-family: var( --wm-font-latin, "Apple SD Gothic Neo" ), "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "WM Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

:where( :lang(zh-Hans), :lang(zh-CN), :lang(zh-SG), :lang(zh):not(:lang(zh-Hant), :lang(zh-TW), :lang(zh-HK), :lang(zh-MO)) ) {
  font-family: var( --wm-font-latin, "PingFang SC" ), "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "WM Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

:where( :lang(zh-Hant), :lang(zh-TW), :lang(zh-HK), :lang(zh-MO) ) {
  font-family: var( --wm-font-latin, "PingFang TC" ), "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans CJK TC", "WM Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

:where( :lang(ar), :lang(fa), :lang(ur) ) {
  font-family: var( --wm-font-latin, "Geeza Pro" ), "Geeza Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic", "WM Noto Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}
