/*
 * TEP 2026: About Us (807:6143), Meet Our Team (807:6176), Careers (2741:3796 + 2866:9281)
 * and the saved rows built with them. Styles hang off the `class` setting of native Beaver Builder /
 * PowerPack modules, rows and columns. Values come from the "TEP Group 2026" design-system tokens.
 * Shared helpers reused from other files: .tep-wash-hero / .tep-hero-title / .tep-hero-lead /
 * .tep-section-title / .tep-btn / .tep-text-image__* / .tep-svc-card (tep-services.css),
 * .tep-eyebrow / .tep-map (tep-home.css), .tep-filters (tep-templates.css).
 */

/* ---------- Shared ---------- */
.tep-center-intro.fl-rich-text {
	max-width: 1160px; /* Figma intros run ~1150px wide (807:6179, 2723:6231); 1000 orphaned the last word */
	margin-inline: auto !important;
}

.tep-center-intro.fl-rich-text p:last-child,
.tep-hero-lead.fl-rich-text p + p {
	margin-bottom: 0;
}

.tep-hero-lead.fl-rich-text p + p {
	margin-top: 1.5em;
}

/* Outline button (Load More) */
.tep-btn-outline a.fl-button,
.tep-btn-outline a.fl-button:visited {
	padding: 10px 15px;
	border: 1.5px solid var(--ds-color-primary) !important;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-surface);
	box-shadow: none;
}

.tep-btn-outline a.fl-button .fl-button-text {
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-base);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ds-color-black);
}

/* Figma 787:63 Variant6: only the border turns blue */
.tep-btn-outline a.fl-button:hover,
.tep-btn-outline a.fl-button:focus-visible {
	border-color: var(--ds-color-secondary) !important;
	background: var(--ds-color-surface);
}

/* Red square arrow buttons shared by the carousels (Figma 2735:5886 / 2735:6051) */
.tep-values .owl-nav button.owl-prev,
.tep-values .owl-nav button.owl-next,
.tep-testimonials .owl-nav button.owl-prev,
.tep-testimonials .owl-nav button.owl-next,
.tep-photo-carousel .pp-swiper-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-primary) !important;
	color: var(--ds-color-surface) !important;
	opacity: 1;
	transition: transform var(--ds-transition-base);
}

.tep-values .owl-nav button.owl-prev:hover,
.tep-values .owl-nav button.owl-next:hover,
.tep-testimonials .owl-nav button.owl-prev:hover,
.tep-testimonials .owl-nav button.owl-next:hover,
.tep-testimonials .owl-nav button:focus-visible,
.tep-photo-carousel .pp-swiper-button:hover,
.tep-values .owl-nav button:focus-visible,
.tep-photo-carousel .pp-swiper-button:focus-visible {
	transform: scale(1.0667); /* 30 -> 32px */
}

.tep-values .owl-nav button svg,
.tep-testimonials .owl-nav button svg,
.tep-photo-carousel .pp-swiper-button svg {
	display: none;
}

/* Figma uses straight arrows (→), not the modules' chevrons */
.tep-values .owl-nav button::before,
.tep-testimonials .owl-nav button::before,
.tep-photo-carousel .pp-swiper-button::before {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--tep-arrow-icon) center / contain no-repeat;
	mask: var(--tep-arrow-icon) center / contain no-repeat;
}

.tep-values .owl-nav button.owl-prev::before,
.tep-testimonials .owl-nav button.owl-prev::before,
.tep-photo-carousel .pp-swiper-button.swiper-button-prev::before {
	transform: scaleX(-1);
}

.tep-values,
.tep-testimonials,
.tep-photo-carousel {
	--tep-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3C/svg%3E");
}

/* ---------- Value-prop cards (2734:4958): reuse .tep-svc-card, no link ---------- */
.tep-value-card .pp-infobox {
	padding: 20px;
}

/* ---------- Core values carousel (807:6147) on PowerPack Testimonials ---------- */
.fl-row.tep-values,
.fl-row.tep-values .fl-row-content-wrap {
	overflow: hidden;
}

.tep-values .pp-testimonials-wrap,
.tep-values .pp-testimonials {
	position: relative;
}

.tep-values .owl-stage-outer {
	overflow: visible;
	padding: 25px 0;
	/* Let the next card peek out to the right (Figma) but never over the intro on the left. */
	clip-path: inset(-10px -100vw -10px 0);
}

