/*
 * Services listing page (template-services-listing.php, pattern
 * "Services – Listing page"). Section shells and headings come from
 * service-page.css (svc-section / svc-heading); this file styles the
 * listing-only pieces. Scoped to body.edge-services-listing.
 */

body.edge-services-listing {
	--sl-ink: #0a1628;
	--sl-muted: #748398;
	--sl-orange: #ff5900;
	--sl-line: rgba(116, 131, 152, 0.2);
}

/* ---- Hero ----------------------------------------------------------------- */
body.edge-services-listing .sl-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	padding: clamp(80px, 8vw, 128px) 0 clamp(64px, 6vw, 96px);
	background: #091525;
	color: #fff;
}

body.edge-services-listing .sl-hero > .sl-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
}

body.edge-services-listing .sl-hero > .sl-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

body.edge-services-listing .sl-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, #091525 0%, rgba(9, 21, 37, 0.94) 38%, rgba(9, 21, 37, 0.55) 66%, rgba(34, 79, 139, 0) 100%);
}

body.edge-services-listing .sl-hero__inner {
	width: var(--svc-width, min(1168px, calc(100% - 80px)));
	margin: 0 auto;
}

body.edge-services-listing .sl-hero__inner > * {
	max-width: 760px;
}

body.edge-services-listing .sl-hero__eyebrow {
	margin: 0 0 18px;
	font-size: 18px;
	color: #b9c5d7;
}

body.edge-services-listing .sl-hero h1 {
	margin: 0;
	font-family: Manrope, 'DM Sans', sans-serif;
	font-size: clamp(38px, 4vw, 62px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -1px;
	color: rgba(255, 255, 255, 0.94);
}

body.edge-services-listing .sl-hero h1 span {
	color: var(--sl-orange);
}

body.edge-services-listing .sl-hero__lede {
	margin: 22px 0 0;
	font-size: clamp(17px, 1.35vw, 21px);
	line-height: 1.45;
	color: #fff;
}

body.edge-services-listing .sl-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 0;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: #dfe5ee;
}

body.edge-services-listing .sl-hero__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-right: 18px;
	margin-right: 18px;
	border-right: 1px solid rgba(185, 197, 215, 0.45);
}

body.edge-services-listing .sl-hero__trust li:last-child {
	border-right: 0;
}

body.edge-services-listing .sl-hero__trust li::before {
	content: '';
	width: 14px;
	height: 14px;
	border: 1.6px solid var(--sl-orange);
	border-radius: 50%;
	background: radial-gradient(circle, var(--sl-orange) 0 2.5px, transparent 3px);
}

body.edge-services-listing .sl-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 48px;
	max-width: none !important;
	margin-top: clamp(40px, 5vw, 72px);
}

body.edge-services-listing .sl-stat {
	display: grid;
	grid-template-columns: 50px auto;
	column-gap: 14px;
	align-items: center;
	margin: 0;
	font-size: 13px;
	line-height: 1.3;
	color: #b9c5d7;
}

body.edge-services-listing .sl-stat::before {
	content: '';
	grid-row: 1 / span 2;
	width: 50px;
	height: 48px;
	background: center / contain no-repeat;
	opacity: 0.9;
}

body.edge-services-listing .sl-stat strong {
	display: block;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.1;
	color: #eef2f8;
}

body.edge-services-listing .sl-stat--years::before { background-image: url(../images/stat-icon-years.svg); }
body.edge-services-listing .sl-stat--clients::before { background-image: url(../images/stat-icon-clients.svg); }
body.edge-services-listing .sl-stat--projects::before { background-image: url(../images/stat-icon-projects.svg); }
body.edge-services-listing .sl-stat--engineers::before { background-image: url(../images/stat-icon-engineers.svg); }

/* ---- Practice tabs ------------------------------------------------------------- */
body.edge-services-listing .sl-practices {
	display: grid;
	grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	width: var(--svc-width, min(1168px, calc(100% - 80px)));
	margin: 40px auto 0;
}

