/* Stacked company name + language switcher */
.ags-site-identity {
  flex: 0 1 auto;
  min-width: 0;
}

.ags-site-identity__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ags-site-identity__mark {
  width: 48px;
  height: auto;
  flex: 0 0 auto;
}

.ags-site-identity__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.15;
}

.ags-site-identity__en {
  display: block;
  color: #ed1c24;
  font-size: clamp(0.72rem, 2.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: normal;
}

.ags-site-identity__ar {
  display: block;
  color: #303843;
  font-family: "Noto Sans Arabic", "Tajawal", sans-serif;
  font-size: clamp(0.78rem, 2.4vw, 1rem);
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.ags-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ags-lang-switch__link {
  color: #4d4d4d;
  text-decoration: none;
  padding: 4px 2px;
}

.ags-lang-switch__link:hover,
.ags-lang-switch__link.is-active {
  color: #1653ac;
}

.ags-lang-switch__sep {
  color: #b0b0b0;
  user-select: none;
}

header .ags-mega-nav {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 781px) {
  .ags-site-identity__mark {
    width: 40px;
  }

  .ags-site-identity__en {
    font-size: 0.68rem;
  }

  .ags-site-identity__ar {
    font-size: 0.74rem;
  }

  .ags-lang-switch {
    margin-inline-start: auto;
    margin-inline-end: 8px;
  }
}
