/* The EN / DE switch on the four product pages. They share no look, so it brings a plain
   one that reads on any ground. */
.lang {
  display: inline-flex;
  flex: none;
  gap: 0.2rem;
  font: 700 0.875rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.85);
  color: #25222d;
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: #25222d;
  color: #fff;
  /* a light ring, so the chosen language also reads on a dark page */
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.75);
}

.lang a:focus-visible {
  outline: 3px solid #f6bd35;
  outline-offset: 2px;
}

/* where a page's header has no row to sit in, the switch takes the top right corner */
.lang--corner {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 5;
}

header:has(> .lang--corner) {
  position: relative;
}

/* on a phone the header rows of Two Hit Wonder and Street Musician are full: the switch
   takes a row of its own, at the right */
@media (max-width: 34rem) {
  .hero__top,
  .bar {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  .hero__top .lang,
  .bar .lang {
    margin-left: auto;
  }

  .lang a {
    min-width: 2.75rem;
    min-height: 2.5rem;
  }
}
