/* legend.css — the small interaction key (bottom-left) and the
   minimal position indicator (far right). */

.legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  color: var(--color-text-muted);
  padding: 2px 0;
  transition: color var(--duration-fast) ease;
}

.legend__item:not(:disabled):hover {
  color: var(--color-text);
}

.legend__item.is-active-off {
  color: var(--color-text-muted);
  opacity: 0.4;
}

.legend__item:not(.is-active-off) .legend__icon {
  color: var(--color-accent);
}

.legend__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.legend__icon .icon {
  display: block;
}

/* Dark mode toggle swaps sun/moon based on the current theme. */
:root[data-theme="dark"] .legend__item--theme .legend__icon {
  transform: rotate(-8deg);
}

/* ---- Right-hand position indicator ---- */

.nav-indicator__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.nav-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: transform var(--duration-medium) var(--ease-camera),
    background var(--duration-medium) var(--ease-camera);
}

.nav-dot--active {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.nav-dot__label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
