/**
 * Public celebrity archive page styles (plugin-owned).
 *
 * Scoped under .tvc-celebrity-archive — no theme overrides.
 */

.tvc-celebrity-archive {
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: hidden;
	padding: 1rem 1.25rem 2.5rem;
}

.tvc-celebrity-archive *,
.tvc-celebrity-archive *::before,
.tvc-celebrity-archive *::after {
	box-sizing: inherit;
}

/* Breadcrumbs */

.tvc-celebrity-breadcrumbs {
	margin-bottom: 1.25rem;
}

.tvc-celebrity-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.4;
}

.tvc-celebrity-breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-left: 0.5rem;
	color: currentColor;
	opacity: 0.45;
}

.tvc-celebrity-breadcrumbs__link {
	text-decoration: none;
}

.tvc-celebrity-breadcrumbs__link:hover,
.tvc-celebrity-breadcrumbs__link:focus {
	text-decoration: underline;
}

/* Header & intro */

.tvc-celebrity-archive__header {
	margin-bottom: 0.75rem;
}

.tvc-celebrity-archive__title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.2;
	word-wrap: break-word;
}

.tvc-celebrity-archive__intro {
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.55;
	opacity: 0.85;
	max-width: 42rem;
}

/* Search */

.tvc-celebrity-archive__search {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem;
	margin-bottom: 1.75rem;
	width: 100%;
	max-width: 100%;
}

.tvc-celebrity-archive__search-label {
	flex: 1 1 100%;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.tvc-celebrity-archive__search-input {
	flex: 1 1 100%;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	padding: 0.625rem 0.75rem;
	font-size: 1rem;
	line-height: 1.4;
	border: 1px solid currentColor;
	border-radius: 4px;
	opacity: 0.9;
}

.tvc-celebrity-archive__search-input:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	opacity: 1;
}

.tvc-celebrity-archive__search-submit {
	flex: 1 1 100%;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem;
	font-size: 1rem;
	line-height: 1.4;
	border: 1px solid currentColor;
	border-radius: 4px;
	cursor: pointer;
}

.tvc-celebrity-archive__search-reset {
	flex: 1 1 100%;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
}

.tvc-celebrity-archive__search-reset-link {
	text-decoration: none;
}

.tvc-celebrity-archive__search-reset-link:hover,
.tvc-celebrity-archive__search-reset-link:focus {
	text-decoration: underline;
}

/* Card grid */

.tvc-celebrity-archive__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.tvc-celebrity-archive__item {
	min-width: 0;
}

.tvc-celebrity-archive__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	border: 1px solid currentColor;
	border-radius: 6px;
	overflow: hidden;
	opacity: 0.92;
}

.tvc-celebrity-archive__card-thumb {
	flex-shrink: 0;
	overflow: hidden;
}

.tvc-celebrity-archive__card-thumb a {
	display: block;
	line-height: 0;
}

.tvc-celebrity-archive__card-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tvc-celebrity-archive__card-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.875rem 1rem 1rem;
}

.tvc-celebrity-archive__card-title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.35;
}

.tvc-celebrity-archive__card-link {
	text-decoration: none;
	word-wrap: break-word;
}

.tvc-celebrity-archive__card-link:hover,
.tvc-celebrity-archive__card-link:focus {
	text-decoration: underline;
}

.tvc-celebrity-archive__card-professions {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	opacity: 0.75;
}

/* Empty state */

.tvc-celebrity-archive__empty {
	margin: 0;
	padding: 1.5rem 0;
	font-size: 1rem;
	line-height: 1.5;
	opacity: 0.85;
}

/* Pagination (the_posts_pagination markup) */

.tvc-celebrity-archive__pagination {
	margin-top: 0.5rem;
}

.tvc-celebrity-archive__pagination .navigation {
	width: 100%;
	max-width: 100%;
}

.tvc-celebrity-archive__pagination .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal;
}

.tvc-celebrity-archive__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
}

.tvc-celebrity-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.375rem 0.625rem;
	font-size: 0.9375rem;
	line-height: 1.3;
	text-decoration: none;
	border: 1px solid currentColor;
	border-radius: 4px;
	opacity: 0.85;
}

.tvc-celebrity-archive__pagination a.page-numbers:hover,
.tvc-celebrity-archive__pagination a.page-numbers:focus {
	opacity: 1;
	text-decoration: underline;
}

.tvc-celebrity-archive__pagination .page-numbers.current {
	font-weight: 600;
	opacity: 1;
}

.tvc-celebrity-archive__pagination .page-numbers.dots {
	border-color: transparent;
	min-width: auto;
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

/* Tablet / desktop */

@media (min-width: 640px) {
	.tvc-celebrity-archive__search {
		flex-wrap: nowrap;
		max-width: 36rem;
	}

	.tvc-celebrity-archive__search-label {
		flex: 1 1 100%;
	}

	.tvc-celebrity-archive__search-input {
		flex: 1 1 auto;
		width: auto;
	}

	.tvc-celebrity-archive__search-submit {
		flex: 0 0 auto;
		width: auto;
	}

	.tvc-celebrity-archive__search-reset {
		flex: 0 0 100%;
	}

	.tvc-celebrity-archive__list {
		grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 960px) {
	.tvc-celebrity-archive {
		max-width: 72rem;
		margin-left: auto;
		margin-right: auto;
	}

	.tvc-celebrity-archive__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