body.edge-services-listing .sl-practices__tabs {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border-radius: 12px;
	background: rgba(185, 197, 215, 0.2);
}

body.edge-services-listing .sl-practices__tabs [role='tab'] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 17px 20px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--sl-muted);
	text-align: left;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.edge-services-listing .sl-practices__tabs [role='tab'] svg {
	flex: none;
	color: var(--sl-ink);
	transition: transform 0.18s ease;
}

body.edge-services-listing .sl-practices__tabs [role='tab']:hover {
	color: var(--sl-ink);
}

body.edge-services-listing .sl-practices__tabs [role='tab']:hover svg {
	transform: translateX(3px);
}

body.edge-services-listing .sl-practices__tabs [role='tab'][aria-selected='true'] {
	background: var(--sl-orange);
	font-weight: 600;
	color: #fff;
}

body.edge-services-listing .sl-practices__tabs [role='tab'][aria-selected='true'] svg {
	color: #fff;
}

body.edge-services-listing .sl-practices__tabs [role='tab']:focus-visible {
	outline: 2px solid var(--sl-ink);
	outline-offset: 2px;
}

body.edge-services-listing .sl-practices__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 20px;
	border: 1px solid var(--sl-line);
	border-radius: 16px;
	background: #fff;
}

body.edge-services-listing .sl-practices__panel[hidden] {
	display: none;
}

body.edge-services-listing .sl-practices__photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	max-height: 400px;
	border-radius: 16px;
	object-fit: cover;
}

body.edge-services-listing .sl-practices__body h3 {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--sl-ink);
}

body.edge-services-listing .sl-practices__tagline {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--sl-muted);
}

body.edge-services-listing .sl-practices__text {
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--sl-muted);
}

body.edge-services-listing .sl-practices__more {
	display: inline-block;
	margin-top: 14px;
	font-size: 16px;
	font-weight: 500;
	color: var(--sl-orange);
	text-decoration: none;
}

body.edge-services-listing .sl-practices__more:hover {
	text-decoration: underline;
}

body.edge-services-listing .sl-practices__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

body.edge-services-listing .sl-practices__chips a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 30px;
	padding: 5px 14px 5px 10px;
	border: 1px solid #e0dede;
	border-radius: 30px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sl-ink);
	text-decoration: none;
	transition: border-color 0.18s ease, color 0.18s ease;
}

body.edge-services-listing .sl-practices__chips a::before {
	content: '';
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--sl-orange);
}

body.edge-services-listing .sl-practices__chips a:hover {
	border-color: var(--sl-orange);
	color: var(--sl-orange);
}

/* ---- Partners: centred heading + white logo cards (design), on the soft
   background continuing from the practices. Overrides the compact strip
   layout service-page.css gives the shared [edge_partners] section. ---- */
body.edge-services-listing .sl-partners > .svc-section:has(> .svc-logos) {
	display: block;
	padding: 24px max(40px, calc((100% - 1168px) / 2)) 80px;
	border-bottom: 0;
	background: #f6f7f8;
}

body.edge-services-listing .sl-partners .svc-section:has(> .svc-logos) .svc-heading {
	max-width: 760px;
	margin: 0 auto 40px;
	text-align: center;
}

body.edge-services-listing .sl-partners .svc-section:has(> .svc-logos) .svc-heading .svc-eyebrow {
	font-size: inherit;
}

body.edge-services-listing .sl-partners .svc-logos {
	gap: 24px;
}

body.edge-services-listing .sl-partners .svc-logos > .wp-block-image {
	height: 108px;
	padding: 20px;
	border-radius: 12px;
	background: #fff;
}

body.edge-services-listing .sl-partners .svc-logos img {
	max-height: 44px;
}

@media (max-width: 900px) {
	body.edge-services-listing .sl-partners .svc-logos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 14px;
	}

	body.edge-services-listing .sl-partners .svc-logos > .wp-block-image {
		height: 84px;
	}
}

