.neruds-a11y-skip {
  background: #000;
  color: #fff;
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: .75rem;
  transform: translateY(-150%);
  z-index: 10000;
}

.neruds-a11y-skip:focus {
  transform: translateY(0);
}

.neruds-a11y-toolbar {
  bottom: 1rem;
  display: grid;
  gap: .5rem;
  left: 1rem;
  max-width: min(22rem, calc(100vw - 2rem));
  position: fixed;
  z-index: 9999;
}

.neruds-a11y-toolbar__toggle,
.neruds-a11y-toolbar__button {
  background: #111;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  padding: .65rem .8rem;
}

.neruds-a11y-toolbar__toggle {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  justify-self: start;
}

.neruds-a11y-toolbar__panel {
  background: #fff;
  border: 1px solid #cfd8cf;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(18, 30, 22, .22);
  color: #172017;
  display: grid;
  gap: .5rem;
  padding: .75rem;
}

.neruds-a11y-toolbar__panel[hidden] {
  display: none;
}

.neruds-a11y-toolbar__title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 .25rem;
}

.neruds-a11y-toolbar__button {
  background: #f8faf6;
  border-color: #b7c5b7;
  color: #172017;
  text-align: left;
}

.neruds-a11y-toolbar__button[aria-pressed="true"] {
  background: #000;
  border-color: #000;
  color: #ffe900;
}

body.neruds-a11y-high-contrast {
  background: #000 !important;
  color: #ffe900 !important;
}

body.neruds-a11y-high-contrast :where(a, button, input, select, textarea) {
  outline-color: #ffe900;
}

body.neruds-a11y-high-contrast :where(section, article, aside, header, footer, nav, div) {
  border-color: #ffe900 !important;
}

body.neruds-a11y-grayscale {
  filter: grayscale(1);
}

body.neruds-a11y-readable {
  line-height: 1.75;
  word-spacing: .12em;
}

body.neruds-a11y-readable :where(p, li, dd, dt, label, input, textarea, button) {
  letter-spacing: .02em;
}

body.neruds-a11y-large-cursor,
body.neruds-a11y-large-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='2' d='M4 3l18 16h-9l-4 9z'/%3E%3C/svg%3E") 4 3, auto;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #1e88e5;
  outline-offset: 3px;
}

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

@media (max-width: 520px) {
  .neruds-a11y-toolbar {
    bottom: .75rem;
    left: .75rem;
  }
}