.tep-values .pp-testimonial {
	height: 100%;
	padding: 25px;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-surface);
	box-shadow: 0 4px 12.5px rgba(var(--ds-color-shadow-rgb), 0.15);
	text-align: left;
}

.tep-values .owl-stage {
	display: flex;
}

.tep-values .owl-item {
	display: flex;
}

.tep-values .pp-content-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
}

/* Eyebrow sits above the title visually (designation field). */
.tep-values .pp-title-wrapper {
	order: -1;
	margin: 0;
	padding: 0;
	text-align: left;
}

.tep-values .pp-testimonials-designation {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: var(--ds-line-body); /* Figma 20/30 */
	text-transform: uppercase;
	color: var(--ds-color-primary);
}

.tep-values .pp-testimonial .pp-testimonials-title {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-body); /* Figma 26/39 */
	color: var(--ds-color-black);
}

.tep-values .pp-testimonial .pp-testimonials-content p:last-child {
	margin-bottom: 0;
}

.tep-values .pp-testimonials-content,
.tep-values .pp-testimonials-content p {
	margin: 0;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	font-style: normal;
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

/* 2026-11-09 (BugHerd 87): the titles now carry the value name ("SAFETY FIRST: Protection Without Compromise",
   edited on staging 2026-11-09) and were asked to be larger and bold. Text pasted into the description with heading
   tags (two items arrive wrapped in <h3>) reads as body copy, so the cards stay consistent whatever is pasted. */
.tep-values .pp-testimonial .pp-testimonials-title {
	font-size: var(--ds-text-2xl);
	font-weight: var(--ds-weight-semibold);
}

.tep-values .pp-testimonial .pp-testimonials-content :is(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	font-weight: var(--ds-weight-regular);
	letter-spacing: normal;
	line-height: var(--ds-line-body);
	text-transform: none;
	color: var(--ds-color-text);
}

.tep-values .pp-testimonials-nav,
.tep-values .owl-nav {
	display: flex !important;
	gap: 25px;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	position: static;
}

.tep-values .owl-dots {
	display: none;
}

.tep-values-intro.fl-rich-text p {
	margin: 0;
}

/* Figma 807:6147: the carousel starts ~115px right of the 42% intro column, so a 560-580px card
   shows with the next one peeking in. */
@media (min-width: 1025px) {
	.fl-row.tep-values .fl-col-group > .fl-col:last-child > .fl-col-content {
		padding-left: clamp(40px, 8vw, 115px);
	}

	/* room for the active card's left shadow; the previous card sits 50px+ further left */
	.tep-values .owl-stage-outer {
		clip-path: inset(-10px -100vw -10px -25px);
	}
}

/* ---------- Text + Image on About / Careers (807:6146): 562.5 x 414.5 photo, text centred beside it ---------- */
.tep-text-image--about .tep-text-image__photo .fl-photo-img {
	aspect-ratio: 562.5 / 414.5;
}

/* ---------- Locations map ---------- */
.tep-map-labels {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 25px;
}

/* ---------- Origin story timeline (2749:5685) ---------- */
.tep-timeline {
	position: relative;
	margin: 0;
	padding: 0 0 0 5px;
	list-style: none;
}

.tep-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 5px;
	width: 2px;
	background: var(--ds-color-secondary-light);
}

.tep-timeline > li {
	position: relative;
	display: grid;
	grid-template-columns: 165px minmax(0, 1fr);
	gap: 50px;
	margin: 0 0 100px;
	padding: 0;
}

.tep-timeline > li:last-child {
	margin-bottom: 0;
}

.tep-timeline__year {
	position: relative;
	display: flex;
	justify-content: flex-start;
	align-self: start;
	margin: 0 !important;
	padding-left: 93px; /* badges share one left edge (Figma 2749:5685) */
}

/* connector + arrow from the line to the year badge */
.tep-timeline__year::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 93px;
	height: 2px;
	background: var(--ds-color-secondary-light);
}

.tep-timeline__year::after {
	content: "";
	position: absolute;
	top: calc(50% - 5px);
	left: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 7px solid var(--ds-color-secondary-light);
	transform: translateY(-1px);
}

/* Figma badge hugs the year with 15px each side. The right padding gives back the letter-spacing the browser adds
   after the last letter, so the year sits in the middle (a fixed 72px min-width let four-digit years spill right). */
.tep-timeline__year span {
	position: relative;
	display: inline-block;
	padding: 10px calc(15px - var(--ds-letter-caps)) 10px 15px;
	border: 1.5px solid var(--ds-color-primary);
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-surface);
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-base);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: 1.5;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ds-color-black);
}

