/*
 * Managed IT page: pictures, diagrams and the redesigned sections (redesign of 2026-11-11).
 *
 * This sits on top of service-pages.css, which the Complete package page shares and which is not edited. Every
 * selector starts with .cc-p-managed-it.cc-mi (the wrapper group of the page, two classes), so it reaches no other
 * page and out-ranks the shared rules whatever the load order is. Colour, type, space, radius and motion come from
 * tokens.css only; the line and node look comes from diagrams.css (the .cc-dg classes on the hub drawing).
 *
 * The icons are the theme's own SVG files, drawn as a mask so they take the action colour. The pictures are the
 * delivered M01 to M05 files (patterns managed-figure-cabinet, managed-media-devices, managed-band-weight,
 * managed-media-desk and managed-backdrop-storage). Four of them are "stages" (.cc-mi-stage): a full width picture
 * with the text on its quiet side. Each picture was made with a quiet side (left or right), so the text is placed there
 * and never over the subject. Below the overlay breakpoint a stage stacks: the picture first, the text under it on the
 * plain canvas. The hero picture is drawn by service-pages.css.
 */

.cc-p-managed-it.cc-mi {
	--cc-mi-gap: var(--cc-space-m);
}

/* ------------------------------------------------------------------ shared pieces */

.cc-p-managed-it.cc-mi .cc-mi-outcome::before,
.cc-p-managed-it.cc-mi .cc-mi-aud > li::before,
.cc-p-managed-it.cc-mi .cc-mi-hub__chip::before,
.cc-p-managed-it.cc-mi .cc-mi-level__body p.cc-sp-link a::after {
	content: "";
	display: block;
	flex: none;
	background-color: var(--cc-color-action);
	-webkit-mask-image: var(--cc-mi-icon);
	mask-image: var(--cc-mi-icon);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* ------------------------------------------------------------------ page index (under the hero) */

.cc-p-managed-it.cc-mi .cc-mi-index {
	background: var(--cc-color-canvas);
	border-bottom: 1px solid var(--cc-color-line);
}

.cc-p-managed-it.cc-mi .cc-mi-index__inner {
	display: flex;
	align-items: center;
	gap: var(--cc-space-l);
}

.cc-p-managed-it.cc-mi .cc-mi-index__label {
	display: none;
	flex: none;
	margin: 0;
	color: var(--cc-color-action);
	font-size: var(--cc-font-size-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-index__label {
		display: block;
	}
}

.cc-p-managed-it.cc-mi .cc-mi-index__list {
	display: flex;
	flex: 1 1 auto;
	gap: var(--cc-space-l);
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.cc-p-managed-it.cc-mi .cc-mi-index__list::-webkit-scrollbar {
	display: none;
}

/* On a phone the row scrolls sideways; the right edge fades so it reads as more to come. */
@media (max-width: 47.99em) {
	.cc-p-managed-it.cc-mi .cc-mi-index__list {
		padding-right: var(--cc-space-xl);
		-webkit-mask-image: linear-gradient(90deg, var(--cc-color-white) calc(100% + -3rem), transparent);
		mask-image: linear-gradient(90deg, var(--cc-color-white) calc(100% + -3rem), transparent);
	}
}

.cc-p-managed-it.cc-mi .cc-mi-index__list > li {
	flex: none;
	margin: 0;
	padding: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-index__list a {
	display: flex;
	align-items: center;
	min-height: 3.25rem;
	border-bottom: 2px solid transparent;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--cc-transition-base) ease, border-color var(--cc-transition-base) ease;
}

.cc-p-managed-it.cc-mi .cc-mi-index__list a:hover {
	border-bottom-color: var(--cc-color-action);
	color: var(--cc-color-white);
}

.cc-p-managed-it.cc-mi .cc-mi-index__list a:focus-visible {
	outline-offset: -4px;
}

/* 36em to 47.99em: a tidy 3 x 2 grid, so every link is visible and none is clipped. */
@media (min-width: 36em) and (max-width: 47.99em) {
	.cc-p-managed-it.cc-mi .cc-mi-index__list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--cc-space-m);
		padding-right: 0;
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.cc-p-managed-it.cc-mi .cc-mi-index__list a {
		min-height: 2.75rem;
	}
}

/* 48em to 63.99em: the row overflowed slightly with no cue; a smaller gap makes it fit. */
@media (min-width: 48em) and (max-width: 63.99em) {
	.cc-p-managed-it.cc-mi .cc-mi-index__list {
		gap: var(--cc-space-m);
	}
}

/* Under 36em the row keeps scrolling. The end padding is as wide as the fade so the last link can scroll clear of it. */
@media (max-width: 35.99em) {
	.cc-p-managed-it.cc-mi .cc-mi-index__list {
		padding-right: var(--cc-space-xxl);
	}
}

/* ------------------------------------------------------------------ picture stages */

/* A stage is a section with a full width picture in it. On a phone and a tablet the picture comes first, with its foot
   fading into the canvas, and the text follows on the plain canvas. From the overlay width the picture fills the whole
   section and the text sits on the picture's quiet side. --cc-mi-pos anchors the picture on the side its subject is on;
   --cc-mi-quiet is where its quiet side begins, as a share of the viewport width. */
.cc-p-managed-it.cc-mi .cc-mi-stage {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cc-color-canvas);
}

.cc-p-managed-it.cc-mi .cc-mi-stage > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-stage__media {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.cc-p-managed-it.cc-mi .cc-mi-stage__media picture,
.cc-p-managed-it.cc-mi .cc-mi-stage__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.cc-p-managed-it.cc-mi .cc-mi-stage__media img {
	object-fit: cover;
	object-position: var(--cc-mi-pos, 50% 50%);
}

.cc-p-managed-it.cc-mi .cc-mi-stage__media::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(0deg, var(--cc-color-canvas) 0%, transparent 32%);
}

.cc-p-managed-it.cc-mi .cc-mi-stage__inner {
	position: relative;
	z-index: 1;
}

/* Stacked, the text starts close under the picture (the section padding is for the overlay). */
.cc-p-managed-it.cc-mi .cc-mi-stage > .cc-mi-stage__inner.cc-sp-inner {
	padding-top: var(--cc-space-l);
}

@media (min-width: 48em) {
	.cc-p-managed-it.cc-mi .cc-mi-stage__media {
		aspect-ratio: 2 / 1;
	}
}

/* Overlay: the picture becomes the section's backdrop. The band and the closing call to action go over at 48em (their
   text is short); the two text-heavy stages wait for 64em. */
@media (min-width: 48em) {
	.cc-p-managed-it.cc-mi .cc-mi-stage:is(.cc-mi-stage--band, .cc-mi-stage--storage) .cc-mi-stage__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage:is(.cc-mi-stage--band, .cc-mi-stage--storage) .cc-mi-stage__media::after {
		content: none;
	}
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-stage:is(.cc-mi-stage--devices, .cc-mi-stage--desk) {
		display: flex;
		align-items: center;
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage:is(.cc-mi-stage--devices, .cc-mi-stage--desk) .cc-mi-stage__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage:is(.cc-mi-stage--devices, .cc-mi-stage--desk) .cc-mi-stage__media::after {
		content: none;
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage:is(.cc-mi-stage--devices, .cc-mi-stage--desk) > .cc-mi-stage__inner.cc-sp-inner {
		box-sizing: border-box;
		width: 100%;
		padding-top: clamp(3.5rem, 7vw, 6rem);
	}

	/* The text column starts where the picture's quiet side starts, measured from the viewport's left edge. */
	.cc-p-managed-it.cc-mi .cc-mi-stage:is(.cc-mi-stage--devices, .cc-mi-stage--desk) .cc-mi-stage__text {
		max-width: 34rem;
		margin-left: max(0px, calc(var(--cc-mi-quiet) + -0.5 * (100vw + -1 * 100%)));
	}
}

/* What it is: the monitor, dock and laptop at the left, the quiet half at the right. */
.cc-p-managed-it.cc-mi .cc-mi-stage--devices {
	--cc-mi-pos: 6% 40%;
	--cc-mi-quiet: 54vw;
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-stage--devices {
		--cc-mi-pos: 0% 65%;
		min-height: clamp(32rem, 47vw, 54rem);
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage--devices::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background:
			linear-gradient(180deg, var(--cc-color-canvas) 0%, transparent 14%),
			linear-gradient(0deg, var(--cc-color-canvas) 0%, transparent 10%),
			linear-gradient(90deg, transparent 0%, transparent 38%, color-mix(in srgb, var(--cc-color-canvas) 55%, transparent) 60%, color-mix(in srgb, var(--cc-color-canvas) 80%, transparent) 100%);
	}
}

/* How it starts: the lamp, laptop and notebook at the lower left, the quiet side at the right. */
.cc-p-managed-it.cc-mi .cc-mi-stage--desk {
	--cc-mi-pos: 4% 80%;
	--cc-mi-quiet: 62vw;
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-stage--desk {
		--cc-mi-pos: 0% 90%;
		min-height: clamp(34rem, 46vw, 54rem);
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage--desk::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background: linear-gradient(90deg, transparent 0%, transparent 44%, color-mix(in srgb, var(--cc-color-canvas) 55%, transparent) 64%, color-mix(in srgb, var(--cc-color-canvas) 82%, transparent) 100%);
	}
}

/* What is covered: the picture beside the heading, in a hairline frame with two corner marks. */
.cc-p-managed-it.cc-mi .cc-mi-covered__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-xl);
	align-items: center;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cc-p-managed-it.cc-mi .cc-mi-covered__top > * {
	margin-block: 0;
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-covered__top {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: clamp(2.5rem, 6vw, 5.5rem);
	}
}

.cc-p-managed-it.cc-mi .cc-mi-figure {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.cc-p-managed-it.cc-mi .cc-mi-figure {
		aspect-ratio: 21 / 9;
	}
}

.cc-p-managed-it.cc-mi .cc-mi-figure picture,
.cc-p-managed-it.cc-mi .cc-mi-figure img {
	display: block;
	width: 100%;
	height: 100%;
}

.cc-p-managed-it.cc-mi .cc-mi-figure img {
	object-fit: cover;
}

/* The cabinet sits at the lower right of its picture. */
.cc-p-managed-it.cc-mi .cc-mi-figure--cabinet img {
	object-position: 100% 82%;
}

/* The headset stands at the right of its picture. */
.cc-p-managed-it.cc-mi .cc-mi-figure--headset {
	margin-top: var(--cc-space-s);
}

.cc-p-managed-it.cc-mi .cc-mi-figure--headset img {
	object-position: 100% 72%;
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-figure--headset {
		aspect-ratio: 2 / 1;
	}
}

.cc-p-managed-it.cc-mi .cc-mi-figure::before,
.cc-p-managed-it.cc-mi .cc-mi-figure::after {
	content: "";
	position: absolute;
	width: 1.5rem;
	height: 1.5rem;
	pointer-events: none;
}

.cc-p-managed-it.cc-mi .cc-mi-figure::before {
	top: 0.875rem;
	left: 0.875rem;
	border-top: 2px solid var(--cc-color-action);
	border-left: 2px solid var(--cc-color-action);
}

.cc-p-managed-it.cc-mi .cc-mi-figure::after {
	right: 0.875rem;
	bottom: 0.875rem;
	border-right: 2px solid var(--cc-color-action);
	border-bottom: 2px solid var(--cc-color-action);
}

/* The row of outcomes under the "What it is" stage, on the canvas. */
.cc-p-managed-it.cc-mi .cc-mi-what__rest {
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.cc-p-managed-it.cc-mi .cc-mi-what__rest > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-what .cc-mi-outcomes {
	margin-top: 0;
}

/* Three outcomes, each with its own icon on a ruled column. */
.cc-p-managed-it.cc-mi .cc-mi-outcomes {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-xl);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 48em) {
	.cc-p-managed-it.cc-mi .cc-mi-outcomes {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--cc-space-l);
	}
}

.cc-p-managed-it.cc-mi .cc-mi-outcomes > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-outcome {
	position: relative;
	display: grid;
	gap: var(--cc-space-xs);
	align-content: start;
	padding-top: var(--cc-space-l);
	border-top: 1px solid var(--cc-color-line);
}

.cc-p-managed-it.cc-mi .cc-mi-outcome::after {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 2rem;
	height: 2px;
	background: var(--cc-color-action);
}

.cc-p-managed-it.cc-mi .cc-mi-outcome::before {
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: var(--cc-space-s);
}

.cc-p-managed-it.cc-mi .cc-mi-outcome {
	--cc-mi-icon: url("../../icons/ui/circle-check.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-outcome--risk {
	--cc-mi-icon: url("../../icons/ui/triangle-alert.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-outcome--resources {
	--cc-mi-icon: url("../../icons/m2/connectivity_and_continuity.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-outcome--outcomes {
	--cc-mi-icon: url("../../icons/m2/dependencies.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-outcome > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-outcome h3 {
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-m);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cc-p-managed-it.cc-mi .cc-mi-outcome p {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-m);
	line-height: 1.6;
}

/* ------------------------------------------------------------------ who it suits: six icon tiles */

.cc-p-managed-it.cc-mi .cc-mi-aud {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40em) {
	.cc-p-managed-it.cc-mi .cc-mi-aud {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-aud {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li {
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: var(--cc-space-m);
	align-content: start;
	align-items: start;
	margin: 0;
	padding: var(--cc-space-l);
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	font-size: var(--cc-font-size-m);
	line-height: 1.45;
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li::before {
	width: 2.25rem;
	height: 2.25rem;
}

@media (min-width: 40em) {
	.cc-p-managed-it.cc-mi .cc-mi-aud > li {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--cc-space-l);
		min-height: 11rem;
		padding: var(--cc-space-l) var(--cc-space-l) var(--cc-space-xl);
	}

	/* A short action rule on the top edge, as on the cards elsewhere on the page. */
	.cc-p-managed-it.cc-mi .cc-mi-aud > li::after {
		content: "";
		position: absolute;
		top: -1px;
		left: -1px;
		width: 2rem;
		height: 2px;
		background: var(--cc-color-action);
	}
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li {
	--cc-mi-icon: url("../../icons/ui/circle-check.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li:nth-child(1) {
	--cc-mi-icon: url("../../icons/focus/overview.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li:nth-child(2) {
	--cc-mi-icon: url("../../icons/services/cyber_security.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li:nth-child(3) {
	--cc-mi-icon: url("../../icons/ui/list-checks.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li:nth-child(4) {
	--cc-mi-icon: url("../../icons/ui/circle-check.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li:nth-child(5) {
	--cc-mi-icon: url("../../icons/ui/mail.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-aud > li:nth-child(6) {
	--cc-mi-icon: url("../../icons/ui/cable.svg");
}

/* ------------------------------------------------------------------ picture band with one pulled line */

/* M05 is a wide 21 by 9 picture: dark cabinet doors at the right with a light along their base, the left side quiet.
   Phones show the picture first and the line under it; from 48em the line sits over the quiet left. */
.cc-p-managed-it.cc-mi .cc-mi-stage--band {
	--cc-mi-pos: 100% 60%;
}

.cc-p-managed-it.cc-mi .cc-mi-band__inner {
	display: flex;
	align-items: flex-start;
	padding-block: var(--cc-space-l) clamp(2.5rem, 8vw, 3.5rem);
}

@media (min-width: 48em) {
	.cc-p-managed-it.cc-mi .cc-mi-stage--band {
		display: flex;
		align-items: center;
		aspect-ratio: 21 / 9;
		min-height: 20rem;
		max-height: 40rem;
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage--band::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background:
			linear-gradient(0deg, var(--cc-color-canvas) 0%, transparent 12%),
			linear-gradient(90deg, color-mix(in srgb, var(--cc-color-canvas) 85%, transparent) 0%, color-mix(in srgb, var(--cc-color-canvas) 45%, transparent) 42%, transparent 64%);
	}

	.cc-p-managed-it.cc-mi .cc-mi-band__inner {
		align-items: center;
		padding-block: var(--cc-space-xxl);
	}
}

.cc-p-managed-it.cc-mi .cc-mi-band p.cc-mi-band__quote {
	max-width: 17em;
	margin: 0;
	padding-left: var(--cc-space-l);
	border-left: 2px solid var(--cc-color-action);
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: clamp(1.5rem, 2.5vw, 2.4rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

/* ------------------------------------------------------------------ what is covered: the hub and its four areas */

/* Phones and tablets: a labelled chip for the business, and the four areas on one rail beneath it. */
.cc-p-managed-it.cc-mi .cc-mi-areas {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-mi-gap);
}

.cc-p-managed-it.cc-mi .cc-mi-areas > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-hub {
	display: flex;
}

.cc-p-managed-it.cc-mi .cc-mi-hub__art {
	display: none;
}

.cc-p-managed-it.cc-mi .cc-mi-hub__mask {
	fill: var(--cc-color-canvas);
}

.cc-p-managed-it.cc-mi .cc-mi-hub__chip {
	display: inline-flex;
	align-items: center;
	gap: var(--cc-space-s);
	margin: 0;
	padding: 0.5rem var(--cc-space-m) 0.5rem 0.5rem;
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-action);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	--cc-mi-icon: url("../../icons/services/cyber_security.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-hub__chip::before {
	width: 1.5rem;
	height: 1.5rem;
}

.cc-p-managed-it.cc-mi .cc-mi-link {
	display: none;
}

.cc-p-managed-it.cc-mi .cc-mi-area {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: var(--cc-space-s);
	margin-left: 2.5rem;
	padding: var(--cc-space-l);
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
}

.cc-p-managed-it.cc-mi .cc-mi-area > * {
	margin-block: 0;
}

/* The rail: a line down the left of the stack, with a short branch and a dot at each area's icon. */
.cc-p-managed-it.cc-mi .cc-mi-area::before {
	content: "";
	position: absolute;
	top: calc(var(--cc-mi-gap) * -1);
	bottom: calc(var(--cc-mi-gap) * -1);
	left: -1.25rem;
	width: 1px;
	background: var(--cc-color-line-strong);
}

.cc-p-managed-it.cc-mi .cc-mi-area--compliance::before {
	bottom: auto;
	height: calc(var(--cc-mi-gap) + 3rem);
}

.cc-p-managed-it.cc-mi .cc-mi-area::after {
	content: "";
	position: absolute;
	top: 3rem;
	left: -1.5rem;
	width: 1.5rem;
	height: 0.5rem;
	transform: translateY(-50%);
	background:
		radial-gradient(circle, var(--cc-color-action) 0 3px, transparent 3.5px) left center / 0.5rem 0.5rem no-repeat,
		linear-gradient(var(--cc-color-line-strong), var(--cc-color-line-strong)) left center / 100% 1px no-repeat;
}

.cc-p-managed-it.cc-mi .cc-mi-area__head {
	display: flex;
	align-items: center;
	gap: var(--cc-space-m);
}

.cc-p-managed-it.cc-mi .cc-mi-area__head > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-area__icon.cc-icon {
	box-sizing: border-box;
	width: 3rem;
	height: 3rem;
	padding: 0.75rem;
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-action);
}

.cc-p-managed-it.cc-mi .cc-mi-area h3 {
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-m);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cc-p-managed-it.cc-mi .cc-mi-area p.cc-mi-area__intro {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-m);
	line-height: 1.55;
}

.cc-p-managed-it.cc-mi .cc-mi-area ul.cc-mi-area__list {
	margin-block: var(--cc-space-xs) 0;
	font-size: var(--cc-font-size-s);
	color: var(--cc-color-secondary);
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.cc-p-managed-it.cc-mi .cc-mi-area ul.cc-mi-area__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--cc-space-l);
	}
}

/* Desktop: the hub in the middle, a pair of areas on each side, joined by lines drawn here. */
@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-areas {
		grid-template-columns: minmax(0, 1fr) 13.75rem minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 0;
		row-gap: var(--cc-mi-gap);
	}

	/* A quiet dot grid behind the diagram, strongest at the middle and gone by the edges. */
	.cc-p-managed-it.cc-mi .cc-mi-areas {
		isolation: isolate;
	}

	.cc-p-managed-it.cc-mi .cc-mi-areas::before {
		content: "";
		position: absolute;
		inset: -3rem -2rem;
		z-index: -1;
		pointer-events: none;
		background: radial-gradient(circle, var(--cc-color-line) 0 1px, transparent 1.5px) 0 0 / 1.5rem 1.5rem;
		-webkit-mask-image: radial-gradient(ellipse at center, var(--cc-color-white) 0, transparent 70%);
		mask-image: radial-gradient(ellipse at center, var(--cc-color-white) 0, transparent 70%);
	}

	.cc-p-managed-it.cc-mi .cc-mi-hub {
		position: relative;
		z-index: 2;
		grid-column: 2;
		grid-row: 1 / span 2;
		place-self: center;
	}

	.cc-p-managed-it.cc-mi .cc-mi-hub__art {
		display: block;
		width: 13.75rem;
		height: auto;
	}

	.cc-p-managed-it.cc-mi .cc-mi-hub__chip {
		display: none;
	}

	.cc-p-managed-it.cc-mi .cc-mi-area {
		min-height: 16rem;
		margin-left: 0;
		padding: var(--cc-space-xl);
	}

	.cc-p-managed-it.cc-mi .cc-mi-area::before,
	.cc-p-managed-it.cc-mi .cc-mi-area::after {
		content: none;
	}

	.cc-p-managed-it.cc-mi .cc-mi-area--devices {
		grid-column: 1;
		grid-row: 1;
	}

	.cc-p-managed-it.cc-mi .cc-mi-area--people {
		grid-column: 3;
		grid-row: 1;
	}

	.cc-p-managed-it.cc-mi .cc-mi-area--data {
		grid-column: 1;
		grid-row: 2;
	}

	.cc-p-managed-it.cc-mi .cc-mi-area--compliance {
		grid-column: 3;
		grid-row: 2;
	}

	.cc-p-managed-it.cc-mi .cc-mi-link {
		position: relative;
		z-index: 1;
		display: block;
		grid-column: 2;
	}

	.cc-p-managed-it.cc-mi .cc-mi-link--top {
		grid-row: 1;
	}

	.cc-p-managed-it.cc-mi .cc-mi-link--bottom {
		grid-row: 2;
	}

	/* The cross line with a port dot at each card edge and one where it meets the spine. */
	.cc-p-managed-it.cc-mi .cc-mi-link::before {
		content: "";
		position: absolute;
		top: 50%;
		right: 0;
		left: 0;
		height: 0.75rem;
		transform: translateY(-50%);
		background:
			radial-gradient(circle, var(--cc-color-action) 0 3px, transparent 3.5px) left center / 0.5rem 0.5rem no-repeat,
			radial-gradient(circle, var(--cc-color-action) 0 3px, transparent 3.5px) right center / 0.5rem 0.5rem no-repeat,
			radial-gradient(circle, var(--cc-color-action) 0 4px, transparent 4.5px) center / 0.75rem 0.75rem no-repeat,
			linear-gradient(var(--cc-color-line-strong), var(--cc-color-line-strong)) center / 100% 1px no-repeat;
	}

	/* The spine: from each cross line to the middle of the gap between the two rows, under the hub. */
	.cc-p-managed-it.cc-mi .cc-mi-link::after {
		content: "";
		position: absolute;
		left: 50%;
		width: 1px;
		background: var(--cc-color-line-strong);
	}

	.cc-p-managed-it.cc-mi .cc-mi-link--top::after {
		top: 50%;
		bottom: calc(var(--cc-mi-gap) * -0.5);
	}

	.cc-p-managed-it.cc-mi .cc-mi-link--bottom::after {
		top: calc(var(--cc-mi-gap) * -0.5);
		bottom: 50%;
	}
}

/* ------------------------------------------------------------------ packages: three stepped levels */

.cc-p-managed-it.cc-mi .cc-mi-levels {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-l);
	counter-reset: cc-mi-level;
}

.cc-p-managed-it.cc-mi .cc-mi-levels > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-level {
	display: flex;
	flex-direction: column;
}

.cc-p-managed-it.cc-mi .cc-mi-level > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-level__tile {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: var(--cc-space-xs);
	min-height: 9rem;
	padding: var(--cc-space-l);
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line);
	border-bottom: 0;
	border-radius: var(--cc-radius-s) var(--cc-radius-s) 0 0;
}

.cc-p-managed-it.cc-mi .cc-mi-level__tile > * {
	margin-block: 0;
}

/* The step number, large and quiet, top left of each tile. */
.cc-p-managed-it.cc-mi .cc-mi-level__tile::before {
	content: counter(cc-mi-level, decimal-leading-zero);
	counter-increment: cc-mi-level;
	margin-bottom: auto;
	padding-bottom: var(--cc-space-m);
	color: var(--cc-color-line-strong);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-xl);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
}

.cc-p-managed-it.cc-mi .cc-mi-level__tile::after {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	width: 2rem;
	height: 2px;
	background: var(--cc-color-action);
}

.cc-p-managed-it.cc-mi .cc-mi-level--2 .cc-mi-level__tile::after {
	width: 4rem;
}

.cc-p-managed-it.cc-mi .cc-mi-level--3 .cc-mi-level__tile::after {
	width: 6rem;
}

.cc-p-managed-it.cc-mi .cc-mi-level__tile h3 {
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-xl);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: none;
}

.cc-p-managed-it.cc-mi .cc-mi-level__tile p.cc-sp-plan__line {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-m);
	line-height: 1.45;
}

.cc-p-managed-it.cc-mi .cc-mi-level__body {
	box-sizing: border-box;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--cc-space-m);
	padding: var(--cc-space-l);
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line);
	border-radius: 0 0 var(--cc-radius-s) var(--cc-radius-s);
}

.cc-p-managed-it.cc-mi .cc-mi-level__body > * {
	margin-block: 0;
}

.cc-p-managed-it.cc-mi .cc-mi-level__body ul.cc-sp-list {
	font-size: var(--cc-font-size-s);
	color: var(--cc-color-secondary);
}

.cc-p-managed-it.cc-mi .cc-mi-level__body p.cc-sp-link {
	margin-top: auto;
	padding-top: var(--cc-space-m);
	border-top: 1px solid var(--cc-color-line);
}

.cc-p-managed-it.cc-mi .cc-mi-level__body p.cc-sp-link a {
	gap: var(--cc-space-xs);
	--cc-mi-icon: url("../../icons/ui/arrow-right.svg");
}

.cc-p-managed-it.cc-mi .cc-mi-level__body p.cc-sp-link a::after {
	width: 1rem;
	height: 1rem;
	transition: transform var(--cc-transition-base) ease;
}

.cc-p-managed-it.cc-mi .cc-mi-level__body p.cc-sp-link a:hover::after {
	transform: translateX(0.25rem);
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.cc-p-managed-it.cc-mi .cc-mi-level__body ul.cc-sp-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--cc-space-l);
	}
}

@media (min-width: 64em) {
	.cc-p-managed-it.cc-mi .cc-mi-levels {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--cc-space-m);
		row-gap: 0;
	}
}

