/* Barra de acessibilidade e modos de leitura (classes aplicadas no <html> por assets/js/acessibilidade.js) */
.cmces-a11y { position: fixed; left: 16px; bottom: 16px; z-index: 9990; font-family: var(--font-sans, "Segoe UI", system-ui, sans-serif); }
.cmces-a11y-toggle { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #0b5da7; color: #fff; box-shadow: 0 10px 26px rgba(6, 34, 58, .35); cursor: pointer; transition: transform .18s ease, background-color .18s ease; }
.cmces-a11y-toggle:hover, .cmces-a11y-toggle:focus-visible { background: #0a3355; transform: scale(1.06); }
.cmces-a11y-toggle:focus-visible, .cmces-a11y button:focus-visible { outline: 3px solid #00a2e8; outline-offset: 3px; }
.cmces-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 #dbe3e9; border-radius: 20px; background: #fff; color: #12202b; box-shadow: 0 24px 60px rgba(6, 34, 58, .3); }
.cmces-a11y-panel[hidden] { display: none; }
.cmces-a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; font-size: 1rem; }
.cmces-a11y-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f4f7fa; color: #12202b; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cmces-a11y-group { margin: 0 0 .8rem; padding: 0; border: 0; }
.cmces-a11y-group > p { margin: 0 0 .35rem; color: #0b5da7; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cmces-a11y-row { display: flex; align-items: center; gap: .5rem; }
.cmces-a11y-row.is-wrap { flex-wrap: wrap; }
.cmces-a11y-row button, .cmces-a11y-toggles button, .cmces-a11y-reset { min-height: 42px; padding: .4rem .9rem; border: 2px solid #dbe3e9; border-radius: 12px; background: #fff; color: #12202b; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.cmces-a11y-row button { flex: 1; }
.cmces-a11y-level { min-width: 56px; color: #52626f; font-size: .85rem; font-weight: 700; text-align: center; }
.cmces-a11y-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.cmces-a11y button[aria-pressed="true"] { border-color: #0a3355; background: #0a3355; color: #fff; }
.cmces-a11y-reset { width: 100%; border-color: #0b5da7; color: #0b5da7; }
.cmces-a11y-foot { margin: .8rem 0 0; color: #52626f; font-size: .74rem; line-height: 1.5; }
.cmces-a11y-foot a { color: #0b5da7; font-weight: 700; }
@media (max-width: 640px) { .cmces-a11y { left: 10px; bottom: 10px; } .cmces-a11y-toggle { width: 50px; height: 50px; } .cmces-a11y-panel { bottom: 62px; } }

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

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

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

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

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

/* a logo e o brasão têm fundo transparente: nos contrastes ganham um fundo claro para continuar legíveis */
html.cmces-hc-dark .brand__logo, html.cmces-hc-dark .site-footer__marca img, html.cmces-hc-dark .cmces-app-brand-mark img { background-color: #fff !important; padding: 4px; border-radius: 6px; }
/* o texto de rótulo do botão antigo não existe mais; o botão flutuante fica abaixo do menu do painel do gestor */
html.cmces-hc-dark .cmces-a11y-toggle, html.cmces-hc-light .cmces-a11y-toggle { background-color: #ffea00 !important; color: #000 !important; border-color: #000 !important; }
