/* ==========================================================================
   Club Clean Team Feed
   Scoped entirely under .cctf so nothing here can affect the rest of the site.
   --cctf-accent is injected from the plugin settings screen.
   ========================================================================== */

.cctf {
	--cctf-accent: #1f7a8c;
	--cctf-accent-dark: #16606e;
	--cctf-ink: #16191d;
	--cctf-ink-soft: #5b6470;
	--cctf-line: #e3e7eb;
	--cctf-surface: #ffffff;
	--cctf-surface-alt: #f6f8f9;
	--cctf-radius: 14px;
	--cctf-gap: 28px;

	box-sizing: border-box;
	max-width: 1160px;
	margin: 0 auto;
	padding: 48px 24px 72px;
	color: var(--cctf-ink);
	font-size: 17px;
	line-height: 1.6;
}

.cctf *,
.cctf *::before,
.cctf *::after {
	box-sizing: border-box;
}

/* ---------- Hero ---------- */

.cctf-hero {
	max-width: 44em;
	margin-bottom: 36px;
}

.cctf-eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--cctf-ink-soft);
}

.cctf-eyebrow a {
	color: var(--cctf-accent-dark);
	text-decoration: none;
}

.cctf-eyebrow a:hover,
.cctf-eyebrow a:focus {
	text-decoration: underline;
}

.cctf-eyebrow span {
	margin: 0 6px;
	color: var(--cctf-line);
}

.cctf .cctf-title,
.cctf .cctf-heading,
.cctf .cctf-card__title,
.cctf .cctf-post__title,
.cctf .cctf-jobs-cta h2,
.cctf.cctf--teaser .cctf-heading {
	color: var(--cctf-ink);
}

.cctf-title {
	margin: 0 0 14px;
	font-size: clamp(2rem, 4.4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.cctf-intro {
	margin: 0;
	font-size: 1.14em;
	color: var(--cctf-ink-soft);
}

.cctf-heading {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.cctf-subtext {
	margin: 0 0 26px;
	max-width: 42em;
	color: var(--cctf-ink-soft);
}

/* ---------- Filter bar ---------- */

.cctf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--cctf-line);
}

.cctf-filter {
	display: inline-block;
	padding: 7px 15px;
	border: 1px solid var(--cctf-line);
	border-radius: 999px;
	background: var(--cctf-surface);
	color: var(--cctf-ink-soft);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cctf-filter:hover,
.cctf-filter:focus-visible {
	border-color: var(--cctf-accent-dark);
	color: var(--cctf-accent-dark);
	text-decoration: none;
}

.cctf-filter.is-active {
	background: var(--cctf-accent-dark);
	border-color: var(--cctf-accent-dark);
	color: #fff;
}

/* ---------- Grid ---------- */

.cctf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--cctf-gap);
}

.cctf--cols-1 .cctf-grid { grid-template-columns: minmax(0, 1fr); }
.cctf--cols-2 .cctf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cctf--cols-4 .cctf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.cctf-grid,
	.cctf--cols-3 .cctf-grid,
	.cctf--cols-4 .cctf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.cctf {
		padding: 32px 18px 52px;
		--cctf-gap: 22px;
	}
	.cctf-grid,
	.cctf--cols-2 .cctf-grid,
	.cctf--cols-3 .cctf-grid,
	.cctf--cols-4 .cctf-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Card ---------- */

.cctf-card {
	background: var(--cctf-surface);
	border: 1px solid var(--cctf-line);
	border-radius: var(--cctf-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cctf-card:hover,
.cctf-card:focus-within {
	transform: translateY(-3px);
	border-color: #cfd6dd;
	box-shadow: 0 12px 28px rgba(16, 24, 32, 0.09);
}

.cctf-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cctf-card__link:focus-visible {
	outline: 3px solid var(--cctf-accent);
	outline-offset: -3px;
}

.cctf-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	background: var(--cctf-surface-alt);
	overflow: hidden;
}

.cctf-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.cctf-card:hover .cctf-card__img {
	transform: scale(1.035);
}

.cctf-card__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--cctf-surface-alt), #e9eef1);
	color: #a6b1bb;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cctf-card__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--cctf-accent-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	backdrop-filter: blur(4px);
}

