/* =========================================================
   TCE-PE — Central de Acessibilidade
   Botão flutuante + drawer lateral
   ========================================================= */

:root{
  --a11y-blue:#0A193F;
  --a11y-blue-2:#1A2C5B;
  --a11y-gold:#D29A22;
  --a11y-bg:#fff;
  --a11y-text:#1d2940;
  --a11y-muted:#4F5D73;
  --a11y-border:#DDE4EE;
}

.a11y-fab{
  position:fixed;
  right:10px;
  top:60%;
  transform:translateY(-50%);
  z-index:10020;
  width:40px;
  height:40px;
  border:0;
  border-radius:8px;
  background:#0066CC;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 7px 22px rgba(10,25,63,.28);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}

.a11y-fab:hover{
  transform:translateY(-50%) scale(1.06);
  background:var(--a11y-blue-2);
  box-shadow:0 10px 28px rgba(10,25,63,.34);
}

.a11y-fab:focus-visible{
  outline:3px solid #FFB200;
  outline-offset:3px;
}

.a11y-fab svg{
  width:28px;
  height:28px;
}

.a11y-fab-label{
    position:absolute;
    right:62px;
    white-space:nowrap;
    background:#FFFFFF;
    color:#000000;
    border:2px solid #000000;
    border-radius:8px;
    padding:7px 10px;
    font:700 12px/1 Inter,Arial,sans-serif;
    box-shadow:0 5px 16px rgba(10,25,63,.14);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateX(5px);
    transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;
}

.a11y-fab:hover .a11y-fab-label,
.a11y-fab:focus-visible .a11y-fab-label{
  opacity:1;
  visibility:visible;
  transform:translateX(0);
  transition:opacity .18s ease,transform .18s ease,visibility 0s;
}

.a11y-icon{
  display:block;
  background-image:url("acessibilidade.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
}

.a11y-fab .a11y-icon{
  width:28px;
  height:28px;
}

.a11y-header .a11y-icon{
  width:33px;
  height:33px;
}

.a11y-overlay{
  position:fixed;
  inset:0;
  background:rgba(8,18,39,.38);
  z-index:10010;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease,visibility .2s ease;
}

.a11y-overlay.active{
  opacity:1;
  visibility:visible;
}

.a11y-drawer{
  position:fixed;
  top:0;
  right:0;
  width:min(420px,94vw);
  height:100vh;
  background:var(--a11y-bg);
  color:var(--a11y-text);
  z-index:10030;
  box-shadow:-12px 0 40px rgba(8,18,39,.22);
  transform:translateX(105%);
  visibility:hidden;
  transition:transform .24s ease,visibility 0s linear .24s;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  font-family:Inter,Arial,sans-serif;
}

.a11y-drawer.active{
  transform:translateX(0);
  visibility:visible;
  transition:transform .24s ease,visibility 0s;
}

.a11y-drawer *{
  box-sizing:border-box;
}

.a11y-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:20px 20px 16px;
  background:var(--a11y-blue);
  color:#fff;
  border-bottom:3px solid var(--a11y-gold);
}

.a11y-header-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.a11y-header-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:10px;
  background:rgba(255,255,255,.12);
  display:grid;
  place-items:center;
}

.a11y-header h2{
  font-size:17px;
  line-height:1.2;
  margin:0;
}

.a11y-header p{
  font-size:10px;
  line-height:1.4;
  margin:4px 0 0;
  color:#D5DEEC;
}

.a11y-close{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid rgba(255,255,255,.25);
  background:transparent;
  color:#fff;
  border-radius:9px;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.a11y-close:hover{
  background:rgba(255,255,255,.1);
}

.a11y-close:focus-visible,
.a11y-drawer button:focus-visible,
.a11y-drawer input:focus-visible,
.a11y-drawer select:focus-visible{
  outline:2px solid #FFB200;
  outline-offset:2px;
}

.a11y-body{
  overflow:auto;
  flex:1;
  padding:8px 14px 16px;
  background:#F7F9FC;
}

.a11y-section{
  background:#fff;
  border:1px solid var(--a11y-border);
  border-radius:11px;
  margin:8px 0;
  overflow:hidden;
}

.a11y-section>summary{
  list-style:none;
  cursor:pointer;
  padding:14px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--a11y-blue);
  font-size:12px;
  font-weight:800;
  letter-spacing:.5px;
}

