/*
 * Ajustes de acessibilidade (WCAG 2.1 AA / e-MAG) apontados pelo WAVE (webaim.org)
 * Carregado depois do tema em index.php para sobrescrever estilos do Porto/Bootstrap.
 * Tamanhos em rem para continuar respeitando o "Aumentar/Diminuir fonte" (asb.js altera o font-size do <html>).
 */

/* ---------- Contraste: cards de notícias da home (WCAG 1.4.3) ----------
 * Texto branco ficava direto sobre a foto; com foto clara (ou imagem que não carrega)
 * o título ficava ilegível. Faixa escura sólida atrás do texto garante contraste > 4.5:1. */
.thumb-info.thumb-info-bottom-info-dark .thumb-info-title.bg-transparent {
  background-color: rgba(17, 21, 26, 0.85) !important;
}

.thumb-info.thumb-info-bottom-info-dark .thumb-info-show-more-content .opacity-5 {
  opacity: 1 !important;
  color: #f1f3f5 !important;
}

/* ---------- Contraste: rodapé ---------- */
#footer .footer-copyright #sub-menu,
#footer .footer-copyright #sub-menu li,
#footer .footer-copyright .footer-acessibilidade {
  color: #ffffff;
}

/* ---------- Texto muito pequeno (WCAG 1.4.4 / alerta WAVE) ---------- */
.header-nav-top .ws-nowrap {
  font-size: 0.8125rem; /* 13px */
}

.thumb-info .thumb-info-type {
  font-size: 0.75rem !important; /* era 0.6em ≈ 8.4px */
  line-height: 1.4;
}

.post-meta {
  font-size: 0.8125rem !important;
}

#footer .footer-copyright p,
#footer .footer-copyright #sub-menu a {
  font-size: 0.875rem; /* 14px */
}

/* ---------- Foco visível (WCAG 2.4.7) no botão "voltar ao topo" ---------- */
.scroll-to-top:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}
