/* Dutch Lion | route motion. Only suppress the old Salient loader when initialized. */
:root { --dl-route-css: 1; }
html.dl-route-ready #ajax-loading-screen { display: none !important; }
html.dl-route-ready { view-transition-name: none; }

#dl-route-transition {
  position: fixed; inset: 0; z-index: 2147483000;
  overflow: hidden; visibility: hidden; pointer-events: none;
  isolation: isolate;
}
#dl-route-transition[data-state="cover"],
#dl-route-transition[data-state="covered"],
#dl-route-transition[data-state="reveal"] { visibility: visible; }
#dl-route-transition[data-state="cover"],
#dl-route-transition[data-state="covered"] { pointer-events: auto; }
#dl-route-transition .dl-route-panel {
  position: absolute; inset: 0; background: var(--dl-route-ink, #0b0b0b);
  transform: translateY(calc(100% + var(--dl-route-cap, clamp(64px, 16vw, 240px))));
}
#dl-route-transition .dl-route-panel::before,
#dl-route-transition .dl-route-panel::after {
  content: ""; position: absolute; left: -20%; width: 140%;
  height: var(--dl-route-cap, clamp(64px, 16vw, 240px)); background: var(--dl-route-ink, #0b0b0b);
}
#dl-route-transition .dl-route-panel::before {
  bottom: calc(100% - 1px); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
#dl-route-transition .dl-route-panel::after {
  top: calc(100% - 1px); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
#dl-route-transition .dl-route-label {
  position: absolute; top: 50%; left: 50%; width: min(86%, 54rem);
  transform: translate(-50%, -50%); text-align: center; overflow-wrap: anywhere;
  font-family: var(--dl-font-display, dutchlion, Arial, sans-serif);
  font-size: var(--dl-route-title-size, clamp(30px, 5vw, 72px)); font-weight: var(--dl-route-title-weight, 700); line-height: var(--dl-route-title-line-height, 1.1);
  letter-spacing: var(--dl-route-title-tracking, -.04em); color: var(--dl-route-accent, #2d86c9); opacity: 0;
}
#dl-route-transition[data-state="cover"] .dl-route-panel { animation: dl-route-cover var(--dl-motion-duration, 520ms) var(--dl-motion-ease, cubic-bezier(.76,0,.24,1)) both; }
#dl-route-transition[data-state="covered"] .dl-route-panel { transform: none; }
#dl-route-transition[data-state="reveal"] .dl-route-panel { animation: dl-route-reveal var(--dl-route-reveal-duration, 580ms) var(--dl-motion-ease, cubic-bezier(.76,0,.24,1)) both; }
#dl-route-transition[data-state="cover"] .dl-route-label { animation: dl-route-label-in var(--dl-route-label-in-duration, 280ms) var(--dl-route-label-in-delay, 180ms) ease-out both; }
#dl-route-transition[data-state="covered"] .dl-route-label { opacity: 1; }
#dl-route-transition[data-state="reveal"] .dl-route-label { animation: dl-route-label-out var(--dl-route-label-out-duration, 240ms) ease-in both; }
@keyframes dl-route-cover { to { transform: translateY(0); } }
@keyframes dl-route-reveal { from { transform: translateY(0); } to { transform: translateY(calc(-100% - var(--dl-route-cap, clamp(64px, 16vw, 240px)))); } }
@keyframes dl-route-label-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes dl-route-label-out { from { opacity: 1; } to { opacity: 0; transform: translate(-50%, calc(-50% - 18px)); } }

/* Early incoming cover, removed only after the real overlay is ready. */
html[data-dl-route-arrival]::after {
  content: attr(data-dl-route-arrival); position: fixed; inset: 0;
  z-index: 2147483001; background: var(--dl-route-ink, #0b0b0b); color: var(--dl-route-accent, #2d86c9);
  display: grid; place-items: center; text-align: center; padding: 7vw;
  font: var(--dl-route-title-weight, 700) var(--dl-route-title-size, clamp(30px, 5vw, 72px))/var(--dl-route-title-line-height, 1.1) var(--dl-font-display, dutchlion, Arial, sans-serif);
  letter-spacing: var(--dl-route-title-tracking, -.04em); overflow-wrap: anywhere; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #dl-route-transition, html[data-dl-route-arrival]::after { display: none !important; }
}