/* Timeline row (About lsbkcifado25): network photo set in the builder like the stats band, plus Figma's light-blue
   glow from the top centre (3301:6797, fading out by 82% of the section's height). */
.tep-timeline-band > .fl-row-content-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 170% 100% at 50% 0, rgba(135, 185, 216, 0.2), rgba(135, 185, 216, 0) 82%);
}

.tep-timeline-band > .fl-row-content-wrap > .fl-row-content {
	position: relative;
}

.tep-timeline__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 860px; /* Figma copy column */
	padding-top: 8px;
}

.tep-timeline .tep-timeline__title {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-weight: var(--ds-weight-medium);
	line-height: 1.5;
	color: var(--ds-color-black);
}

.tep-timeline__body p {
	margin: 0;
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-timeline__body img {
	display: block;
	margin-top: 15px;
	border-radius: var(--ds-radius-sm);
}

.tep-timeline__body img.tep-timeline__img--wide {
	width: 300px;
	height: 132px;
	object-fit: cover;
	box-shadow: var(--ds-shadow-card);
}

.tep-timeline__body img.tep-timeline__img--logo {
	width: auto;
	max-width: 175px;
	max-height: 140px;
	height: auto;
}

/* ---------- Team grid (807:6179) ---------- */
.tep-team-grid .fl-post-column,
.tep-team-grid .fl-post-grid-post {
	height: 100%;
}

.tep-team-grid .fl-post-grid-post {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.tep-teamcard {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 25px;
	padding-bottom: 15px;
}

.tep-teamcard__img {
	display: block;
	aspect-ratio: 262.5 / 275;
	overflow: hidden;
	border-radius: var(--ds-radius-sm);
	box-shadow: var(--ds-shadow-card);
	background: var(--ds-color-field);
}

.tep-teamcard__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform var(--ds-transition-base);
}

.tep-teamcard:hover .tep-teamcard__name,
.tep-teamcard:focus-within .tep-teamcard__name {
	color: var(--ds-color-primary-dark);
}

.tep-teamcard__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tep-teamcard .tep-teamcard__name {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-xl);
	font-weight: var(--ds-weight-medium);
	line-height: 1.5;
	color: var(--ds-color-black);
}

.tep-teamcard__name a {
	color: inherit;
	text-decoration: none;
}

.tep-teamcard__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tep-teamcard__name a:focus-visible {
	outline: none;
}

.tep-teamcard:focus-within {
	outline: 2px solid var(--ds-color-secondary);
	outline-offset: 6px;
}

.tep-teamcard__role {
	margin: 0;
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

/* ---------- Culture photo carousel (2750:21100) on PowerPack Image Carousel ---------- */
.tep-photo-carousel .pp-image-carousel-wrapper {
	position: relative;
	padding-bottom: 80px;
}

.tep-photo-carousel .pp-image-carousel {
	box-sizing: content-box; /* the module's height setting (442px, Figma) is the photo height; padding is shadow room */
	overflow: hidden;
	padding: 25px 0;
}

.tep-photo-carousel .pp-image-carousel-wrapper .pp-swiper-button {
	padding: 0 !important;
}

/* Figma: 600px slides, 75px gaps, centred slide flanked by partial ones. The module only takes whole
   slides-per-view, so 2 per view in a 1275px track gives 600px slides; neighbours show past the track. */
@media (min-width: 1025px) {
	.fl-row.tep-photo-carousel-row,
	.fl-row.tep-photo-carousel-row > .fl-row-content-wrap {
		overflow: hidden;
	}

	.tep-photo-carousel .pp-image-carousel {
		width: min(1275px, 100%);
		margin-inline: auto;
		overflow: visible;
	}
}

.tep-photo-carousel .swiper-slide-inner,
.tep-photo-carousel .pp-carousel-image-container {
	overflow: hidden;
	border-radius: var(--ds-radius-sm);
}

.tep-photo-carousel .pp-image-carousel-item {
	box-shadow: var(--ds-shadow-card);
	border-radius: var(--ds-radius-sm);
}

.tep-photo-carousel .pp-image-carousel-wrapper .pp-swiper-button {
	position: absolute;
	top: auto !important;
	bottom: 0;
	right: auto;
	width: 30px !important;
	height: 30px !important;
	margin: 0;
	transform: none;
}

.tep-photo-carousel .pp-image-carousel-wrapper .swiper-button-prev {
	left: calc(50% - 42px);
}

.tep-photo-carousel .pp-image-carousel-wrapper .swiper-button-next {
	left: calc(50% + 12px);
}

.tep-photo-carousel .pp-swiper-button::after {
	display: none;
}

.tep-photo-carousel .swiper-pagination {
	display: none;
}

/* ---------- Careers bands: fade to white at the bottom (BugHerd 71, 72; 2026-11-09) ----------
   In Figma (2741:3796) the quote band and the EEO band end in white, so the network pattern doesn't stop in a hard
   line above the next section or the footer. The row's ::after already holds BB's blue overlay, so the fade uses
   ::before, layered over the background and overlay and under the content (z-index 2). */
.fl-row.tep-quote-band > .fl-row-content-wrap::before,
.fl-row.tep-eeo-band > .fl-row-content-wrap::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	height: 45%;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--ds-color-surface) 100%);
}

