/* Arabic overrides for /ar/products/ai-agents/ and /ar/products/text-to-speech/. Loaded last on those pages.
   Mirrors the physical (left/right) bits of agents.css and text-to-speech.css; rtl.css handles type and chrome. */

/* Button arrow (↖ in Arabic) nudges toward the reading end; service-pages.css moves it right. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  :root[lang=ar] :is(.agents-page,.tts-page) .action:hover>span[aria-hidden="true"] { transform:translateX(-3px); }
}

/* AI agents: the stage connector points to the next stage, the legend floats at the start, the
   incoming message's bubble tail sits on the sender's side. */
:root[lang=ar] .agents-page .flow-stage+.flow-stage::before { content:"←"; }
@media (max-width:860px) { :root[lang=ar] .agents-page .flow-stage+.flow-stage::before { content:"↓"; } }
:root[lang=ar] .agents-page .decision>legend { float:right; }
:root[lang=ar] .agents-page .mail-card { border-radius:12px 12px 3px 12px; }

/* Text to speech: step badges, quote rule, pause rules and the panel mark move to the other side. */
:root[lang=ar] .tts-page .tts-step span { margin-right:0;margin-inline-end:.35rem; }
:root[lang=ar] .tts-page .tts-quote { border-left:0;border-right:2px solid var(--blue);border-radius:.5rem 0 0 .5rem; }
:root[lang=ar] .tts-page .tts-phrases>li.tts-pause { padding:0 .75rem 0 0; }
@container (min-width:22rem) { :root[lang=ar] .tts-page .tts-phrases>li.tts-pause { padding:0; } }
@media (min-width:56rem) { :root[lang=ar] .tts-page .tts-panel-mark { right:auto;left:1.5rem; } }
/* Speech runs right to left with the phrases, so the first burst sits on the right. */
:root[lang=ar] .tts-page .tts-wave { transform:scaleX(-1); }
