/* Palisades Expedited Builders reskin, borrowed from the Plumber 128 style reference (t09):
   heavy Archivo headlines, a stat row of figures right under the hero, round badge markers on the cards and a
   plain grid. The brass accent is darkened wherever white text sits on it so contrast clears WCAG AA. */

h1,h2,h3,h4,.xb-hero h1{font-weight:800;letter-spacing:-.01em}
.xb-hero h1{font-size:clamp(2.3rem,5vw,3.8rem);line-height:1.04;max-width:20ch}
.xb-hero .xb-sub{font-size:1.1rem;max-width:56ch}
h2{font-size:clamp(1.65rem,2.9vw,2.4rem);line-height:1.12}
.xb-card h3,.xb-num-list h3{font-weight:700;font-size:1.1rem}

/* Wide logo needs more room than the default mark. */
.xb-site-header .xb-logo img{width:240px;height:auto}
@media (max-width:760px){.xb-site-header .xb-logo img{width:170px}}
.xb-flogo img{width:220px;height:auto}

/* Brass buttons and links, darkened so they pass contrast. */
.xb-btn-clay{background:color-mix(in srgb,var(--xb-c-accent) 58%,black);color:var(--xb-white)}
.xb-btn-clay:hover{background:color-mix(in srgb,var(--xb-c-accent) 44%,black);color:var(--xb-white)}
a{color:color-mix(in srgb,var(--xb-c-accent) 55%,black)}
a:hover{color:var(--xb-c-primary)}

