.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000001;
  padding: 12px 16px;
  color: #fff;
  background: #1f425d;
  border-radius: 4px;
  transform: translateY(-150%);
  transition: transform .15s ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #e21f2f !important;
  outline-offset: 3px;
}

#conteudo-principal:focus {
  outline: none;
}

.accessibility-page {
  padding-top: 45px;
  padding-bottom: 55px;
}

.accessibility-page .entry-content {
  font-size: 17px;
  line-height: 1.75;
}

.accessibility-page h2 {
  margin-top: 34px;
  margin-bottom: 14px;
}

.accessibility-page li {
  margin-bottom: 12px;
}

.top__accessibility-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.top__accessibility-row .top__tagline {
  margin-right: auto;
}

.top__accessibility-row .top__menu {
  float: none;
}

.accessibility-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
}

.accessibility-tool {
  min-width: 31px;
  height: 29px;
  padding: 0 5px;
  border: 1px solid #b9c2c9;
  border-radius: 4px;
  color: #1f425d;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 27px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.accessibility-tool:hover,
.accessibility-tool:focus {
  color: #fff;
  background: #1f425d;
}

.accessibility-tool:disabled {
  color: #8b949b;
  background: #e5e8ea;
  cursor: not-allowed;
  opacity: .7;
}

.accessibility-tool--contrast {
  min-width: 29px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.accessibility-contrast-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: linear-gradient(90deg, #000 0 50%, #ffeb00 50% 100%);
  vertical-align: top;
}

html.a11y-high-contrast body,
html.a11y-high-contrast .boxed-container,
html.a11y-high-contrast .top,
html.a11y-high-contrast .header__container,
html.a11y-high-contrast .header__widgets,
html.a11y-high-contrast .header__logo,
html.a11y-high-contrast .main-title,
html.a11y-high-contrast .breadcrumbs,
html.a11y-high-contrast #conteudo-principal,
html.a11y-high-contrast #conteudo-principal .panel-row-style,
html.a11y-high-contrast #conteudo-principal .panel,
html.a11y-high-contrast #conteudo-principal .panel-heading,
html.a11y-high-contrast #conteudo-principal .icon-box,
html.a11y-high-contrast #conteudo-principal .featured-widget,
html.a11y-high-contrast #conteudo-principal .page-box__content,
html.a11y-high-contrast .footer,
html.a11y-high-contrast .footer-bottom {
  color: #fff !important;
  background: #000 !important;
  background-image: none !important;
}

html.a11y-high-contrast body :is(h1, h2, h3, h4, h5, h6, p, span, li, label, strong, td, th) {
  color: #fff !important;
}

html.a11y-high-contrast body a,
html.a11y-high-contrast body a span {
  color: #ffeb00 !important;
}

/* O widget da Jotform conserva cartões claros; mantenha texto escuro neles. */
html.a11y-high-contrast #JFWebsiteWidget-01a090893be070008b9d86a3a7830caa21b4 :is(div, p, span, strong, b, cite) {
  color: #111 !important;
}

html.a11y-high-contrast #JFWebsiteWidget-01a090893be070008b9d86a3a7830caa21b4 a,
html.a11y-high-contrast #JFWebsiteWidget-01a090893be070008b9d86a3a7830caa21b4 button {
  color: #004dcc !important;
}

html.a11y-high-contrast body :is(input, select, textarea) {
  color: #fff !important;
  background: #000 !important;
  border-color: #fff !important;
}

html.a11y-high-contrast .accessibility-tool {
  color: #000 !important;
  background: #ffeb00 !important;
  border-color: #fff !important;
}

html.a11y-high-contrast img {
  filter: contrast(115%);
}

@media (max-width: 991px) {
  .top__accessibility-row {
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .top__accessibility-row .top__tagline {
    display: none;
  }

  .top__accessibility-row .top__menu {
    width: 100%;
  }
}
