/* --- Accessibility toolbar buttons --- */


.topbar .social-copyright,
.topbar .socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  overflow: visible;
}

@media (min-width: 1200px) {
  .topbar .social-copyright,
  .topbar .socials {
    flex-wrap: nowrap;
  }

  .topbar .col-xl-6 {
    overflow: visible;
  }
}

.a11y-toolbar,
.a11y-toolbar-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  margin-left: 6px;
  white-space: nowrap;
}

.a11y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  transition: filter 0.15s ease;
}

.a11y-btn:hover {
  filter: brightness(1.2);
}

.a11y-btn:active,
.a11y-btn[aria-pressed="true"] {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  filter: brightness(0.9);
}

.a11y-font-increase,
.a11y-font-decrease,
.a11y-font-reset {
  background-color: #2563a8;
  color: #ffffff;
}

.a11y-contrast {
  background-color: #000000;
  color: #ffff00;
}

/* --- High-contrast mode overrides --- */

body.high-contrast,
body.high-contrast * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.high-contrast a,
body.high-contrast a:visited,
body.high-contrast a:hover {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

body.high-contrast img {
  background-color: transparent !important;
}
