/**
 * Steps widget.
 */

.msd-steps {
	--msd-steps-accent: var(--msd-red, #9d2020);
	--msd-steps-line: var(--msd-ink, #1e2a30);
	--msd-steps-min: 190px;

	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--msd-steps-min)), 1fr));
	gap: 40px 0;
	margin: 0;
	/* Room for the number circles that sit on the line. */
	padding: 22px 0 0;
	list-style: none;
}

.msd-steps__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px 8px 0;
	border-top: 2px solid var(--msd-steps-line);
}

/* White on the accent colour: the design's dark number on red had 1.9:1. */
.msd-steps__number {
	display: grid;
	width: 44px;
	height: 44px;
	margin-top: -50px;
	border-radius: 50%;
	background-color: var(--msd-steps-accent);
	color: var(--msd-white, #fff);
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: 17px;
	font-weight: 800;
	place-items: center;
}

.msd-steps .msd-steps__title {
	margin: 8px 0 0;
	color: var(--msd-ink, #1e2a30);
	font-family: var(--msd-font-heading, "Bricolage Grotesque", system-ui, sans-serif);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.msd-steps .msd-steps__text {
	max-width: 300px;
	margin: 0;
	color: var(--msd-text-muted, #4c565d);
	font-size: 15.5px;
	line-height: 1.6;
}

/* Tiles layout: tinted cards with a large red number (city pages). */

.msd-steps--tiles {
	--msd-steps-min: 170px;

	gap: 12px;
	padding-top: 0;
}

.msd-steps--tiles .msd-steps__item {
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--msd-line, #e6e0d5);
	border-radius: 18px;
	background-color: var(--msd-cream, #f7f4ee);
}

.msd-steps--tiles .msd-steps__number {
	display: block;
	width: auto;
	height: auto;
	margin-top: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--msd-steps-accent);
	font-size: 34px;
	line-height: 1;
}

.msd-steps.msd-steps--tiles .msd-steps__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0;
}

.msd-steps.msd-steps--tiles .msd-steps__text {
	max-width: none;
	font-size: 14.5px;
	line-height: 1.5;
}
