/*
 * Sustainability - Process.
 *
 * Read from cp-all-designer css/sustain-materiality-issues.css
 * (.mitab2--process, .mitab2__step, .mitab2__phase, .mitab2__crit). The table
 * is the shared one (sustainability-widget.css, [data-custom-sus-table]).
 *
 * Colour, type, padding and the measures arrive from the Style tab and are not
 * repeated here.
 */

/* the paragraph under the head (.miprose--sm): 400, 1.8 */
.custom-sustainability-process.custom-sustainability-process [data-custom-investor-intro] {
	font-weight: 400;
	line-height: 1.8;
}

/* a step's name wraps; its column holds a share of the table */
.custom-sustainability-process table[data-custom-sus-table] tbody th.custom-sustainability-process__step {
	width: var(--custom-sustainability-process-step, 32%);
	white-space: normal;
}

.custom-sustainability-process .custom-sustainability-process__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--custom-sus-table-accent, #5CA13F);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #FFFFFF;
}

/* a phase: a line across the table on a pale ground */
.custom-sustainability-process table[data-custom-sus-table] tbody td.custom-sustainability-process__phase {
	padding: 12px 18px;
	border-top: 0;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

/* a step's boxes, as many to a row as fit */
.custom-sustainability-process table[data-custom-sus-table] .custom-sustainability-process__boxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--custom-sustainability-process-box, 220px)), 1fr));
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.custom-sustainability-process table[data-custom-sus-table] .custom-sustainability-process__box {
	margin: 0;
	padding: 10px 14px;
	border-radius: 6px;                    /* --r-sm */
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.custom-sustainability-process .custom-sustainability-process__box-note {
	display: block;
	font-weight: 400;
}

/* the words keep a paragraph's own 1em above and under them, as the design's table does */
.custom-sustainability-process table[data-custom-sus-table] td p {
	margin: 16px 0;
}

@media (max-width: 600px) {
	.custom-sustainability-process table[data-custom-sus-table] td p {
		margin: 14px 0;
	}
	.custom-sustainability-process table[data-custom-sus-table] tbody td.custom-sustainability-process__phase {
		padding: 12px 14px;
	}
}
