/* ============================================================
   RTL overrides — Arabic (ar) pages only.
   Loaded AFTER style.css; scoped to [dir="rtl"] so other
   languages (en/ru/uk) are never affected.
   Most layout (flex/grid) flips automatically with dir="rtl";
   these rules fix the few hardcoded LTR properties.
   ============================================================ */

html[dir="rtl"],
html[dir="rtl"] body { direction: rtl; text-align: right; }

/* Tables: align headers and cells to the right in RTL */
html[dir="rtl"] table.spec th,
html[dir="rtl"] table.spec td { text-align: right; }

/* FAQ question button */
html[dir="rtl"] .faq-q { text-align: right; }

/* Bullet list (cat-spec) — flip the left bullet/padding to the right */
html[dir="rtl"] .cat-spec li { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .cat-spec li::before { left: auto; right: 0; }

/* FAQ answer lists */
html[dir="rtl"] .faq-list { padding-left: 0; padding-right: 20px; }

/* Timeline: move the vertical rule and node markers to the right edge */
html[dir="rtl"] .timeline { padding-left: 0; padding-right: 26px; }
html[dir="rtl"] .timeline::before { left: auto; right: 6px; }
html[dir="rtl"] .tl-item { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .tl-item::before { left: auto; right: -23px; }

/* About split: in a fully RTL page the default 2-col grid already
   places the first column (text) on the right, so do NOT apply the
   .reverse hack (which is only for forcing RTL inside LTR pages). */
html[dir="rtl"] .about-split.reverse { direction: ltr; }
html[dir="rtl"] .about-split.reverse > * { direction: rtl; }
