/**
 * Sponsorships — listing page (/sponsorships/) + single page
 * (single-wpfolks_sponsorship.php). Scoped with .wpf-sponsorship*
 * prefix so nothing else can leak in or out.
 *
 * Tier color is injected per-section via `--tier` inline style from PHP.
 *
 * @since 1.22.688
 */

/* ============================================================
 * Listing page
 * ============================================================ */

.wpf-sponsorships-page {
	background: #fff;
	color: #0b1220;
}

.wpf-sponsorships-hero {
	background: linear-gradient(180deg, #f6f8ff 0%, #fff 100%);
	padding: 72px 24px 56px;
	border-bottom: 1px solid #eef0f6;
}

.wpf-sponsorships-hero__inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.wpf-sponsorships-hero__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #2145e6;
	margin: 0 0 16px;
}

.wpf-sponsorships-hero__title {
	font-size: clamp(34px, 5vw, 48px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0b1220;
	margin: 0 0 16px;
	line-height: 1.1;
}

.wpf-sponsorships-hero__sub {
	font-size: 17px;
	line-height: 1.6;
	color: #4b5160;
	margin: 0 auto 20px;
	max-width: 620px;
}

.wpf-sponsorships-hero__count {
	display: inline-block;
	margin: 8px 0 0;
	padding: 6px 14px;
	background: #fff;
	border: 1px solid #e2e4ec;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5160;
}

.wpf-sponsorships-body {
	max-width: 1120px;
	margin: 0 auto;
	padding: 56px 24px 96px;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.wpf-sponsorship-empty {
	text-align: center;
	padding: 64px 16px;
	color: #6b7280;
	font-size: 16px;
}

/* ── Tier section ── */

.wpf-sponsorship-tier {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wpf-sponsorship-tier__header {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--tier, #2145e6);
}

.wpf-sponsorship-tier__title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--tier, #2145e6);
	margin: 0;
}

.wpf-sponsorship-tier__count {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
}

/* ── Grid ── */

.wpf-sponsorship-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

/* ── Card ── */

.wpf-sponsorship-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e4ec;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
	will-change: transform;
}

.wpf-sponsorship-card:hover,
.wpf-sponsorship-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.18);
	border-color: var(--tier, #2145e6);
	outline: none;
}

.wpf-sponsorship-card--past {
	opacity: 0.88;
}

.wpf-sponsorship-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #f3f4f8;
	overflow: hidden;
}

.wpf-sponsorship-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wpf-sponsorship-card__media-empty {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--tier, #2145e6) 0%, color-mix(in srgb, var(--tier, #2145e6) 70%, #000) 100%);
}

.wpf-sponsorship-card__pill {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(11, 18, 32, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.wpf-sponsorship-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.wpf-sponsorship-card__tier {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: var(--tier, #2145e6);
}

.wpf-sponsorship-card__title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0b1220;
	margin: 0;
	line-height: 1.3;
}

.wpf-sponsorship-card__meta {
	font-size: 13px;
	color: #6b7280;
	margin: auto 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.wpf-sponsorship-card__dot {
	color: #c3c4cf;
}

/* ============================================================
 * Bottom CTA — "Want WPFolks to sponsor your event?"
 * ============================================================ */

.wpf-sponsorships-cta {
	background: linear-gradient(135deg, #0f1c4d 0%, #2145e6 100%);
	color: #fff;
	padding: 72px 24px;
}

.wpf-sponsorships-cta__inner {
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
}

.wpf-sponsorships-cta__title {
	font-size: clamp(24px, 3.2vw, 32px);
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 14px;
	color: #fff;
	line-height: 1.2;
}

.wpf-sponsorships-cta__sub {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 28px;
}

.wpf-sponsorships-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: #2145e6;
	font-weight: 700;
	font-size: 15px;
	padding: 14px 24px;
	border-radius: 999px;
	text-decoration: none;
	transition: transform 140ms ease, box-shadow 140ms ease;
}

.wpf-sponsorships-cta__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
}

/* ============================================================
 * Single page (single-wpfolks_sponsorship.php)
 * ============================================================ */

.wpf-sponsorship-single {
	background: #fff;
	color: #0b1220;
}

.wpf-sponsorship-single__hero {
	position: relative;
	background: linear-gradient(135deg, var(--tier, #2145e6) 0%, color-mix(in srgb, var(--tier, #2145e6) 60%, #000) 100%);
	color: #fff;
	overflow: hidden;
	min-height: 280px;
	display: flex;
	align-items: flex-end;
}

.wpf-sponsorship-single__hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
	z-index: 0;
}

.wpf-sponsorship-single__hero-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 18, 32, 0.2) 0%, rgba(11, 18, 32, 0.7) 100%);
	z-index: 1;
}

