/* Generic channel archive pages */

.tax-channel .site-main,
.tax-content_tag .site-main {
	padding-block: 0;
}

.channel-page {
	background: #fff;
}

.ch-shell {
	width: calc(100% - 2 * clamp(16px, 4vw, 48px));
	max-width: 1200px;
	margin-inline: auto;
}

.ch-hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid #e2e8f0;
	background:
		radial-gradient(circle at 86% 12%, rgba(230, 57, 70, 0.13), transparent 32%),
		linear-gradient(135deg, #f8fafc 0%, #fff1f2 58%, #ffffff 100%);
}

.ch-hero::after {
	content: "";
	position: absolute;
	top: -170px;
	right: -80px;
	width: 390px;
	height: 390px;
	border: 1px solid rgba(230, 57, 70, 0.14);
	border-radius: 50%;
	pointer-events: none;
}

.ch-hero .ch-shell {
	position: relative;
	z-index: 1;
	padding-block: clamp(24px, 4vw, 42px) clamp(36px, 6vw, 62px);
}

.ch-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: clamp(24px, 4vw, 40px);
	color: #94a3b8;
	font-size: 12px;
}

.ch-breadcrumb a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ch-breadcrumb a:hover,
.ch-breadcrumb a:focus-visible {
	color: #e63946;
	outline: none;
}

.ch-breadcrumb span {
	color: #475569;
	font-weight: 600;
}

.ch-breadcrumb .fa-chevron-right {
	font-size: 9px;
}

.ch-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(24px, 5vw, 72px);
}

.ch-hero__eyebrow {
	margin: 0 0 12px;
	color: #e63946;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ch-hero__title {
	margin: 0;
	color: #1e293b;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.02em;
}

.ch-hero__desc {
	max-width: 720px;
	margin: 14px 0 0;
	color: #64748b;
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.75;
}

.ch-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-top: 22px;
	color: #64748b;
	font-size: 12px;
}

.ch-hero__meta span,
.ch-hero__meta a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ch-hero__meta i {
	color: #94a3b8;
	font-size: 11px;
}

.ch-hero__meta a {
	color: #e63946;
	font-weight: 600;
	text-decoration: none;
}

.ch-hero__meta a:hover,
.ch-hero__meta a:focus-visible {
	color: #c92f3b;
	outline: none;
}

.ch-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	margin-top: 24px;
	padding: 0 18px;
	border-radius: 10px;
	background: #e63946;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 12px 24px -16px rgba(230, 57, 70, 0.7);
	transition: background 0.2s ease, transform 0.2s ease;
}

.ch-hero__cta:hover,
.ch-hero__cta:focus-visible {
	background: #c92f3b;
	outline: none;
	transform: translateY(-1px);
}

.ch-hero__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(120px, 15vw, 174px);
	aspect-ratio: 1;
	border: 1px solid rgba(230, 57, 70, 0.16);
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.66);
	color: #e63946;
	font-size: clamp(40px, 5vw, 62px);
	box-shadow: 0 28px 60px -38px rgba(230, 57, 70, 0.55);
	transform: rotate(-5deg);
	backdrop-filter: blur(4px);
}

.ch-body {
	padding-block: clamp(36px, 5vw, 56px) clamp(56px, 8vw, 96px);
}

.ch-section + .ch-section {
	margin-top: clamp(40px, 6vw, 64px);
}

.ch-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

.ch-section__eyebrow {
	margin: 0 0 4px;
	color: #e63946;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ch-section__head h2 {
	margin: 0;
	color: #1e293b;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	line-height: 1.3;
}

.ch-children {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(14px, 2vw, 20px);
	margin-top: 24px;
}

.ch-child {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ch-child:hover,
.ch-child:focus-visible {
	border-color: #fecaca;
	outline: none;
	box-shadow: 0 22px 45px -32px rgba(15, 23, 42, 0.45);
	transform: translateY(-3px);
}

.ch-child__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #fef2f2;
	color: #e63946;
	font-size: 17px;
}

.ch-child__body {
	display: block;
	margin-top: 16px;
}

.ch-child__title {
	display: block;
	color: #1e293b;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.ch-child__desc {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 7px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ch-child__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px dashed #f1f5f9;
	color: #94a3b8;
	font-size: 11px;
}

.ch-child__foot i {
	color: #e63946;
	font-size: 10px;
	transition: transform 0.2s ease;
}

.ch-child:hover .ch-child__foot i,
.ch-child:focus-visible .ch-child__foot i {
	transform: translateX(3px);
}

.ch-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ch-filter__item {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ch-filter__item:hover,
.ch-filter__item:focus-visible {
	border-color: #fecaca;
	background: #fef2f2;
	color: #e63946;
	outline: none;
	transform: translateY(-1px);
}

.ch-filter__item.is-active {
	border-color: #e63946;
	background: #e63946;
	color: #fff;
	box-shadow: 0 8px 18px -12px rgba(230, 57, 70, 0.75);
}

.ch-filter__summary {
	margin: 14px 0 0;
	color: #64748b;
	font-size: 12px;
}

.ch-filter__summary a {
	margin-left: 8px;
	color: #e63946;
	font-weight: 600;
	text-decoration: none;
}

.ch-filter__summary a:hover,
.ch-filter__summary a:focus-visible {
	color: #c92f3b;
	outline: none;
}

.ch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: clamp(18px, 2.6vw, 28px);
	margin-top: clamp(24px, 3.5vw, 36px);
}

