/* Theme switcher — shared chrome, theme-independent.
   Fixed bottom-right so it never covers page headings. Loaded after the
   active theme stylesheet, so these rules win regardless of theme. */

.theme-switch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 6px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: rgba(20, 22, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.theme-switch .theme-switch-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 8px;
}

.theme-switch a {
  display: inline-block;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  background: none;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.theme-switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.theme-switch a.is-active {
  color: #141620;
  background: #fff;
}

.theme-switch a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .theme-switch { right: 10px; bottom: 10px; padding: 4px 5px; }
  .theme-switch .theme-switch-label { display: none; }
  .theme-switch a { padding: 6px 10px; font-size: 0.74rem; }
}
