/* ==========================================================================
   RC RALLYE LOCATION — CSS Reset
   Modern normalisation for consistent cross-browser rendering.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul[role='list'],
ol[role='list'],
ul,
ol {
  list-style: none;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
}

/* Anchor elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default button styles */
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Remove all animations, transitions and smooth scroll for people who prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

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

/* Remove default fieldset styles */
fieldset {
  border: none;
}

/* Fix table border collapse */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Prevent textarea from overflowing */
textarea {
  resize: vertical;
}

/* Remove text decoration from anchors */
a {
  text-decoration: none;
  color: inherit;
}
