/* ==========================================================
   CORREÇÃO FINAL: TÍTULOS DOS CARDS SEMPRE CLAROS
   Regra solicitada: todo card de notícia/conteúdo deve manter
   título e textos principais claros, independente do tema claro.
   Carregado por último para derrubar regras antigas de contraste.
   ========================================================== */

body :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back,
  .news-card,
  .post-card,
  .content-card,
  .card-news,
  .card-noticia
),
body .rev-auto-light :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back
),
body.rev-theme-light :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back
){
  color:#ffffff!important;
}

body :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back,
  .news-card,
  .post-card,
  .content-card,
  .card-news,
  .card-noticia
) :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,.news-title,.post-title,.content-title,strong,b,a):not(.rev-tag):not(.rev-btn):not(.rev-cat-menu-link),
body .rev-auto-light :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back
) :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,.news-title,.post-title,.content-title,strong,b,a):not(.rev-tag):not(.rev-btn):not(.rev-cat-menu-link),
body.rev-theme-light :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back
) :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,.news-title,.post-title,.content-title,strong,b,a):not(.rev-tag):not(.rev-btn):not(.rev-cat-menu-link){
  color:#ffffff!important;
  text-shadow:0 2px 10px rgba(0,0,0,.45)!important;
}

body :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back,
  .news-card,
  .post-card,
  .content-card,
  .card-news,
  .card-noticia
) :is(p,small,.rev-meta,.rev-card-meta,.meta,.date,span):not(.rev-tag):not(.rev-badge):not(.rev-btn):not(.rev-cat-menu-link),
body .rev-auto-light :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back
) :is(p,small,.rev-meta,.rev-card-meta,.meta,.date,span):not(.rev-tag):not(.rev-badge):not(.rev-btn):not(.rev-cat-menu-link){
  color:rgba(255,255,255,.88)!important;
  text-shadow:0 2px 8px rgba(0,0,0,.38)!important;
}

/* Etiquetas de categoria continuam usando a cor cadastrada da categoria. */
body :is(
  .rev-card,
  .rev-wide-card,
  .rev-feature-card,
  .rev-interview-card,
  .rev-production-card,
  .rev-gallery-home-card,
  .rev-home-highlight-card,
  .rev-home-destaques-slide,
  .rev-home-flip-front,
  .rev-home-flip-back
) :is(.rev-tag,.rev-badge){
  text-shadow:none!important;
}

/* Garante o contraste mesmo quando o JavaScript marcar o card como fundo claro. */
body .rev-card.rev-auto-light :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,a,strong,b):not(.rev-tag):not(.rev-btn),
body .rev-wide-card.rev-auto-light :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,a,strong,b):not(.rev-tag):not(.rev-btn),
body .rev-feature-card.rev-auto-light :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,a,strong,b):not(.rev-tag):not(.rev-btn),
body .rev-home-highlight-card.rev-auto-light :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,a,strong,b):not(.rev-tag):not(.rev-btn),
body .rev-home-destaques-slide.rev-auto-light :is(h1,h2,h3,h4,h5,h6,.rev-card-title,.card-title,a,strong,b):not(.rev-tag):not(.rev-btn){
  color:#ffffff!important;
  text-shadow:0 2px 10px rgba(0,0,0,.45)!important;
}
