/* Barra de acessibilidade e modos de leitura (classes aplicadas no <html> por assets/js/a11y.js) */
.cces-a11y { position: fixed; left: 16px; bottom: max(16px, var(--cces-dock-need, 0px)); z-index: 9990; font-family: var(--cces-font-display, "Segoe UI", system-ui, sans-serif); }
.cces-a11y-toggle { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #007a2e; color: #fff; box-shadow: 0 10px 26px rgba(4, 34, 26, .35); cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.cces-a11y-toggle:hover, .cces-a11y-toggle:focus-visible { background: #073b2d; transform: scale(1.06); }
.cces-a11y-toggle:focus-visible, .cces-a11y button:focus-visible { outline: 3px solid #00aaff; outline-offset: 3px; }
.cces-a11y-panel { position: absolute; left: 0; bottom: 68px; width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.1rem 1.1rem; border: 1px solid #d9e8dd; border-radius: 20px 40px 20px 20px; background: #fff; color: #18362a; box-shadow: 0 24px 60px rgba(4, 34, 26, .3); }
.cces-a11y-panel[hidden] { display: none; }
.cces-a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; font-size: 1rem; }
.cces-a11y-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f4f9f4; color: #18362a; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cces-a11y-group { margin: 0 0 .8rem; padding: 0; border: 0; }
.cces-a11y-group > p { margin: 0 0 .35rem; color: #007a2e; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cces-a11y-row { display: flex; align-items: center; gap: .5rem; }
.cces-a11y-row.is-wrap { flex-wrap: wrap; }
.cces-a11y-row button, .cces-a11y-toggles button, .cces-a11y-reset { min-height: 42px; padding: .4rem .9rem; border: 2px solid #d9e8dd; border-radius: 12px; background: #fff; color: #18362a; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.cces-a11y-row button { flex: 1; }
.cces-a11y-level { min-width: 56px; color: #56685b; font-size: .85rem; font-weight: 700; text-align: center; }
.cces-a11y-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.cces-a11y button[aria-pressed="true"] { border-color: #073b2d; background: #073b2d; color: #fff; }
.cces-a11y-reset { width: 100%; border-color: #007a2e; color: #007a2e; }
.cces-a11y-foot { margin: .8rem 0 0; color: #56685b; font-size: .74rem; line-height: 1.5; }
.cces-a11y-foot a { color: #007a2e; font-weight: 700; }
/* com o painel aberto o botão volta para o canto, para o painel (que abre para cima) caber na tela */
.cces-a11y.is-open { bottom: 16px; }
.cces-a11y { transition: opacity .15s ease, visibility .15s; }
@media (max-width: 640px) { .cces-a11y { left: 10px; bottom: max(10px, var(--cces-dock-need, 0px)); } .cces-a11y.is-open { bottom: 10px; } .cces-a11y-toggle { width: 50px; height: 50px; } .cces-a11y-panel { bottom: 62px; } }

/* tamanho do texto: os tamanhos do portal são em rem, então escalar a raiz escala tudo */
html.cces-fs-1 { font-size: 112.5%; }
html.cces-fs-2 { font-size: 125%; }
html.cces-fs-3 { font-size: 150%; }
html.cces-fs-4 { font-size: 175%; }

/* leitura */
html.cces-ul a { text-decoration: underline !important; text-underline-offset: .18em; }
html.cces-sp body { line-height: 1.9; letter-spacing: .035em; word-spacing: .1em; }
html.cces-sp p, html.cces-sp li { line-height: 1.9 !important; }
html.cces-fm body, html.cces-fm body * { font-family: Verdana, Arial, Helvetica, sans-serif !important; }
html.cces-rm *, html.cces-rm *::before, html.cces-rm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* alto contraste ESCURO: fundo preto, texto branco, links amarelos */
html.cces-hc-dark { color-scheme: dark; }
html.cces-hc-dark body, html.cces-hc-dark body *:not(svg):not(svg *):not(img):not(video):not(iframe):not(.cces-a11y *):not([vw] *) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.cces-hc-dark body *::before, html.cces-hc-dark body *::after { background-image: none !important; box-shadow: none !important; }
html.cces-hc-dark a, html.cces-hc-dark a * { color: #ffea00 !important; text-decoration: underline !important; }
html.cces-hc-dark a:hover, html.cces-hc-dark a:focus { background-color: #ffea00 !important; color: #000 !important; }
html.cces-hc-dark button, html.cces-hc-dark input, html.cces-hc-dark select, html.cces-hc-dark textarea { border: 2px solid #fff !important; }
html.cces-hc-dark svg { color: #ffea00; }
html.cces-hc-dark :focus-visible { outline: 3px solid #ffea00 !important; outline-offset: 2px !important; }

/* alto contraste CLARO: fundo branco, texto preto, links azul-escuro */
html.cces-hc-light body, html.cces-hc-light body *:not(svg):not(svg *):not(img):not(video):not(iframe):not(.cces-a11y *):not([vw] *) { background-color: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
html.cces-hc-light body *::before, html.cces-hc-light body *::after { background-image: none !important; box-shadow: none !important; }
html.cces-hc-light a, html.cces-hc-light a * { color: #0000b3 !important; text-decoration: underline !important; }
html.cces-hc-light a:hover, html.cces-hc-light a:focus { background-color: #000 !important; color: #fff !important; }
html.cces-hc-light button, html.cces-hc-light input, html.cces-hc-light select, html.cces-hc-light textarea { border: 2px solid #000 !important; }
html.cces-hc-light :focus-visible { outline: 3px solid #0000b3 !important; outline-offset: 2px !important; }

/* a barra de acessibilidade continua legível em qualquer modo */
html.cces-hc-dark .cces-a11y-panel, html.cces-hc-light .cces-a11y-panel { background: #fff; color: #000; border: 2px solid #000; }
@media print { .cces-a11y, [vw] { display: none !important; } }
