/* Trimer Hebrew and RTL layer (decision D5, docs/design/DECISIONS.md).
   1. Layout is written with logical properties only: margin-inline, padding-inline, inset-inline-start,
      border-inline-start, text-align:start. No left/right, no translateX for centring, no per-direction overrides.
   2. Direction comes from the document: <html lang="he" dir="rtl"> or <html lang="en" dir="ltr">.
      User text fields use dir="auto" so a Latin message inside a Hebrew UI keeps its own direction.
   3. Machine strings (IDs, SHAs, paths, codes, numbers with units) stay LTR inside RTL text: wrap them in
      <bdi> or give them .t-ltr. They keep Geist Mono.
   4. Tracked uppercase labels exist only in Latin. Hebrew has no case, and wide tracking breaks Hebrew words. */

.t-ltr{direction:ltr;unicode-bidi:isolate;font-family:var(--font-mono)}
bdi{unicode-bidi:isolate}

/* Labels: Latin keeps uppercase + tracking; Hebrew switches to sans, no tracking, one step larger. */
:lang(he) .trimer-label,
:lang(he) .hud-label{
  text-transform:none;
  letter-spacing:0;
  font-family:var(--font-sans);
  font-size:calc(var(--label-size) + 1px);
}

/* Hebrew runs need more line height than Latin at the same size. */
:lang(he) body{line-height:calc(var(--body-line) + 2px)}

/* Icons that imply direction (arrows, chevrons, "send") mirror; icons that depict objects do not. */
[dir="rtl"] .icon-directional{transform:scaleX(-1)}
