/* ==========================================================
   Category archives
   ========================================================== */

/*
 * OceanWP normally constrains #content-wrap to its container width and
 * reserves space for #primary. The category.php template renders its own
 * full-bleed hero and centered .gym-container content, just like our
 * single-post and search templates. Clear the outer theme shell first.
 */
body.category #main #content-wrap {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.category #main #primary {
	float: none;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
}

body.category #main #content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.gym-category-page {
	background: var(--gym-bg);
}

.gym-category-page a,
.gym-category-page a * {
	text-decoration: none;
}

.gym-category-hero {
	position: relative;
	overflow: hidden;
	background: var(--gym-hero-background);
	color: var(--gym-surface);
}

.gym-category-hero::after {
	content: "";
	position: absolute;
	right: -92px;
	top: -180px;
	width: 520px;
	height: 520px;
	border: 1px solid color-mix(in srgb, var(--gym-surface) 10%, transparent);
	border-radius: 50%;
	box-shadow: 0 0 0 90px color-mix(in srgb, var(--gym-surface) 2.5%, transparent), 0 0 0 180px color-mix(in srgb, var(--gym-surface) 1.8%, transparent);
	pointer-events: none;
}

.gym-category-hero__inner {
	position: relative;
	z-index: 1;
	padding: 58px 0 72px;
}

.gym-category-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 34px;
	color: color-mix(in srgb, var(--gym-surface) 72%, transparent);
	font-size: 13px;
	font-weight: 850;
	transition: color 160ms ease, transform 160ms ease;
}

.gym-category-back:hover,
.gym-category-back:focus-visible {
	color: var(--gym-surface);
	transform: translateX(-2px);
}

.gym-category-eyebrow {
	display: inline-block;
	margin-bottom: 13px;
	color: var(--gym-accent);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.gym-category-eyebrow--dark {
	color: var(--gym-primary);
}

.gym-category-hero__title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	max-width: 1050px;
}

.gym-category-hero h1 {
	max-width: 830px;
	margin: 0;
	color: var(--gym-surface);
	font-size: clamp(42px, 5.6vw, 68px);
	line-height: 1;
	letter-spacing: -.04em;
}

.gym-category-count {
	flex: 0 0 auto;
	margin-bottom: 7px;
	padding: 8px 12px;
	border: 1px solid color-mix(in srgb, var(--gym-surface) 14%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--gym-surface) 7%, transparent);
	color: color-mix(in srgb, var(--gym-surface) 78%, transparent);
	font-size: 12px;
	font-weight: 850;
}

.gym-category-description {
	max-width: 780px;
	margin-top: 22px;
	color: color-mix(in srgb, var(--gym-surface) 80%, transparent);
	font-size: 17px;
	line-height: 1.65;
}

.gym-category-description p {
	margin: 0;
}

.gym-category-content {
	padding-top: 68px;
	padding-bottom: 80px;
}

.gym-category-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 42px;
}

.gym-category-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 13px;
	border: 1px solid var(--gym-border);
	border-radius: 9px;
	background: var(--gym-surface);
	color: var(--gym-deep);
	font-weight: 800;
}

.gym-category-pagination .page-numbers:hover,
.gym-category-pagination .page-numbers.current {
	border-color: var(--gym-deep);
	background: var(--gym-deep);
	color: var(--gym-surface);
}

.gym-category-empty {
	padding: 52px 36px;
	border: 1px dashed var(--gym-border);
	border-radius: 18px;
	background: color-mix(in srgb, var(--gym-surface) 58%, transparent);
	text-align: center;
}

.gym-category-empty h2 {
	margin: 0 0 10px;
	color: var(--gym-deep);
	font-size: 32px;
}

.gym-category-empty p {
	margin: 0;
	color: var(--gym-muted);
}

@media (max-width: 980px) {

	.gym-category-hero__title-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

	.gym-category-count {
		margin-bottom: 0;
	}
}

@media (max-width: 680px) {
	.gym-category-hero__inner {
		padding: 44px 0 56px;
	}

	.gym-category-back {
		margin-bottom: 26px;
	}

	.gym-category-hero h1 {
		font-size: clamp(38px, 12vw, 52px);
	}

	.gym-category-description {
		font-size: 16px;
	}

	.gym-category-content {
		padding-top: 48px;
		padding-bottom: 60px;
	}

	.gym-category-pagination {
		margin-top: 36px;
	}
}