/* ---------- HR quote band (2750:21062) ----------
   PowerPack Testimonials in saved row 6614. Figma 3301:7597 annotation: slides on its own with a
   pause so each quote can be read (7s, pauses on hover/focus, stops for reduced motion: js/tep-a11y.js).
   Dots only show once there is more than one quote. */
.tep-quote-carousel .pp-testimonial,
.tep-quote-carousel .pp-content-wrapper {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	text-align: left;
}

.tep-quote-carousel .pp-testimonials-content p {
	margin: 0 0 25px;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-3xl);
	font-style: italic;
	line-height: 1.5;
	color: var(--ds-color-black);
}

.tep-quote-carousel .pp-title-wrapper {
	margin: 0;
	padding: 0;
}

.tep-quote-carousel .pp-testimonials-wrap .owl-theme .owl-dots {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 25px;
}

.tep-quote-carousel .pp-testimonials-wrap .owl-theme .owl-dots.disabled {
	display: none;
}

.tep-quote-carousel .pp-testimonials-wrap .owl-theme .owl-dots .owl-dot span {
	width: 12px;
	height: 12px;
	margin: 0;
	background: var(--ds-color-muted);
}

.tep-quote-carousel .pp-testimonials-wrap .owl-theme .owl-dots .owl-dot.active span,
.tep-quote-carousel .pp-testimonials-wrap .owl-theme .owl-dots .owl-dot:hover span,
.tep-quote-carousel .pp-testimonials-wrap .owl-theme .owl-dots .owl-dot:focus-visible span {
	background: var(--ds-color-primary);
}

.tep-quote-carousel .pp-testimonials-name {
	display: block;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-style: normal;
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: var(--ds-line-heading);
	text-transform: uppercase;
	color: var(--ds-color-black);
}

/* job title under the name */
.tep-quote-carousel .pp-testimonials-designation {
	margin-top: 5px;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

/* ---------- Equal Opportunity Employer (2937:5203) ---------- */
.tep-eeo.fl-rich-text a {
	font-weight: var(--ds-weight-bold);
	color: var(--ds-color-primary);
}

.tep-eeo.fl-rich-text a:hover,
.tep-eeo.fl-rich-text a:focus-visible {
	color: var(--ds-color-primary-dark);
}

/* ---------- Job board (Paycor Recruiting iframe) ---------- */
.tep-jobboard,
.tep-jobboard iframe {
	width: 100% !important;
	max-width: 100%;
	border: 0;
}

.tep-jobboard iframe {
	min-height: 600px;
}

.tep-jobboard iframe ~ .tep-jobboard__fallback {
	display: none;
}

.tep-jobboard__fallback {
	margin: 0;
	text-align: center;
}

.tep-jobboard__fallback a {
	font-weight: var(--ds-weight-bold);
	color: var(--ds-color-primary);
}

.tep-jobboard__placeholder {
	padding: 40px;
	border: 1px dashed var(--ds-color-muted);
	text-align: center;
}

/* ---------- "Design option B" divider ---------- */
.tep-design-divider.fl-rich-text {
	padding: 18px 25px;
	border: 2px dashed var(--ds-color-black);
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-field);
	text-align: center;
}

.tep-design-divider.fl-rich-text p {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	text-transform: uppercase;
	color: var(--ds-color-black);
}

.tep-design-divider.fl-rich-text p + p {
	margin-top: 6px;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-sm);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ds-color-text);
}

