/* GOR Global Market Access Consultancy - small additions to Tailwind */

html {
  scroll-behavior: smooth;
}

dialog {
  max-height: 85vh;
}

dialog::backdrop {
  background: rgba(15, 28, 46, 0.7);
}

dialog[open] {
  animation: dialog-in 0.2s ease-out;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.dialog-open {
  overflow: hidden;
}

.route-line {
  stroke-dasharray: 6 8;
  animation: route-move 18s linear infinite;
}

@keyframes route-move {
  to { stroke-dashoffset: -280; }
}

:focus-visible {
  outline: 3px solid #2A9D8F;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .route-line {
    animation: none;
  }
}
