.language-switch {display:flex;align-items:center;gap:.35rem;flex-shrink:0;font-size:.75rem;white-space:nowrap;}
.language-switch a {display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:var(--cream-3,#c4bfaa);padding:0 .25rem;}
.language-switch a[aria-current] {color:var(--glow,#c7e541);text-decoration:underline;text-underline-offset:5px;}
.language-switch a:focus-visible {outline:2px solid var(--glow,#c7e541);outline-offset:3px;}
html:lang(zh-Hans) {font-family:'Hanken Grotesk','PingFang SC','Microsoft YaHei','Noto Sans CJK SC','WenQuanYi Micro Hei',sans-serif;line-height:1.65;}
html:lang(zh-Hans) body,html:lang(zh-Hans) button,html:lang(zh-Hans) input,html:lang(zh-Hans) select {font-family:'Hanken Grotesk','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',sans-serif;}
html:lang(zh-Hans) :is(h1,h2,h3,h4,.hero__title,.page__title) {font-family:var(--serif);line-height:1.35;}
html:lang(zh-Hans) * {letter-spacing:normal;text-transform:none;}
html:lang(zh-Hans) :is(p,summary,.page__lede) {line-height:1.75;}
html:lang(zh-Hans) :is(code,pre,.mono) {font-family:'JetBrains Mono',monospace;}
html:lang(zh-Hans) .nav a {white-space:nowrap;}
@media(max-width:700px){.language-switch{font-size:.7rem;gap:.15rem;}.masthead__socials{display:none;}}
@media(prefers-reduced-motion:reduce){.language-switch *{transition:none;}}
/* The same header must fit when the reader doubles the text size. */
.masthead__inner {flex-wrap:wrap;}
header:has(>.language-switch) {flex-wrap:wrap;}
.language-switch {max-width:100%;flex-wrap:wrap;}
@media(max-width:700px){.masthead__inner>.language-switch{margin-left:auto;}.masthead__inner{column-gap:.4rem;row-gap:0;}.language-switch{font-size:.7rem;}header:has(>.language-switch){gap:.5rem 1rem;}}
html:lang(zh-Hans) :is(em,.eyebrow) {font-style:normal;}
html:lang(zh-Hans) * {font-style:normal;}
.brand__text .brand__name {white-space:normal;overflow-wrap:anywhere;line-height:1.25;}
/* Chinese inside the design's own font stacks, so every component that uses
   var(--sans), var(--serif) or var(--mono) gets a CJK face rather than the
   browser default. Windows has no good CJK serif (SimSun is thin at display
   sizes), so serif text falls back to Microsoft YaHei there. */
html:lang(zh-Hans) {
  --sans:"Hanken Grotesk","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC","Noto Sans CJK SC","Noto Sans SC","WenQuanYi Micro Hei",ui-sans-serif,system-ui,sans-serif;
  --serif:"Fraunces","Songti SC","STSong","Source Han Serif SC","Noto Serif CJK SC","Noto Serif SC","Microsoft YaHei","WenQuanYi Micro Hei",serif;
  --mono:"JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC","WenQuanYi Micro Hei",monospace;
  /* No slanted CJK: Latin keeps its real italic face, Chinese stays upright. */
  font-synthesis-style:none;
}
/* Tracking and capitals from the English design do not apply to Chinese; the
   element-level resets above lose to component selectors. */
html:lang(zh-Hans) * {letter-spacing:normal !important;text-transform:none !important;}
/* Chinese below 12px is hard to read; the English design relies on caps and
   tracking at these sizes. */
html:lang(zh-Hans) :is(.pill,.tag,thead th,th .sort,.metric__label,.metric__unit,.stat__label,.stat__unit,.outcome-note,.outcome-note__fact,.outcome-definition,.dir__fee,.dir__tick,.dir__meta,.reward-rate-card__scale,.eyebrow,.learn-node__scope,.holdings-axis-title,.addr__copy,.burn-receipts__kind,.treasury-stat__label,.treasury-kpi__caption,.chip__label,.drawer__stat-label,.chart-hover__note,.network-total-scope,.network-total-basis>summary,.inspector-peek__figures span,.position-inventory__balance small,.prong__approx,.flow__num,.network-headline span) {font-size:.75rem;}
.language-switch a[lang="zh-Hans"] {font-size:max(.75rem,1em);}
/* Headings break at punctuation and spaces rather than inside words. */
html:lang(zh-Hans) :is(h1,h2,.hero__title,.story__title) {word-break:keep-all;overflow-wrap:anywhere;}
html:lang(zh-Hans) .disclaimer__close {white-space:nowrap;flex-shrink:0;}
