/* Topic-led imagery keeps the pathway chooser grounded in the local game. */
.mf-youth-route {
  isolation: isolate;
  background: #061009;
}

.mf-youth-route__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mf-youth-route__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(4, 13, 8, 0.95) 7%, rgba(4, 17, 10, 0.78) 54%, rgba(4, 13, 8, 0.9));
  content: "";
}

.mf-youth-route__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
  transform: scale(1.02);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.mf-youth-route > :not(.mf-youth-route__media) {
  position: relative;
  z-index: 2;
}

.mf-youth-route::before {
  z-index: 3;
}

.mf-youth-route::after {
  z-index: 1;
}

.mf-youth-route:hover .mf-youth-route__media img,
.mf-youth-route:focus-visible .mf-youth-route__media img {
  filter: saturate(0.94) contrast(1.08);
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .mf-youth-route__media img {
    transition: none;
  }
}
