/* Night Shift review: let each chapter's atmosphere reach the edges while its content retains a comfortable measure. */
body.ss-home.ss-night {
  --night-contrast:1.55;
  --night-brightness:1;
  --night-opacity-multiplier:.8462;
  --night-outer:clamp(1.15rem,3vw,3.35rem);
  --night-width:min(1720px,calc(100% - 2 * var(--night-outer)));
  --night-line:#7bbaff79;
  --night-deep:#050d1c;
  color:#f1f7ff;
  background:var(--night-deep);
}
body.ss-home.ss-night > main#top {
  width:100%;
  max-width:none;
  overflow-x:clip;
  --ss-section-divider:transparent;
  --ss-section-gap-half:clamp(1.75rem,3.45vw,4.1rem);
}
body.ss-home.ss-night > main#top > .wrap,
body.ss-home.ss-night > main#top > :is(#delivery,#quote) .wrap,
body.ss-home.ss-night .ss-precision-rail .wrap {
  width:var(--night-width);
  max-width:none;
}
body.ss-home.ss-night > main#top > :is(.night-band,#highveld) {
  position:relative;
  isolation:isolate;
  overflow:visible;
}
body.ss-home.ss-night > main#top > .night-band {
  border-block-start:0;
  margin-block:0;
  padding-block:var(--ss-section-gap-half);
}
body.ss-home.ss-night > main#top > .night-band::before {
  content:"";
  position:absolute;
  z-index:-1;
  left:50%;
  transform:translateX(-50%);
  width:100vw;
  inset-block:0;
  height:auto;
  border-top:1px solid var(--night-line);
  background:
    linear-gradient(180deg,rgb(47 99 150 / clamp(0, calc(.63 * var(--night-opacity-multiplier, .8462)), 1)),rgb(16 44 79 / clamp(0, calc(.66 * var(--night-opacity-multiplier, .8462)), 1)) 4.2rem,rgb(5 16 32 / clamp(0, calc(.58 * var(--night-opacity-multiplier, .8462)), 1)) 10.5rem,rgb(3 10 23 / clamp(0, calc(.79 * var(--night-opacity-multiplier, .8462)), 1)) 100%),
    radial-gradient(ellipse at 72% 20%,rgb(31 107 176 / clamp(0, calc(.23 * var(--night-opacity-multiplier, .8462)), 1)),transparent 68%);
  pointer-events:none;
}
body.ss-home.ss-night > main#top > .night-band:nth-of-type(2n)::before {
  background:linear-gradient(180deg,rgb(31 78 130 / clamp(0, calc(.66 * var(--night-opacity-multiplier, .8462)), 1)),rgb(13 40 75 / clamp(0, calc(.55 * var(--night-opacity-multiplier, .8462)), 1)) 4.2rem,rgb(5 15 32 / clamp(0, calc(.51 * var(--night-opacity-multiplier, .8462)), 1)) 10.5rem,rgb(2 8 20 / clamp(0, calc(.81 * var(--night-opacity-multiplier, .8462)), 1)) 100%);
}
body.ss-home.ss-night > main#top > #flashings::before,
body.ss-home.ss-night > main#top > #steel-coils::before {
  background:linear-gradient(180deg,rgb(61 116 164 / clamp(0, calc(.69 * var(--night-opacity-multiplier, .8462)), 1)),rgb(22 54 96 / clamp(0, calc(.60 * var(--night-opacity-multiplier, .8462)), 1)) 4.5rem,rgb(5 16 32 / clamp(0, calc(.56 * var(--night-opacity-multiplier, .8462)), 1)) 12rem,rgb(2 8 20 / clamp(0, calc(.82 * var(--night-opacity-multiplier, .8462)), 1)) 100%);
}
body.ss-home.ss-night > main#top > :is(#delivery,#quote) {background:transparent}
body.ss-home.ss-night .ss-scroll-background {background:var(--night-deep)}
body.ss-home.ss-night .ss-scroll-background img {filter:grayscale(.72) saturate(.66) contrast(1.035)}
body.ss-home.ss-night .ss-scroll-background::after {
  background:linear-gradient(90deg,#040d1dc9,#081728a6 48%,#040e20c0),linear-gradient(0deg,#040b1777,transparent 68%);
}
body.ss-home.ss-night .ss-scroll-classic-sweep {display:none}
.night-chapters {
  width:100%;
  margin:0;
  color:#dceeff;
  background:linear-gradient(180deg,#24517bcf,#102b49cf 51%,#07172add);
  border-top:1px solid #83bef47f;
  border-bottom:1px solid #83bef47f;
}
.night-chapters .night-inner {
  width:var(--night-width);
  margin-inline:auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:center;
}
.night-chapters + .night-band::before {border-top-color:transparent!important}
.night-chapters a {
  display:grid;
  min-height:56px;
  place-items:center;
  padding:.55rem .45rem;
  text-align:center;
  font-size:clamp(.76rem,1.15vw,1rem);
  font-weight:680;
  color:#e1f1fd;
  text-decoration:none;
  border-inline-end:1px solid #a3d1ff34;
}
.night-chapters a:first-child {border-inline-start:1px solid #a3d1ff34}
.night-chapters a:hover {color:#fff;background:#81bff328}
.night-chapters a:focus-visible {outline:2px solid #a4e9ff;outline-offset:-3px}
body.ss-night .night-band {scroll-margin-top:5rem}
.night-site-note {font-size:.78rem;color:#a9c5dc;margin:.35rem 0 0}
@media(max-width:760px) {
  body.ss-home.ss-night {--night-outer:16px}
  body.ss-home.ss-night > main#top {--ss-section-gap-half:1.8rem}
  .night-chapters a {min-height:48px;font-size:.78rem}
  body.ss-home.ss-night > main#top > .night-band::before {background:linear-gradient(180deg,rgb(28 67 118 / clamp(0, calc(.710 * var(--night-opacity-multiplier, .8462)), 1)),rgb(8 26 49 / clamp(0, calc(.631 * var(--night-opacity-multiplier, .8462)), 1)) 6.8rem,rgb(5 13 26 / clamp(0, calc(.780 * var(--night-opacity-multiplier, .8462)), 1)) 100%)}
}
@media(max-width:440px) {
  .night-chapters .night-inner {grid-template-columns:repeat(2,minmax(0,1fr))}
  .night-chapters a:nth-child(3) {border-inline-start:1px solid #a3d1ff34}
  .night-chapters a:nth-child(n+3) {border-top:1px solid #a3d1ff34}
}

/* Approved Night Shift background settings; no browser-specific overrides. */
body.ss-home.ss-night .ss-scroll-background img {
  filter:grayscale(.72) saturate(.66) contrast(var(--night-contrast,1.55)) brightness(var(--night-brightness,1));
}
.night-vrd-page:focus-visible{outline:2px solid #a6efff;outline-offset:2px}
body.ss-night #highveld .ss-cinema-gallery-row{
 --rail-height:32px;display:grid;grid-template-columns:minmax(0,3.5fr) minmax(0,1fr);
 grid-template-areas:"estimate gallery" "panel panel";gap:0 .52rem;align-items:stretch
}
body.ss-night #highveld .ss-cinema-gallery-row:has(.ss-estimate[hidden]) .ss-cinema-gallery-link{grid-column:1/-1;justify-self:end}
body.ss-night #highveld .ss-cinema-gallery-row :is(#ss-estimate-toggle,.ss-cinema-gallery-link){min-height:var(--rail-height);padding:.2rem .65rem;line-height:1.18}
body.ss-night #highveld .ss-cinema-gallery-row #ss-estimate-toggle{grid-template-columns:minmax(0,1fr) .68rem;text-align:left}
body.ss-night #highveld .ss-cinema-gallery-row .ss-estimate-roof{display:none}
body.ss-night #highveld .ss-cinema-gallery-row .ss-estimate-copy{display:flex;min-width:0;align-items:center;gap:.46rem .65rem;flex-wrap:wrap}
body.ss-night #highveld .ss-cinema-gallery-row .night-estimate-name{font-size:.82rem;color:#f2fbff}
body.ss-night #highveld .ss-cinema-gallery-row .night-estimate-name strong{font-size:inherit}
body.ss-night #highveld #ss-estimate-preview{display:flex;align-items:center;gap:.4rem .56rem;flex-wrap:wrap;border-inline-start:1px solid #5d9ab4;padding-inline-start:.65rem;color:#b0edff;font-size:.75rem;font-weight:480;min-width:0}
body.ss-night #highveld #ss-estimate-preview>span{white-space:nowrap}
body.ss-night #highveld #ss-estimate-corr10::before{content:"/";color:#7fb1c8;margin-inline-end:.55rem}
body.ss-night #highveld .ss-cinema-gallery-row .ss-cinema-gallery-link{flex-direction:row;align-items:center;gap:.3rem .48rem;flex-wrap:wrap}
body.ss-night #highveld .ss-cinema-gallery-row .ss-cinema-gallery-link strong{font-size:.82rem}
body.ss-night #highveld .ss-cinema-gallery-row .ss-cinema-gallery-link>span{font-size:.65rem}
body.ss-night #quote .ss-release-footer{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:start;column-gap:.65rem}
body.ss-night #quote .ss-release-footer .ss-dual-diagnostics{margin:0;color:#cadfed;min-width:0}
body.ss-night #quote .ss-dual-diagnostics summary{margin-inline:auto;padding:0;line-height:1.35;color:#c1d6eb;background:transparent;border:0;white-space:nowrap}
body.ss-night #quote .ss-dual-diagnostics dl{padding:0;max-width:24rem;min-width:0}
body.ss-night #quote .ss-dual-diagnostics dl>div{display:flex;flex-wrap:wrap;gap:.15rem .45rem}
body.ss-night #virtual-roof .night-vrd-pager{display:grid;grid-template-columns:clamp(50px,5vw,70px) minmax(0,1fr) clamp(50px,5vw,70px);align-items:stretch;gap:.45rem;min-width:0}
body.ss-night #virtual-roof .night-vrd-pager>.ss-roof-homes{min-width:0;max-width:100%;width:100%}
.night-vrd-page{width:100%;min-width:0;min-height:44px;align-self:stretch;margin:0;display:grid;align-content:center;justify-items:center;gap:.16rem;padding:4px 1px;margin-bottom:3px;background:#122f46;color:#a0efff;border:1px solid #406778;border-radius:7px;cursor:pointer;font:700 clamp(.55rem,.8vw,.72rem)/1.1 system-ui,sans-serif}
.night-vrd-page svg{width:30px;height:25px}
.night-vrd-page[aria-disabled=true]{color:#8da9b7;background:#152636;cursor:default}
.night-vrd-page:not([aria-disabled=true]):hover{background:#23516b;color:white}
@media(max-width:1160px){
 body.ss-night #highveld #ss-estimate-preview{border-inline-start:0;padding-inline-start:0}
}
@media(max-width:760px){
 body.ss-night #highveld .ss-cinema-gallery-row{--rail-height:44px;grid-template-columns:minmax(0,1.34fr) minmax(0,1fr);gap:0 .36rem}
 body.ss-night #highveld .ss-cinema-gallery-row :is(#ss-estimate-toggle,.ss-cinema-gallery-link){padding:.15rem .42rem}
 body.ss-night #highveld .ss-cinema-gallery-row #ss-estimate-toggle{grid-template-columns:minmax(0,1fr);gap:0}
 body.ss-night #highveld .ss-cinema-gallery-row :is(.ss-estimate-action,#ss-estimate-preview,.ss-cinema-gallery-link>span){display:none}
 body.ss-night #highveld .ss-cinema-gallery-row .night-estimate-name,body.ss-night #highveld .ss-cinema-gallery-row .ss-cinema-gallery-link strong{font-size:clamp(.71rem,3.25vw,.81rem)}
 body.ss-night #quote .ss-release-footer{gap:.42rem .38rem;font-size:.65rem}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics{font-size:.65rem}
 body.ss-night #quote .ss-dual-diagnostics summary{white-space:normal}
 body.ss-night #quote .ss-release-versions{justify-content:flex-end;text-align:right}
 body.ss-night #virtual-roof .night-vrd-pager{grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}
 .night-vrd-page svg{width:25px;height:21px}
}
@media(max-width:1160px){body.ss-night #highveld .ss-cinema-gallery-row .ss-cinema-gallery-link>span{display:none}}

/* Replace the delivery band’s legacy inset rule with the shared full-bleed fade. */
body.ss-home.ss-night > main#top > #delivery.night-band::before{width:100vw;max-width:none}

/* The dock is viewport-wide; section wraps keep their Night Shift gutters. */
@media (max-width:760px) {
 body.ss-home.ss-night > main#top > #quote .ss-contact-bar.wrap {
  width:auto;
 }
}

/* Compact release details on phones; desktop retains the long labels. */
.ss-release-mobile-only{display:none}
@media(max-width:760px){
 body.ss-night #quote .ss-release-footer{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(66px,.7fr) minmax(0,1fr);
  gap:.35rem .4rem;align-items:start;font-size:.71rem;line-height:1.35;
 }
 body.ss-night #quote .ss-release-footer .ss-release-stamp,
 body.ss-night #quote .ss-release-footer .ss-release-versions{
  display:flex;flex-direction:column;gap:0;line-height:inherit;min-width:0;
 }
 body.ss-night #quote .ss-release-footer .ss-release-stamp{grid-column:1;grid-row:1;align-items:flex-start}
 body.ss-night #quote .ss-release-footer .ss-release-versions{grid-column:3;grid-row:1;align-items:flex-end;text-align:right}
 body.ss-night #quote .ss-release-footer .ss-release-date,
 body.ss-night #quote .ss-release-footer .ss-release-clock{display:block}
 body.ss-night #quote .ss-release-footer .ss-release-desktop-only{display:none}
 body.ss-night #quote .ss-release-footer .ss-release-mobile-only{display:inline}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics{grid-column:2;grid-row:1;font-size:inherit;text-align:center;min-width:0}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics summary{
  display:flex;align-items:center;justify-content:center;gap:.22rem;
  min-height:44px;width:100%;text-align:center;list-style:none;
 }
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics summary::-webkit-details-marker{display:none}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics summary::before{content:'›';font-size:1.05em;color:#a8d9f3}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics summary>span>span{display:block}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics[open]{grid-column:1/-1;grid-row:2;text-align:left}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics[open] summary::before{transform:rotate(90deg)}
 body.ss-night #quote .ss-release-footer .ss-dual-diagnostics[open] dl{max-width:none}
}
