/* Direct stylesheet: physical SVG geometry must not be mirrored by RTL compilation. */
html:lang(ar) .endi-home,
html:lang(ar) [class*="endi-"] {
    font-family: Tahoma, Arial, sans-serif;
    letter-spacing: normal;
}
html:lang(ar) header#top { direction: rtl !important; }
html:lang(ar) .endi-editorial-article svg { direction: ltr; }
html:lang(ar) .endi-editorial-article svg text { direction: rtl; unicode-bidi: plaintext; }
html:lang(ar) .endi-editorial-article,
html:lang(ar) .endi-footer { text-align: start; }
html:lang(ru) .endi-editorial-article h1,
html:lang(ru) .endi-home h1 { overflow-wrap: anywhere; }
.endi-sense-language-menu { flex-shrink: 0; }
.endi-sense-language-menu .dropdown-menu { min-width: 11rem; }
.endi-sense-language-menu > .dropdown > button {
    min-height: 36px;
    padding: .45rem .65rem;
    font-size: 14px;
    line-height: 1.3;
}
.endi-sense-language-menu .dropdown-menu .dropdown-item { color: #102f45 !important; }
.endi-sense-language-menu .dropdown-menu .dropdown-item:hover,
.endi-sense-language-menu .dropdown-menu .dropdown-item:focus { background: #e7f0f4; }
.endi-sense-language-menu .dropdown-menu .dropdown-item.active {
    background: #16455a;
    color: #fff !important;
}
.endi-language-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    vertical-align: middle;
    margin-inline-end: .45rem;
    border-radius: 2px;
    box-shadow: 0 0 0 1px #0002;
}
.endi-language-globe { margin-inline-end: .45rem; }
.js_language_selector > button { white-space: nowrap; }
@media (max-width: 767px) {
    html:lang(ru) .endi-sense-nav-actions,
    html:lang(ar) .endi-sense-nav-actions { flex-wrap: wrap; gap: .6rem; }
    html:lang(ru) [class*="endi-"] .btn,
    html:lang(ar) [class*="endi-"] .btn { white-space: normal; }
}
