/* EN | 中文 switcher and Simplified Chinese typography. Added by scripts/i18n/zh.mjs. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: var(--step--1, 0.875rem);
  font-weight: var(--weight-strong, 600);
  color: var(--heading, currentColor);
  white-space: nowrap;
}
.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  padding: 0.35rem 0.15rem;
}
.lang-switch a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.2em; }
.lang-switch a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.lang-switch a:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; opacity: 1; }
.lang-switch span { opacity: 0.4; }
.is-scrolled .lang-switch { color: var(--on-green, currentColor); }
.lang-switch--drawer { color: var(--on-green, currentColor); margin-bottom: var(--space-s, 1rem); font-size: var(--step-0, 1rem); }
@media (max-width: 47.99rem) {
  header .actions > .lang-switch { gap: 0.25em; font-size: 0.8rem; }
}

/* Chinese pages: CJK fallbacks after the brand Latin face, no negative tracking on hanzi. */
html:lang(zh-Hans) {
  --font-serif: "Jost", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-display: var(--font-display-zh, "Jost", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif);
  --font-text: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  line-break: strict;
  word-break: normal;
}
html:lang(zh-Hans) :is(h1, h2, h3, h4, h5, h6, .eyebrow, .kicker) { letter-spacing: 0; }
html:lang(zh-Hans) body { line-height: 1.75; }
html:lang(zh-Hans) :is(h1, h2, h3) { line-height: 1.3; }
html:lang(zh-Hans) [lang="en-GB"] { font-family: var(--font-display); }
