/* Template library: shared plumbing only. Every layout brings its own look in layouts/<name>/style.css.
   Nothing here sets colours or fonts except the neutral defaults for the toast and photo viewer. */
/* no blue flash on a tapped button or link, anywhere (operator, 2026-11-21: "I hate that on any button") */
*,*:before,*:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0}
img,svg,video{max-width:100%;display:block}img{height:auto}body [hidden]{display:none!important}
a{color:inherit}button{font:inherit;color:inherit}:focus-visible{outline:3px solid currentColor;outline-offset:3px}
h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}
.skip{position:absolute;left:-999px;top:8px;z-index:99;padding:10px 14px;background:#fff;color:#000}.skip:focus{left:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* reveal once, never before you can see it */
[data-reveal]{opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease}[data-reveal].in{opacity:1;transform:none}
.still [data-reveal]{opacity:1;transform:none;transition:none}
/* the builder's "Movement off" switch (operator, 2026-11-25): nothing moves, each moving part shows where it ends.
   Not the before/after slider: its glide is how it works, not decoration (operator, 2026-11-25: "switching it off ruins the UX") */
html.no-move,html.no-move :not(.ba-slider,.ba-slider *),html.no-move :not(.ba-slider *)::before,html.no-move :not(.ba-slider *)::after{animation-duration:0s!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:0s!important;transition-delay:0s!important;scroll-behavior:auto!important}
/* one mode only (?only=light|dark): no light/dark switch anywhere on the page */
html.only [data-mode]{display:none!important}
@media (prefers-reduced-motion:reduce){[data-reveal]{opacity:1;transform:none;transition:none}*,*:before,*:after{animation:none!important;transition:none!important}}
/* phone call bar: shows after the hero's buttons scroll away, steps aside over the form */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));transform:translateY(110%);transition:transform .3s ease}
.dock.on{transform:none}.dock a{flex:1;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font-weight:600}
@media(min-width:900px){.dock{display:none}}
.wa{position:fixed;right:14px;bottom:84px;z-index:39;width:56px;height:56px;border-radius:99px;background:#25d366;color:#fff;display:grid;place-items:center;box-shadow:0 4px 14px #0004;transition:transform .3s}
.wa.away{transform:translateX(90px)}@media(min-width:900px){.wa{bottom:24px}}
.menu-open .dock,.menu-open .wa{visibility:hidden}
/* a closed menu's panel takes no room at all (the browser otherwise squashes its links to a few px) */
details.menu:not([open])>:not(summary){display:none}
/* made-up number: says so where it's pressed */
.toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);opacity:0;z-index:60;background:#111;color:#fff;padding:12px 16px;border-radius:10px;font:15px/1.4 system-ui,sans-serif;max-width:90vw;transition:.25s;pointer-events:none}
.toast.on{opacity:1;transform:translate(-50%,0)}
/* photo viewer */
dialog.viewer{border:0;padding:0;background:#000e;max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff;font-family:system-ui,sans-serif}
dialog.viewer::backdrop{background:#000c}dialog.viewer img{max-width:94vw;max-height:80vh;margin:7vh auto 0;object-fit:contain}
dialog.viewer button{position:absolute;border:0;background:#fff2;color:#fff;font-size:30px;line-height:1;width:48px;height:48px;border-radius:99px;cursor:pointer}
.v-x{top:12px;right:12px}.v-p{left:10px;top:45%}.v-n{right:10px;top:45%}.viewer.one .v-p,.viewer.one .v-n{display:none}
.v-c{text-align:center;font-size:15px;margin:12px 16px 0}.v-c span{opacity:.7}
/* quote form: structure only, each layout styles inputs and buttons */
.ff{display:grid;gap:14px}.field{display:grid;gap:6px}.field label{font-weight:600}.field small{font-weight:400;opacity:.7}html.alt .field small{opacity:.95}
.field input,.field textarea,.field select{font:inherit;width:100%;min-height:48px;padding:12px;border-radius:var(--field-r,8px);border:1.5px solid var(--field-line,#c9d0da);background:var(--field-bg,#fff);color:var(--field-ink,#111)}
.field textarea{min-height:110px;resize:vertical}
.err{margin:-6px 0 0;font-size:.92em;font-weight:600;color:var(--err,#c5221f)}.botcheck{display:none!important}
.done{padding:18px;border-radius:var(--field-r,8px);background:var(--field-bg,#fff);color:var(--field-ink,#111)}.done:focus{outline:none}
/* the job: tappable choices in the site's own colours (the phone's own dropdown looked like another app, 2026-11-20).
   A layout sets --chip-on/--chip-on-ink (its send button's colours) and --chip-r. */
.jobs{border:0;padding:0;margin:0;min-width:0}.jobs legend{font-weight:600;padding:0;margin:0 0 8px}
.jobs .opts{display:flex;flex-wrap:wrap;gap:8px}
.jobs label{position:relative;display:inline-flex;align-items:center;min-height:46px;padding:10px calc(14px + .6em);border:1.5px solid var(--field-line,#c9d0da);border-radius:var(--chip-r,var(--field-r,8px));background:var(--field-bg,#fff);color:var(--field-ink,#111);cursor:pointer;font-weight:500;line-height:1.25;transition:background .15s,color .15s,border-color .15s}
.jobs input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
/* picked: filled, with a tick that takes the room it needs from the chip's own padding, so the chip never changes
   width and never jumps to the next line (operator, 2026-11-21). The weight stays the same for the same reason.
   A layout whose original shows no tick adds .jobs.no-tick (see below). */
.jobs label:has(input:checked){background:var(--chip-on,var(--field-ink,#111));color:var(--chip-on-ink,#fff);border-color:var(--chip-on,var(--field-ink,#111));padding-left:14px;padding-right:14px}
.jobs label:has(input:checked) span:before{content:"";display:inline-block;width:.85em;height:.85em;margin-right:.35em;vertical-align:-.08em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.no-tick.jobs label:has(input:checked){padding-left:calc(14px + .6em);padding-right:calc(14px + .6em)}.no-tick.jobs label span:before{content:none!important}
.jobs label:has(input:focus-visible){outline:3px solid var(--chip-on,currentColor);outline-offset:2px}
.form-hint{margin:0;font-size:.92em;opacity:.8}
/* before/after slider: Forma's (2026-11-20, operator: "the same feel as the one we built for Forma"). A sliding door:
   follows the thumb from where it is, a flick keeps it going, it bumps gently at each end, a tap glides it there. */
.ba-slider{position:relative;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:ew-resize;--pos:50%}
.ba-slider img.ba-before,.ba-slider img.ba-after{width:100%;height:100%;object-fit:cover;aspect-ratio:var(--ba-ratio,4/3);pointer-events:none;-webkit-user-drag:none}
.ba-slider .ba-after{position:absolute;inset:0;clip-path:inset(0 0 0 var(--pos))}
.ba-slider .ba-line{position:absolute;top:0;bottom:0;left:var(--pos);width:4px;margin-left:-2px;background:#fff;box-shadow:0 0 8px rgba(0,0,0,.35);pointer-events:none}
.ba-slider .ba-knob{position:absolute;top:50%;left:var(--pos);width:56px;height:56px;margin:-28px 0 0 -28px;border-radius:50%;background:#fff;border:0;padding:0;box-shadow:0 4px 16px rgba(0,0,0,.35);display:grid;place-items:center;cursor:ew-resize;color:var(--ba-knob,var(--chip-on,#111))}
.ba-slider .ba-knob svg{width:30px;height:30px}
html.alt .ba-slider .ba-knob{color:#16181c}
.ba-slider .ba-tag{position:absolute;top:14px;padding:6px 10px;border-radius:3px;background:rgba(0,0,0,.6);color:#fff;font:700 .78rem/1.3 var(--f-body,system-ui),sans-serif;letter-spacing:.12em;text-transform:uppercase;pointer-events:none}
.ba-slider .ba-tag.b{left:14px}.ba-slider .ba-tag.a{right:14px}
/* the shared menu (_menu.html): a layout sets --mn-bg, --mn-ink, --mn-line, --mn-r, --mn-drop, --mn-drop-ink and
   --chip-on/--chip-on-ink for the contact link; defaults come from its form colours */
details.sm{position:relative;margin-left:auto;flex:none;font-family:var(--f-body,system-ui),sans-serif}
details.sm summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;min-height:46px;padding:0 14px;border:1.5px solid var(--mn-line,var(--field-line,#c9d0da));border-radius:var(--mn-r,var(--chip-r,var(--field-r,8px)));background:var(--mn-bg,var(--field-bg,#fff));color:var(--mn-ink,var(--field-ink,#111));font-weight:700;font-size:16px;line-height:1}
details.sm summary::-webkit-details-marker{display:none}
details.sm .sm-ic svg{width:22px;height:22px}
details.sm .sm-i-x,details.sm .sm-x,details.sm[open] .sm-i-o,details.sm[open] .sm-o{display:none}
details.sm[open] .sm-i-x{display:block}details.sm[open] .sm-x{display:inline}
details.sm .sm-links{display:contents}details.sm .sm-more,details.sm .sm-title{display:none}
details.sm .drop{position:absolute;right:0;top:calc(100% + 8px);z-index:50;display:grid;min-width:230px;max-width:calc(100vw - 24px);padding:8px;border-radius:var(--mn-r,var(--chip-r,10px));background:var(--mn-drop,var(--field-bg,#fff));color:var(--mn-drop-ink,var(--field-ink,#111));box-shadow:0 14px 40px #0000003a;border:1px solid var(--mn-line,var(--field-line,#c9d0da))}
details.sm .drop a{padding:13px 14px;text-decoration:none;font-weight:600;border-radius:var(--mn-r,8px);line-height:1.3}
details.sm .drop a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
details.sm .drop .drop-cta{margin-top:6px;text-align:center;background:var(--chip-on,#111);color:var(--chip-on-ink,#fff);font-weight:700}
details.sm.sm-float{position:absolute;top:12px;right:12px;z-index:45;margin:0}
details.sm.sm-float summary{box-shadow:0 4px 14px #0003}
/* a style's own phone menu (.sm-own, from k.head): a sheet from under the header to the foot of the screen; the
   style's design.css dresses it (operator, 2026-11-24: each style's menu should be its own, like the templates') */
@media(max-width:899px){
details.sm-own .drop{position:fixed;left:0;right:0;top:var(--sm-top,64px);bottom:0;z-index:50;display:flex;flex-direction:column;align-items:stretch;min-width:0;max-width:none;padding:18px 18px calc(28px + env(safe-area-inset-bottom));border:0;border-radius:0;box-shadow:none;overflow-y:auto;overscroll-behavior:contain}
details.sm-own .drop a{border-radius:0}details.sm-own .drop a:hover{background:none}
html.menu-open:has(details.sm-own[open]){overflow:hidden}
details.sm-own .sm-more{display:flex;gap:10px;margin-top:14px}
details.sm-own .sm-more a{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 12px;text-decoration:none;font-weight:600;white-space:nowrap}
details.sm-own .sm-title{display:block;margin:0 0 6px}
}
/* on a laptop site.js opens the shared menu and adds .sm-row: the links in a row instead of a Menu button */
@media(min-width:900px){
details.sm.sm-row>summary{display:none}
details.sm.sm-row .drop{position:static;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px;min-width:0;max-width:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit}
details.sm.sm-row .drop a{padding:10px 12px;font-size:15.5px;white-space:nowrap}
details.sm.sm-row .drop .drop-cta{margin:0 0 0 8px;padding:10px 16px}
details.sm.sm-float.sm-row .drop{padding:6px;border:1px solid var(--mn-line,var(--field-line,#c9d0da));border-radius:calc(var(--mn-r,var(--chip-r,10px)) + 6px);background:var(--mn-drop,var(--field-bg,#fff));color:var(--mn-drop-ink,var(--field-ink,#111));box-shadow:0 4px 14px #0003}
}
.sm-bar{display:flex;justify-content:flex-end;padding:10px 12px 0;background:var(--mn-strip,transparent);position:relative;z-index:46}
/* The header stays on screen all the way down the page (operator, 2026-11-25: "you can only access the menu and dark
   mode by scrolling back up"). A layout's header carries .site-head; one with no bar keeps its floating menu and
   button on screen instead. Once scrolled (.solid, from site.js) a phone header loses the line under the firm's name,
   so it stays slim; site.js keeps the page from jumping when it does. A header that is see-through takes the page's
   own colour; the slim menu row (.sm-bar) keeps the colour its layout gave it (--mn-strip). Check: tools/topcheck.mjs */
.site-head{position:sticky;top:0;z-index:45;background-color:inherit}
.sm-bar{position:sticky;top:0;z-index:46;background-color:var(--mn-strip,inherit)}
details.sm.sm-float{position:fixed}
@media(max-width:899px){.site-head.solid [class$="-brand"] small,.site-head.solid .brand small{display:none}}

/* About us and Questions on a builder site (parts/_extra.html). Layouts with a .sec class keep their own padding. */
.x-sec{padding:26px 0}
@media(min-width:900px){.x-sec{padding:40px 0}}
.x-cols{display:grid;gap:22px;max-width:1000px}
@media(min-width:900px){.x-cols{grid-template-columns:1.2fr 1fr;gap:48px;align-items:start}.x-cols>:only-child{grid-column:1/-1;max-width:68ch}}
.x-text p{margin:0 0 14px;font-size:1.08em;line-height:1.6;max-width:62ch}.x-text p:last-child{margin-bottom:0}
.x-points{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.x-points li{display:flex;gap:12px;align-items:flex-start;line-height:1.45}.x-points .ic{flex:none;margin-top:1px}
.x-qs{display:grid;gap:10px;max-width:780px}
.x-qs details{border:1.5px solid color-mix(in srgb,currentColor 22%,transparent);border-radius:var(--field-r,8px);padding:0 16px}
.x-qs summary{cursor:pointer;font-weight:700;padding:15px 26px 15px 0;list-style:none;position:relative;line-height:1.35}
.x-qs summary::-webkit-details-marker{display:none}
.x-qs summary::after{content:"+";position:absolute;right:0;top:12px;font-size:1.4em;line-height:1}
.x-qs details[open] summary::after{content:"\2212"}
.x-qs details p{margin:0 0 16px;line-height:1.55}

/* Their own logo (a builder site with a logo): in the header in place of the typed name, named in its alt text.
   Each layout sets --logo-h (tallest) and --logo-w (widest); --ar is the logo's width / height, set on the img;
   --k lets a square or tall logo stand a little taller than a wide one. */
.logo{--lh:min(calc(var(--logo-h,44px) * var(--k,1)),calc(var(--logo-w,220px) / var(--ar,2)));display:block;height:var(--lh);
  width:calc(var(--lh) * var(--ar,2));max-width:100%;object-fit:contain;object-position:left center}
.logo.lg-boxed{border-radius:6px}
/* a see-through logo that wouldn't show on the header's colour: no plate or box (operator, 2026-11-28: "the logo looks
   shit with the white background on it"), a soft glow round its own shape instead, light or dark */
.logo.lg-light{filter:drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 7px rgba(255,255,255,.55))}
.logo.lg-dark{filter:drop-shadow(0 0 1px rgba(0,0,0,.8)) drop-shadow(0 0 7px rgba(0,0,0,.5))}
/* the same in the other mode only, where the header changes colour and it wouldn't show there */
html.alt .logo.lg-alt-light{filter:drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 7px rgba(255,255,255,.55))}
html.alt .logo.lg-alt-dark{filter:drop-shadow(0 0 1px rgba(0,0,0,.8)) drop-shadow(0 0 7px rgba(0,0,0,.5))}
/* a builder client's photo of themselves or their team in the About part (build.py owner_pic) */
.ss-owner{margin:28px 0 0;max-width:560px}
.ss-owner img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--ss-owner-r,12px)}
/* a logo without their name in it: the name beside it, in the layout's own lettering for the name */
.logo-and-name{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 12px;max-width:100%;vertical-align:middle}
.logo-and-name .logo{flex:none}.logo-and-name .logo-name{min-width:0;overflow-wrap:anywhere}
/* A made-up firm's logo mark (build.py mark()): two see-through layers painted in the layout's own colours, nothing
   behind them. A layout sets --mk-h (height), --mk-1 (the main shapes) and --mk-2 (the detail); --ar is width / height. */
.mk{display:block;position:relative;flex:none;height:var(--mk-h,44px);width:calc(var(--mk-h,44px) * var(--ar,1))}
.mk>b{position:absolute;inset:0;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;transition:background-color .5s}
.mk-1{background:var(--mk-1,currentColor)}.mk-2{background:var(--mk-2,currentColor)}
/* the whole logo (mark and lettered name): as tall as --mk-h allows, never wider than --lk-w */
.mk.mk-lock{height:auto;width:min(var(--lk-w,260px),calc(var(--mk-h,44px) * var(--ar)));aspect-ratio:var(--ar)}

/* The bottom of the page (shared/parts/_foot.html): phone, email, hours, towns, each with an icon. One per line on a
   phone, in a row on a laptop; the phone and email links tall enough to tap. Colours come from the layout's .f-line. */
.f-contact{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:2px}
.f-contact li{display:flex;align-items:center;gap:10px;min-height:32px;line-height:1.45;text-align:left}
.f-contact .ic{flex:none;opacity:.75}
.f-contact a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
@media(min-width:900px){.f-contact{flex-direction:row;flex-wrap:wrap;gap:4px 32px}}

/* Proof strip under the headline (shared/parts/_proof.html): their short proof lines with ticks, plain text, not buttons */
.proof{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-wrap:wrap;gap:6px 18px;font-weight:600;font-size:15px;line-height:1.35}
.proof li{display:flex;align-items:center;gap:6px}
.proof .ic{flex:none}
/* Scheme badges above the proof ticks (_proof.html): a shield, their words, the number under. No box, no fill, no
   hover: plain info, never styled like a button. Colours follow the hero's own text and accent (.proof .ic per layout). */
.badges{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-wrap:wrap;gap:12px 22px}
.badge{display:flex;align-items:center;gap:8px;line-height:1.15;cursor:default}
.badge .ic{flex:none;width:28px;height:28px;color:var(--acc-hi,var(--acc,currentColor))}
.badge span{display:flex;flex-direction:column}
.badge b{font-size:15px;font-weight:700;letter-spacing:.005em}
.badge small{font-size:12.5px;opacity:.72;font-variant-numeric:tabular-nums;letter-spacing:.02em;margin-top:2px}
.badges+.proof{margin-top:12px}
/* Their own badge picture: on a small white plate (scheme logos are drawn for white), the number beside it */
.badge.has-img{gap:10px}
.badge.has-img img{display:block;height:46px;width:auto;max-width:150px;object-fit:contain;background:#fff;padding:5px 7px;border-radius:6px;box-sizing:content-box}

/* Reviews (operator's yes to the wording, 2026-11-21): "on Google" after the name, and the button to all their reviews */
.r-src{opacity:.8;font-weight:400}html.alt .r-src{opacity:1}
.more-revs{margin:22px 0 0}
.more-revs a{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 20px;border:2px solid currentColor;border-radius:var(--btn-r,10px);font-weight:700;text-decoration:none;color:inherit}

/* contact links (email, WhatsApp) in a contact list: tall enough to tap (fix 16) */
#contact li>a{display:inline-flex;align-items:center;min-height:44px}

/* "Website by TheWebSnagger" (operator, 2026-11-21): small, quiet, still easy to tap */
.built{margin:10px 0 0;font-size:14px;opacity:.8}html.alt .built{opacity:1}.built a{color:inherit;display:inline-block;padding:12px 0;margin:-12px 0}

/* the privacy page (shared/parts/privacy.html) */
.pv{max-width:680px;margin:0 auto;padding:28px 20px 56px;line-height:1.6;font-size:17px}
.pv-home a{font-weight:700;color:inherit}.pv h1{margin:18px 0 6px;font-size:34px;line-height:1.15}
.pv h2{margin:22px 0 4px;font-size:20px;line-height:1.3}.pv p{margin:0}.pv a{color:inherit}
.f-co{margin:6px 0 0;font-size:14px}
/* Download brochure under the quote form (f.brochure): an outline button in the form's own text colour */
.brochure{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;margin-top:14px;padding:10px 18px;border:2px solid currentColor;border-radius:var(--brochure-r,8px);color:inherit;font-weight:600;text-decoration:none;text-align:center}
.brochure small{font-weight:400;opacity:.75}
.brochure:hover{text-decoration:underline}
