/* Longer language lists remain keyboard-accessible within a narrow preview. */
.site-header .languages div {width:max-content;max-width:calc(100vw - 32px);max-height:min(60dvh,480px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.site-header .languages a {text-align:start;white-space:nowrap;unicode-bidi:isolate}
.site-header .site-selectors {margin-left:0;margin-inline-start:auto}
.site-header .languages summary::after {margin-left:0;margin-inline-start:6px}
.logo {direction:ltr;unicode-bidi:isolate;display:inline-block}
/* Use system fonts with the needed scripts instead of applying Latin spacing. */
:lang(ar) {font-family:Tahoma,"Segoe UI",sans-serif}
:lang(hi) {font-family:"Nirmala UI","Mangal",sans-serif}
:lang(zh-Hans) {font-family:"Microsoft YaHei","PingFang SC",sans-serif}
.logo,.logo span {font-family:'Instrument Sans',sans-serif}
:is(:lang(ar),:lang(hi),:lang(zh-Hans)) :is(h1,h2,h3,.button,.market-eyebrow,.section-kicker,.technology-caption) {font-family:inherit;letter-spacing:normal;line-height:1.4}
:lang(zh-Hans) :is(p,h1,h2,h3,a) {word-break:normal;overflow-wrap:anywhere}
[dir="rtl"] :is(.languages>div,.markets[open]>div,.secondary-navigation>nav) {right:auto;left:0}
[dir="rtl"] :is(input[type="email"],input[type="number"],input[type="tel"],output,time) {direction:ltr;unicode-bidi:isolate;text-align:start}
[dir="rtl"] :is(.hero-image,.logo) {direction:ltr}
[dir="rtl"] .technology-flow li {direction:rtl;text-align:start}
[dir="rtl"] .hero-image figcaption {right:auto;left:12px}
[dir="rtl"] .process li:not(:last-child)::after {content:'←';padding-right:0;padding-inline-start:clamp(6px,2vw,28px)}
[dir="rtl"] .process li {padding-inline:0 12px}
[dir="rtl"] .skip-content {left:auto;right:16px}
@media(max-width:700px) {
  .site-header .languages div {max-height:50dvh}
  :is(:lang(ar),:lang(hi)) .site-header .mainnav a {font-size:.78rem;line-height:1.4}
  [dir="rtl"] .site-header .site-selectors .languages div {left:0;right:auto}
}
