/* About › Partners, Team, Careers (templates/about-partners|team|careers.php). */

/* Sidebar + main layout shared by Partners and Careers */
.about-b-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-block: 48px 80px;
}

.about-b-layout__aside {
	position: sticky;
	top: 24px;
}

.about-b-layout__main .page-title {
	margin-bottom: 24px;
}

.about-b-prose {
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 14px;
	line-height: 24px;
	color: var(--text-muted);
}

.about-b-cta {
	display: flex;
	align-items: center;
	gap: 32px;
	margin-top: 48px;
	padding: 36px 40px;
	border-radius: 12px;
	background: var(--brand-tint);
}

.about-b-cta--soft {
	background: #ebf6f0;
	border: 1px solid #dcefe4;
}

.about-b-cta__text {
	flex: 1;
}

.about-b-cta__title {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text);
}

.about-b-cta__sub {
	max-width: 560px;
	margin-top: 8px;
	font-size: 13px;
	line-height: 20px;
	color: var(--text-muted);
}

.about-b-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
	height: 44px;
	padding-inline: 24px;
	border-radius: 6px;
	background: var(--brand);
	color: var(--text-invert);
	font-family: var(--font-head);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 1px;
	text-decoration: none;
	white-space: nowrap;
}

.about-b-btn:hover {
	background: var(--brand-dark);
}

.about-b-btn--lg {
	height: 48px;
	padding-inline: 28px;
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
}

.about-b-btn--sm {
	height: 34px;
	padding-inline: 16px;
	font-size: 12px;
}

@media (max-width: 1100px) {
	.about-b-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-top: 32px;
	}

	.about-b-layout__aside {
		position: static;
	}
}

@media (max-width: 640px) {
	.about-b-cta {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 28px 24px;
	}

	.about-b-btn--lg {
		width: 100%;
	}
}

/* Partners */
.partners-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 48px 0 0;
	padding: 28px 0;
	border-radius: 12px;
	background: var(--surface-alt);
}

.partners-stats > div {
	padding-inline: 28px;
}

.partners-stats > div + div {
	border-left: 1px solid var(--border);
}

.partners-stats dt {
	font-family: var(--font-head);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	color: var(--brand-dark);
}

.partners-stats dd {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--text-muted);
}

.partners-group {
	margin-top: 52px;
}

.partners-group__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.partners-group__no {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	background: var(--brand-tint);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--brand-dark);
}

.partners-group__title {
	font-family: var(--font-head);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
}

.partners-group__desc {
	margin-top: 6px;
	font-size: 13px;
	line-height: 20px;
	color: var(--text-muted);
}

.partner-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.partner-tile a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 124px;
	padding: 20px 26px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-tile a:hover {
	border-color: var(--brand);
	box-shadow: 0 12px 28px rgba(11, 21, 18, 0.08);
}

.partner-tile img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 760px) {
	.partners-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 24px;
	}

	.partners-stats > div:nth-child(3) {
		border-left: 0;
	}

	.partner-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.partner-tile a {
		height: 96px;
		padding: 16px;
	}
}

/* Team */
.team-hero {
	display: flex;
	align-items: flex-end;
	gap: 64px;
	padding-top: 56px;
}

.team-hero__main {
	flex: 1;
	min-width: 0;
}

.team-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
}

.team-hero__eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	background: var(--brand);
}

.team-hero__title {
	margin-top: 16px;
	font-family: var(--font-head);
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: 1.1;
	color: var(--text);
}

.team-hero__intro {
	max-width: 940px;
	margin-top: 28px;
	font-size: 14px;
	line-height: 26px;
	color: var(--text-muted);
}

.team-hero__stats {
	display: flex;
	gap: 48px;
	margin: 0;
	text-align: right;
}

.team-hero__stats dt {
	font-family: var(--font-head);
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--brand);
}

.team-hero__stats dd {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--text-muted);
	white-space: nowrap;
}

.team-group {
	padding-top: 64px;
}

.team-group__title {
	font-family: var(--font-head);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
}

.team-group__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 14px;
	background: var(--brand);
}

.team-group__desc {
	margin-top: 16px;
	font-size: 13px;
	line-height: 20px;
	color: var(--text-muted);
}

.team-grid {
	display: grid;
	gap: 24px;
	margin-top: 28px;
}

.team-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
	overflow: hidden;
	border-radius: 6px;
	background: linear-gradient(135deg, var(--brand-tint), #dcefe4);
}

.member-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

.member-card__initials {
	font-family: var(--font-head);
	font-size: 56px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--brand-dark);
	opacity: 0.55;
}

.member-card__name {
	margin-top: 26px;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
}

.member-card__role {
	margin-top: 8px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--border);
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--brand-dark);
}

.member-card__contact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--text-muted);
}

.member-card__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.member-card__contact .icon {
	color: var(--text-muted);
}

