/* Polylang supplies the language on the root element. Keep traditional Chinese separate. */
html:is([lang="zh" i], :lang(zh-CN), :lang(zh-SG), :lang(zh-Hans)) {
  --highland-locale-font: "Noto Sans SC";
}

html:lang(ko) {
  --highland-locale-font: "Noto Sans KR";
}

/* Apply the locale family to body text and Elementor's four Global Fonts.
   Explicit typography on individual widgets remains editable in Elementor. */
html:is([lang="zh" i], :lang(zh-CN), :lang(zh-SG), :lang(zh-Hans), :lang(ko)) body {
  font-family: var(--highland-locale-font), Roboto, sans-serif;
  --e-global-typography-primary-font-family: var(--highland-locale-font);
  --e-global-typography-secondary-font-family: var(--highland-locale-font);
  --e-global-typography-text-font-family: var(--highland-locale-font);
  --e-global-typography-accent-font-family: var(--highland-locale-font);
}
