/* Portal sparkle footage with the existing purple-on-white grade baked in for Safari. */
body.home #page {isolation:isolate;position:relative;}
body.home #page #content {position:relative;z-index:1;background-color:transparent!important;}
body.home #page #content :is(.site-main,.page-container,.page-container-wrap,.vc_row,.vc_column-inner){background-color:transparent!important;}
body.home #page #colophon {position:relative;z-index:1;}
body.wn-sparkle-page #page > .wn-portal-sparkle {position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;mix-blend-mode:multiply;opacity:.62;mask-image:linear-gradient(90deg,#000,rgba(0,0,0,.65) 25%,rgba(0,0,0,.65) 75%,#000);-webkit-mask-image:linear-gradient(90deg,#000,rgba(0,0,0,.65) 25%,rgba(0,0,0,.65) 75%,#000);}
body.wn-sparkle-page #page > .wn-portal-sparkle video {width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .4s;}
body.wn-sparkle-page #page > .wn-portal-sparkle.is-ready video {opacity:1;}
body.wn-sparkle-page #page > .wn-sparkle-toggle {position:fixed;right:18px;bottom:18px;z-index:60;min-width:44px;min-height:36px;padding:7px 12px;border:1px solid #d7d2d7;border-radius:20px;background:rgba(255,255,255,.95);color:#555;font:400 13px/1.2 'Times New Roman',Times,serif;text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;}
body.wn-sparkle-page #page > .wn-sparkle-toggle:hover,body.wn-sparkle-page #page > .wn-sparkle-toggle:focus-visible {border-color:#92278f;color:#92278f;outline-offset:3px;}
body.wn-sparkle-page #page > .wn-sparkle-toggle[hidden] {display:none!important;}
@media(max-width:767px){body.wn-sparkle-page #page > .wn-portal-sparkle{opacity:.44;}body.wn-sparkle-page #page > .wn-sparkle-toggle{right:12px;bottom:12px;font-size:12px;}}
@media(prefers-reduced-motion:reduce){body.wn-sparkle-page #page > .wn-portal-sparkle video{transition:none;}}

/* Keep the decorative backdrop behind the changing mobile browser viewport. */
body.wn-sparkle-page #page > .wn-portal-sparkle{bottom:auto;height:100vh;height:100lvh;min-height:100%;}
@supports(height:100lvh){body.wn-sparkle-page #page > .wn-portal-sparkle{height:calc(100lvh + env(safe-area-inset-bottom,0px));}}

/* On the service and assessment pages the content panels have their own
   background colours. Multiply leaves those colours visible under the film. */
body.wn-sparkle-page:not(.home) #page > .wn-portal-sparkle {
  z-index: 2;
  opacity: .76;
  visibility: hidden;
  height: 100%;
  min-height: 0;
  bottom: 0;
  clip-path: inset(var(--wn-film-top, 100%) 0 var(--wn-film-bottom, 0px));
}
body.wn-sparkle-page:not(.home) #page > .wn-portal-sparkle.is-in-scope {
  visibility: visible;
}
body.wn-sparkle-page #page > .wn-portal-sparkle[hidden] { display: none !important; }
body.wn-sparkle-page:not(.home) #page > .wn-sparkle-toggle {
  left: max(14px, env(safe-area-inset-left));
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom));
}
body.home #page > .wn-portal-sparkle.wn-editing-in-view { opacity: .86; }
body.page-id-5669254 #page-assessments { scroll-margin-top: 92px; }
body.admin-bar.page-id-5669254 #page-assessments { scroll-margin-top: 128px; }
@media(max-width:767px) {
  body.wn-sparkle-page:not(.home) #page > .wn-portal-sparkle { opacity: .62; }
  body.home #page > .wn-portal-sparkle.wn-editing-in-view { opacity: .7; }
}