.member-card__contact a {
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.member-card__contact a:hover {
	color: var(--brand-dark);
}

.team-cta {
	margin-top: 108px;
	padding-block: 64px;
	background: var(--brand-dark);
	color: var(--text-invert);
}

.team-cta__inner {
	display: flex;
	align-items: center;
	gap: 40px;
}

.team-cta__inner > div:first-child {
	flex: 1;
}

.team-cta__title {
	font-family: var(--font-head);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.team-cta__sub {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 21px;
	color: rgba(255, 255, 255, 0.92); /* AA on the green band */
}

.team-cta__actions {
	display: flex;
	gap: 12px;
}

.team-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding-inline: 28px;
	border-radius: 6px;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-decoration: none;
	white-space: nowrap;
}

.team-cta__btn--solid {
	background: var(--surface);
	color: var(--brand-dark);
}

.team-cta__btn--ghost {
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	color: var(--text-invert);
}

.team-cta__btn--solid:hover {
	background: var(--brand-tint);
}

.team-cta__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1100px) {
	.team-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
		padding-top: 40px;
	}

	.team-hero__stats {
		text-align: left;
	}

	.team-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 760px) {
	.team-hero__title {
		font-size: 32px;
	}

	.team-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.team-grid {
		gap: 20px 16px;
	}

	.member-card__photo {
		height: 220px;
	}

	.team-cta {
		margin-top: 72px;
	}

	.team-cta__actions {
		flex-direction: column;
		width: 100%;
	}
}

@media (max-width: 480px) {
	.member-card__photo {
		height: 180px;
	}

	.member-card__contact {
		font-size: 12px;
	}
}

/* Careers */
.careers-label {
	margin-bottom: 20px;
}

.careers-why {
	margin-top: 40px;
}

.careers-why__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.careers-why__card {
	padding: 26px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-alt);
}

.careers-why__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--brand-tint);
	color: var(--brand-dark);
}

.careers-why__title {
	margin-top: 22px;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
}

.careers-why__desc {
	margin-top: 10px;
	font-size: 13px;
	line-height: 21px;
	color: var(--text-muted);
}

.careers-jobs {
	margin-top: 44px;
}

.careers-jobs__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
}

.careers-jobs__count {
	font-size: 12px;
	color: var(--text-muted);
}

.job-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.job-row {
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* The whole summary is the toggle; details/summary works without JS. */
.job-row__summary {
	display: block;
	padding: 26px;
	cursor: pointer;
	list-style: none;
}

.job-row__summary::-webkit-details-marker {
	display: none;
}

.job-row__summary:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: -2px;
	border-radius: 10px;
}

.job-row[open] {
	border-color: var(--brand);
	box-shadow: 0 16px 36px rgba(11, 21, 18, 0.08);
}

.job-row__toggle .icon {
	transition: transform 0.3s ease;
}

.job-row[open] .job-row__toggle .icon {
	transform: rotate(180deg);
}

.job-row__toggle-close,
.job-row[open] .job-row__toggle-open {
	display: none;
}

.job-row[open] .job-row__toggle-close {
	display: inline;
}

.job-row__detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 32px;
	margin: 0 26px;
	padding: 24px 0 26px;
	border-top: 1px solid var(--border);
}

.job-row[open] .job-row__detail {
	animation: job-open 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes job-open {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

.job-row__sections {
	display: grid;
	gap: 22px;
}

.job-row__heading {
	margin-bottom: 10px;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.4px;
	color: var(--text);
	text-transform: uppercase;
}

.job-row__section ul {
	display: grid;
	gap: 8px;
}

.job-row__section li {
	display: flex;
	gap: 10px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text);
}

.job-row__section li .icon {
	margin-top: 3px;
	color: var(--brand-dark);
}

.job-row__apply {
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	border-radius: 10px;
	background: var(--surface-alt);
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted);
}

.job-row__apply .about-b-btn {
	justify-content: center;
}

.job-row:hover {
	border-color: var(--border-strong);
	box-shadow: 0 12px 28px rgba(11, 21, 18, 0.06);
}

.job-row__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.job-row__title {
	font-family: var(--font-head);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text);
}

.job-badge {
	flex-shrink: 0;
	padding: 4px 10px;
	border-radius: 99px;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.job-badge--green {
	background: var(--brand-tint);
	color: var(--brand-dark);
}

.job-badge--blue {
	background: #e9f1fc;
	color: #0e4e99;
}

.job-badge--sand {
	background: #fbeedc;
	color: #9a5b12;
}

.job-row__desc {
	display: block;
	margin-top: 12px;
	font-size: 13px;
	line-height: 20px;
	color: var(--text-muted);
}

.job-row__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
}

.job-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 12px;
	color: var(--text-muted);
}

.job-row__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.careers-jobs__empty {
	padding: 26px;
	border: 1px dashed var(--border-strong);
	border-radius: 10px;
	color: var(--text-muted);
}

@media (max-width: 640px) {
	.careers-why__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.job-row__summary {
		padding: 20px;
	}

	.job-row__detail {
		grid-template-columns: minmax(0, 1fr);
		margin-inline: 20px;
	}

	.job-row__foot {
		flex-direction: column;
		align-items: flex-start;
	}

	.job-row__foot .about-b-btn {
		justify-content: center;
		width: 100%;
	}
}
