/* Shared bilingual navigation for project, module and standalone pages. */

.standalone-language-switch {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  border: 1px solid var(--line-strong, #c5d2e0);
  border-radius: 999px;
  background: rgba(255, 255, 255, .97);
  padding: .25rem;
  box-shadow: 0 8px 24px rgba(19, 58, 104, .12);
  backdrop-filter: blur(10px);
}

.standalone-language-switch a,
.standalone-language-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.standalone-language-switch a {
  min-width: 42px;
  min-height: 34px;
  border-radius: 999px;
  padding: .3rem .58rem;
  color: var(--blue-700, #075bb8);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.standalone-language-switch a:hover,
.standalone-language-switch a:focus-visible {
  background: var(--blue-050, #f4f9ff);
}

.standalone-language-switch a.current,
.standalone-language-switch a[aria-current="page"] {
  background: var(--blue-800, #064c9e);
  color: #fff;
}

.standalone-language-switch > span {
  color: var(--line-strong, #c5d2e0);
  font-size: .72rem;
}

@media (max-width: 760px) {
  /* The original responsive stylesheet hid the whole utility bar, including ES/EN. */
  body:not(.catalog-home) .utility-bar {
    position: sticky;
    top: 0;
    z-index: 125;
    display: block;
    border-bottom: 1px solid var(--line, #dbe3ec);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 3px 12px rgba(20, 53, 91, .05);
    backdrop-filter: blur(10px);
  }

  body:not(.catalog-home) .utility-inner {
    justify-content: flex-end;
    min-height: 42px;
  }

  body:not(.catalog-home) .utility-inner > span:first-child,
  body:not(.catalog-home) .utility-links > a {
    display: none;
  }

  body:not(.catalog-home) .utility-links {
    width: 100%;
    justify-content: flex-end;
    gap: 0;
  }

  body:not(.catalog-home) .language-switch {
    margin-left: auto;
    border: 1px solid var(--line-strong, #c5d2e0);
    border-radius: 999px;
    background: #fff;
    padding: .2rem;
  }

  body:not(.catalog-home) .language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 30px;
    border-radius: 999px;
    padding: .25rem .5rem;
    text-decoration: none;
  }

  body:not(.catalog-home) .language-switch a.current,
  body:not(.catalog-home) .language-switch a[aria-current="page"] {
    background: var(--blue-800, #064c9e);
    color: #fff;
  }

  body:not(.catalog-home) .site-header {
    top: 42px;
  }

  .standalone-language-switch {
    top: 10px;
    right: 10px;
  }

  .access-shell {
    padding-top: 4.4rem;
  }
}

@media print {
  .standalone-language-switch,
  body:not(.catalog-home) .utility-bar {
    display: none !important;
  }
}
