/* RTL-specific overrides for BaharLink theme (v1.5.0) */
body { direction: rtl; }

/* Code & pre stay LTR */
.wp-block-code { direction: ltr; text-align: left; }
.article-body pre { direction: ltr; text-align: left; }
.article-body code:not(pre code) { direction: ltr; }

/* Tables stay RTL */
.wp-block-table { direction: rtl; }

/* Align utilities (RTL-aware) */
.alignleft { float: left; }
.alignright { float: right; }

/* Comment children indentation */
.comment .children { border-right: 2px solid var(--line); padding-right: 1.5rem; }

/* Article h2 with teal right-border (RTL: border on the right/start) */
.article-body h2 { border-right: 3px solid var(--brand); padding-right: 0.75rem; border-left: none; padding-left: 0; }

/* Breadcrumbs: chevrons point the RTL way — flip horizontally */
.breadcrumbs-sep svg { transform: scaleX(-1); }

/* Mobile menu panel slides in from right (RTL start side) */
.mobile-menu-panel { right: 0; left: auto; transform: translateX(100%); transition: transform 0.3s; }
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

/* Sidebar telegram icon position — keep right (start) in RTL */
.sidebar-telegram { flex-direction: row; }

/* Footer back-to-top — bottom-left in LTR (RTL = end side) — keep visible */
.back-to-top { left: 1.5rem; right: auto; }
.footer-back-to-top { flex-direction: row-reverse; }

/* Article body drop cap floats to the right (start) in RTL */
.article-body > p:first-of-type::first-letter { float: right; margin-right: 0; margin-left: 0.5rem; }
