/* Extra-language pages only (linked by scripts/apply-locales.mjs into out/<zh|zh-hant|ar|vi|ru>). */

/* the brand type uses negative tracking; it breaks Arabic letter joining and cramps CJK / diacritics */
html[lang="ar"] body *,
html[lang^="zh"] :is(h1, h2, h3, h4, .hero-title),
html[lang="ru"] :is(h1, h2, h3, h4, .hero-title) { letter-spacing: 0 !important; } /* Cyrillic falls back to a system font */
html[lang="ar"] :is(h1, h2, h3, h4, .hero-title) { line-height: 1.4 !important; }
html[lang^="zh"] :is(h1, h2, h3, h4, .hero-title) { line-height: 1.3 !important; }
html[lang="vi"] :is(h1, h2, h3, h4, .hero-title) { line-height: 1.22 !important; }
html[lang="ru"] :is(h1, h2, h3, h4, .hero-title) { overflow-wrap: break-word; hyphens: auto; }

/* Arabic copy reads RTL while the site's editorial layout keeps its established LTR geometry. */
html[lang="ar"] body { direction: ltr; }
html[lang="ar"] body .locale-en.lang-ar[dir="rtl"] { direction: ltr; }
html[lang="ar"] body :is(h1, h2, h3, h4, h5, h6, p, blockquote, figcaption, dd) {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}
html[lang="ar"] body :is(input, textarea, select) {
  direction: rtl;
  text-align: right;
}

/* Keep image overlays with the fixed left-to-right composition. */
html[lang="ar"] :is(.scrim, [class*="__scrim"]) { transform: none; }
