/* CH Downloads — layout for the [ch_downloads] shortcode. */

.ch-downloads {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 48px;
	color: #fff;
	scroll-behavior: smooth;
}

/* Sidebar */
.ch-downloads__sidebar {
	position: sticky;
	top: 96px;
	align-self: start;
}

.ch-downloads__categories {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ch-downloads__category {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ch-downloads__category a {
	display: block;
	padding: 14px 0;
	color: #cfcfcf;
	text-decoration: none;
	font-size: 15px;
	transition: color 0.15s ease;
}

.ch-downloads__category a:hover,
.ch-downloads__category.is-active a {
	color: #f8cba0;
}

.ch-downloads__search {
	margin-top: 16px;
}

.ch-downloads__search-input {
	width: 100%;
	padding: 10px 14px;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 4px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.15s ease;
}

.ch-downloads__search-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.ch-downloads__search-input:focus {
	border-color: #f8cba0;
}

/* Main content */
.ch-downloads__main {
	min-width: 0;
}

.ch-downloads__section {
	margin-bottom: 48px;
	scroll-margin-top: 96px;
}

.ch-downloads__section-title {
	margin: 0 0 20px;
	padding-bottom: 12px;
	font-size: 22px;
	font-weight: 500;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ch-downloads__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

/* Card */
.ch-downloads__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
	background: #1e1e1e;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 6px;
	transition: border-color 0.15s ease;
}

.ch-downloads__card:hover {
	border-color: rgba(248, 203, 160, 0.4);
}

.ch-downloads__card-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ch-downloads__card-subtitle {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #a8a8a8;
}

.ch-downloads__card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ch-downloads__download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #f8cba0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ch-downloads__download:hover {
	color: #fff;
}

.ch-downloads__download-icon {
	width: 14px;
	height: 14px;
}

.ch-downloads__empty {
	margin-top: 32px;
	font-size: 14px;
	color: #a8a8a8;
	text-align: center;
}

/* States driven by JS */
.ch-downloads__card[hidden],
.ch-downloads__section[hidden] {
	display: none;
}

/* Responsive */
@media (max-width: 900px) {
	.ch-downloads {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ch-downloads__sidebar {
		position: static;
	}

	.ch-downloads__grid {
		grid-template-columns: 1fr;
	}
}

