/**
 * Category landing (2a) and, via shared classes, the Tech Journey archive
 * (2c). Hero band tint/icon is set inline per-category since the color is
 * dynamic; layout lives here.
 */

.chb-category-hero {
	padding: 56px 48px 44px;
	border-bottom: 1px solid var( --border );
	display: flex;
	align-items: center;
	gap: 36px;
}
.chb-category-hero__content {
	flex: 1;
	min-width: 0;
}
.chb-category-hero__image {
	width: 240px;
	height: 160px;
	object-fit: cover;
	border-radius: var( --radius-large );
	flex: none;
}
.chb-category-hero__title-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}
.chb-category-hero__icon {
	width: 44px;
	height: 44px;
	border-radius: 11px;
	flex: none;
}
.chb-category-hero__icon--image {
	object-fit: cover;
}
.chb-category-hero__name {
	font-family: var( --font-heading );
	font-weight: 800;
	font-size: 44px;
	letter-spacing: -0.02em;
}
.chb-category-hero__desc {
	font-size: 16.5px;
	line-height: 1.6;
	color: var( --muted );
	max-width: 560px;
	margin-bottom: 18px;
}

/* Sort pills */
.chb-sort-row {
	padding: 20px 48px 0;
	display: flex;
	gap: 10px;
	font-family: var( --font-heading );
	font-size: 13px;
	font-weight: 600;
}
.chb-sort-pill {
	padding: 7px 14px;
	border-radius: 16px;
	background: var( --surface );
	border: 1px solid var( --border );
	color: var( --muted );
}
.chb-sort-pill:hover {
	color: var( --ink );
}
.chb-sort-pill--active {
	background: var( --accent );
	color: var( --accent-ink );
	border-color: var( --accent );
}
.chb-sort-pill--active:hover {
	color: var( --accent-ink );
}

.chb-section--tight {
	padding-top: 24px;
}

/* Review cards (photo + overlapping score badge) */
.chb-review-card {
	background: var( --surface );
	border: 1px solid var( --border );
	border-radius: var( --radius-large );
	overflow: hidden;
	box-shadow: var( --shadow );
}
.chb-review-card__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
}
.chb-review-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.chb-score-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: var( --badge-ink );
	font-family: var( --font-heading );
	font-weight: 800;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
}
/* No featured image: badge moves inline above the title instead of
   overlapping a photo that doesn't exist. */
.chb-score-badge--inline {
	position: static;
	width: auto;
	height: auto;
	border-radius: var( --radius-pill );
	padding: 4px 10px;
	display: inline-flex;
	margin-bottom: 10px;
}
.chb-review-card__body {
	padding: 20px;
}
.chb-review-card__title {
	font-family: var( --font-heading );
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	margin-bottom: 8px;
}
.chb-review-card__meta {
	font-size: 13.5px;
	color: var( --muted );
}

/* ---- Tablet ---- */
@media ( max-width: 900px ) {
	.chb-category-hero {
		padding: 40px 32px 32px;
		gap: 24px;
	}
	.chb-category-hero__name {
		font-size: 34px;
	}
	.chb-category-hero__image {
		width: 180px;
		height: 130px;
	}
	.chb-sort-row {
		padding: 16px 32px 0;
	}
}

/* ---- Mobile ---- */
@media ( max-width: 600px ) {
	.chb-category-hero {
		padding: 32px 20px 28px;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.chb-category-hero__name {
		font-size: 26px;
	}
	.chb-category-hero__desc {
		font-size: 15px;
	}
	.chb-category-hero__image {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		order: -1;
	}
	.chb-sort-row {
		padding: 16px 20px 0;
		flex-wrap: wrap;
	}
}
