.at-a11y-toolbar{position:relative;z-index:100;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;padding:6px 12px;background:#003f56;color:#fff;font:600 12px/1.3 system-ui,sans-serif}
.at-a11y-title{margin-right:8px;color:#fff}
.at-a11y-toolbar button,.at-a11y-help button{cursor:pointer;font:inherit;border:1px solid rgba(255,255,255,.55);border-radius:5px;background:transparent;color:#fff;padding:5px 9px;min-height:34px}
.at-a11y-toolbar button:hover,.at-a11y-toolbar button[aria-pressed=true]{background:#fff;color:#003f56}
.at-a11y-toolbar button:focus-visible,.at-a11y-help button:focus-visible{outline:3px solid #fa5a52;outline-offset:2px}
.at-a11y-help{position:relative;z-index:101;padding:12px 18px;background:#003f56;color:#fff;text-align:center;font:14px/1.5 system-ui,sans-serif}
.at-a11y-help[hidden]{display:none}
.at-a11y-help p{margin:0 0 8px;color:inherit}
html.at-a11y-contrast body{background:#000!important;color:#fff!important}
html.at-a11y-contrast body :is(main,article,section,.entry-content,.entry-content-wrap,.site-main,.content-area,.loop-entry,.site-footer){background-color:#000!important;color:#fff!important;box-shadow:none!important}
html.at-a11y-contrast body :is(h1,h2,h3,h4,h5,h6,p,li,span){color:inherit!important}
html.at-a11y-contrast body a{color:#ffff00!important;text-decoration:underline!important}
html.at-a11y-contrast body button{outline:1px solid #fff}
html.at-a11y-dark body{background:#18232a!important;color:#f3f6f7!important}
html.at-a11y-dark body :is(main,article,section,.entry-content,.entry-content-wrap,.site-main,.content-area,.loop-entry,.site-footer){background-color:#18232a!important;color:#f3f6f7!important}
html.at-a11y-dark body :is(h1,h2,h3,h4,h5,h6,p,li){color:inherit!important}
html.at-a11y-dark body a{color:#9cdef7!important}
@media(max-width:767px){.at-a11y-title{width:100%;text-align:center}.at-a11y-toolbar{padding:6px 8px}.at-a11y-toolbar button{font-size:11px;padding:5px 7px}}

.at-a11y-toolbar button[data-at-a11y="libras"]{display:inline-flex;align-items:center;justify-content:center;min-width:36px}
.at-a11y-toolbar button[data-at-a11y="libras"] svg{display:block;width:18px;height:18px;flex:none}

/* v1.0.2: identificador de acessibilidade somente com ícone */
.at-a11y-title{display:inline-flex;align-items:center;justify-content:center;margin-right:8px;min-width:28px;min-height:34px;color:#fff}
.at-a11y-title svg{display:block;width:20px;height:20px}
@media(max-width:767px){.at-a11y-title{width:auto;margin-right:3px}}

/* v1.0.3: controles compactos com icones SVG embutidos */
.at-a11y-toolbar button:has(svg){display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:6px 8px}
.at-a11y-toolbar button svg{display:block;width:18px;height:18px;flex:none}
.at-a11y-title svg{display:block}

/* v1.0.6 — refinamentos visuais, sem alterações no CSS do tema */
/* O tema mantém sua aparência normal quando os modos estão desligados. */
html.at-a11y-dark body{background:#17262d!important;color:#f6f3ec!important}
html.at-a11y-dark body :is(main,article,section,.entry-content,.entry-content-wrap,.site-main,.content-area,.loop-entry,.site-footer,.site-header,.site-header-row-container,.site-top-header-wrap,.site-main-header-wrap,.site-bottom-header-wrap,.site-footer-wrap,.site-footer-row-container,.wp-block-group,.kt-row-layout-inner,.kt-inside-inner-col){background-color:#17262d!important;color:#f6f3ec!important}
html.at-a11y-dark body :is(h1,h2,h3,h4,h5,h6,p,li,small,strong,em,blockquote,.site-title,.site-description,.entry-title,.widget-title){color:#f6f3ec!important}
html.at-a11y-dark body :is(a,.site-header a,.site-footer a,.main-navigation a,.footer-navigation a){color:#bce8f8!important;text-decoration-thickness:1px;text-underline-offset:3px}
html.at-a11y-dark body :is(a:hover,a:focus-visible,.site-header a:hover,.site-footer a:hover){color:#fff!important;text-decoration:underline!important}
html.at-a11y-dark body :is(input,select,textarea){background:#243941!important;color:#fff!important;border-color:#a6c4cc!important}
html.at-a11y-dark body :is(button,.wp-block-button__link,.button,.kb-button,.kadence-button){background-color:#ef796a!important;color:#17262d!important;border-color:#ef796a!important}
html.at-a11y-dark body :is(button,.wp-block-button__link,.button,.kb-button,.kadence-button):focus-visible{outline:3px solid #fff!important;outline-offset:2px}
/* O cabeçalho de ferramentas mantém sua própria identidade e estados. */
html.at-a11y-dark .at-a11y-toolbar,html.at-a11y-contrast .at-a11y-toolbar{background:#003f56!important;color:#fff!important}
html.at-a11y-dark .at-a11y-toolbar button,html.at-a11y-contrast .at-a11y-toolbar button{background:transparent!important;color:#fff!important;border-color:#fff!important}
html.at-a11y-dark .at-a11y-toolbar button:hover,html.at-a11y-dark .at-a11y-toolbar button[aria-pressed="true"],html.at-a11y-contrast .at-a11y-toolbar button:hover,html.at-a11y-contrast .at-a11y-toolbar button[aria-pressed="true"]{background:#fff!important;color:#003f56!important}
/* Alto contraste: fundo uniforme e texto claro; links distinguíveis. */
html.at-a11y-contrast body :is(.site-header,.site-header-row-container,.site-top-header-wrap,.site-main-header-wrap,.site-bottom-header-wrap,.site-footer-wrap,.site-footer-row-container,.wp-block-group,.kt-row-layout-inner,.kt-inside-inner-col,.wp-block-cover,.wp-block-column){background-color:#000!important;color:#fff!important;box-shadow:none!important}
html.at-a11y-contrast body :is(h1,h2,h3,h4,h5,h6,p,li,small,strong,em,blockquote,.site-title,.site-description,.entry-title,.widget-title){color:#fff!important}
html.at-a11y-contrast body :is(a,.site-header a,.site-footer a,.main-navigation a,.footer-navigation a){color:#ff0!important;text-decoration:underline!important}
html.at-a11y-contrast body :is(button,.wp-block-button__link,.button,.kb-button,.kadence-button){background:#000!important;color:#ff0!important;border:2px solid #ff0!important;text-decoration:underline!important}
html.at-a11y-contrast body :is(input,select,textarea){background:#000!important;color:#fff!important;border:2px solid #fff!important}
html.at-a11y-contrast body :is(a,button,input,select,textarea):focus-visible{outline:3px solid #ff0!important;outline-offset:3px}
/* Evita que overlays de imagem reduzam a legibilidade nos modos alternativos. */
html:is(.at-a11y-dark,.at-a11y-contrast) body :is(.wp-block-cover__background,.kt-row-layout-overlay){opacity:0!important}

/* AT Acessibilidade 1.0.7: refinamento exclusivamente visual da barra. */
.at-a11y-toolbar{gap:6px;padding:5px 12px;min-height:50px;box-sizing:border-box}
.at-a11y-title{min-height:40px;min-width:40px;margin-right:4px}
.at-a11y-toolbar button,.at-a11y-toolbar button:has(svg),.at-a11y-toolbar button[data-at-a11y="libras"]{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:7px 9px;border:1px solid rgba(255,255,255,.42);border-radius:7px;line-height:1.2;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.at-a11y-toolbar button:hover{border-color:#fff}
.at-a11y-toolbar button:focus-visible{outline:3px solid #fa8c85;outline-offset:2px}
@media(max-width:767px){.at-a11y-toolbar{gap:5px;padding:5px 8px}.at-a11y-title{width:auto;min-width:36px;margin-right:0}.at-a11y-toolbar button,.at-a11y-toolbar button:has(svg),.at-a11y-toolbar button[data-at-a11y="libras"]{min-width:40px;min-height:40px;padding:6px 8px}}
@media(prefers-reduced-motion:reduce){.at-a11y-toolbar button{transition:none}}

/* v1.0.8 TESTE: corrigir contraste dos componentes personalizados da Home.
   Mantem o layout normal inalterado. Evita alterar o JS e o CSS do tema. */
/* A Home usa componentes HTML personalizados; o tema e o plugin anterior
   aplicavam fundos escuros em secoes, mas nao em todos os filhos. */
html.at-a11y-dark body :is(main,article,section,.entry-content,.entry-content-wrap,.site-main,.content-area,.site-footer) :is(div,header,footer,aside),
html.at-a11y-dark body :is(.site-footer,.site-header) :is(div,header,footer,aside){background-color:transparent!important;box-shadow:none!important}
html.at-a11y-dark body :is(main,article,section,.entry-content,.site-footer) :is(h1,h2,h3,h4,h5,h6,p,span,li,small,strong,em,blockquote,label),
html.at-a11y-dark body :is(.site-header,.site-footer) :is(h1,h2,h3,h4,h5,h6,p,span,li,small,strong,em,blockquote,label){color:#f6f3ec!important}
html.at-a11y-dark body :is(main,article,section,.entry-content,.site-footer) a:not(.button):not(.wp-block-button__link):not(.kb-button):not(.kadence-button){color:#bce8f8!important}
html.at-a11y-contrast body :is(main,article,section,.entry-content,.entry-content-wrap,.site-main,.content-area,.site-footer) :is(div,header,footer,aside),
html.at-a11y-contrast body :is(.site-footer,.site-header) :is(div,header,footer,aside){background-color:transparent!important;box-shadow:none!important}
html.at-a11y-contrast body :is(main,article,section,.entry-content,.site-footer) :is(h1,h2,h3,h4,h5,h6,p,span,li,small,strong,em,blockquote,label),
html.at-a11y-contrast body :is(.site-header,.site-footer) :is(h1,h2,h3,h4,h5,h6,p,span,li,small,strong,em,blockquote,label){color:#fff!important}
html.at-a11y-contrast body :is(main,article,section,.entry-content,.site-footer) a:not(.button):not(.wp-block-button__link):not(.kb-button):not(.kadence-button){color:#ff0!important}
/* Cards e areas de conteudo com backgrounds inline brancos: escurecer os
   containers sem alterar imagens, SVGs, botoes e a barra de ferramentas. */
html.at-a11y-dark body :is(main,article,section,.entry-content) :is(div,aside)[style*="background"],
html.at-a11y-dark body :is(main,article,section,.entry-content) :is(div,aside)[class*="card" i]{background-color:#243941!important}
html.at-a11y-contrast body :is(main,article,section,.entry-content) :is(div,aside)[style*="background"],
html.at-a11y-contrast body :is(main,article,section,.entry-content) :is(div,aside)[class*="card" i]{background-color:#000!important;border-color:#fff!important}
/* Links e controles de navegacao continuam distinguiveis. */
html.at-a11y-dark body :is(.site-header,.site-footer) a{color:#bce8f8!important}
html.at-a11y-contrast body :is(.site-header,.site-footer) a{color:#ff0!important}
/* Nunca deixar estilos dos modos interferirem nos controles da barra. */
html:is(.at-a11y-dark,.at-a11y-contrast) .at-a11y-toolbar :is(span,svg){color:inherit!important}
