/**
 * Nurwire CJK typography — zh-Hant / ja only (Latin en/de/es/pt… untouched).
 * Load LAST in head.html (after page/component sheets) so overrides win cascade.
 * Tokens stay aligned with nw-type (--nw-fs-card-title etc.; CE device cards 2eb19a9).
 *
 * Weight policy: CJK glyphs clog above ~500. Latin 600–700 must map down.
 *   --nw-cjk-fw-display  hero / large display
 *   --nw-cjk-fw-title    section / card / process titles (emphasis ceiling)
 *   --nw-cjk-fw-em       strong / nav / buttons
 */

html[lang|="zh"],
html[lang|="ja"] {
  --text-caption: 0.9375rem; /* 15px — was 0.875rem */
  --text-body: 1.03125rem; /* 16.5px — gentle body lift */
  --text-lead: 1.1875rem; /* 19px — was 1.125rem */
  /* card title stays 1.375rem — same token as homepage / CE device cards */
  --nw-fs-meta: var(--text-caption);
  --nw-fs-secondary: var(--text-caption);
  --nw-fs-eyebrow: var(--nw-fs-meta);
  --nw-fs-caption: var(--nw-fs-meta);
  --nw-fs-body: var(--text-body);
  --nw-fs-lead: var(--text-lead);
  --nw-fs-sub: var(--nw-fs-lead);
  --nw-fs-card-desc: var(--nw-fs-secondary);
  --nw-fs-title: var(--text-card-title, 1.375rem);
  --nw-fs-card-title: var(--nw-fs-title);
  --nw-fs-display: clamp(30px, 2.55vw, 40px);
  --nw-fs-section-title: var(--nw-fs-display);
  --nw-fs-faq-q: 1.1875rem;
  --nw-cjk-fw-display: 400;
  --nw-cjk-fw-title: 500;
  --nw-cjk-fw-em: 500;
  font-synthesis: none;
}

/* Native bold elements default to 700 — too heavy for CJK */
html[lang|="zh"] :is(strong, b),
html[lang|="ja"] :is(strong, b) {
  font-weight: var(--nw-cjk-fw-em);
}

/* Section heads / eyebrows (產品選型, module H2) */
html[lang|="zh"] .nw-section-head .nw-section-eyebrow,
html[lang|="zh"] .nw-section-head .eyebrow,
html[lang|="zh"] body.make-home .section-heading .eyebrow,
html[lang|="zh"] body.make-site .section-heading .eyebrow,
html[lang|="zh"] body.make-home .eyebrow,
html[lang|="zh"] body.make-site .eyebrow,
html[lang|="ja"] .nw-section-head .nw-section-eyebrow,
html[lang|="ja"] .nw-section-head .eyebrow,
html[lang|="ja"] body.make-home .section-heading .eyebrow,
html[lang|="ja"] body.make-site .section-heading .eyebrow,
html[lang|="ja"] body.make-home .eyebrow,
html[lang|="ja"] body.make-site .eyebrow {
  font-weight: var(--nw-cjk-fw-em);
  letter-spacing: 1.2px;
}

html[lang|="zh"] .nw-section-head .nw-section-title,
html[lang|="zh"] .nw-section-head h2,
html[lang|="zh"] body.make-home .section-heading h2,
html[lang|="zh"] body.make-site .section-heading h2,
html[lang|="zh"] body.make-site .process-section .section-heading h2,
html[lang|="zh"] body.make-site .faq-heading h2,
html[lang|="ja"] .nw-section-head .nw-section-title,
html[lang|="ja"] .nw-section-head h2,
html[lang|="ja"] body.make-home .section-heading h2,
html[lang|="ja"] body.make-site .section-heading h2,
html[lang|="ja"] body.make-site .process-section .section-heading h2,
html[lang|="ja"] body.make-site .faq-heading h2 {
  font-weight: var(--nw-cjk-fw-title); /* CJK muddy at 550+ */
  letter-spacing: -0.35px;
  font-size: var(--nw-fs-section-title);
}

