/* Owner-requested correction to the service introduction, 2026-10-18.
 * Reuse its existing photos and four capabilities. A single aligned photo
 * group faces an open list; mobile exposes all capabilities in reading order.
 * The 800px breakpoint matches the page's existing mobile photo enhancement.
 * Two IDs intentionally outrank the page's retained inline authoring rules.
 * All spacing/type/radii come from the same storefront token scale.
 */
/* WordPress's native paragraph formatting inserts br siblings between these
 * existing links/cards. A br must not consume a Grid/Flex cell: the owner's
 * 2026-10-19 overlap screenshot and the EN/DE service-hero regression expose it. */
#service-redesign :is(.lk-hero-proof,.lk-hero-actions) > br { display: none; }

#service-redesign #deliverables .service-intro {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: var(--proto-space-6) var(--proto-space-8);
	align-items: start;
	border: 0;
	background: transparent;
}
#service-redesign #deliverables .service-intro-copy { display: contents; }
#service-redesign #deliverables .service-intro .lk-section-head {
	grid-column: 1 / -1;
	grid-row: 1;
	max-width: 760px;
	margin: 0 0 var(--proto-space-4);
	padding: 0;
	text-align: left;
	color: var(--proto-ink-deep);
}
#service-redesign #deliverables .service-intro .lk-section-head .lk-eyebrow {
	margin: 0 0 var(--proto-space-3);
	color: var(--proto-teal-700);
}
#service-redesign #deliverables .service-intro .lk-h2 {
	max-width: 760px;
	margin: 0;
	font: 600 clamp(1.875rem, 3vw, 2.75rem)/1.2 var(--proto-font-display);
	letter-spacing: -.025em;
	color: var(--proto-ink-deep);
}
#service-redesign #deliverables .service-intro .lk-subtext {
	max-width: 60ch;
	margin: var(--proto-space-4) 0 0;
	font: 400 1rem/1.7 var(--proto-font-sans);
	color: var(--proto-ink-muted-deep);
}
#service-redesign #deliverables .service-intro-stack {
	grid-column: 1;
	grid-row: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto auto;
	gap: var(--proto-space-3);
	min-height: 0;
}
#service-redesign #deliverables .service-stack-photo {
	grid-column: auto;
	grid-row: auto;
	aspect-ratio: 3 / 2;
	margin: 0;
	border-radius: var(--proto-radius-lg);
}
#service-redesign #deliverables .stack-one { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
#service-redesign #deliverables [data-capability-track] {
	grid-column: 2;
	grid-row: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-flow: row;
	grid-auto-columns: auto;
	gap: 0;
	padding: 0;
	margin: 0;
	overflow: visible;
	border-top: 1px solid var(--proto-line-journal);
}
#service-redesign #deliverables [data-capability-card]:nth-child(n) {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: var(--proto-space-2) var(--proto-space-4);
	width: auto;
	min-height: 0;
	padding: var(--proto-space-5) 0;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--proto-line-journal);
	border-radius: 0;
	background: transparent;
}
#service-redesign #deliverables [data-capability-card]::before { display: none; }
#service-redesign #deliverables [data-capability-card] .app-card-icon {
	grid-column: 1;
	grid-row: 1;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--proto-teal-700);
}
#service-redesign #deliverables [data-capability-card] .lk-trust-val {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	min-height: 0;
	margin: 0;
	font: 600 1.125rem/1.5 var(--proto-font-sans);
	color: var(--proto-ink-deep);
}
#service-redesign #deliverables [data-capability-card] .lk-trust-lbl {
	grid-column: 2;
	grid-row: 2;
	font: 400 .9375rem/1.7 var(--proto-font-sans);
	color: var(--proto-ink-muted-deep);
}
#service-redesign #deliverables .service-intro :is(.capability-controls,.mt-visual,.mt-dock) { display: none; }
/* Owner-requested trade-standard facts, 2026-10-28. One factual row below the
 * existing introduction; this file is the sole customer-visible style source.
 * .75/.9375 match this page's label/body scale; the 1100px and 800px
 * breakpoints already govern the surrounding service layout. */
