/* Fifty language choices: use a scrollable, viewport-bounded menu without moving the sticky header. */
.ft-locales summary{display:flex;align-items:center;gap:6px}
.ft-locales .ft-locale-list{right:0;left:auto;width:min(22rem,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(64dvh,32rem);overflow:auto;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr))}
.ft-locales .ft-locale-list a{min-height:44px;unicode-bidi:isolate;text-align:start;overflow-wrap:anywhere;white-space:normal;display:flex;align-items:center}
.ft-locales .ft-locale-list a[dir=rtl]{text-align:right}
html[dir=rtl] .ft-locales .ft-locale-list{left:0;right:auto}
html[dir=rtl] .topics-menu{right:auto;left:0}
html[dir=rtl] .reading-progress span{transform-origin:right center}
html[dir=rtl] .breadcrumbs,html[dir=rtl] .article-hero,html[dir=rtl] .page-hero,html[dir=rtl] .prose,html[dir=rtl] .footer-main{text-align:start}
html[dir=rtl] input[type=number],html[dir=rtl] input[type=range]{direction:ltr}
@media(max-width:780px){
 .ft-locales .ft-locale-list{position:fixed;top:calc(80px + env(safe-area-inset-top,0px));right:max(12px,env(safe-area-inset-right,0px));left:auto;width:min(310px,calc(100vw - 24px));min-width:0;max-height:min(64dvh,calc(100dvh - 100px),470px);z-index:200}
 html[dir=rtl] .ft-locales .ft-locale-list{left:max(12px,env(safe-area-inset-left,0px));right:auto}
}
@media(max-width:620px){
 .ft-locales summary[data-locale-code]::after{content:attr(data-locale-code)}
 .ft-locales summary bdi{font-size:0}
}
