/* NIGHT_59 — Simple ↔ Technical sliding toggle.
   Cookie-driven; clicking flips the cookie and reloads the page so server-rendered
   labels rebuild in the chosen mode. Visual style mirrors the theme toggle for
   consistency with the rest of the nav. */

.terminology-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--color-border-secondary, #404040);
  background: var(--color-bg-overlay, rgba(38, 38, 38, 0.6));
}

.terminology-toggle__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text-tertiary, #737373);
  transition: color 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.terminology-toggle__label--active {
  color: var(--color-text-primary, #f5f5f5);
  font-weight: 600;
}

.terminology-toggle__switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}

.terminology-toggle__switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.terminology-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-border-secondary, #404040);
  border-radius: 18px;
  transition: background-color 0.18s ease;
}

.terminology-toggle__slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.18s ease;
}

.terminology-toggle__switch input:checked + .terminology-toggle__slider {
  background: var(--color-text-info, #2563eb);
}

.terminology-toggle__switch input:checked + .terminology-toggle__slider::before {
  transform: translateX(14px);
}

.terminology-toggle__switch input:focus-visible + .terminology-toggle__slider {
  outline: 2px solid var(--color-text-info, #2563eb);
  outline-offset: 2px;
}