/* ---------- Version B job cards (2866:9473) ---------- */
.tep-filters--jobs {
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.tep-filters--jobs .tep-filters__search {
	max-width: none;
}

.tep-filters--jobs .tep-filters__search .bb-field {
	width: 100%;
	background-color: rgba(153, 153, 153, 0.15);
}

.tep-jobcard > .fl-col-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 25px;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-surface);
	box-shadow: 0 4px 25px 5px rgba(var(--ds-color-shadow-rgb), 0.1);
}

.tep-jobcard .tep-jobcard__title {
	margin: 0;
	padding-bottom: 25px;
	border-bottom: 1px solid var(--ds-color-secondary-light);
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-lg);
	font-weight: var(--ds-weight-medium);
	line-height: 1.5;
	color: var(--ds-color-black);
}

.tep-jobcard__meta.fl-rich-text dl {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 25px;
	margin: 25px 0;
}

.tep-jobcard__meta.fl-rich-text dl > div:first-child {
	grid-column: 1 / -1;
}

.tep-jobcard__meta.fl-rich-text dt {
	margin: 0 0 15px;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-sm);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ds-color-text);
}

.tep-jobcard__meta.fl-rich-text dd {
	margin: 0;
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-jobcard .fl-module-button {
	margin-top: auto;
}

.tep-sample-note.fl-rich-text p {
	margin: 0;
	font-size: var(--ds-text-sm);
	font-style: italic;
	text-align: center;
	color: var(--ds-color-text);
}

/* Three equal cards with 50px gutters (Figma 2866:9473); BB's column margins made the middle one narrower */
@media (min-width: 769px) {
	.fl-col-group > .fl-col.tep-jobcard:nth-child(1) > .fl-col-content {
		margin-right: 33.33px;
		margin-left: 0;
	}

	.fl-col-group > .fl-col.tep-jobcard:nth-child(2) > .fl-col-content {
		margin-right: 16.67px;
		margin-left: 16.67px;
	}

	.fl-col-group > .fl-col.tep-jobcard:nth-child(3) > .fl-col-content {
		margin-right: 0;
		margin-left: 33.33px;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.tep-filters--jobs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tep-timeline > li {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 25px;
		margin-bottom: 64px;
	}

	.tep-timeline__year {
		padding-left: 48px;
	}

	.tep-timeline__year::before {
		width: 48px;
	}

	.tep-quote-carousel .pp-testimonials-content p {
		font-size: var(--ds-text-2xl);
	}

	/* Keep the photos near Figma's 600:442 shape when one or two slides fill the width (module heights 340/260 cropped heads at 768) */
	.fl-module.tep-photo-carousel .pp-image-carousel {
		height: clamp(260px, 60vw, 442px) !important;
	}
}

@media (max-width: 768px) {
	.tep-filters--jobs {
		grid-template-columns: 1fr;
	}

	/* Figma mobile timeline (About 3301:6598): badge beside the text, 28px connector, 25px to the copy */
	.tep-timeline > li {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 25px;
		margin-bottom: 50px;
		padding-left: 28px;
	}

	.tep-timeline__year {
		justify-content: flex-start;
		padding-left: 0;
	}

	.tep-timeline__year::before {
		left: -28px;
		right: auto;
		width: 28px;
	}

	.tep-timeline__year::after {
		left: -28px;
	}

	.tep-timeline__year span {
		padding: 10px calc(12px - var(--ds-letter-caps)) 10px 12px;
	}

	/* The copy column is ~150px wide here; the TEP Fiber / TEP Canada logos are 175px */
	.tep-timeline__body img,
	.tep-timeline__body img.tep-timeline__img--logo,
	.tep-timeline__body img.tep-timeline__img--wide {
		max-width: 100%;
		height: auto;
	}

	/* Value-prop cards (Figma 3301:6602): icon beside the text, as on desktop (PowerPack stacks layout 3 on phones) */
	.fl-node-3ys6d1jpgwet .tep-svc-card .layout-3-wrapper {
		flex-direction: row !important;
		align-items: flex-start;
		gap: 40px;
	}

	.fl-node-3ys6d1jpgwet .tep-svc-card .pp-icon-wrapper {
		flex: 0 0 50px;
		margin: 0;
	}

	.tep-timeline__body {
		padding-top: 0;
	}

	.tep-timeline__body img.tep-timeline__img--wide {
		width: 100%;
		max-width: 300px;
	}

	.tep-quote-carousel .pp-testimonials-content p {
		font-size: var(--ds-text-xl);
	}

	.tep-photo-carousel .pp-image-carousel-wrapper {
		padding-bottom: 64px;
	}

	.tep-jobcard {
		margin-bottom: 25px;
	}
}

/* BB's column post grid offsets itself with negative side margins; on phones auto-spacing zeroes
   the column padding that normally absorbs them, which caused horizontal scroll (same fix as .tep-ocard-grid). */
@media (max-width: 768px) {
	.tep-team-grid .fl-post-grid {
		margin-right: 0;
		margin-left: 0;
	}

	.tep-team-grid .fl-post-column {
		padding-right: 0;
		padding-left: 0;
	}
}

/* ---------- Careers: Taking the First Step (Figma 3085:5309 / mobile 3301:7614), added 2026-11-02 ----------
   Row class `tep-first-step`; three PowerPack Info Boxes (no-icon layout) with class `tep-step-card`.
   The step number is the Info Box "Title Prefix" field, so editors change it in the module panel. */
.tep-first-step .fl-col-group:has(.tep-step-card) {
	display: flex;
	gap: 50px;
	margin-top: 50px;
}

.tep-first-step .fl-col-group:has(.tep-step-card)::before,
.tep-first-step .fl-col-group:has(.tep-step-card)::after {
	display: none;
}

.tep-first-step .fl-col-group:has(.tep-step-card) > .fl-col {
	float: none;
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
}

.tep-first-step .fl-col-group:has(.tep-step-card) > .fl-col > .fl-col-content,
.tep-step-card,
.tep-step-card .fl-module-content,
.tep-step-card .pp-infobox-wrap,
.fl-module.tep-step-card .fl-module-content .pp-infobox-wrap .pp-infobox {
	height: 100%;
	margin: 0;
}

/* PowerPack centres Info Box content in equal-height groups (same specificity, loads later); keep it top-aligned */
.fl-col-group-equal-height .fl-module.tep-step-card .fl-module-content .pp-infobox-wrap .pp-infobox,
.fl-module.tep-step-card .fl-module-content .pp-infobox-wrap .pp-infobox {
	justify-content: flex-start;
	padding: 25px;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-surface);
	box-shadow: 0 4px 25px 5px rgba(var(--ds-color-shadow-rgb), 0.1);
	text-align: left;
}

.fl-module.tep-step-card .pp-heading-wrapper {
	display: block;
	flex: 0 0 auto;
}

.fl-module.tep-step-card .pp-heading-wrapper .pp-infobox-title-prefix {
	display: block;
	margin: 0 0 15px;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-5xl);
	font-weight: var(--ds-weight-medium);
	line-height: 1.5;
	color: var(--ds-color-primary);
}

