/* Arabic changes reading direction only. Keep English grid/flex/media placement. */
html[lang^="ar"] body {
  direction: ltr;
}

html[lang^="ar"] :is(h1, h2, h3, p, legend, .lh-faq__question,
  .wuyi-field > label, .wuyi-choice > span, .wuyi-check > span,
  .wuyi-email-help, .wuyi-trust > span, .lh-footer__nav a) {
  direction: rtl;
  unicode-bidi: plaintext;
}

/* These labels are flex rows with decorative marks: preserve their row order. */
html[lang^="ar"] :is(.lh-kicker, .lh-static-hero__eyebrow) {
  direction: ltr;
}

html[lang^="ar"] :is(.wuyi-field input:not([type="tel"]):not([type="email"]),
  .wuyi-field textarea, .wuyi-field select) {
  direction: rtl;
  unicode-bidi: plaintext;
}

/* Latin identities and contact details must retain their original ordering. */
html[lang^="ar"] :is(.lh-sales-card h3, .lh-sales-card__value,
  .lh-sales-card__label, .wuyi-field input[type="tel"],
  .wuyi-field input[type="email"], .lh-insights article h3,
  .lh-insights article p, .lh-insights time) {
  direction: ltr;
  unicode-bidi: isolate;
}
