/*
 * Egypt Gate Child: RTL and Arabic typography layer.
 *
 * Loaded only when WordPress reports an RTL locale (is_rtl()), after
 * egc-base.css. Foxiz already ships its own RTL stylesheet; these rules
 * only add Arabic-specific text handling.
 *
 * Font family is intentionally NOT set here. Foxiz loads and applies fonts
 * from its Typography options, so choose an Arabic web font there.
 */

:root {
	--egc-ar-line-height: 1.85;
}

/* Arabic letters join; added letter-spacing breaks the joins. */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] a,
html[dir="rtl"] span {
	letter-spacing: normal;
}

/* Arabic needs more vertical room than Latin text for diacritics. */
html[dir="rtl"] .entry-content p,
html[dir="rtl"] .entry-content li {
	line-height: var(--egc-ar-line-height);
}

/* Uppercase has no meaning in Arabic; never transform it. */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
	text-transform: none;
}
