/* Load after coral-halo.css in the dedicated HALO template. */
.ch-halo.ch-halo-wide {
  --halo-ice: #e3eefc;
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
  background: var(--halo-ice);
}
@supports (width: 100cqw) {
  html:has(.ch-halo-wide) { container-type: inline-size; }
  .ch-halo.ch-halo-wide {
    width: 100cqw;
    margin-left: -50cqw;
  }
}
.ch-halo-wide .ch-hero {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(1.5rem, 4vw, 5rem);
  padding-inline: max(4vw, calc((100% - 96rem) / 2));
  background: var(--halo-ice);
}
.ch-halo-wide .ch-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 3.5vw, 4.35rem);
  text-wrap: balance;
  overflow-wrap: normal;
}
.ch-halo-wide .ch-hero img {
  aspect-ratio: auto;
  border-radius: 1rem;
  box-shadow: 0 16px 38px rgb(22 46 89 / 16%);
}
.ch-halo-wide .ch-rotate { min-block-size: 2.2em; }
.ch-halo-wide .ch-wave {
  position: relative;
  overflow: hidden;
}
.ch-halo-wide .ch-wave img {
  display: block;
  width: 100%;
  height: clamp(9rem, 19vw, 19rem);
  max-height: none;
  object-fit: cover;
  object-position: center bottom;
}
.ch-halo-wide .ch-wave::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12%;
  background: linear-gradient(transparent, var(--halo-ice));
  pointer-events: none;
}
.ch-halo-wide .ch-why {
  background: var(--halo-ice);
}
.ch-halo-wide .ch-why > div:not(.ch-wave) {
  max-width: 72rem;
  margin-inline: auto;
}
@media (max-width: 760px) {
  .ch-halo-wide .ch-hero { grid-template-columns: minmax(0, 1fr); }
  .ch-halo-wide .ch-hero h1 { max-width: 18ch; }
}

/* Remove the template gaps on the HALO page. */
main#main > .section:has(.ch-halo-wide) {
  padding-block: 0;
}

main#main:has(.ch-halo-wide) > br {
  display: none;
}

/* Let the wave JPEG reach both edges of the screen. */
.ch-halo-wide .ch-why > .ch-wave {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ch-halo-wide .ch-why > .ch-wave > img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
}