/* The language selector of the header (spec 020, research R5): two small
   buttons, « Français » and « English », the current one marked. Linked by
   the layout only with English on (ENGLISH_ENABLED): a rule in app.css would
   change that sheet's fingerprint in every page, and English off the pages
   must stay byte for byte what they were. Same tokens as app.css. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .125rem;
  margin: 0;
}

.lang-switch__option {
  min-height: 2.75rem; /* 44 px: a touch target (charte.md, Accessibilité) */
  border: 0;
  border-radius: var(--radius-pill);
  padding: .25rem .5rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.lang-switch__option:hover {
  background: var(--sky);
}

.lang-switch__option:focus-visible {
  outline-offset: 2px;
}

/* The language of the page: underlined, not a button to press. */
.lang-switch__option[aria-current="true"] {
  cursor: default;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.lang-switch__option[aria-current="true"]:hover {
  background: transparent;
}

/* On a phone the header has room for one more word only: the button of the
   other language, the one to press; the current one shows from 640px up. */
@media (max-width: 639.98px) {
  .lang-switch__option[aria-current="true"] { display: none; }
}
