/* Golden Dove menu-motion trial. Add html.dove-motion-enabled to opt in.
   Standalone enhancement: no navigation state, focus, dimensions or data changes.
   Remove this asset (or the root class) to restore the existing menu. */
@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 1000px) {
    /* Closing is immediate; the existing visibility/inert/scroll-lock logic owns state. */
    html.dove-motion-enabled .dove-site-nav .dove-site-links {
      transition: none;
      animation: none;
      clip-path: inset(0 0 100% 0);
    }
    html.dove-motion-enabled .dove-site-nav.dove-menu-open .dove-site-links {
      transform: none;
      clip-path: inset(0);
      animation: dove-menu-surface-in 380ms cubic-bezier(.22,.7,.2,1) both;
    }
    html.dove-motion-enabled .dove-mobile-groups > * {
      --dove-menu-slot: 0;
    }
    html.dove-motion-enabled .dove-mobile-groups > :nth-child(2) {
      --dove-menu-slot: 1;
    }
    html.dove-motion-enabled .dove-mobile-groups > :nth-child(3) {
      --dove-menu-slot: 2;
    }
    html.dove-motion-enabled .dove-site-links > [data-staging-route="courts"] {
      --dove-menu-slot: 3;
    }
    html.dove-motion-enabled .dove-site-links > [data-staging-route="scores"] {
      --dove-menu-slot: 4;
    }
    html.dove-motion-enabled .dove-site-links > [data-staging-route="admin"] {
      --dove-menu-slot: 5;
    }
    /* Surface begins first. Entries follow 45ms apart; the last ends at 565ms. */
    html.dove-motion-enabled .dove-menu-open .dove-mobile-groups > *,
    html.dove-motion-enabled .dove-menu-open .dove-site-links > [data-staging-route] {
      animation: dove-menu-entry-in 260ms cubic-bezier(.22,.7,.2,1) both;
      animation-delay: calc(80ms + var(--dove-menu-slot, 3) * 45ms);
    }
    html.dove-motion-enabled .dove-mobile-sub {
      animation: none;
    }
    html.dove-motion-enabled .dove-mobile-group[open] > .dove-mobile-sub {
      animation: dove-menu-sub-in 200ms cubic-bezier(.22,.7,.2,1) both;
    }
  }
  @media (min-width: 1001px) {
    html.dove-motion-enabled .dove-desktop-court[open] > .dove-desktop-court-panel {
      animation: dove-menu-popup-in 220ms cubic-bezier(.22,.7,.2,1) both;
    }
  }
}
@keyframes dove-menu-surface-in {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}
@keyframes dove-menu-entry-in {
  from { opacity: 0; transform: translateY(-9px); }
  to { opacity: 1; transform: none; }
}
@keyframes dove-menu-sub-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}
@keyframes dove-menu-popup-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.dove-motion-enabled .dove-site-links,
  html.dove-motion-enabled .dove-mobile-groups > *,
  html.dove-motion-enabled .dove-site-links > [data-staging-route],
  html.dove-motion-enabled .dove-mobile-sub,
  html.dove-motion-enabled .dove-desktop-court-panel,
  html.dove-motion-enabled .dove-menu-toggle span,
  html.dove-motion-enabled .dove-mobile-chevron,
  html.dove-motion-enabled .dove-court-chevron {
    animation: none !important;
    transition: none !important;
  }
}
