/* ---------------------------------------------------------------------------
   Per-language font stacks (lifeRegen approach): Noto webfonts + native OS
   fallbacks, keyed off <html lang="…">. Loaded only for zh / ja / ru — Latin
   languages keep the default Open Sans / Montserrat set in style.css.
   Body text switches fully to the CJK family; headings/UI keep Montserrat
   first so Latin glyphs (Jenkon, JoT®) stay on-brand, with Noto covering
   the rest of the string.
   --------------------------------------------------------------------------- */

/* Simplified Chinese */
html[lang="zh"] body,
html[lang="zh"] body * {
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

/* Japanese */
html[lang="ja"] body,
html[lang="ja"] body * {
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif !important;
}

/* Russian — keep the Latin brand fonts first; Noto Sans fills in any Cyrillic
   glyphs the locally-hosted Open Sans/Montserrat subsets don't include. */
html[lang="ru"] body,
html[lang="ru"] body * {
    font-family: "Open Sans", "Noto Sans", Arial, sans-serif !important;
}

/* Headings & UI chrome: brand font first, language font as glyph fallback.
   Selector list mirrors every font-family assignment in style.css. */
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3,
html[lang="zh"] .button, html[lang="zh"] .primary-nav, html[lang="zh"] .primary-nav a,
html[lang="zh"] .primary-nav button, html[lang="zh"] .eyebrow, html[lang="zh"] .card-number,
html[lang="zh"] .solution-card a, html[lang="zh"] .new-product, html[lang="zh"] .steps span,
html[lang="zh"] .shared-accordion button, html[lang="zh"] .footer-social a {
    font-family: Montserrat, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3,
html[lang="ja"] .button, html[lang="ja"] .primary-nav, html[lang="ja"] .primary-nav a,
html[lang="ja"] .primary-nav button, html[lang="ja"] .eyebrow, html[lang="ja"] .card-number,
html[lang="ja"] .solution-card a, html[lang="ja"] .new-product, html[lang="ja"] .steps span,
html[lang="ja"] .shared-accordion button, html[lang="ja"] .footer-social a {
    font-family: Montserrat, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif !important;
}

html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3,
html[lang="ru"] .button, html[lang="ru"] .primary-nav, html[lang="ru"] .primary-nav a,
html[lang="ru"] .primary-nav button, html[lang="ru"] .eyebrow, html[lang="ru"] .card-number,
html[lang="ru"] .solution-card a, html[lang="ru"] .new-product, html[lang="ru"] .steps span,
html[lang="ru"] .shared-accordion button, html[lang="ru"] .footer-social a {
    font-family: Montserrat, "Noto Sans", Arial, sans-serif !important;
}

/* CJK reads better with slightly relaxed leading on long-form copy */
html[lang="zh"] p, html[lang="ja"] p {
    line-height: 1.85;
}
