/* Hebrew uses the platform's Hebrew font coverage, without Latin tracking. */
html[lang="he"] {
  --sans: Arial, "Helvetica Neue", sans-serif;
  --display: Arial, "Helvetica Neue", sans-serif;
  --mono: "DM Mono", Arial, sans-serif;
}

html[lang="he"] :is(h1, h2, h3, .rail__label, .eyebrow, .panel-kicker) {
  letter-spacing: normal;
}

/* Quantities and machine-readable inputs retain their reading order. User
   messages choose their own base direction, independently of the UI locale. */
:where(input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], code, .chart-wrap) {
  direction: ltr;
  unicode-bidi: isolate;
}

:where(.delta, .revenue-band__headline strong, .revenue-band__figures dd, .metric-card strong,
       .report-bar__value, .acquisition-kpi__cell--figure strong) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* `direction: ltr` also moves a block's start edge, so a figure set as a
   block would sit against the left of its cell, away from its right-aligned
   label. The figure keeps its reading order; its alignment stays the page's. */
html[dir="rtl"] :where(.revenue-band__headline strong, .revenue-band__figures dd, .metric-card strong) {
  text-align: right;
}

html[dir="rtl"] .report-bar__value {
  text-align: left;
}

:where(.ask-neo__body, .queue-msg__body) {
  unicode-bidi: plaintext;
}

html[dir="rtl"] .ask-neo {
  animation-name: ask-neo-in-rtl;
}

@keyframes ask-neo-in-rtl {
  from { transform: translateX(-24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html[dir="rtl"] .ask-neo { animation: none; }
}

/* The rail's right-to-left forms are kairo/rail.css's own. */

html[dir="rtl"] .attention-item__go span[aria-hidden="true"] {
  display: inline-block;
  transform: scaleX(-1);
}
