/* The Dressage | Jumping switch in every page's header (added by src/add_switch.py
   to dressage pages, built into jumping pages by src/jumping_build.py). The page sets
   --rr-switch-ink to its header colour, so the current app reads as a white pill. */
.rr-switch {
  display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; margin: 0 12px;
  border: 1px solid rgba(255,255,255,.32); border-radius: 999px; background: rgba(255,255,255,.12);
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .01em;
}
.rr-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; white-space: nowrap;
}
.rr-switch a:hover:not([aria-current]) { background: rgba(255,255,255,.16); }
.rr-switch a[aria-current] { background: #fff; color: var(--rr-switch-ink, #1A2B4A); }
.rr-switch a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Phones: the switch takes its own row under the logo, full width. */
@media (max-width: 600px) {
  .rr-switch { order: 3; flex-basis: 100%; margin: 0; }
  .rr-switch a { flex: 1; }
  nav:has(.rr-switch), header:has(.rr-switch), .top .wrap:has(.rr-switch) {
    flex-wrap: wrap; height: auto; row-gap: 10px; padding-top: 10px; padding-bottom: 10px;
  }
}