.tep-step-card .pp-infobox-title-wrapper .pp-infobox-title {
	margin: 0 0 15px;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-xl);
	font-weight: var(--ds-weight-medium);
	line-height: 1.5;
	color: var(--ds-color-black);
}

.tep-step-card .pp-infobox-description,
.tep-step-card .pp-description-wrap p {
	margin: 0;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

/* The step columns were cloned from the sub-service band, whose per-column padding/margins
   (node CSS) offset the middle card and widened the gaps. Figma: 3 x 366.67px cards, 50px apart. */
.tep-first-step .fl-col-group:has(.tep-step-card) > .fl-col > .fl-col-content,
.tep-first-step .fl-module.tep-step-card,
.tep-first-step .fl-module.tep-step-card > .fl-module-content {
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 768px) {
	/* Mobile 3301:7614: cards stacked full width, 25px apart */
	.tep-first-step .fl-col-group:has(.tep-step-card) {
		flex-direction: column;
		gap: 25px;
		margin-top: 35px;
	}

	/* flex-basis 0 (the desktop equal-width rule) collapses stacked columns to 0 height */
	.tep-first-step .fl-col-group:has(.tep-step-card) > .fl-col {
		flex: 0 0 auto;
		width: 100% !important;
		max-width: none; /* BB caps stacked "small" columns at 400px, centred */
		margin-right: 0;
		margin-left: 0;
	}
}

/* ---------- Phones: About value-prop cards end flush (BugHerd 82, 2026-11-09) ----------
   BB gives each stacked column's content a 16px bottom margin, which put 16px more under the stack than above it. */
@media (max-width: 768px) {
	/* 25px between the cards (Figma's mobile card gap) instead of BB's 16px stacked-column margin */
	.fl-row.fl-node-3ys6d1jpgwet .fl-col > .fl-col-content {
		margin-bottom: 25px !important;
	}

	.fl-row.fl-node-3ys6d1jpgwet .fl-col:last-child > .fl-col-content {
		margin-bottom: 0 !important;
	}
}
