/* RTL (Farsi, Urdu) overrides */
body { direction: rtl; text-align: right; }

/* Flip layout directions */
.post-card-tag { margin-right: 0; }

.post-nav-prev { border-right: 3px solid var(--color-red); border-left: none; }
.post-nav-next { border-left: 3px solid var(--color-red); border-right: none; }
.post-nav-prev { align-items: flex-end; text-align: right; }
.post-nav-next { align-items: flex-start; text-align: left; }

/* Swap blockquote border */
.gh-content blockquote {
  border-right: 4px solid var(--color-red);
  border-left: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding-right: 1.2em;
  padding-left: 0;
}

/* List indent direction */
.gh-content ul, .gh-content ol {
  padding-right: 1.5em;
  padding-left: 0;
}

/* Search text alignment */
.search-input { text-align: right; }
.advanced-search summary { flex-direction: row-reverse; }

/* Byline */
.post-full-byline { flex-direction: row-reverse; justify-content: flex-end; }

/* Language/font specifics handled via Code Injection */
.ur-lang, .fa-lang {
  font-feature-settings: "kern" 1;
  font-kerning: normal;
}

/* Section label bar goes on right in RTL */
.section-label { flex-direction: row-reverse; }

/* Post nav: swap arrow labels */
.post-nav-next .post-nav-label { text-align: right; }
.post-nav-prev .post-nav-label { text-align: left; }

/* Post feed card text alignment */
.post-card-content { text-align: right; }
.post-card-meta { flex-direction: row-reverse; justify-content: flex-end; }