/* With subgrid the three tiles share one row and sit on its floor at three heights, so their tops climb like steps while
   the lists below start level. Without subgrid the three columns simply stand side by side at one height. */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 64em) {
		.cc-p-managed-it.cc-mi .cc-mi-levels {
			grid-template-rows: auto 1fr;
		}

		.cc-p-managed-it.cc-mi .cc-mi-level {
			display: grid;
			grid-row: span 2;
			grid-template-rows: subgrid;
			row-gap: 0;
		}

		.cc-p-managed-it.cc-mi .cc-mi-level__tile {
			align-self: end;
		}

		.cc-p-managed-it.cc-mi .cc-mi-level--1 .cc-mi-level__tile {
			min-height: 11rem;
		}

		.cc-p-managed-it.cc-mi .cc-mi-level--2 .cc-mi-level__tile {
			min-height: 14.5rem;
		}

		.cc-p-managed-it.cc-mi .cc-mi-level--3 .cc-mi-level__tile {
			min-height: 18rem;
		}
	}
}

/* ------------------------------------------------------------------ how it starts: two numbered nodes on one line */

/* On a phone and from 64em (where the steps sit in the narrow text column of the desk stage) the two nodes stack with the
   line running down the left. Between 48em and 64em, with the full width to use, they sit side by side on one line. */
