/* A reading line follows the native page scroll. */
@media screen {
  .site-header::after {
    position: absolute;
    inset: auto 0 -1px;
    z-index: 1;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, #e77b14, #ed9b24 34%, #995197 68%, #492662);
    transform-origin: left center;
    transform: scaleX(var(--alumni-reading-progress, 0));
    pointer-events: none;
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* Individual translate keeps the slideshow and story transitions independent. */
  html[data-alumni-depth] :is(.movement-project-media:not(.is-portrait), #partner .partner-photo-window) > img {
    inset-block: -15px;
    height: calc(100% + 30px);
    translate: 0 var(--alumni-photo-offset, 0px);
  }

  [data-scroll-accent].accent-in-view {
    animation: alumni-accent-arrive 540ms cubic-bezier(.16, .7, .3, 1);
  }

  @keyframes alumni-accent-arrive {
    from { opacity: .65; translate: 0 5px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (forced-colors: active) {
  .site-header::after { background: Highlight; }
}

/* On phones, colour and space carry the hierarchy. Keep useful containers. */
@media (max-width: 760px) {
 .alumni-movement-home .site-header::after,
 .alumni-movement-home .partnership-contour,
 .alumni-movement-home .story-chapter-layout::before,
 .alumni-movement-home .graduate-portrait-art::after { display: none; }
 .alumni-movement-home :is(.committee-contact, .partner-connect, .footer-bottom, .story-archive-link, .network-breakdown, .hrm-map-sources) { border-top: 0; }
 .alumni-movement-home :is(.leader-tabs, .resource-tabs, .network-figures) { border-bottom: 0; }
 .alumni-movement-home #next-chapter .pill-filters { border-bottom: 0; }
 .alumni-movement-home .network-figure + .network-figure { border-left: 0; }
 .alumni-movement-home .hrm-map-svg { background-image: none; }
 .alumni-movement-home :is(a, button, summary),
 .alumni-movement-home :is(a, button, summary):hover { text-decoration: none; }
 .alumni-movement-home :is(.text-link, .welcome-partner, .back-to-welcome, .published-story-link) { border-bottom: 0; }
 .alumni-movement-home .graduate-message > p a { text-decoration: none; font-weight: 700; }
 .alumni-movement-home :is(.story-archive-link a, .committee-contact a) { text-decoration: none; }
}

@media (max-width: 350px) {
 .alumni-movement-home .brand img { width: 4.7rem; }
 .alumni-movement-home .brand > span { font-size: .9rem; }
 .alumni-movement-home .header-inner { gap: .35rem; }
 .alumni-movement-home .menu-toggle { padding-inline: .6rem; }
}

.alumni-movement-home #network-map-panel .hrm-map-impact-key { display: flex; }
.alumni-movement-home #network-map-panel .hrm-map-impact-key i { background: #9bbcaa; border: 0; border-radius: 3px; box-shadow: none; }
@media (max-width: 760px) {
 .alumni-movement-home #map #network-map-panel .hrm-map-svg { background-image: none; }
 .alumni-movement-home #network-map-panel .hrm-map-sources summary { border-top: 0; }
 .alumni-movement-home #map #story-atlas-panel #community { border-bottom: 0; }
 .alumni-movement-home #story-atlas-panel .network-figure + .network-figure { border-left: 0; }
 .alumni-movement-home :is(a, button, summary) { text-decoration: none !important; }
 .alumni-movement-home :is(.text-link, .welcome-partner, .back-to-welcome, .published-story-link) { border-bottom: 0 !important; }
}
