/* ===== NEWS DA PÁGINA INICIAL =====
   Notícias em sequência, com a mais nova no início da lista. */
.home-news {
  margin-top: 28px;
  border: 1px solid #b9b9c1;
  background: var(--cor-superficie);
}

#conteudo .home-news-titulo {
  margin: 0;
  padding: 5px 12px 6px;
  border: 1px solid #11111f;
  border-bottom: 2px solid var(--cor-destaque);
  background: linear-gradient(#303047, var(--cor-topo));
  box-shadow: inset 0 1px rgb(255 255 255 / 12%);
  color: #f5d77b;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 1px 1px 1px #000;
}

.home-news-conteudo {
  padding: 12px;
}

#conteudo .home-news-vazio {
  margin: 0;
  padding: 9px 4px;
  color: var(--cor-texto-fraco);
  font-size: 13px;
}

.home-news-lista:has(> .home-news-noticia) + .home-news-vazio {
  display: none;
}

/* Cada notícia tem uma faixa de data e título e o texto completo logo abaixo. */
.home-news-noticia + .home-news-noticia {
  margin-top: 22px;
}

.home-news-noticia-cabecalho {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  padding: 3px 8px;
  border: 1px solid #11111f;
  background: linear-gradient(#34344f, #202035);
  box-shadow: inset 0 1px rgb(255 255 255 / 15%), inset 0 -1px rgb(0 0 0 / 25%);
  color: #fff;
}

.home-news-noticia-cabecalho img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.home-news-noticia-cabecalho time {
  flex: 0 0 auto;
  color: #f5d77b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.4;
}

#conteudo .home-news-noticia-cabecalho h3 {
  flex: 1 1 180px;
  min-width: 0;
  color: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-wrap: pretty;
}

.home-news-noticia-corpo {
  display: flow-root;
  padding: 14px 10px 0;
  font-size: 14px;
}

#conteudo .home-news-noticia-corpo p {
  text-align: justify;
}

#conteudo .home-news-noticia-corpo p:last-child {
  margin-bottom: 0;
}

/* Iniciais maiores, com a base alinhada à primeira linha do texto. */
.introducao-home > p:first-child {
  text-indent: 0;
}

.introducao-home > p:first-child::first-letter,
.home-news-noticia-corpo > p:first-child::first-letter {
  margin: 0 3px 0 0;
  color: #795b10;
  font-size: 38px;
  line-height: 1;
  vertical-align: baseline;
}

/* Ações da notícia, com os mesmos tons das faixas de título. */
.home-news-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (width <= 700px) {
  .home-news-conteudo {
    padding: 10px;
  }

  #conteudo .home-news-noticia-cabecalho h3 {
    flex-basis: 100%;
  }

  .home-news-noticia-corpo {
    padding-inline: 4px;
  }
}
