/*
 * Company page (/about/) styles.
 * Loads on that page only. Shared page sections are in assets/css/theme.css.
 */

/* Hero: copy only, the founders sit below it. */
.cm-co-hero .cm-page-hero__copy {
	flex-basis: 100%;
}

body .cm-co-hero__title {
	max-width: 1000px;
}

/* Founders: centered cards with a round headshot, then name, role, bio and LinkedIn. */
.cm-section > .cm-co-founders {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 24px;
	padding-block: 0 clamp(64px, 8vw, 96px);
}

.cm-co-founder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 36px 28px 30px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 22px;
	background: var(--wp--preset--color--surface);
	text-align: center;
}

.cm-co-founder__photo {
	margin: 0 0 12px;
}

/* Round crop keeps the three photos the same size whatever their background; faces sit in the upper part of each photo. */
.cm-co-founder__photo img {
	display: block;
	width: 168px;
	height: 168px;
	object-fit: cover;
	object-position: center 20%;
	border: 5px solid var(--wp--preset--color--white);
	border-radius: 50%;
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--custom--shadow--card);
}

.cm-co-founder__name {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--navy-deep);
}

.cm-co-founder__role {
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--teal);
}

.cm-co-founder > p:not(.cm-co-founder__role, .cm-co-linkedin) {
	max-width: 320px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-2);
}

.cm-co-linkedin {
	margin-top: auto;
	padding-top: 6px;
	font-size: 15px;
	font-weight: 600;
}

/* Extended leadership: cards with an initials circle. */
.cm-co-intro {
	max-width: 820px;
}

.cm-co-leaders {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: 16px;
}

.cm-co-leader {
	gap: 14px;
	padding: 26px;
	border-radius: 22px;
}

.cm-co-avatar {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}

.cm-co-leader__name {
	font-size: 20px;
}

.cm-co-leader__role {
	font-size: 15px;
	color: var(--wp--preset--color--text-2);
}

/* Security cards. */
.cm-co-security {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 16px;
}

.cm-co-security__card {
	gap: 10px;
	padding: 26px;
	border-radius: 20px;
	font-size: 15px;
}

.cm-section .cm-co-security__title {
	font-size: 21px;
	color: var(--wp--preset--color--navy-deep);
}

.cm-co-note {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* Careers: headline on the left, the Indeed link on the right. */
.cm-section > .cm-co-careers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}

.cm-co-careers__copy {
	flex: 1 1 520px;
	min-width: 0;
}

.cm-co-careers__action {
	display: flex;
	flex: 1 1 360px;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
