/* Right-to-left corrections. Loaded only for RTL languages.
   Most of the layout already uses logical properties (inset-inline-*,
   margin-inline-*), so this file only handles what cannot be expressed
   that way — mirrored icons and numeric columns that must stay LTR. */

/* Prices, tickers and timestamps read left-to-right even in Arabic. */
.mono, .price, .chg, .stat-v, .kpi-v, .plan-p,
.lv-v, .pulse-clock, .pulse-time, .stamp, .lang-code,
td.num, th.num, .metrics b, .pred-m, .copyrow input {
  direction: ltr;
  unicode-bidi: isolate;
}

td.num, th.num { text-align: left; }
.dhead-right { text-align: left; }

/* Arabic renders taller; give headings a touch more room. */
h1, h2, h3 { line-height: 1.35; letter-spacing: 0; }
.kicker, .stat-k, .kpi-k, .pulse-h, .foot-col h4, thead th { letter-spacing: 0; }

/* The logo wordmark is Latin — keep it LTR inside an RTL page. */
.logo { direction: ltr; }

/* Card accent bar sits on the leading edge, which flips with the page. */
.card::before { inset-inline-start: 0; }

/* Chart canvases draw their own axes; never mirror them. */
.chartbox { direction: ltr; }

/* The track-record accent rule fades away from the text, so it has to
   follow the reading direction rather than always run left to right. */
.track-disc::before { background: linear-gradient(270deg, var(--up), transparent); }
