@font-face {
  font-family: "A11yFont";
  src: url(/fonts/a11y/AtkinsonHyperlegible-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "A11yFont";
  src: url(/fonts/a11y/AtkinsonHyperlegible-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Floating button */
#a11y-btn {
  position: fixed;
  right: 15px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: #3a3a3a;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  font-size: 20px;
  border: 2px solid rgba(255,255,255,0.7);
  transition: 0.25s ease;
}
#a11y-btn:hover {
  background: #2f2f2f;
}
#a11y-btn svg {
  width: 24px;
  height: 24px;
}

/* Panel */
#a11y-menu {
  position: fixed;
  right: 15px;
  bottom: 80px;
  width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

#a11y-menu.active {
  display: flex;
}

.a11y-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* Buttons */
#a11y-menu button {
  background: #f6f6f6;
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
}

#a11y-menu button:hover {
  background: #eaeaea;
}

#a11y-menu .reset {
  background: #000;
  color: #fff;
}
#a11y-menu .reset:hover {
  color: #000;
}

/* Modes */
.a11y-grayscale {
  filter: grayscale(100%);
}

.a11y-invert {
  filter: invert(1) hue-rotate(180deg);
}

.a11y-underline-links a {
  text-decoration: underline !important;
}

.a11y-highlight-links a {
  background: yellow !important;
  color: #000 !important;
}

.a11y-readable-font body,
.a11y-readable-font body * {
  font-family: "A11yFont", Arial, Helvetica, sans-serif !important;
  line-height: 1.6;
  letter-spacing: 0.03em;
}