.wpf-sponsorship-single__hero-inner {
	position: relative;
	z-index: 2;
	max-width: 1120px;
	width: 100%;
	margin: 0 auto;
	padding: 80px 24px 36px;
}

.wpf-sponsorship-single__tier {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	margin: 0 0 14px;
}

.wpf-sponsorship-single__title {
	font-size: clamp(30px, 4.5vw, 44px);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
	line-height: 1.1;
	color: #fff;
}

.wpf-sponsorship-single__meta {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.86);
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.wpf-sponsorship-single__past {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.wpf-sponsorship-single__grid {
	max-width: 1120px;
	margin: 0 auto;
	padding: 56px 24px 96px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 64px;
}

.wpf-sponsorship-single__body {
	min-width: 0;
}

.wpf-sponsorship-single__contribution {
	background: #f6f8ff;
	border-left: 3px solid var(--tier, #2145e6);
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	margin: 0 0 28px;
}

.wpf-sponsorship-single__contribution-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--tier, #2145e6);
	margin: 0 0 6px;
}

.wpf-sponsorship-single__contribution-text {
	font-size: 15px;
	line-height: 1.55;
	color: #1f2937;
	margin: 0;
}

.wpf-sponsorship-single__content {
	font-size: 16px;
	line-height: 1.7;
	color: #1f2937;
}

.wpf-sponsorship-single__content :is(h2, h3) {
	color: #0b1220;
	letter-spacing: -0.01em;
}

.wpf-sponsorship-single__back {
	margin: 40px 0 0;
}

.wpf-sponsorship-single__back a {
	color: #2145e6;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.wpf-sponsorship-single__back a:hover { text-decoration: underline; }

/* ── Sidebar rail ── */

.wpf-sponsorship-single__rail {
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: #f9fafc;
	border: 1px solid #eef0f6;
	border-radius: 14px;
	padding: 24px;
	align-self: start;
	position: sticky;
	top: 24px;
}

.wpf-sponsorship-single__logo {
	display: flex;
	justify-content: center;
	background: #fff;
	border: 1px solid #eef0f6;
	border-radius: 10px;
	padding: 18px;
}

.wpf-sponsorship-single__logo img {
	max-width: 100%;
	max-height: 80px;
	width: auto;
	object-fit: contain;
}

.wpf-sponsorship-single__facts {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpf-sponsorship-single__facts > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wpf-sponsorship-single__facts dt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	color: #6b7280;
	margin: 0;
}

.wpf-sponsorship-single__facts dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #0b1220;
}

.wpf-sponsorship-single__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--tier, #2145e6);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 18px;
	border-radius: 10px;
	text-decoration: none;
	transition: transform 120ms ease, opacity 120ms ease;
}

.wpf-sponsorship-single__cta:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.wpf-sponsorship-single__secondary {
	color: #2145e6;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
}

.wpf-sponsorship-single__secondary:hover { text-decoration: underline; }

@media (max-width: 880px) {
	.wpf-sponsorship-single__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.wpf-sponsorship-single__rail {
		position: static;
	}
}
