/* Shared accessibility helpers. Keep focus visible for keyboard users. */
.skip-link {
  position: fixed;
  z-index: 2000;
  top: -6rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid #123f67;
  border-radius: 0.25rem;
  background: #fff;
  color: #123f67;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #123f67;
  outline-offset: 3px;
}

#main-content {
  scroll-margin-top: 1rem;
}

:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible {
  outline: 3px solid #123f67 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #fff !important;
}

.ouvidoria-dropzone:focus-within {
  outline: 3px solid #123f67;
  outline-offset: 3px;
}

:where(.hamburger, .btn-close, .institutional-lightbox__button, .progress-wrap) {
  min-width: 44px;
  min-height: 44px;
}

.progress-wrap {
  padding: 0;
  border: 0;
  background: transparent;
}

.faq-accordion-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Make semantic dropdown buttons look like the other navbar links. */
.navbar-nav .nav-link.dropdown-toggle[type="button"] {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar-nav .nav-link.dropdown-toggle[type="button"]:focus:not(:focus-visible) {
  outline: none;
}

@media (forced-colors: active) {
  :where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible,
  .ouvidoria-dropzone:focus-within {
    outline-color: Highlight !important;
  }
}
