/*
 * Assessment steps (prototype methodology.html "assessment-steps"). Pattern cmc/assessment-steps: a Rounded section
 * (white backing, off-white surface) with a heading row, the four step cards (section style "Shingle", sections/
 * shingle.css) and the PDF row. This file: the heading row, the card rule and bullets, the PDF row.
 */

/* Heading row: one column (gap 30) below 1024, then two halves (gap 25) with the intro at the foot of its half */
.section-assessment-steps .assessment-steps__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

.section-assessment-steps .assessment-steps__head > * {
	min-width: 0;
	margin: 0;
}

@media (width >= 1024px) {
	.section-assessment-steps .assessment-steps__head {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 25px;
	}

	.section-assessment-steps .assessment-steps__head > :last-child {
		align-self: end;
	}
}

/* The 100 x 2 rule under each step title (core Separator), in the card's text colour */
.section-assessment-steps hr.wp-block-separator {
	flex: none;
	width: 100px;
	height: 2px;
	margin: 0;
	border: 0;
	color: inherit;
	background-color: currentColor;
	opacity: 1;
}

/* Bullets: 5px dots, 9px from the text and 10px down; the list inset 10px each side */
.section-assessment-steps ul.wp-block-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0 10px;
	list-style: none;
}

.section-assessment-steps ul.wp-block-list > li {
	display: flex;
	gap: 9px;
	min-width: 0;
	margin: 0;
}

.section-assessment-steps ul.wp-block-list > li::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	margin-top: 10px;
	border-radius: 50%;
	background-color: currentColor;
}

/* "is-two-columns" (Additional CSS class on a list): two columns, the first as wide as its longest item */
.section-assessment-steps ul.wp-block-list.is-two-columns {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 5px 10px;
	padding: 0 0 0 10px;
}

/* "Meet the Committee": the prototype's link sits straight in the card, with no 2px under it and no line box around
   it (a flex item, not an inline-flex box on a 24px line) */
.section-assessment-steps .is-style-shingle .wp-block-button {
	display: flex;
}

.section-assessment-steps .is-style-shingle .wp-block-button.is-style-link .wp-block-button__link {
	padding-bottom: 0;
}

/* PDF row: stacked below 1024, then button | title and note side by side */
.section-assessment-steps .assessment-steps__pdf > .wp-block-buttons {
	flex-shrink: 0;
}

@media (width >= 1024px) {
	.section-assessment-steps .assessment-steps__pdf {
		flex-direction: row;
		align-items: center;
	}
}
