/*
 * TEP 2026: Services landing (807:6275) and Service detail (807:6303) sections.
 * Styles hang off the `class` setting of native Beaver Builder / PowerPack modules, rows and columns,
 * so editors keep editing content in the module panels. Values come from the "TEP Group 2026"
 * design-system tokens (--ds-*).
 */

/* ---------- Shared type helpers ---------- */
.tep-eyebrow-lg.fl-rich-text {
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-xl);
	font-weight: var(--ds-weight-semibold);
	letter-spacing: var(--ds-letter-caps);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ds-color-primary);
}

.tep-eyebrow-lg.fl-rich-text p,
.tep-hero-lead.fl-rich-text p,
.tep-section-intro.fl-rich-text p {
	margin: 0;
}

.tep-hero-lead.fl-rich-text {
	max-width: 560px;
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-hero-title.fl-heading {
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-display);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-tight);
	color: var(--ds-color-black);
}

.tep-hero-title .tep-accent {
	color: var(--ds-color-secondary);
}

.tep-section-title.fl-heading {
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-5xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-black);
}

.tep-section-intro.fl-rich-text {
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

/* Native button styled as .bb-btn */
.tep-btn a.fl-button,
.tep-btn a.fl-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 47px; /* Figma button height */
	padding: 10px 15px;
	border: 2px solid var(--ds-color-primary);
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-primary);
	box-shadow: none;
}

.tep-btn a.fl-button:hover,
.tep-btn a.fl-button:focus-visible {
	border-color: var(--ds-color-secondary);
	background: var(--ds-color-secondary);
}

.tep-btn a.fl-button .fl-button-text,
.tep-btn a.fl-button:hover .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-surface);
}

/* ---------- Image-wash hero (807:6305) ---------- */
.tep-wash-hero .fl-row-content-wrap {
	background-position: center center;
}

/* ---------- Text + Image (2750:13557) ---------- */
.tep-text-image__photo .fl-photo-content,
.tep-text-image__photo .fl-photo-img {
	display: block;
	width: 100%;
	border-radius: var(--ds-radius-sm);
}

.tep-text-image__photo .fl-photo-img {
	box-shadow: var(--ds-shadow-card);
	aspect-ratio: 525 / 450;
	object-fit: cover;
}

/* 2026-11-09 (BugHerd 25): the photo fills the height of the text beside it (Figma "fill"), so its top and bottom
   line up with the heading and the last line of copy. The text column sets the row height; the image is laid
   over its column (absolute) and cropped with object-fit. Desktop only; the stacked phone layout keeps the
   525 / 450 ratio above. The About/Careers variant (--about) is excluded: Figma centres a taller photo there. */
@media (min-width: 993px) {
	.fl-row.tep-text-image:not(.tep-text-image--about) .fl-col-group {
		display: flex;
		align-items: stretch;
	}

	.fl-row.tep-text-image:not(.tep-text-image--about) .fl-col-group::before,
	.fl-row.tep-text-image:not(.tep-text-image--about) .fl-col-group::after {
		display: none;
	}

	.fl-row.tep-text-image:not(.tep-text-image--about) .fl-col {
		float: none;
	}

	.fl-row.tep-text-image:not(.tep-text-image--about) .tep-text-image__media > .fl-col-content {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.fl-row.tep-text-image:not(.tep-text-image--about) .tep-text-image__photo {
		position: relative;
		flex: 1 1 auto;
		min-height: 320px;
	}

	.fl-row.tep-text-image:not(.tep-text-image--about) .tep-text-image__photo .fl-photo-content {
		position: absolute;
		inset: 0;
	}

	.fl-row.tep-text-image:not(.tep-text-image--about) .tep-text-image__photo .fl-photo-img {
		height: 100%;
		aspect-ratio: auto;
	}
}

.tep-text-image__copy.fl-rich-text p:last-child {
	margin-bottom: 0;
}

/* ---------- Info Box cards: service cards + "Discover More Services" (2695:6843, 2909:6767) ---------- */
.tep-svc-card,
.tep-svc-card .fl-module-content,
.tep-svc-card .pp-infobox-wrap,
.tep-svc-card .pp-infobox {
	height: 100%;
}

.tep-svc-card .pp-infobox {
	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;
}

.tep-svc-card .layout-3-wrapper {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	height: 100%;
}

.tep-svc-card .pp-icon-wrapper {
	flex: 0 0 50px;
}

.tep-svc-card .pp-infobox-image img {
	width: 50px;
	height: 50px;
	max-width: none;
	object-fit: contain;
}

.tep-svc-card .pp-heading-wrapper {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-self: stretch;
	min-width: 0;
}

.tep-svc-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: var(--ds-line-heading);
	color: var(--ds-color-black);
}

