/**
 * Birthday card maker tool page: a row of cards, the start button and the groups.
 * Colours from tokens.css only.
 */

.pdfe-card-landing {
	display: grid;
	justify-items: center;
	gap: 18px;
	margin: 8px auto 0;
	max-width: 1040px;
}

.pdfe-card-landing__show {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pdfe-card-landing__show a {
	display: block;
	overflow: hidden;
	border-radius: var(--pdfe-radius-lg);
	box-shadow: var(--pdfe-ed-shadow-page);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pdfe-card-landing__show li:nth-child(odd) a {
	transform: rotate(-2deg);
}

.pdfe-card-landing__show li:nth-child(even) a {
	transform: rotate(2deg) translateY(10px);
}

.pdfe-card-landing__show a:hover,
.pdfe-card-landing__show a:focus-visible {
	transform: translateY(-6px) rotate(0);
	box-shadow: var(--pdfe-ed-shadow-float);
}

.pdfe-card-landing__show img {
	display: block;
	width: 100%;
	height: auto;
}

.pdfe-card-landing__start {
	margin-top: 18px;
	min-width: 240px;
	text-align: center;
}

.pdfe-card-landing__label {
	margin: 4px 0 0;
	color: var(--pdfe-text-muted);
	font-size: 15px;
}

.pdfe-card-landing__groups {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pdfe-card-landing__groups a {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--pdfe-border);
	border-radius: 999px;
	background: var(--pdfe-surface);
	color: var(--pdfe-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pdfe-card-landing__groups a:hover,
.pdfe-card-landing__groups a:focus-visible {
	border-color: var(--pdfe-primary);
	background: var(--pdfe-bg-soft-blue);
}

@media (max-width: 900px) {
	.pdfe-card-landing__show {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pdfe-card-landing__show li:nth-child(n) a {
		transform: none;
	}
}

@media (max-width: 480px) {
	.pdfe-card-landing__show {
		gap: 10px;
	}
}

/* Title and intro under the cards (the tool comes first). */
.pdfe-tool-hero__head--below {
	margin: 44px auto 4px;
}
