/* Quiet feedback for the studio's navigation and service notes. */
.home-compact .hero-route:focus-visible,
.home-compact .hero-route:active {
  --route-arrow-shift: 4px;
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

@media (hover: hover) {
  .home-compact .hero-route:hover {
    --route-arrow-shift: 4px;
    background-color: color-mix(in srgb, var(--accent) 12%, transparent);
  }
}

/* Both symbols share the same centre and the same click target. */
summary[aria-controls="service-note"] > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  font-size: 0;
}

summary[aria-controls="service-note"] > span[aria-hidden="true"]::before,
summary[aria-controls="service-note"] > span[aria-hidden="true"]::after {
  content: "";
  grid-area: 1 / 1;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background-color: currentColor;
}

summary[aria-controls="service-note"] > span[aria-hidden="true"]::before { transform: rotate(0deg); }
summary[aria-controls="service-note"] > span[aria-hidden="true"]::after { transform: rotate(90deg); }
summary[aria-controls="service-note"][aria-expanded="true"] > span[aria-hidden="true"]::before { transform: rotate(45deg); }
summary[aria-controls="service-note"][aria-expanded="true"] > span[aria-hidden="true"]::after { transform: rotate(135deg); }

@media (prefers-reduced-motion: no-preference) {
  .home-compact .hero-route { transition: background-color 180ms ease-out; }
  .home-compact .route-arrow {
    transform: translateX(var(--route-arrow-shift, 0px));
    transition: transform 180ms ease-out;
  }

  summary[aria-controls="service-note"] > span[aria-hidden="true"]::before,
  summary[aria-controls="service-note"] > span[aria-hidden="true"]::after {
    transition: transform 160ms ease-out;
  }

  .service-note:popover-open { animation: studio-note-in 160ms ease-out; }

  @media (max-width: 900px) {
    .menu-toggle[aria-expanded="true"] + .site-nav:not([hidden]) {
      animation: studio-menu-in 170ms ease-out;
    }
  }
}

@keyframes studio-note-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes studio-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Use the note marker when enhanced, with the native disclosure as a fallback. */
.picker-disclosure > summary[aria-controls="service-note"]::after { content: none; }
.service-note-body .picker-disclosure-body { padding: 0; color: inherit; font: inherit; }
