/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Paleta ajustada para contraste mínimo de 4,5:1 (WCAG 1.4.3) */
  --verde: #047857;          /* texto branco sobre ele: 5,5:1 */
  --verde-escuro: #065F46;   /* sobre branco: 7,6:1 */
  --verde-vivo: #10B981;     /* só decorativo (fundos, sombras) */
  --verde-claro: #D1FAE5;
  --verde-muito-claro: #ECFDF5;
  --cinza-texto: #1E293B;
  --cinza-medio: #475569;    /* sobre branco: 7,6:1 */
  --cinza-claro: #E2E8F0;
  --cinza-fundo: #F8FAFC;
  --borda-campo: #6B7280;    /* borda de campos: 4,8:1 (WCAG 1.4.11) */
  --branco: #FFFFFF;
  --vermelho: #EF4444;
  --vermelho-claro: #FEE2E2;
  --perigo-texto: #B91C1C;   /* sobre --perigo-fundo: 5,9:1 */
  --perigo-fundo: #FEE2E2;
}

html, body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--cinza-texto);
  background: var(--cinza-fundo);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* Tamanho base controlado pela barra de acessibilidade (A− / A / A+) */
html { font-size: var(--fs, 100%); }
body { font-size: 1rem; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }
/* Links sublinhados: não dependem só da cor para serem reconhecidos (WCAG 1.4.1) */
a { color: var(--verde-escuro); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
a:hover { text-decoration-thickness: 2px; }

/* ===== APP LAYOUT ===== */
.app-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== LOGIN ===== */
.login-screen {
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #064E3B 0%, #047857 45%, #10B981 100%); /* mesma família de verdes da plataforma */
  outline: none;
}
.login-card {
  background: var(--branco);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(5, 150, 105, 0.3);
}
.login-logo-full {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  min-height: 100px;
}
.login-logo-full img {
  max-width: 220px;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.login-card h1 {
  color: var(--verde-escuro);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.login-sub {
  color: var(--cinza-medio);
  font-size: 0.875rem;
  line-height: 1.5;
  font-weight: 500;
}
.login-versao {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--verde-escuro);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.3px;
}
.login-divider {
  height: 1px;
  background: var(--cinza-claro);
  margin: 24px 0;
}
.login-desc {
  color: var(--cinza-texto);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: var(--branco);
  border: 2px solid var(--cinza-claro);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cinza-texto);
  transition: all 0.2s;
}
.btn-google:hover {
  border-color: var(--verde);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}
.login-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--cinza-claro);
  text-align: center;
}
.login-footer p {
  font-size: 0.8125rem !important;
  color: var(--cinza-medio);
  margin: 0;
  line-height: 1.5;
}
.login-lupaa {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}
.login-lupaa img {
  max-height: 70px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}
.login-footer-nome {
  font-size: 0.75rem !important;
  color: var(--cinza-medio) !important;
  line-height: 1.5;
}
.login-footer-nome strong {
  color: var(--verde-escuro);
  font-weight: 700;
}

/* BOTÕES DA TELA DE LOGIN */

/* ===== TOPBAR ===== */
.topbar {
  background: var(--branco);
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--verde-vivo);   /* faixa de destaque com o verde da tela de login */
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.topbar-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--verde-escuro);
}
.topbar-brand .topbar-titulo {
  font-size: 1.875rem !important;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin: 0;
}
.topbar-user { display: flex; align-items: center; gap: 16px; }
.user-email {
  font-size: 0.8125rem;
  color: var(--cinza-medio);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  background: var(--perigo-fundo);
  color: var(--perigo-texto);
  min-height: 36px;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-logout:hover { background: #FECACA; text-decoration: underline; }


/* ===== TABS ===== */
.tabs {
  background: var(--branco);
  border-bottom: 2px solid var(--cinza-claro);
  display: flex;
  padding: 0 48px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 16px 22px;
  border-top: 3px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cinza-medio);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--verde-escuro); background: var(--verde-muito-claro); }