.ch-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ch-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 22px 45px -28px rgba(15, 23, 42, 0.42);
	transform: translateY(-3px);
}

.ch-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}

.ch-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ch-card:hover .ch-card__media img {
	transform: scale(1.035);
}

.ch-card__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 78% 24%, rgba(230, 57, 70, 0.16), transparent 35%),
		linear-gradient(135deg, #fef2f2, #f8fafc 58%, #fef3c7);
}

.ch-card__placeholder-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid rgba(230, 57, 70, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.78);
	color: #e63946;
	font-size: 24px;
	box-shadow: 0 12px 30px -18px rgba(230, 57, 70, 0.5);
}

.ch-card__type {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: #e63946;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
	backdrop-filter: blur(4px);
}

.ch-card__type i {
	font-size: 10px;
}

.ch-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.ch-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	color: #94a3b8;
	font-size: 11px;
}

.ch-card__meta span {
	position: relative;
	padding-left: 13px;
}

.ch-card__meta span::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #cbd5e1;
	transform: translateY(-50%);
}

.ch-card__title {
	margin: 10px 0 0;
	font-size: 18px;
	line-height: 1.42;
}

.ch-card__title a {
	display: -webkit-box;
	overflow: hidden;
	color: #1e293b;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: color 0.2s ease;
}

.ch-card__title a:hover,
.ch-card__title a:focus-visible {
	color: #e63946;
	outline: none;
}

.ch-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 10px 0 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ch-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px dashed #f1f5f9;
	color: #94a3b8;
	font-size: 11px;
}

.ch-card__source,
.ch-card__city {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 46%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ch-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	color: #e63946;
	font-weight: 600;
	white-space: nowrap;
}

.ch-card__more i {
	font-size: 10px;
	transition: transform 0.2s ease;
}

.ch-card:hover .ch-card__more i {
	transform: translateX(3px);
}

.ch-pagination {
	display: flex;
	justify-content: center;
	margin-top: clamp(30px, 4vw, 46px);
}

.ch-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ch-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ch-pagination .page-numbers:hover,
.ch-pagination .page-numbers:focus-visible {
	border-color: #fecaca;
	background: #fef2f2;
	color: #e63946;
	outline: none;
}

.ch-pagination .page-numbers.current {
	border-color: #e63946;
	background: #e63946;
	color: #fff;
}

.ch-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.ch-empty {
	max-width: 760px;
	margin: clamp(30px, 4vw, 44px) auto 0;
	padding: clamp(34px, 5vw, 56px) clamp(20px, 5vw, 48px);
	border: 1px dashed #cbd5e1;
	border-radius: 20px;
	background:
		radial-gradient(circle at 50% 0%, rgba(230, 57, 70, 0.06), transparent 42%),
		#fff;
	text-align: center;
}

.ch-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 20px;
	background: #fef2f2;
	color: #e63946;
	font-size: 23px;
}

.ch-empty h3 {
	margin: 18px 0 8px;
	color: #1e293b;
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	line-height: 1.35;
}

.ch-empty p {
	max-width: 560px;
	margin: 0 auto;
	color: #64748b;
	font-size: 14px;
	line-height: 1.75;
}

.ch-empty__action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 20px;
	padding: 9px 16px;
	border: 1px solid #fecaca;
	border-radius: 999px;
	background: #fef2f2;
	color: #e63946;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.ch-empty__action:hover,
.ch-empty__action:focus-visible {
	border-color: #e63946;
	background: #ffe4e6;
	outline: none;
}

@media (max-width: 767px) {
	.ch-hero__inner {
		grid-template-columns: 1fr;
	}

	.ch-hero__mark {
		display: none;
	}

	.ch-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}

	.ch-children {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.ch-section__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.ch-card__source,
	.ch-card__city {
		max-width: 100%;
	}

	.ch-card__more {
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ch-child,
	.ch-child__foot i,
	.ch-card,
	.ch-card__media img,
	.ch-card__more i,
	.ch-filter__item,
	.ch-hero__cta {
		transition: none;
	}

	.ch-child:hover,
	.ch-child:focus-visible,
	.ch-card:hover,
	.ch-filter__item:hover,
	.ch-filter__item:focus-visible,
	.ch-hero__cta:hover,
	.ch-hero__cta:focus-visible {
		transform: none;
	}

	.ch-card:hover .ch-card__media img,
	.ch-card:hover .ch-card__more i,
	.ch-child:hover .ch-child__foot i,
	.ch-child:focus-visible .ch-child__foot i {
		transform: none;
	}
}
