/**
 * Page layouts built from the design's components (pages with no design page
 * of their own). The contact panel and `.ac-form` styles come from home.css.
 */

/* stylelint-disable no-descending-specificity --
 * Page sections share element selectors (a, img); order is by page. */

/* ---------- Contact (page 15) ---------- */

.wp-block-group.ac-contact-card {
	align-items: center;
	padding: 28px 24px;
}

.ac-contact-card .ac-contact-card__label {
	margin: 0;
	color: var(--wp--preset--color--label);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	line-height: 1.4;
	text-transform: uppercase;
}

.ac-contact-card .ac-contact-card__value {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: -0.03em;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.ac-contact-card__value a {
	color: inherit;
	text-decoration: none;
}

.ac-contact-card__value a:hover {
	color: var(--wp--preset--color--blue);
}

.ac-contact-card .ac-contact-card__note {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.7;
}

.wp-block-columns.ac-contact-main__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 24px;
	align-items: stretch;
	margin-block: 0;
}

/* The homepage's contact panel (home.css styles it on a group), on a column. */
.wp-block-column.ac-contact-main__form {
	position: relative;
	overflow: hidden;
	padding: 40px;
	border-radius: 21px;
	background: linear-gradient(112deg, #ecf5ff 0%, #f3faff 47%, #e6f4ff 100%);
}

.ac-contact-main .ac-contact-main__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.ac-contact-main .ac-contact-main__copy {
	margin: 12px 0 22px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.75;
}

.ac-contact-main__form .wpcf7 {
	max-width: none;
}

.ac-contact-main__form .ac-contact-panel__note {
	margin: 14px 0 0;
	text-align: center;
}

/* Forms 119 and 318 keep their Bootstrap-style markup (classic theme
 * fallback): map the column classes onto a 12-column grid. */
.ac-form--legacy .row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 10px;
}

.ac-form--legacy .row > * {
	grid-column: span 12;
}

.ac-form--legacy .row > .col-lg-6 {
	grid-column: span 6;
}

.ac-form--legacy .row > .col-lg-4 {
	grid-column: span 4;
}

.wp-block-column.ac-contact-main__map {
	display: flex;
	flex-direction: column;
	padding: 40px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 21px;
	background: var(--wp--preset--color--white);
}

.ac-map {
	flex: 1;
	min-height: 320px;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--wash);
}

.ac-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}

/* ---------- How it works (page 7) ---------- */

.wp-block-group.ac-how-steps .ac-section-head {
	margin-bottom: 40px;
}

.wp-block-group.ac-step-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--white);
}

/* Whole photo at its own shape (768x208 originals), never cropped; the
 * aspect ratio holds the space while the lazy-loaded image arrives. */
.ac-step-card .ac-step-card__image {
	margin: 0;
	overflow: hidden;
}

.ac-step-card .ac-step-card__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 768 / 208;
	object-fit: contain;
}

.wp-block-group.ac-step-card__body {
	padding: 24px 26px 28px;
}

.ac-step-card__body .ac-step-card__number {
	margin: 0;
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
}

.ac-step-card__body .ac-step-card__title {
	margin: 10px 0 10px;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: 1.3;
}

.ac-step-card__body .ac-step-card__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.75;
}

/* ---------- What you get (page 9) ---------- */

.wp-block-group.ac-benefits {
	margin-top: 36px;
}

.wp-block-group.ac-benefit {
	align-items: center;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--white);
}

.ac-benefit .ac-benefit__icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
}

.ac-benefit .ac-benefit__label {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--label);
	line-height: 1.3;
}

.wp-block-group.ac-features .ac-section-head {
	margin-bottom: 40px;
}

.wp-block-group.ac-feature-card {
	padding: 26px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--white);
}

/* Whole photo, 72px high, width from its own shape (never cropped). */
.ac-feature-card .ac-feature-card__image {
	width: fit-content;
	height: 72px;
	margin: 0 0 18px;
	overflow: hidden;
	border-radius: 18px;
}

.ac-feature-card .ac-feature-card__image img {
	display: block;
	width: auto;
	max-width: none;
	height: 72px;
}

.ac-feature-card .ac-feature-card__title {
	margin: 0 0 8px;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: 1.3;
}

.ac-feature-card .ac-feature-card__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.75;
}

/* ---------- Services hub (/services/, design services/index.html) --- */

.ac-page-hero .ac-services-kpis {
	margin-top: 36px;
}

.wp-block-group.ac-services-hub .ac-section-head {
	margin-bottom: 40px;
}