/* Band line: one centered sentence, warm brass tint. */
.xb-band-line{background:#efe3d0;color:var(--xb-c-primary);border:0;padding:24px 0}
.xb-band-line p{font-family:var(--xb-f-heading);font-weight:800;font-size:clamp(1.1rem,2vw,1.4rem);margin:0;padding:0;text-align:center;max-width:none;color:var(--xb-c-primary)}

/* Stat row (Plumber 128's 500+ / 900+ row), with sourced rebuild figures instead. */
.xb-statrow{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.xb-statrow li{background:var(--xb-white);border:1px solid color-mix(in srgb,var(--xb-c-primary) 16%,transparent);border-radius:var(--xb-radius);padding:22px 20px;text-align:center}
.xb-statrow strong{display:block;font-family:var(--xb-f-heading);font-weight:800;font-size:clamp(1.9rem,3.4vw,2.7rem);line-height:1;color:var(--xb-c-primary)}
.xb-statrow span{display:block;margin:10px 0 8px;font-size:.98rem}
.xb-statrow a{font-size:.9rem}
@media (max-width:900px){.xb-statrow{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.xb-statrow{grid-template-columns:1fr}}

/* Round badge markers on card icons (the template's circular motif). */
.xb-card .icon,.xb-num-list .icon,.step .icon{border-radius:50%}

/* Cards: thin rules, no drop shadows. */
.xb-card,.xb-cost{box-shadow:none;border:1px solid color-mix(in srgb,var(--xb-c-primary) 16%,transparent)}
.xb-cta-band{background:var(--xb-c-primary)}
.xb-cta-band .xb-btn-clay{background:var(--xb-white);color:color-mix(in srgb,var(--xb-c-accent) 45%,black)}
.xb-cta-band .xb-btn-clay:hover{background:#efe3d0;color:var(--xb-c-primary)}
.xb-cta-band .xb-btn-outline-light{color:var(--xb-white)}

/* Cost checker (costs page). */
.xb-cc-box{background:var(--xb-white);border:1px solid color-mix(in srgb,var(--xb-c-primary) 22%,transparent);border-radius:var(--xb-radius);padding:28px;max-width:760px}
.xb-cc-box h2{margin-top:0}
.xb-cc-row{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:16px 0}
.xb-cc-row label{font-weight:700;min-width:100px}
.xb-cc-row select{font:400 17px var(--xb-f-body);padding:11px 12px;min-height:48px;border:1px solid color-mix(in srgb,var(--xb-c-primary) 40%,transparent);border-radius:var(--xb-radius);background:var(--xb-white);color:var(--xb-c-text);max-width:100%}
.xb-cc-out{background:#efe3d0;border-radius:var(--xb-radius);padding:16px 18px;margin:0}
.xb-cc-out strong{font-size:1.5rem;color:var(--xb-c-primary);display:block}
.xb-cc-out span{display:block;margin-top:4px}

/* Dark home bands: lead text, links and outline buttons need light colours there. */
.xb-home-band.xb-band-3 .xb-head .lead,.xb-home-band.xb-band-3 .xb-caption,.xb-home-band.xb-band-3 figcaption{color:rgba(255,255,255,.9)}
.xb-home-band.xb-band-3 .xb-head a{color:#efe3d0}
.xb-home-band.xb-band-3 .xb-head a:hover{color:var(--xb-white)}
.xb-home-band.xb-band-3 .xb-head-row>.xb-btn-outline,.xb-home-band.xb-band-3 .xb-wrap>.xb-btn-outline{color:var(--xb-white);border-color:rgba(255,255,255,.75)}
.xb-home-band.xb-band-3 .xb-head-row>.xb-btn-outline:hover{background:var(--xb-white);color:var(--xb-c-primary)}

/* Launch QA 2026-12-05: light cards and FAQ items inside a dark home band inherited the band's white text (white on white).
   Light boxes keep the body text colour. */
.xb-home-band :is(.xb-card,details){color:var(--xb-c-text)}
.xb-home-band :is(.xb-card,details) :is(h2,h3,h4,p,li,strong,summary){color:var(--xb-c-text)}
.xb-home-band .xb-card .xb-more,.xb-home-band.xb-band-3 .xb-card a:not(.xb-btn){color:var(--xb-c-primary)}

/* Launch QA 2026-12-05 (contrast): the sand hero keeps dark text, so its fact list and a photo-backed sand hero follow the same rule;
   a photo gets the dark overlay and light text of the standard hero. Before/After tags get a solid dark chip; the call bar / CTA band use a darkened accent where the white text needed it. */
.hero-sand:has(.xb-photo){background:var(--xb-dark);color:var(--xb-white)}
.hero-sand:has(.xb-photo) .xb-photo::after{opacity:1}
.hero-sand:has(.xb-photo) h1,.hero-sand:has(.xb-photo) .xb-sub,.hero-sand:has(.xb-photo) .xb-btn-link{color:var(--xb-white)}
.hero-sand:not(:has(.xb-photo)) .xb-facts{color:var(--xb-c-text)}
.ba .tag{background:rgba(20,22,26,.78);color:var(--xb-white)}
.xb-sticky-bar .xb-q{background:color-mix(in srgb,var(--xb-c-accent) 62%,black)}

/* Launch QA 2026-12-05 (contrast): text on the dark home band (band-3). Light boxes (project picker, contents box, picker answers) keep dark text;
   the muted lead lines, captions and in-text links on the dark band go light. */
.xb-home-band :is(.pk-col,.xb-toc,.picker-band,.picker-out){color:var(--xb-c-text)}
.xb-home-band :is(.pk-col,.xb-toc,.picker-band,.picker-out) :is(h2,h3,h4,p,li,strong,label){color:var(--xb-c-text)}
.xb-home-band.xb-band-3 :is(.xb-head .lead,.xb-caption,figcaption){color:rgba(255,255,255,.92)}
.xb-home-band.xb-band-3 :is(p,li):not(:is(.xb-card,details,.xb-toc,.pk-col,.picker-out) *) a:not(.xb-btn){color:#fff;text-decoration:underline}

/* Step numbers: the gold on cream was 2.7:1; darker gold clears AA. */
.xb-steps .xb-n{color:color-mix(in srgb,var(--xb-c-accent) 55%,black)}
