/* MV_BackButton — one treatment for every way back (#482).
   Formerly `.chronicle__back` and `.timeline__back`, which were the same
   declarations copy-pasted under two names. Quiet by design: an exit should
   never outweigh the content it leaves, so it stays muted text + a bare
   chevron and only warms on hover/focus. */

.mv-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.mv-back:hover,
.mv-back:focus-visible {
  color: var(--color-text);
  background-color: var(--color-surface-alt);
}

/* Sized to the label's cap height rather than the old 18px text arrow — a
   stroked chevron reads heavier than "←" at the same box. */
.mv-back .icon,
.mv-back .icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Touch-device-only sizing. See css/layout.css for the strategy note. */
@media (hover: none) and (pointer: coarse) {
  .mv-back {
    min-height: var(--touch-target-min);
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv-back {
    transition: none;
  }
}
