/*
 * Janad Diamond - RTL corrections.
 *
 * Deliberately short. theme.css uses logical properties (margin-inline,
 * inset-inline, padding-inline, border-inline) throughout, so the layout
 * mirrors on its own. Only things CSS cannot mirror automatically live here:
 * directional glyphs inside decorative SVGs, and a handful of assets drawn
 * pointing one way.
 */

/* Decorative chevrons and triangle bullets point along the reading
   direction. Scoped to [aria-hidden] so no meaningful icon is flipped. */
[dir="rtl"] .jd-bullet svg,
[dir="rtl"] .jd-chevron svg,
[dir="rtl"] .wp-block-navigation__submenu-icon svg {
	transform: scaleX( -1 );
}

/* The Polylang switcher sits at the opposite end of the top bar. */
[dir="rtl"] .jd-lang-switch {
	margin-inline-start: 0;
	margin-inline-end: auto;
}

/* Numbers inside Arabic prose: keep phone numbers LTR and unbroken.
   .jd-tel already does this in theme.css; this covers bare tel: links an
   editor may add by hand without the class. */
[dir="rtl"] a[href^="tel:"] {
	direction: ltr;
	unicode-bidi: isolate;
	white-space: nowrap;
	display: inline-block;
}
