/* Homepage and archive layout */
.cs-home {
	background: var(--bg);
	overflow: hidden;
}

.cs-home,
.cs-home *,
.cs-footer,
.cs-footer * {
	box-sizing: border-box;
}

/* Hero */
.cs-hero {
	position: relative;
	padding: 76px 0 84px;
	color: #fff;
	background:
		radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.16), transparent 32%),
		radial-gradient(circle at 8% 92%, rgba(245, 158, 11, 0.14), transparent 34%),
		linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%);
	overflow: hidden;
}

.cs-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
	mask-image: linear-gradient(to bottom, #000 0%, transparent 86%);
	pointer-events: none;
}

.cs-hero::after {
	content: "";
	position: absolute;
	right: -160px;
	bottom: -220px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	filter: blur(2px);
	pointer-events: none;
}

.cs-hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
	gap: 54px;
	align-items: center;
}

.cs-hero-copy,
.cs-peek {
	min-width: 0;
}

.cs-hero-inner.cs-hero-no-peek {
	grid-template-columns: 1fr;
}

.cs-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #dbeafe;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.cs-kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fbbf24;
	box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

.cs-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 5.1vw, 60px);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.cs-hero h1 em {
	position: relative;
	display: inline-block;
	color: #fbbf24;
	font-style: normal;
	z-index: 0;
}

.cs-hero h1 em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	height: 12px;
	border-radius: 8px;
	background: rgba(251, 191, 36, 0.18);
	z-index: -1;
}

.cs-lead {
	max-width: 560px;
	margin: 20px 0 0;
	color: #dbeafe;
	font-size: 16px;
	line-height: 1.85;
}

.cs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cs-btn:hover {
	transform: translateY(-1px);
}

.cs-btn-primary {
	background: #fff;
	color: #0b1f4b;
	box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.5);
}

.cs-btn-primary:hover {
	background: #f8fafc;
	color: #0b1f4b;
}

.cs-btn-ghost {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
}

.cs-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.cs-hero-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	color: #bfdbfe;
	font-size: 13px;
}

.cs-hero-note::before {
	content: "✓";
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

/* Forum peek */
.cs-peek {
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.09);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.55);
}

.cs-peek-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 4px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.cs-peek-head a {
	color: #bfdbfe;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.cs-peek-head a:hover {
	color: #fff;
}

.cs-peek-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	color: #fff;
	text-decoration: none;
}

.cs-peek-row:last-child {
	border-bottom: 0;
	padding-bottom: 2px;
}

.cs-peek-row:hover {
	color: #fff;
}

.cs-peek-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
}

