/* iT2Us — função 117: acessibilidade do app (WCAG 2.2 AA). Vale para todos, com ou sem o menu:
   pular para o conteúdo, foco bem visível (contraste ≥ 3:1), alvos de toque de no mínimo 24 px e "reduzir movimento" do sistema.
   O menu de acessibilidade (public/acessibilidade.js) liga as classes a11y-* no <html>, salvas no aparelho. */
.a11y-pular { position: absolute; left: 12px; top: -60px; z-index: 10000; background: #141A18; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.a11y-pular:focus { top: 12px; }
:focus-visible { outline: 3px solid #0B6B47 !important; outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #0B6B47 !important; outline-offset: 1px; }
/* :where() = peso zero: o mínimo de 24 px nunca passa por cima do tamanho de toque do app (48 px no celular) */
:where(button, .btn, [role="button"], a.tab, .nav a) { min-height: 24px; }
input:where([type="checkbox"], [type="radio"]) { min-width: 18px; min-height: 18px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
/* ---- ajustes do menu */
html.a11y-t1 body { zoom: 1.12; } html.a11y-t2 body { zoom: 1.25; } html.a11y-t3 body { zoom: 1.5; }
html.a11y-contraste { --texto: #000; } html.a11y-contraste body { background: #fff !important; color: #000 !important; }
html.a11y-contraste .card, html.a11y-contraste .side, html.a11y-contraste .top, html.a11y-contraste dialog { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; box-shadow: none !important; }
html.a11y-contraste small, html.a11y-contraste .sub, html.a11y-contraste .tiny, html.a11y-contraste .muted, html.a11y-contraste p { color: #000 !important; }
html.a11y-contraste a { color: #00308F !important; text-decoration: underline !important; }
html.a11y-contraste .btn.pri, html.a11y-contraste button.pri { background: #000 !important; color: #fff !important; border: 2px solid #000 !important; }
html.a11y-contraste .btn.sec, html.a11y-contraste .btn.link { background: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html.a11y-contraste input, html.a11y-contraste select, html.a11y-contraste textarea { border: 2px solid #000 !important; color: #000 !important; background: #fff !important; }
html.a11y-contraste img:not([alt=""]), html.a11y-contraste svg { filter: contrast(1.2); }
html.a11y-movimento *, html.a11y-movimento *::before, html.a11y-movimento *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-movimento video { display: none !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-espaco body { line-height: 1.6 !important; letter-spacing: .12em !important; word-spacing: .16em !important; } html.a11y-espaco p { margin-bottom: 2em !important; }
html.a11y-foco :focus-visible { outline: 4px solid #FF7A00 !important; outline-offset: 3px; box-shadow: 0 0 0 7px #141A18 !important; }
html.a11y-fonte body, html.a11y-fonte input, html.a11y-fonte button, html.a11y-fonte select, html.a11y-fonte textarea { font-family: Verdana, Tahoma, 'Segoe UI', Arial, sans-serif !important; }
/* ---- o botão e o painel */
.a11y-botao { position: fixed; left: 14px; bottom: 14px; z-index: 9998; width: 48px; height: 48px; border-radius: 50%; border: 2px solid #141A18; background: #fff; color: #141A18; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(20,26,24,.14); }
.a11y-botao svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.a11y-painel { position: fixed; left: 14px; bottom: 72px; z-index: 9999; width: min(360px, calc(100vw - 28px)); max-height: calc(100vh - 100px); overflow: auto; background: #fff; color: #141A18; border: 1px solid #C9D1CD; border-radius: 16px; padding: 18px; box-shadow: 0 12px 40px rgba(20,26,24,.18); font: 15px/1.5 Inter, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: normal; word-spacing: normal; }
.a11y-painel[hidden] { display: none; } .a11y-painel h2 { font-size: 17px; margin: 0 0 4px; } .a11y-painel p { font-size: 13.5px; color: #3A4440; margin: 0 0 12px; }
.a11y-painel fieldset { border: 0; padding: 0; margin: 0 0 12px; } .a11y-painel legend { font-weight: 600; margin-bottom: 6px; }
.a11y-tam { display: flex; gap: 6px; } .a11y-tam button { flex: 1; min-height: 40px; border: 1px solid #6B7570; border-radius: 10px; background: #fff; color: #141A18; font-weight: 700; cursor: pointer; }
.a11y-tam button[aria-pressed="true"] { background: #141A18; color: #fff; border-color: #141A18; }
.a11y-opcao { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #E8ECEA; min-height: 44px; cursor: pointer; }
.a11y-opcao input { width: 20px; height: 20px; }
.a11y-acoes { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; } .a11y-acoes button { min-height: 40px; border-radius: 999px; padding: 0 16px; border: 1px solid #141A18; background: #fff; color: #141A18; font-weight: 600; cursor: pointer; }
.a11y-acoes button.a11y-fechar { background: #141A18; color: #fff; }
@media print { .a11y-botao, .a11y-painel { display: none !important; } }
.a11y-botao .sr, .a11y-painel .sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* no app a barra do post-it e da 12C fica no canto de baixo à esquerda: o botão sobe (a classe vem do acessibilidade.js) */
.a11y-botao.a11y-alto { bottom: 72px; } .a11y-painel.a11y-alto { bottom: 130px; }
@media (max-width: 760px) { .a11y-botao { bottom: 86px; width: 44px; height: 44px; } .a11y-painel { bottom: 138px; } .a11y-botao.a11y-alto { bottom: 96px; } .a11y-painel.a11y-alto { bottom: 150px; } }
.a11y-botao.a11y-no-mais { display: none; }