.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-xl);
	margin-top: clamp(2rem, 4vw, 3rem);
	padding: 0;
	border-top: 0;
	counter-reset: cc-sp-step;
}

.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li {
	position: relative;
	min-height: 3rem;
	margin: 0;
	padding: 0 0 0 4.5rem;
	border-bottom: 0;
	counter-increment: cc-sp-step;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-m);
	line-height: 1.6;
}

/* The node: a numbered ring in the action colour. */
.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li::before {
	content: counter(cc-sp-step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 3rem;
	height: 3rem;
	margin: 0;
	background: var(--cc-color-canvas);
	border: 1.5px solid var(--cc-color-action);
	border-radius: 50%;
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-l);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
}

/* The line between the nodes (down the left), and a dashed run out of the last one. */
.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li::after {
	content: "";
	position: absolute;
	top: 3.25rem;
	bottom: calc(var(--cc-space-xl) * -1 + 0.25rem);
	left: calc(1.5rem + -1px);
	width: 2px;
	background: var(--cc-color-action);
}

.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li:last-child::after {
	bottom: auto;
	height: 3rem;
	background: repeating-linear-gradient(180deg, var(--cc-color-line-strong) 0 6px, transparent 6px 12px);
}

.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps strong {
	display: block;
	margin-bottom: var(--cc-space-xxs);
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-l);
	font-weight: 700;
	line-height: 1.25;
}