.tab-btn.active {
  color: var(--verde-escuro);
  border-bottom-color: var(--verde);
  font-weight: 800;
}

/* ===== MAIN ===== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  flex: 1;
  width: 100%;
}
.tab-content { display: none; animation: fadeIn 0.2s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-content h2 {
  color: var(--cinza-texto);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.tab-intro {
  color: var(--cinza-medio);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

/* ===== PÁGINA INICIAL ===== */
.inicio-container { max-width: 1100px; margin: 0 auto; }
.inicio-boas-vindas { margin-bottom: 32px; }
.inicio-boas-vindas h2 { margin-bottom: 10px; }
.inicio-boas-vindas .tab-intro { margin-bottom: 0; }

.inicio-cards li { max-width: 100%; display: flex; }
.inicio-cards {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
}
.inicio-card {
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  width: 17.5rem;
  max-width: 100%;
  text-align: center;
  font-family: inherit;
}
.inicio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.15);
  border-color: var(--verde);
}
.inicio-card-icone {
  font-size: 2rem;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-muito-claro);
  border-radius: 12px;
  flex-shrink: 0;
}
.inicio-card-info { display: flex; flex-direction: column; }
.inicio-card-titulo {
  color: var(--cinza-texto);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.inicio-card-desc {
  color: var(--cinza-medio);
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}

.inicio-instrucoes {
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.inicio-instrucoes h3 {
  color: var(--cinza-texto);
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cinza-claro);
}
.inicio-instrucoes ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.inicio-instrucoes li {
  counter-increment: step;
  padding-left: 2.875rem;
  padding-top: 3px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--cinza-texto);
  position: relative;
  min-height: 2rem;
}
.inicio-instrucoes li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--verde);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.inicio-instrucoes li:last-child { margin-bottom: 0; }

