/* Arabic (RTL) adjustments on top of style.css.
   Arabic letters join into words, so nothing here may add space between letters
   or force them into fixed-width cells. Press Start 2P has no Arabic: headings use Handjet. */
html[dir="rtl"] {
  --f-big: 'Handjet UI', 'Handjet', 'Press Start 2P', sans-serif;
  /* if the pixel font is late, Arabic falls back to a normal proportional font, never to monospace */
  --f-ui: 'Handjet UI', 'Handjet', sans-serif;
  --f-mono: 'Handjet UI', 'Handjet', sans-serif;
  --f-read: 'Handjet UI', 'Handjet', sans-serif;
}
html[dir="rtl"] body, html[dir="rtl"] body * { letter-spacing: 0 !important; word-spacing: normal !important; }

/* headings: no negative word spacing (it glued Arabic words together), bigger and bolder Handjet */
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] .hx-title, html[dir="rtl"] .hello, html[dir="rtl"] .reaction-cap,
html[dir="rtl"] .dlg-title, html[dir="rtl"] .guar .g b { word-spacing: normal; }
html[dir="rtl"] h2 { font-weight: 700; font-size: 32px; line-height: 1.3; }
html[dir="rtl"] h1 { font-weight: 700; font-size: 30px; line-height: 1.3; }
html[dir="rtl"] .hx-title { font-weight: 700; font-size: 32px; line-height: 1.25; }
html[dir="rtl"] .hello, html[dir="rtl"] .reaction-cap { font-weight: 700; font-size: 22px; line-height: 1.45; }
html[dir="rtl"] .dlg-title { font-weight: 700; font-size: 22px; line-height: 1.4; }
html[dir="rtl"] .guar .g b { font-weight: 700; font-size: 22px; line-height: 1.25; }
html[dir="rtl"] .demo-paused, html[dir="rtl"] .calc-sum b { font-weight: 700; }

/* running text: Arabic needs more room between lines for dots and marks */
html[dir="rtl"] p, html[dir="rtl"] .sub, html[dir="rtl"] li, html[dir="rtl"] details,
html[dir="rtl"] .faq p, html[dir="rtl"] .g span, html[dir="rtl"] .calc-lab small { line-height: 1.55; }

/* never break an Arabic word in the middle (inventory tiles, calculator labels) */
html[dir="rtl"] .inv button, html[dir="rtl"] .calc-lab b, html[dir="rtl"] .fold > span {
  overflow-wrap: normal; word-break: normal; hyphens: none; }
html[dir="rtl"] .inv button { font-size: 15px; line-height: 1.15; }

html[dir="rtl"] .hx-social { margin: 0 auto 0 4px; }
html[dir="rtl"] .lang-sw { margin: 0 0 0 6px; }
html[dir="rtl"] .stepper, html[dir="rtl"] .cur-seg, html[dir="rtl"] .hx-segs, html[dir="rtl"] .rvx-frame,
html[dir="rtl"] canvas, html[dir="rtl"] .compare, html[dir="rtl"] .ba, html[dir="rtl"] .party-box { direction: ltr; }
html[dir="rtl"] .cur-seg button { direction: rtl; }
html[dir="rtl"] .calc-lab, html[dir="rtl"] .g, html[dir="rtl"] details, html[dir="rtl"] .faq p { text-align: right; }
html[dir="rtl"] .receipt li { direction: rtl; }
html[dir="rtl"] .sticky-cta, html[dir="rtl"] #sticky-cta { direction: rtl; }
html[dir="rtl"] input, html[dir="rtl"] textarea { text-align: right; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[inputmode="tel"], html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }
