/* ═══════════════════════════════════════════════════════════
   Version switcher — shared by V1 (/) and V2 (/v2).
   Glass ink capsule, brass hairline, ivory type.
   Top-centre on desktop, bottom-centre on phones.
   ═══════════════════════════════════════════════════════════ */

.vp {
  position: fixed;
  z-index: 300;                     /* above both nav bars and both preloaders */
  left: 50%;
  top: 14px;
  display: flex; align-items: center;
  padding: 0 6px;
  border: 1px solid rgba(168, 144, 92, 0.45);
  border-radius: 999px;
  background: rgba(25, 24, 19, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  font-family: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  transform: translate(-50%, -6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.9s;
}
.vp.is-ready {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
/* V1's nav keeps its links in the centre of the bar, so the pill sits just under it there. */
.vp--v1 { top: 82px; }

.vp a {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  padding: 0 12px;
  font-size: 11px; font-weight: 600; line-height: 1;
  letter-spacing: 0.3em;
  text-indent: 0.3em;               /* balance the trailing tracking */
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.82);
  text-decoration: none;
  transition: color 0.3s ease;
}
.vp a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 12px;
  width: 16px; height: 1px;
  margin-left: -8px;
  background: #f4f0e6;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.vp a:hover { color: #f4f0e6; }
.vp a[aria-current="page"] { color: #f4f0e6; }
.vp a[aria-current="page"]::after { transform: scaleX(1); }
.vp a:focus-visible {
  outline: 1px solid #d9c08a;
  outline-offset: -6px;
  border-radius: 999px;
  color: #f4f0e6;
}
.vp-sep {
  width: 1px; height: 14px;
  background: rgba(168, 144, 92, 0.45);
}

@media (max-width: 899px) {
  .vp, .vp--v1 {
    top: auto;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translate(-50%, 6px);
  }
  .vp.is-ready { transform: translate(-50%, 0); }
  /* reserve room under the last footer line for the bottom pill (14px offset + 46px pill + air) */
  body .footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .vp, .vp.is-ready { transition: none; }
}

@media print { .vp { display: none; } }