.a11y-section>summary::-webkit-details-marker{
  display:none;
}

.a11y-section>summary::after{
  content:'+';
  font-size:20px;
  font-weight:400;
  color:#53627A;
  line-height:1;
}

.a11y-section[open]>summary::after{
  content:'−';
}

.a11y-section>summary:hover{
  background:#F8FAFD;
}

.a11y-content{
  padding:0 15px 15px;
  border-top:1px solid #EDF1F6;
}

.a11y-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid #EDF1F6;
}

.a11y-row:last-child{
  border-bottom:0;
}

.a11y-label{
  font-size:11px;
  font-weight:700;
  color:#33415A;
}

.a11y-help{
  display:block;
  margin-top:3px;
  font-size:9px;
  line-height:1.35;
  color:#526078;
  font-weight:400;
}

.a11y-actions{
  display:flex;
  gap:5px;
  align-items:center;
}

.a11y-actions button,
.a11y-step{
  min-width:34px;
  height:32px;
  border:1px solid #D5DDE8;
  background:#fff;
  color:var(--a11y-blue);
  border-radius:7px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.a11y-actions button:hover,
.a11y-step:hover{
  background:#F0F4F9;
}

.a11y-value{
  min-width:32px;
  text-align:center;
  font-size:10px;
  font-weight:800;
  color:#526078;
}

.a11y-range{
  width:135px;
  accent-color:var(--a11y-blue-2);
}

.a11y-select{
  width:155px;
  height:34px;
  border:1px solid #D5DDE8;
  border-radius:7px;
  background:#fff;
  color:#33415A;
  padding:0 8px;
  font-size:10px;
}

.a11y-check{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-size:11px;
  font-weight:700;
  color:#33415A;
  padding:10px 0;
}

.a11y-check input{
  width:16px;
  height:16px;
  accent-color:var(--a11y-blue-2);
}

.a11y-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:10px 0;
}

