/* ─────────────────────────────────────────────────────
   RTL overrides for Persian — loaded only on /fa/ pages
   ───────────────────────────────────────────────────── */

/* ── Direction & Font ── */
html, body {
  direction: rtl;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

/* ── Navigation ── */
nav ul {
  flex-direction: row-reverse;
}

/* ── Lang toggle repositioned for RTL ── */
.lang-toggle {
  left: 1.25rem;
  right: auto;
}

/* ── Post/page content ── */
article,
.post-content,
.page-content {
  direction: rtl;
  text-align: right;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 500;
  text-align: right;
}

/* ── Lists ── */
ul, ol {
  padding-right: 1.5rem;
  padding-left: 0;
}

/* ── Footer ── */
footer {
  direction: rtl;
}

/* ── Back to top button ── */
#top-button {
  left: 1.5rem;
  right: auto;
}

/* ── Gallery caption alignment ── */
.gallery-caption {
  text-align: right;
}

/* ── Line height — Persian needs more breathing room ── */
body, p {
  line-height: 2;
}
