/* About (/about/) and Compliance (/compliance/) pages. Reuses the gc- theme; only the
   company record, numbered steps and the deposit screening flow need their own rules. */

.co-measure { max-width: 46rem; }

/* Company record: the registry-style panel on the brand gradient (About) and the
   facts panel (Compliance). A real <dl>, two columns from md up. */
.co-record {
	background: linear-gradient(114deg, #ED1849 18.92%, #E835CE 81.08%);
	color: #fff;
}
.co-record dl {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
}
.co-record dl > div {
	padding: 1rem 0;
	border-top: 1px solid rgba(255, 255, 255, .28);
}
.co-record dt {
	font-weight: 400;
	font-size: .875rem;
	opacity: .85;
	margin-bottom: .25rem;
}
.co-record dd {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.co-record a { color: #fff; }
.co-record a:focus-visible,
.co-flow a:focus-visible,
.co-list a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 2px;
}
@media (min-width: 768px) {
	.co-record dl { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
	.co-record .co-record-wide { grid-column: 1 / -1; }
}

/* Definition-style lists on the light surface (contacts, legal documents, programme). */
.co-list { margin: 0; padding: 0; list-style: none; }
.co-list > li,
.co-list > div {
	padding: 1.125rem 0;
	border-top: 1px solid var(--gc-border-color, #e0e2ef);
}
.co-list > li:last-child,
.co-list > div:last-child { border-bottom: 1px solid var(--gc-border-color, #e0e2ef); }
.co-list dt, .co-list .co-term { font-weight: 500; color: var(--gc-heading-color, #0c0c0c); margin-bottom: .25rem; }
.co-list dd { margin: 0; }

/* Numbered steps: a real sequence (KYB onboarding). */
.co-steps { counter-reset: co-step; list-style: none; margin: 0; padding: 0; }
.co-steps > li {
	counter-increment: co-step;
	position: relative;
	padding: 0 0 1.75rem 3.5rem;
}
.co-steps > li::before {
	content: counter(co-step);
	position: absolute;
	left: 0;
	top: -.125rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 500;
	color: #fff;
	background: #0c0c0c;
}
.co-steps > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 1.0625rem;
	top: 2.5rem;
	bottom: .25rem;
	width: 2px;
	background: var(--gc-border-color, #e0e2ef);
}
.co-steps h3 { margin-bottom: .375rem; }

/* Deposit screening flow (Compliance): the page's one memorable element. */
.co-flow {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.co-flow > li {
	position: relative;
	border-radius: var(--gc-border-radius-xl, 1rem);
	padding: 1.5rem;
	background: #1e202d;
	color: #e2e5f1;
}
.co-flow > li:not(:last-child)::after {
	/* connector: a chevron drawn with borders, pointing down on mobile, right on desktop */
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1.125rem;
	width: .75rem;
	height: .75rem;
	border-right: 2px solid #9396ad;
	border-bottom: 2px solid #9396ad;
	transform: translateX(-50%) rotate(45deg);
}
.co-flow h3 { color: #fff; }
.co-flow .co-outcomes { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.co-flow .co-outcomes li { padding: .75rem 1rem; border-radius: .75rem; background: rgba(255, 255, 255, .06); }
.co-flow .co-dot {
	display: inline-block;
	width: .625rem;
	height: .625rem;
	border-radius: 50%;
	margin-right: .5rem;
	vertical-align: middle;
}
.co-dot--ok { background: #33b36b; }
.co-dot--hold { background: #efb45c; }
.co-flow .co-step-screen { background: linear-gradient(114deg, #ED1849 18.92%, #E835CE 81.08%); color: #fff; }
.co-flow .co-step-screen p { opacity: .92; }
@media (min-width: 992px) {
	.co-flow { grid-template-columns: 1fr 1.15fr 1.3fr; gap: 2rem; }
	.co-flow > li:not(:last-child)::after {
		left: auto;
		right: -1.375rem;
		bottom: auto;
		top: 50%;
		transform: translateY(-50%) rotate(-45deg);
	}
}

/* On the grey island the theme border colour is too close to the background. */
.bg-body-tertiary .co-list > li,
.bg-body-tertiary .co-list > div { border-color: rgba(12, 12, 12, .12); }