.ac-hub-card .ac-hub-card__title {
	margin: 20px 0 10px;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
}

.ac-hub-card .ac-hub-card__text {
	margin: 0 0 20px;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.78;
}

.wp-block-group.ac-services-more {
	margin-top: 56px;
}

.ac-services-more .ac-services-more__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 22px 0 0;
}

.ac-services-more .ac-services-more__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
}

.ac-services-start .ac-services-start__label {
	margin: 0 0 12px;
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
}

.wp-block-group.ac-services-start .ac-section-head {
	margin-bottom: 40px;
}

/* ---------- Directory pages (/tools/, /news/; design .note-box) --- */

.ac-directory .ac-directory-card__label {
	margin: 0;
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
}

.ac-directory .ac-note-box {
	box-sizing: border-box;
	margin: 25px 0 0;
	padding: 19px 22px;
	border: 1px solid var(--wp--preset--color--line-blue);
	border-radius: 12px;
	background: var(--wp--preset--color--wash);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

/* ---------- Service detail pages (design services/{migration,…}.html) --- */

.wp-block-columns.ac-detail {
	display: grid;
	grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.23fr);
	gap: 58px;
	align-items: start;
	margin-block: 0;
}

.wp-block-column.ac-detail__intro {
	position: sticky;
	top: 32px;
}

.ac-detail__intro .ac-detail__title {
	margin: 17px 0;
	font-size: var(--wp--preset--font-size--xxx-large);
	line-height: 1.12;
}

.ac-detail__intro .ac-detail__copy {
	margin: 0 0 18px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.83;
}

.wp-block-column.ac-detail__panel {
	padding: 35px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 22px;
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--panel);
}

.ac-detail__panel .ac-detail__panel-title {
	margin: 0 0 20px;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
}

.ac-detail__panel .ac-detail__checks {
	grid-template-columns: 1fr 1fr;
	gap: 13px 17px;
}

.wp-block-columns.ac-readiness {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 40px;
	align-items: center;
	margin-block: 0;
	padding: 38px 44px;
	border: 1px solid var(--wp--preset--color--line-blue);
	border-radius: 24px;
	background:
		radial-gradient(circle at 92% 0%, rgb(97 188 255 / 13%), transparent 42%),
		linear-gradient(110deg, #f4f9ff, var(--wp--preset--color--white));
}

.ac-readiness .ac-readiness__title {
	margin: 18px 0 12px;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.18;
}

.ac-readiness .ac-readiness__copy {
	max-width: 370px;
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.78;
}

.ac-readiness .ac-readiness__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ac-readiness__list li {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 14px 17px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 11px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
}

.ac-readiness__list li::before {
	content: "✓" / "";
	display: grid;
	flex: none;
	place-items: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: var(--wp--custom--font-weight--heading);
}

/* ---------- Service pages (classic template-services.php) ---------- */

.ac-page-hero .ac-page-hero__actions {
	margin-top: 28px;
}

.ac-service-body h2.wp-block-heading {
	margin: 44px 0 14px;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.2;
}

.ac-service-body > h2.wp-block-heading:first-child {
	margin-top: 0;
}

.ac-service-body h3.wp-block-heading {
	margin: 34px 0 10px;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
}

.ac-service-body h4.wp-block-heading {
	margin: 26px 0 8px;
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: -0.02em;
}

.ac-service-body p,
.ac-service-body li {
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.85;
}

.ac-service-body .wp-block-list {
	padding-left: 1.2em;
}

.ac-service-body li + li {
	margin-top: 6px;
}

.ac-service-body a {
	color: var(--wp--preset--color--blue);
}

.ac-latest-section .ac-latest-section__more {
	margin-top: 28px;
}

/* ---------- Cost calculator (page 3184) ---------- */

.ac-calculator-section .ac-calculator-section__contact {
	margin: 28px 0 0;
	font-size: var(--wp--preset--font-size--medium);
}

.ac-calculator-section .ac-calculator-section__contact a {
	color: var(--wp--preset--color--blue);
	font-weight: var(--wp--custom--font-weight--label);
}

/* ---------- About us (page 5676) ---------- */

.ac-page-hero .ac-about-tagline {
	margin: 22px 0 0;
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--label);
}

.wp-block-columns.ac-about-story__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	margin-block: 0;
}

.ac-about-story .ac-about-story__image {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--xl);
	box-shadow: var(--wp--preset--shadow--card);
}

.ac-about-story .ac-about-story__image img {
	display: block;
	width: 100%;
	height: auto;
}

.ac-about-story .ac-about-title {
	margin: 16px 0 0;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
}

