/*
 * Investor - Documents.
 *
 * Read from cp-all-designer investor/financial-info/financial-statements/,
 * css/investor.css:608-788 (.invacc), 966-986 (the steps down) and 1569-1583
 * (.invlogo), over the tokens of css/app.css it uses.
 *
 * The band and the head are the investor parent's, and so is the way a year
 * folds; a year's rows and their presses are the rows parent's. Every measure a Style control states — paddings, gaps, sizes,
 * colours — 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-documents {
	--custom-documents-ink: #16418C;
	--custom-documents-lit-ink: #FFFFFF;
	--custom-documents-lit-a: #16418C;
	--custom-documents-lit-b: #3474B2;
}

/* ------------------------------------------------------------------ */
/* The logo over the list — investor.css:1571-1575                     */
/* ------------------------------------------------------------------ */

.custom-investor-documents .custom-investor-documents__logo-row {
	display: flex;
	justify-content: center;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
}

/* cpall-logo-color.png is 900 by 591; the box holds that shape */
.custom-investor-documents .custom-investor-documents__logo {
	aspect-ratio: 900 / 591;
	max-width: 100%;
}

.custom-investor-documents .custom-investor-documents__logo > img {
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* The years — investor.css:617-624                                    */
/* ------------------------------------------------------------------ */

.custom-investor-documents .custom-investor-documents__list {
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	padding: 0;
	border-top-width: 2px;                 /* investor.css:619 measures 1px */
	border-top-style: solid;
}

.custom-investor-documents .custom-investor-documents__item {
	margin: 0;
	padding: 0;
	border-bottom-width: 2px;              /* investor.css:622 measures 1px */
	border-bottom-style: solid;
}

.custom-investor-documents .custom-investor-documents__item-head {
	margin: 0;
	padding: 0;
	font: inherit;
	letter-spacing: 0;
	text-transform: none;
}

/* investor.css:628-640 — the whole rule is the control */
.custom-investor-documents .custom-investor-documents__toggle {
	--custom-press-ink: var(--custom-documents-ink);
	--custom-press-ground: none;
	--custom-press-edge: transparent;
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	gap: 20px;                             /* investor.css:631 (20.16) */
	margin: 0;
	border: 0;
	border-radius: 6px;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-investor-documents .custom-investor-documents__toggle:focus-visible {
	outline: 4px solid #50A3D5;            /* investor.css:635 measures 3px */
	outline-offset: 2px;
}

/* investor.css:641-645 — the fill, faded in under the words */
.custom-investor-documents .custom-investor-documents__toggle::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--custom-documents-lit-a) 0%, var(--custom-documents-lit-b) 100%);
	opacity: 0;
	transition: opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* investor.css:637 */
.custom-investor-documents .custom-investor-documents__year {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	line-height: 1.4;
}

/* investor.css:660-666 */
.custom-investor-documents .custom-investor-documents__sign {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 34px;
	height: 34px;
	border: 2px solid #EEF2F7;             /* investor.css:663 measures 1px */
	border-radius: 50%;
	background-color: transparent;
	transition: background-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-investor-documents .custom-investor-documents__sign svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* investor.css:654-656, 668-670 — the open year holds the ground, and its sign turns over */
.custom-investor-documents .custom-investor-documents__item.is-open .custom-investor-documents__toggle {
	--custom-press-ink: var(--custom-documents-lit-ink);
}

.custom-investor-documents .custom-investor-documents__item.is-open .custom-investor-documents__toggle::before {
	opacity: 1;
}

.custom-investor-documents .custom-investor-documents__item.is-open .custom-investor-documents__sign {
	border-color: #FFFFFF;
	background-color: #FFFFFF;
	color: #16418C;
}

.custom-investor-documents .custom-investor-documents__item.is-open .custom-investor-documents__sign svg {
	transform: rotate(180deg);
}

/* investor.css:646-653, 672-681 — under a pointer, or the key that reaches it */
@media (hover: hover) {
	.custom-investor-documents .custom-investor-documents__toggle:hover,
	.custom-investor-documents .custom-investor-documents__toggle:focus-visible {
		--custom-press-ink: var(--custom-documents-lit-ink);
	}
	.custom-investor-documents .custom-investor-documents__toggle:hover::before,
	.custom-investor-documents .custom-investor-documents__toggle:focus-visible::before {
		opacity: 1;
	}
	.custom-investor-documents .custom-investor-documents__toggle:hover .custom-investor-documents__sign,
	.custom-investor-documents .custom-investor-documents__toggle:focus-visible .custom-investor-documents__sign {
		border-color: rgba(255, 255, 255, 0.55);
		background-color: transparent;
		color: #FFFFFF;
	}
	.custom-investor-documents .custom-investor-documents__item.is-open .custom-investor-documents__toggle:hover .custom-investor-documents__sign,
	.custom-investor-documents .custom-investor-documents__item.is-open .custom-investor-documents__toggle:focus-visible .custom-investor-documents__sign {
		border-color: #FFFFFF;
		background-color: #FFFFFF;
		color: #16418C;
	}
}

/* under a finger, where a hover would linger after the tap */
@media (hover: none) {
	.custom-investor-documents .custom-investor-documents__toggle:active {
		--custom-press-ink: var(--custom-documents-lit-ink);
	}
	.custom-investor-documents .custom-investor-documents__toggle:active::before {
		opacity: 1;
	}
	.custom-investor-documents .custom-investor-documents__toggle:active .custom-investor-documents__sign {
		border-color: rgba(255, 255, 255, 0.55);
		background-color: transparent;
		color: #FFFFFF;
	}
	.custom-investor-documents .custom-investor-documents__item.is-open .custom-investor-documents__toggle:active .custom-investor-documents__sign {
		border-color: #FFFFFF;
		background-color: #FFFFFF;
		color: #16418C;
	}
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px                                            */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.custom-investor-documents .custom-investor-documents__toggle {
		gap: 12px;                         /* investor.css:631 (12.88) */
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px (investor.css:966-986)                         */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.custom-investor-documents .custom-investor-documents__toggle {
		gap: 10px;
	}
	.custom-investor-documents .custom-investor-documents__sign {
		width: 30px;
		height: 30px;
	}
	.custom-investor-documents .custom-investor-documents__sign svg {
		width: 18px;
		height: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-investor-documents .custom-investor-documents__toggle,
	.custom-investor-documents .custom-investor-documents__toggle::before,
	.custom-investor-documents .custom-investor-documents__sign,
	.custom-investor-documents .custom-investor-documents__sign svg {
		transition: none;
	}
}
