.archive-selection-return {
  align-items: center;
  background: var(--color-ink-800);
  border: 1px solid var(--color-ink-500);
  border-left: 3px solid var(--accent-red);
  border-radius: var(--button-radius, 8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  color: var(--color-paper);
  cursor: pointer;
  display: flex;
  font-family: var(--font-heading);
  font-size: var(--font-size-7);
  font-weight: 700;
  gap: 0.65rem;
  line-height: 1.25;
  min-height: 44px;
  padding: 0.7rem var(--space-4);
  position: fixed;
  text-align: left;
  z-index: var(--z-return-control);
}

.archive-selection-return[hidden] { display: none; }
.archive-selection-return__arrow { color: var(--color-paper); font-size: var(--font-size-11); }
.archive-selection-return:hover { background: var(--color-ink-700); border-color: var(--accent-red); }
.archive-selection-return:focus-visible { outline: 2px solid var(--color-paper); outline-offset: 3px; }

/* Return pulse: after "Back to ..." scrolls the selected card into view, a
   soft red ring and glow ease in from the card's own edge and fade, twice.
   Drawn INSIDE the card (an inset shadow on ::before, above the photo) because
   the card lists' scroll areas start flush with the left column: an outside
   ring was cut off there (11 Nov 2026). ::before is free on every archive
   card (::after is used by venues, masks and voices). --return-base-shadow is
   the card's own shadow, captured by archive-selection-return.js, and is
   re-applied !important (ID-weighted) because some archives lock the selected
   card's shadow with !important. */
@property --return-pulse {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.archive-card-return-pulse:not(#archive-return-pulse-bump) {
  /* The cards' own box-shadow transition would chase every frame. */
  transition: none !important;
  box-shadow: var(--return-base-shadow) !important;
}

.archive-card-return-pulse:not(#archive-return-pulse-bump)::before {
  animation: archive-return-pulse 1.2s var(--ease-out) 2 both;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 calc(3px + var(--return-pulse) * 9px) rgba(var(--accent-red-rgb), calc((1 - var(--return-pulse)) * 0.85)),
    inset 0 0 calc(var(--return-pulse) * 24px) calc(var(--return-pulse) * 6px) rgba(var(--accent-red-rgb), calc((1 - var(--return-pulse)) * 0.35));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 5;
}

@keyframes archive-return-pulse {
  from { --return-pulse: 0; }
  to { --return-pulse: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .archive-card-return-pulse:not(#archive-return-pulse-bump)::before {
    animation: none;
    box-shadow: inset 0 0 0 3px rgba(var(--accent-red-rgb), 0.9);
  }
}

@media (max-width: 560px), (max-width: 1120px) and (orientation: landscape) {
  .archive-selection-return { display: none; }
}