.ac-about-story .ac-about-copy {
	margin: 16px 0 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.8;
}

.wp-block-group.ac-about-steps .ac-section-head {
	margin-bottom: 40px;
}

.ac-about-step .ac-about-step__number {
	margin: 0 0 14px;
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: 1;
}

.ac-home-team .wp-block-quote.ac-about-quote {
	max-width: 760px;
	margin: 48px auto 0;
	padding: 0;
	border: 0;
	text-align: center;
}

.ac-about-quote p {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: var(--wp--custom--font-weight--label);
	letter-spacing: -0.02em;
	line-height: 1.5;
}

.ac-about-quote p::before {
	content: "“" / "";
	display: block;
	height: 36px;
	color: #9dc6fd;
	font: 700 61px/0.9 Georgia, serif;
}

.ac-about-quote cite {
	display: block;
	margin-top: 14px;
	color: var(--wp--preset--color--label);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: var(--wp--custom--font-weight--label);
}

@media (max-width: 900px) {

	.wp-block-group.ac-about-steps__grid.is-layout-grid,
	.wp-block-group.ac-about-team__grid.is-layout-grid,
	.wp-block-group.ac-services-hub__grid.is-layout-grid,
	.wp-block-group.ac-features__grid.ac-service-benefits.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-columns.ac-detail,
	.wp-block-columns.ac-readiness {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.wp-block-column.ac-detail__intro {
		position: static;
	}

	/* Four cards: no full-width last card (the homepage rule is for three). */
	.ac-about-team__grid > .ac-team-card:last-child {
		grid-column: auto;
	}

	.wp-block-columns.ac-about-story__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.wp-block-group.ac-benefits.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.ac-features__grid.is-layout-grid,
	.wp-block-group.ac-how-steps__grid.is-layout-grid,
	.wp-block-group.ac-contact-details__grid.is-layout-grid,
	.wp-block-columns.ac-contact-main__layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {

	.wp-block-group.ac-about-steps__grid.is-layout-grid,
	.wp-block-group.ac-services-hub__grid.is-layout-grid,
	.wp-block-group.ac-features__grid.ac-service-benefits.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ac-detail__panel .ac-detail__checks {
		grid-template-columns: 1fr;
	}

	.wp-block-column.ac-detail__panel,
	.wp-block-columns.ac-readiness {
		padding: 26px 20px;
	}

	.ac-contact-card .ac-contact-card__value {
		font-size: var(--wp--preset--font-size--large);
	}

	.wp-block-column.ac-contact-main__form,
	.wp-block-column.ac-contact-main__map {
		padding: 26px 20px;
	}

	.ac-form--legacy .row > .col-lg-6,
	.ac-form--legacy .row > .col-lg-4 {
		grid-column: span 12;
	}
}

/* ── /how-it-works/ (page 7), conversion redesign 2026-11-10 ───────────── */

.ac-hiw-hero .ac-hiw-hero__actions {
	margin-top: 30px;
}

.wp-block-group.ac-hiw-reassure {
	margin-top: 30px;
}

.wp-block-group.ac-hiw-reassure__item {
	align-items: center;
}

.ac-hiw-reassure .ac-hiw-reassure__icon {
	color: var(--wp--preset--color--blue);
}

.ac-hiw-reassure .ac-hiw-reassure__text {
	margin: 0;
	text-align: left;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--label);
}

/* Proof strip: a card overlapping the hero's bottom edge, three figures. */
.wp-block-group.ac-hiw-stats-wrap {
	position: relative;
	z-index: 1;
	margin-top: -46px;
	padding-inline: var(--wp--style--root--padding-right, 20px);
}

.wp-block-group.ac-hiw-stats {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--xl);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--card);
}

.wp-block-group.ac-hiw-stat {
	padding: 26px 28px;
	text-align: center;
}

.wp-block-group.ac-hiw-stat + .wp-block-group.ac-hiw-stat {
	border-left: 1px solid var(--wp--preset--color--line);
}

.ac-hiw-stat .ac-hiw-stat__number {
	margin: 0;
	background: var(--wp--preset--gradient--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: var(--wp--preset--font-size--xxx-large);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--tight);
	line-height: 1;
}

.ac-hiw-stat .ac-hiw-stat__label {
	margin: 8px 0 2px;
	color: var(--wp--preset--color--ink);
	line-height: 1.35;
	font-weight: var(--wp--custom--font-weight--label);
}

.ac-hiw-stat .ac-hiw-stat__note {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
}