/* ===== BOTÕES GERAIS ===== */
.btn-primario {
  background: var(--verde);
  color: var(--branco);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.2s;
}
.btn-primario:hover {
  background: var(--verde-escuro);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.btn-primario:disabled, .btn-secundario:disabled { opacity: 0.75; cursor: wait; transform: none; }
.btn-secundario {
  background: var(--branco);
  color: var(--verde-escuro);
  border: 2px solid var(--verde);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.btn-secundario:hover { background: var(--verde-muito-claro); }
.btn-voltar { margin-bottom: 18px; }
.btn-perigo {
  background: var(--perigo-fundo);
  color: var(--perigo-texto);
  border: 2px solid transparent;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all 0.2s;
}
.btn-perigo:hover { background: #FECACA; }

/* ===== PDF ===== */
.pdf-wrapper {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: 1px solid var(--cinza-claro);
  border-radius: 14px;
  overflow: hidden;
  background: var(--branco);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.pdf-viewer { width: 100%; height: 100%; border: none; }
.pdf-fallback {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--cinza-medio);
  text-align: center;
}

/* ===== RODAPÉ ===== */
.app-footer {
  background: #1E293B;
  color: #E2E8F0;
  text-align: center;
  padding: 20px 24px;
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: auto;
}
.app-footer p { font-size: 0.8125rem !important; margin: 0; }
.app-footer .app-footer-credito { font-size: 0.75rem !important; color: #CBD5E1; margin-top: 4px; }
.app-footer a { color: #A7F3D0; font-size: 0.75rem !important; }
.app-footer strong {
  color: #A7F3D0;
  font-weight: 700;
}

/* ===== UTILITÁRIOS ===== */
.placeholder {
  background: var(--branco);
  border: 2px dashed var(--cinza-claro);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  color: var(--cinza-medio);
  font-size: 0.875rem;
}
.erro {
  background: var(--vermelho-claro);
  border: 1px solid #FEB2B2;
  color: #991B1B;
  padding: 16px;
  border-radius: 10px;
  font-size: 0.875rem;
}

/* ===== DEMAIS ESTILOS DE ACESSIBILIDADE E COMPONENTES ===== */
.aviso-vlibras {
  background: #E0F2FE;
  color: #0369A1;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #0EA5E9;
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.paa-search-bar { margin-bottom: 20px; }
.paa-search-bar label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cinza-texto);
}
.paa-search-bar input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--borda-campo);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.2s;
}
.paa-search-bar input:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px var(--verde-claro);
}
.paa-progresso-container {
  background: var(--branco);
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--cinza-claro);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.paa-progresso-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cinza-texto);
  margin-bottom: 8px;
}
.paa-progresso-bar {
  width: 100%;
  height: 10px;
  background: var(--cinza-claro);
  border: 1px solid var(--borda-campo);
  border-radius: 4px;
  overflow: hidden;
}
.paa-progresso-fill {
  height: 100%;
  background: var(--verde);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.paa-versao-info {
  background: var(--cinza-fundo);
  color: var(--cinza-medio);
  border-left: 4px solid var(--borda-campo);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 0.875rem !important;
  font-weight: 500;
}

/* ===== FOCUS E SKIP LINK ===== */
*:focus-visible {
  outline: 3px solid var(--verde-escuro) !important;
  outline-offset: 2px;
}
/* Títulos que recebem foco via script não precisam do contorno grosso */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none !important; }
h2[tabindex="-1"]:focus-visible { outline: 2px dashed var(--verde-escuro) !important; outline-offset: 4px; }
html.hc:not(.hc-branco) *:focus-visible { outline: 3px solid #FFE14D !important; }
html.hc-branco *:focus-visible { outline: 3px solid #FFFFFF !important; }

/* ===== TAMANHO DA FONTE (3 NÍVEIS) ===== */

/* NÍVEL 1 (Normal) - Agora é o tamanho grande que você gostava */
p, li, label, a, .tab-intro, .login-desc { font-size: 1.125rem !important; }
input, textarea, select { font-size: 1.125rem !important; }
.btn-primario, .btn-secundario, .btn-perigo, .btn-google { font-size: 1.125rem !important; }
.tab-btn { font-size: 1rem !important; } /* Abas um pouco menores para caber no celular */




/* ===== ALTO CONTRASTE AMARELO ===== */
html.hc:not(.hc-branco) {
  --verde: #FFE14D;
  --verde-escuro: #FFE14D;
  --verde-claro: #000000;
  --verde-muito-claro: #000000;
  --cinza-texto: #FFFFFF;
  --cinza-medio: #FFE14D;
  --cinza-claro: #FFFFFF;
  --cinza-fundo: #000000;
  --branco: #000000;
  --vermelho: #FF0000;
  --vermelho-claro: #000000;
}
html.hc:not(.hc-branco) .login-screen { background: #000000 !important; }
html.hc:not(.hc-branco) .login-card { border: 2px solid #FFE14D !important; }
html.hc:not(.hc-branco) .topbar,
html.hc:not(.hc-branco) .tabs,
html.hc:not(.hc-branco) .login-card,
html.hc:not(.hc-branco) .modal-content,
html.hc:not(.hc-branco) .paa-historico-item,
html.hc:not(.hc-branco) .inicio-instrucoes,
html.hc:not(.hc-branco) .inicio-card,
html.hc:not(.hc-branco) .paa-secao,
html.hc:not(.hc-branco) .paa-titulo-box {
  border: 2px solid #FFE14D !important;
  background: #000 !important;
}
html.hc:not(.hc-branco) input,
html.hc:not(.hc-branco) textarea,
html.hc:not(.hc-branco) select {
  background: #000 !important;
  color: #FFF !important;
  border: 2px solid #FFF !important;
}
html.hc:not(.hc-branco) .btn-primario,
html.hc:not(.hc-branco) .btn-google {
  background: #FFE14D !important;
  color: #000 !important;
  border: 2px solid #FFF !important;
}
html.hc:not(.hc-branco) .paa-secao-titulo { background: #FFE14D !important; color: #000 !important; }
html.hc:not(.hc-branco) { --perigo-texto: #FF9B9B; --perigo-fundo: #000000; --borda-campo: #FFFFFF; --verde-vivo: #FFE14D; }

/* ===== ALTO CONTRASTE BRANCO (Para Fotofobia) ===== */
html.hc-branco {
  --verde: #FFFFFF;
  --verde-escuro: #FFFFFF;
  --verde-claro: #333333;
  --verde-muito-claro: #222222;
  --cinza-texto: #FFFFFF;
  --cinza-medio: #DDDDDD;
  --cinza-claro: #FFFFFF;
  --cinza-fundo: #000000;
  --branco: #000000;
  --vermelho: #FF0000;
  --vermelho-claro: #000000;
}
html.hc-branco .login-screen { background: #000000 !important; }
html.hc-branco .login-card { border: 2px solid #FFFFFF !important; }
html.hc-branco .topbar,
html.hc-branco .tabs,
html.hc-branco .login-card,
html.hc-branco .modal-content,
html.hc-branco .paa-historico-item,
html.hc-branco .inicio-instrucoes,
html.hc-branco .inicio-card,
html.hc-branco .paa-secao,
html.hc-branco .paa-titulo-box {
  border: 2px solid #FFFFFF !important;
  background: #000 !important;
}
html.hc-branco input,
html.hc-branco textarea,
html.hc-branco select {
  background: #000 !important;
  color: #FFF !important;
  border: 2px solid #FFF !important;
}
html.hc-branco .btn-primario,
html.hc-branco .btn-google,
html.hc-branco .paa-secao-titulo {
  background: #FFFFFF !important;
  color: #000 !important;
  border: 2px solid #FFF !important;
}
html.hc-branco { --perigo-texto: #FF9B9B; --perigo-fundo: #000000; --borda-campo: #FFFFFF; --verde-vivo: #FFFFFF; }

/* ===== RESPONSIVO MOBILE ===== */
@media (max-width: 700px) {
  /* Topbar: Logo na esquerda, botões na direita */
  .topbar { 
    padding: 10px 16px; 
    flex-direction: row; 
    align-items: center;
    justify-content: space-between; 
    flex-wrap: nowrap;
  }
  .topbar-brand { gap: 6px; }
  .topbar-brand .topbar-titulo { font-size: 1.25rem !important; }
  .topbar-logo { height: 40px; }
  .topbar-user { gap: 6px; }
  
  /* Esconde o e-mail e diminui os botões */
  .user-email { display: none; }
  .btn-logout { padding: 6px 12px; font-size: 0.75rem; }
  
  /* Ajustes de layout */
  .tabs { padding: 0 16px; }
  .tab-btn { padding: 14px 16px; font-size: 0.8125rem; }
  .main { padding: 20px 16px; }
  .pdf-wrapper { height: 70vh; }
  .tab-intro { text-align: justify; }
  .login-card { padding: 36px 24px; margin-top: 60px; }
  
  /* Cards da página inicial empilhados no mobile */
  .inicio-cards { flex-direction: column; align-items: center; }
  .inicio-card { width: 100%; max-width: 350px; }
  .inicio-cards li { width: 100%; justify-content: center; }
  .inicio-instrucoes { padding: 22px; }
}
/* ===== CONTROLE DE ROLAGEM DAS ABAS (CELULAR) ===== */
.tabs-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--branco);
  border-bottom: 2px solid var(--cinza-claro);
}

.tabs {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE / Edge */
  scroll-behavior: smooth;     /* Deslizar suave */
  padding: 0 10px;
}
.tabs::-webkit-scrollbar { display: none; }

/* Botões das setas */
.tab-arrow {
  background: var(--branco);
  border: none;
  color: var(--verde-escuro);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.tab-arrow[hidden] { display: none !important; }
.tab-arrow:active { background: var(--cinza-claro); }
.tab-arrow.left { border-right: 1px solid var(--cinza-claro); }
.tab-arrow.right { border-left: 1px solid var(--cinza-claro); }
.tab-arrow:hover { color: var(--verde); }
/* ========== CONVITES PENDENTES ========== */
.paa-convites-section {
    margin-top: 32px;
    margin-bottom: 8px;
}

.convites-lista { list-style: none; padding: 0; margin: 0; }
.convite-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #f0f9f4;
    border: 1px solid #c6e6d4;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.convite-item strong {
    color: #1a7a4c;
}

.convite-acoes {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.convite-item p { margin: 0; font-size: 1rem !important; }
.convite-acoes .btn-primario,
.convite-acoes .btn-secundario {
    padding: 8px 16px;
    font-size: 0.9375rem !important;
    min-height: 40px;
}

/* Alto contraste */
html.hc:not(.hc-branco) .convite-item {
    background: #000;
    border-color: #fff;
}

html.hc:not(.hc-branco) .convite-item strong {
    color: #fff;
}
/* Link Política de Privacidade na tela de login - tamanho fixo */
.login-privacidade {
  margin-top: 8px;
  text-align: center;
}

.login-privacidade a {
  font-size: 0.875rem !important;
  color: var(--verde-escuro) !important;
  font-weight: 600 !important;
}


/* =====================================================================
   ACESSIBILIDADE — utilitários e componentes (WCAG 2.2 AA)
   ===================================================================== */

/* Atributo hidden sempre vence classes com display */
[hidden] { display: none !important; }

/* Texto só para leitores de tela */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Botões A+/A- no limite: continuam focáveis, mas indicam que não há mais efeito */
[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }


.login-footer-credito { margin-top: 8px !important; }

/* Rodapé no alto contraste (antes ficava branco com texto branco) */
html.hc:not(.hc-branco) .app-footer,
html.hc-branco .app-footer {
  background: #000 !important;
  border-top: 2px solid currentColor;
}
html.hc:not(.hc-branco) .app-footer, html.hc:not(.hc-branco) .app-footer * { color: #FFE14D !important; }
html.hc-branco .app-footer, html.hc-branco .app-footer * { color: #FFFFFF !important; }

/* Caixas claras (avisos, selos, convites) também ficam escuras no alto contraste */
html.hc:not(.hc-branco) :is(.paa-aviso-compartilhado, .modal-aviso-lgpd, .aviso-vlibras, .paa-badge-shared,
  .paa-badge-shared-info, .hist-badge-atual, .convite-item, .compartilhar-lista-ul li, .paa-versao-info,
  .hist-item, .placeholder, .erro, .paa-progresso-container, .btn-secundario, .btn-perigo, .btn-logout,
  .btn-remover-compartilhar, .tab-arrow, .paa-checkboxes label) {
  background: #000 !important;
  color: #FFE14D !important;
  border: 2px solid #FFE14D !important;
}
html.hc-branco :is(.paa-aviso-compartilhado, .modal-aviso-lgpd, .aviso-vlibras, .paa-badge-shared,
  .paa-badge-shared-info, .hist-badge-atual, .convite-item, .compartilhar-lista-ul li, .paa-versao-info,
  .hist-item, .placeholder, .erro, .paa-progresso-container, .btn-secundario, .btn-perigo, .btn-logout,
  .btn-remover-compartilhar, .tab-arrow, .paa-checkboxes label) {
  background: #000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
}
html.hc:not(.hc-branco) :is(.btn-perigo, .btn-logout, .btn-remover-compartilhar, .btn-perigo-forte) { color: #FF9B9B !important; border-color: #FF9B9B !important; }
html.hc-branco :is(.btn-perigo, .btn-logout, .btn-remover-compartilhar, .btn-perigo-forte) { color: #FF9B9B !important; border-color: #FF9B9B !important; }
html.hc:not(.hc-branco) .btn-perigo-forte, html.hc-branco .btn-perigo-forte { background: #000 !important; }
html.hc:not(.hc-branco) .convite-item strong,
html.hc-branco .convite-item strong { color: inherit !important; }
html.hc:not(.hc-branco) :is(.login-privacidade a, a), html.hc-branco :is(.login-privacidade a, a) { color: var(--verde-escuro) !important; }
html.hc:not(.hc-branco) ::placeholder, html.hc-branco ::placeholder { color: #CCCCCC; opacity: 1; }
html.hc:not(.hc-branco) .paa-historico-item-compartilhado { border-left: 8px solid #FFE14D !important; }
html.hc-branco .paa-historico-item-compartilhado { border-left: 8px solid #FFFFFF !important; }
html.hc:not(.hc-branco) .tab-btn.active, html.hc-branco .tab-btn.active { text-decoration: underline; text-underline-offset: 6px; }
html.hc:not(.hc-branco) .login-card *, html.hc-branco .login-card * { color: var(--cinza-texto); }
html.hc:not(.hc-branco) .login-card h1, html.hc:not(.hc-branco) .login-versao { color: #FFE14D !important; }
html.hc:not(.hc-branco) .login-footer-nome, html.hc-branco .login-footer-nome { color: var(--cinza-medio) !important; }
html.hc:not(.hc-branco) .btn-google, html.hc-branco .btn-google { color: #000 !important; }

/* Redução de movimento (WCAG 2.3.3 e preferência do sistema) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn-primario:hover, .btn-google:hover, .inicio-card:hover,
  .paa-historico-item:hover { transform: none !important; }
}

/* Modo de cores forçadas do Windows (Alto Contraste do sistema) */
@media (forced-colors: active) {
  .btn-primario, .btn-secundario, .btn-perigo, .btn-logout, .tab-btn.active, .paa-secao-titulo { border: 2px solid ButtonText; }
  .paa-progresso-fill { background: Highlight; forced-color-adjust: none; }
}

/* =====================================================================
   BARRA DE ACESSIBILIDADE — mesmo padrão do Observatório do LUPAA
   (faixa escura no topo · "Acessibilidade:" · A− A A+ · Alto contraste)
   ===================================================================== */
.a11y { background: #064E3B; color: #F5F3EC; font-size: 0.82rem; }
.a11y-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.a11y-controles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.a11y-label { font-weight: 600; }
.a11y button {
  background: transparent;
  color: #F5F3EC;
  border: 1px solid #8FC9AE;          /* 6,9:1 sobre a faixa (WCAG 1.4.11) */
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 32px;                   /* área de toque (WCAG 2.5.8) */
  min-width: 32px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.a11y button:hover { background: rgba(245, 243, 236, 0.14); }
.a11y button[aria-pressed="true"], .a11y button.ativo { background: #F5F3EC; color: #064E3B; }
.a11y button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.a11y :focus-visible { outline: 3px solid #FBBF24 !important; outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-200vh);   /* fora da tela até receber foco, em qualquer tamanho de fonte */
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  color: #064E3B !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { transform: none; }

/* Barra no alto contraste */
html.hc .a11y { background: #000; border-bottom: 2px solid var(--verde); }
html.hc .a11y, html.hc .a11y button { color: var(--verde) !important; }
html.hc .a11y button { border-color: var(--verde) !important; }
html.hc .a11y button.ativo, html.hc .a11y button[aria-pressed="true"] { background: var(--verde) !important; color: #000 !important; }
html.hc .skip-link { background: #000; color: var(--verde) !important; border: 2px solid var(--verde); }

/* Imagens em tons de cinza no alto contraste (igual ao site) */
html.hc img { filter: grayscale(1) contrast(1.2); }

@media (max-width: 700px) {
  .a11y-wrap { justify-content: center; gap: 6px; padding: 6px 12px; }
  .a11y-label { display: none; }
  .a11y-controles { justify-content: center; }
  .a11y button { padding: 3px 10px; }
}