#service-redesign .lk-trade-standards {
	margin-top: var(--proto-space-5);
	border-top: 1px solid var(--proto-line-journal);
}
#service-redesign .lk-trade-standards dl {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	border-bottom: 1px solid var(--proto-line-journal);
}
#service-redesign .lk-trade-standards dl > div {
	min-width: 0;
	padding: var(--proto-space-4) var(--proto-space-5);
	border-right: 1px solid var(--proto-line-journal);
}
#service-redesign .lk-trade-standards dl > div:first-child { padding-left: 0; }
#service-redesign .lk-trade-standards dl > div:last-child {
	padding-right: 0;
	border-right: 0;
}
#service-redesign .lk-trade-standards dt {
	margin: 0 0 var(--proto-space-2);
	color: var(--proto-teal-700);
	font: 700 .75rem/1.4 var(--proto-font-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
}
#service-redesign .lk-trade-standards dd {
	margin: 0;
	color: var(--proto-ink-muted-deep);
	font: 400 .9375rem/1.7 var(--proto-font-sans);
}
@media (max-width: 1100px) {
	#service-redesign .lk-trade-standards dl {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	#service-redesign .lk-trade-standards dl > div:nth-child(2n) {
		padding-right: 0;
		border-right: 0;
	}
	#service-redesign .lk-trade-standards dl > div:nth-child(-n+2) {
		border-bottom: 1px solid var(--proto-line-journal);
	}
	#service-redesign .lk-trade-standards dl > div:nth-child(3) {
		padding-left: 0;
	}
}
@media (max-width: 800px) {
	/* The retained photo chapter makes this container full width. The open
	 * introduction has no photo overlay now: restore the shared24px gutter,
	 * and remove the old ledger/invitation's duplicate inner gutter. */
	#service-redesign section#deliverables {
		padding-block: var(--proto-space-7);
	}
	#service-redesign section#deliverables > .lk-container {
		width: calc(100% - 2 * var(--proto-space-gutter));
	}
	#service-redesign #deliverables .service-ledger {
		padding-inline: 0;
	}
	#service-redesign #deliverables > .lk-container > .linker-contact-invitation {
		margin-inline: 0;
	}
	#service-redesign #deliverables .service-intro { grid-template-columns: minmax(0, 1fr); gap: var(--proto-space-5); }
	#service-redesign #deliverables .service-intro-stack { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); }
	#service-redesign #deliverables .stack-one { aspect-ratio: 3 / 2; }
	#service-redesign #deliverables :is(.stack-two,.stack-three) { display: none; }
	#service-redesign #deliverables [data-capability-track] { grid-column: 1; grid-row: 3; }
	/* The inherited mobile script toggles these topics for its photo dock.
	 * This open list presents every topic, including when that script is off. */
	#service-redesign #deliverables .service-intro .mt-topic:not(.mt-active) { display: grid !important; }
	#service-redesign .lk-trade-standards dl { grid-template-columns: 1fr; }
	#service-redesign .lk-trade-standards dl > div,
	#service-redesign .lk-trade-standards dl > div:nth-child(2n),
	#service-redesign .lk-trade-standards dl > div:nth-child(3) {
		padding: var(--proto-space-4) 0;
		border-right: 0;
		border-bottom: 1px solid var(--proto-line-journal);
	}
	#service-redesign .lk-trade-standards dl > div:last-child {
		border-bottom: 0;
	}
}
#service-redesign #solutions .service-role-nav button {
	min-height: var(--proto-control-height, 44px);
	padding-block: 11px;
}

/* The three photo stacks are background images, so they cannot carry a
 * srcset; the page body names the original file at every viewport instead.
 * Measured on production 2026-11-14, the boxes are 342px (390), 720px (768)
 * and 529px (1440) wide while the files are 2560px, 2560px and 1672px: three
 * files cost 539,400 bytes for photographs never shown above 720px.
 * Each breakpoint names the variant that covers its own box, from the sizes
 * WordPress already stores for these attachments. A `body` prefix outranks the
 * body's own `#service-redesign .stack-N` rule without touching page content. */
@media (max-width: 767px) {
	body #service-redesign .stack-two {
		background-image: url('/wp-content/uploads/2026/10/linker-grid-documents-for-the-order-600x450.webp');
	}
	body #service-redesign .stack-three {
		background-image: url('/wp-content/uploads/2026/09/linker-commissioning-guidance-from-linker-600x337.webp');
	}
}

@media (min-width: 768px) {
	body #service-redesign .stack-two {
		background-image: url('/wp-content/uploads/2026/10/linker-grid-documents-for-the-order-1024x768.webp');
	}
	body #service-redesign .stack-three {
		background-image: url('/wp-content/uploads/2026/09/linker-commissioning-guidance-from-linker-768x432.webp');
	}
}

/* The partner-stage progress bars are buttons: each carries role="button",
 * tabindex="0" and an aria-label, so they are reachable by keyboard and screen
 * reader. Measured 2026-11-14 on /de/fuer-installateur/ they were 16x3 px, far
 * below the 44px touch target the rest of the site keeps, and six sit side by
 * side within a single row. A 44px square around each would overlap its
 * neighbours and send a tap to the wrong stage, so the row grows instead: the
 * bars keep their painted width and 3px shape, and transparent padding gives
 * each one a target of its own. Vertical padding reaches the 44px the rest of
 * the site keeps because the row has the height to spare; horizontal padding
 * stops at 24px — WCAG 2.5.8's minimum — because 44px across would put the
 * six targets 44px apart and push the row past its 334px column. Measured
 * 2026-11-15: the row is 136px inside a 334px column, so the wider targets
 * have room. The services page uses the same control under the lk-sstage-
 * prefix.
 *
 * Two page rules have to be beaten here, and both are the reason an earlier
 * attempt at this shipped a regression: `#installer-journal .lk-bstage-pill-bar`
 * and `#service-redesign .lk-sstage-pill-bar` are an id plus a class, so any
 * selector without an id loses whatever the order; and each sets the
 * `background` shorthand, which resets `background-clip` to `border-box`, so
 * without the clip the padding grew the painted box and the 3px line became a
 * solid 40px slab (measured on production 2026-11-15: height 40px, computed
 * background-clip border-box, solid colour in the screenshot). The ids are the
 * pages' own containers, already how marketing-rhythm.css reaches them, so
 * naming them is narrower than `body`, not wider. */
