/* TEOS shared RTL utilities. Linked after styles.css on every page.
   Numbers and Latin words stay left-to-right inside Arabic text so "21" never reads "12" and EVM never flips. */
.stat-number{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums;display:inline-block;font-family:Inter,sans-serif}
.latin-word{direction:ltr;unicode-bidi:embed;display:inline-block}

/* Arabic-only fixes */
html[dir=rtl] .stats-grid .stat-card span{text-align:start}
html[dir=rtl] .ticker span{direction:rtl;unicode-bidi:isolate}
html[dir=rtl] .steps i{font-family:Inter,sans-serif;font-style:normal;direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .status output{font-family:Inter,"Segoe UI",Tahoma,sans-serif}

/* Links and buttons always receive clicks in Arabic. (The dead-link bug was the language click handler calling
   preventDefault() on every click; this keeps any wrapper rule from ever swallowing them again.) */
html[dir=rtl] a,html[dir=rtl] button{pointer-events:auto}
