/* Multilingual support: language bar, CJK/Arabic fonts, RTL layout */
.lang-bar{background:var(--navy-dark);color:#cfd5e2;font-size:.82rem;line-height:1.2}
.lang-bar .container{display:flex;justify-content:flex-end}
.lang-switch{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:5px 0}
.lang-switch svg{width:15px;height:15px;fill:none;stroke:var(--gold-light);stroke-width:1.7;margin-inline-end:6px;flex:none}
.lang-switch a{color:#cfd5e2;text-decoration:none;padding:4px 8px;border-radius:4px;font-weight:700;white-space:nowrap}
.lang-switch a:hover,.lang-switch a:focus-visible{background:rgba(255,255,255,.1);color:#fff}
.lang-switch a[aria-current="true"]{color:var(--navy-dark);background:var(--gold-light)}
.lang-switch a[lang="ar"]{font-family:'Noto Kufi Arabic','Noto Naskh Arabic',Tahoma,sans-serif}
.lang-switch a[lang="zh-Hans"]{font-family:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif}
@media (max-width:420px){.lang-bar .container{justify-content:center}.lang-switch a{padding:4px 6px}.lang-switch svg{display:none}}

/* Fonts */
html[lang="zh-Hans"]{--serif:'Noto Serif SC','Merriweather','Songti SC','SimSun',serif;--sans:'Noto Sans SC','Lato','PingFang SC','Microsoft YaHei',system-ui,sans-serif}
html[lang="zh-Hans"] body{line-height:1.8}
html[lang="zh-Hans"] .tagline,html[lang="zh-Hans"] .footer-tag{font-style:normal}
html[lang="ar"]{--serif:'Noto Kufi Arabic','Merriweather',Tahoma,serif;--sans:'Noto Naskh Arabic','Lato',Tahoma,'Segoe UI',Arial,sans-serif}
html[lang="ar"] body{font-size:18px;line-height:1.85}
html[lang="ar"] .tagline,html[lang="ar"] .footer-tag{font-style:normal}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{line-height:1.5}
html[lang="ar"] .eyebrow,html[lang="ar"] .site-footer h4{letter-spacing:0}
html[lang="zh-Hans"] .eyebrow,html[lang="zh-Hans"] .site-footer h4{letter-spacing:.05em}

/* Longer navigation labels: collapse to the menu button earlier */
@media (min-width:1021px) and (max-width:1280px){
  html:not([lang="en"]) .nav-toggle{display:block}
  html:not([lang="en"]) .nav{position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;background:#fff;border-bottom:1px solid var(--line);padding:8px 22px 18px;display:none;box-shadow:var(--shadow)}
  html:not([lang="en"]) .nav.open{display:flex}
  html:not([lang="en"]) .nav a{padding:12px 6px;border-bottom:1px solid #f0ede6}
  html:not([lang="en"]) .nav a[aria-current="page"]{box-shadow:none}
  html:not([lang="en"]) .nav a.btn{margin:12px 0 0;text-align:center}
}

/* Right-to-left (Arabic) */
[dir="rtl"] ul{padding-left:0;padding-right:1.2em}
[dir="rtl"] .nav a.btn{margin-left:0;margin-right:8px}
@media (max-width:1280px){[dir="rtl"] .nav a.btn{margin:12px 0 0}}
[dir="rtl"] .skip{left:auto;right:-999px}[dir="rtl"] .skip:focus{right:10px}
[dir="rtl"] .hero::before{background:linear-gradient(-100deg,rgba(19,29,52,.94) 0%,rgba(28,42,73,.86) 45%,rgba(28,42,73,.45) 100%)}
[dir="rtl"] .stat{border-left:0;border-right:1px solid rgba(255,255,255,.08)}
[dir="rtl"] .stat:first-child{border-right:0}
@media (max-width:860px){[dir="rtl"] .stat{border-right:0}}
[dir="rtl"] .checks li{padding-left:0;padding-right:28px}
[dir="rtl"] .checks li::before{left:auto;right:0}
[dir="rtl"] th,[dir="rtl"] td{text-align:right}
[dir="rtl"] .timeline{border-left:0;border-right:2px solid var(--gold);margin-left:0;margin-right:8px}
[dir="rtl"] .timeline li{padding:0 26px 22px 0}
[dir="rtl"] .timeline li::before{left:auto;right:-8px}
[dir="rtl"] .notice{border-left:0;border-right:4px solid var(--gold);border-radius:var(--radius) 0 0 var(--radius)}
[dir="rtl"] .person ul{padding-left:0;padding-right:1.1em}
[dir="rtl"] .form-status{border-left:0;border-right:4px solid}
[dir="rtl"] .agc-msg ul{padding-left:0;padding-right:1.1em}
[dir="rtl"] .agc-bot{border-bottom-left-radius:14px;border-bottom-right-radius:4px}
[dir="rtl"] .agc-user{border-bottom-right-radius:14px;border-bottom-left-radius:4px}
[dir="rtl"] .res-list a .ext{margin-left:0;margin-right:5px}
[dir="rtl"] .gold-table th{text-align:right}
[dir="rtl"] .gold-table td{text-align:left}
[dir="rtl"] .pml-table .num{text-align:left}
[dir="rtl"] .wa-float:hover .wa-label,[dir="rtl"] .wa-float:focus-visible .wa-label{margin-left:0;margin-right:8px}
[dir="rtl"] .field select{background-position:left 18px center,left 12px center}
/* Keep numbers, codes, phone numbers, coordinates and maps left-to-right */
[dir="rtl"] a[href^="tel:"],[dir="rtl"] a[href^="mailto:"],[dir="rtl"] .num,[dir="rtl"] .gold-table td,[dir="rtl"] input[type="email"],[dir="rtl"] input[type="tel"]{direction:ltr;unicode-bidi:isolate}
[dir="rtl"] .explorer-map,[dir="rtl"] .pml-map,[dir="rtl"] svg{direction:ltr}
