/* The family backgrounds of the seven new pages (9 Nov 2026): Hamza's pick "A plain" (design Hp of
   dts-tools/_reports/site-backgrounds-2026-11-09/). WRITTEN BY dts-tools/page-family/make_backgrounds.py: change the
   lists there and run it again, never this file by hand. Each page loads it as family-backgrounds-v1.css after all its
   other stylesheets, with the pictures in its assets/family-backgrounds-v1/.

   Four backgrounds only: white, bluish white, electric blue, dark navy. Every top part the top bar's own light blue,
   flat, so bar and top part are one (the home page 18 Nov, the other pages 19 Nov; until then a soft blue fade).
   Each part differs from the one before it. Words on blue are white, small blue labels dark enough
   for small type. Every rule names its page on the part itself (`#reviews:is(main#main.pw2 *, ...)`): the page builds
   put their scope in front of each rule, so a page can never be named at the start. */
:root {
	--fbg-white: #ffffff;
	--fbg-soft: #eef4ff;
	--fbg-blue: radial-gradient(90% 60% at 85% 0%, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(165deg, #0a66ff 0%, #0050d8 100%);
	--fbg-navy: linear-gradient(135deg, #001429 0%, #032747 100%);
	--fbg-hero: radial-gradient(52% 78% at 80% 42%, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, 0) 72%), linear-gradient(180deg, #e9f1ff 0%, #eef4ff 100%);
	--fbg-label: #005ce6;
	--fbg-bar: #e8f1ff;
}

/* Page grounds: plain white under every part (PriceWise and ConfigKit were #fbfdff, the home page's own ground navy).
   The builds turn this into each page's own <main>; About and Contact keep theirs. */
main:not(.ab2, .ct2) {
	background: var(--fbg-white) !important;
}

/* 1. Every top part in the top bar's own light blue, flat, so the bar and the top part are one colour with no edge
   (Hamza, 18 Nov, on the home page: "i want it like header color so fully blended"; 19 Nov, every new page). */
section.hero:is(main#top.hp2 *, main:has(> #studio) *),
section.hero:is(main#main.pw2 *, .pw-v91-family *),
section#top:is(main#main.ck2 *, .approved-demo *),
section.craftor-hero:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
section.ab-top:is(main#top.ab2 *),
section.sv2-hero:is(main#main.sv2 *),
section.ct2-top:is(main#top.ct2 *) {
	background: var(--fbg-bar) !important;
}
/* Its "Browse plugins" button keeps its pale box as it showed on the old fade (7 to 10 steps darker than the part
   around it): on the bar's blue the old fill #e6efff was 2 steps off and read as plain words, so one shade deeper.
   Hover and keyboard focus keep the page's own #d8e6ff. */
section.hero a[data-dt-action="outline"]:not(:hover, :focus-visible):is(main#top.hp2 *, main:has(> #studio) *) {
	background: #e0ecff !important;
}
/* The same for the pale buttons straight on the other top parts (19 Nov): PriceWise "Try a calculator", ConfigKit and the
   sign makers page "See plans", About "Watch my introduction", Contact's three social buttons. Hover keeps each
   page's own colour; keyboard focus had no fill of its own there, so it keeps this one. */
section.hero a.btn.btn-outline:not(:hover):is(main#main.pw2 *, .pw-v91-family *),
section#top a.action.secondary:not(:hover):is(main#main.ck2 *, .approved-demo *),
section.ab-top a.fam-btn.fam-btn-pale:not(:hover):is(main#top.ab2 *),
section.ct2-top a.ct2-soc:not(:hover):is(main#top.ct2 *),
section.signs-hero a.fam-btn.fam-btn-pale:not(:hover):is(main#main.cr2 *, #main:has(> .craftor-hero) *) {
	background: #e0ecff !important;
}

/* 2. White parts. */
#plugins:is(main#top.hp2 *, main:has(> #studio) *),
#process:is(main#top.hp2 *, main:has(> #studio) *),
#demos:is(main#main.pw2 *, .pw-v91-family *),
#calculator-layouts:is(main#main.pw2 *, .pw-v91-family *),
#field-library:is(main#main.pw2 *, .pw-v91-family *),
#why-it-matters:is(main#main.ck2 *, .approved-demo *),
#examples:is(main#main.ck2 *, .approved-demo *),
#features:is(main#main.ck2 *, .approved-demo *),
#pages:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#setup-part:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#custom-work:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#story.ab-sec:is(main#top.ab2 *),
#build.ab-sec:is(main#top.ab2 *),
#prices:is(main#main.sv2 *),
#questions:is(main#main.sv2 *),
section.ct2-faq:is(main#top.ct2 *),
section.fam-faq:is(main#main *, main#top *) {
	background: var(--fbg-white) !important;
}

/* 3. Bluish white parts. */
#services:is(main#top.hp2 *, main:has(> #studio) *),
#guides:is(main#top.hp2 *, main:has(> #studio) *),
.v33-buying-proof:is(main#main.pw2 *, .pw-v91-family *),
.v26-intro-band:is(main#main.pw2 *, .pw-v91-family *),
#pricing:is(main#main.pw2 *, .pw-v91-family *),
#orders:is(main#main.ck2 *, .approved-demo *),
#product-setup:is(main#main.ck2 *, .approved-demo *),
#pricing:is(main#main.ck2 *, .approved-demo *),
#orders:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#pricing:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#reviews.ab-sec:is(main#top.ab2 *) {
	background: var(--fbg-soft) !important;
}

/* 4. Electric blue parts: one blue on every page (it was flat #0066ff, #064ee6 and two gradients). */
#studio:is(main#top.hp2 *, main:has(> #studio) *),
#contact.final-cta:is(main#top.hp2 *, main:has(> #studio) *),
#reviews:is(main#main.pw2 *, .pw-v91-family *),
#templates:is(main#main.ck2 *, .approved-demo *),
#why-i-built:is(main#main.ck2 *, .approved-demo *),
#quote-workflow:is(main#main.ck2 *, .approved-demo *),
#why-i-built:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#editor-controls:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#working.ab-sec:is(main#top.ab2 *),
#included:is(main#main.sv2 *),
#project-form:is(main#main.sv2 *),
section.fam-more:is(main#main *, main#top *),
section.fam-close:is(main#main *, main#top *) {
	background: var(--fbg-blue) !important;
}

/* 5. Dark navy: PriceWise's order panel and its tools part, the same navy as the footer. */
#store-tools:is(main#main.pw2 *, .pw-v91-family *),
#orders.v15-orders-band:is(main#main.pw2 *, .pw-v91-family *) {
	background: var(--fbg-navy) !important;
}

/* Boxes follow the part they sit on: bluish white boxes on white parts, white boxes on bluish white parts. */
#field-library article.pw108-block:is(main#main.pw2 *, .pw-v91-family *),
#why-it-matters article.ck52-email:is(main#main.ck2 *, .approved-demo *),
#pages section.v25-coverage:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#orders .v30-summary:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#setup-part .v49-setup-visual:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#prices li.hp-pic-card:is(main#main.sv2 *),
section.ct2-faq .ct2-q:is(main#top.ct2 *),
#process details.process-question:is(main#top.hp2 *, main:has(> #studio) *) {
	background: var(--fbg-soft) !important;
}
.v33-buying-proof .v79-checked:is(main#main.pw2 *, .pw-v91-family *),
#orders .v28-order-tools dl > div:is(main#main.cr2 *, #main:has(> .craftor-hero) *) {
	background: var(--fbg-white) !important;
}

/* Small blue labels: dark enough for 12 px type on white and on bluish white alike. */
.eyebrow-blue:is(main#main *, main#top *),
.vx-eyebrow:is(main#main *, main#top *),
.ck52-k:is(main#main *, main#top *),
.fam-label:is(main#main *, main#top *),
.v99-kicker:is(main#main *, main#top *),
.pw102-example-label:is(main#main *, main#top *),
.hp-card-group:is(main#main *, main#top *) {
	color: var(--fbg-label) !important;
}
#pricewise-compatibility span:is(main#main.pw2 *, .pw-v91-family *) {
	color: #4a5970 !important;
}
/* PriceWise's "22.5 m² billed" on its pale box (#dde9ff) was #0066ff, 3.95:1 (the design round's one leftover):
   the label blue, 4.7:1. */
.v63-billed-area strong:is(main#main.pw2 *, .pw-v91-family *) {
	color: var(--fbg-label) !important;
}
/* ...but the three that sit straight on a blue part were blue on blue (found 9 Nov; the report's tools/labels.mjs):
   white, like ConfigKit's "When the job needs a word first". */
#working.ab-sec .fam-label:is(main#top.ab2 *),
#included .fam-label:is(main#main.sv2 *),
#project-form .fam-label:is(main#main.sv2 *) {
	color: #fff !important;
}

/* Words on electric blue: white. */
.final-cta p:is(main#top.hp2 *, main:has(> #studio) *) {
	color: #fff !important;
}

/* ConfigKit's quote part on blue: its words white, the tabs readable on blue, the screens unchanged. */
#quote-workflow :is(.quote-native-copy, .quote-native-copy *:not(img)):is(main#main.ck2 *, .approved-demo *),
#quote-workflow .quote-native-copy h2 span:is(main#main.ck2 *, .approved-demo *) {
	color: #fff !important;
}
#quote-workflow .inline-tabs:is(main#main.ck2 *, .approved-demo *) {
	background: transparent !important;
}
#quote-workflow .inline-tabs [role="tab"]:is(main#main.ck2 *, .approved-demo *) {
	color: #fff !important;
	background: rgba(0, 20, 70, .24) !important;
}
#quote-workflow .inline-tabs [role="tab"][aria-selected="true"]:is(main#main.ck2 *, .approved-demo *) {
	background: #fff !important;
	color: #0050d8 !important;
}

/* Craftor's editor part on blue: words white, the step pictures stay white boxes. */
#editor-controls :is(.v39-design-copy, .v39-design-copy *:not(img), .v39-setup > h3, .v49-step-copy, .v49-step-copy *:not(img)):is(main#main.cr2 *, #main:has(> .craftor-hero) *) {
	color: #fff !important;
}

/* ConfigKit's trade band: on the brighter family blue its see-through chips need the darker glass the quote tabs use. */
#templates :is(.band-heading .action.blue-outline, .trade-grid .trade-item:not([aria-selected="true"])):is(main#main.ck2 *, .approved-demo *) {
	background: rgba(0, 20, 70, .24) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
#templates .trade-grid .trade-item:not([aria-selected="true"]) .trade-name:is(main#main.ck2 *, .approved-demo *) {
	color: #fff !important;
}

/* The old textures off: ConfigKit's light ribbons and Craftor's paper folds on the top part, the arcs on
   PriceWise's reviews and the glass planes on its order panel (design A). */
section#top:is(main#main.ck2 *, .approved-demo *)::before,
section#top:is(main#main.ck2 *, .approved-demo *)::after,
section.craftor-hero:is(main#main.cr2 *, #main:has(> .craftor-hero) *)::before,
section.craftor-hero:is(main#main.cr2 *, #main:has(> .craftor-hero) *)::after {
	content: none !important;
}
#reviews > .v70-review-art:is(main#main.pw2 *, .pw-v91-family *),
.v66-surface-art:is(main#main.pw2 *, .pw-v91-family *) {
	display: none !important;
}

/* The satin waves (design Hp, the softer strength): Codex's shapes in white and grey, coloured as light and shade of
   the part they lie on, so the part's own colour shows through every pixel. On blue only darker folds (white words
   keep their contrast), on navy a soft blue light, on the closing bands the two ends. One group in from the top right,
   one from the bottom left; parts with words down their left side the right group only. A layer behind the part's
   content (::before, z-index -1 in the part's own stacking), so nothing in the part moves. */
#studio:is(main#top.hp2 *, main:has(> #studio) *),
#reviews:is(main#main.pw2 *, .pw-v91-family *),
#templates:is(main#main.ck2 *, .approved-demo *),
#quote-workflow:is(main#main.ck2 *, .approved-demo *),
#editor-controls:is(main#main.cr2 *, #main:has(> .craftor-hero) *),
#working.ab-sec:is(main#top.ab2 *),
#included:is(main#main.sv2 *),
#project-form:is(main#main.sv2 *),
section.fam-more:is(main#main *, main#top *),
#store-tools:is(main#main.pw2 *, .pw-v91-family *),
#contact.final-cta:is(main#top.hp2 *, main:has(> #studio) *),
section.fam-close:is(main#main *, main#top *) {
	position: relative !important;
	isolation: isolate !important;
}
#studio:is(main#top.hp2 *, main:has(> #studio) *)::before,
#reviews:is(main#main.pw2 *, .pw-v91-family *)::before,
#templates:is(main#main.ck2 *, .approved-demo *)::before,
#quote-workflow:is(main#main.ck2 *, .approved-demo *)::before,
#editor-controls:is(main#main.cr2 *, #main:has(> .craftor-hero) *)::before,
#working.ab-sec:is(main#top.ab2 *)::before,
#included:is(main#main.sv2 *)::before,
#project-form:is(main#main.sv2 *)::before,
section.fam-more:is(main#main *, main#top *)::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	aspect-ratio: auto !important;
	transform: none !important;
	margin: 0 !important;
	filter: none !important;
	opacity: 1 !important;
	mix-blend-mode: normal !important;
	z-index: -1 !important;
	pointer-events: none !important;
	mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%) !important;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%) !important;
	background: url("assets/family-backgrounds-v1/blue-r.webp") right 0 top 0 / min(46vw, 700px) auto no-repeat, url("assets/family-backgrounds-v1/blue-l.webp") left 0 bottom 0 / min(34vw, 520px) auto no-repeat !important;
}
#studio:is(main#top.hp2 *, main:has(> #studio) *)::before,
#project-form:is(main#main.sv2 *)::before {
	background: url("assets/family-backgrounds-v1/blue-r.webp") right 0 top 0 / min(46vw, 700px) auto no-repeat !important;
}
#store-tools:is(main#main.pw2 *, .pw-v91-family *)::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	aspect-ratio: auto !important;
	transform: none !important;
	margin: 0 !important;
	filter: none !important;
	opacity: 1 !important;
	mix-blend-mode: normal !important;
	z-index: -1 !important;
	pointer-events: none !important;
	mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%) !important;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%) !important;
	background: url("assets/family-backgrounds-v1/navy-r.webp") right 0 top 0 / min(46vw, 700px) auto no-repeat, url("assets/family-backgrounds-v1/navy-l.webp") left 0 bottom 0 / min(34vw, 520px) auto no-repeat !important;
}
#contact.final-cta:is(main#top.hp2 *, main:has(> #studio) *)::before,
section.fam-close:is(main#main *, main#top *)::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	aspect-ratio: auto !important;
	transform: none !important;
	margin: 0 !important;
	filter: none !important;
	opacity: 1 !important;
	mix-blend-mode: normal !important;
	z-index: -1 !important;
	pointer-events: none !important;
	background: url("assets/family-backgrounds-v1/strip-l.webp") left center / auto 100% no-repeat, url("assets/family-backgrounds-v1/strip-r.webp") right center / auto 100% no-repeat !important;
}

/* Phones: one group per part, smaller. */
@media (max-width: 767px) {
	#studio:is(main#top.hp2 *, main:has(> #studio) *)::before,
	#reviews:is(main#main.pw2 *, .pw-v91-family *)::before,
	#templates:is(main#main.ck2 *, .approved-demo *)::before,
	#quote-workflow:is(main#main.ck2 *, .approved-demo *)::before,
	#editor-controls:is(main#main.cr2 *, #main:has(> .craftor-hero) *)::before,
	#working.ab-sec:is(main#top.ab2 *)::before,
	#included:is(main#main.sv2 *)::before,
	#project-form:is(main#main.sv2 *)::before,
	section.fam-more:is(main#main *, main#top *)::before {
		background: url("assets/family-backgrounds-v1/blue-r.webp") right 0 top 0 / 72% auto no-repeat !important;
	}
	#store-tools:is(main#main.pw2 *, .pw-v91-family *)::before {
		background: url("assets/family-backgrounds-v1/navy-r.webp") right 0 top 0 / 72% auto no-repeat !important;
	}
}
