/* Right-to-left.
 *
 * The whole design was authored right-to-left (the prototype pages carried dir="rtl"), so nothing here mirrors a
 * left-to-right layout: it only makes the direction explicit, which is all that is missing when the WordPress
 * Site Language is not Arabic. inc/setup.php adds dir="rtl" to <html> for the same reason; this file is loaded last
 * so the direction also holds if some plugin prints the opening tag itself.
 *
 * Setting Settings > General > Site Language to العربية is still worth doing: it translates the admin and makes
 * is_rtl() true for plugins. This file keeps the front end correct either way.
 */

html {
  direction: rtl;
}

/* Islands that stay left-to-right whatever the page direction: latin-only values that would otherwise have their
   punctuation and signs reordered (phone number, hex colour, counters, file names, the studio's sliders). */
[dir="ltr"],
.qhd-mono,
.monospace,
.qhd-footer-stats b,
.sandbox-controls-stack input[type="range"],
.vertical-range-wrapper input[type="range"],
.numeric-input-container,
.qhd-bg-list .name {
  direction: ltr;
}

/* The studio's own labels mix Arabic and English on one line; keep each side on its own end. */
.control-label-group .label-lang-en {
  direction: ltr;
}
