/* Skip link: hidden until focused with the keyboard. */
.skip-link {
  background: var(--color-text);
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: absolute;
  top: -100px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* A visible focus ring wherever a component sets none. */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* main takes focus from the skip link: a landmark, not a control, so no ring. */
#contenido:focus {
  outline: none;
}

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

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

/* Read by screen readers, not shown (labels of icon-only controls, the chat's box). */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
