/* Minimal, every page after the homepage: the same calm layout and the same scroll moments.
   Selectors are a notch more specific than the older edition styles they replace. */

main.field-guide-service { background: var(--q-bg); overflow-x: clip; }

/* Hero: words first, then the photograph opens out to full width as you scroll. -------- */
.sg-hero[class] { padding: clamp(28px, 4vw, 56px) var(--q-pad) 0; background: var(--q-bg); color: var(--q-text); }
.sg-hero[class] .sg-breadcrumb { margin: 0 0 22px; font-size: 14px; color: var(--q-muted); }
.sg-hero[class] .sg-breadcrumb a { color: var(--q-text); }
.sg-hero[class] h1 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: 1.02; color: var(--q-ink); }
.sg-hero[class] h1 .sg-kicker,
.sg-hero[class] .sg-kicker { display: block; margin: 0 0 16px; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--q-muted); }
.sg-hero[class] .sg-title-text { display: block; max-width: 15ch; font-size: clamp(40px, 5.6vw, 80px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; color: var(--q-ink); }
.sg-hero[class].sg-title-long .sg-title-text { max-width: 20ch; font-size: clamp(36px, 4.4vw, 64px); }
.sg-hero[class] .sg-intro { max-width: 46ch; margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--q-muted); }
.sg-hero[class] .sg-updated { margin: 12px 0 0; font-size: 13px; color: var(--q-muted); }
.sg-hero[class] .sg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.sg-text-link { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--q-line); color: var(--q-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.sg-text-link:hover { box-shadow: inset 0 0 0 1px var(--q-ink); color: var(--q-ink); }
.sg-hero[class] .sg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "glance"; gap: 0; max-width: none; margin: 0; padding: 0; border: 0; }
.sg-hero[class] .sg-hero-grid > .sg-hero-copy { grid-area: copy; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "crumb crumb" "kicker kicker" "title intro" "title updated" "title actions"; grid-template-rows: auto auto 1fr auto auto; align-items: end; column-gap: 48px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0; border: 0; }
.sg-hero[class] .sg-hero-grid > .sg-hero-copy > .sg-breadcrumb { grid-area: crumb; }
.sg-hero[class] .sg-hero-grid > .sg-hero-copy > .sg-kicker { grid-area: kicker; }
.sg-hero[class] .sg-hero-grid > .sg-hero-copy > h1 { grid-area: title; align-self: end; }
.sg-hero[class] .sg-hero-grid > .sg-hero-copy > .sg-intro { grid-area: intro; }
.sg-hero[class] .sg-hero-grid > .sg-hero-copy > .sg-updated { grid-area: updated; }
.sg-hero[class] .sg-hero-grid > .sg-hero-copy > .sg-actions { grid-area: actions; }
.sg-hero[class] .sg-hero-media { grid-area: media; position: relative; height: clamp(320px, 64vh, 760px); min-height: 0; margin: clamp(40px, 5vw, 72px) calc(-1 * var(--q-pad)) 0; border: 0; border-radius: 0; background: var(--q-soft); clip-path: inset(0 var(--q-pad) round var(--q-radius-lg)); }
.sg-hero[class] .sg-hero-media > picture,
.sg-hero[class] .sg-hero-media > img,
.sg-hero[class] .sg-hero-media picture img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sg-hero[class] .sg-hero-media figcaption { left: calc(var(--q-pad) + 28px); right: calc(var(--q-pad) + 28px); bottom: 26px; padding: 0; background: none; }
.sg-hero[class] .sg-glance { grid-area: glance; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; width: 100%; max-width: 1240px; margin: 32px auto 0; padding: 0; border: 0; }
.sg-hero[class] .sg-glance > div { padding: 0; border: 0; }
.sg-hero[class] .sg-glance dt { font-size: 13px; color: var(--q-muted); }
.sg-hero[class] .sg-glance dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; color: var(--q-ink); }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: scroll()) {
		.sg-hero[class] .sg-hero-media,
		.jn-cover { animation: q-open linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
		.sg-hero[class] .sg-hero-media img,
		.jn-cover img { animation: q-settle linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
	}
}
@keyframes q-open { to { clip-path: inset(0 0 round 0); } }
@keyframes q-settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Product hero: the product sits in a soft panel and eases back as you scroll on. */
.pd-hero[class] .pd-hero-grid { max-width: 1240px; margin: 0 auto; padding: 0 0 clamp(48px, 6vw, 88px); border: 0; column-gap: 64px; }
.pd-hero[class] .pd-hero-grid h1 { font-size: clamp(38px, 4.6vw, 64px); }
.pd-hero[class] .pd-hero-grid h1 { margin-bottom: 14px; }
.pd-hero[class] .pd-model { margin: 0 0 12px; font-size: 15px; color: var(--q-muted); }
.pd-hero[class] .pd-stage { border: 0; border-radius: var(--q-radius-lg); background: var(--q-soft); }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.pd-stage img { animation: q-float linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
	}
}
@keyframes q-float { to { transform: translateY(-6%) scale(.94); } }

