/*
 * Sustainability - Table.
 *
 * Read from cp-all-designer css/sustain-materiality-issues.css (.mih3,
 * .mitab2, .midet). 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-table.custom-sustainability-table [data-custom-investor-intro] {
	font-weight: 400;
	line-height: 1.8;
}

.custom-sustainability-table .custom-sustainability-table__inner .custom-sustainability-table__heading {
	margin-top: 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #16418C;
	font-weight: 600;
	line-height: 1.4;
}

/* a row's name holds its line; the number column is narrow and bold */
.custom-sustainability-table table[data-custom-sus-table] tbody th.custom-sustainability-table__key {
	white-space: nowrap;
}

.custom-sustainability-table table[data-custom-sus-table] tbody td.custom-sustainability-table__n {
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--custom-sus-table-accent, #5CA13F);
}

/* the fold: a white bar that opens, a plus that turns to a minus */
.custom-sustainability-table .custom-sustainability-table__fold {
	border: 2px solid var(--custom-sus-table-edge, #EEF2F7);   /* measures 1px */
	border-radius: 14px;                   /* --r */
	background: #FFFFFF;
}

.custom-sustainability-table .custom-sustainability-table__fold-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--custom-sus-table-key, #16418C);
	list-style: none;
	cursor: pointer;
}

.custom-sustainability-table .custom-sustainability-table__fold-line::-webkit-details-marker {
	display: none;
}

.custom-sustainability-table .custom-sustainability-table__fold-line:hover {
	color: var(--custom-sus-table-accent, #5CA13F);
}

.custom-sustainability-table .custom-sustainability-table__fold-line:focus-visible {
	outline: 2px solid var(--custom-sus-table-accent, #5CA13F);
	outline-offset: -2px;
}

.custom-sustainability-table .custom-sustainability-table__fold-mark {
	position: relative;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

.custom-sustainability-table .custom-sustainability-table__fold-mark::before,
.custom-sustainability-table .custom-sustainability-table__fold-mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: var(--custom-sus-table-accent, #5CA13F);
	transform: translate(-50%, -50%);
	transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-sustainability-table .custom-sustainability-table__fold-mark::before {
	width: 14px;
	height: 2px;
}

.custom-sustainability-table .custom-sustainability-table__fold-mark::after {
	width: 2px;
	height: 14px;
}

.custom-sustainability-table .custom-sustainability-table__fold[open] .custom-sustainability-table__fold-mark::after {
	transform: translate(-50%, -50%) scaleY(0);
}

.custom-sustainability-table .custom-sustainability-table__fold-words {
	padding: 0 22px 20px;
	font-size: 14px;
	line-height: 1.9;
	color: var(--custom-sus-table-ink, #475569);
	font-variant-numeric: tabular-nums;
}

.custom-sustainability-table .custom-sustainability-table__inner .custom-sustainability-table__fold-words p {
	margin: 14px 0;
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	.custom-sustainability-table .custom-sustainability-table__fold-mark::before,
	.custom-sustainability-table .custom-sustainability-table__fold-mark::after {
		transition: none;
	}
}
