/* EXPERIMENT: system fonts on phones for Japanese and Chinese. Loaded after lang-cjk.css. Below 768 px the pages use the
   phone's own font and the Noto web font slices (fonts-sc.css, fonts-jp.css) are not loaded; from 768 px up nothing changes.
   Japanese on iPhone: "Trident Hiragino" pins each CSS weight to one Hiragino Sans face so the phone matches the Noto Sans JP
   weights used on desktop: 400 (body) -> W3, 500 (hero and page titles, emphasis) -> W5, 600 (semibold) -> W6, 700 (bold) -> W7.
   local() only finds fonts installed on the device; where a face is missing the browser uses the next family in the stack
   (Android picks its own Japanese font for sans-serif from the page language). Latin letters stay in Barlow and Geist.
   To undo: remove the 'trident-mobile-system' line in inc/enqueue.php and delete this file. */
@media (max-width: 767px) {
  @font-face {
    font-family: "Trident Hiragino";
    font-style: normal;
    font-weight: 400;
    src: local("HiraginoSans-W3"), local("Hiragino Sans W3");
    unicode-range: U+3000-9FFF, U+FF00-FFEF;
  }
  @font-face {
    font-family: "Trident Hiragino";
    font-style: normal;
    font-weight: 500;
    src: local("HiraginoSans-W5"), local("Hiragino Sans W5"), local("HiraginoSans-W6"), local("Hiragino Sans W6");
    unicode-range: U+3000-9FFF, U+FF00-FFEF;
  }
  @font-face {
    font-family: "Trident Hiragino";
    font-style: normal;
    font-weight: 600;
    src: local("HiraginoSans-W6"), local("Hiragino Sans W6");
    unicode-range: U+3000-9FFF, U+FF00-FFEF;
  }
  @font-face {
    font-family: "Trident Hiragino";
    font-style: normal;
    font-weight: 700;
    src: local("HiraginoSans-W7"), local("Hiragino Sans W7");
    unicode-range: U+3000-9FFF, U+FF00-FFEF;
  }
  /* "Barlow Text" is Barlow without the digits 0 to 9 (same font files), used only for running text so a number inside a
     Japanese or Chinese sentence takes the system font. Table cells, labels and the big Geist numbers keep their own fonts.
     Punctuation in a number (. , %) stays Barlow, so a decimal such as 12.5 can mix two fonts. */
  @font-face {
    font-family: "Barlow Text";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-002F, U+003A-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: "Barlow Text";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-002F, U+003A-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: "Barlow Text";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-002F, U+003A-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;
  }
  :lang(ja) {
    --font-family-headings: "Barlow Condensed", "Trident Hiragino", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Noto Sans CJK JP", "Noto Sans JP", "Droid Sans Japanese", "Yu Gothic Medium", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    --font-family-body: "Barlow", "Trident Hiragino", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Noto Sans CJK JP", "Noto Sans JP", "Droid Sans Japanese", "Yu Gothic Medium", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    --font-family-semi-condensed: "Barlow Semi Condensed", "Trident Hiragino", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Noto Sans CJK JP", "Noto Sans JP", "Droid Sans Japanese", "Yu Gothic Medium", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
    --font-family-numbers: "Geist", "Barlow", "Trident Hiragino", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Noto Sans CJK JP", "Noto Sans JP", "Droid Sans Japanese", "Yu Gothic Medium", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  }
  :lang(zh) {
    --font-family-headings: "Barlow Condensed", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, sans-serif;
    --font-family-body: "Barlow", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, sans-serif;
    --font-family-semi-condensed: "Barlow Semi Condensed", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, sans-serif;
    --font-family-numbers: "Geist", "Barlow", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, sans-serif;
  }
  /* Chinese and Japanese have no italic, so never let the browser slant the characters (the Latin quote style stays italic). */
  :lang(ja), :lang(zh) { font-synthesis-style: none; }
  :lang(ja) [class*="type-paragraph"]:not(.spec-table__cell) {
    font-family: "Barlow Text", "Trident Hiragino", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Noto Sans CJK JP", "Noto Sans JP", "Droid Sans Japanese", "Yu Gothic Medium", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  }
  :lang(zh) [class*="type-paragraph"]:not(.spec-table__cell) {
    font-family: "Barlow Text", "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "WenQuanYi Micro Hei", system-ui, sans-serif;
  }
}
