/**
 * Archive, search, and blog index listing views (Kadence child).
 */

body.cfd-kadence-child.cfd-listing {
  background: var(--cfd-page-bg, #f5f2ed);
}

.cfd-archive__wrap,
.cfd-category-hub__wrap {
  max-width: var(--cfd-ticket-max, var(--cfd-max, 1496px));
  margin: 0 auto;
}

.cfd-archive__grid,
.cfd-category-hub__grid {
  padding: 32px var(--cfd-gutter, 24px);
}

.cfd-section-head,
.filter-bar__heading.cfd-section-head {
  font-family: var(--cfd-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cfd-text, #1a1a1a);
}

.archive-header--listing,
.category-hub-hero--ticket {
  background: var(--cfd-k-cream, #f9f8f4);
}

/* Topic hub: single ticket band (no duplicate stub beside title) */
body.cfd-category-hub .archive-hero--no-stub .archive-hero__inner,
body.cfd-category-hub .category-hub-hero--ticket .archive-hero__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

body.cfd-category-hub .archive-hero--no-stub {
  padding-top: 24px;
  padding-bottom: 28px;
}

body.cfd-category-hub .archive-hero__content {
  min-width: 0;
}

body.cfd-category-hub .archive-hero__title {
  margin-top: 4px;
  line-height: 1.15;
}

body.cfd-category-hub .archive-header__stamp {
  flex-shrink: 0;
  align-self: start;
  overflow: visible;
  margin-top: 4px;
  padding-right: 2px;
}

body.cfd-category-hub .breadcrumbs {
  margin-bottom: 8px;
}

body.cfd-category-hub .category-hub-filters {
  padding-top: 24px;
  padding-bottom: 24px;
}

.cfd-category-hub__listing-head {
  padding: 20px var(--cfd-gutter, 24px) 8px;
  background: var(--cfd-k-cream, #f9f8f4);
  border-top: 1px solid var(--cfd-border, #d8d2c5);
}

.cfd-category-hub__listing-head .cfd-section-head {
  margin: 0;
}

.archive-header__eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cfd-burgundy, #a8322d);
  margin: 0 0 6px;
}

.archive-header__count {
  margin: 12px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cfd-muted, #6b6558);
}

.archive-header__search {
  margin-top: 20px;
  max-width: 520px;
}

.cfd-grid--articles {
  display: grid;
  border-top: 1px solid var(--cfd-border, #d8d2c5);
}

.cfd-grid--articles.articles-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cfd-pagination.navigation.pagination,
.navigation.pagination.cfd-pagination {
  padding: 32px var(--cfd-gutter, 24px);
  border-top: 1px solid var(--cfd-border, #d8d2c5);
  text-align: center;
  background: var(--cfd-k-cream, #f9f8f4);
}

.cfd-pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cfd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--cfd-border, #d8d2c5);
  font-family: var(--cfd-sans);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
}

.cfd-pagination .page-numbers.current {
  background: var(--cfd-burgundy, #a8322d);
  border-color: var(--cfd-burgundy, #a8322d);
  color: #fff;
}

/* Listing width: match singular ticket measure inside Kadence wrappers */
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override #inner-wrap,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override #inner-wrap .site,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .content-bg,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .content-container,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .content-container.site-container,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .site-container,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .entry-content-wrap {
  max-width: none !important;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override #primary.content-area,
body.cfd-kadence-child.cfd-listing.cfd-kadence-width-override .cfd-archive {
  max-width: none;
  width: 100%;
}

@media (max-width: 768px) {
  .cfd-grid--articles.articles-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cfd-archive__grid,
  .cfd-category-hub__grid {
    padding: 24px var(--cfd-gutter, 24px);
  }
}
