/* Keep the imported header styling intact. Only the Astro header needs to
   match the compact dimensions already used by the imported pages. */
.as-header__nav {
  gap: clamp(16px, 1.7vw, 26px) !important;
  width: max-content !important;
  height: 40px !important;
  padding: 0 clamp(18px, 1.8vw, 28px) !important;
  border-radius: 999px !important;
  background: #fff !important;
  white-space: nowrap !important;
}

.as-header__nav-link {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  font-size: clamp(12px, 0.98vw, 14px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.as-language {
  position: relative;
}

.as-language__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.as-language__chevron {
  font-size: 12px;
  line-height: 1;
}

.as-language__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 118px;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.as-language.is-open .as-language__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.as-language__menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.as-language__menu button:hover,
.as-language__menu button.is-active {
  background: #f2f2f0;
}

.as-language__menu button.is-active::after {
  content: "✓";
  margin-left: 12px;
}

.l-header-nav .l-nav__link::after,
.as-header__nav-link::after {
  display: none !important;
  content: none !important;
}

.p-project-aside a::before {
  left: clamp(-62px, -5.8rem, -52px) !important;
  width: clamp(40px, 4.8rem, 54px) !important;
  background-image: url("/assets/img/astronstar/official-logo.png") !important;
  background-position: center !important;
  background-size: contain !important;
  aspect-ratio: 297 / 99 !important;
}

.l-hambergerMenu__item a::before {
  background-image: url("/assets/img/astronstar/official-logo.png") !important;
  background-position: center !important;
  background-size: contain !important;
  aspect-ratio: 297 / 99 !important;
}

.l-footer__logo {
  width: clamp(130px, 15rem, 180px) !important;
  margin-left: 0 !important;
}

.l-footer__logo .as-footer-brandmark {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 1080px) {
  .as-header__nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .l-footer__logo {
    width: clamp(105px, 12rem, 130px) !important;
  }
}
