/* Top People Brasil — correções definitivas v1.4
   Carregado depois do CSS principal e do Newspaper para evitar sobreposição,
   títulos invisíveis e cortes em telas pequenas. */

body.tp-site,
body.tp-site * {
  -webkit-hyphens: none;
  hyphens: none;
}

body.tp-site .tp-hero-grid,
body.tp-site .tp-hero-side,
body.tp-site .tp-card-grid,
body.tp-site .tp-news-list,
body.tp-site .tp-news-row,
body.tp-site .tp-card,
body.tp-site .tp-related,
body.tp-site .tp-related .tp-card-grid {
  min-width: 0 !important;
}

/* Destaques: imagem e texto em áreas separadas. Isso elimina qualquer
   sobreposição e garante que todos os títulos sempre apareçam. */
body.tp-site .tp-hero-primary,
body.tp-site .tp-hero-secondary {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #111 !important;
  border-radius: var(--tp-radius) !important;
  contain: layout paint !important;
}

body.tp-site .tp-hero-primary > a,
body.tp-site .tp-hero-secondary > a {
  display: grid !important;
  grid-template-rows: auto auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  background: #111 !important;
}

body.tp-site .tp-cover-image {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  transform: none !important;
}

body.tp-site .tp-hero-primary .tp-cover-image {
  aspect-ratio: 16 / 9 !important;
}

body.tp-site .tp-cover-shade {
  display: none !important;
}

body.tp-site .tp-hero-content,
body.tp-site .tp-hero-primary .tp-hero-content,
body.tp-site .tp-hero-secondary .tp-hero-content {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 25px 28px 27px !important;
  margin: 0 !important;
  background: #111 !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  overflow: visible !important;
}

body.tp-site .tp-hero-title,
body.tp-site .tp-hero-title a {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  text-shadow: none !important;
}

body.tp-site .tp-hero-primary .tp-hero-title {
  font-size: clamp(36px, 4.3vw, 60px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.035em !important;
}

body.tp-site .tp-hero-secondary .tp-hero-title {
  font-size: clamp(24px, 2.25vw, 32px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.025em !important;
}

/* Listas e cards: nenhum título usa altura fixa ou line-clamp. */
body.tp-site .tp-news-row,
body.tp-site .tp-card,
body.tp-site .tp-related .tp-card {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.tp-site .tp-news-row > div,
body.tp-site .tp-card-body,
body.tp-site .tp-related .tp-card-body {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.tp-site .tp-news-title,
body.tp-site .tp-news-title a,
body.tp-site .tp-card-title,
body.tp-site .tp-card-title a,
body.tp-site .tp-related .tp-card-title,
body.tp-site .tp-related .tp-card-title a {
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  transform: none !important;
}

/* Compatibilidade com blocos nativos do Newspaper/tagDiv caso algum template
   Cloud continue ativo no banco de dados. */
body.tp-site .td_module_wrap,
body.tp-site .td_module_wrap .td-module-container,
body.tp-site .td_module_wrap .td-module-meta-info,
body.tp-site .td_block_related_posts,
body.tp-site .td_block_related_posts .td_module_wrap {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body.tp-site .td_module_wrap .entry-title,
body.tp-site .td_module_wrap .entry-title a,
body.tp-site .td-module-title,
body.tp-site .td-module-title a,
body.tp-site .td_block_related_posts .entry-title,
body.tp-site .td_block_related_posts .entry-title a,
body.tp-site .td-related-title,
body.tp-site .td-related-title a {
  display: block !important;
  position: relative !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

@media (max-width: 1024px) {
  body.tp-site .tp-hero-primary .tp-hero-title {
    font-size: clamp(34px, 5.8vw, 50px) !important;
  }
}

@media (max-width: 700px) {
  body.tp-site .tp-main { padding-top: 22px !important; }

  body.tp-site .tp-hero-grid,
  body.tp-site .tp-hero-side {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 22px !important;
  }

  body.tp-site .tp-hero-content,
  body.tp-site .tp-hero-primary .tp-hero-content,
  body.tp-site .tp-hero-secondary .tp-hero-content {
    padding: 19px 19px 21px !important;
  }

  body.tp-site .tp-hero-primary .tp-hero-title {
    font-size: clamp(27px, 7.3vw, 34px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
  }

  body.tp-site .tp-hero-secondary .tp-hero-title {
    font-size: clamp(22px, 6vw, 27px) !important;
    line-height: 1.1 !important;
  }

  body.tp-site .tp-news-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    padding-bottom: 22px !important;
    margin-bottom: 22px !important;
  }

  body.tp-site .tp-news-thumb,
  body.tp-site .tp-card-media,
  body.tp-site .tp-related .tp-card-media {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
  }

  body.tp-site .tp-news-title,
  body.tp-site .tp-news-title a {
    font-size: 22px !important;
    line-height: 1.16 !important;
    letter-spacing: -.01em !important;
    margin: 0 0 8px !important;
  }

  body.tp-site .tp-card-grid,
  body.tp-site .tp-related .tp-card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
  }

  body.tp-site .tp-card,
  body.tp-site .tp-related .tp-card {
    display: block !important;
    width: 100% !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid var(--tp-line) !important;
  }

  body.tp-site .tp-card-body,
  body.tp-site .tp-related .tp-card-body {
    padding: 13px 0 0 !important;
  }

  body.tp-site .tp-card-title,
  body.tp-site .tp-card-title a,
  body.tp-site .tp-related .tp-card-title,
  body.tp-site .tp-related .tp-card-title a {
    font-size: 21px !important;
    line-height: 1.17 !important;
    letter-spacing: -.01em !important;
    margin: 0 0 8px !important;
  }

  body.tp-site .tp-related .tp-section-title {
    font-size: 36px !important;
    line-height: 1 !important;
  }

  body.tp-site .td_module_wrap .entry-title,
  body.tp-site .td_module_wrap .entry-title a,
  body.tp-site .td_block_related_posts .entry-title,
  body.tp-site .td_block_related_posts .entry-title a,
  body.tp-site .td-related-title,
  body.tp-site .td-related-title a {
    font-size: 19px !important;
    line-height: 1.18 !important;
  }
}

@media (max-width: 420px) {
  body.tp-site .tp-hero-primary .tp-hero-title { font-size: 27px !important; }
  body.tp-site .tp-hero-secondary .tp-hero-title { font-size: 22px !important; }
  body.tp-site .tp-news-title,
  body.tp-site .tp-news-title a,
  body.tp-site .tp-card-title,
  body.tp-site .tp-card-title a,
  body.tp-site .tp-related .tp-card-title,
  body.tp-site .tp-related .tp-card-title a {
    font-size: 20px !important;
    line-height: 1.18 !important;
  }
}


/* ==========================================================
   Ajuste v1.5 — título interno menor no celular
   ========================================================== */
@media (max-width: 700px) {
  body.tp-site .tp-article-title {
    font-size: clamp(38px, 10.5vw, 54px) !important;
    line-height: .98 !important;
    letter-spacing: -.038em !important;
  }
}

@media (max-width: 440px) {
  body.tp-site .tp-article-title {
    font-size: clamp(36px, 10vw, 44px) !important;
    line-height: 1 !important;
    letter-spacing: -.034em !important;
  }
}
