/* Language toggle and Chinese typography; loaded after style.css. */
#lang-toggle{white-space:nowrap}
#lang-toggle span{opacity:.55}
#lang-toggle span.active{opacity:1;color:var(--mint)}
:root:lang(zh){font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif}
/* Tight Latin tracking and tiny monospace labels do not suit CJK glyphs. */
:lang(zh) h1,:lang(zh) h2,:lang(zh) #atlas-story h1{letter-spacing:0}
:lang(zh) .eyebrow,:lang(zh) .brand small,:lang(zh) #destinations span,:lang(zh) #destinations small,:lang(zh) .metrics small,:lang(zh) .selected-context small,:lang(zh) #scene-readout small,:lang(zh) #band-legend small,:lang(zh) .network-label,:lang(zh) #destination-status,:lang(zh) .journey nav button{letter-spacing:.5px;font-family:inherit}
/* Headlines break only at punctuation so words such as 一整天 stay whole; avoid one-character last lines. */
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3{word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
:lang(zh) p{line-break:strict;text-wrap:pretty}
