.category-alt {
	padding: 0;
}

.category-alt__grid {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 60vh;
}

.category-alt__sidebar {
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	padding: 30px 20px 30px 0;
	position: sticky;
	top: 80px;
	height: calc(100vh - 80px);
	overflow-y: auto;
	align-self: start;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}

.category-alt__sidebar::-webkit-scrollbar {
	width: 3px;
}

.category-alt__sidebar::-webkit-scrollbar-track {
	background: transparent;
	margin: 8px 0;
}

.category-alt__sidebar::-webkit-scrollbar-thumb {
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.18), transparent);
	border-radius: 99px;
	transition: background 200ms ease;
}

.category-alt__sidebar:hover::-webkit-scrollbar-thumb {
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.28), transparent);
}

.category-alt__sidebar-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 18px;
	font-weight: 700;
	color: var(--text-color);
	margin-bottom: 15px;
}

.category-alt__sidebar-title a {
	color: var(--text-color);
	text-decoration: none;
}

.category-alt__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: none;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	cursor: pointer;
	font-size: 18px;
	color: var(--text-color);
	transition: background 150ms ease;
	flex-shrink: 0;
}

.category-alt__toggle:hover {
	background: rgba(0, 0, 0, 0.05);
}

.category-alt__toggle span {
	display: inline-block;
	transition: transform 200ms ease;
	line-height: 1;
}

.category-alt__toggle[aria-expanded="true"] span {
	transform: rotate(90deg);
}

.category-alt__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.category-alt__nav li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-alt__nav a {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	color: var(--text-color);
	text-decoration: none;
	transition: color 150ms ease;
}

.category-alt__nav a:hover,
.category-alt__nav a.is-active {
	color: var(--primary-color);
}

.category-alt__nav a.is-active {
	font-weight: 600;
}

.category-alt__content {
	padding: 30px 0 30px 40px;
}

.category-alt__header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.category-alt__header h1 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.category-alt__header p {
	margin: 0;
	font-size: 14px;
	opacity: 0.6;
}

.category-alt__posts {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.category-alt__posts li {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 160ms ease, border-color 160ms ease;
}

.category-alt__posts li:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
	border-color: rgba(0, 0, 0, 0.12);
}

.category-alt__posts a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-color);
	text-decoration: none;
	transition: color 160ms ease;
}

.category-alt__posts a:hover {
	color: var(--primary-color);
}

.category-alt__posts a .button {
	flex-shrink: 0;
	margin-left: 15px;
	pointer-events: none;
}

.category-alt__no-results {
	padding: 60px 0;
	text-align: center;
	font-size: var(--font-size-base);
	opacity: 0.55;
	margin: 0;
}

@media (max-width: 768px) {
	.category-alt__grid {
		grid-template-columns: 1fr;
	}

	.category-alt__sidebar {
		position: static;
		height: auto;
		overflow: visible;
		border-right: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		padding: 20px 0 10px;
	}

	.category-alt__sidebar-title {
		margin-bottom: 0;
	}

	.category-alt__toggle {
		display: flex;
	}

	.category-alt__nav {
		display: none;
		margin-top: 10px;
	}

	.category-alt__nav.is-open {
		display: block;
	}

	.category-alt__content {
		padding: 20px 0 0;
	}

	.category-alt__header {
		margin-bottom: 15px;
		padding-bottom: 0;
		border-bottom: none;
	}
}