/* ---- Engagement models ------------------------------------------------------------ */
body.edge-services-listing .sl-models__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: var(--svc-width, min(1168px, calc(100% - 80px)));
	margin: 40px auto 0;
}

body.edge-services-listing .sl-model {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border-radius: 12px;
	background: #fff;
	color: var(--sl-ink);
	transition: transform 0.2s ease;
}

body.edge-services-listing .sl-model:hover {
	transform: translateY(-4px);
}

body.edge-services-listing .sl-model__icon {
	margin: 0 0 26px;
}

body.edge-services-listing .sl-model__icon img {
	width: 48px;
	height: 48px;
}

body.edge-services-listing .sl-model h3 {
	margin: 0;
	font-family: inherit;
	font-size: 20px;
	font-weight: 500;
	color: var(--sl-ink);
}

body.edge-services-listing .sl-model .sl-model__for {
	margin: 8px 0 0;
	font-size: 15px;
	color: var(--sl-orange);
}

body.edge-services-listing .sl-model ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

body.edge-services-listing .sl-model li {
	display: flex;
	gap: 10px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--sl-muted);
}

body.edge-services-listing .sl-model li::before {
	content: '\2192';
	flex: none;
	font-weight: 600;
	color: var(--sl-orange);
}

/* ---- Insights (latest blog posts) ---------------------------------------------------- */
body.edge-services-listing .sl-insights-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	width: var(--svc-width, min(1168px, calc(100% - 80px)));
	margin: 0 auto;
}

body.edge-services-listing .sl-insights-head .svc-heading {
	width: auto;
	margin: 0;
	text-align: left;
	align-items: flex-start;
}

body.edge-services-listing .sl-btn .wp-block-button__link {
	padding: 12px 20px;
	border-radius: 6px;
	background: var(--sl-orange);
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}

body.edge-services-listing .sl-insights {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: var(--svc-width, min(1168px, calc(100% - 80px)));
	margin: 40px auto 0;
}

body.edge-services-listing .sl-insight {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: #f0f2f7;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.edge-services-listing .sl-insight:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px -28px rgba(10, 22, 40, 0.4);
}

body.edge-services-listing .sl-insight__thumb {
	display: block;
	aspect-ratio: 16 / 8;
	overflow: hidden;
	background: #dfe4ec;
}

body.edge-services-listing .sl-insight__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.edge-services-listing .sl-insight__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 20px 24px;
}

body.edge-services-listing .sl-insight__meta {
	margin: 0;
	font-size: 14px;
	color: #6b7489;
}

body.edge-services-listing .sl-insight h3 {
	margin: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.45;
}

body.edge-services-listing .sl-insight h3 a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--sl-ink);
	text-decoration: none;
}

body.edge-services-listing .sl-insight h3 a:hover {
	color: var(--sl-orange);
}

body.edge-services-listing .sl-insight__link {
	font-size: 15px;
	color: var(--sl-orange);
	text-decoration: none;
}

/* ---- Responsive ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
	body.edge-services-listing .sl-practices {
		grid-template-columns: 1fr;
	}

	body.edge-services-listing .sl-practices__tabs {
		flex-direction: row;
		overflow-x: auto;
		padding: 12px;
		scrollbar-width: none;
	}

	body.edge-services-listing .sl-practices__tabs::-webkit-scrollbar {
		display: none;
	}

	body.edge-services-listing .sl-practices__tabs [role='tab'] {
		flex: none;
		width: auto;
		padding: 12px 16px;
		white-space: nowrap;
	}

	body.edge-services-listing .sl-practices__tabs [role='tab'] svg {
		display: none;
	}

	body.edge-services-listing .sl-insights,
	body.edge-services-listing .sl-models__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	body.edge-services-listing .sl-hero__trust li {
		padding-right: 12px;
		margin-right: 12px;
	}

	body.edge-services-listing .sl-hero__stats {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 22px 16px;
	}

	body.edge-services-listing .sl-stat {
		grid-template-columns: 40px auto;
		column-gap: 10px;
	}

	body.edge-services-listing .sl-stat::before {
		width: 40px;
		height: 38px;
	}

	body.edge-services-listing .sl-stat strong {
		font-size: 22px;
	}

	body.edge-services-listing .sl-practices__panel {
		grid-template-columns: 1fr;
		padding: 14px;
	}

	body.edge-services-listing .sl-practices__photo {
		min-height: 200px;
		max-height: 240px;
	}

	body.edge-services-listing .sl-insights,
	body.edge-services-listing .sl-models__grid {
		grid-template-columns: 1fr;
	}

	body.edge-services-listing .sl-insights-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---- Homepage type & spacing scale (19 Oct): matched to the measured
   homepage values so the Services page reads as the same site. ---------- */
