/* Shared styles for /blog and /case-studies list + detail pages. Reuses brand tokens
   and shared component classes (.wrap, .section, .kicker, .lead, .card, .btn) from
   style.css — only layout that doesn't already exist elsewhere lives here. */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 980px) {
  .content-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .content-grid { grid-template-columns: 1fr; }
}

.content-card { display: flex; flex-direction: column; overflow: hidden; position: relative; }
/* Only the title text is a real <a>, but clicking anywhere on the card (image,
   excerpt, category, meta) should navigate — stretch an invisible overlay from
   the title link across the whole card instead of making every element its
   own separate link. */
.content-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.content-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--mist);
}
.content-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-card-cat { color: var(--blue-ink); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.content-card h3 { font-size: 20px; margin: 8px 0; }
.content-card p { color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.content-card-meta { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--text-soft); display: flex; gap: 8px; align-items: center; }

.content-empty { padding: 80px 0; text-align: center; color: var(--text-soft); }

.category-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.category-chip {
  padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--text); text-decoration: none;
}
.category-chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 56px; }
.pager-pages { display: flex; list-style: none; gap: 6px; padding: 0; margin: 0; }
.pager-page { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 6px; text-decoration: none; color: var(--text); font-size: 14px; }
.pager-page.is-current { background: var(--navy); color: var(--white); }
.pager-link { color: var(--blue-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.pager-link.is-disabled { color: var(--text-soft); opacity: .5; pointer-events: none; }
.pager-ellipsis { padding: 0 4px; color: var(--text-soft); }

.article-body { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body h2 { font-size: 28px; margin: 40px 0 16px; }
.article-body h3 { font-size: 22px; margin: 32px 0 12px; }
.article-body p { margin: 0 0 20px; }
.article-body img { width: 100%; border-radius: 10px; margin: 24px 0; }
.article-body a { color: var(--blue-ink); text-decoration: underline; }
.article-banner { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 32px; }
.article-banner img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; align-items: center; gap: 16px; color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.article-author-avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
