/* Site-specific styles that are not provided by Tailwind utilities. */

html {
  scroll-padding-top: 4rem;
}

body {
  overflow-x: hidden;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
  .mobile-nav {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgb(226 232 240);
    box-shadow: 0 12px 24px rgb(15 23 42 / 0.1);
  }

  .mobile-nav:not(.hidden) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .mobile-nav a {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
  }

  .mobile-nav a:last-child {
    justify-content: center;
    margin-top: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.protected-image-overlay {
  -webkit-user-select: none;
  user-select: none;
}