body.edge-services-listing .svc-heading .svc-eyebrow,
body.edge-services-listing .sl-partners .svc-heading .svc-eyebrow {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--sl-orange);
}

body.edge-services-listing .svc-heading h2 {
	margin: 0;
	font-family: Manrope, 'DM Sans', sans-serif;
	font-size: clamp(28px, 2.63vw, 37.8px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -1.15px;
	color: var(--sl-ink);
}

body.edge-services-listing .is-navy .svc-heading h2 {
	color: #fff;
}

body.edge-services-listing .svc-heading h2 + p {
	margin: 12px auto 0;
	max-width: 760px;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--sl-muted);
}

body.edge-services-listing .is-navy .svc-heading h2 + p {
	color: #9aa6b8;
}

body.edge-services-listing .sl-section,
body.edge-services-listing .sl-models {
	padding-top: 80px;
	padding-bottom: 80px;
}

body.edge-services-listing .sl-practices,
body.edge-services-listing .sl-models__grid,
body.edge-services-listing .sl-insights {
	margin-top: 34px;
}

/* Hero: homepage hero scale. */
body.edge-services-listing .sl-hero {
	padding: 96px 0 72px;
}

body.edge-services-listing .sl-hero__eyebrow {
	margin-bottom: 12px;
	font-size: 16px;
	color: #c4cbd7;
}

body.edge-services-listing .sl-hero h1 {
	font-size: clamp(38px, 3.9vw, 56px);
	line-height: 1.13;
	letter-spacing: -1.7px;
	color: #fff;
}

body.edge-services-listing .sl-hero__lede {
	margin-top: 23px;
	max-width: 650px;
	font-size: 19px;
	color: #f1f4f8;
}

body.edge-services-listing .sl-hero__trust {
	margin-top: 26px;
	font-size: 13px;
}

body.edge-services-listing .sl-hero__stats {
	margin-top: 56px;
	gap: 24px 64px;
}

body.edge-services-listing .sl-stat {
	grid-template-columns: 56px auto;
	font-size: 15px;
}

body.edge-services-listing .sl-stat::before {
	width: 56px;
	height: 54px;
}

body.edge-services-listing .sl-stat strong {
	font-size: 34px;
}

/* Card titles: Manrope semibold, like homepage cards. */
body.edge-services-listing .sl-practices__body h3,
body.edge-services-listing .sl-model h3,
body.edge-services-listing .sl-insight h3 {
	font-family: Manrope, 'DM Sans', sans-serif;
	font-weight: 600;
	letter-spacing: -0.4px;
}

body.edge-services-listing .sl-practices__body h3 {
	font-size: 22px;
}

body.edge-services-listing .sl-practices__tagline {
	font-size: 14px;
}

body.edge-services-listing .sl-practices__text,
body.edge-services-listing .sl-model li {
	font-size: 15px;
	line-height: 1.55;
	color: #626c7c;
}

body.edge-services-listing .sl-model h3 {
	font-size: 20px;
}

body.edge-services-listing .sl-insight h3 {
	font-size: 18px;
}

body.edge-services-listing .sl-practices__tabs [role='tab'] {
	font-size: 15px;
}

/* Buttons: homepage button scale. */
body.edge-services-listing .sl-btn .wp-block-button__link {
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 650;
}