.tep-svc-card .pp-infobox-description {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-svc-card .pp-description-wrap p {
	margin: 0;
}

.tep-svc-card .pp-infobox-button {
	margin-top: auto;
	padding-top: 30px;
}

.tep-svc-card .pp-infobox-button p {
	margin: 0;
}

.tep-svc-card a.pp-more-link {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	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-decoration: none;
	text-transform: uppercase;
	color: var(--ds-color-black);
}

/* Figma's 22px line arrow, the same one the Home industry cards use (tep-home.css .tep-infocard). The "\2192"
   text glyph it replaces rendered as a thin hairline (BugHerd 17, 20–23, 26–28, 36, 37, 41, 43, 46, 50, 53, 56). */
.tep-svc-card a.pp-more-link::after {
	content: "";
	flex: 0 0 22px;
	width: 22px;
	height: 14.72px;
	background: var(--tep-arrow-red) center / contain no-repeat;
	transition: transform var(--ds-transition-base);
}

.tep-svc-card a.pp-more-link:hover::after,
.tep-svc-card a.pp-more-link:focus-visible::after {
	transform: translateX(5px);
}

/* Card hover, matching the Home industry cards (Figma Info Box Variant3 → Variant5, 787:973 / 2623:7061):
   the card fills with the black → blue gradient and everything on it turns white. Only cards with a
   "Learn more" link get it; the About value-prop cards (.tep-value-card) reuse this class without a link.
   Added 2026-11-09 for the same BugHerd tasks as the arrow above. */
.tep-svc-card .pp-infobox:has(a.pp-more-link):hover,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within {
	background: linear-gradient(180deg, var(--ds-color-black) 0%, var(--ds-color-secondary) 100%);
}

.tep-svc-card .pp-infobox-title-wrapper .pp-infobox-title,
.tep-svc-card .pp-infobox-description,
.tep-svc-card .pp-description-wrap p,
.tep-svc-card--list .pp-description-wrap .tep-wwd__label,
.tep-svc-card--list .pp-description-wrap ul.tep-wwd,
.tep-svc-card a.pp-more-link {
	transition: color var(--ds-transition-base);
}

.tep-svc-card .pp-infobox:has(a.pp-more-link):hover .pp-infobox-title-wrapper .pp-infobox-title,
.tep-svc-card .pp-infobox:has(a.pp-more-link):hover .pp-infobox-description,
.tep-svc-card .pp-infobox:has(a.pp-more-link):hover .pp-description-wrap p,
.tep-svc-card .pp-infobox:has(a.pp-more-link):hover .pp-description-wrap .tep-wwd__label,
.tep-svc-card .pp-infobox:has(a.pp-more-link):hover .pp-description-wrap ul.tep-wwd,
.tep-svc-card .pp-infobox:has(a.pp-more-link):hover a.pp-more-link,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within .pp-infobox-title-wrapper .pp-infobox-title,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within .pp-infobox-description,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within .pp-description-wrap p,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within .pp-description-wrap .tep-wwd__label,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within .pp-description-wrap ul.tep-wwd,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within a.pp-more-link {
	color: var(--ds-color-surface);
}

/* Same icon treatment as the Home cards: the opaque blue-on-white PNG icons become white lines. */
.tep-svc-card .pp-infobox:has(a.pp-more-link):hover .pp-infobox-image img,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within .pp-infobox-image img {
	filter: grayscale(1) invert(1) brightness(2.6);
	mix-blend-mode: screen;
}

.tep-svc-card .pp-infobox:has(a.pp-more-link):hover a.pp-more-link::after,
.tep-svc-card .pp-infobox:has(a.pp-more-link):focus-within a.pp-more-link::after {
	background-image: var(--tep-arrow-white);
}

/* ---------- Sub-service cards (2750:20687) ---------- */
.tep-subsvc-card,
.tep-subsvc-card .fl-module-content,
.tep-subsvc-card .pp-infobox-wrap,
.tep-subsvc-card .pp-infobox {
	height: 100%;
}

.tep-subsvc-card .pp-infobox {
	padding: 20px;
	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;
}

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

.tep-subsvc-card .pp-infobox-button p {
	margin: 0;
}

/* Regular-weight Arial 18 as in Figma; red text under 24px uses #C80006 (6.1:1 on white). */
.tep-subsvc-card a.pp-more-link {
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	font-weight: var(--ds-weight-regular);
	line-height: var(--ds-line-body);
	text-decoration: none;
	color: var(--ds-color-primary-dark);
}

.tep-subsvc-card a.pp-more-link:hover,
.tep-subsvc-card a.pp-more-link:focus-visible {
	text-decoration: underline;
	color: var(--ds-color-primary-dark);
}

/* Expandable sub-service cards (2026-11-02, boss feedback; Figma 3280:4779). Without JS the full text
   shows. js/tep-subsvc.js adds .is-clamped (3 lines) and a "Read More..." button that expands in place. */
.tep-subsvc-card .pp-infobox-description,
.tep-subsvc-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);
}

