/* The map's anchor means its whole viewport: chapter dots and direct links land exactly where it pins.
   This cancels the document's header scroll padding; phones keep their cover list's own offset. */
@media (min-width: 800px) and (not ((pointer: coarse) and (max-width: 1023px) and (max-height: 500px))) {
  .public-home #solar-system.story-map {
    scroll-margin-top: calc(-1 * (var(--safe-top) + var(--chrome-h) * var(--chrome-scale) + 8px));
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .public-home .chapter-nav a::before {
    transition: transform .16s ease-out, background-color .16s ease-out, border-color .16s ease-out;
  }
  .public-home .chapter-nav a:hover::before {
    border-color: #b3d9eb;
    transform: scale(1.5);
  }
  .public-home .chapter-nav a:active::before {
    transform: scale(1.15);
  }
}

/* At the series heading the first card sits below the fold: show its art, not half a title. */
.series-editorial .has-series-shutters[data-shutter-entry="true"] .episode-card > :is(.card-meta, h3, p, .text-link) {
  opacity: 0 !important;
  pointer-events: none;
}
