/*
 * RTL overrides for Fireball RTL.
 *
 * The theme enqueues this file (see fireball_rtl_scripts() in functions.php)
 * whenever is_rtl() is true — i.e. the active locale is right-to-left, e.g.
 * Persian (fa_IR), Arabic (ar), or Hebrew (he_IL). It loads *in addition* to the
 * main stylesheet and only overrides the few things that must stay physical.
 *
 * The main stylesheet is authored with CSS *logical properties*
 * (margin-inline-*, padding-inline-*, inset-inline-*, text-align: start/end,
 * border-inline-*), so it already mirrors correctly in RTL. This file only
 * fixes the handful of things that must stay physically oriented, and tunes a
 * couple of RTL-specific typographic details.
 */

/* Code, preformatted blocks and inline code stay left-aligned & LTR even in an
   RTL document, because source code and shell output read left-to-right. */
pre,
code,
kbd,
samp,
.wp-block-code,
.wp-block-preformatted {
	direction: ltr;
	text-align: left;
	unicode-bidi: isolate;
}

/* The outbound-link arrow on Linked List titles should point the RTL way (↖). */
.entry-title.is-linked .entry-title-link::after {
	content: " \2196"; /* ↖ */
}

/* Slightly tighter letter-spacing off for Persian/Arabic — negative tracking
   hurts joined scripts, so neutralise it on the wordmark. */
.site-title { letter-spacing: 0; }

/* Persian/Arabic numerals and mixed-direction meta read better fully isolated. */
.entry-meta,
.comment-metadata,
time { unicode-bidi: plaintext; }

/* Quotation mark direction for blockquotes handled by the border via logical
   props already; nothing else needed here. */
