/* Chinese typography only. Keep Japanese pages and shared styles unchanged. */
:root[lang^="zh"] {
  --zh-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    "Noto Sans SC", "Source Han Sans SC", "Droid Sans Fallback", sans-serif;
  --serif: var(--zh-sans);
}

:root[lang^="zh"] body {
  font-family: var(--zh-sans);
  font-weight: 400;
  font-feature-settings: normal;
}

/* Reset the Japanese/Latin families and intermediate weights from both layouts.
   Children inherit the semantic heading/emphasis weight set below. */
:root[lang^="zh"] body :where(*) {
  font-family: inherit;
  font-weight: inherit;
}

:root[lang^="zh"] body :where(
  h1, h2, h3, h4, h5, h6, strong, b, summary, dt, label, th,
  button, .button, .text-link, .link-arrow, .related-column-link,
  .main-nav, .nav, .inspection-kicker, .resource-links,
  .contact-direct-bar a
) {
  font-weight: 600;
}

/* The existing packaging page has inline heading weights. */
:root[lang^="zh"] body :where(h1, h2, h3, h4, h5, h6) {
  font-weight: 600 !important;
}