.lk-bstage-pills-wrap .lk-bstage-pill-bar,
.lk-sstage-pills-wrap .lk-sstage-pill-bar {
	position: relative;
}

@media (pointer: coarse) {
	/* `.active` needs its own line: the page's `#installer-journal
	 * .lk-bstage-pill-bar.active` is an id and two classes, one class more than
	 * the rule below, so the selected bar alone kept `background-clip:
	 * border-box` and painted a filled 34x43 block while the other five stayed
	 * thin lines (measured on production 2026-11-15; the screenshot showed the
	 * first bar as a solid slab). */
	body #installer-journal .lk-bstage-pill-bar,
	body #service-redesign .lk-sstage-pill-bar,
	body #installer-journal .lk-bstage-pill-bar.active,
	body #service-redesign .lk-sstage-pill-bar.active {
		/* 44px in total: the bar paints 3px, the padding carries the rest. */
		padding-block: calc((44px - 3px) / 2);
		padding-inline: 4px;
		background-clip: content-box;
		box-sizing: content-box;
	}
}

/* The utility page's application dots are buttons too: each carries an
 * aria-label naming its application and aria-pressed for its state, at
 * 7x7 px. A square target around each would overlap the next dot, so on a
 * touch screen the row's own items grow vertically while the dot keeps its
 * painted size. */
@media (pointer: coarse) {
	/* The page body's own rule is `#tv-utility-page-v1 .us-application-dots
	 * button` — an id, a class and a type — and it sets `padding:0`. A rule
	 * without that id loses to it on specificity whatever the order, which is
	 * why the first attempt at this left the dots at 7x7 (measured 2026-11-15
	 * on /de/loesung/grossspeicher/, pointer:coarse matched, padding computed
	 * 0px). Naming the same id and the body outranks it, and the id is already
	 * how marketing-rhythm.css reaches this page's own sections.
	 *
	 * `[aria-pressed]` is in the selector for `background-clip`, not for
	 * padding: the page's pressed dot is `…button[aria-pressed=true]{…background:
	 * var(--us-green)}`, one attribute more than the base rule, and that
	 * `background` shorthand resets the clip to `border-box`. Without the
	 * attribute here the pressed dot kept its padding and painted a solid 24x43
	 * slab while the three idle dots stayed round (measured 2026-11-15, and the
	 * screenshot showed exactly one tall pill). Matching on the attribute's
	 * presence covers both states in one rule.
	 *
	 * The control only exists on the utility page — residential and commercial
	 * print no dots (measured 2026-11-15: 0 occurrences) — so the id is a
	 * narrower anchor than `body`, not a wider one. */
	body #tv-utility-page-v1 .us-application-dots button[aria-pressed] {
		padding-block: 18px;
		background-clip: content-box;
		box-sizing: content-box;
	}

	/* The horizontal half of the same target, and the reason it is 5.5px and
	 * not 8.5: measured 2026-11-15 on /de/loesung/grossspeicher/, the dots sit
	 * at x=156, 191, 209 and 227 at 390px — an 18px pitch, so an 8.5px reach
	 * each side would make two targets share a pixel and send a tap to the
	 * wrong application. 5.5px takes each dot to exactly the midpoint between
	 * it and its neighbour: 18px wide, adjacent but never overlapping. That is
	 * under WCAG 2.5.8's 24px, and it cannot be more without either moving the
	 * dots apart (the row's own gap) or shrinking what a finger can hit. The
	 * dots keep their 7px circle; only the reach grows. */
	body #tv-utility-page-v1 .us-application-dots button[aria-pressed]::after {
		content: '';
		position: absolute;
		inset-block: 0;
		inset-inline: -5.5px;
	}
	body #tv-utility-page-v1 .us-application-dots button[aria-pressed] {
		position: relative;
	}
}

#service-redesign .lk-desk-channels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	letter-spacing: normal;
	text-transform: none;
}
#service-redesign .lk-topbar .lk-container > div:last-child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
#service-redesign .lk-desk-channels > span {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
}
#service-redesign .lk-desk-channels small { font-size: 0.85em; }
#service-redesign #start .lk-desk-channels { margin-top: 20px; font-size: 13px; }
#service-redesign .lk-pair-ship > strong { display: block; margin-bottom: 4px; }
@media (min-width: 769px) {
	body #service-redesign .lk-hero-ss-inner .lk-hero-actions { max-width: 54%; }
}
@media (max-width: 768px) {
	body #service-redesign .lk-hero-ss .lk-hero-proof {
		position: relative;
		inset: auto;
		width: auto;
		margin: 32px 21px 24px;
	}
}
