/* Physical right placement stays the same in every reading direction. */
html:root .rei-global-header{--language-gutter:clamp(16px,4vw,48px);position:relative;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:14px 24px;box-sizing:border-box;width:100%;height:auto;min-height:148px;padding:16px calc(var(--language-gutter) + 388px) 16px var(--language-gutter);direction:ltr}
html:root .rei-global-header>.brand{margin:0;flex:0 0 auto;direction:ltr}
html:root .rei-global-header>.top-context,html:root .rei-global-header>.pill{margin:0;flex:0 1 auto;max-width:100%}
html:root .rei-global-header .header-actions,html:root .rei-global-header .site-header-actions,html:root .rei-global-header .header-links{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 16px;width:auto;min-width:0;max-width:100%;margin:0}
html:root .rei-global-header .header-actions{flex:1 1 360px}
html:root .rei-global-header .header-actions>a,html:root .rei-global-header .header-actions>button,html:root .rei-global-header .login-link,html:root .rei-global-header .signout{min-height:44px;display:inline-flex;align-items:center;white-space:normal;max-width:100%}
html:root .rei-global-header>.rei-language-nav{position:absolute;top:16px;right:var(--language-gutter);left:auto;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:6px;margin:0;padding:0;border:0;background:#fff;direction:ltr;width:364px;max-width:calc(100% - 32px);line-height:1.2}
html:root .rei-language-heading{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:4px 9px;max-width:100%;font-family:Arial,sans-serif;letter-spacing:0;text-align:right}
html:root .rei-language-label{font-size:13px;font-weight:750;color:#142a43}
html:root .rei-language-prompt{font-size:12px;font-weight:400;color:#536478}
html:root .rei-language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;box-sizing:border-box;width:100%;padding:3px;border:1px solid #dce3ec;border-radius:9px;background:#fff}
html:root .rei-global-header .rei-language-options>a{display:flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;min-width:0;min-height:44px;padding:7px 4px;font-family:Arial,sans-serif;font-size:13px;line-height:1.2;font-weight:650;letter-spacing:0;text-decoration:none;white-space:nowrap;color:#536478;border:1px solid transparent;border-radius:6px;touch-action:manipulation}
html:root .rei-language-check{width:10px;flex:0 0 10px;font-size:12px;line-height:1}
html:root .rei-language-note{display:block;margin-top:2px;font-size:10px;font-weight:400;line-height:1.2;letter-spacing:0}
html:root .rei-global-header .rei-language-options>a[aria-current=page]{color:#173fd1;background:#edf1ff;border-color:#aabdf7;font-weight:750}
html:root .rei-global-header .rei-language-options>a:hover{background:#f0f3fa;color:#173fd1}
html:root .rei-global-header .rei-language-options>a:focus-visible{outline:3px solid #648aff;outline-offset:2px}
html[dir=rtl] .rei-global-header>.top-context,html[dir=rtl] .rei-global-header>.pill,html[dir=rtl] .rei-global-header>.header-actions,html[dir=rtl] .rei-global-header>.site-header-actions,html[dir=rtl] .rei-global-header>.header-links,html[dir=rtl] .rei-global-header>nav:not(.rei-language-nav){direction:rtl}
@media(max-width:1050px){html:root .rei-global-header .header-actions{flex-basis:100%}}
@media(max-width:760px){html:root .rei-global-header{padding:16px var(--language-gutter);gap:12px 16px;min-height:0}html:root .rei-global-header>.rei-language-nav{position:static;order:-1;flex:0 0 100%;width:100%;max-width:100%}html:root .rei-language-options{width:364px;max-width:100%}html:root .rei-global-header .header-actions{flex-basis:100%;gap:8px 14px}html:root .rei-global-header .header-links,html:root .rei-global-header .site-header-actions{margin-left:auto;justify-content:flex-end}html:root .rei-global-header>.top-context{margin-left:auto}html:root .rei-global-header>.pill{white-space:normal}}
@media(max-width:420px){html:root .rei-language-options{grid-template-columns:repeat(2,minmax(0,1fr));width:288px}html:root .rei-global-header .rei-language-options>a{padding:8px}}
@media print{html:root .rei-global-header>.rei-language-nav{display:none!important}}
