/* ===== LAYOUT GERAL DO POST ===== */
.dm-article-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 16px;
  line-height: 1.6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Inter', Roboto, sans-serif;
  color: #1a1a1a;
}

/* Categoria / breadcrumb */
.dm-breadcrumb {
  margin-bottom: 8px;
}
.dm-cat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  background: #eef5ff;
  color: #0055ff;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}

/* Título */
.dm-title {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 8px 0 12px;
}

/* META info */
.dm-meta {
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 20px;
}
.dm-meta-sep {
  color: #94a3b8;
}
.dm-featured-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}
.dm-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Corpo do artigo */
.dm-body {
  font-size: 1rem;
  color: #1e293b;
}
.dm-body p {
  margin-bottom: 1.2em;
}
.dm-body h2,
.dm-body h3,
.dm-body h4 {
  color: #0f172a;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.6em;
}
.dm-body ul,
.dm-body ol {
  padding-left: 1.2rem;
  margin-bottom: 1.2em;
}
.dm-body li {
  margin-bottom: 0.4em;
}

/* Box de alerta técnico */
.dm-alert-box {
  margin: 32px 0;
  border-left: 4px solid #ffb800;
  background: #fffbea;
  color: #4a3b00;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.dm-alert-box strong {
  color: #000;
  font-weight: 600;
}

/* CTA principal */
.dm-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 40px 0;
  box-shadow: 0 24px 40px rgba(0,0,0,0.4);
}
.dm-cta-text h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.dm-cta-text p {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.4;
}
.dm-cta-btn {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  min-width: 160px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(56,189,248,.4);
  transition: all .15s ease;
}
.dm-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

/* Artigos relacionados */
.dm-related {
  max-width: 1100px;
  margin: 56px auto 80px;
  padding: 0 16px 60px;
}
.dm-related h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1.3;
}
.dm-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr));
  gap: 20px;
}
.dm-related-card {
  display: flex;
  flex-direction: row;
  gap: 12px;
  background: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);
  transition: all .15s ease;
}
.dm-related-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.dm-related-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.dm-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dm-related-thumb-fallback {
  padding: 8px;
  line-height: 1.2;
}
.dm-related-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dm-related-cat {
  font-size: 0.7rem;
  font-weight: 600;
  background: #eef5ff;
  color: #0055ff;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.dm-related-title {
  font-size: 0.9rem;
  line-height: 1.3;
  color: #0f172a;
  font-weight: 600;
  margin: 6px 0;
}
.dm-related-date {
  font-size: 0.75rem;
  color: #64748b;
}

/* Mobile ajustes */
@media (max-width: 480px) {
  .dm-meta {
    font-size: 0.8rem;
  }
  .dm-cta {
    text-align: center;
  }
  .dm-cta-text {
    width: 100%;
  }
  .dm-cta-btn {
    width: 100%;
  }
  .dm-related-card {
    flex-direction: row;
  }
  .dm-related-thumb {
    width: 88px;
    height: 88px;
  }
}