.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps br {
	display: none;
}

@media (min-width: 48em) and (max-width: 63.99em) {
	.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--cc-space-xl);
	}

	.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li {
		padding: 4.75rem 0 0;
	}

	.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li::after {
		top: calc(1.5rem + -1px);
		right: calc(var(--cc-space-xl) * -1 + 0.25rem);
		bottom: auto;
		left: 3.25rem;
		width: auto;
		height: 2px;
	}

	/* The line runs on to the next node, which sits at the start of the next column. */
	.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li:first-child::after {
		right: auto;
		width: calc(100% + var(--cc-space-xl) + -3.5rem);
	}

	.cc-p-managed-it.cc-mi .cc-sp-section .cc-mi-steps > li:last-child::after {
		right: auto;
		width: 6rem;
		height: 2px;
		background: repeating-linear-gradient(90deg, var(--cc-color-line-strong) 0 6px, transparent 6px 12px);
	}
}

/* ------------------------------------------------------------------ questions */

.cc-p-managed-it.cc-mi .cc-mi-questions .cc-faq details {
	border-color: var(--cc-color-line);
}

/* ------------------------------------------------------------------ closing call to action over a picture */

/* M03: a rack storage unit with amber lights and a straight light along the desk at the lower right, the left side quiet.
   Phones show the picture first and the call to action under it; from 48em the text sits over the quiet left. */