.tep-subsvc-card .pp-description-wrap p + p {
	margin-top: 10px;
}

.tep-subsvc-card.is-clamped .pp-description-wrap {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* Clamped text is one box, so later paragraphs flow on as part of the 3 lines */
.tep-subsvc-card.is-clamped .pp-description-wrap p {
	display: inline;
}

.tep-subsvc-card.is-clamped .pp-description-wrap p + p::before {
	content: " ";
}

.tep-subsvc-card__toggle {
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	font-weight: var(--ds-weight-regular);
	line-height: var(--ds-line-body);
	color: var(--ds-color-primary-dark);
}

/* bb-theme paints buttons on hover/focus/active; this one stays a text link */
.tep-subsvc-card button.tep-subsvc-card__toggle:hover,
.tep-subsvc-card button.tep-subsvc-card__toggle:focus,
.tep-subsvc-card button.tep-subsvc-card__toggle:active {
	border: 0;
	background: none;
	box-shadow: none;
	text-decoration: underline;
	color: var(--ds-color-primary-dark);
}

.tep-subsvc-card button.tep-subsvc-card__toggle:focus-visible {
	outline: 2px solid var(--ds-color-primary-dark);
	outline-offset: 2px;
}

/* While a card is open, only that card grows: the row stops stretching its columns and
   js/tep-subsvc.js holds the other cards at the height they had before. */
.fl-col-group.tep-subsvc-has-open {
	align-items: flex-start;
}

.fl-col-group.tep-subsvc-has-open .tep-subsvc-card,
.fl-col-group.tep-subsvc-has-open .tep-subsvc-card .fl-module-content,
.fl-col-group.tep-subsvc-has-open .tep-subsvc-card .pp-infobox-wrap,
.fl-col-group.tep-subsvc-has-open .tep-subsvc-card .pp-infobox {
	height: auto;
}

/* "What we do" service cards (Figma Info Box Variant2, e.g. 807:6275): no icon, short intro,
   italic label and a bullet list, "Learn more" pinned to the bottom. Added 2026-11-02. */
/* PowerPack's no-icon layout lets the heading wrapper grow (flex: 1 1 0), which pushed short
   descriptions (e.g. "Don't See What You're Looking For?") to the middle of the card. */
.tep-svc-card--list .pp-heading-wrapper {
	flex: 0 0 auto;
}

/* Figma has 5px under the label; review feedback (2026-11-02) asked for a little more air before the list */
.tep-svc-card--list .pp-description-wrap .tep-wwd__label {
	margin: 20px 0 10px;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-sm);
	font-style: italic;
	line-height: var(--ds-line-body);
}

.tep-svc-card--list .pp-description-wrap ul.tep-wwd {
	margin: 0;
	padding-left: 20px;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-sm);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-svc-card--list .pp-description-wrap ul.tep-wwd li {
	margin: 0;
}

/* ---------- "[Service] Projects" (2723:4791) ---------- */
.tep-projects-intro.fl-rich-text {
	display: flex;
	flex-direction: column;
	gap: 15px;
	justify-content: center;
	height: 100%;
	padding: 50px 50px 60px;
	border-radius: var(--ds-radius-sm);
	background: linear-gradient(180deg, var(--ds-color-black) 0%, var(--ds-color-secondary) 100%);
	color: var(--ds-color-surface);
}

.tep-projects-intro.fl-rich-text h2 {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-6xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-surface);
}