.cs-peek-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.cs-peek-meta strong {
	overflow: hidden;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cs-peek-meta small {
	color: #bfdbfe;
	font-size: 12px;
}

.cs-peek-arrow {
	margin-left: auto;
	color: #93c5fd;
	font-size: 16px;
}

.cs-peek-empty {
	padding: 16px 4px 4px;
	color: #bfdbfe;
	font-size: 13px;
	line-height: 1.7;
}

/* Sections */
.cs-section {
	padding: 66px 0;
}

.cs-section.is-white {
	background: #fff;
}

.cs-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.cs-section-title {
	margin: 0;
	color: var(--ink);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 900;
	letter-spacing: -0.03em;
}

.cs-section-sub {
	max-width: 680px;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.7;
}

.cs-more {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.cs-more:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: var(--primary);
}

/* Post cards */
.cs-feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cs-card {
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cs-card:hover {
	transform: translateY(-4px);
	border-color: #c7d2fe;
	box-shadow: 0 22px 40px -26px rgba(15, 23, 42, 0.35);
}

.cs-card-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cs-card-link:hover {
	color: inherit;
}

.cs-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.cs-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.cs-card:hover .cs-thumb img {
	transform: scale(1.035);
}

.cs-thumb-label {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 2;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.62);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.cs-thumb-mark {
	position: absolute;
	right: 14px;
	bottom: -16px;
	color: rgba(15, 23, 42, 0.13);
	font-size: 92px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.08em;
}

.cs-tone-1 {
	background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.cs-tone-2 {
	background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.cs-tone-3 {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.cs-tone-4 {
	background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.cs-tone-5 {
	background: linear-gradient(135deg, #ffe4e6, #fecdd3);
}

.cs-tone-6 {
	background: linear-gradient(135deg, #cffafe, #a5f3fc);
}

.cs-card-body {
	padding: 18px 18px 20px;
}

.cs-tag {
	display: inline-block;
	margin-bottom: 9px;
	color: var(--primary);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.cs-card h3 {
	display: -webkit-box;
	margin: 0 0 8px;
	overflow: hidden;
	color: var(--ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: -0.01em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cs-card p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cs-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	color: #94a3b8;
	font-size: 12px;
}

.cs-dot {
	color: #cbd5e1;
}

.cs-empty {
	padding: 46px 24px;
	border: 1px dashed #cbd5e1;
	border-radius: var(--radius);
	background: #fff;
	color: var(--muted);
	text-align: center;
}

/* Forum section */
.cs-forum-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 20px;
	align-items: start;
}

.cs-forum-grid.cs-forum-single {
	grid-template-columns: 1fr;
}

.cs-forum-list {
	display: grid;
	gap: 12px;
}

.cs-forum-card {
	display: block;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cs-forum-card:hover {
	transform: translateY(-2px);
	border-color: #c7d2fe;
	box-shadow: 0 16px 30px -24px rgba(15, 23, 42, 0.3);
	color: inherit;
}

.cs-forum-top {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.cs-forum-icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: #eff6ff;
	color: var(--primary);
	font-size: 17px;
	font-weight: 900;
}

.cs-forum-card h3 {
	margin: 1px 0 5px;
	color: var(--ink);
	font-size: 16px;
	font-weight: 800;
}

.cs-forum-card p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.cs-forum-stats {
	display: flex;
	gap: 18px;
	margin-top: 13px;
	padding-top: 12px;
	border-top: 1px solid #f1f5f9;
	color: #94a3b8;
	font-size: 12px;
}

.cs-forum-stats strong {
	color: #334155;
	font-size: 14px;
}

.cs-topic-box {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.cs-topic-box h3 {
	margin: 0 0 14px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 800;
}

.cs-topic {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
	color: inherit;
	text-decoration: none;
}

.cs-topic:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.cs-topic:hover {
	color: inherit;
}

.cs-topic-dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.cs-topic-main {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.cs-topic-main strong {
	overflow: hidden;
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cs-topic-main small {
	color: #94a3b8;
	font-size: 12px;
}

.cs-topic-time {
	flex: 0 0 auto;
	margin-left: auto;
	color: #cbd5e1;
	font-size: 11px;
}

.cs-topic-empty {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

/* Archive / posts page */
.cs-archive-head {
	padding: 52px 0 46px;
	color: #fff;
	background:
		radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.14), transparent 30%),
		linear-gradient(135deg, var(--hero-a), var(--hero-b));
}

.cs-archive-head h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 900;
	letter-spacing: -0.04em;
}

.cs-archive-head p {
	max-width: 620px;
	margin: 10px 0 0;
	color: #dbeafe;
	font-size: 14px;
	line-height: 1.8;
}

.cs-archive .cs-section {
	padding-top: 42px;
}

/* Responsive */
@media (max-width: 1020px) {
	.cs-hero-inner {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.cs-peek {
		max-width: 560px;
	}

	.cs-feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cs-forum-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.cs-hero {
		padding: 52px 0 58px;
	}

	.cs-hero h1 {
		font-size: clamp(30px, 9.2vw, 42px);
	}

	.cs-lead {
		font-size: 15px;
	}

	.cs-actions {
		margin-top: 24px;
		flex-direction: column;
		align-items: stretch;
	}

	.cs-btn {
		flex: 0 0 auto;
		width: 100%;
		min-height: 46px;
		padding: 0 18px;
	}

	.cs-lead {
		max-width: 100%;
	}

	.cs-section {
		padding: 46px 0;
	}

	.cs-section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.cs-feed {
		grid-template-columns: 1fr;
	}

	.cs-card-body {
		padding: 16px;
	}

	.cs-archive-head {
		padding: 40px 0 36px;
	}

	.cs-topic-time {
		display: none;
	}
}

@media (max-width: 420px) {
	.cs-peek {
		padding: 14px;
		border-radius: 18px;
	}

	.cs-forum-card,
	.cs-topic-box {
		padding: 15px;
	}
}
