/* Arena B3 — Ferramentas de acessibilidade (port do Teatro TotalEnergies) */

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: #002C63;
  color: #fff;
  font-weight: 700;
  border-radius: 0.25rem;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 1rem;
}

html.acc-font-large {
  font-size: 120% !important;
}

html.acc-font-small {
  font-size: 85% !important;
}

html.acc-grayscale {
  filter: grayscale(100%) !important;
}

html.acc-grayscale.acc-invert {
  filter: grayscale(100%) invert(100%) hue-rotate(180deg) !important;
}

html.acc-high-contrast,
html.acc-high-contrast * {
  background: #000 !important;
  color: #ff0 !important;
}

html.acc-high-contrast img {
  filter: contrast(150%) grayscale(80%) !important;
}

html.acc-invert {
  filter: invert(100%) hue-rotate(180deg) !important;
}

html.acc-light-bg * {
  background-color: #fff !important;
  color: #000 !important;
}

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

html.acc-readable-font,
html.acc-readable-font * {
  font-family: 'OpenDyslexic', sans-serif !important;
}

.a11y-toolbar {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(5rem, calc(env(safe-area-inset-bottom) + 4rem));
  z-index: 2147482000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-family: Mulish, sans-serif;
}

.a11y-toolbar__panel {
  width: min(18rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  border-radius: 0.75rem 0 0 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #212529;
}

.a11y-toolbar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #002C63;
  color: #fff;
}

.a11y-toolbar__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.a11y-toolbar__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.a11y-toolbar__close:hover,
.a11y-toolbar__close:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.a11y-toolbar__list {
  margin: 0;
  padding: 0.5rem;
  list-style: none;
}

.a11y-toolbar__option,
.a11y-toolbar__reset {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.a11y-toolbar__option:hover,
.a11y-toolbar__reset:hover {
  background: rgba(0, 44, 99, 0.08);
}

.a11y-toolbar__option:focus-visible,
.a11y-toolbar__reset:focus-visible {
  background: rgba(0, 44, 99, 0.08);
  outline: 2px solid #002C63;
  outline-offset: -2px;
}

.a11y-toolbar__option--active {
  border-color: #002C63;
  background: rgba(0, 44, 99, 0.12);
  font-weight: 700;
}

.a11y-toolbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: rgba(0, 44, 99, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
}

.a11y-toolbar__reset {
  margin: 0.25rem 0.5rem 0.75rem;
  width: calc(100% - 1rem);
  border-top: 1px solid rgba(0, 44, 99, 0.12);
  border-radius: 0;
  padding-top: 0.875rem;
}

.a11y-toolbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.75rem 0 0 0.75rem;
  background: #002C63;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.a11y-toolbar__toggle:hover,
.a11y-toolbar__toggle:focus-visible {
  filter: brightness(1.1);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.a11y-toolbar__toggle-icon {
  font-size: 1.125rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .a11y-toolbar__toggle-label {
    display: none;
  }

  .a11y-toolbar__toggle {
    padding: 0.75rem;
  }
}
