/* ============================================
   Style switcher pill — bottom-left floating control
   on the Classic homepage. Each dot links to a full
   redesigned edition of the page at /v/<name>/.
   Self-contained: delete this file + the .style-switch
   markup in index.html to remove the feature entirely.
   (The /v/ pages carry their own inline copy of this.)
   ============================================ */

.style-switch {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 300;
  display: flex;
  align-items: center;
  padding: 5px 8px 5px 4px;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.style-switch-label {
  color: #9aa0ad;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 6px 0 10px;
  user-select: none;
}
.style-switch a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease;
}
.sw-classic  { background: #0084fc; }
.sw-atelier  { background: linear-gradient(135deg, #faf7f2 50%, #c9a461 50%); }
.sw-cinematic { background: radial-gradient(circle at 35% 30%, #f4d97a, #1a1408 75%); }
.sw-aurora   { background: conic-gradient(from 200deg, #6366f1, #ec4899, #f59e0b, #6366f1); }
.style-switch a:hover .sw-dot { transform: scale(1.18); }
.style-switch a[aria-current="true"] .sw-dot {
  outline: 2px solid #fff;
  outline-offset: 2px;
  transform: scale(1.05);
}
.style-switch a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Screen-reader-only labels inside the links */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sw-dot { transition: none; }
}
@media print {
  .style-switch { display: none; }
}
