/*
 * Blog index (home.php) and the post archives (archive.php).
 * Loaded after page-videos-and-articles.css, which owns the eyebrow, the
 * section head and the blog card — this file only adds the index chrome.
 */

.blog-index {
  --insights-card: #f4f4f4;
  background: var(--c-white);
  padding-block: clamp(2.25rem, calc(5.5 * var(--vw)), 6.6rem) clamp(2rem, calc(4.84 * var(--vw)), 5.808rem);
}
.blog-index__title {
  margin-top: clamp(0.75rem, calc(1.25 * var(--vw)), 1.5rem);
  font-size: var(--fs-h2);
  font-weight: 800;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.blog-index .blog-index__pagination {
  margin-top: clamp(2rem, calc(3.5 * var(--vw)), 4.25rem);
}
.blog-index .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, calc(0.83 * var(--vw)), 1rem);
}
.blog-index .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75em;
  height: 2.75em;
  padding-inline: 0.75em;
  border: 1px solid rgba(57, 57, 57, 0.5);
  border-radius: min(50px, calc(2.6042 * var(--vw-inset)));
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1;
  color: var(--c-charcoal);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.blog-index .page-numbers:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}
.blog-index .page-numbers.current {
  border-color: var(--c-orange);
  background: var(--c-orange);
  color: var(--c-white);
}
.blog-index .page-numbers.dots {
  border-color: transparent;
}

/* ==========================================================================
   Blog cards
   ========================================================================== */
/* The cards are reveal targets (see template-parts/insights/card.php), so the
   hover transition has to open with var(--reveal-transition) or it would
   replace the reveal's own — see .audience-card in front-page.css. */
.blog-index .insights-card {
  transition:
    var(--reveal-transition),
    transform var(--motion) ease,
    border-color var(--motion) ease,
    box-shadow var(--motion) ease;
}
.blog-index .insights-card:hover {
  transform: translateY(calc(var(--lift) * -1));
  border-color: var(--c-orange);
  box-shadow: 0 calc(var(--lift) * 2) calc(var(--lift) * 4) rgba(20, 42, 56, 0.13);
}

/* A visitor who has asked for reduced motion still gets the border/shadow
   feedback on hover, just not the lift — see the matching block in
   front-page.css. */
@media (prefers-reduced-motion: reduce) {
  .blog-index .insights-card:hover {
    transform: none;
  }
}
