/* ==============================================================================
   VISITOR PREFERENCES (templates/partials/prefs.html)
   ============================================================================== */

/* The groups sit in the header's tools, after "ES / EN", and read the
   same way: small text choices with a slash between them (header.css
   draws the language one). */
.prefs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs) var(--spacing-lg);
}

.prefs__group {
  display: flex;
  align-items: center;
  padding: 0;
  border: none;
  margin: 0;
}

/* A real button, drawn as text: no box, no fill, the accent only on the
   ring a keyboard focus gets (main.css). */
.prefs__btn {
  padding: var(--spacing-xs) 0;
  border: none;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.prefs__btn + .prefs__btn::before {
  content: "/" / "";
  margin-inline: var(--spacing-sm);
  color: var(--border-color);
}

.prefs__btn:hover {
  color: var(--text-primary);
}

/* The current mode/skin: aria-current is what a screen reader announces,
   this rule makes the same state visible without relying on colour
   alone (the weight changes too, as on the current language). */
.prefs__btn[aria-current="true"] {
  color: var(--text-primary);
  font-weight: 600;
}

/* Same tightening as the language switcher's on a phone (header.css). */
@media (max-width: 48em) {
  .prefs__btn + .prefs__btn::before {
    margin-inline: var(--spacing-xs);
  }
}