/* Steps: four cards (two on tablets, one on phones). */
.wp-block-group.ac-hiw-steps__grid,
.wp-block-group.ac-hiw-split__grid,
.wp-block-group.ac-hiw-trust__grid {
	margin-top: 46px;
}

.wp-block-group.is-style-card.ac-hiw-step {
	padding: 28px 26px 30px;
}

.wp-block-group.ac-hiw-step__top {
	align-items: center;
	margin-bottom: 10px;
}

.ac-hiw-step .ac-hiw-step__number {
	margin: 0;
	background: var(--wp--preset--gradient--brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--tight);
	line-height: 1;
}

.ac-hiw-step .ac-hiw-step__icon,
.ac-hiw-trust .ac-hiw-trust__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--gradient--tint);
	color: var(--wp--preset--color--blue);
}

.ac-hiw-step .ac-hiw-step__title,
.ac-hiw-trust .ac-hiw-trust__title,
.ac-hiw-split .ac-hiw-split__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: var(--wp--custom--letter-spacing--snug);
	line-height: 1.25;
}

.ac-hiw-step .ac-hiw-step__text,
.ac-hiw-trust .ac-hiw-trust__text {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.65;
}

.ac-hiw-steps .ac-hiw-inline-cta {
	margin-top: 40px;
	font-size: var(--wp--preset--font-size--medium);
}

/* Your part / our part. */
.wp-block-group.is-style-card.ac-hiw-split__card {
	padding: 30px 32px 32px;
}

.wp-block-group.is-style-card.ac-hiw-split__card--ours {
	border-color: var(--wp--preset--color--blue);
	box-shadow: var(--wp--preset--shadow--card);
}

.ac-hiw-split .ac-hiw-split__label {
	margin: 0;
	color: var(--wp--preset--color--blue);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: var(--wp--custom--font-weight--heading);
	letter-spacing: var(--wp--custom--letter-spacing--wide);
	text-transform: uppercase;
}

.ac-hiw-split .ac-hiw-split__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.ac-hiw-split .ac-hiw-split__list li {
	position: relative;
	padding-left: 32px;
	color: var(--wp--preset--color--body);
}

/* Check mark: the theme's blue (#285cf4) on the tint colour. */
.ac-hiw-split .ac-hiw-split__list li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23285cf4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.ac-hiw-split .ac-hiw-split__actions {
	margin-top: 36px;
}

/* FAQs and the alternative contact line under the free-month form. */
.ac-hiw-faq .ac-hiw-faq__list {
	margin-top: 40px;
}

.ac-hiw-faq .ac-hiw-faq__more {
	margin-top: 28px;
}