.a11y-pill{
  border:1px solid #D5DDE8;
  background:#fff;
  color:#4F5D73;
  border-radius:999px;
  padding:7px 9px;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.a11y-pill.active{
  background:var(--a11y-blue);
  border-color:var(--a11y-blue);
  color:#fff;
}

.a11y-shortcuts{
  font-size:9px;
  line-height:1.55;
  color:#526078;
  padding:10px 0 2px;
}

.a11y-shortcuts kbd{
  font:800 9px/1 monospace;
  background:#EEF2F7;
  border:1px solid #D8DFE9;
  border-radius:4px;
  padding:2px 4px;
  color:#40506A;
}

.a11y-footer{
  padding:12px 14px;
  border-top:1px solid var(--a11y-border);
  background:#fff;
}

.a11y-reset{
  width:100%;
  height:40px;
  border:1px solid #C9D3E1;
  border-radius:9px;
  background:#F7F9FC;
  color:var(--a11y-blue);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.a11y-reset:hover{
  background:#EEF3F8;
}

.a11y-status{
  font-size:9px;
  color:#526078;
  margin-top:8px;
  text-align:center;
  min-height:13px;
}

/* =========================================================
   Link "pular para o conteúdo" (WCAG 2.4.1)
   ========================================================= */

.skip-link{
  position:absolute;
  left:8px;
  top:-60px;
  z-index:10040;
  background:#FFFFFF;
  color:#0A193F;
  border:2px solid #0A193F;
  border-radius:8px;
  padding:10px 16px;
  font:700 14px/1 Inter,Arial,sans-serif;
  text-decoration:underline;
  transition:top .15s ease;
}

.skip-link:focus{
  top:8px;
  outline:3px solid #FFB200;
  outline-offset:2px;
}

/* =========================================================
   Efeitos aplicados à página
   ========================================================= */

body.a11y-font-1{
  font-size:106%;
}

body.a11y-font-2{
  font-size:114%;
}

body.a11y-font-3{
  font-size:124%;
}

body.a11y-bold *{
  font-weight:700 !important;
}

body.a11y-letter{
  letter-spacing:.08em !important;
}

body.a11y-word{
  word-spacing:.16em !important;
}

body.a11y-line{
  line-height:1.9 !important;
}

body.a11y-line p,
body.a11y-line li,
body.a11y-line td,
body.a11y-line dd{
  line-height:1.9 !important;
}

body.a11y-arial,
body.a11y-arial *{
  font-family:Arial,sans-serif !important;
}

body.a11y-atkinson,
body.a11y-atkinson *{
  font-family:'Atkinson Hyperlegible',Arial,sans-serif !important;
}

body.a11y-lexend,
body.a11y-lexend *{
  font-family:Lexend,Arial,sans-serif !important;
}

body.a11y-dyslexic,
body.a11y-dyslexic *{
  font-family:'OpenDyslexic',Arial,sans-serif !important;
}

body.a11y-night{
  filter:contrast(.94) brightness(.88);
}

body.a11y-high-contrast{
  background:#000 !important;
  color:#fff !important;
}

body.a11y-high-contrast *{
  border-color:#fff !important;
}

body.a11y-high-contrast .hero,
body.a11y-high-contrast .site-footer{
  background:#000 !important;
  color:#fff !important;
}

body.a11y-high-contrast a,
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast strong{
  color:#FFFF00 !important;
}

body.a11y-invert{
  filter:invert(1) hue-rotate(180deg);
}

body.a11y-low-saturation{
  filter:saturate(.45);
}

body.a11y-grayscale{
  filter:grayscale(1);
}

body.a11y-protan{
  filter:saturate(.65) hue-rotate(12deg);
}

body.a11y-deutan{
  filter:saturate(.65) hue-rotate(55deg);
}

body.a11y-tritan{
  filter:saturate(.65) hue-rotate(185deg);
}

body.a11y-links a{
  outline:2px solid #FFB200 !important;
  outline-offset:2px;
  text-decoration:underline !important;
}

body.a11y-hide-images img{
  visibility:hidden !important;
}

body.a11y-pause *{
  animation-play-state:paused !important;
  transition:none !important;
}

body.a11y-cursor-large,
body.a11y-cursor-large *{
  cursor:default !important;
}

body.a11y-cursor-large button,
body.a11y-cursor-large a,
body.a11y-cursor-large input,
body.a11y-cursor-large select{
  cursor:pointer !important;
}

body.a11y-focus-strong :focus-visible{
  outline:3px solid #FFB200 !important;
  outline-offset:3px !important;
}

.a11y-reading-mask{
  position:fixed;
  left:0;
  right:0;
  top:0;
  height:35vh;
  z-index:10000;
  pointer-events:none;
  border-bottom:2px solid #FFB200;
  background:rgba(0,0,0,.72);
  display:none;
}

body.a11y-reading-mask-on .a11y-reading-mask{
  display:block;
}

.a11y-magnifier{
  position:fixed;
  pointer-events:none;
  z-index:10005;
  width:190px;
  height:190px;
  border:3px solid #FFB200;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  box-shadow:0 0 0 9999px rgba(0,0,0,.05);
  display:none;
}

body.a11y-magnifier-on .a11y-magnifier{
  display:block;
}

body.a11y-cursor-large .a11y-fab,
body.a11y-cursor-large .a11y-fab *{
  cursor:pointer !important;
}

@media(max-width:560px){

  .a11y-fab{
    right:12px;
    width:48px;
    height:48px;
  }

  .a11y-fab-label{
    display:none;
  }

  .a11y-drawer{
    width:100%;
    max-width:420px;
  }

}

