/* Acessibilidade e movimento: peça padrão (ver acessibilidade.js). Herda fonte e cor do cabeçalho do site.
   Ajuste fino por site com as variáveis: --a11y-fundo, --a11y-texto, --a11y-destaque, --a11y-borda. */
.a11y { position: relative; display: inline-flex; align-items: center; }
.a11y-botao {
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-width: 44px; min-height: 44px; padding: 0 .35em; border-radius: 999px; position: relative;
  opacity: .85; transition: opacity .2s;
}
.a11y-botao:hover, .a11y-botao[aria-expanded="true"] { opacity: 1; }
.a11y-botao:focus-visible, .a11y-painel :focus-visible, .a11y-carregar:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px;
}
.a11y-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a11y-com-texto .a11y-rotulo { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.a11y-ativo::after {
  content: ""; position: absolute; top: 9px; right: 7px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--a11y-destaque, currentColor);
}
.a11y-com-texto .a11y-ativo::after { position: static; margin-left: .2em; }
.a11y-painel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000; min-width: 16rem;
  background: var(--a11y-fundo, #fff); color: var(--a11y-texto, #1c1917);
  border: 1px solid var(--a11y-borda, rgba(0,0,0,.08)); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: .5rem; font-size: .95rem; line-height: 1.3; text-align: left;
}
.a11y-painel[hidden] { display: none; }
.a11y-com-texto .a11y-painel { position: static; margin-top: .5rem; box-shadow: none; }
.a11y-opcao { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .75rem; border-radius: 10px; cursor: pointer; }
.a11y-opcao:hover { background: rgba(127,127,127,.08); }
.a11y-opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-chave { flex: none; width: 38px; height: 22px; border-radius: 999px; background: rgba(127,127,127,.35); position: relative; transition: background .2s; }
.a11y-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.a11y-opcao input:checked + .a11y-chave { background: var(--a11y-destaque, #1c1917); }
.a11y-opcao input:checked + .a11y-chave::after { transform: translateX(16px); }
.a11y-opcao input:focus-visible + .a11y-chave { outline: 2px solid var(--a11y-destaque, #1c1917); outline-offset: 2px; }
.a11y-link { display: block; padding: .6rem .75rem .45rem; font-size: .85rem; color: inherit; opacity: .75; }
.a11y-link:hover { opacity: 1; }

/* Menos movimento: tudo termina na hora, no estado final (conteúdo que "surge" aparece já pronto). */
html.movimento-reduzido *, html.movimento-reduzido *::before, html.movimento-reduzido *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
  transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
html.movimento-reduzido [data-faixa] { animation: none !important; transform: none !important; }
[data-faixa]:hover, [data-faixa]:focus-within, :hover > [data-faixa] { animation-play-state: paused; }

/* Contraste reforçado: a imagem de fundo recua e o texto sobre imagem ganha base sólida. */
html.contraste-reforcado [data-veu] { opacity: .12 !important; }
html.contraste-reforcado [data-sobre-imagem] {
  text-shadow: none !important; background: rgba(0,0,0,.78); color: #fff !important;
  box-shadow: 0 0 0 .35em rgba(0,0,0,.78); border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Carregar no clique */
[data-carregar-no-clique] { position: relative; }
.a11y-carregar {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: inherit; cursor: pointer; border: 0; border-radius: 999px; padding: .7em 1.2em; min-height: 44px;
  background: rgba(0,0,0,.72); color: #fff;
}
.a11y-quadro { border: 0; width: 100%; height: 100%; min-height: inherit; display: block; }

/* Campo isca do formulário (robôs preenchem, pessoas não veem) */
.campo-isca { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
