/* Mobile catalogue navigation acknowledges both opening and destination taps. */
@keyframes atlas-mobile-menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1280px) {
  .mobile-menu[open] .mobile-menu__panel {
    animation: atlas-mobile-menu-in .18s cubic-bezier(.2,.75,.25,1) both;
    transform-origin: 24px top;
  }

  .mobile-menu__panel a {
    position: relative;
    transition: padding-left .14s ease, background-color .14s ease, color .14s ease, transform .14s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu__panel a::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: -10px;
    width: 3px;
    border-radius: 3px;
    background: var(--atlas-red,#e30613);
    content: "";
    opacity: 0;
    transform: scaleY(.35);
    transition: opacity .14s ease, transform .14s ease;
  }

  .mobile-menu__panel a:is(:active,.is-pressed,.is-navigating) {
    padding-left: 9px;
    background: #fff3f4;
    color: var(--atlas-red,#e30613);
    transform: translateX(2px);
  }

  .mobile-menu__panel a:is(:active,.is-pressed,.is-navigating)::before {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open] .mobile-menu__panel { animation: none; }
  .mobile-menu__panel a,
  .mobile-menu__panel a::before { transition: none; }
}
