/* WorkScout Platform — resource cards ([workscout_resources]) on the Career
   Resources and Skills & side hustles pages. Colours, radius and buttons
   come from the site tokens in site.css. */

.wsp-res { margin: 0 0 32px; }
.wsp-res-section + .wsp-res-section { margin-top: 40px; }

.wsp-res .wsp-res-title {
	margin: 0 0 16px;
	color: var(--wsp-ink);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.3;
}

.wsp-res-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

@media (min-width: 640px) {
	.wsp-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1025px) {
	.wsp-res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wsp-res .wsp-res-title { font-size: 26px; }
}

.wsp-res-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var(--wsp-line);
	border-radius: var(--wsp-radius);
	background: #fff;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.wsp-res-card:hover { border-color: #cfe6f8; box-shadow: 0 8px 24px rgba(9, 29, 46, 0.08); }

.wsp-res-card--feature {
	grid-column: 1 / -1;
	border-color: #cfe6f8;
	background: var(--wsp-sky);
}

.wsp-res .wsp-res-name {
	margin: 0 0 6px;
	color: var(--wsp-ink);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
}

.wsp-res .wsp-res-desc,
.wsp-res .wsp-res-benefit {
	margin: 0 0 8px;
	color: var(--wsp-text);
	font-size: 15px;
	line-height: 1.55;
}

.wsp-res .wsp-res-benefit { color: var(--wsp-muted); }

.wsp-res .wsp-res-actions { margin: auto 0 0; padding-top: 8px; }

.wsp-res .wsp-res-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--wsp-action);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}

.wsp-res .wsp-res-btn:hover { background: var(--wsp-action-dark); color: #fff; }
.wsp-res .wsp-res-btn:focus-visible { outline: 3px solid var(--wsp-action); outline-offset: 2px; }

.wsp-res .wsp-res-note {
	margin: 10px 0 0;
	color: var(--wsp-muted);
	font-size: 12px;
}

.wsp-res .wsp-res-disclosure {
	margin: 24px 0 0;
	padding: 12px 16px;
	border-left: 3px solid var(--wsp-line);
	color: var(--wsp-muted);
	font-size: 13px;
	line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
	.wsp-res-card { transition: none; }
}
