:root {
  --arabic-font: system-ui, Tahoma, sans-serif;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: .7rem;
  border: 1px solid currentColor;
  border-radius: .65rem;
  color: inherit;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.language-switch[lang="ar-DZ"] {
  font-family: var(--arabic-font);
}

.language-switch:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.language-switch:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

html[dir="rtl"] body {
  font-family: var(--arabic-font);
}

html[dir="rtl"] :is(input, button, textarea, select) {
  font-family: inherit;
}

[dir="rtl"] .home-page .home-title {
  line-height: 1.25;
  letter-spacing: normal;
}

[dir="rtl"] .home-page :is(.section__title, .home-guide h2) {
  line-height: 1.45;
  letter-spacing: normal;
}

[dir="rtl"] .home-page :is(.bx-right-arrow-alt, .bx-chevron-left, .bx-chevron-right) {
  transform: scaleX(-1);
}

[dir="rtl"] .home-page .home-value-number {
  line-height: 1.2;
}

[dir="rtl"] .home-page .home-project h3 {
  line-height: 1.55;
}
