/* ==========================================
   CARDS — left accent bar
   ========================================== */
.card {
	position: relative;
	overflow: hidden;
	scroll-margin-top: 80px;
	background: var(--glass);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm) var(--radius) var(--radius) var(--radius-sm);
	padding: 20px 20px 20px 24px;
	margin-bottom: 16px;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: var(--gap-md);
}

.grid > .card {
	margin-bottom: 0;
}

.card:last-child {
	margin-bottom: 0;
}

/* Left accent bar */
.card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 4px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, var(--accent), var(--secondary));
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(var(--accent-rgb), 0.2);
}

.card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--gap-xl);
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.card__heading {
	min-width: 0;
	flex: 1;
}

.card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--gap-md);
	justify-content: flex-end;
}

.card__body {
	margin-top: 0;
}

.card ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.card li {
	margin: 5px 0;
	line-height: 1.55;
}

.card a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

.card a:hover {
	color: var(--text);
	text-decoration: underline;
}

/* ==========================================
   GRID
   ========================================== */
.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap-3xl);
}

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

.grid + .card {
	margin-top: 16px;
}

/* Featured card highlight (ex: tutorial when not completed) */
.card--featured {
	border-color: rgba(var(--accent-rgb), 0.5);
	box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.12), 0 4px 20px rgba(var(--accent-rgb), 0.1);
}

.card--featured::before {
	width: 5px;
	background: var(--accent);
}

/* Inline badge used inside card headers */
.card-badge {
	display: inline-block;
	font-size: var(--font-60);
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	vertical-align: middle;
	margin-right: 6px;
	letter-spacing: 0.04em;
}

.card-badge--start {
	background: var(--accent);
	color: var(--on-accent);
}

