/* Blog: listagem */

.blog-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px clamp(48px, 7vw, 112px); align-items: end; }
.blog-hero h1 { max-width: 720px; }
.blog-hero--image { min-height: clamp(420px, 38vw, 540px); display: flex; align-items: flex-end; }
.blog-hero--image > .container { width: 100%; }
.blog-hero--image h1, .blog-hero--image .lede { text-shadow: 0 2px 18px rgba(11, 34, 50, .5); }
.blog-hero--image .blog-cats a { background: rgba(11, 34, 50, .45); backdrop-filter: blur(4px); }
.blog-author { display: flex; align-items: center; gap: 20px; }
.blog-author img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.blog-cats a[aria-current] { background: var(--white); border-color: var(--white); color: var(--navy-900); }
.blog-cats h2 { margin-bottom: 14px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--on-dark-3); }
.blog-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.blog-cats a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px;
  color: #E3EAF0; text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease;
}
.blog-cats a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); color: var(--white); }

.blog-list { padding: clamp(56px, 6vw, 88px) 0 var(--section); }

.post-cat { display: inline-block; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--green-ink); text-decoration: none; }
.post-cat:hover { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 3px; }
.post-excerpt { color: var(--ink); }
.post-excerpt::after { content: "…"; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.byline img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.byline span:first-of-type { color: var(--ink-strong); font-weight: 500; }
.byline--small img { width: 24px; height: 24px; }

/* Artigo em destaque: o mais recente */
.post-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px clamp(32px, 4vw, 64px); align-items: center; padding-bottom: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--ink-strong); }
.post-feature__media { display: block; border-radius: 8px; overflow: hidden; background: var(--surface-2); aspect-ratio: var(--ar, 16 / 9); }
.post-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post-feature:hover .post-feature__media img { transform: scale(1.03); }
.post-feature__title { margin-top: 14px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.post-feature__title a, .post-row__title a { color: var(--ink-strong); text-decoration: none; transition: color .2s ease; }
.post-feature__title a:hover, .post-row__title a:hover { color: var(--blue); }
.post-feature .post-excerpt { margin-top: 18px; font-size: 17px; line-height: 1.7; }
.post-feature .byline { margin-top: 24px; }
.post-more { margin-top: 18px; }

/* Lista: data e categoria à esquerda, texto no meio, imagem à direita */
.post-rows { list-style: none; margin: 0; padding: 0; }
.post-rows--top { border-top: 1px solid var(--ink-strong); }
.post-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 248px; gap: 16px clamp(24px, 3vw, 48px); align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.post-row__meta { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; font-size: 13.5px; color: var(--muted); }
.post-row__title { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -.01em; }
.post-row .post-excerpt { margin-top: 10px; font-size: 15.5px; line-height: 1.65; max-width: 62ch; }
.post-row .byline { margin-top: 14px; font-size: 13.5px; }
.post-row__more { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--blue); text-decoration: none; }
.post-row__more:hover { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 3px; }
.post-row__media { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: var(--ar, 1024 / 572); background: var(--surface-2); }
.post-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post-row:hover .post-row__media img { transform: scale(1.035); }

/* Paginação */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(40px, 5vw, 64px); font-size: 15px; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.pager ul a, .pager ul span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-strong); text-decoration: none; font-variant-numeric: tabular-nums; }
.pager ul a:hover { border-color: var(--ink-strong); }
.pager ul [aria-current] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.pager__edge { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--blue); text-decoration: none; }
.pager__edge[aria-disabled] { color: #8A99A8; font-weight: 500; }

@media (max-width: 1024px) {
  .blog-hero__grid { grid-template-columns: 1fr; align-items: start; }
  .post-feature { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: minmax(0, 1fr) 200px; }
  .post-row__meta { grid-column: 1 / -1; flex-direction: row; gap: 14px; padding-top: 0; }
}
@media (max-width: 640px) {
  .post-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .post-row__media { grid-column: 1; grid-row: 2; }
  .post-row__body { grid-column: 1; grid-row: 3; }
  .post-row .post-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
  .pager { justify-content: center; }
  .pager__edge { flex: 1 1 40%; justify-content: center; }
  .pager ul { order: -1; flex: 1 1 100%; justify-content: center; }
}
