/* Shared by the app bundle and standalone public pages. */
@font-face {
  font-family: 'Roboto';
  src: url('./Roboto-v3.015-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Roboto';
  src: url('./Roboto-v3.015-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: block;
}

/* Selected-language faces load only when that locale displays these scripts. */
@font-face {
  font-family: 'Noto Sans Devanagari';
  src: url('./NotoSansDevanagari-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-style: normal;
  font-display: block;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+25CC, U+A8E0-A8FF;
}

@font-face {
  font-family: 'Noto Sans JP';
  src: url('./NotoSansJP-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
  unicode-range:
    U+2E80-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF,
    U+20000-323AF;
}

@font-face {
  font-family: 'Noto Sans KR';
  src: url('./NotoSansKR-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
  unicode-range:
    U+1100-11FF, U+2E80-9FFF, U+A960-A97F, U+AC00-D7FF, U+F900-FAFF,
    U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF, U+20000-323AF;
}

@font-face {
  font-family: 'Noto Sans SC';
  src: url('./NotoSansSC-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
  unicode-range:
    U+2E80-9FFF, U+F900-FAFF, U+FE10-FE1F, U+FE30-FE4F, U+FF00-FFEF,
    U+20000-323AF;
}

:root,
[lang] {
  --m5-font-family: 'Roboto';
  --m5-font-sans: var(--m5-font-family);
  --m5-font-display: var(--m5-font-sans);
  --m5-font-mono: var(--m5-font-sans);
}

:lang(hi) {
  --m5-font-family: 'Roboto', 'Noto Sans Devanagari';
}

:lang(ja) {
  --m5-font-family: 'Roboto', 'Noto Sans JP';
}

:lang(ko) {
  --m5-font-family: 'Roboto', 'Noto Sans KR';
}

:lang(zh) {
  --m5-font-family: 'Roboto', 'Noto Sans SC';
}

/* Explicitly localized content may differ from the surrounding app locale. */
[lang] {
  font-family: var(--m5-font-sans);
}
