/* Acessibilidade: botão "Aa" e os modos (texto maior, alto contraste, leitura fácil, menos movimento) */
.a11y-bt { position: fixed; z-index: 2147483000; right: 18px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(150deg, #f39200, #d97706); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 26px rgba(11, 46, 92, .35); transition: transform .18s; }
.a11y-bt:hover { transform: scale(1.06); }
.a11y-bt:focus-visible, .a11y-pn button:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
@media (max-width: 900px) { .a11y-bt { bottom: calc(84px + env(safe-area-inset-bottom)); right: 12px; width: 48px; height: 48px; } }
.a11y-pn { position: fixed; z-index: 2147483001; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); width: min(330px, calc(100vw - 32px)); background: #fff; color: #13233a; border-radius: 20px; box-shadow: 0 24px 60px rgba(4, 26, 54, .35); padding: 16px; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; display: grid; gap: 10px; }
@media (max-width: 900px) { .a11y-pn { bottom: calc(144px + env(safe-area-inset-bottom)); right: 12px; } }
.a11y-pn[hidden] { display: none; }
.a11y-cab { display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem; color: #0b2e5c; }
.a11y-x { border: 0; background: #eef3fa; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: #0b2e5c; }
.a11y-tam { display: grid; gap: 6px; }
.a11y-tam > span { font-weight: 700; font-size: .85rem; color: #5b6b80; }
.a11y-tam > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y-tam button { min-height: 46px; border-radius: 12px; border: 1.5px solid #cfdcef; background: #fff; font-weight: 800; color: #0b2e5c; cursor: pointer; }
.a11y-tam button[aria-pressed="true"] { background: #0b2e5c; color: #fff; border-color: #0b2e5c; }
.a11y-op { display: grid; grid-template-columns: 1fr auto; text-align: left; gap: 0 10px; align-items: center; border: 1.5px solid #e2e8f0; background: #f8fafc; border-radius: 14px; padding: 10px 12px; min-height: 52px; cursor: pointer; color: #13233a; }
.a11y-op b { font-size: .98rem; } .a11y-op small { grid-column: 1; color: #5b6b80; font-size: .8rem; }
.a11y-op i { grid-row: 1 / span 2; grid-column: 2; width: 42px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; }
.a11y-op i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.a11y-op[aria-pressed="true"] { border-color: #0b5cad; background: #eef5ff; }
.a11y-op[aria-pressed="true"] i { background: #0f9d58; } .a11y-op[aria-pressed="true"] i::after { transform: translateX(18px); }
.a11y-ouvir { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 0; background: #0b2e5c; color: #fff; font-weight: 800; font-size: .98rem; cursor: pointer; }
.a11y-zerar { border: 0; background: none; color: #0b5cad; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 6px; }

/* texto maior: a página toda cresce junto, sem quebrar o layout */
html.a11y-g body { zoom: 1.14; }
html.a11y-gg body { zoom: 1.3; }
/* alto contraste */
html.a11y-contraste { filter: invert(1) hue-rotate(180deg) contrast(1.15); background: #fff; }
html.a11y-contraste img, html.a11y-contraste video, html.a11y-contraste iframe, html.a11y-contraste picture, html.a11y-contraste .a11y-bt, html.a11y-contraste .a11y-pn { filter: invert(1) hue-rotate(180deg); }
/* leitura fácil */
html.a11y-leitura body, html.a11y-leitura body * { font-family: Verdana, "Atkinson Hyperlegible", Tahoma, Arial, sans-serif !important; letter-spacing: .02em !important; word-spacing: .08em !important; }
html.a11y-leitura body p, html.a11y-leitura body li, html.a11y-leitura body small, html.a11y-leitura body span { line-height: 1.7 !important; }
/* menos movimento (também respeita o pedido do próprio celular) */
html.a11y-calma *, html.a11y-calma *::before, html.a11y-calma *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media print { .a11y-bt, .a11y-pn { display: none !important; } }
/* o próprio painel "Aa" não cresce junto (senão sai da tela) */
html.a11y-g .a11y-pn, html.a11y-g .a11y-bt { zoom: .877; }
html.a11y-gg .a11y-pn, html.a11y-gg .a11y-bt { zoom: .77; }
