/**
 * WORKS homepage workflow.
 *
 * Styles the six numbered steps from Take Off
 * through Invoice.
 */

.works-workflow {
	background: var(--works-white);
}

.works-workflow-list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.works-workflow-list li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Add an arrow between steps, except after the last step. */
.works-workflow-list li:not(:last-child)::after {
	position: absolute;
	top: 48px;
	right: -1.05rem;
	color: #98a8c2;
	content: "➜";
	font-size: 1.5rem;
}

.works-step-number {
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	margin-bottom: 0.35rem;
	border-radius: 50%;
	color: var(--works-white);
	background: var(--works-orange);
	font-weight: 900;
}

/* Blank circle for an icon you can upload later. */
.works-icon-placeholder {
	display: block;
	width: 70px;
	height: 70px;
	margin-bottom: 0.65rem;
	border: 2px dashed #b6c7dd;
	border-radius: 50%;
	background: var(--works-ice);
}

.works-workflow-list h3 {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
}

.works-workflow-list p {
	max-width: 155px;
	margin: 0;
	color: var(--works-muted);
	font-size: 0.85rem;
	line-height: 1.35;
}

/* Use three columns on tablet screens. */
@media (max-width: 950px) {
	.works-workflow-list {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 2rem;
	}

	.works-workflow-list li:nth-child(3)::after {
		display: none;
	}
}

/* Use two columns and hide arrows on small screens. */
@media (max-width: 700px) {
	.works-workflow-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.7rem 0.7rem;
	}

	.works-workflow-list li::after {
		display: none !important;
	}
}