/* ---------- page-level ---------- */
#page {
	padding: 0;
}

/* ---------- content bands ---------- */
.testimonials__section {
	padding: 3rem 0;
	background-color: #fff;
}

.page-careers .bottom-section {
	background: #fff;
	padding: 3rem 0;
}

/* cards block spacer */
.page-careers .cards-block {
	padding: 3rem 0 !important;
}

/* ---------- hero ---------- */
.page-careers .page-photo .hero-bar {
	bottom: 10%;
	transform: translateY(0%);
}

/* ---------- employee owned (mobile portrait) ---------- */
@media (max-width: 980px) and (orientation: portrait) {
	.page-careers .owned-block {
		display: block;
	}

	.page-careers .owned-block .apply-btn {
		clear: both;
		margin-top: .5rem;
	}
}

/* ---------- testimonials ---------- */
.wrap {
	padding: 0 20px;
}

/* shared blocks */
.testimonial {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 2rem;
	align-items: flex-start;
	margin-block-start: 2rem;
}

.testimonial.right {
	grid-template-columns: 1fr 220px;
}

.portrait {
	text-align: center;
}

.portrait .headshot {
	width: 220px;
	height: 220px;
	display: block;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
}

.portrait .headshot img {
	object-fit: cover;
	display: block;
}

/* visible inner shadow */
.has-inner-shadow::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
	box-shadow: inset 0 2px 16px rgba(0, 0, 0, .15);
}

.name {
	margin-top: 18px;
	font-weight: 700;
}

.title {
	margin-top: 2px;
	font-size: 14px;
	color: #666;
}

/* quote box */
.quote {
	position: relative;
	background: #f2f2f2;
	padding: 30px 45px;
	border-radius: 4px;
	border: none;
}

.quote p {
	margin: 0;
	font-style: italic;
	color: #000;
}

.attrib {
	margin-top: 22px;
	text-align: right;
	color: #555;
	font-style: normal;
}

/* decorative open-quote */
.quote::before {
	content: "\201C";
	position: absolute;
	left: -28px;
	top: 0;
	font-size: clamp(60px, 9vw, 110px);
	line-height: 1;
	color: #8c232d;
	font-weight: 900;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-style: normal;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {

	.testimonial,
	.testimonial.right {
		gap: 28px;
	}
	.testimonial.right .portrait {
		order: 2;
	}

	.testimonial.right .quote {
		order: 1;
	}

	.portrait .img {
		width: 180px;
		height: 180px;
	}

	.quote {
		padding:
			clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) clamp(20px, 3vw, 30px) clamp(30px, 3vw, 40px);
	}

	.quote::before {
		font-size: 72px;
		/* even spacing */
		left: -0.25em;
		/* aligned visually */
		top: 0.1em;
	}
}

/* mobile vertical testimonial overrides */
@media (max-width: 640px) and (orientation: portrait) {
	.testimonial {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: left;
		gap: 0;
	}

	.testimonial.right {
		gap: 0;
	}

	.testimonial .portrait {
		order: -1 !important;
		margin-bottom: 1rem;
		text-align: center;
	}

	.testimonial .quote {
		order: 2 !important;
	}

	.testimonial .portrait .headshot {
		margin: 0 auto;
	}

	.testimonial .quote::before {
		font-size: 72px;
		left: -0.25em;
		top: 0.1em;
	}
}
