/* ==========================================================
   Blog TK — blog.css (BEM). Usa as variáveis de styles.css
   ========================================================== */

.nav__link--active { color: var(--ink); font-weight: 600; }

/* ---------- Topo do blog ---------- */
.blog-hero { padding: 72px 0 24px; }
.blog-hero__title { font: 800 clamp(40px, 6.5vw, 76px)/1.05 var(--font-display); letter-spacing: -.02em; }
.blog-hero__lead { max-width: 40em; margin-top: 18px; color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); }

/* ---------- Grade de cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-grid__empty { padding: 48px 0; color: var(--muted); font-size: 19px; }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16, 32, 79, .12); }
.post-card__media { display: block; text-decoration: none; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.post-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  font: 700 22px var(--font-display);
  letter-spacing: .02em;
}
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; font-size: 13px; }
.post-card__category { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-card__date { color: var(--muted); }
.post-card__title { margin-bottom: 10px; font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; }
.post-card__link { text-decoration: none; }
.post-card__link:hover { text-decoration: underline; }
.post-card__excerpt { flex: 1; margin-bottom: 16px; color: var(--muted); font-size: 16px; }
.post-card__more { color: var(--teal); font-weight: 600; text-decoration: none; }
.post-card__more:hover { text-decoration: underline; }

/* ---------- Artigo ---------- */
.article { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.article__back { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 15px; text-decoration: none; }
.article__back:hover { color: var(--ink); }
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; font-size: 14px; }
.article__title { font: 800 clamp(32px, 5.5vw, 52px)/1.1 var(--font-display); letter-spacing: -.02em; }
.article__cover { display: block; width: 100%; height: auto; margin: 32px 0 8px; border-radius: var(--radius); }
.article__preview {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #fff4d6;
  border: 1px solid #f0d58a;
  border-radius: 10px;
  color: #5c4500;
  font-size: 15px;
}
.article__notfound { padding-top: 40px; padding-bottom: 40px; }
.article__notfound p { margin-top: 18px; }

.article__content { margin-top: 28px; font-size: 19px; line-height: 1.75; }
.article__content > * + * { margin-top: 1.1em; }
.article__content h2 { margin-top: 1.8em; font: 700 28px/1.2 var(--font-display); letter-spacing: -.01em; }
.article__content h3 { margin-top: 1.5em; font: 700 22px/1.25 var(--font-display); }
.article__content ul { padding-left: 1.3em; list-style: disc; }
.article__content li + li { margin-top: .4em; }
.article__content a { color: var(--teal); text-underline-offset: 3px; }
.article__content strong { font-weight: 700; }

@media (max-width: 520px) {
  .blog-hero { padding-top: 48px; }
  .article__content { font-size: 18px; }
}

/* ---------- Seção "Últimos artigos" na página inicial ---------- */
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 36px; }
.blog-grid--home { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
