/* ============================================================
   Blog Eujoaopsi — acervo estático (blog/todos.html, blog/arquivo/)
   Classes geradas por ferramentas/acervo-estatico.mjs, com o mesmo
   visual dos cards e do texto de artigo do blog anterior (blog.css).
   ============================================================ */

.pagina-acervo main { background: var(--gray-50); }

.pagina-acervo .section { padding: calc(var(--header-h) + 56px) 0 88px; }
.pagina-acervo .wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Cabeçalho da listagem ---- */
.pagina-acervo .intro { text-align: center; margin-bottom: 48px; }
.pagina-acervo .intro .title,
.pagina-acervo .artigo > .title {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.pagina-acervo .intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--blue-dark);
  line-height: 1.2;
}
.pagina-acervo .divider {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  margin: 20px auto 0;
}
.pagina-acervo .text-grey { color: var(--text-light); text-align: center; margin-bottom: 24px; }
.pagina-acervo .text-grey a { color: var(--blue); text-decoration: underline; }

/* ---- Grade de cards ---- */
#gradeArtigos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { #gradeArtigos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { #gradeArtigos { grid-template-columns: 1fr; } }

#gradeArtigos .post-33 {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
#gradeArtigos .post-33:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* capa: <img> dentro do link (nunca background-image inline) */
#gradeArtigos .post-card-preview-m {
  display: block;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--blue-light);
}
#gradeArtigos .post-card-preview-m img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
#gradeArtigos .post-33:hover .post-card-preview-m img { transform: scale(1.04); }

#gradeArtigos .post-heading {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue-dark);
  padding: 20px 22px 0;
  margin: 0 0 10px;
}
#gradeArtigos .post-heading a { color: inherit; }
#gradeArtigos .post-heading a:hover { color: var(--blue); }
#gradeArtigos .post-card-decription {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.65;
  padding: 0 22px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#gradeArtigos .post-card-bottom {
  font-size: .75rem;
  color: var(--text-light);
  margin: 16px 22px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

/* ---- Página do artigo ---- */
.pagina-acervo .artigo {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 48px 56px 40px;
}
@media (max-width: 640px) { .pagina-acervo .artigo { padding: 28px 20px 28px; } }

.pagina-acervo .artigo h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--blue-dark);
  line-height: 1.2;
}
.pagina-acervo .artigo .divider { margin: 20px 0 32px; }
.artigo__capa {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 36px;
}

.artigo__corpo { line-height: 1.87; color: var(--text); font-size: 1.02rem; }
.artigo__corpo > *:first-child { margin-top: 0; }
.artigo__corpo h1,
.artigo__corpo h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--blue-dark);
  line-height: 1.3;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-100);
}
.artigo__corpo h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--blue-dark);
  margin: 36px 0 12px;
}
.artigo__corpo h4 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; }
.artigo__corpo p { margin-bottom: 20px; }
.artigo__corpo a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.artigo__corpo a:hover { color: var(--blue-dark); }
.artigo__corpo ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; }
.artigo__corpo ol { list-style: decimal; padding-left: 24px; margin-bottom: 20px; }
.artigo__corpo li { margin-bottom: 7px; }
.artigo__corpo strong { font-weight: 700; color: var(--blue-dark); }
.artigo__corpo blockquote {
  border-left: 4px solid var(--blue);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}
.artigo__corpo img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 8px auto; }
.artigo__corpo hr { border: none; border-top: 2px solid var(--gray-100); margin: 40px 0; }

.artigo__voltar {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid var(--gray-100);
}
.artigo__voltar a { font-size: .9rem; font-weight: 600; color: var(--blue); }
.artigo__voltar a:hover { color: var(--blue-dark); }

/* ---- Página de espera (/blog/index.html, contingência) ---- */
.espera { padding: calc(var(--header-h) + 88px) 0 104px; text-align: center; }
.espera__inner { max-width: 720px; }
.espera .section-sub { margin: 16px auto 0; }
.espera__acoes { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ---- Menu mobile no header claro ----
   O style.css pinta o painel aberto de azul-escuro (pensado para o header escuro da home)
   e o blog.css força os links em azul-escuro: sem isto o menu fica ilegível. */
@media (max-width: 900px) {
  .pagina-acervo .header__nav.open {
    background: var(--white);
    border-top: 1px solid var(--gray-100);
  }
}
