/* Locale-aware typography follows the existing RTM palette and component hierarchy. */
.rtm-language{display:inline-flex;align-items:center;margin-inline-start:clamp(8px,1.2vw,18px);flex:none;max-width:9rem}
.rtm-language select{font:inherit;font-size:16px;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23d4c3a1' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;line-height:1.35;letter-spacing:normal;text-transform:none;color:var(--ink,#d4c3a1);background:var(--bg,#0e0f10);border:1px solid var(--line,rgba(212,195,161,.24));border-radius:2px;min-height:44px;min-width:88px;max-width:9rem;padding:.45rem 1.35rem .45rem .55rem;cursor:pointer;color-scheme:dark}
.rtm-language select:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* iPhone audit 18 Nov 2026 (finding 14): 16 px so iOS never zooms on the tap, drawn by the page (not iOS's light control) so the
   chosen language stays readable while the menu is open; the field is marked while it has focus */
.rtm-language select:focus{color:var(--ink,#d4c3a1);background-color:var(--bg,#0e0f10);border-color:var(--ink,#d4c3a1)}
.rtm-language select[aria-busy=true]{opacity:.65;cursor:progress}
.rtm-language option{font-family:system-ui,sans-serif;font-size:14px;background:#0e0f10;color:#d4c3a1}
body>.rtm-language{position:fixed;top:14px;right:18px;z-index:30}
.rtm-language-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html:lang(ko) body{font-family:'Söhne Breit','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif;word-break:keep-all}
html:lang(ja) body{font-family:'Söhne Breit','Hiragino Sans','Yu Gothic','Meiryo','Noto Sans JP',sans-serif;line-break:strict}
html:lang(zh-CN) body{font-family:'Söhne Breit','PingFang SC','Microsoft YaHei','Noto Sans SC',sans-serif;line-break:strict}
html:lang(th) body{font-family:'Söhne Breit','Leelawadee UI','Thonburi','Noto Sans Thai',sans-serif;word-break:normal;line-break:auto}
html:not(:lang(en)) :is(p,li,label,button,a,input,select,summary,h1,h2,h3,h4){letter-spacing:normal}
html:not(:lang(en)) :is(p,li,label,summary){line-height:1.5}
html:not(:lang(en)) :is(.buyrow .act a,.bundle-buy,.trial-btn,.btn-primary,.cn-form button){white-space:normal;overflow-wrap:break-word;text-align:center}
html:not(:lang(en)) :is(.cn-nav,.cn-menu,.account-nav){letter-spacing:normal}
@media(max-width:560px){.rtm-language{margin-inline-start:0;max-width:8rem}.rtm-language select{min-width:88px;max-width:8rem}.cn-nav.rtm-has-language{margin-inline-start:auto;margin-inline-end:12px;gap:0}}
@media(prefers-reduced-motion:reduce){.rtm-language *{scroll-behavior:auto;transition:none!important}}

/* Navigation words stay on one line; use the existing menu before the language picker crowds them. */
.cn-nav a,.cn-nav .sw{white-space:nowrap;flex-shrink:0}
.rtm-language button{min-width:44px;min-height:44px;color:inherit;background:transparent;border:1px solid currentColor}
@media(max-width:820px){.cn-nav.rtm-has-language>a{display:none}.cn-nav.rtm-has-language{margin-inline-start:auto;margin-inline-end:12px;gap:0}.cn-bar:has(.rtm-has-language) .cn-burger{display:flex}}
/* Keep whole prices and product names readable inside narrow store cells. */
@media(max-width:420px){
  .store-page .bundle-tiers,.store-page .bundle-picks{grid-template-columns:minmax(0,1fr)}
  .store-page .bundle-tier{border-right:0}
  .store-page .bundle-tier+.bundle-tier{border-top:1px solid var(--line)}
  .store-page .bundle-picks button:last-child:nth-child(odd){grid-column:auto}
}

/* Balance translated home captions without changing their type size or placement. */
html:not(:lang(en)) .ch-brand h1,html:not(:lang(en)) .ch-brand h1 span,html:not(:lang(en)) .ch-brand .lead{text-wrap:balance}
html:not(:lang(en)) .ch-brand h1>span{display:inline-block;width:100%;text-wrap:balance}
