/*
 * RTL overrides (Arabic). The base sheet already uses logical properties
 * (margin-inline-*, border-block-*, text-align:start), so the browser flips
 * the layout from dir="rtl" alone. Only the oddities live here.
 */

/* Keep model numbers, units and phone numbers reading LTR inside RTL copy. */
.model, .m, .clist a, .util a[href^="tel"], .util a[href^="https://wa.me"]{
  direction:ltr; unicode-bidi:isolate;
}

/* The spec table is entirely Latin data — keep the whole grid LTR so the columns
   read in the intended order. `direction` must go on the SCROLL CONTAINER too:
   an RTL scroll container starts scrolled to its right edge, which clipped the
   first column ("RP-10 / …") out of view on load. */
.tbl, .tbl table{direction:ltr}

/* The provisional-data box is Chinese source copy, not translated content.
   Left to inherit RTL it renders with its punctuation displaced. */
.s4 .gap{direction:ltr; text-align:left}

/* ---------------------------------------------------------------------------
 * Cinematic scenes (1.3.0). A gradient ANGLE has no logical form, so the three
 * grades that were built to sit under the copy column stay physically left-hand
 * unless they are flipped here. Everything else in the scenes is already
 * logical (inset-inline-*, margin-inline, text-align:start/end).
 * ------------------------------------------------------------------------ */

/* homepage coating peak: the side grade under the cut copy */
.co-track[data-live] .co-hud::before{transform:scaleX(-1)}

/* Scrubbed sequences (AC dolly, saltwater explode): the falloff under the beat
   column, and the beat's own local ground — both darken toward the screen edge,
   which swaps sides in RTL. */
.sq-scrim{transform:scaleX(-1)}
.sq-beat{background:linear-gradient(270deg,transparent 0,
  oklch(0.185 0.006 215 / .34) 26%,oklch(0.185 0.006 215 / .58) 60%,
  oklch(0.185 0.006 215 / .62) 100%)}
@media(max-width:820px){ .sq-beat{background:none} }

/* RP self-clean: the read-out's corner slate is anchored to the far corner */
.sc-track[data-live] .sc-read::before{
  background:radial-gradient(125% 135% at 0% 100%,oklch(0.105 0.006 215 / .88) 0%,
    oklch(0.105 0.006 215 / .52) 46%,transparent 76%);
}

/* Frame counters and coated-face counts are Latin data. */
.co-count, .sq-count b, .sc-tally u{direction:ltr; unicode-bidi:isolate}
