/* Inline control:  [ ARTIST ]  (switch)  [ PATRON ] */
.toggle-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto 44px auto;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  border: none;
  background: transparent;
}

.toggle-option {
  pointer-events: none;
  z-index: 2;
  font-family: Montserrat, var(--font-sans, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 540;
  font-size: 12px;
  line-height: 1;
  color: var(--mb-70);
  white-space: nowrap;
  transition: color 300ms ease;
}

.toggle-option.selected {
  color: var(--fg, #1E1E1B);
}

/* The middle pill switch */
.toggle-slider {
  grid-column: 2;
  position: relative;
  z-index: 1;
  height: 20px;
  width: 40px;
  background: #EEEDE9;
  border-radius: 999px;
  border: 0;
  box-sizing: border-box;
  box-shadow: inset 0 0 3.2px rgba(0, 0, 0, 0.25);
}

.toggle-slider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #3B3933;
  border-radius: 50%;
  transform: translate(0, -50%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default position - ARTIST (left) */
.toggle-slider::after {
  transform: translate(0, -50%);
}

/* When slide-in class is added - PATRON (right) */
.toggle-slider.slide-in::after {
  transform: translate(17px, -50%);
}

/* remove old keyframes: not needed with knob transform */