/**
 * Downloads archive / single — vape / tech product aesthetic (dark + accent).
 */

.cx-dl-page {
	--cx-dl-bg: #0a0a0b;
	--cx-dl-surface: rgba(255, 255, 255, 0.04);
	--cx-dl-border: rgba(255, 255, 255, 0.08);
	--cx-dl-text: #f2f2f2;
	--cx-dl-muted: #9a9a9a;
	--cx-dl-accent: #f05a24;
	--cx-dl-accent-hover: #ff6b35;
	--cx-dl-radius: 16px;
	background: var(--cx-dl-bg);
	color: var(--cx-dl-text);
	min-height: 60vh;
}

.cx-dl-page a {
	color: inherit;
}

.cx-dl-hero {
	position: relative;
	padding: clamp(48px, 8vw, 96px) 20px clamp(40px, 6vw, 72px);
	text-align: center;
	overflow: hidden;
	border-bottom: 1px solid var(--cx-dl-border);
}

.cx-dl-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 50% at 50% -20%, rgba(240, 90, 36, 0.22), transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 50%, rgba(240, 90, 36, 0.08), transparent 50%),
		radial-gradient(ellipse 50% 40% at 0% 80%, rgba(255, 255, 255, 0.04), transparent 45%);
	pointer-events: none;
}

.cx-dl-hero__inner {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
}

.cx-dl-hero__kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--cx-dl-accent);
	margin-bottom: 12px;
}

.cx-dl-hero__title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.cx-dl-hero__desc {
	margin: 16px 0 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--cx-dl-muted);
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.cx-dl-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}

.cx-dl-table-wrap {
	border: 1px solid var(--cx-dl-border);
	border-radius: var(--cx-dl-radius);
	overflow: hidden;
	background: var(--cx-dl-surface);
	overflow-x: auto;
}

.cx-dl-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 14px;
}

.cx-dl-table thead {
	background: rgba(255, 255, 255, 0.06);
}

.cx-dl-table th,
.cx-dl-table td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--cx-dl-border);
	vertical-align: middle;
}

.cx-dl-table th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cx-dl-muted);
	white-space: nowrap;
}

.cx-dl-table tbody tr {
	transition: background 0.2s ease;
}

.cx-dl-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.03);
}

.cx-dl-table tbody tr:last-child td {
	border-bottom: 0;
}

.cx-dl-table__name a {
	font-weight: 600;
	color: var(--cx-dl-text);
	text-decoration: none;
}

.cx-dl-table__name a:hover {
	color: var(--cx-dl-accent);
}

.cx-dl-table__type {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--cx-dl-accent);
	white-space: nowrap;
}

.cx-dl-table__size {
	color: var(--cx-dl-muted);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cx-dl-table__col-action,
.cx-dl-table__action {
	text-align: right;
	white-space: nowrap;
}

.cx-dl-table__action .cx-dl-btn {
	min-width: 108px;
}

/* Single page thumbnail (legacy card media block) */
.cx-dl-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: linear-gradient(145deg, #1a1a1c 0%, #121214 100%);
	border-radius: var(--cx-dl-radius);
	overflow: hidden;
}

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

.cx-dl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	background: var(--cx-dl-accent);
	color: #fff !important;
	transition: background 0.2s ease, transform 0.15s ease;
}

.cx-dl-btn:hover,
.cx-dl-btn:focus-visible {
	background: var(--cx-dl-accent-hover);
	color: #fff !important;
	transform: translateY(-1px);
	outline: none;
}

.cx-dl-btn--ghost {
	background: transparent;
	color: var(--cx-dl-text) !important;
	border: 1px solid var(--cx-dl-border);
}

.cx-dl-btn--ghost:hover {
	border-color: var(--cx-dl-accent);
	color: var(--cx-dl-accent) !important;
}

.cx-dl-btn--sm {
	min-height: 38px;
	padding: 0 16px;
	font-size: 13px;
	white-space: nowrap;
}

.cx-dl-empty {
	text-align: center;
	padding: 48px 20px;
	color: var(--cx-dl-muted);
	font-size: 1rem;
}

.cx-dl-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cx-dl-pagination a,
.cx-dl-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	text-decoration: none;
	background: var(--cx-dl-surface);
	border: 1px solid var(--cx-dl-border);
	color: var(--cx-dl-text);
	font-size: 14px;
	font-weight: 600;
}

.cx-dl-pagination a:hover {
	border-color: var(--cx-dl-accent);
	color: var(--cx-dl-accent);
}

.cx-dl-pagination .current {
	background: rgba(240, 90, 36, 0.2);
	border-color: rgba(240, 90, 36, 0.5);
	color: var(--cx-dl-accent);
}

/* Single */
.cx-dl-single {
	background: var(--cx-dl-bg);
	color: var(--cx-dl-text);
	min-height: 50vh;
}

.cx-dl-single__wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: clamp(40px, 6vw, 72px) 20px 80px;
}

.cx-dl-single__title {
	margin: 0 0 16px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
}

.cx-dl-single__content {
	color: var(--cx-dl-muted);
	line-height: 1.65;
	margin-bottom: 28px;
}

.cx-dl-single__content p:first-child {
	margin-top: 0;
}

.cx-dl-back {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cx-dl-muted) !important;
	text-decoration: none !important;
}

.cx-dl-back:hover {
	color: var(--cx-dl-accent) !important;
}

@media (max-width: 768px) {
	.cx-dl-table thead {
		display: none;
	}

	.cx-dl-table,
	.cx-dl-table tbody,
	.cx-dl-table tr,
	.cx-dl-table td {
		display: block;
		width: 100%;
	}

	.cx-dl-table tr {
		padding: 14px 16px;
		border-bottom: 1px solid var(--cx-dl-border);
	}

	.cx-dl-table tr:last-child {
		border-bottom: 0;
	}

	.cx-dl-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 8px 0;
		border-bottom: 0;
		text-align: right;
	}

	.cx-dl-table td::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--cx-dl-muted);
		text-align: left;
		flex-shrink: 0;
	}

	.cx-dl-table__name {
		display: block;
		padding-top: 0;
		text-align: left;
	}

	.cx-dl-table__name::before {
		display: none;
	}

	.cx-dl-table__name a {
		font-size: 1rem;
	}

	.cx-dl-table__action {
		justify-content: stretch;
		padding-bottom: 0;
	}

	.cx-dl-table__action::before {
		display: none;
	}

	.cx-dl-table__action .cx-dl-btn {
		width: 100%;
		min-width: 0;
	}
}

/* Kadence: avoid white band behind dark download UI */
body.cx-downloads-ui .site,
body.cx-downloads-ui #wrapper,
body.cx-downloads-ui .content-container.site-container {
	background: #0a0a0b !important;
}

body.cx-downloads-ui .entry-hero {
	display: none;
}

/* Pagination markup from WordPress */
.cx-dl-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.cx-dl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	text-decoration: none;
	background: var(--cx-dl-surface);
	border: 1px solid var(--cx-dl-border);
	color: var(--cx-dl-text);
	font-size: 14px;
	font-weight: 600;
}

.cx-dl-pagination a.page-numbers:hover {
	border-color: var(--cx-dl-accent);
	color: var(--cx-dl-accent);
}

.cx-dl-pagination .page-numbers.current {
	background: rgba(240, 90, 36, 0.2);
	border-color: rgba(240, 90, 36, 0.5);
	color: var(--cx-dl-accent);
}
