/* Blog posts archive (/blog/) — archive-only styles.
   Card design comes 1:1 from blocks/blog-teaser/block.css (enqueued alongside,
   single-source). This file only adds the H1 sizing hook and the pagination. */

/* H1 uses the .sun-blog__heading type style from the teaser CSS verbatim;
   nothing to add — just make sure heading-element defaults don't fight it. */
.sun-blog--archive .sun-blog__heading {
  margin: 0;
}

/* Empty state */
.sun-blog__empty {
  margin: 0;
  font-size: var(--wp--preset--font-size--lg);
  color: var(--sun-bluegrey);
}

/* Pagination — minimal token pills (.sun-btn-ish), 48px above like the CTA row */
.sun-blog__pagination {
  padding-top: 48px;
}
.sun-blog__pagination .page-numbers {          /* the <ul> (type=list) */
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.sun-blog__pagination a.page-numbers,
.sun-blog__pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--sun-border);
  border-radius: var(--wp--custom--radius--pill, 999px);
  background: transparent;
  font-family: var(--wp--preset--font-family--brand);
  font-weight: 500;
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1;
  color: var(--sun-secondary);
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.sun-blog__pagination a.page-numbers:hover {
  border-color: var(--sun-secondary);
  background: var(--sun-base);
}
.sun-blog__pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--sun-primary);
  outline-offset: 2px;
}
.sun-blog__pagination .page-numbers.current {
  background: var(--sun-secondary);
  border-color: var(--sun-secondary);
  color: var(--sun-base);
}
.sun-blog__pagination .page-numbers.dots {
  border-color: transparent;
  color: var(--sun-muted);
}

@media (max-width: 640px) {
  .sun-blog__pagination { padding-top: 32px; }
}

/* Archive is the first section in flow — clear the fixed header (~73px);
   the teaser block's own clamp() top padding is too small below 1024px. */
body.blog .sun-blog { padding-top: calc(73px + clamp(24px, 4vw, 48px)); }
