/* ALEX HERO STANDARD V1
   One light-grey hero treatment for current and future custom PHP pages.
   Based on the Residential hero band. */
:root{
  --alex-hero-grey: var(--paper, #f4f6fa);
  --alex-hero-line: var(--line, #dae3ed);
}

/* All regular full-width page hero bands. */
main#main > section[class*="-hero"],
main#main > section[class*="-hero-band"],
main#main > .preview-note + section[class*="-hero"],
main#main > .preview-note + section[class*="-hero-band"]{
  background:var(--alex-hero-grey)!important;
  background-color:var(--alex-hero-grey)!important;
  background-image:none!important;
  border-bottom:1px solid var(--alex-hero-line)!important;
}

/* Home hero is itself a .alex-container instead of containing one.
   Make the grey background full-bleed without changing its markup or width. */
main.ah-home > section.ah-hero.alex-container{
  background:var(--alex-hero-grey)!important;
  background-color:var(--alex-hero-grey)!important;
  background-image:none!important;
  box-shadow:0 0 0 100vmax var(--alex-hero-grey);
  clip-path:inset(0 -100vmax);
}

/* Nos services has no main hero photograph, but keeps the same H1 zone. */
main#main > section.services-hero{
  background:var(--alex-hero-grey)!important;
  background-color:var(--alex-hero-grey)!important;
  background-image:none!important;
  border-bottom:1px solid var(--alex-hero-line)!important;
}

/* Do not let legacy page gradients visually override the common hero. */
main#main > section[class*="-hero"]::before,
main#main > section[class*="-hero-band"]::before{
  background-image:none;
}

@media print{
  main#main > section[class*="-hero"],
  main#main > section[class*="-hero-band"],
  main.ah-home > section.ah-hero.alex-container{
    background:#fff!important;
    box-shadow:none!important;
    clip-path:none!important;
  }
}
