/* Running Wid Da Streets Ltd - small additions to Tailwind */

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

section[id] { scroll-margin-top: 5rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* Street-style dashed road line */
.road-line {
  background-image: repeating-linear-gradient(90deg, #F5C518 0 28px, transparent 28px 48px);
  height: 6px;
}

/* Subtle concrete grain for dark sections */
.grain {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(230, 59, 46, 0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(245, 197, 24, 0.10), transparent 40%),
    linear-gradient(180deg, #111111 0%, #181818 100%);
}

/* Equaliser bars in the hero graphic */
.eq-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: eq 1.6s ease-in-out infinite alternate;
}
.eq-bar:nth-child(2n) { animation-duration: 1.2s; }
.eq-bar:nth-child(3n) { animation-duration: 2s; animation-delay: -0.4s; }
.eq-bar:nth-child(5n) { animation-duration: 1.4s; animation-delay: -0.8s; }

@keyframes eq {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.vinyl-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dialogs */
dialog::backdrop { background: rgba(17, 17, 17, 0.75); }
dialog[open] { animation: fade-in 0.2s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

body.dialog-open { overflow: hidden; }

@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;
  }
  .eq-bar, .vinyl-spin { animation: none !important; }
}
