/* =========================================================
   Multilingual site: language menu, fonts and icons per language
   ========================================================= */

/* Language menu in the top bar */
.top-bar .lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.top-bar .lang-switch a,
.top-bar .lang-switch .lang-current { padding: 2px 8px; border-radius: 4px; font-size: .9rem; line-height: 1.6; }
.top-bar .lang-switch .lang-current { color: #fff; background: rgba(255, 255, 255, .14); font-weight: 600; }
.top-bar .lang-switch a + a::before,
.top-bar .lang-switch .lang-current + a::before,
.top-bar .lang-switch a + .lang-current::before { content: none; }

/* English, Turkish and other left-to-right languages: a Latin system font; the theme font Sahel FD draws Persian digits. */
html[dir="ltr"] body,
html[dir="ltr"] .form-control, html[dir="ltr"] .btn, html[dir="ltr"] button, html[dir="ltr"] input, html[dir="ltr"] select, html[dir="ltr"] textarea,
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3, html[dir="ltr"] h4, html[dir="ltr"] h5, html[dir="ltr"] h6 {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
html[dir="ltr"] body { font-weight: 400; }
html[dir="ltr"] .post-content { text-align: left; }
html[dir="ltr"] .post-content { text-align: left; }

/* Arrow icons that point "forward" (left in RTL) point right in LTR. */
html[dir="ltr"] .flip-ltr,
html[dir="ltr"] .lb-prev i,
html[dir="ltr"] .lb-next i { transform: scaleX(-1); display: inline-block; }

/* Brand text next to the logo: the English line is the main one on LTR pages. */
html[dir="ltr"] .brand-lockup .brand-line2 { text-align: left; }

/* Latin menu labels are wider than Persian ones: keep the main menu on one line (992–1399px). */
@media (min-width: 992px) and (max-width: 1399.98px) {
  html[dir="ltr"] #mainMenu .nav-link { padding-left: .45rem !important; padding-right: .45rem !important; font-size: .9rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html[dir="ltr"] #mainMenu .nav-link { padding-left: .25rem !important; padding-right: .25rem !important; font-size: .78rem; }
}

/* Top bar: «حساب کاربری» link next to the search */
.top-bar .account-link { margin-inline-start: 18px; }
.top-bar .account-link i { font-size: .85em; }
