*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; min-height: 100vh; }
img, video { max-width: 100%; height: auto; }
svg { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
ul, ol { margin-top: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--tpc-focus-color); outline-offset: 2px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.screen-reader-text:focus,
.tpc-skip-link:focus {
  position: fixed; top: var(--tpc-space-2); left: var(--tpc-space-2); z-index: 100000;
  width: auto; height: auto; margin: 0; padding: var(--tpc-space-3) var(--tpc-space-4);
  overflow: visible; clip: auto; clip-path: none; white-space: normal;
  background: var(--tpc-background-color); color: var(--tpc-text-color);
  border-radius: var(--tpc-border-radius); box-shadow: var(--tpc-shadow-md); text-decoration: none;
}

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