/* Arabic copies of the inherited tools: brand Arabic faces and right-to-left reading. Styling only. */
@font-face { font-family: "SQ Arabic Display"; src: url("/assets/brand/ReadexPro-SemiBold.woff2") format("woff2"); font-weight: 400 900; size-adjust: 93%; font-display: swap; }
@font-face { font-family: "SQ Arabic Text"; src: url("/assets/brand/ReadexPro-Regular.woff2") format("woff2"); font-weight: 100 450; font-display: swap; }
@font-face { font-family: "SQ Arabic Text"; src: url("/assets/brand/ReadexPro-Medium.woff2") format("woff2"); font-weight: 451 650; font-display: swap; }
@font-face { font-family: "SQ Arabic Text"; src: url("/assets/brand/ReadexPro-SemiBold.woff2") format("woff2"); font-weight: 651 900; font-display: swap; }
body, button, input, select, textarea { font-family: "SQ Arabic Text", "IBM Plex Sans", sans-serif; }
h1, h2, h3, h4 { font-family: "SQ Arabic Display", "Saira SemiExpanded", sans-serif; letter-spacing: 0; line-height: 1.35; }
h1 em, h2 em, h3 em, em { font-family: inherit !important; }
/* uppercase micro-labels mean nothing in Arabic */
[dir="rtl"] * { text-transform: none !important; letter-spacing: 0 !important; }
/* numbers, units and code read left to right inside Arabic text */
code, kbd, samp, output, input[type="range"] { direction: ltr; unicode-bidi: isolate; }
header .tool-lang { margin-inline-start: 1rem; color: #F4F1E8; border: 1px solid #F4F1E833; padding: 0.45rem 0.8rem; font: 600 14px "IBM Plex Sans", sans-serif; text-decoration: none; }
header .tool-lang:hover { background: #F4F1E81A; }
/* phone: the header wraps instead of pushing the English switch off-screen */
header { flex-wrap: wrap; row-gap: 0.6rem; }
header .tool-lang { margin-inline-start: 0; }
/* values sit on the opposite side of their labels in RTL */
[dir="rtl"] .inputs output { float: left !important; }

/* charts are drawn left to right; Arabic labels inside them stay readable */
svg { direction: ltr; }
