@layer blocks {
  /* Pair of exclusive options: DE/EN in the nav, language and export on
     /mgm/social-assets. Active half is aria-current, same hook as the nav. */
  .choice-switch,
  .lang-switch {
    display: flex;
    overflow: hidden;
    border: 1.5px solid var(--color-text);
    border-radius: var(--radius-s);
    font-size: 0.8rem;
    font-weight: var(--weight-semi);
  }

  .choice-switch a,
  .choice-switch button,
  .lang-switch a,
  .lang-switch button {
    appearance: none;
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0.3125rem 0.625rem;
    font: inherit;
    line-height: var(--leading-snug);
    color: var(--color-text-faint);
    cursor: pointer;
    --link-decoration: none;
  }

  .choice-switch a:hover,
  .choice-switch button:hover,
  .lang-switch a:hover,
  .lang-switch button:hover {
    color: var(--color-text);
  }

  .choice-switch :is(a, button)[aria-current],
  .lang-switch :is(a, button)[aria-current] {
    background: var(--color-text);
    color: var(--color-bg);
  }
}
