/* Right-to-left pages (Arabic, ADR 0051): what the browser does not flip by itself. */

[dir="rtl"] body { text-align: right; }
[dir="rtl"] th, [dir="rtl"] td, [dir="rtl"] .cl-table th, [dir="rtl"] .cl-table td, [dir="rtl"] .mt-table th, [dir="rtl"] .mt-table td { text-align: right; }
[dir="rtl"] .mt-table tbody th { left: auto; right: 0; }
[dir="rtl"] .mt-nav .mt-next, [dir="rtl"] .cl-years .cl-next, [dir="rtl"] .ev-years .ev-next { margin-left: 0; margin-right: auto; }
[dir="rtl"] .pt-qibla-sun ul, [dir="rtl"] .ev-related ul { padding-left: 0; padding-right: 1.2em; }
[dir="rtl"] .yr-chart { padding: 0 44px 0 0; }
[dir="rtl"] .yr-hours { left: auto; right: 0; }
[dir="rtl"] .yr-hours li { right: auto; left: 4px; }
/* The chart's time runs left to right like a calendar's months: keep it so. */
[dir="rtl"] .yr-plot, [dir="rtl"] .yr-months { direction: ltr; }
[dir="rtl"] .crumbs span[aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .pt-rose { direction: ltr; }
/* Arrows for previous and next, and for "from → to", point the way the page reads. */
[dir="rtl"] .arw { display: inline-block; transform: scaleX(-1); }
