/* Shared photo-led hero based on the contact-lens page. Page content remains independent. */
.sub-main .unified-hero {
  isolation: isolate;
  background: linear-gradient(112deg, #f3fbfd, #f9fdff 54%, #e3f4f9);
}

html body:has(.sub-main) .sub-main .unified-hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: auto;
  left: -90px;
  width: 500px;
  height: 428px;
  border: 0;
  border-radius: 0;
  background: url("../img/logo/logo-beside_blue.svg") left top / 1500px auto no-repeat;
  box-shadow: none;
  opacity: .11;
  pointer-events: none;
}

html body:has(.sub-main) .sub-main .unified-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 91% 46%, transparent 0 211px, rgba(38, 155, 194, .2) 212px 213px, transparent 214px 267px, rgba(38, 155, 194, .12) 268px 269px, transparent 270px),
    radial-gradient(circle at 91% 46%, rgba(166, 224, 239, .13), transparent 280px) !important;
  pointer-events: none;
}

html body:has(.sub-main) .sub-main .unified-hero .lower-hero-grid {
  z-index: 3;
}

html body:has(.sub-main) .sub-main .unified-hero .sub-title {
  color: #0a536f !important;
  text-shadow: none !important;
}

html body:has(.sub-main) .sub-main .unified-hero .sub-breadcrumb,
html body:has(.sub-main) .sub-main .unified-hero .sub-breadcrumb a {
  color: #285d73 !important;
  text-shadow: none !important;
}

html body:has(.sub-main) .sub-main .unified-hero .sub-kicker {
  color: #078fca !important;
  text-shadow: none !important;
}

html body:has(.sub-main) .sub-main .unified-hero .sub-lead {
  max-width: 44rem;
  color: #416577;
  text-shadow: none;
}

html body:has(.sub-main) .sub-main .unified-hero .sub-hero-note {
  order: 4;
  margin: 8px 0 0;
  color: #567685;
  font-size: .8rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  html body:has(.sub-main) .sub-main .unified-hero,
  html body:has(.sub-main) .sub-main .unified-hero .lower-hero-grid {
    min-height: 416px !important;
  }

  html body:has(.sub-main) .sub-main .unified-hero .lower-hero-grid {
    padding: 32px 0 !important;
  }

  html body:has(.sub-main) .sub-main .unified-hero .lower-hero-visual {
    height: 312px;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  html body:has(.sub-main) .sub-main .unified-hero .lower-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  }
}

@media (max-width: 760px) {
  .sub-main .unified-hero {
    padding-top: 1.3rem;
    padding-bottom: 1.7rem;
  }

  html body:has(.sub-main) .sub-main .unified-hero::before {
    top: 19rem;
    right: -190px;
    left: auto;
    width: 300px;
    height: 262px;
    background-size: 905px auto;
    opacity: .1;
  }

  html body:has(.sub-main) .sub-main .unified-hero::after {
    background: radial-gradient(circle at 100% 0, transparent 0 139px, rgba(38, 155, 194, .17) 140px 141px, transparent 142px 189px, rgba(38, 155, 194, .1) 190px 191px, transparent 192px) !important;
  }

  html body:has(.sub-main) .sub-main .unified-hero .sub-title {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
    overflow-wrap: anywhere;
  }
}

/* These headings are longer than the other page names. */
@media (min-width: 761px) {
  html body:has(.sub-main) .sub-main .unified-hero--long-title .sub-title {
    font-size: clamp(2rem, 2.8vw, 2.7rem);
  }
}