@media (max-width: 700px) {
	body.edge-services-listing .sl-hero {
		padding: 64px 0 48px;
	}

	body.edge-services-listing .sl-section,
	body.edge-services-listing .sl-models {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	body.edge-services-listing .sl-hero__lede {
		font-size: 17px;
	}

	body.edge-services-listing .sl-hero__stats {
		margin-top: 36px;
		gap: 22px 16px;
	}

	body.edge-services-listing .sl-stat {
		grid-template-columns: 40px auto;
		font-size: 13px;
	}

	body.edge-services-listing .sl-stat::before {
		width: 40px;
		height: 38px;
	}

	body.edge-services-listing .sl-stat strong {
		font-size: 24px;
	}
}

/* Partners heading at full section size (the shared strip shrinks it). */
body.edge-services-listing .sl-partners .svc-section:has(> .svc-logos) .svc-heading h2 {
	margin: 0;
	font-size: clamp(28px, 2.63vw, 37.8px);
	line-height: 1.1;
	letter-spacing: -1.15px;
}

body.edge-services-listing .sl-partners .svc-section:has(> .svc-logos) .svc-heading h2 + p {
	margin-top: 12px;
	font-size: 17px;
	line-height: 1.4;
}

body.edge-services-listing .sl-partners .svc-section:has(> .svc-logos) .svc-heading {
	margin-bottom: 34px;
}

/* Platforms: the homepage platform cards ([edge_platforms], styled by
   reimagined-home.css), inside the page container on a white section. */
body.edge-services-listing .sl-platforms {
	background: #fff;
}

body.edge-services-listing .sl-platforms .platforms {
	width: var(--svc-width, min(1168px, calc(100% - 80px)));
	margin: 34px auto 0;
	padding: 0;
	border: 0;
}

/* ---- Practice tabs: light polish on the original design (19 Oct). Same
   compact tabs and same section height; only alignment and detail. ------- */

/* Tabs: one line each (the column is a little wider), a subtle hover. */
body.edge-services-listing .sl-practices {
	grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
}

body.edge-services-listing .sl-practices__tabs [role='tab'] {
	white-space: nowrap;
	border: 1px solid transparent;
}

body.edge-services-listing .sl-practices__tabs [role='tab']:not([aria-selected='true']):hover {
	border-color: rgba(255, 89, 0, 0.35);
}

body.edge-services-listing .sl-practices__tabs [role='tab'][aria-selected='true'] {
	box-shadow: 0 10px 22px -14px rgba(255, 89, 0, 0.75);
}

/* Panel: soft shadow, photo fills the card height, text block centred. */
body.edge-services-listing .sl-practices__panel {
	align-items: stretch;
	box-shadow: 0 22px 44px -36px rgba(10, 22, 40, 0.35);
}

body.edge-services-listing .sl-practices__photo {
	height: 100%;
	min-height: 0;
	max-height: none;
	aspect-ratio: auto;
	border-radius: 12px;
}

body.edge-services-listing .sl-practices__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 6px 12px 6px 4px;
}

/* Tagline in ink (it reads as the practice's promise), text muted below. */
body.edge-services-listing .sl-practices__tagline {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--sl-ink);
}

body.edge-services-listing .sl-practices__text {
	margin-top: 10px;
}

/* Chips: same pills, a little tighter and more even. */
body.edge-services-listing .sl-practices__chips {
	gap: 8px;
	margin-top: 18px;
}

body.edge-services-listing .sl-practices__chips a {
	padding: 6px 14px 6px 11px;
	font-size: 13px;
	font-weight: 500;
	background: #f8f9fb;
	border-color: #e6e9ef;
}

body.edge-services-listing .sl-practices__chips a:hover {
	background: #fff;
}

@media (max-width: 1100px) {
	body.edge-services-listing .sl-practices {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	body.edge-services-listing .sl-practices__photo {
		height: 220px;
	}
}

/* ---- Practice panel, richer but no taller (19 Oct) --------------------------- */
/* Photo: a soft bottom fade with a practice badge ("01 · 5 services"). */
body.edge-services-listing .sl-practices__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
}

