/* Bayan — RTL stylesheet
   WordPress automatically enqueues rtl.css instead of/alongside style.css
   whenever is_rtl() is true (Arabic, Urdu, and other RTL locales). */

body{ direction: rtl; text-align: right; }

.bayan-header-inner{ flex-direction: row-reverse; }
.bayan-primary-nav ul{ flex-direction: row-reverse; }
.bayan-lang-switcher{ flex-direction: row-reverse; }

.bayan-book-cover{ box-shadow: -4px 4px 0 var(--bayan-line); }

.bayan-modal-close{ float: inline-start; }

/* Urdu (Nastaliq) benefits from extra line-height and a slightly larger
   base size than Arabic/Latin because of its calligraphic descenders */
html[lang="ur"] body{
  font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  line-height: 2.1;
  font-size: 18px;
}

html[lang^="ar"] body{
  font-family: "Noto Naskh Arabic", "Amiri", serif;
}