.cc-p-managed-it.cc-mi .cc-mi-cta {
	border-top: 1px solid var(--cc-color-line);
}

.cc-p-managed-it.cc-mi .cc-mi-stage--storage {
	--cc-mi-pos: 100% 85%;
}

.cc-p-managed-it.cc-mi .cc-mi-cta .cc-sp-cta__inner {
	grid-template-columns: minmax(0, 1fr);
	justify-items: start;
	gap: var(--cc-space-l);
	padding-top: var(--cc-space-xl);
	padding-bottom: clamp(3rem, 8vw, 4rem);
}

.cc-p-managed-it.cc-mi .cc-mi-cta .cc-sp-cta__text {
	max-width: 34rem;
}

@media (min-width: 48em) {
	.cc-p-managed-it.cc-mi .cc-mi-stage--storage {
		--cc-mi-pos: 100% 90%;
		display: flex;
		align-items: center;
		min-height: clamp(26rem, 38vw, 36rem);
	}

	.cc-p-managed-it.cc-mi .cc-mi-stage--storage::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background: linear-gradient(90deg, color-mix(in srgb, var(--cc-color-canvas) 88%, transparent) 0%, color-mix(in srgb, var(--cc-color-canvas) 50%, transparent) 40%, transparent 62%);
	}

	.cc-p-managed-it.cc-mi .cc-mi-cta .cc-sp-cta__inner {
		padding-block: clamp(4rem, 8vw, 6rem);
	}

	/* The text and the buttons stay on the quiet left side of the picture (the storage unit starts a little past the middle). */
	.cc-p-managed-it.cc-mi .cc-mi-cta .cc-sp-cta__text,
	.cc-p-managed-it.cc-mi .cc-mi-cta .wp-block-buttons {
		max-width: min(34rem, 46vw);
	}
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
	.cc-p-managed-it.cc-mi .cc-mi-index__list a,
	.cc-p-managed-it.cc-mi .cc-mi-level__body p.cc-sp-link a::after {
		transition: none;
	}

	.cc-p-managed-it.cc-mi .cc-mi-level__body p.cc-sp-link a:hover::after {
		transform: none;
	}
}
