/*
 * i18n.css — loaded only by the translated pages (zh/ and ms/), appended by
 * assets/build/build-i18n.js. Keeps Latin glyphs in the site fonts and gives
 * Chinese text a proper CJK font stack; icon fonts are left untouched.
 */
html[lang^="zh"] body {
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
}
html[lang^="zh"] :is(h1, h2, h3, h4, h5, h6, .ds-logo-text, .ds-btn, .ds-footer-col-label) {
  font-family: "Sora", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  letter-spacing: 0;
}
html[lang^="zh"] :is(p, li, a, span, small, div, label, button):not([class*="bi-"]):not(.bi) {
  word-break: normal;
  line-break: strict;
}
/* Chinese reads more airily with a touch more line height on running text. */
html[lang^="zh"] p { line-height: 1.8; }

/* Malay runs ~20–30% longer than English — let long labels wrap instead of overflow. */
html[lang="ms"] :is(h1, h2, h3, h4, .ds-btn, .ds-navlinks a, .ds-footer-col a) {
  overflow-wrap: anywhere;
  hyphens: auto;
}
html[lang="ms"] .ds-btn { white-space: normal; text-align: center; }
