/* Version switcher bar (see switcher.js). Scoped under .vsw / .vsw-pill so it never fights a page's own CSS. */
body.vsw-on { padding-bottom: 72px !important; }

.vsw, .vsw-pill {
  --vsw-bg: #16191d;
  --vsw-fg: #f3f1ec;
  --vsw-dim: #a7a49c;
  --vsw-accent: #ee7623;
  font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.vsw {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  background: var(--vsw-bg); color: var(--vsw-fg);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
  border-top: 2px solid var(--vsw-accent);
}
.vsw[hidden], .vsw-pill[hidden], .vsw-pop[hidden] { display: none !important; }
.vsw-inner {
  display: flex; align-items: center; gap: 14px;
  max-width: 1200px; margin: 0 auto; padding: 0 12px; min-height: 54px;
}
.vsw-brand, .vsw-brand strong { white-space: nowrap; color: var(--vsw-fg) !important; font-weight: 700; }
.vsw-pop b, .vsw-pop strong { color: #22201c !important; font-weight: 700; }
.vsw-from { color: var(--vsw-dim); font-weight: 400; }
.vsw-track {
  display: flex; align-items: center; gap: 4px; margin: 0 auto;
  background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.vsw-track::-webkit-scrollbar { display: none; }
.vsw-stop {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  color: var(--vsw-fg) !important; text-decoration: none !important; white-space: nowrap;
  transition: background .15s, color .15s;
}
.vsw-num { min-width: 34px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.vsw-stop:hover { background: rgba(255, 255, 255, .12); }
.vsw-stop.is-current { background: var(--vsw-accent); color: #1a1205 !important; font-weight: 700; }
.vsw-stop:focus-visible, .vsw button:focus-visible, .vsw-pill:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
}
.vsw-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); margin: 0 6px; }
.vsw-maybe { color: var(--vsw-dim); font-style: italic; white-space: nowrap; padding: 0 4px 0 2px; }
.vsw button {
  appearance: none; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: var(--vsw-fg);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font: 600 15px/1 inherit; flex: none;
}
.vsw button:hover { background: rgba(255, 255, 255, .1); }
.vsw-pop {
  position: absolute; right: 12px; bottom: calc(100% + 10px); width: min(420px, calc(100vw - 24px));
  background: #fffdf8; color: #22201c; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3); font-weight: 400; line-height: 1.5;
}
.vsw-pop p { margin: 0 0 .7em; font-size: 14px; color: #22201c; }
.vsw-pop .vsw-contact { margin: 0; color: #6b665c; font-size: 13px; }
.vsw-pill {
  position: fixed; right: 12px; bottom: 12px; z-index: 2147483000;
  background: var(--vsw-bg); color: var(--vsw-fg); border: 2px solid var(--vsw-accent);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

@media (max-width: 720px) {
  .vsw-brand, .vsw-maybe { display: none; }
  .vsw-inner { gap: 8px; padding: 0 8px; }
  .vsw-stop { padding: 0 10px; }
  .vsw-num { min-width: 30px; padding: 0 6px; }
  .vsw-sep { margin: 0 2px; }
}
@media (prefers-reduced-motion: reduce) { .vsw-stop { transition: none; } }
