/* Language selectors grow without pushing the header or footer out of view. */
.new3-site .footer-languages > a[lang]{direction:ltr;white-space:nowrap}
/* The native modal keeps focus inside and leaves the page behind it inert. */
.new3-site dialog.language-dialog{
 width:min(780px,calc(100vw - 40px));max-height:calc(100dvh - 48px);
 margin:auto;padding:32px;overflow:hidden;
 background:linear-gradient(135deg,#d9bc7c20,transparent 65%),#242321d9;
 border-color:#ddc38d60;
}
.new3-site .language-dialog[open]{display:flex;flex-direction:column;animation:language-dialog-enter .24s ease-out}
.new3-site .language-dialog>.dialog-heading{flex-shrink:0;align-items:center;gap:20px;margin:0 0 24px}
.new3-site .language-dialog .eyebrow{font-size:12px;letter-spacing:.18em}
.new3-site .language-dialog h2{margin:10px 0 0;font-size:clamp(25px,3vw,32px);line-height:1.3;letter-spacing:0}
.language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:0;overflow-y:auto;overscroll-behavior:contain;direction:ltr;padding:4px;margin:-4px;scrollbar-width:thin;scrollbar-color:#c8ab6d70 transparent}
.new3-site .language-options>a{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:66px;padding:16px 28px 16px 16px;border:1px solid #ffffff24;border-radius:15px;background:#ffffff07;color:#f4efe5;text-decoration:none;text-align:start;transition:background .2s,border-color .2s,transform .2s}
.new3-site .language-options>a:hover{transform:translateY(-2px);background:#dbc18b1a;border-color:#dfc38980}
.new3-site .language-options>a[aria-current]{background:linear-gradient(120deg,#d4b27335,#d4b27310);border-color:#d9bc7cbd;color:#f5dcab;box-shadow:inset 0 1px 0 #f7e1b220}
.new3-site .language-options .language-flag{font-size:27px;flex:none}
.language-name{min-width:0;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.language-selected{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:15px;height:15px;fill:none;stroke:#e7c783;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@keyframes language-dialog-enter{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){
 .new3-site dialog.language-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:24px 18px;border-radius:22px}
 .new3-site .language-dialog>.dialog-heading{gap:12px;margin-bottom:20px}
 .language-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .new3-site .language-options>a{min-height:72px;gap:9px;padding:13px 22px 13px 12px;border-radius:13px}
 .new3-site .language-options .language-flag{font-size:24px}
 .language-name{font-size:14px}
 .language-selected{right:6px;width:13px;height:13px}
}
@media(prefers-reduced-motion:reduce){.new3-site .language-dialog[open]{animation:none}.new3-site .language-options>a{transition:none}.new3-site .language-options>a:hover{transform:none}}
/* Keep carousels and geographic graphics in their original coordinate system.
   Their captions and articles still follow Arabic reading order. */
html[dir="rtl"] .new3-site{font-family:Tahoma,Arial,sans-serif}
html[dir="rtl"] :is(h1,h2,h3,h4,p,.eyebrow,.hero-eyebrow,.new3-hero-subtitle){letter-spacing:0}
html[dir="rtl"] :is(h1,h2,h3,h4){font-family:Tahoma,Arial,sans-serif}
html[dir="rtl"] .desktop-nav{margin-left:0;margin-right:auto}
html[dir="rtl"] .header-actions{direction:ltr}
html[dir="rtl"] .nav-dropdown{right:-22px;left:auto;text-align:right}
html[dir="rtl"] .desktop-nav > .nav-group:last-of-type .nav-dropdown{right:auto;left:0}
html[dir="rtl"] .brand,html[dir="rtl"] .footer-brand{direction:ltr}
html[dir="rtl"] .home-layout .hero-copy{left:auto;right:max(64px,calc((100vw - 1440px)/2));text-align:right}
html[dir="rtl"] .home-layout .hero-shade{background:linear-gradient(270deg,#06110cc9,transparent 85%),linear-gradient(0deg,#06110cb3,transparent 70%)}
html[dir="rtl"] .home-layout .hero-copy .hero-link{margin-right:0;margin-left:14px}
html[dir="rtl"] .new3-global-copy,html[dir="rtl"] .inner-hero-copy{text-align:right}
html[dir="rtl"] :is(.new3-world-map,.globe-canvas,.slide-selector,.hero-arrows,.honor-track,.rd-certificate-track,.rd-carousel-controls,.company-honors-track,.history-timeline,.footer-social){direction:ltr}
html[dir="rtl"] :is(.honor-track article,.honor-track .honor-card,.rd-certificate figcaption){direction:rtl}
html[dir="rtl"] :is(.cms-richtext,.group-prose,.rd-content,.product-description,.article-content){text-align:start}
html[dir="rtl"] :is(.cms-richtext,.group-prose) :is(ul,ol){padding-left:0;padding-right:24px}
html[dir="rtl"] .rd-content .rd-concept li{padding-left:0;padding-right:20px}
html[dir="rtl"] .rd-content .rd-concept li::before{left:auto;right:0}
html[dir="rtl"] .rd-content .rd-position::after{left:auto;right:0}
html[dir="rtl"] .new3-series-copy svg{right:auto;left:24px}
html[dir="rtl"] .search-dialog input{text-align:right;direction:rtl}
html[dir="rtl"] :is(.footer-languages,.language-options){direction:ltr}
html[dir="rtl"] .person-dialog figcaption{text-align:center;unicode-bidi:plaintext}
html[dir="rtl"] :is(.hero-copy h1,.hero-copy h2,.hero-mission,.new3-hero-subtitle){overflow-wrap:anywhere}
@media(max-width:1020px){html[dir="rtl"] .home-layout .hero-copy{right:32px}}
@media(max-width:760px){html[dir="rtl"] .home-layout .hero-copy{right:20px}}
/* Preserve the phone artwork's orientation and leave its original clear copy area. */
html[dir="rtl"] .app-hero-inner{direction:ltr}
html[dir="rtl"] .app-hero-copy{direction:rtl;text-align:right}
html[dir="rtl"] .group-page .group-hero .inner-hero-shade{background:linear-gradient(270deg,#08120fe3,#0c171c50 78%),linear-gradient(0deg,#111713,transparent 90%)}
html[dir="rtl"] .app-recommended{margin-left:0;margin-right:auto}
html[dir="rtl"] .app-install>span[aria-hidden]{margin-left:0;margin-right:auto}
html[dir="rtl"] :is(.new3-facts-glass,.new3-stats-strip,.group-metrics) strong{direction:ltr;unicode-bidi:isolate}
