/**
 * noticias.css — Cartões de notícias públicas.
 * Coerente com o design institucional: navy #1b3f7a, dourado #c9a428,
 * fontes Cinzel/Inter, cantos 10px, sombras suaves. Mobile-first (coluna única).
 */

#noticias-lista {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.noticia-cartao {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12, 36, 97, .04);
  transition: box-shadow .25s cubic-bezier(0.16, 1, 0.3, 1),
              transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.noticia-cartao:hover {
  box-shadow: 0 12px 30px rgba(12, 36, 97, .1);
  transform: translateY(-2px);
}

/* Imagem 16/9 com cantos superiores arredondados. */
.noticia-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef3f9;
}

.noticia-imagem {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Imagens "tipo documento" (quase quadradas ou ao alto — cartazes, painéis,
   digitalizações) não podem ser recortadas: perdem o conteúdo do topo e do
   fundo. O noticias-publicas.js marca-as com esta classe ao medir a imagem;
   mostram-se inteiras sobre o fundo claro, com teto de altura. */
.noticia-media--integral {
  aspect-ratio: auto;
}

.noticia-media--integral .noticia-imagem {
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.noticia-conteudo {
  padding: 1.75rem 1.75rem 2rem;
}

.noticia-data {
  margin: 0 0 .6rem;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a7a2e;
  padding-left: 1.4rem;
  position: relative;
}

.noticia-data::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: .9rem;
  height: 2px;
  background: #c9a428;
  border-radius: 2px;
}

.noticia-titulo {
  margin: 0 0 .75rem;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1b3f7a;
  letter-spacing: .01em;
}

.noticia-resumo {
  margin: 0 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}

.noticia-corpo {
  margin-top: .5rem;
  border-top: 1px solid #eef3f9;
  padding-top: 1rem;
}

.noticia-corpo p {
  margin: 0 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.noticia-corpo p:last-child {
  margin-bottom: 0;
}

/* Botão "Ler mais" discreto: texto navy com sublinhado no hover. */
.noticia-toggle {
  margin-top: 1rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #1b3f7a;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.noticia-toggle:hover {
  color: #0c2461;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.noticia-toggle:focus-visible {
  outline: 2px solid #1b3f7a;
  outline-offset: 3px;
  border-radius: 3px;
}

@media (min-width: 640px) {
  .noticia-conteudo {
    padding: 2rem 2.25rem 2.25rem;
  }

  .noticia-titulo {
    font-size: 1.6rem;
  }
}