.tep-projects-intro.fl-rich-text p {
	margin: 0;
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-surface);
}

.tep-ocard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 25px;
	height: 100%;
	min-height: 300px;
	padding: 35px 25px;
	overflow: hidden;
	border-radius: var(--ds-radius-sm);
	background: var(--ds-color-black);
	box-shadow: var(--ds-shadow-card);
	color: var(--ds-color-surface);
	isolation: isolate;
}

.tep-ocard__media,
.tep-ocard__media img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.tep-ocard::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, var(--ds-color-black) 100%);
}

.tep-ocard .tep-ocard__title {
	margin: 0;
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-2xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-surface);
}

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

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

.tep-ocard .tep-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tep-ocard .bb-tag-outline {
	color: var(--ds-color-surface);
}

/* Small cards: image only until hover/focus, per the design. Title stays readable for screen readers. */
.tep-ocard--small {
	min-height: 300px;
}

.tep-ocard--small::before {
	opacity: 0;
	transition: opacity var(--ds-transition-base);
}

.tep-ocard--small .tep-ocard__title,
.tep-ocard--small .tep-tags {
	opacity: 0;
	transition: opacity var(--ds-transition-base);
}

.tep-ocard:hover::before,
.tep-ocard:focus-within::before {
	background: var(--tep-card-hover-overlay);
}

.tep-ocard--small:hover::before,
.tep-ocard--small:focus-within::before,
.tep-ocard--small:hover .tep-ocard__title,
.tep-ocard--small:focus-within .tep-ocard__title,
.tep-ocard--small:hover .tep-tags,
.tep-ocard--small:focus-within .tep-tags {
	opacity: 1;
}

.tep-ocard.tep-ocard--small .tep-ocard__title {
	font-size: var(--ds-text-xl);
}

.tep-ocard-grid .fl-post-column,
.tep-ocard-grid .fl-post-grid-post {
	height: 100%;
}

.tep-ocard-feature .tep-ocard {
	min-height: 635px;
}

/* Featured card hover (BugHerd 42, 45, 49, 52, 57, 35; 2026-11-09): the project's excerpt opens under the tags,
   as on the Home featured card (Figma 2649:4901 → 4903, tep-home.css .tep-projcard__excerpt). The excerpt line was
   added to the feature card template on the Service and Industry detail pages by scripts/content-edits-20261109.php.
   The negative margin cancels the card's 25px gap while the excerpt is closed. */
.tep-ocard__excerpt {
	max-height: 0;
	margin-top: -25px;
	overflow: hidden;
	opacity: 0;
	font-family: var(--ds-font-body);
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-surface);
	transition: max-height var(--ds-transition-base), opacity var(--ds-transition-base), margin-top var(--ds-transition-base);
}

.tep-ocard__excerpt p {
	margin: 0;
}

.tep-ocard:hover .tep-ocard__excerpt,
.tep-ocard:focus-within .tep-ocard__excerpt {
	max-height: 12em;
	margin-top: 0;
	opacity: 1;
}

/* Touch screens have no hover: show the excerpt, as the small cards show their titles. */
@media (hover: none) {
	.tep-ocard__excerpt {
		max-height: none;
		margin-top: 0;
		opacity: 1;
	}
}

@media (max-width: 992px) {
	.tep-ocard-feature .tep-ocard {
		min-height: 420px;
	}
}

@media (hover: none) {
	.tep-ocard--small::before,
	.tep-ocard--small .tep-ocard__title,
	.tep-ocard--small .tep-tags {
		opacity: 1;
	}
}

/* ---------- FAQ accordion (2750:13582) ---------- */
.fl-module.tep-faq .fl-accordion-item,
.fl-module.tep-faq .fl-accordion-item:not(:last-child) {
	margin: 0 0 35px;
	padding: 0 0 35px;
	border: 0;
	border-bottom: 1px solid var(--ds-color-secondary-light);
	border-radius: 0;
	background: transparent;
}

.tep-faq .fl-accordion-button {
	gap: 25px;
	padding: 0;
	background: transparent;
}

.tep-faq .fl-accordion-button-label {
	font-family: var(--ds-font-heading);
	font-size: var(--ds-text-xl);
	font-weight: var(--ds-weight-medium);
	line-height: var(--ds-line-heading);
	color: var(--ds-color-black);
}

.tep-faq .fl-accordion-button-icon,
.tep-faq .fl-accordion-button-icon::before {
	font-size: 22px;
	color: var(--ds-color-primary);
	opacity: 1;
}

