/* Language switcher */
.lang-switch {
  position: relative;
  font-size: 14px;
}
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white, #fff);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover,
.lang-switch[open] summary { border-color: var(--red, #fa2837); }
.lang-switch ul {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 200;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.lang-switch li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--white, #fff);
  font-weight: 500;
  text-decoration: none;
}
.lang-switch li a:hover { background: rgba(255, 255, 255, 0.06); }
.lang-switch li a[aria-current="page"] { background: rgba(250, 40, 55, 0.14); color: var(--red, #fa2837); font-weight: 700; }
@media (max-width: 575px) {
  .lang-switch summary { height: 36px; padding: 0 10px; }
}

/* Arabic: font and right-to-left adjustments */
html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Inter Tight", "Inter", system-ui, sans-serif;
}
html[lang="ar"] body { letter-spacing: 0; }
