/* Section art is decorative. Real product screens retain their own visual space. */
.ipd-managed-content > .ipd-section--alternate:not(.ipd-section--layout-flow, .ipd-section--layout-faq, .ipd-section--layout-bento) {
	background: linear-gradient(120deg, #e6eeee 0%, #eff2ef 58%, #f3eee8 100%);
}

.ipd-managed-content > .ipd-section--layout-editorial {
	border-block-start: 1px solid #d5dddd;
	background: linear-gradient(112deg, #fbfaf7 0%, #f6f7f4 58%, #edf2f0 100%);
}

.ipd-managed-content > .ipd-section--layout-editorial.ipd-section--alternate {
	background: linear-gradient(112deg, #e9f0ef 0%, #edf2ee 65%, #f1ece5 100%);
}

/* Travel: keep the copy in the quiet part of the airport scene. */
.ipd-managed-content--travel > .ipd-section:nth-of-type(4) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-block: 0;
	background: #14242d;
	color: #fff;
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4)::before,
.ipd-managed-content--travel > .ipd-section:nth-of-type(4)::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4)::before {
	z-index: -2;
	background: url("../images/sections/travel-airport-distribution-1600.webp") center / cover no-repeat;
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4)::after {
	z-index: -1;
	background: linear-gradient(90deg, rgb(10 23 30 / 97%) 0%, rgb(10 23 30 / 91%) 52%, rgb(10 23 30 / 49%) 100%);
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4) > .ipd-container {
	margin-inline: auto;
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-section-heading,
.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-bullet-list {
	max-width: min(640px, 59%);
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-section-heading h2 {
	color: #fff;
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-section-heading > p,
.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-bullet-list li {
	color: #e3eaeb;
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-bullet-list {
	columns: 1;
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-bullet-list li {
	border-block-start-color: rgb(255 255 255 / 23%);
}

.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-bullet-list li::before {
	background: #f0b06b;
}

.ipd-locale-ar .ipd-managed-content--travel > .ipd-section:nth-of-type(4)::before {
	transform: scaleX(-1);
}

.ipd-locale-ar .ipd-managed-content--travel > .ipd-section:nth-of-type(4)::after {
	background: linear-gradient(270deg, rgb(10 23 30 / 97%) 0%, rgb(10 23 30 / 91%) 52%, rgb(10 23 30 / 49%) 100%);
}

/* One editorial section per selected hub gains a genuine material image. */
.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
	> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	grid-template-areas: "heading image" "body image";
	align-items: start;
	gap: 20px clamp(34px, 6vw, 96px);
}

.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
	> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) .ipd-section-heading {
	grid-area: heading;
	display: block;
	min-width: 0;
	margin: 0;
}

.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
	> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) .ipd-section-heading > p {
	margin-block-start: 22px;
}

.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
	> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) .ipd-longform {
	grid-area: body;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	min-width: 0;
	margin-block-start: 12px;
}

.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
	> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container::after {
	content: "";
	grid-area: image;
	align-self: stretch;
	display: block;
	min-height: 440px;
	background: url("../images/sections/engineering-worktable-1600.webp") 59% center / cover no-repeat;
	box-shadow: 0 22px 55px rgb(18 29 32 / 12%);
}

/* The AI overview also includes a process timeline; give it the full reading width. */
.ipd-managed-content.ipd-managed-content--ai-services > .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container {
	grid-template-areas: "heading image" "body image" "flow flow";
}

.ipd-managed-content.ipd-managed-content--ai-services > .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) .ipd-process-flow {
	grid-area: flow;
	margin-block-start: 18px;
}

.ipd-managed-content.ipd-managed-content--ai-services > .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container::after {
	align-self: start;
	height: 560px;
}

@media (max-width: 900px) {
	.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-section-heading,
	.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-bullet-list {
		max-width: 76%;
	}

	.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
		> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "heading" "image" "body";
		gap: 20px;
	}

	.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
		> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container::after {
		min-height: 260px;
		max-height: 320px;
		background-image: url("../images/sections/engineering-worktable-800.webp");
	}

	.ipd-managed-content.ipd-managed-content--ai-services > .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container {
		grid-template-areas: "heading" "image" "body" "flow";
	}

	.ipd-managed-content.ipd-managed-content--ai-services > .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container::after {
		height: 280px;
	}
}

@media (max-width: 600px) {
	.ipd-managed-content--travel > .ipd-section:nth-of-type(4)::before {
		background-image: url("../images/sections/travel-airport-distribution-800.webp");
		background-position: 68% center;
	}

	.ipd-managed-content--travel > .ipd-section:nth-of-type(4)::after,
	.ipd-locale-ar .ipd-managed-content--travel > .ipd-section:nth-of-type(4)::after {
		background: linear-gradient(180deg, rgb(10 23 30 / 93%), rgb(10 23 30 / 88%));
	}

	.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-section-heading,
	.ipd-managed-content--travel > .ipd-section:nth-of-type(4) .ipd-bullet-list {
		max-width: none;
	}

	.ipd-managed-content:is(.ipd-managed-content--software, .ipd-managed-content--ai-services, .ipd-managed-content--travel, .ipd-managed-content--industries)
		> .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container::after {
		min-height: 210px;
		max-height: 240px;
	}

	.ipd-managed-content.ipd-managed-content--ai-services > .ipd-section--layout-editorial:nth-child(1 of .ipd-section--layout-editorial) > .ipd-container::after {
		height: 230px;
	}
}