/* Product / app / news / CE device card titles + blurbs */
html[lang|="zh"] body.make-home .catalog-customization h3,
html[lang|="zh"] body.make-site .catalog-customization h3,
html[lang|="zh"] body.make-home .nw-apps__viewport .nw-apps__card h3,
html[lang|="zh"] body.make-home .nw-apps__viewport .application-card h3,
html[lang|="zh"] body.make-home .application-card h3,
html[lang|="zh"] body.make-site .application-card h3,
html[lang|="zh"] body.make-home .news-viewport .news-body h3,
html[lang|="zh"] .ce-device-title .ce-device-heading,
html[lang|="ja"] body.make-home .catalog-customization h3,
html[lang|="ja"] body.make-site .catalog-customization h3,
html[lang|="ja"] body.make-home .nw-apps__viewport .nw-apps__card h3,
html[lang|="ja"] body.make-home .nw-apps__viewport .application-card h3,
html[lang|="ja"] body.make-home .application-card h3,
html[lang|="ja"] body.make-site .application-card h3,
html[lang|="ja"] body.make-home .news-viewport .news-body h3,
html[lang|="ja"] .ce-device-title .ce-device-heading {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.2px;
  font-size: var(--nw-fs-card-title);
}

html[lang|="zh"] body.make-home .nw-apps__viewport .nw-apps__card p,
html[lang|="zh"] body.make-home .nw-apps__viewport .application-card p,
html[lang|="zh"] body.make-home .application-card p,
html[lang|="zh"] .ce-device-open > .ce-device-summary,
html[lang|="ja"] body.make-home .nw-apps__viewport .nw-apps__card p,
html[lang|="ja"] body.make-home .nw-apps__viewport .application-card p,
html[lang|="ja"] body.make-home .application-card p,
html[lang|="ja"] .ce-device-open > .ce-device-summary {
  font-size: var(--nw-fs-card-desc);
}

/* Process steps */
html[lang|="zh"] body.make-home .nw-process .process-copy h3,
html[lang|="zh"] body.make-site .nw-process .process-copy h3,
html[lang|="zh"] body.pl-line-page .nw-process .process-copy h3,
html[lang|="zh"] body.make-site .process-copy h3,
html[lang|="ja"] body.make-home .nw-process .process-copy h3,
html[lang|="ja"] body.make-site .nw-process .process-copy h3,
html[lang|="ja"] body.pl-line-page .nw-process .process-copy h3,
html[lang|="ja"] body.make-site .process-copy h3 {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.2px;
}

html[lang|="zh"] body.make-home .nw-process .process-subtitle,
html[lang|="zh"] body.make-site .nw-process .process-subtitle,
html[lang|="zh"] body.pl-line-page .nw-process .process-subtitle,
html[lang|="ja"] body.make-home .nw-process .process-subtitle,
html[lang|="ja"] body.make-site .nw-process .process-subtitle,
html[lang|="ja"] body.pl-line-page .nw-process .process-subtitle {
  font-weight: var(--nw-cjk-fw-em);
  font-size: var(--nw-fs-body);
}

html[lang|="zh"] body.make-home .nw-process .process-step-text strong,
html[lang|="zh"] body.make-site .nw-process .process-step-text strong,
html[lang|="zh"] body.pl-line-page .nw-process .process-step-text strong,
html[lang|="ja"] body.make-home .nw-process .process-step-text strong,
html[lang|="ja"] body.make-site .nw-process .process-step-text strong,
html[lang|="ja"] body.pl-line-page .nw-process .process-step-text strong,
html[lang|="zh"] body.make-home .nw-process .process-copy .eyebrow,
html[lang|="zh"] body.make-site .nw-process .process-copy .eyebrow,
html[lang|="zh"] body.pl-line-page .nw-process .process-copy .eyebrow,
html[lang|="ja"] body.make-home .nw-process .process-copy .eyebrow,
html[lang|="ja"] body.make-site .nw-process .process-copy .eyebrow,
html[lang|="ja"] body.pl-line-page .nw-process .process-copy .eyebrow {
  font-weight: var(--nw-cjk-fw-em);
}

html[lang|="zh"] body.make-home .nw-process .process-body,
html[lang|="zh"] body.make-site .nw-process .process-body,
html[lang|="zh"] body.pl-line-page .nw-process .process-body,
html[lang|="ja"] body.make-home .nw-process .process-body,
html[lang|="ja"] body.make-site .nw-process .process-body,
html[lang|="ja"] body.pl-line-page .nw-process .process-body {
  font-size: var(--nw-fs-body);
}

