/* ============================================================
   C4 Winners — public roll of honour
   Dark theme, matched to the site + the homepage "Our Winners"
   section (#0d0f15 cards, #005bff / #5b9dff blue, skewed Anton).
   Scoped to .c4win / body.c4-winners-page so nothing leaks.
   ============================================================ */

/* ── Neutralise Astra's white "separate container" box on this page ──
   The site body is already dark (#0a0a0a); we just remove the white
   card + the theme's redundant <h1> page title so our dark section
   sits directly on the dark page. */
body.c4-winners-page .ast-article-single,
body.c4-winners-page .entry-content,
body.c4-winners-page .ast-separate-container .ast-article-single {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
}
body.c4-winners-page .entry-title,
body.c4-winners-page .ast-single-post-title-wrapper {
	display: none !important;
}
/* Give the roll of honour a bit more room than the default content width. */
body.c4-winners-page .ast-container {
	max-width: 1200px !important;
}

.c4win {
	--c4w-blue: #005bff;
	--c4w-blue-lt: #5b9dff;
	--c4w-card: #0d0f15;
	--c4w-card-2: #090b10;
	--c4w-line: rgba(255, 255, 255, 0.08);
	--c4w-line-faint: rgba(255, 255, 255, 0.06);
	--c4w-txt: #ffffff;
	--c4w-muted: rgba(255, 255, 255, 0.5);
	--c4w-muted-2: rgba(255, 255, 255, 0.38);

	background: transparent;
	color: var(--c4w-txt);
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	padding: 56px 20px 72px;
	-webkit-font-smoothing: antialiased;
}

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

.c4win__inner {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
}

/* ── Header (left-aligned, like the homepage section) ────── */
.c4win__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 40px;
}

.c4win__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c4w-blue);
}
.c4win__eyebrow::before {
	content: "";
	display: block;
	width: 28px;
	height: 2px;
	background: var(--c4w-blue);
	border-radius: 2px;
	flex-shrink: 0;
}

.c4win__title {
	font-family: 'Anton', Impact, sans-serif;
	font-weight: 400;
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--c4w-txt);
	transform: skewX(-8deg);
	transform-origin: left center;
	display: inline-block;
	margin: 0;
}

.c4win__sub {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--c4w-muted);
	max-width: 520px;
	margin: 4px 0 0;
}

/* ── Empty state ────────────────────────────────────────── */
.c4win__empty {
	background: var(--c4w-card);
	border: 1px solid var(--c4w-line);
	border-radius: 12px;
	padding: 48px 24px;
	color: var(--c4w-muted);
	font-size: 16px;
	text-align: center;
}

/* ── Table shell ────────────────────────────────────────── */
.c4win__table-wrap {
	background: var(--c4w-card);
	border: 1px solid var(--c4w-line);
	border-radius: 12px;
	overflow: hidden;
}

.c4win__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.c4win__table thead th {
	background: var(--c4w-card-2);
	color: var(--c4w-muted-2);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: left;
	padding: 14px 22px;
	white-space: nowrap;
	border-bottom: 1px solid var(--c4w-line);
}

.c4win__table tbody td {
	padding: 16px 22px;
	border-top: 1px solid var(--c4w-line-faint);
	vertical-align: middle;
}

.c4win__row:hover td {
	background: rgba(0, 91, 255, 0.06);
}

/* ── Cells ──────────────────────────────────────────────── */
.c4win__date {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.c4win__prize-cell {
	display: flex;
	align-items: center;
	gap: 14px;
}

.c4win__thumb {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-color: var(--c4w-card-2);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.c4win__prize-text {
	font-weight: 700;
	line-height: 1.35;
	color: var(--c4w-blue-lt);
}

.c4win__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9.5px;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c4w-blue-lt);
	background: rgba(0, 91, 255, 0.2);
	border: 1px solid rgba(0, 91, 255, 0.4);
	padding: 4px 9px;
	border-radius: 6px;
	margin-right: 12px;
	vertical-align: middle;
}
.c4win__badge svg { width: 11px; height: 11px; flex-shrink: 0; }

.c4win__name {
	font-family: 'Anton', Impact, sans-serif;
	font-weight: 400;
	font-size: 20px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--c4w-txt);
	transform: skewX(-6deg);
	transform-origin: left center;
	display: inline-block;
	vertical-align: middle;
}

.c4win__ticket {
	display: inline-block;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	color: var(--c4w-blue-lt);
	background: rgba(0, 91, 255, 0.12);
	border: 1px solid rgba(0, 91, 255, 0.35);
	padding: 5px 13px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ── Mobile: table → stacked cards ──────────────────────── */
@media (max-width: 640px) {
	.c4win { padding: 40px 16px 56px; }
	.c4win__head { margin-bottom: 28px; }

	.c4win__table-wrap {
		border: none;
		background: transparent;
		overflow: visible;
	}
	.c4win__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}
	.c4win__table,
	.c4win__table tbody,
	.c4win__row,
	.c4win__table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	.c4win__row {
		background: var(--c4w-card);
		border: 1px solid var(--c4w-line);
		border-radius: 12px;
		margin-bottom: 14px;
		padding: 8px 6px;
	}
	.c4win__row:hover td { background: transparent; }
	.c4win__table td {
		border-top: none;
		padding: 8px 16px;
		min-width: 0;
	}
	.c4win__table td::before {
		content: attr(data-label);
		display: block;
		font-size: 9.5px;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--c4w-muted-2);
		margin-bottom: 5px;
	}
	.c4win__col-prize {
		border-top: 1px solid var(--c4w-line-faint);
		margin-top: 6px;
		padding-top: 14px;
	}
	.c4win__date { white-space: normal; }
	.c4win__prize-cell { justify-content: flex-start; }
	.c4win__prize-text { overflow-wrap: anywhere; }
}

/* ── Beat the theme's heading rules ──────────────────────────
   Astra styles headings via ".entry-content h2" (specificity 0,1,1),
   which overrides our lone-class ".c4win__title" — the title was
   rendering black in the theme's Rubik font. Scope under the page
   body class + !important so Anton + white always win. */
body.c4-winners-page .c4win .c4win__title,
body.c4-winners-page .c4win .c4win__name {
	font-family: 'Anton', Impact, sans-serif !important;
	color: var(--c4w-txt) !important;
	font-weight: 400 !important;
}
body.c4-winners-page .c4win .c4win__title {
	font-size: clamp(36px, 5vw, 58px) !important;
	line-height: 1 !important;
	text-transform: uppercase !important;
}
body.c4-winners-page .c4win .c4win__prize-text { color: var(--c4w-blue-lt) !important; }
body.c4-winners-page .c4win .c4win__sub       { color: var(--c4w-muted) !important; }
body.c4-winners-page .c4win .c4win__eyebrow   { color: var(--c4w-blue) !important; }
