/* Aasiya v34: right to left layout (ar ur fa ps ug ku) and the small language-layer pieces.
   html[dir=rtl] is set by i18n.js. Logical properties first; physical flips only where a
   drawing has a direction of its own. Compass, dials and any SVG stay left to right. */
.sh-src { margin-top: 6px; font-size: .78rem; opacity: .7; text-align: center; }
.ay-fn { margin-top: 6px; font-size: .78rem; opacity: .65; line-height: 1.45; white-space: pre-line; }
.i18n-notice { font-size: .82rem; opacity: .75; margin: 8px 0; }

html[dir="rtl"] body { text-align: start; }
html[dir="rtl"] svg, html[dir="rtl"] canvas,
html[dir="rtl"] #qibla2Root .q3-stage, html[dir="rtl"] #qibla2Root .q3-stagewrap,
html[dir="rtl"] .compass, html[dir="rtl"] .dial, html[dir="rtl"] .tasbih-ring {
  direction: ltr; unicode-bidi: isolate;
}
/* prayer times, clocks and numbers keep their own order */
html[dir="rtl"] .pt-time, html[dir="rtl"] .time, html[dir="rtl"] [class*="countdown"],
html[dir="rtl"] input[type="number"], html[dir="rtl"] input[type="time"], html[dir="rtl"] input[type="tel"] {
  direction: ltr; unicode-bidi: plaintext;
}
html[dir="rtl"] .ar { direction: rtl; }
/* arrows that point back or forward are mirrored; drawings are not */
html[dir="rtl"] .icon-btn, html[dir="rtl"] #navBack, html[dir="rtl"] .pv-crumb-sep { display: inline-flex; transform: scaleX(-1); }
html[dir="rtl"] .icon-btn svg, html[dir="rtl"] #navBack svg { transform: none; }
/* nothing may push the page wider than the phone */
html[dir="rtl"], html[dir="rtl"] body { max-width: 100vw; overflow-x: hidden; }
html[dir="rtl"] .view { max-width: 100%; }
html[dir="rtl"] .view * { min-width: 0; }
html[dir="rtl"] img, html[dir="rtl"] video { max-width: 100%; }
html[dir="rtl"] .surah-row, html[dir="rtl"] .mq-row, html[dir="rtl"] .set-row { text-align: start; }
