/* ============================================================
   HansMed — CJK type bump (additive, reversible)
   ------------------------------------------------------------
   Chinese text: +10% size and a heavier weight. Loaded LAST on
   every page; remove the <link> to revert.

   Weight buckets (CSS cannot add +100 to a varying base):
     - body / label / header-nav Chinese -> 600
     - heading / display Chinese          -> 700
     - brand wordmark (all)               -> 500 (size left original)
   Size is a relative 1.1em (each context +10%).

   Header nav links / menu items swap Chinese via data-zh (JS), so
   they carry no lang/-zh marker; those are matched under
   html[lang="zh"] so ONLY the Chinese state is weighted (English
   stays at its normal weight). Brand wordmarks are static Chinese
   and are matched directly.
   html/body are excluded so zh-mode does not compound the scale.
   !important is intentional: this is a dedicated type-override layer.
   ============================================================ */

/* ---- General Chinese (excl. brand wordmark): +10% size, weight 600 ---- */
[lang="zh"]:not(html):not(body),
.hm5-cn, .card-cn, .card-desc-cn,
.zh, .zh-inline, .bi-zh, .fzh, .fm-zh,
[class*="-zh"]:not(.p-logo-zh),
[class*="-cn"] {
  font-size: 1.1em !important;
  font-weight: 600 !important;
}

/* ---- Heading / display Chinese: weight 700 ---- */
.hm5-title [lang="zh"],
.page-title [lang="zh"],
h1 [lang="zh"], h2 [lang="zh"], h3 [lang="zh"],
.card-name [lang="zh"],
.v3-hero-zh, .hero-zh, .art-zh-title,
.sh-zh, .qt-zh, .stat-zh {
  font-weight: 700 !important;
}

/* ---- Header nav (data-zh JS swap): match body weight, 中文 mode only ---- */
html[lang="zh"] .nav .nav-link,
html[lang="zh"] .nav .nav-book,
html[lang="zh"] .nav .btn-signin,
html[lang="zh"] .m-menu a,
html[lang="zh"] .m-book {
  font-weight: 600 !important;
}

/* ---- Brand wordmark: ORIGINAL size (reverted); weight 500 (desktop + mobile) ---- */
.nav-wordmark-sub, .nav-brand-text, .p-logo-zh, .m-brand-sub {
  font-weight: 500 !important;
}
