/* Keep the translated header usable on narrow screens. */
body { min-width: 320px; }
.header-languages__trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) {
    .header__logo { width: 104px; height: auto; }
    .header__wrapper, .header__wrap { gap: 8px; }
    .header__group { gap: 6px; }
    .header-languages { max-width: 128px; }
}
/* Mirror the layout for Arabic, not the text inside the dashboard screenshot. */
.rtl .hero__img img { transform: scaleX(-1); }
.rtl .banner__value, .rtl .numbers-item__value, .rtl .calc-result__value, .rtl .result__right {
    direction: ltr;
    unicode-bidi: isolate;
}
.rtl .numbers-item__img { left: 0; right: auto; }
.rtl .numbers__banner::before { left: -99px; right: auto; transform: scaleX(-1); }
@media (max-width: 680px) {
    .rtl .hero__img { left: auto; right: 50%; transform: translateX(50%); }
}
@media (min-width: 681px) {
    .rtl .hero__img { left: -237px; right: auto; }
    .rtl .numbers__banner::before { left: -123px; }
    .rtl .banner__item:last-child::before { left: auto; right: -40px; }
}
@media (min-width: 1439px) {
    .rtl .hero__img { left: -416px; right: auto; }
    .rtl .home-participation__img { left: -281px; right: auto; }
    .rtl .home-participation__title, .rtl .home-participation__subtitle { text-align: right; }
    .rtl .numbers__banner::before { left: 0; }
}
