/* Language controls scale without adding a row of tiny mobile buttons. */
.locale-control{display:inline-flex;align-items:center;gap:12px;min-width:0;font-size:11px}
.locale-control select{font:inherit;color:var(--white);background:var(--black);border:1px solid #666;border-radius:0;min-height:44px;padding:8px 28px 8px 12px;max-width:170px;cursor:pointer}
.locale-control option{background:#0b0b0b;color:#f5f5f5}
.locale-control .translation-secondary,.skip .translation-secondary{display:none}
#language-status{margin:0;padding:0 4vw;font-size:12px;color:var(--muted)}
#language-status:not(:empty){padding-top:10px;padding-bottom:10px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Use native script-appropriate fonts rather than the Simplified Chinese subset. */
body[data-language="zh-Hant"]{font-family:'PingFang TC','Microsoft JhengHei','Noto Sans TC',Arial,sans-serif;--title-zh:'Songti TC','PMingLiU','Noto Serif TC',serif}
body[data-language="ja"]{font-family:'Hiragino Kaku Gothic ProN','Yu Gothic','Meiryo',sans-serif;--title-zh:'Hiragino Mincho ProN','Yu Mincho','Noto Serif JP',serif}
.primary-copy[lang="zh-Hant"],.translation-secondary[lang="zh-Hant"]{font-family:inherit}
body[data-language="ja"] main h1,body[data-language="ja"] main h2,body[data-language="ja"] main h3{overflow-wrap:anywhere;line-break:strict;letter-spacing:.01em}
body[data-language="ja"] .editorial-title h1{font-size:clamp(48px,5.7vw,100px);line-height:1.4}
body[data-language="ja"] .belief-heading h2{font-size:clamp(44px,5.3vw,88px);line-height:1.4}
body[data-language="ja"] .editorial-duo h3{font-size:clamp(24px,2.4vw,40px);line-height:1.5}
body[data-language="ja"] .overlap-feature h2{font-size:clamp(40px,5vw,82px);line-height:1.4}
body[data-language="ja"] .catalog-title,body[data-language="ja"] #dialog-title{font-family:var(--title-en);font-weight:500;overflow-wrap:anywhere}
body[data-language="ja"] .detail-chapters h3{font-family:var(--title-en);font-weight:500}
body[data-language="ja"] .plate-type{overflow-wrap:anywhere}
body[data-language="ja"] .catalog-format{overflow-wrap:anywhere}
@media(max-width:600px){
 .locale-control{gap:8px;font-size:10px}
 .locale-control select{padding:6px 20px 6px 8px;max-width:135px}
 .dialog-languages{margin-right:12px;margin-left:auto}
 .dialog-languages select{max-width:118px}
 .dialog-bar{gap:10px;flex-wrap:wrap}
 .language-bar{gap:12px;flex-wrap:wrap}
 #compare-toggle{white-space:normal;max-width:130px}
 #language-status{padding-left:20px;padding-right:20px}
 body[data-language="ja"] .editorial-title h1{font-size:9.3vw;line-height:1.5}
 body[data-language="ja"] .belief-heading h2{font-size:11vw;line-height:1.4}
 body[data-language="ja"] .editorial-duo h3{font-size:27px;line-height:1.5}
 body[data-language="ja"] .overlap-feature h2{font-size:11vw;line-height:1.5}
 body[data-language="ja"] .label h2{font-size:26px;line-height:1.5}
}
/* Korean and Thai use system fonts with complete script coverage. */
body[data-language="ko"]{font-family:'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif;--title-zh:'AppleMyungjo','Batang','Noto Serif KR',serif;word-break:keep-all;overflow-wrap:anywhere}
body[data-language="th"]{font-family:'Thonburi','Leelawadee UI','Noto Sans Thai',Tahoma,sans-serif;--title-zh:'Thonburi','Leelawadee UI','Noto Sans Thai',Tahoma,sans-serif;word-break:normal;line-break:auto;overflow-wrap:anywhere;line-height:1.9}
body[data-language="ko"] main h1,body[data-language="ko"] main h2,body[data-language="ko"] main h3{letter-spacing:0;line-height:1.45}
body[data-language="th"] main h1,body[data-language="th"] main h2,body[data-language="th"] main h3{letter-spacing:0;line-height:1.6;font-weight:600}
body:is([data-language="ko"],[data-language="th"]) .editorial-title h1{font-size:clamp(42px,5.5vw,92px)}
body:is([data-language="ko"],[data-language="th"]) .belief-heading h2{font-size:clamp(40px,5.2vw,84px)}
body:is([data-language="ko"],[data-language="th"]) .editorial-duo h3{font-size:clamp(23px,2.5vw,40px)}
body:is([data-language="ko"],[data-language="th"]) .overlap-feature h2{font-size:clamp(40px,5vw,80px)}
body:is([data-language="ko"],[data-language="th"]) .catalog-title,body:is([data-language="ko"],[data-language="th"]) #dialog-title,body:is([data-language="ko"],[data-language="th"]) .detail-chapters h3{font-family:var(--title-en);font-weight:500;word-break:normal;overflow-wrap:anywhere}
body[data-language="th"] .text-link,body[data-language="th"] #nav,body[data-language="th"] .language-bar,body[data-language="th"] .issue-label{letter-spacing:0;line-height:1.9}
body[data-language="th"] .format,body[data-language="th"] .catalog-format{line-height:1.9}
@media(max-width:600px){
 body:is([data-language="ko"],[data-language="th"]) .editorial-title h1{font-size:9.5vw}
 body:is([data-language="ko"],[data-language="th"]) .belief-heading h2{font-size:10.5vw}
 body:is([data-language="ko"],[data-language="th"]) .editorial-duo h3{font-size:26px}
 body:is([data-language="ko"],[data-language="th"]) .overlap-feature h2{font-size:11vw}
 body:is([data-language="ko"],[data-language="th"]) .label h2{font-size:25px}
 body[data-language="th"] .detail-intro{line-height:2}
 body[data-language="th"] .dialog-bar{gap:8px}
}
/* Keep translated menu labels on one line on narrow phones. */
@media(max-width:600px){
 header{gap:16px}
 header .brand{width:min(210px,55vw)}
 .menu-toggle{flex:none;white-space:nowrap}
}