body.edge-services-listing .sl-practices__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0) 38%);
	pointer-events: none;
}

body.edge-services-listing .sl-practices__media .sl-practices__photo {
	transition: transform 0.6s ease;
}

body.edge-services-listing .sl-practices__panel:hover .sl-practices__photo {
	transform: scale(1.03);
}

body.edge-services-listing .sl-practices__media figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 6px;
	border-radius: 30px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	font-size: 13px;
	font-weight: 600;
	color: var(--sl-ink);
}

body.edge-services-listing .sl-practices__media figcaption span {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--sl-orange);
	font-size: 11px;
	color: #fff;
}

/* Title with a short orange rule under it. */
body.edge-services-listing .sl-practices__body h3 {
	position: relative;
	padding-bottom: 12px;
}

body.edge-services-listing .sl-practices__body h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 3px;
	background: var(--sl-orange);
}

body.edge-services-listing .sl-practices__tagline {
	margin-top: 14px;
}

/* Services: a compact two-column checklist of links (less height than the
   pills it replaces). */
body.edge-services-listing .sl-practices__chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	margin-top: 18px;
}

body.edge-services-listing .sl-practices__chips a {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--sl-ink);
}

body.edge-services-listing .sl-practices__chips a::before {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border-radius: 50%;
	background: rgba(255, 89, 0, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ff5900' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

body.edge-services-listing .sl-practices__chips a:hover {
	background: none;
	color: var(--sl-orange);
}

/* Read More: outlined button at the end. */
body.edge-services-listing .sl-practices__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: 22px;
	padding: 10px 18px;
	border: 1px solid var(--sl-orange);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 650;
	transition: background 0.18s ease, color 0.18s ease;
}

body.edge-services-listing .sl-practices__more:hover {
	background: var(--sl-orange);
	color: #fff;
	text-decoration: none;
}

@media (max-width: 700px) {
	body.edge-services-listing .sl-practices__chips {
		grid-template-columns: 1fr;
	}
}

/* More room for the text column so the services list fits on single lines. */
@media (min-width: 701px) {
	body.edge-services-listing .sl-practices__panel {
		grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
		gap: 28px;
	}

	body.edge-services-listing .sl-practices__chips {
		gap: 9px 16px;
	}

	body.edge-services-listing .sl-practices__chips a {
		font-size: 13.5px;
	}
}

/* The card always matches the tab column's height, whatever the practice. */
@media (min-width: 1101px) {
	body.edge-services-listing .sl-practices {
		align-items: stretch;
	}
}

/* Steady height: all panels share one grid cell (hidden ones invisible), so
   the section is as tall as the tallest practice and never jumps when a
   different tab is chosen. */
@media (min-width: 1101px) {
	body.edge-services-listing .sl-practices__tabs {
		grid-column: 1;
		grid-row: 1;
	}

	body.edge-services-listing .sl-practices__panel {
		grid-column: 2;
		grid-row: 1;
	}

	body.edge-services-listing .sl-practices__panel[hidden] {
		display: grid;
		visibility: hidden;
		pointer-events: none;
	}
}

/* Keep the block compact: a slightly narrower photo gives the text more room
   (fewer wrapped lines), with tighter vertical rhythm. */
@media (min-width: 1101px) {
	body.edge-services-listing .sl-practices__panel {
		grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
		gap: 26px;
		padding: 16px 22px 16px 16px;
	}

	body.edge-services-listing .sl-practices__body h3 {
		padding-bottom: 10px;
	}

	body.edge-services-listing .sl-practices__tagline {
		margin-top: 12px;
	}

	body.edge-services-listing .sl-practices__chips {
		margin-top: 14px;
		gap: 8px 14px;
	}

	body.edge-services-listing .sl-practices__more {
		margin-top: 16px;
	}
}
