.sermon-archive {
	padding-bottom: 2rem;
}

.archive-hero {
	padding: 2.125rem 0 0.625rem;
}

.archive-hero__eyebrow {
	margin: 0 0 0.375rem;
	color: var(--hkf-gold);
	font-size: 0.75rem;
	font-weight: 700;
}

.archive-hero__title {
	margin: 0 0 0.5rem;
	color: var(--hkf-green-deep);
	font-size: clamp(1.5rem, 3vw, 1.625rem);
	font-weight: 800;
	line-height: 1.5;
}

.archive-hero__description {
	margin: 0;
	max-width: 37.5rem;
	color: #5a5142;
	font-size: 0.875rem;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.archive-filters {
	padding: 1.25rem 0 0;
}

.archive-filters .hkf-container {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.archive-filters__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.archive-filters__search-wrap {
	flex: 1 1 14rem;
	min-width: 12rem;
	max-width: 25rem;
}

.archive-filters__search,
.archive-filters__select {
	width: 100%;
	padding: 0.625rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 11px;
	background: var(--hkf-white);
	color: var(--hkf-ink);
	font: inherit;
	font-size: 0.85rem;
}

.archive-filters__search::placeholder {
	color: #8a8473;
}

.archive-filters__field {
	flex: 0 1 11rem;
	min-width: 9rem;
}

.archive-filters__submit {
	padding: 0.625rem 1.125rem;
	border: 0;
	border-radius: 11px;
	background: var(--hkf-green-deep);
	color: var(--hkf-white);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.archive-filters__submit:hover,
.archive-filters__submit:focus {
	filter: brightness(0.95);
}

.archive-filters__sort {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.archive-filters__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.4375rem 0.875rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 20px;
	background: var(--hkf-white);
	color: #46523f;
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.archive-filters__pill:hover,
.archive-filters__pill:focus {
	border-color: rgba(14, 59, 36, 0.2);
	color: var(--hkf-green-deep);
}

.archive-filters__pill.is-active {
	background: var(--hkf-gold);
	border-color: var(--hkf-gold);
	color: var(--hkf-green-deep);
}

.archive-results {
	padding: 1.5rem 0 0;
}

.archive-results__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	align-items: stretch;
}

.sermon-archive-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: var(--hkf-white);
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sermon-archive-card:hover {
	box-shadow: 0 10px 26px rgba(14, 59, 36, 0.1);
	transform: translateY(-2px);
}

.sermon-archive-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--hkf-green-mid), var(--hkf-green-deep));
	overflow: hidden;
}

.sermon-archive-card__media-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.sermon-archive-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sermon-archive-card__play {
	position: relative;
	z-index: 1;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--hkf-green-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sermon-archive-card__duration {
	position: absolute;
	inset-inline-start: 0.5rem;
	inset-block-end: 0.5rem;
	z-index: 1;
	padding: 0.125rem 0.4375rem;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.6);
	color: var(--hkf-white);
	font-size: 0.66rem;
	font-weight: 700;
	line-height: 1.4;
}

.sermon-archive-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0.8125rem 0.875rem;
	min-width: 0;
}

.sermon-archive-card__term {
	display: block;
	margin-bottom: 0.3125rem;
	color: var(--hkf-gold);
	font-size: 0.66rem;
	font-weight: 800;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.sermon-archive-card__title {
	margin: 0 0 0.375rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5;
}

.sermon-archive-card__title-link {
	color: var(--hkf-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.sermon-archive-card__title-link:hover,
.sermon-archive-card__title-link:focus {
	color: var(--hkf-green-deep);
}

.sermon-archive-card__meta {
	margin: auto 0 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.375rem;
	color: #8a8473;
	font-size: 0.72rem;
	line-height: 1.5;
}

.sermon-archive-card__speaker,
.sermon-archive-card__date {
	overflow-wrap: anywhere;
}

.archive-results__empty {
	margin: 0;
	padding: 1.5rem 0;
	color: #5a5142;
	text-align: center;
}

.archive-results__pagination {
	margin-top: 1.625rem;
}

.archive-results__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.archive-results__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.5rem 0.75rem;
	border: 1.5px solid var(--hkf-green-deep);
	border-radius: 9px;
	background: var(--hkf-white);
	color: var(--hkf-green-deep);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
}

.archive-results__pagination .page-numbers.current,
.archive-results__pagination .page-numbers:hover,
.archive-results__pagination .page-numbers:focus {
	background: var(--hkf-green-deep);
	color: var(--hkf-white);
}

@media (max-width: 980px) {
	.archive-results__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.archive-results__grid {
		grid-template-columns: 1fr;
	}

	.archive-filters__form {
		flex-direction: column;
		align-items: stretch;
	}

	.archive-filters__search-wrap,
	.archive-filters__field {
		max-width: none;
		width: 100%;
	}

	.archive-filters__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.archive-filters__pill,
	.sermon-archive-card {
		transition: none;
	}

	.sermon-archive-card:hover {
		transform: none;
	}
}