/* Projects hero: the photo mosaic drifts at different speeds. */
.pj-hero[class] .pj-hero-grid { max-width: 1240px; margin: 0 auto; padding-bottom: clamp(48px, 6vw, 88px); border: 0; }
.pj-hero[class] .sg-title-text { font-size: clamp(40px, 5vw, 72px); }
.pj-mosaic > * { border-radius: var(--q-radius); overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.pj-mosaic > :nth-child(odd) { animation: q-rise linear both; animation-timeline: view(); animation-range: cover; }
		.pj-mosaic > :nth-child(even) { animation: q-sink linear both; animation-timeline: view(); animation-range: cover; }
	}
}
@keyframes q-rise { from { transform: translateY(6%); } to { transform: translateY(-6%); } }
@keyframes q-sink { from { transform: translateY(-4%); } to { transform: translateY(4%); } }

/* Journal hero and article header. */
.jn-hero[class] .jn-hero-grid { max-width: 1240px; margin: 0 auto; padding-bottom: clamp(40px, 5vw, 72px); border: 0; align-items: end; }
.jn-hero[class] .jn-promise { color: var(--q-muted); border-color: var(--q-line); }
.jn-article-hero[class] .jn-article-head { max-width: 900px; margin: 0 auto; }
.jn-article-hero[class] h1 { font-size: clamp(36px, 4.6vw, 64px); }
.jn-article-hero[class] .jn-standfirst { font-size: clamp(18px, 1.5vw, 21px); color: var(--q-muted); }
.jn-article-hero[class] .jn-byline { border-color: var(--q-line); }
.jn-article-hero[class] .jn-byline p { border-color: var(--q-line); }
.jn-cover { margin: clamp(40px, 5vw, 64px) calc(-1 * var(--q-pad)) 0; border-radius: 0; overflow: hidden; clip-path: inset(0 var(--q-pad) round var(--q-radius-lg)); }
.jn-topic-link, .pj-tag { border-radius: 999px; background: var(--q-tint); color: var(--q-green); }
.jn-topic-link:hover, a.pj-tag:hover { background: var(--q-green); color: #fff; }

/* Chapters: one rhythm, quiet headings. ----------------------------------------- */
main.field-guide-service > section.fg-chapter,
main.field-guide-service > article ~ section.fg-chapter { padding: clamp(60px, 8vw, 112px) var(--q-pad); border: 0; background: var(--q-bg); color: var(--q-text); }
main.field-guide-service > section.fg-chapter:is(.sg-chapter-tool, .pj-chapter-area, .lc-chapter-reviews, .pd-chapter-install, .sg-chapter-network) { background: var(--q-soft); }
main.field-guide-service .sg-chapter-content { max-width: 1240px; margin: 0 auto; padding: 0; border: 0; }
main.field-guide-service .fg-chapter h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; color: var(--q-ink); }
main.field-guide-service .fg-chapter h3 { font-weight: 600; letter-spacing: -.015em; color: var(--q-ink); }
main.field-guide-service :is(.sg-network-heading, .sg-evidence-heading, .section-heading, .sg-tool-intro, .pd-compat) p { color: var(--q-muted); }
main.field-guide-service :is(.sg-network-heading, .sg-evidence-heading) { border: 0; padding: 0; margin-bottom: clamp(32px, 4vw, 56px); }
.q-w { color: #c9cfca; transition: color .3s ease; }
.q-w.is-lit { color: var(--q-ink); }

/* Steps: small numbered circles joined by a line that draws as you pass. */
main.field-guide-service .sg-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px clamp(24px, 3vw, 48px); margin: 0; padding: 0; border: 0; list-style: none; counter-reset: none; }
main.field-guide-service .sg-steps::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 1px; background: var(--q-green); transform-origin: 0 50%; }
main.field-guide-service .sg-steps li { position: relative; padding: 0; border: 0; background: transparent; }
main.field-guide-service .sg-step-number { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 22px; border: 1px solid var(--q-green); border-radius: 50%; background: var(--q-bg); font: 500 14px/1 var(--q-font); letter-spacing: 0; color: var(--q-green); }
main.field-guide-service .sg-steps h3 { margin: 0 0 8px; font-size: 19px; }
main.field-guide-service .sg-steps p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--q-muted); }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		main.field-guide-service .sg-steps::before { animation: q-draw linear both; animation-timeline: view(); animation-range: entry 80% cover 50%; }
	}
}
@keyframes q-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Lists that are not a sequence lose their numbers and the line. */
#contact-ready .sg-steps::before,
.pd-install-list::before { content: none; }
#contact-ready .sg-step-number,
.pd-install-list .sg-step-number { display: none; }
.pd-install-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin: 0; padding: 0; border: 0; list-style: none; }
.pd-install-list li { padding: 0; border: 0; }
.pd-install-list h3 { margin: 0 0 6px; font-size: 18px; }
.pd-install-list p { margin: 0; font-size: 15.5px; color: var(--q-muted); }
.pd-checklist li::before, .enq-success li::before { content: none; }
.pd-checklist li { padding-left: 0; border-color: var(--q-line); }

