/*
 * ACAPRS English Direction 1.0.2 — loaded on English (/en/) pages only.
 * Goal: full LTR flow on English pages. Arabic pages never load this file.
 * Element-level selectors only: any class-based centering or alignment in
 * the theme (heroes, titles) keeps working because class rules outrank
 * these. Arabic text runs inside still render right-to-left per the
 * Unicode bidi algorithm; only the page flow and default alignment flip.
 */
html body {
	direction: ltr;
	text-align: left;
}

/* Containers explicitly marked RTL (e.g. hardcoded dir="rtl" in a
 * component) flow left-to-right on English pages. */
html body [dir="rtl"] {
	direction: ltr;
}

/* Form fields: placeholders and typed text start from the left. */
html body input,
html body textarea,
html body select {
	direction: ltr;
	text-align: left;
}

/* 1.0.1: card/banner titles that kept an explicit right alignment
 * (support desk title, capstone banner title, subscription card title).
 * Headings only: class-based centering still wins over this rule. */
html body h1,
html body h2,
html body h3,
html body h4 {
	text-align: left;
}

/* 1.0.1: tab rows that kept flowing right-to-left (support ticket
 * queues). Direction plus row order; harmless on non-flex elements. */
html body [class*="tab"] {
	direction: ltr;
	flex-direction: row;
}

/* 1.0.2: force text direction on text containers. Class-based RTL rules
 * beat the element-level rules above, so direction is forced here: this
 * fixes word order and punctuation even where an explicit right alignment
 * survives, and restores left alignment wherever alignment itself came
 * from direction. text-align is deliberately NOT forced here, so
 * correctly centered texts stay centered. */
html body p,
html body div,
html body li,
html body td,
html body th,
html body blockquote {
	direction: ltr !important;
}
