/* Barra de Acessibilidade — Topo */

#accessibility-widget {
  width: 100%;
  background: #96cbff;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border: none;
  position: sticky;
  top: 0;
  z-index: 200;
  line-height: 1;
  min-height: 35px;
  box-sizing: border-box;
}

/* Header sticky do tema fica abaixo da barra de acessibilidade */
#header.sticky-header #header-wrap {
  top: 35px !important;
}

.a11y-label {
  font-size: 13px;
  font-weight: 700;
  color: #003f75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.a11y-sep {
  color: #005ca9;
  opacity: 0.5;
  font-size: 13px;
  user-select: none;
}

.a11y-link {
  font-size: 13px;
  font-weight: 600;
  color: #003f75;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  padding: 3px 6px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}

.a11y-link:hover,
.a11y-link:focus {
  background: #005ca9;
  color: #fff !important;
  outline: none;
}

.a11y-link.active {
  background: #005ca9;
  color: #fff !important;
}

.a11y-font-group {
  display: flex;
  gap: 2px;
  align-items: center;
}

.a11y-link-reset {
  opacity: 0.7;
}

/* ---- Alto Contraste WCAG (Amarelo em Preto) ---- */

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

body.a11y-high-contrast *:not(#accessibility-widget):not(#accessibility-widget *) {
  background-color: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

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

body.a11y-high-contrast a:hover,
body.a11y-high-contrast a:focus,
body.a11y-high-contrast a:visited {
  color: #ffff00 !important;
  background-color: #333333 !important;
}

body.a11y-high-contrast button:not(.a11y-btn) {
  background-color: #1a1a1a !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

body.a11y-high-contrast input,
body.a11y-high-contrast select,
body.a11y-high-contrast textarea {
  background-color: #1a1a1a !important;
  color: #ffff00 !important;
  border: 2px solid #ffff00 !important;
}

body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast h6 {
  color: #ffff00 !important;
}

body.a11y-high-contrast img {
  border: 1px solid #ffff00;
  opacity: 0.95;
}

/* Widget de acessibilidade mantém cores originais */
body.a11y-high-contrast #accessibility-widget {
  background-color: #96cbff !important;
  color: #003f75 !important;
}

body.a11y-high-contrast #accessibility-widget * {
  background-color: inherit !important;
  color: inherit !important;
  border-color: #003f75 !important;
}

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

body.a11y-pause-anim *,
body.a11y-pause-anim *::before,
body.a11y-pause-anim *::after {
  animation: none !important;
  transition: none !important;
}