/* Photographs from real jobs: the three cards gather together as you scroll in. */
.sg-evidence-grid { gap: clamp(16px, 2vw, 28px); }
.sg-evidence-card { padding: 0; border: 0; color: inherit; text-decoration: none; }
.sg-method summary::before { border-radius: 50%; border-color: var(--q-line); }
.sg-evidence-media { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--q-radius); overflow: hidden; }
.sg-evidence-card h3 { margin: 14px 0 2px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--q-ink); }
.sg-evidence-card > span { font-size: 14px; color: var(--q-muted); }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.sg-evidence-grid > :nth-child(3n + 1) { animation: q-gather-left linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
		.sg-evidence-grid > :nth-child(3n + 2) { animation: q-gather-up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
		.sg-evidence-grid > :nth-child(3n) { animation: q-gather-right linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
	}
}
@keyframes q-gather-left { from { transform: translateX(-8%); } }
@keyframes q-gather-up { from { transform: translateY(12%); } }
@keyframes q-gather-right { from { transform: translateX(8%); } }

/* Related pages: soft cards, no rules. */
.sg-network { gap: 16px; border: 0; }
.sg-network li, .sg-network-guides li { border: 0; }
.sg-network a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 24px; border: 1px solid var(--q-line); border-radius: var(--q-radius); background: #fff; color: var(--q-ink); text-decoration: none; transition: border-color .2s ease, transform .3s var(--q-ease); }
.sg-network a:hover, .sg-network a:focus-visible { border-color: var(--q-green); background: #fff; color: var(--q-ink); transform: translateY(-3px); }
.sg-network-number { display: none; }
.sg-network-teaser { color: var(--q-muted); }
.sg-network-arrow { display: none; }
.sg-method-links a, .sg-network-guides a { color: var(--q-green); }

/* Figures: plain numbers, no dividers. */
:is(.pj-figures, .lc-figures) { gap: 24px 40px; border: 0; }
:is(.pj-figures, .lc-figures) > div { padding: 0; border: 0; }
:is(.pj-figures, .lc-figures) dd { font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: -.035em; color: var(--q-ink); }
:is(.pj-figures, .lc-figures) dt { color: var(--q-muted); }
.lc-figures-wrap { padding: 0 var(--q-pad); background: var(--q-bg); }
.lc-figures-wrap > .lc-figures { max-width: 1240px; margin: 0 auto; padding: 40px 0; border-top: 1px solid var(--q-line); border-bottom: 1px solid var(--q-line); }

/* Catalogue, buying guide and planning tools. */
.catalog-features button, .bg-options button, .jn-filters button, .sg-compare-switch button { border: 1px solid var(--q-line); border-radius: 999px; background: #fff; color: var(--q-text); }
.catalog-features button[aria-pressed="true"], .bg-options button[aria-selected="true"], .jn-filters button[aria-pressed="true"], .sg-compare-switch button[aria-pressed="true"] { border-color: var(--q-green); background: var(--q-green); color: #fff; }
.jn-filters button[aria-pressed="true"] span { color: #fff; }
.jn-filters, .catalog-features { gap: 8px; border: 0; }
.catalog-search { border: 0; border-radius: 999px; background: transparent; }
.catalog-search input { border: 1px solid var(--q-line); border-radius: 999px; background: #fff; }
.catalog-toolbar { border: 0; }
main.field-guide-service .catalogue .catalog-guidance { border: 0; border-radius: var(--q-radius-lg); background: var(--q-soft); }
.catalog-grid { gap: 20px; border: 0; }
.catalog-grid .product-card { border: 1px solid var(--q-line); border-radius: var(--q-radius); background: #fff; }
.catalog-grid .product-image { border-radius: 0; }
.product-compare { color: var(--q-muted); }
.sg-tool { overflow: hidden; border: 1px solid var(--q-line); border-radius: 20px; background: #fff; }
.sg-tool-result { border: 0; border-radius: 0; }
.sg-choice span { border-color: var(--q-line); border-radius: 999px; }
.sg-range input, .sg-tool input[type="range"] { accent-color: var(--q-green); }
.pd-spec-table { border-top: 1px solid var(--q-line); }
.pd-spec-table :is(th, td) { border-color: var(--q-line); }

/* Journal cards and article reading. */
.jn-card { color: inherit; }
.jn-card-media { border-radius: var(--q-radius); }
.jn-card h3, .jn-card h2 { font-weight: 600; letter-spacing: -.02em; color: var(--q-ink); }
.jn-prose { font-size: 18px; line-height: 1.75; color: var(--q-text); }
.jn-prose > p:first-child::first-letter { float: none; margin: 0; font: inherit; color: inherit; }
.jn-prose h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.025em; color: var(--q-ink); }
.jn-note { border: 0; border-left: 2px solid var(--q-green); border-radius: 0 var(--q-radius) var(--q-radius) 0; background: var(--q-soft); }
.sg-toc ol { border-color: var(--q-line); }
.sg-toc a[aria-current], .sg-toc li.is-current a { color: var(--q-green); }
.jn-rail-cta { background: var(--q-soft); }
.single-post .jn-article::before { background: var(--q-green); }

/* Ordinary pages (rebates, legal) and the 404. */
.page-hero { padding: clamp(56px, 7vw, 104px) var(--q-pad) clamp(32px, 4vw, 56px); background: var(--q-bg); color: var(--q-text); }
.page-hero h1 { max-width: 18ch; font-size: clamp(38px, 5vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.04em; color: var(--q-ink); }
.page-content { color: var(--q-text); }
.page-hero[class] :is(p, li, span, small) { color: var(--q-muted); }
.page-hero[class] a { color: var(--q-text); }
.cta[class] { background: var(--q-soft); color: var(--q-text); }
.cta[class] p { color: var(--q-muted); }
.cta { padding: clamp(72px, 9vw, 128px) var(--q-pad); text-align: center; }
.cta > svg { display: none; }
.cta h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.035em; color: var(--q-ink); }

/* Tablets and phones. */
@media (max-width: 900px) {
	.sg-hero[class] .sg-hero-grid > .sg-hero-copy { grid-template-columns: 1fr; grid-template-areas: "crumb" "kicker" "title" "intro" "updated" "actions"; grid-template-rows: none; }
	.sg-hero[class] .sg-hero-grid > .sg-hero-copy > .sg-intro { margin-top: 20px; }
	.sg-hero[class] .sg-glance { grid-template-columns: 1fr 1fr; }
	.sg-hero[class] .sg-hero-media { height: 52vh; }
	.pd-install-list { grid-template-columns: 1fr; }
	main.field-guide-service .sg-steps { grid-template-columns: 1fr; gap: 32px; padding-left: 60px; }
	main.field-guide-service .sg-steps::before { top: 0; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; transform-origin: 50% 0; }
	main.field-guide-service .sg-step-number { position: absolute; left: -60px; top: -6px; margin: 0; }
	#contact-ready .sg-steps { padding-left: 0; }
	@keyframes q-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Tool meters: green on a quiet track. */
.sg-battery-meter, .sg-progress { height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--q-line); overflow: hidden; }
.sg-battery-meter i, .sg-progress i { border-radius: 999px; background: var(--q-green); }

/* Campaign landing pages: same calm system; the photograph band opens as it arrives. */
.lp-header { border-bottom: 1px solid var(--q-line); background: #fff; }
.lp-header-call, .lp-call { border-radius: 999px; }
.lp-hero h1 { font-weight: 600; letter-spacing: -.04em; color: var(--q-ink); }
.lp-trust > * { border-color: var(--q-line); border-radius: 999px; }
.lp-points li { border-color: var(--q-line); }
.lp-band { overflow: hidden; clip-path: inset(0 var(--q-pad) round var(--q-radius-lg)); }
.lp-close { border: 0; }
.lp-faq-list details { border-color: var(--q-line); }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.lp-band { animation: q-open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
	}
}

/* Product lists: separate rounded cards with room between them (fixes the joined, double-ruled grid). */
main.field-guide-service .catalogue .catalog-grid { gap: 20px; border: 0; }
main.field-guide-service .catalogue .product-card { border: 1px solid var(--q-line); border-radius: var(--q-radius); background: #fff; overflow: hidden; transition: border-color .25s ease; }
main.field-guide-service .catalogue .product-card:hover { border-color: #c3cec6; background: #fff; }
main.field-guide-service .catalogue .product-image { height: 240px; border: 0; background: var(--q-soft); }
main.field-guide-service .catalogue .product-card:hover .product-image img { transform: scale(1.04); }
main.field-guide-service .catalogue .product-card-copy { padding: 20px 20px 18px; }
main.field-guide-service .product-card .eyebrow { display: block; margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: lowercase; color: var(--q-muted); }
main.field-guide-service .catalogue .product-card h3 { margin: 6px 0 4px; font-size: 20px; font-weight: 600; }
main.field-guide-service .catalogue .product-links { gap: 8px 16px; }
main.field-guide-service .catalogue .catalog-search { position: relative; padding: 0; border: 0; border-radius: 999px; background: transparent; }
main.field-guide-service .catalogue .catalog-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--q-muted); }
main.field-guide-service .catalogue .catalog-search input { width: 260px; max-width: 100%; min-height: 46px; padding: 0 18px 0 44px; border: 1px solid var(--q-line); border-radius: 999px; background: #fff; }
.product-compare { color: var(--q-text); font-weight: 500; }
.product-compare > span[aria-hidden] { border: 1px solid #b9c3bc; border-radius: 6px; }
.product-compare[aria-pressed="true"] > span[aria-hidden] { border-color: var(--q-green); background: var(--q-green); }
/* "Other … we install" rows: photographs with names, no table rules. */
.pd-others { gap: 20px; border: 0; }
.pd-others li, .pd-others li:last-child { border: 0; }
.pd-others a { gap: 10px; padding: 0; color: inherit; }
.pd-others a:hover { background: transparent; }
.pd-others-media { height: auto; aspect-ratio: 4 / 3; border-radius: var(--q-radius); background: var(--q-soft); }
.pd-others a:hover .pd-others-media img { transform: scale(1.04); }
.pd-others-media img { transition: transform .6s var(--q-ease); }
.pd-others strong { font-size: 17px; font-weight: 500; color: var(--q-ink); }
.pd-others span { font-size: 14px; color: var(--q-muted); }
@media (max-width: 600px) { main.field-guide-service .catalogue .catalog-search, main.field-guide-service .catalogue .catalog-search input { width: 100%; } }

/* Chosen-for-compare cards: one clear outline around the whole card, photograph included. */
main.field-guide-service .catalogue .product-card:has([aria-pressed="true"]) { border-color: var(--q-green); box-shadow: 0 0 0 1px var(--q-green); }
/* Compare tray: a light floating bar with a clear primary action. */
.cmp-tray { padding: 10px 10px 10px 22px; border: 1px solid var(--q-line); border-radius: 999px; background: #fff; color: var(--q-text); box-shadow: 0 18px 40px rgba(16, 24, 20, .12); }
.cmp-tray b { color: var(--q-ink); }
.cmp-tray [data-compare-clear] { color: var(--q-muted); }
.cmp-tray [data-compare-open] { border-radius: 999px; background: var(--q-green); color: #fff; }
.cmp-tray [data-compare-open]:disabled { background: var(--q-line); color: var(--q-muted); }
.cmp-dialog { border-radius: 20px; background: #fff; color: var(--q-text); }
.cmp-dialog::backdrop { background: rgba(16, 24, 20, .55); backdrop-filter: none; }
/* Project photograph viewer. */
.pj-dialog { overflow: hidden; border-radius: 20px; background: #fff; }
.pj-dialog-nav button { border-color: var(--q-line); border-radius: 50%; color: var(--q-ink); }
.pj-dialog-nav button:hover { border-color: var(--q-ink); background: transparent; color: var(--q-ink); }

/* Buying guide: readable options with space between them (the label became the last span when arrows were removed). */
.bg-layout { overflow: hidden; border: 1px solid var(--q-line); border-radius: 20px; background: #fff; }
main.field-guide-service .bg-options { display: grid; gap: 8px; padding: 20px; }
main.field-guide-service .bg-options button { min-height: 52px; border: 1px solid var(--q-line); border-radius: 999px; background: #fff; color: var(--q-text); }
main.field-guide-service .bg-options button[aria-selected="true"] { border-color: var(--q-green); background: var(--q-green); color: #fff; }
.bg-options button span:last-child { opacity: 1; }
.bg-panel { border: 0; border-radius: 0; }
.bg-panel li::before { content: none; }
.bg-panel li { border-color: var(--q-line); }
/* Project archive: pill filters and readable tile labels. */
main.field-guide-service .pj-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; }
main.field-guide-service .pj-filters button { min-height: 40px; padding: 0 16px; border: 1px solid var(--q-line); border-radius: 999px; background: #fff; color: var(--q-text); }
.pj-tile { color: var(--q-ink); }
.pj-tile > div { border-radius: var(--q-radius); background: var(--q-soft); }
.pj-tile small { margin: 14px 0 4px; padding-top: 0; border-top: 0; color: var(--q-muted); }
.pj-tile > div > span { border-radius: 999px; background: #fff; color: var(--q-ink); }
@media (max-width: 760px) { main.field-guide-service .pj-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } main.field-guide-service .pj-filters button { flex: 0 0 auto; } }

/* 2.17.0: section-by-section polish. ------------------------------------------- */

/* Commercial-style hero facts: label above value (side by side they were cut off on phones),
   and no numbering, since the facts are not a sequence. */
.sg-hero[class].sg-hero-ledger .sg-glance > div { display: block; padding: 0; border: 0; }
.sg-hero[class].sg-hero-ledger .sg-glance dt::before { content: none; }
.sg-hero[class].sg-hero-ledger .sg-glance dd { margin: 4px 0 0; font-size: 16px; }

/* Planning tools: the readiness count was white on the light panel. */
.sg-result-label output { color: var(--q-ink); font-weight: 600; }
.sg-compare-switch { gap: 4px; padding: 4px; border: 1px solid var(--q-line); border-radius: 999px; background: #fff; }
.sg-compare-switch button { min-height: 40px; border: 0; border-radius: 999px; }

/* Long guides: headings inside the text read as headings, not as new sections. */
main.field-guide-service :is(.sg-notes-layout .sg-notes, .pd-about) h2 { margin: 1.8em 0 .5em; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
main.field-guide-service :is(.sg-notes-layout .sg-notes, .pd-about) h2:first-child { margin-top: 0; }
main.field-guide-service .sg-notes-layout .sg-notes :is(p, li) { max-width: 68ch; }

/* Figures: numbers share one line and one baseline; a place name does not break in two. */
:is(.pj-figures, .lc-figures) { grid-template-columns: repeat(3, minmax(min-content, 1fr)); align-items: start; column-gap: clamp(24px, 3vw, 48px); }
:is(.pj-figures, .lc-figures) dd { white-space: nowrap; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
:is(.pj-figures, .lc-figures) dt { max-width: 18ch; font-size: 14px; line-height: 1.45; }
@media (max-width: 600px) {
	:is(.pj-figures, .lc-figures) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
.pj-hero[class] .sg-hero-copy .sg-intro { margin-top: 20px; }
/* Projects hero: words start at the top beside the mosaic (centred, they left a blank space above and pushed the figures below the fold). */
.pj-hero[class] .pj-hero-grid > .sg-hero-copy { justify-content: flex-start; padding-top: clamp(0px, 1.5vw, 20px); }

/* Project archive: every tile in a row has the same height, so captions line up. */
main.field-guide-service .pj-tile > div,
main.field-guide-service .pj-tile:nth-child(5n + 1) > div,
main.field-guide-service .pj-tile:nth-child(5n + 3) > div { height: clamp(240px, 24vw, 360px); }

/* Product compatibility list: no stray dividers once it is a single column. */
main.field-guide-service .pd-install-list li,
main.field-guide-service .pd-install-list li:nth-child(odd),
main.field-guide-service .pd-install-list li:nth-child(even) { padding: 0; border: 0; }

/* Journal: filters match the other pill filters; the byline loses its rules; no empty pager. */
main.field-guide-service .jn-filters button { gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--q-line); white-space: nowrap; }
main.field-guide-service .jn-filters button span { color: var(--q-muted); }
main.field-guide-service .jn-filters button[aria-pressed="true"] span { color: #fff; }
.jn-article-hero[class] .jn-byline { gap: 16px 32px; padding-top: 16px; }
.jn-article-hero[class] .jn-byline p { margin: 0; padding: 0; border: 0; }
.jn-pagination:empty { display: none; }

/* Contact page: the form section lines up with the content column. */
.lc-contact .lc-contact-form .contact-layout { max-width: 1240px; margin-inline: auto; }

/* Catalogue note: same alignment and corners as the rest of the page. */
main.field-guide-service .selection-note { margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 48px); border-radius: var(--q-radius-lg); background: var(--q-soft); text-align: left; }
main.field-guide-service .selection-note h2 { max-width: 22ch; font-size: clamp(26px, 2.6vw, 36px); }
main.field-guide-service .selection-note p { max-width: 60ch; margin: 14px 0 0; color: var(--q-muted); }

/* Ordinary pages (rebates, legal): the minimal hero and a readable column. -------- */
main#main > .page-hero { display: block; padding: clamp(40px, 5vw, 72px) var(--q-frame) clamp(32px, 4vw, 56px); }
main#main > .page-hero > div { display: flex; flex-direction: column; align-items: flex-start; max-width: 1240px; }
main#main > .page-hero .page-breadcrumb { order: -1; margin: 0 0 22px; gap: 10px; font-size: 14px; color: var(--q-muted); }
main#main > .page-hero .page-breadcrumb a { border: 0; color: var(--q-text); text-decoration: underline; text-underline-offset: 4px; }
main#main > .page-hero h1 { margin: 0; }
/* The keyword line that opens the heading is part of the H1, so it stays visible. */
main#main > .page-hero h1.has-kicker > .eyebrow { display: block; margin: 0 0 16px; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; text-transform: none; color: var(--q-muted); }
main#main > .page-hero p { max-width: 52ch; margin: 22px 0 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; }
main#main > .page-hero .button { margin-top: 26px; }
main#main > .page-content { padding: 0 var(--q-frame); }
main#main > .page-content > .peg-prose { max-width: 720px; margin: 0; padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 80px); }
main#main > .page-content .peg-prose h2 { margin: 1.8em 0 .5em; font-size: clamp(24px, 2.3vw, 30px); font-weight: 600; letter-spacing: -.025em; color: var(--q-ink); }
main#main > .page-content .peg-prose :is(p, li) { font-size: 17px; line-height: 1.7; color: var(--q-text); }
main#main > .page-content .peg-prose a { color: var(--q-green); text-underline-offset: 3px; }
main#main > .page-content .peg-prose .peg-note { padding: 20px 24px; border: 0; border-left: 2px solid var(--q-green); border-radius: 0 var(--q-radius) var(--q-radius) 0; background: var(--q-soft); color: var(--q-text); }
/* Related services under the text: cards, like the related pages everywhere else. */
main#main > .page-content > .section { max-width: 1240px; margin: 0; padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--q-line); }
main#main > .page-content > .section h2 { margin: 0 0 24px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.03em; color: var(--q-ink); }
main#main > .page-content > .section ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
main#main > .page-content > .section li { margin: 0; }
main#main > .page-content > .section li a { display: flex; align-items: center; height: 100%; min-height: 72px; padding: 20px 24px; border: 1px solid var(--q-line); border-radius: var(--q-radius); background: #fff; color: var(--q-ink); font-weight: 500; line-height: 1.35; text-decoration: none; transition: border-color .2s ease, transform .3s var(--q-ease); }
main#main > .page-content > .section li a:hover { border-color: var(--q-green); transform: translateY(-3px); }
main#main > .page-hero.with-image .page-hero-image { max-width: 1240px; height: clamp(240px, 36vw, 460px); margin-top: clamp(32px, 4vw, 48px); border-radius: var(--q-radius-lg); overflow: hidden; }
main#main > .page-hero.with-image .page-hero-image :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 404: the heading uses the same ink as every other heading. */
main.empty-state :is(h1, h2) { font-weight: 600; letter-spacing: -.04em; color: var(--q-ink); }
