/* Shared language selector for custom pages (matches blog UI) */
.gcp-lang-switcher {
  position: absolute;
  top: 38px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 100;
}

/* Reserve space below the absolute switcher so content doesn't sit under it */
.hero-section:has(> .gcp-lang-switcher:not(.gcp-lang-switcher--bottom)),
.bio-header:has(> .gcp-lang-switcher:not(.gcp-lang-switcher--bottom)) {
  padding-top: 88px;
}

/* /links/ — below the CTA buttons, centered */
.gcp-lang-switcher--bottom {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 4px auto 8px;
  z-index: 10;
}

.gcp-lang-switcher--bottom .site-header__language-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%) translateY(8px);
}

.gcp-lang-switcher--bottom .site-header__language.is-open .site-header__language-menu {
  transform: translateX(-50%) translateY(0);
}

.site-header__language {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header__language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: "archivo", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-header__language-toggle .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.site-header__language-toggle:hover,
.site-header__language-toggle:focus-visible {
  color: #ff70c1;
  border-color: rgba(255, 112, 193, 0.55);
  background: rgba(255, 112, 193, 0.12);
}

.site-header__language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  padding: 0.45rem;
  background: #2a0020;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-header__language.is-open .site-header__language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header__language.is-open .site-header__language-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.site-header__language-flag {
  display: block;
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.site-header__language-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: 8px;
  color: #ffffff;
  font-family: "archivo", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header__language-menu a:hover,
.site-header__language-menu a:focus-visible {
  color: #ff70c1;
  background: rgba(255, 255, 255, 0.06);
}

.site-header__language-loader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  top: 0 !important;
}

.skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
body > .VIpgJd-ZVi9od-ORHb-OEVmcd,
body > .VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .gcp-lang-switcher:not(.gcp-lang-switcher--bottom) {
    top: 38px;
  }

  .hero-section:has(> .gcp-lang-switcher:not(.gcp-lang-switcher--bottom)),
  .bio-header:has(> .gcp-lang-switcher:not(.gcp-lang-switcher--bottom)) {
    padding-top: 84px;
  }

  .gcp-lang-switcher--bottom {
    margin: 0 auto 4px;
  }

  .site-header__language-toggle {
    min-height: 36px;
    padding: 0 0.7rem;
    font-size: 0.8rem;
  }
}
