/* Chinese typography: one CJK family and three intentional weight levels.
   Keep the Latin brand face; never route simplified Chinese through Noto Sans JP.
   Important weights override legacy Tailwind utilities and page-specific rules. */
html:lang(zh) {
  --font-zh: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --weight-zh-body: 400;
  --weight-zh-label: 600;
  --weight-zh-heading: 700;
}
html:lang(zh) body,
html:lang(zh) .luxwork-story-page,
html:lang(zh) [data-i18n],
html:lang(zh) :is(button, input, textarea, select) {
  font-family: var(--font-zh);
}
html:lang(zh) body {
  font-weight: var(--weight-zh-body);
}
/* Descriptions use the same normal weight, even inside a bold clickable card. */
html:lang(zh) :is(
  p[data-i18n],
  [data-i18n$="-desc"],
  [data-i18n$="-lead"],
  [data-i18n$="-subtitle"],
  .home-news-copy p,
  .security-feature-list p,
  .security-faq p,
  .lux-security-entry-desc
) {
  font-weight: var(--weight-zh-body) !important;
}
/* Navigation, buttons and short labels are distinct from body text. */
html:lang(zh) :is(
  a[data-i18n], button[data-i18n], summary[data-i18n],
  [data-i18n$="-cta"], [data-i18n$="-open"],
  [data-i18n$="-kicker"], [data-i18n$="-eyebrow"],
  .lux-security-entry-action,
  .luxwork-detail-nav a,
  .security-topic-nav a,
  .security-pillars strong
) {
  font-weight: var(--weight-zh-label) !important;
}
/* Localized titles retain emphasis without mixing 750/800/850/900 weights. */
html:lang(zh) :is(
  h1[data-i18n], h2[data-i18n], h3[data-i18n],
  h4[data-i18n], h5[data-i18n], h6[data-i18n],
  [data-i18n$="-title"],
  .lux-security-entry-title,
  .home-news-copy h4
) {
  font-weight: var(--weight-zh-heading) !important;
}