html[lang|="zh"] body.make-home .nw-process .process-points li,
html[lang|="zh"] body.make-site .nw-process .process-points li,
html[lang|="zh"] body.pl-line-page .nw-process .process-points li,
html[lang|="ja"] body.make-home .nw-process .process-points li,
html[lang|="ja"] body.make-site .nw-process .process-points li,
html[lang|="ja"] body.pl-line-page .nw-process .process-points li {
  font-weight: var(--nw-cjk-fw-em);
}

/* Mega / nav */
html[lang|="zh"] .nw-mega-eyebrow,
html[lang|="ja"] .nw-mega-eyebrow {
  font-size: var(--nw-fs-meta);
  font-weight: var(--nw-cjk-fw-em);
  letter-spacing: 0.08em;
}

html[lang|="zh"] .nw-mega-title,
html[lang|="ja"] .nw-mega-title {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.01em;
}

html[lang|="zh"] .nw-mega-copy,
html[lang|="ja"] .nw-mega-copy {
  font-size: 14.5px;
}

html[lang|="zh"] .nw-mega-links a,
html[lang|="ja"] .nw-mega-links a {
  font-size: 15.5px;
  font-weight: var(--nw-cjk-fw-em);
}

html[lang|="zh"] .nw-mega-card-title,
html[lang|="ja"] .nw-mega-card-title {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.01em;
}

html[lang|="zh"] .nw-mega-card-more,
html[lang|="ja"] .nw-mega-card-more,
html[lang|="zh"] .nw-mega-cta,
html[lang|="ja"] .nw-mega-cta,
html[lang|="zh"] .nw-mega-card-badge,
html[lang|="ja"] .nw-mega-card-badge {
  font-weight: var(--nw-cjk-fw-em);
}

/* Mobile drawer: keep regular weight (app-menu style) */
html[lang|="zh"] .nw-m-row,
html[lang|="zh"] .nw-m-sub,
html[lang|="ja"] .nw-m-row,
html[lang|="ja"] .nw-m-sub {
  font-weight: 400;
}

/* News「閱讀全文」+ arrow links */
html[lang|="zh"] body.make-home .news-footer,
html[lang|="ja"] body.make-home .news-footer,
html[lang|="zh"] body.make-site .arrow-link,
html[lang|="ja"] body.make-site .arrow-link {
  font-weight: var(--nw-cjk-fw-em);
}

/* Hero / CE banner */
html[lang|="zh"] .hero h1,
html[lang|="ja"] .hero h1 {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.8px;
}

html[lang|="zh"] .hero-content > p,
html[lang|="ja"] .hero-content > p {
  font-size: var(--nw-fs-sub);
}

html[lang|="zh"] .ce-hero h1,
html[lang|="ja"] .ce-hero h1 {
  font-weight: var(--nw-cjk-fw-display);
  letter-spacing: -1.6px;
}

html[lang|="zh"] .ce-hero-lead,
html[lang|="ja"] .ce-hero-lead {
  font-weight: var(--nw-cjk-fw-display);
  letter-spacing: -0.2px;
}

html[lang|="zh"] .ce-kicker,
html[lang|="ja"] .ce-kicker {
  font-weight: var(--nw-cjk-fw-em);
  font-size:var(--nw-fs-meta);
  letter-spacing: 1px;
}

/* Misc Make UI emphasis */
html[lang|="zh"] body.make-site .highlights strong,
html[lang|="ja"] body.make-site .highlights strong,
html[lang|="zh"] body.make-site .tab-code,
html[lang|="ja"] body.make-site .tab-code {
  font-weight: var(--nw-cjk-fw-em);
}

html[lang|="zh"] body.make-site .button,
html[lang|="ja"] body.make-site .button,
html[lang|="zh"] .button,
html[lang|="ja"] .button {
  font-weight: var(--nw-cjk-fw-em);
}

html[lang|="zh"] body.make-site .about-copy h2,
html[lang|="ja"] body.make-site .about-copy h2 {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.4px;
}

html[lang|="zh"] body.make-site .solution-specs dd,
html[lang|="ja"] body.make-site .solution-specs dd,
html[lang|="zh"] body.make-site .check-list h3,
html[lang|="ja"] body.make-site .check-list h3 {
  font-weight: var(--nw-cjk-fw-em);
}

