/* Bilingual informational-page sections are scoped to the page renderer. */
.page-shell article.nuvora-bilingual-page [data-nuvora-bilingual-language] {
  display: block;
}

/* English is the safe first-paint default because WordPress renders html lang
 * before the persisted client language is available. JS switches this state
 * synchronously when the asset loads. */
html:not([data-nuvora-language="ar"]) .page-shell article:has(> section[lang="en"]):has(> section[lang="ar"]) > section[lang="ar"],
html[data-nuvora-language="en"] .page-shell article:has(> section[lang="en"]):has(> section[lang="ar"]) > section[lang="ar"],
html[data-nuvora-language="ar"] .page-shell article:has(> section[lang="en"]):has(> section[lang="ar"]) > section[lang="en"] {
  display: none !important;
}

.page-shell article [data-nuvora-bilingual-language].nuvora-language-hidden,
.page-shell article [data-nuvora-bilingual-language][hidden] {
  display: none !important;
}

.page-shell article [data-nuvora-bilingual-language="ar"] {
  direction: rtl;
  text-align: start;
}

.page-shell article [data-nuvora-bilingual-language="en"] {
  direction: ltr;
  text-align: start;
}

.page-shell article.nuvora-bilingual-page > .nuvora-localized-page-title {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .page-shell article [data-nuvora-bilingual-language] {
    transition: none !important;
  }
}
