/* Explanatory artwork uses lettered references; process steps retain their numbers. */
.aed-svc-example {
	position: relative;
	padding-top: var(--svc-section-lead);
	border-top: 1px solid var(--svc-section-line);
	--example-paper: #fbfcf8;
	--example-reference: #526f62;
}
html[data-theme="dark"] .aed-svc-example { --example-paper: #172124; --example-reference: #d6ab87; }
.aed-svc-example::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 52px;
	height: 3px;
	background: var(--svc-section-accent);
	pointer-events: none;
}
.aed-svc-example > .aed-svc-section-intro { align-items: center; gap: 28px; margin-bottom: 24px; }
.aed-svc-example > .aed-svc-section-intro > div { min-width: 0; text-align: center; }
.aed-svc-example > .aed-svc-section-intro > p { text-align: left; }
/* Match the introduction to the panel's explanation/drawing split. */
@media (min-width: 801px) {
	.aed-svc-example--diagram-right > .aed-svc-section-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; }
	.aed-svc-example--diagram-right > .aed-svc-section-intro > div,
	.aed-svc-example--diagram-right > .aed-svc-section-intro > p { padding-inline: 30px; }
	.aed-svc-example--diagram-right > .aed-svc-section-intro > p { max-width: none; }
}
/* Two compact columns above a single image row, without a separate photo-caption band. */
.aed-svc-example--feature > .aed-svc-section-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aed-svc-example--feature > .aed-svc-section-intro > p { max-width: 65ch; text-wrap: pretty; }
.aed-svc-example-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	margin: 0;
	border: 1px solid var(--svc-art-border-mid);
	border-radius: 4px 24px 4px 4px;
	background: var(--svc-card);
	overflow: hidden;
	box-shadow: var(--svc-art-shadow);
}
.aed-svc-example-photo { min-width: 0; }
.aed-svc-example-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.aed-svc-example-drawing {
	min-width: 0;
	background: var(--example-paper);
	align-self: stretch;
	display: flex;
	align-items: center;
}
.aed-svc-example-drawing img { display: block; width: 100%; height: auto; aspect-ratio: 50 / 33; }
.aed-svc-example-drawing .aed-svc-example-dark { display: none; }
html[data-theme="dark"] .aed-svc-example-drawing .aed-svc-example-light { display: none; }
html[data-theme="dark"] .aed-svc-example-drawing .aed-svc-example-dark { display: block; }
.aed-svc-example-panel > figcaption { min-width: 0; padding: 30px; border-left: 1px solid var(--svc-art-border-mid); }
.aed-services .aed-svc-example h3 { font-size: 1.15rem; text-wrap: balance; }
.aed-svc-example-panel > figcaption > h3 { text-align: center; }
.aed-services .aed-svc-example-points { display: grid; gap: 18px; margin: 22px 0 0; padding: 0; }
.aed-svc-example-points > div { min-width: 0; padding-top: 16px; border-top: 1px solid var(--svc-line); }
.aed-svc-example-points dt {
	display: grid;
	grid-template-columns: 1.85rem minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
}
.aed-svc-example-marker {
	display: grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	border: 1px solid currentColor;
	border-radius: 5px;
	background: var(--example-paper);
	color: var(--example-reference);
	font-family: var(--font-sans);
	font-size: .85rem;
	font-weight: 700;
	line-height: 1;
}
.aed-svc-example-points dd {
	margin: 6px 0 0 calc(1.85rem + 12px);
	color: var(--svc-muted);
	font-size: .88rem;
	line-height: 1.65;
	text-align: left;
}
.aed-svc-example-visual { display: flex; flex-direction: column; justify-content: center; min-width: 0; background: var(--example-paper); }
.aed-svc-example-visual > .aed-svc-example-drawing { flex: none; }
.aed-services .aed-svc-example-note { margin: 10px 30px 24px; font-size: .78rem; line-height: 1.65; text-align: center; text-wrap: pretty; }
/* Reading order stays image then text; only the non-interactive desktop columns swap. */
@media (min-width: 801px) {
	.aed-svc-example-panel--diagram-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
	.aed-svc-example-panel--diagram-right > :is(.aed-svc-example-visual, .aed-svc-example-drawing) { grid-column: 2; grid-row: 1; }
	.aed-svc-example-panel--diagram-right > figcaption { grid-column: 1; grid-row: 1; border-left: 0; border-right: 1px solid var(--svc-art-border-mid); }
}
.aed-svc-example-panel--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aed-svc-example-panel--pair .aed-svc-example-photo { grid-column: 1; grid-row: 1; }
.aed-svc-example-panel--pair .aed-svc-example-photo > img { height: 100%; }
.aed-svc-example-panel--pair .aed-svc-example-drawing { grid-column: 2; grid-row: 1; }
.aed-svc-example-panel--pair > figcaption { grid-column: 1 / -1; grid-row: 2; border: 0; padding: 22px 28px 26px; }
.aed-svc-example-panel--pair .aed-svc-example-points { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 0; }
.aed-svc-example-panel--pair .aed-svc-example-points > div { padding-top: 0; border-top: 0; }
/* Subgrid aligns terms and explanations while retaining a normal-grid fallback. */
@supports (grid-template-rows: subgrid) {
	.aed-svc-example-panel--pair .aed-svc-example-points > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 6px; }
	.aed-svc-example-panel--pair .aed-svc-example-points { row-gap: 6px; }
	.aed-svc-example-panel--pair .aed-svc-example-points dd { margin-top: 0; }
}
/* Keep the approved photos crisp at their centres, with a soft transition at the edges. */
.aed-svc-example-panel--soft-photo .aed-svc-example-photo,
.aed-svc-example-panel--soft-photo .aed-svc-example-drawing { position: relative; }
.aed-svc-example-panel--soft-photo .aed-svc-example-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 91%, var(--svc-card)), linear-gradient(to right, transparent 89%, var(--example-paper));
	pointer-events: none;
}
.aed-svc-example-panel--soft-photo .aed-svc-example-drawing::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(22px, 3vw, 42px);
	background: linear-gradient(to bottom, transparent, var(--svc-card));
	pointer-events: none;
}
@media (max-width: 1100px) {
	.aed-svc-example-panel--pair .aed-svc-example-points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 20px; }
	.aed-svc-example--diagram-right > .aed-svc-section-intro > div,
	.aed-svc-example--diagram-right > .aed-svc-section-intro > p { padding-inline: 24px; }
	.aed-svc-example-panel > figcaption { padding: 24px; }
	.aed-services .aed-svc-example-note { margin-inline: 24px; }
}
@media (max-width: 800px) {
	.aed-svc-example > .aed-svc-section-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.aed-svc-example--diagram-right > .aed-svc-section-intro > div,
	.aed-svc-example--diagram-right > .aed-svc-section-intro > p { padding-inline: 0; }
	.aed-svc-example-panel { grid-template-columns: minmax(0, 1fr); }
	.aed-svc-example-panel > figcaption { border-left: 0; border-top: 1px solid var(--svc-art-border-mid); }
	.aed-svc-example-drawing img { max-width: 720px; margin-inline: auto; }
	.aed-svc-example-panel--pair > :is(.aed-svc-example-photo, .aed-svc-example-drawing, figcaption) { grid-column: auto; grid-row: auto; }
	.aed-svc-example-panel--pair .aed-svc-example-photo > img { height: auto; }
	.aed-svc-example-panel--pair > figcaption { border-top: 0; }
	.aed-svc-example-panel--soft-photo .aed-svc-example-photo::after { background: linear-gradient(to bottom, transparent 90%, var(--example-paper)); }
	.aed-services .aed-svc-example-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.aed-svc-example-panel > figcaption { padding: 22px 20px; }
	.aed-services .aed-svc-example-note { margin-inline: 20px; margin-bottom: 20px; }
	.aed-services .aed-svc-example-points { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.aed-svc-example-panel--pair .aed-svc-example-points > div { display: block; grid-row: auto; }
	.aed-svc-example-panel--pair .aed-svc-example-points dd { margin-top: 6px; }
}
@media (forced-colors: active) {
	.aed-svc-example-panel, .aed-svc-example-panel figcaption, .aed-svc-example-drawing, .aed-svc-example-points > div { border-color: CanvasText; }
	.aed-svc-example-marker { color: CanvasText; background: Canvas; }
	.aed-svc-example-panel--soft-photo .aed-svc-example-photo::after,
	.aed-svc-example-panel--soft-photo .aed-svc-example-drawing::after { display: none; }
}
@media print {
	.aed-svc-example-panel--soft-photo .aed-svc-example-photo::after,
	.aed-svc-example-panel--soft-photo .aed-svc-example-drawing::after { display: none; }
	.aed-svc-example-panel { display: block; box-shadow: none; }
	.aed-svc-example-photo > img, .aed-svc-example-drawing, .aed-svc-example-visual { max-width: 440px; margin-inline: auto; }
	.aed-svc-example-panel figcaption { border-inline: 0; padding: 18px; }
	.aed-services .aed-svc-example-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aed-svc-example-points > div { break-inside: avoid; }
	.aed-svc-example-marker { color: #294b5b; background: #fbfcf8; }
	.aed-svc-example-drawing, .aed-svc-example-visual { background: #fbfcf8; }
	.aed-svc-example-drawing .aed-svc-example-light,
	html[data-theme="dark"] .aed-svc-example-drawing .aed-svc-example-light { display: block; }
	.aed-svc-example-drawing .aed-svc-example-dark,
	html[data-theme="dark"] .aed-svc-example-drawing .aed-svc-example-dark { display: none; }
}