/* —— Product-line / Make-FFC (sheets load after nw-type; match their specificity) —— */
html[lang|="zh"] body.pl-line-page .make-ffc .section-heading h2,
html[lang|="zh"] body.pl-line-page .make-ffc .section-heading .nw-section-title,
html[lang|="zh"] body.app-detail-page .make-ffc .section-heading h2,
html[lang|="zh"] body.app-detail-page .make-ffc .section-heading .nw-section-title,
html[lang|="ja"] body.pl-line-page .make-ffc .section-heading h2,
html[lang|="ja"] body.pl-line-page .make-ffc .section-heading .nw-section-title,
html[lang|="ja"] body.app-detail-page .make-ffc .section-heading h2,
html[lang|="ja"] body.app-detail-page .make-ffc .section-heading .nw-section-title {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.35px;
  font-size: var(--nw-fs-section-title);
}

html[lang|="zh"] body.pl-line-page .make-ffc .eyebrow,
html[lang|="zh"] body.app-detail-page .make-ffc .eyebrow,
html[lang|="ja"] body.pl-line-page .make-ffc .eyebrow,
html[lang|="ja"] body.app-detail-page .make-ffc .eyebrow {
  font-weight: var(--nw-cjk-fw-em);
  font-size: var(--nw-fs-eyebrow);
  letter-spacing: 1.2px;
}

html[lang|="zh"] body.pl-line-page .make-ffc.hero h1,
html[lang|="zh"] body.app-detail-page .make-ffc.hero h1,
html[lang|="ja"] body.pl-line-page .make-ffc.hero h1,
html[lang|="ja"] body.app-detail-page .make-ffc.hero h1 {
  font-weight: var(--nw-cjk-fw-display);
  letter-spacing: -1.2px;
}

html[lang|="zh"] body.pl-line-page .make-ffc .hero-intro,
html[lang|="zh"] body.app-detail-page .make-ffc .hero-intro,
html[lang|="ja"] body.pl-line-page .make-ffc .hero-intro,
html[lang|="ja"] body.app-detail-page .make-ffc .hero-intro {
  font-weight: var(--nw-cjk-fw-display);
  letter-spacing: -0.2px;
}

html[lang|="zh"] body.pl-line-page .make-ffc .quote-copy h2,
html[lang|="zh"] body.app-detail-page .make-ffc .quote-copy h2,
html[lang|="ja"] body.pl-line-page .make-ffc .quote-copy h2,
html[lang|="ja"] body.app-detail-page .make-ffc .quote-copy h2 {
  font-weight: var(--nw-cjk-fw-title);
  letter-spacing: -0.35px;
}

html[lang|="zh"] body.pl-line-page .make-ffc .brand,
html[lang|="zh"] body.app-detail-page .make-ffc .brand,
html[lang|="ja"] body.pl-line-page .make-ffc .brand,
html[lang|="ja"] body.app-detail-page .make-ffc .brand {
  font-weight: var(--nw-cjk-fw-title);
}

/* Service / QA / solutions boards — Latin sheets use 650–700 */
html[lang|="zh"] body.make-site .nw-svc-copy h3,
html[lang|="zh"] body.make-site .nw-svc-copy .eyebrow,
html[lang|="zh"] body.make-site .qa-inspect-copy h3,
html[lang|="zh"] body.make-site .qa-inspect-copy .eyebrow,
html[lang|="zh"] body.make-site .nw-solutions-board h3,
html[lang|="zh"] body.make-site .nw-solutions-board strong,
html[lang|="ja"] body.make-site .nw-svc-copy h3,
html[lang|="ja"] body.make-site .nw-svc-copy .eyebrow,
html[lang|="ja"] body.make-site .qa-inspect-copy h3,
html[lang|="ja"] body.make-site .qa-inspect-copy .eyebrow,
html[lang|="ja"] body.make-site .nw-solutions-board h3,
html[lang|="ja"] body.make-site .nw-solutions-board strong {
  font-weight: var(--nw-cjk-fw-title);
}

/* Homepage edge-bleed already compresses; keep CJK gap to specs a touch tighter */
