/* Chinese Learning Hub — level catalogue (page /levels/).
   Units and lesson rows are the shared learning path (base.css). */

.clh-catalog-title {
	font-size: 2.1rem;
	margin: 0 0 6px;
}

.clh-catalog-intro {
	color: var(--clh-text-muted);
	margin: 0 0 16px;
}

/* Jump links */

.clh-catalog-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.clh-catalog-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 40px;
	padding: 4px 14px;
	border: 2px solid var(--clh-control-border);
	box-shadow: 0 2px 0 var(--clh-control-border);
	border-radius: 12px;
	background: var(--clh-raised);
	color: var(--clh-text);
	font-weight: 800;
	text-decoration: none;
}

.clh-catalog-chip:hover {
	border-color: var(--clh-accent);
	box-shadow: 0 2px 0 var(--clh-accent);
	color: var(--clh-accent-text);
}

.clh-catalog-chip.is-soon {
	color: var(--clh-text-muted);
	border-style: dashed;
	box-shadow: none;
}

/* Level cards */

.clh-level-card {
	background: var(--clh-card-bg);
	border-radius: 20px;
	box-shadow: var(--clh-card-shadow);
	padding: 22px;
	margin-bottom: 20px;
	scroll-margin-top: calc(var(--clh-sticky-top, 0px) + 16px);
}

.clh-level-head {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 16px;
}

.clh-level-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	height: 52px;
	padding: 0 12px;
	border-radius: 15px;
	background: var(--clh-accent);
	box-shadow: 0 3px 0 var(--clh-accent-strong);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	flex: none;
}

.clh-level-label.is-soon {
	background: var(--clh-sunken);
	box-shadow: none;
	color: var(--clh-text-muted);
}

.clh-level-meta {
	flex: 1;
	min-width: 0;
}

.clh-level-hsk {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--clh-accent-text);
}

.clh-level-desc {
	margin: 0;
	color: var(--clh-text-muted);
	line-height: 1.4;
}

.clh-level-coming {
	display: inline-block;
	margin: 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--clh-sunken);
	color: var(--clh-text-muted);
	font-weight: 700;
	font-size: 0.88rem;
}

.clh-level-units {
	margin-top: 18px;
}

.clh-level-units .clh-unit:last-child {
	margin-bottom: 0;
}

/* Inside a white level card, a unit sits on the page colour. */
.clh-level-card .clh-unit {
	background: var(--clh-bg);
}

/* Link to the certificate of a finished level. */
.clh-level-cert {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 6px;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--clh-accent-text);
}
