/* Arabic overrides for /ar/solutions/ and /ar/developers/, linked last in each page's head (rtl.css follows it,
   but these selectors outrank it). */

/* The JSON samples stay left to right (dir="ltr" in the markup). Their Arabic values would otherwise fall to
   Courier New's Arabic, which is spaced out and hard to read; Bahr Arabic only covers Arabic code points, so the
   Latin keys keep the monospace face. */
:root[lang=ar] .developers-page #integration-view :is(pre,code,#journey-result) {
  font-family:ui-monospace,SFMono-Regular,Consolas,"Bahr Arabic",monospace;
}

/* In the wide layout the stages run right to left (your application on the right), so the request travels left
   and the response travels right: mirror the horizontal arrows. The narrow layout stacks vertically and stays. */
@container journey-visual (min-width: 48rem) {
  :root[lang=ar] .developers-page #integration-view .journey-leg svg { transform:scaleX(-1); }
}

/* SVG text inherits direction:rtl, which anchors "Aa" on the voice sheet at its right end and pushes it off the
   page. The illustrations are drawn in their own coordinates, so keep them left to right inside. */
:root[lang=ar] .catalog-page .studio-card svg { direction:ltr; }