.tep-faq .fl-accordion-content {
	padding: 20px 0 0;
	font-size: var(--ds-text-base);
	line-height: var(--ds-line-body);
	color: var(--ds-color-text);
}

.tep-faq .fl-accordion-content p:last-child {
	margin-bottom: 0;
}

/* PowerPack centres Info Box content in equal-height columns (6-class node rule);
   keep card content top-aligned as in Figma. */
.fl-col-group-equal-height .fl-module.fl-module-pp-infobox.tep-subsvc-card .fl-module-content .pp-infobox-wrap .pp-infobox,
.fl-col-group-equal-height .fl-module.fl-module-pp-infobox.tep-svc-card .fl-module-content .pp-infobox-wrap .pp-infobox,
.fl-module.tep-subsvc-card .fl-module-content .pp-infobox-wrap .pp-infobox,
.fl-module.tep-svc-card .fl-module-content .pp-infobox-wrap .pp-infobox {
	justify-content: flex-start;
}

/* Space between the sub-service band and the shared client logo strip that follows it (Figma: 115px). */
.fl-row.tep-subsvc-band + .fl-row > .fl-row-content-wrap {
	padding-top: 115px;
}

@media (max-width: 768px) {
	.fl-row.tep-subsvc-band + .fl-row > .fl-row-content-wrap {
		padding-top: 40px;
	}
}

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

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

@media (max-width: 768px) {
	.tep-projects-intro.fl-rich-text {
		padding: 35px 25px 40px;
	}

	.tep-svc-card .layout-3-wrapper {
		flex-direction: column;
		gap: 20px;
	}

	.tep-svc-card .pp-icon-wrapper {
		flex-basis: auto;
	}
}

/* BB caps stacked "small" columns at 400px on mobile; let these sections use the full width. */
@media (max-width: 768px) {
	.fl-row.tep-text-image .fl-col.fl-col-small,
	.fl-row.tep-subsvc-band .fl-col.fl-col-small,
	.fl-row.tep-service-projects .fl-col.fl-col-small,
	.fl-row.tep-discover .fl-col.fl-col-small {
		max-width: none;
		margin-right: 0;
		margin-left: 0;
	}
}

/* ---------- Design review 2026-10-09 (Figma 807:6303 / 807:6352 / 807:6275 / 807:6331) ---------- */

/* Figma sets these headings at 150% line height (measured: Info Box titles 26/39, section and
   project-intro titles 48/72 and 54/80). Desktop only; tighter on small screens. */
.tep-svc-card .pp-infobox-title-wrapper .pp-infobox-title,
.tep-subsvc-card .pp-infobox-title-wrapper .pp-infobox-title,
.tep-text-image .tep-section-title.fl-heading,
.tep-text-image .tep-section-title .fl-heading-text,
.tep-projects-intro.fl-rich-text h2 {
	line-height: var(--ds-line-body);
	text-wrap: balance;
}

/* Text + Image body: one blank line between paragraphs, heading 50px above the copy (Figma). */
.tep-text-image__copy.fl-rich-text p {
	margin: 0 0 27px;
}

/* Sub-service band + FAQ band: light-blue glow fading down from the top edge (Figma 2750:20687, 2750:13582). */
.fl-row.tep-subsvc-band > .fl-row-content-wrap::before,
.fl-row.tep-faq-band > .fl-row-content-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 50% 100% at 50% 0%, rgba(135, 185, 216, 0.15) 0%, rgba(135, 185, 216, 0) 100%),
		linear-gradient(180deg, rgba(135, 185, 216, 0.1) 0%, rgba(135, 185, 216, 0) 100%);
}

.fl-row.tep-subsvc-band > .fl-row-content-wrap > .fl-row-content,
.fl-row.tep-faq-band > .fl-row-content-wrap > .fl-row-content {
	position: relative;
	z-index: 1;
}

/* "[Service] Projects" (2723:4791): ~50/50 columns (set in the layouts: 51.5/48.5 = 600/565px as in Figma);
   the tall feature card fills the column height instead of floating at a fixed 635px. */
.fl-row.tep-service-projects .fl-col-group-equal-height .fl-col:last-child .fl-col-content {
	justify-content: flex-start;
}

.fl-row.tep-service-projects .fl-module.tep-ocard-feature {
	flex: 1 1 auto;
}

