/*
 * Jerê Ensina — cartões de Downloads v1.3
 * Imita a composição dos cartões de disciplinas: imagem completa e nome abaixo.
 */
.jere-home-latest .jere-home-latest-grid,
section.jere-home-latest .jere-home-latest-grid,
.jere-home-latest-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

.jere-home-latest-grid > .jere-download-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border: 1px solid var(--jere-border, #e5ddd2) !important;
  border-radius: 16px !important;
  background: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.jere-home-latest-grid .jere-download-card .jere-download-art {
  position: relative !important;
  display: flex !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  align-items: center !important;
  justify-content: center !important;
  background: #faf6ef !important;
}

.jere-home-latest-grid .jere-download-card .jere-download-art > img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

.jere-home-latest-grid .jere-download-card .jere-latest-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 9px 6px !important;
  text-align: center !important;
  background: #fff !important;
}

.jere-home-latest-grid .jere-download-card .jere-latest-stamp,
.jere-home-latest-grid .jere-download-card .jere-latest-excerpt {
  display: none !important;
}

.jere-home-latest-grid .jere-download-card .jere-latest-title {
  display: block !important;
  margin: 0 !important;
  color: var(--jere-ink, #173f35) !important;
  font-family: inherit !important;
  font-size: clamp(12px, 1vw, 17px) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.jere-home-latest-grid .jere-download-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .jere-home-latest .jere-home-latest-grid,
  section.jere-home-latest .jere-home-latest-grid,
  .jere-home-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  .jere-home-latest .jere-home-latest-grid,
  section.jere-home-latest .jere-home-latest-grid,
  .jere-home-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}
