/* RTL overrides — loaded only by right-to-left locales (currently /fa/).
 *
 * style.css uses physical properties (padding-left, left, border-left), so
 * dir="rtl" alone mirrors the text but leaves the numbered steps, list
 * indents and quote rules pinned to the wrong edge. Rather than convert the
 * whole sheet to logical properties — which would touch every existing page
 * and force a cache-bust on all of them — this file flips only the rules that
 * are actually direction-sensitive, and is referenced by RTL pages alone.
 */

[dir="rtl"] .steps li {
  padding-left: 0;
  padding-right: 80px;
}

[dir="rtl"] .steps .step-num {
  left: auto;
  right: 24px;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .prose li {
  padding-left: 0;
  padding-right: 4px;
}

[dir="rtl"] blockquote {
  border-left: 0;
  border-right: 3px solid var(--tg);
}

/* Inline code and commands (/next, /stop) stay latin and must not be
 * re-ordered by the bidi algorithm when they sit inside Persian prose. */
[dir="rtl"] code {
  direction: ltr;
  unicode-bidi: embed;
}