.fl-row.tep-service-projects .tep-ocard-feature .fl-module-content,
.fl-row.tep-service-projects .tep-ocard-feature .fl-post-grid {
	height: 100%;
}

/* Wash hero on Service and Industry detail pages (807:6305 / 807:6354): Figma spaces the eyebrow
   ~47px above the title and the title ~45px above the lead. Scoped to children of /services/ and /industries/. */
.parent-pageid-6262 .tep-wash-hero .tep-eyebrow-lg,
.parent-pageid-6513 .tep-wash-hero .tep-eyebrow-lg {
	margin-bottom: 29px;
}

.parent-pageid-6262 .tep-wash-hero .tep-hero-title,
.parent-pageid-6513 .tep-wash-hero .tep-hero-title {
	margin-bottom: 23px;
}

@media (max-width: 768px) {
	.tep-svc-card .pp-infobox-title-wrapper .pp-infobox-title,
	.tep-subsvc-card .pp-infobox-title-wrapper .pp-infobox-title,
	.tep-text-image .tep-section-title.fl-heading,
	.tep-text-image .tep-section-title .fl-heading-text,
	.tep-projects-intro.fl-rich-text h2 {
		line-height: var(--ds-line-snug);
	}

	.tep-text-image__copy.fl-rich-text p {
		margin-bottom: 20px;
	}

	.parent-pageid-6262 .tep-wash-hero .tep-eyebrow-lg,
	.parent-pageid-6513 .tep-wash-hero .tep-eyebrow-lg,
	.parent-pageid-6262 .tep-wash-hero .tep-hero-title,
	.parent-pageid-6513 .tep-wash-hero .tep-hero-title {
		margin-bottom: 15px;
	}
}

/* Section rhythm on Service/Industry detail pages: Figma keeps ~115-130px between section content.
   Stacked row paddings (100 + 100) left 175-245px gaps, so trim where rows meet. Desktop/tablet only;
   phones keep the module's own mobile padding. */
@media (min-width: 769px) {
	.fl-row.tep-service-projects > .fl-row-content-wrap {
		padding-top: 55px;
		padding-bottom: 80px;
	}

	.fl-row.tep-service-projects + .fl-row.tep-discover > .fl-row-content-wrap {
		padding-top: 0;
	}

	.fl-row.tep-faq-band + .fl-row.tep-discover > .fl-row-content-wrap {
		padding-top: 72px;
	}
}

/* ---------- Industry cards: global saved row "TEP – Industry Cards" (2026-11-09) ----------
   Industries page and all four industry pages show this one section (BugHerd 28, 29, 30, 32, 36: match the
   attached mockup = Figma Industries 807:6331): network-line background (row photo setting, same image as the
   hero) fading to white at the bottom, and the intro held to ~690px so it sits on two centred lines. */
.fl-row.tep-industry-cards > .fl-row-content-wrap {
	position: relative;
}

.fl-row.tep-industry-cards > .fl-row-content-wrap::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	height: 35%;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--ds-color-surface) 100%);
}

.fl-row.tep-industry-cards > .fl-row-content-wrap > .fl-row-content {
	position: relative;
	z-index: 1;
}

.fl-row.tep-industry-cards .tep-section-intro.fl-rich-text {
	max-width: 690px;
	margin-right: auto;
	margin-left: auto;
}

/* ---------- Phones: "[Service/Industry] Projects" stack evenly spaced (BugHerd 80, 2026-11-09) ----------
   Intro, two photo cards and the featured card were 21px, 37px and 72px apart (intro margin, BB post-column padding,
   then column padding plus the stacked column's gap). One 25px gap throughout (Figma's mobile scale is in 5px steps). */
@media (max-width: 768px) {
	.fl-row.tep-service-projects .tep-projects-intro.fl-module {
		margin-bottom: 25px;
	}

	.fl-row.tep-service-projects .tep-ocard-grid .fl-post-column {
		padding-bottom: 25px !important;
	}

	.fl-row.tep-service-projects .fl-col:last-child .tep-ocard-grid .fl-post-column:last-child {
		padding-bottom: 0 !important;
	}

	.fl-row.tep-service-projects .fl-col + .fl-col {
		margin-top: 0 !important;
	}

	/* The first column's content keeps 35px of desktop bottom padding when the columns stack */
	.fl-row.tep-service-projects .fl-col > .fl-col-content {
		padding-bottom: 0 !important;
	}
}