.ac-free-trial .ac-hiw-trial__alt {
	margin-top: 14px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 1100px) {

	.wp-block-group.ac-hiw-steps__grid.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {

	/* Proof strip stacks; dividers turn horizontal. */
	.wp-block-group.ac-hiw-stats.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.wp-block-group.ac-hiw-stat + .wp-block-group.ac-hiw-stat {
		border-top: 1px solid var(--wp--preset--color--line);
		border-left: 0;
	}

	.wp-block-group.ac-hiw-stat {
		padding: 18px 20px;
	}

	/* Reassurances: a left-aligned list, centred as a block. */
	.wp-block-group.ac-hiw-reassure.is-layout-flex {
		flex-direction: column;
		align-items: flex-start;
		width: fit-content;
		margin-inline: auto;
	}

	.wp-block-group.ac-hiw-steps__grid.is-layout-grid,
	.wp-block-group.ac-hiw-split__grid.is-layout-grid,
	.wp-block-group.ac-hiw-trust__grid.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Service pages redesign (22 pages, tools/build-service-redesign.py, 2026-11-11) ──
 * Article + sticky sidebar (layout from the single post: .ac-post-layout*), lead
 * paragraph, list styles, sub-point cards, "On this page" box, related services. */

.ac-svc-article :is(h2, h3)[id] {
	scroll-margin-top: 110px;
}

.ac-svc-article > :first-child {
	margin-top: 0;
}

.ac-service-body p.ac-svc-lead {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.7;
}

/* Lists: check marks instead of bullets. */
.ac-service-body .wp-block-list.ac-svc-list {
	margin-block: 18px 26px;
	padding: 0;
	list-style: none;
}

.ac-service-body .ac-svc-list > li {
	position: relative;
	margin: 0;
	padding-left: 34px;
}

.ac-service-body .ac-svc-list > li + li {
	margin-top: 10px;
}

.ac-service-body .ac-svc-list > li::before {
	content: "";
	position: absolute;
	top: 0.45em;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23285cf4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Labelled lists ("Cost-effectiveness: …"): one card per item. */
.ac-service-body .ac-svc-list--cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ac-service-body .ac-svc-list--cards > li,
.ac-service-body .ac-svc-list--cards > li + li {
	margin: 0;
	padding: 20px 22px 20px 58px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.7;
}

.ac-service-body .ac-svc-list--cards > li::before {
	top: 22px;
	left: 22px;
}

.ac-service-body .ac-svc-list--cards > li > strong:first-child,
.ac-service-body .ac-svc-list--cards > li > a:first-child,
.ac-service-body .ac-svc-list--cards > li > b:first-child {
	display: block;
	margin-bottom: 4px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.4;
}

.ac-service-body .ac-svc-list--cards > li > a:first-child {
	color: var(--wp--preset--color--blue);
}

/* Short items: two columns. */
.ac-service-body .ac-svc-list--two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 28px;
}

.ac-service-body .ac-svc-list--two > li + li {
	margin-top: 0;
}

/* Runs of H4 sub-points: two-column cards. */
.wp-block-group.ac-svc-points {
	margin-block: 22px 30px;
}

/* Reading cards: they don't lift on hover like link cards. */
.wp-block-group.is-style-card.ac-svc-point,
.wp-block-group.is-style-card.ac-svc-point:hover {
	padding: 24px 26px 26px;
	box-shadow: none;
	transform: none;
}

.ac-service-body .ac-svc-point h4.ac-svc-point__title {
	position: relative;
	margin: 0 0 6px;
	padding-top: 16px;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.35;
}

/* Short brand bar above each sub-point title. */
.ac-service-body .ac-svc-point h4.ac-svc-point__title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 32px;
	height: 4px;
	border-radius: 2px;
	background: var(--wp--preset--gradient--brand);
}

.ac-service-body .ac-svc-point p {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.7;
}

.ac-service-body .ac-svc-point p + p {
	margin-top: 12px;
}

.ac-expert-card p.ac-expert-card__title {
	font-weight: var(--wp--custom--font-weight--heading);
}

/* Sidebar: "On this page" above the expert card. */
.wp-block-group.ac-svc-toc {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 20px 12px 14px 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--white);
}

.ac-svc-toc .ac-svc-toc__title {
	margin: 0 0 10px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: var(--wp--custom--font-weight--heading);
}

.ac-svc-toc .ac-svc-toc__list {
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	scrollbar-width: thin;
}

.ac-svc-toc .ac-svc-toc__list li.is-level-3 {
	margin-left: 14px;
	padding-left: 8px;
	border-left: 1px solid var(--wp--preset--color--line);
}

.ac-svc-toc .ac-svc-toc__list a {
	display: block;
	padding: 6px 8px;
	border-radius: 8px;
	color: var(--wp--preset--color--body);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.45;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.ac-svc-toc .ac-svc-toc__list a:hover,
.ac-svc-toc .ac-svc-toc__list a:focus-visible {
	background: var(--wp--preset--color--wash);
	color: var(--wp--preset--color--blue);
}

.ac-svc-toc .ac-svc-toc__list a:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: -2px;
}

/* Related services. */
.wp-block-group.ac-svc-related__grid {
	margin-top: 46px;
}

.wp-block-group.is-style-card.ac-svc-related__card {
	padding: 28px 26px;
}

.ac-svc-related .ac-svc-related__icon {
	color: var(--wp--preset--color--blue);
}

.ac-svc-related .ac-svc-related__title {
	margin: 8px 0 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.ac-svc-related .ac-svc-related__text {
	margin: 0;
	color: var(--wp--preset--color--muted);
	line-height: 1.6;
}

.ac-svc-related .ac-svc-related__link {
	margin-top: auto;
	padding-top: 8px;
}

.ac-svc-related .ac-svc-related__more {
	margin-top: 32px;
}

@media (max-width: 1023px) {

	.wp-block-group.ac-svc-toc {
		display: none;
	}
}

@media (max-width: 900px) {

	.wp-block-group.ac-svc-related__grid.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 700px) {

	.ac-service-body .ac-svc-list--cards,
	.ac-service-body .ac-svc-list--two,
	.wp-block-group.ac-svc-points.is-layout-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ac-service-body .ac-svc-list--cards > li,
	.ac-service-body .ac-svc-list--cards > li + li {
		padding: 18px 18px 18px 52px;
	}

	.ac-service-body .ac-svc-list--cards > li::before {
		top: 20px;
		left: 18px;
	}
}
