/**
 * Right-to-left corrections.
 *
 * The layout already uses logical properties throughout, so this file only
 * handles the few places where a physical direction is genuinely needed.
 */
body { direction: rtl; }

.sf-q__prompt,
.sf-find__pr { transform: scaleX(-1); }

.sf-tool__go > [aria-hidden],
.sf-help__go,
.sf-form__submit > [aria-hidden] { display: inline-block; transform: scaleX(-1); }

.sf-tabs__strip { direction: rtl; }

.sf-rbar .tr i { margin-inline-start: auto; }

.sf-caret { margin-inline-end: 14px; margin-inline-start: 0; }

/* Latin data such as URLs and codes stays left-to-right inside RTL copy. */
.sf-mono,
.sf-tool__code,
.sf-lang__cc,
.sf-plan__amt { direction: ltr; unicode-bidi: embed; }

/*
 * The switcher's own box is laid out with logical properties, so it mirrors on
 * its own. These two are the exceptions: the language code is a Latin token
 * that must stay LTR even when it sits in an RTL row, and the hatching on an
 * unavailable row is a physical diagonal that should lean the other way.
 */
.sf-lang__cc--btn { direction: ltr; unicode-bidi: embed; }
.sf-lang__item.is-unavailable {
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 6px, rgba(16, 20, 24, .035) 6px, rgba(16, 20, 24, .035) 12px
  );
}
