/* =============================================================================
   Sermon Taxonomy Archive (series / speaker / topics)
   ============================================================================= */

.cr-tax-archive {
	--cr-accent:       var(--ast-global-color-0, #1a4f7a);
	--cr-cols:         3;
	--cr-cols-mobile:  1;
	--cr-gap:          24px;
	--cr-radius:       10px;
	--cr-shadow:       0 2px 14px rgba(0, 0, 0, .07);
	--cr-shadow-hover: 0 8px 28px rgba(0, 0, 0, .12);
}

/* ── Archive header ───────────────────────────────────────────────────────── */

.cr-tax-archive-header {
	margin-bottom: 32px;
}

.cr-tax-archive-label {
	font-size:      12px;
	font-weight:    600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color:          var(--cr-accent);
	margin:         0 0 6px;
}

.cr-tax-archive-title {
	font-size:   36px;
	font-weight: 700;
	line-height: 1.2;
	margin:      0 0 10px;
}

.cr-tax-archive-desc {
	font-size:   16px;
	line-height: 1.6;
	color:       #555;
	margin:      0;
	max-width:   640px;
}

/* ── Filter bar — always expanded (no JS toggle needed) ───────────────────── */

.cr-tax-filter-bar .cr-filter-selects {
	display:   flex;
	flex-wrap: wrap;
	gap:       8px;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

.cr-pagination {
	display:         flex;
	justify-content: center;
	align-items:     center;
	flex-wrap:       wrap;
	gap:             4px;
	margin-top:      48px;
}

.cr-pagination .page-numbers {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	min-width:       40px;
	height:          40px;
	padding:         0 12px;
	border-radius:   6px;
	border:          1.5px solid #ddd;
	color:           #1d2327;
	background:      #fff;
	text-decoration: none;
	font-size:       14px;
	font-weight:     500;
	line-height:     1;
	transition:      background .15s ease, color .15s ease, border-color .15s ease;
}

.cr-pagination a.page-numbers:hover {
	background:    var(--cr-accent);
	color:         #fff;
	border-color:  var(--cr-accent);
}

.cr-pagination .page-numbers.current {
	background:   var(--cr-accent);
	color:        #fff;
	border-color: var(--cr-accent);
}

.cr-pagination .dots.page-numbers {
	border-color:   transparent;
	background:     transparent;
	pointer-events: none;
	color:          #aaa;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media ( max-width: 768px ) {

	.cr-tax-archive {
		--cr-cols: var(--cr-cols-mobile);
		--cr-gap:  20px;
	}

	.cr-tax-archive-title {
		font-size: 26px;
	}

	/* Keep filters visible and stacked on mobile (no toggle) */
	.cr-tax-filter-bar .cr-filter-selects {
		display:        flex;
		flex-direction: column;
		width:          100%;
	}

	.cr-tax-filter-bar .cr-filter-select {
		width:      100%;
		box-sizing: border-box;
	}
}
