/**
 * AC | Topic Card — DS Side image (873:66).
 * 4 combos: imgSide left/right × filled true/false.
 * Toggles: showImage, showSubheader, showProteina, showCta.
 */

.ac-topic-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  scroll-margin-top: 80px;
}
.ac-topic-card--img-right { flex-direction: row-reverse; }

/* Sem imagem: o content cresce sozinho */
.ac-topic-card--no-image { flex-direction: column; }

/* Filled = card branco com radius/shadow/padding */
.ac-topic-card--filled {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 3px 4px -2px rgba(0, 0, 0, 0.08); /* Elevation/xs */
}

/* Mídia */
.ac-topic-card__media {
  flex: 0 0 90px;
  position: relative;
}
.ac-topic-card__img {
  display: block;
  width: 90px;
  height: 100%;
  min-height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #E2E5E9;
}
.ac-topic-card__img--placeholder {
  background-image: linear-gradient(135deg, #E2E5E9 25%, #F0F2F5 25%, #F0F2F5 50%, #E2E5E9 50%, #E2E5E9 75%, #F0F2F5 75%);
  background-size: 16px 16px;
}

/* Conteúdo */
.ac-topic-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ac-topic-card__proteina {
  display: inline-flex;
  width: 20px;
  height: 8px;
}

.ac-topic-card__subheader {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #774900;
}

.ac-topic-card__title {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 130%;
  color: #242424;
}

.ac-topic-card__body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
  color: #404040;
}

/* CTA — variante Link / Verde-Nobre / sm */
.ac-topic-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #033936;
  text-decoration: none;
  align-self: flex-start;
}
.ac-topic-card__cta:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 768px) {
  .ac-topic-card--filled { padding: 16px; }
  .ac-topic-card__media,
  .ac-topic-card__img { flex: 0 0 72px; width: 72px; }
}
