/* 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{display:inline-flex;align-items:center;min-height:30px;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 7px;min-height:34px}.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 h2,html[lang="ar"] .site-footer h4,html[lang="ar"] .footer-social-label{letter-spacing:0}
html[lang="zh-Hans"] .eyebrow,html[lang="zh-Hans"] .site-footer h2,html[lang="zh-Hans"] .site-footer h4,html[lang="zh-Hans"] .footer-social-label{letter-spacing:.05em}

/* Longer navigation labels used to force a hamburger on non-English pages up to 1280px.
   The header now has tighter padding and main.js adds .nav-compact only when the 8-item
   row does not actually fit, so every language can keep a desktop row at 1280px when it fits. */

/* 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}
[dir=rtl] .hp{left:auto!important;right:-10000px!important}[dir=rtl] .skip{left:auto;right:-999px}[dir=rtl] .skip:focus{right:10px}
/* gold tools: history chart + converter */
.gold-tools{margin-top:34px}
.gt-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:22px}
.gt-panel{background:#fff;color:var(--ink);border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,.25);border-top:5px solid var(--gold);padding:18px 22px}
.gold-section .gt-panel p{color:var(--muted)}
.gt-panel h3{margin:0 0 6px;font-size:1.12rem;color:var(--navy)}
.gt-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.gt-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gt-controls select{font:600 .88rem var(--sans);padding:7px 10px;border:1px solid var(--line);border-radius:8px;color:var(--navy);background:#fff;max-width:100%;min-height:38px}
.gt-range{display:inline-flex;border:1px solid var(--gold);border-radius:999px;overflow:hidden}
.gt-range button{font:700 .85rem var(--sans);border:0;background:#fff;color:var(--navy);padding:8px 14px;cursor:pointer;min-height:38px}
.gt-range button[aria-pressed="true"]{background:var(--gold);color:#fff}
.gt-chart{position:relative;min-height:160px}
.gt-chart svg{width:100%;height:auto;display:block;touch-action:pan-y}
.gt-grid-l{stroke:#ece8de;stroke-width:1}
.gt-axis{font:11px var(--sans);fill:#6b7280}
.gt-line{fill:none;stroke:var(--gold);stroke-width:2.4;stroke-linejoin:round}
.gt-area{fill:rgba(184,150,62,.12)}
.gt-dot{fill:var(--navy)}
.gt-cursor{stroke:var(--navy);stroke-dasharray:3 3}
.gt-hl{fill:var(--gold);stroke:#fff;stroke-width:2}
.gt-tip{position:absolute;background:var(--navy);color:#fff;font-size:.8rem;padding:6px 9px;border-radius:6px;pointer-events:none;white-space:nowrap}
.gt-tip strong{display:block;color:var(--gold-light);font-size:.75rem}
.gt-info,.gt-sub,.gt-rate{font-size:.82rem;margin:8px 0 0}
.gt-info a,.gt-rate a{color:var(--navy);font-weight:700}
.gt-loading,.gt-note{color:var(--muted);padding:40px 0;text-align:center}
.gt-conv label{display:block;font-weight:700;color:var(--navy);font-size:.88rem;margin:12px 0 4px}
.gt-conv input{width:100%;font:700 1.05rem var(--sans);padding:10px 12px;border:1px solid var(--line);border-radius:8px;min-height:44px}
.gt-conv input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,150,62,.25)}
.gt-fill{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:center}
.gt-fill button{font:700 .78rem var(--sans);color:var(--navy);background:#fff;border:1px solid var(--gold);border-radius:999px;padding:6px 10px;cursor:pointer;min-height:34px}
.gt-fill button:hover{background:var(--gold-pale)}
.gt-fill small{color:var(--muted);font-size:.75rem}
.gt-out{margin-top:12px}
.gt-res{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #f0ede6;font-size:.9rem;color:var(--navy)}
.gt-res strong{font-variant-numeric:tabular-nums;font-size:1.05rem}
.gt-err{color:#b42318}
.gold-status{font-size:.8rem;margin:0 0 8px;padding:7px 10px;background:#f3f7f1;border-radius:8px;color:#1d6b43!important}
.gold-status.is-warn{background:#fff7e6;color:#8a5a00!important}
.gold-warn{display:block;margin-top:3px}
@media (max-width:900px){.gt-grid{grid-template-columns:1fr}}
@media (max-width:480px){.gt-panel{padding:16px 14px}.gt-head{flex-direction:column;align-items:stretch}.gt-controls select{width:100%}.gt-range{align-self:flex-start}}
[dir=rtl] .gt-res strong,[dir=rtl] .gt-conv input{direction:ltr}
.gt-axis{paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