.cctf-card__body {
	flex: 1 1 auto;
	padding: 20px 22px 24px;
}

.cctf-card__date {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--cctf-ink-soft);
}

.cctf-card__title {
	margin: 0 0 8px;
	font-size: 1.16em;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.cctf-card:hover .cctf-card__title {
	color: var(--cctf-accent-dark);
}

.cctf-card__person {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cctf-accent-dark);
}

.cctf-card__excerpt {
	margin: 0;
	font-size: 15px;
	color: var(--cctf-ink-soft);
}

/* ---------- Teaser variant (Jobs page) ---------- */

.cctf--teaser {
	padding-top: 56px;
	padding-bottom: 56px;
}

.cctf-cta {
	margin: 34px 0 0;
	text-align: center;
}

.cctf-btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 999px;
	background: var(--cctf-accent-dark);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.cctf-btn:hover,
.cctf-btn:focus-visible {
	background: color-mix(in srgb, var(--cctf-accent-dark) 84%, #000);
	color: #fff !important;
	transform: translateY(-1px);
	text-decoration: none;
}

/* ---------- Single post ---------- */

.cctf--single {
	max-width: 1160px;
}

.cctf-post {
	max-width: 46em;
	margin: 0 auto;
}

.cctf-post__header {
	margin-bottom: 28px;
}

.cctf-post__tags {
	margin: 0 0 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cctf-tag {
	display: inline-block;
	padding: 5px 13px;
	border-radius: 999px;
	background: var(--cctf-surface-alt);
	color: var(--cctf-accent-dark);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.cctf-tag:hover,
.cctf-tag:focus-visible {
	background: var(--cctf-accent-dark);
	color: #fff;
}

.cctf-post__title {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 4vw, 2.7rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.cctf-post__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	color: var(--cctf-ink-soft);
}

.cctf-post__person {
	font-weight: 700;
	color: var(--cctf-accent-dark);
}

.cctf-post__media {
	margin: 0 0 30px;
	border-radius: var(--cctf-radius);
	overflow: hidden;
}

.cctf-post__img {
	display: block;
	width: 100%;
	height: auto;
}

.cctf-post__body {
	font-size: 1.06em;
}

.cctf-post__body p {
	margin: 0 0 1.15em;
}

.cctf-post__body img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.cctf-post__body a {
	color: var(--cctf-accent-dark);
}

.cctf-more {
	padding-top: 56px;
	padding-left: 0;
	padding-right: 0;
	margin-top: 20px;
	border-top: 1px solid var(--cctf-line);
}

/* ---------- Pagination, empty state, CTA ---------- */

.cctf-pagination {
	margin-top: 44px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.cctf-pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 9px 13px;
	border: 1px solid var(--cctf-line);
	border-radius: 9px;
	color: var(--cctf-ink-soft);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.cctf-pagination .page-numbers:hover,
.cctf-pagination .page-numbers:focus-visible {
	border-color: var(--cctf-accent-dark);
	color: var(--cctf-accent-dark);
}

.cctf-pagination .page-numbers.current {
	background: var(--cctf-accent-dark);
	border-color: var(--cctf-accent-dark);
	color: #fff;
}

.cctf-empty {
	padding: 44px 0;
	color: var(--cctf-ink-soft);
	font-size: 1.05em;
	text-align: center;
}

.cctf-jobs-cta {
	margin-top: 64px;
	padding: 44px 28px;
	border-radius: var(--cctf-radius);
	background: var(--cctf-surface-alt);
	text-align: center;
}

.cctf-jobs-cta h2 {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.2;
}

.cctf-jobs-cta p {
	margin: 0 0 18px;
	color: var(--cctf-ink-soft);
}

.cctf-jobs-cta p:last-child {
	margin-bottom: 0;
}

/* ---------- Motion / contrast preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.cctf * {
		transition: none !important;
		transform: none !important;
	}
}
