/*
 * Investor - Governance.
 *
 * Read from cp-all-designer investor/corporate-governance-overview/ and
 * css/investor.css:44-58 (.invfile__mark), 436-451 (.invgov), 832-943
 * (.invfiles, .invfile) and 993-999 (the step down).
 *
 * The band and the head are the investor parent's. Every measure a Style
 * control states is stated on the control for each tier, and not here.
 */

/* What a Style control names: each state's own colour. The rules below say which is showing. */
.custom-investor-governance {
	--custom-governance-ground: #F0F9FD;
	--custom-governance-lit: #E3F0F8;
	--custom-governance-ink: #16418C;
	--custom-governance-ring: rgba(22, 65, 140, 0.62);
	--custom-governance-mark-lit: #FFFFFF;
}

/* investor.css:446-448 — centred, as the head above it is */
.custom-investor-governance .custom-investor-governance__prose {
	margin: 0;
	padding: 0;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0;
	text-align: center;
}

.custom-investor-governance .custom-investor-governance__prose p {
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	padding: 0;
}

/* investor.css:852-857 — two to a row, the pair sized to its longest name and centred */
.custom-investor-governance .custom-investor-governance__files {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
	padding: 0;
}

/* investor.css:860-869 */
.custom-investor-governance .custom-investor-governance__file {
	--custom-press-ink: var(--custom-governance-ink);
	--custom-press-ground: var(--custom-governance-ground);
	--custom-press-edge: transparent;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	border: 0;
	transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-investor-governance .custom-investor-governance__file:focus-visible {
	outline: 4px solid #50A3D5;            /* investor.css:929 measures 3px */
	outline-offset: 4px;
}

/* investor.css:50-58 — the leaves behind the name: a card's height and a half, so the card trims them on three sides */
.custom-investor-governance .custom-investor-governance__file-leaf {
	position: absolute;
	z-index: 0;
	top: 50%;
	right: -6%;
	height: 150%;
	width: auto;
	aspect-ratio: 35.949 / 23.971;
	opacity: 0.16;
	background: url("../img/investor/leaves-blue.svg") center / contain no-repeat;
	transform: translateY(-50%);
}

/* investor.css:876-882 */
.custom-investor-governance .custom-investor-governance__file-title {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: 0;
	text-align: left;
}

/* investor.css:885-896 — a ring, not a disc */
.custom-investor-governance .custom-investor-governance__file-go {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border: 2px solid var(--custom-governance-ring);   /* investor.css:889 measures 1.5px */
	border-radius: 50%;
	background-color: transparent;
	color: var(--custom-governance-ink);
	transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-investor-governance .custom-investor-governance__file-go svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* investor.css:924-930 — nothing lifts and nothing grows */
@media (hover: hover) {
	.custom-investor-governance a.custom-investor-governance__file:hover {
		--custom-press-ground: var(--custom-governance-lit);
	}
	.custom-investor-governance a.custom-investor-governance__file:hover .custom-investor-governance__file-go {
		border-color: var(--custom-governance-ink);
		background-color: var(--custom-governance-ink);
		color: var(--custom-governance-mark-lit);
	}
}

.custom-investor-governance .custom-investor-governance__file:focus-visible .custom-investor-governance__file-go {
	border-color: var(--custom-governance-ink);
	background-color: var(--custom-governance-ink);
	color: var(--custom-governance-mark-lit);
}

/* Mobile — up to 767px (investor.css:993-999): one to a row, taking the column */
@media (max-width: 767px) {
	.custom-investor-governance .custom-investor-governance__files {
		grid-template-columns: minmax(0, 1fr);
		width: auto;
	}
	.custom-investor-governance .custom-investor-governance__file-go {
		width: 38px;
		height: 38px;
	}
	.custom-investor-governance .custom-investor-governance__file-go svg {
		width: 20px;                       /* investor.css:998 measures 19px */
		height: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-investor-governance .custom-investor-governance__file,
	.custom-investor-governance .custom-investor-governance__file-go {
		transition: none;
	}
}
