/* RTL adjustments for Persian pages. Loaded only when <html dir="rtl">.
   Most layout already uses logical properties (inline-start/end, margin-inline,
   border-inline-start) so this file only patches the few physical-direction
   spots and typographic tweaks Persian needs. */

[dir="rtl"] body {
  font-feature-settings: "ss01" 1;
}

[dir="rtl"] .hero-stats,
[dir="rtl"] .nav-links,
[dir="rtl"] .header-actions,
[dir="rtl"] .footer-bottom,
[dir="rtl"] .filter-row,
[dir="rtl"] .post-meta,
[dir="rtl"] .hero-actions {
  direction: rtl;
}

[dir="rtl"] .brand-mark {
  background: linear-gradient(225deg, var(--color-brand-red), var(--color-brand-orange) 55%, var(--color-brand-yellow));
}

/* Numerals / dates read better left-aligned even inside an RTL flow */
[dir="rtl"] .stat-num,
[dir="rtl"] time {
  unicode-bidi: isolate;
}

[dir="rtl"] .post-article blockquote {
  border-inline-start: 4px solid var(--color-accent);
  border-inline-end: none;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .lead {
  letter-spacing: 0;
}
