/* Language controls and script-aware type; original brand artwork is unchanged. */
:root { --locale-font: 'Manrope', Arial, sans-serif; }
:root:lang(ar), :root:lang(ckb) { --locale-font: 'Noto Sans Arabic', 'Noto Naskh Arabic', Tahoma, 'Geeza Pro', Arial, sans-serif; }
:root:lang(zh-Hans) { --locale-font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Heiti SC', sans-serif; }
body, button, input, textarea, select, .editorial-menu .eyebrow, .editorial-menu .editorial-menu-links a { font-family: var(--locale-font); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.language-switch { display: inline-flex; align-items: center; flex: 0 1 auto; gap: 5px; min-width: 0; max-width: 174px; color: #e8ce9d; }
.language-icon { font: 24px/1 Arial, sans-serif; }
.language-switch select { color: #f5f1e7; background: #171817; border: 1px solid #997332; border-radius: 9px; min-height: 44px; max-width: 145px; width: 100%; padding: 8px 5px; font-size: .8rem; cursor: pointer; }
.language-switch select:focus-visible { outline: 2px solid #e7bf62; outline-offset: 3px; }
.header-inner { gap: 18px; }
.desktop-nav { gap: 20px; }
.hero-kicker, .footer-bottom, .next-inner { flex-wrap: wrap; }
.hero-kicker > *, .form-grid > *, .reading-grid > *, .tool-grid > *, .connection-grid > *, .hero-columns > *, .page-hero-grid > * { min-width: 0; }
.page-title, .section-title, .world-row h3, .portal-content h3, .connection-card h3, .home-index-label, .desktop-nav a { overflow-wrap: anywhere; }
:root:not(:lang(en)) .page-title { font-size: clamp(2.8rem, 5.8vw, 6rem); }
:root:not(:lang(en)) .header-brief { display: none; }
:root:lang(ar) :is(h1,h2,h3,.eyebrow,.header-signature,.editorial-menu-links a),
:root:lang(ckb) :is(h1,h2,h3,.eyebrow,.header-signature,.editorial-menu-links a),
:root:lang(zh-Hans) :is(h1,h2,h3,.eyebrow,.header-signature,.editorial-menu-links a) { letter-spacing: normal; }
:root:lang(ar) :is(.section-title,.page-title,.editorial-menu-links a),
:root:lang(ckb) :is(.section-title,.page-title,.editorial-menu-links a) { line-height: 1.45; }
:root:lang(zh-Hans) :is(.section-title,.page-title) { line-height: 1.3; }
[dir='rtl'] .hero-name { direction: ltr; text-align: right; font-family: 'Manrope', Arial, sans-serif; letter-spacing: -.055em; }
[dir='rtl'] .brand, [dir='rtl'] .footer-wordmark { direction: ltr; }
[dir='rtl'] .menu-button span { margin-left: 0; margin-inline-start: 10px; }
[dir='rtl'] .editorial-menu-links::before { left: auto; right: 0; }
[dir='rtl'] .editorial-menu .menu-creator::after { left: auto; right: 2px; }
[dir='rtl'] .editorial-menu .menu-close { padding-left: 0; padding-inline-end: 8px; }
[dir='rtl'] :is(input,textarea) { text-align: start; }
[dir='rtl'] .tool-aside ol { padding-left: 0; padding-inline-start: 23px; }
[dir='rtl'] .home-index-link:not(:first-child) { border-left: 0; border-inline-start: 1px solid #d6b47133; }
[dir='rtl'] .portal-number { left: auto; right: 25px; }
[dir='rtl'] .portal-open svg { transform: scaleX(-1); }
[dir='rtl'] .brief-print-sheet { direction: rtl; text-align: right; }
@media (max-width: 1100px) {
  .header-brief { display: none; }
  .header-inner { gap: 12px; }
  .desktop-nav { gap: 14px; }
  .brand-wordmark { width: 130px; }
}
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { justify-content: flex-start; }
  .language-switch { margin-inline-start: auto; }
}
@media (max-width: 600px) {
  .header-inner { gap: 9px; }
  .header-signature { display: none !important; }
  .brand-wordmark { display: none; }
  .language-switch { max-width: 145px; }
  .language-switch select { max-width: 120px; }
  .language-icon { display: none; }
  .menu-button { padding-inline: 12px; }
  .hero-kicker { align-items: start; gap: 9px; }
  :root:not(:lang(en)) .page-title { font-size: clamp(2.45rem, 9.5vw, 3.6rem); }
  [dir='rtl'] .editorial-menu .editorial-menu-links .menu-creator { font-size: clamp(2.4rem, 12vw, 4.5rem); }
  [dir='rtl'] .editorial-menu .editorial-menu-links .menu-logistics { font-size: clamp(2rem, 10vw, 4rem); }
  .connection-switch { flex-wrap: wrap; }
}
@media print { .language-switch { display: none; } }
:root:lang(ar) :is(.section-title,.page-title,.home-portals .home-portal h3,.connection-card h3,.tool-aside h3,.checklist-panel h3,.next-inner p,.brief-print-sheet h1),
:root:lang(ckb) :is(.section-title,.page-title,.home-portals .home-portal h3,.connection-card h3,.tool-aside h3,.checklist-panel h3,.next-inner p,.brief-print-sheet h1),
:root:lang(zh-Hans) :is(.section-title,.page-title,.home-portals .home-portal h3,.connection-card h3,.tool-aside h3,.checklist-panel h3,.next-inner p,.brief-print-sheet h1) { font-family: var(--locale-font); letter-spacing: normal; }
[dir='rtl'] summary { padding-right: 0; padding-inline-end: 36px; }
[dir='rtl'] summary::after { right: auto; left: 0; }
[dir='rtl'] .creator-window .window-label { text-align: start; }
[dir='rtl'] .home-index svg.home-index-icon { margin-left: 0; margin-inline-start: auto; }
[dir='rtl'] .home-index-link:first-child { padding-left: 25px; padding-inline-start: 0; }
[dir='rtl'] .home-index-link:last-child { padding-right: 25px; padding-inline-end: 0; }
[dir='rtl'] .home-index-link + .home-index-link::before { left: auto; right: 0; }
@media (max-width: 760px) {
 [dir='rtl'] .home-index-link:first-child, [dir='rtl'] .home-index-link:last-child { padding-inline: 0; }
 [dir='rtl'] .home-index-link:not(:first-child) { border-inline-start: 0; }
}
