/* Minimal, safe normalization to avoid cross-browser surprises.
   This is intentionally small and namespaced-friendly.
   Replace with the full "normalize.css" from https://necolas.github.io/normalize.css/ if you prefer.
*/

/* Box sizing -----------------------------------------------------------------*/
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Remove default margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements */
ul[role='list'],
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Set core body defaults */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

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

/* Remove all animations for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Links */
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

/* Buttons */
button {
  background: none;
  border: none;
  padding: 0;
}

/* Forms: make inputs readable */
input::-moz-focus-inner {
  border: 0;
}

/* Ensure consistent table layout */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Global focus handling
   Hide focus outlines for pointer users while preserving keyboard-visible focus for accessibility.
   This removes the visible focus ring in most mouse interactions but keeps it when the user tabs.
*/
:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Explicitly suppress outline for common interactive elements when not focus-visible */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Remove visited/hover/active visual styles site-wide as requested */

a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Remove active/focus visuals on controls */
button,
input,
textarea,
select {
  outline: none !important;
  box-shadow: none !important;
}

/* Disable mobile link tap highlight */
html,
body {
  -webkit-tap-highlight-color: transparent;
}
