/* The page lifts away to uncover the existing footer. Its content stays in React's tree. */
body.everest-redesign.footer-has-reveal {
  padding-bottom: var(--footer-space, 0px);
}
body.everest-redesign.footer-has-reveal > main.footer-page-cover {
  position: relative;
  z-index: 1;
  background-color: #fff;
  box-shadow: none;
}
/* The tour's fixed viewer must escape the page's normal cover layer above the header. */
body.everest-redesign > main.footer-page-cover:has(.photo-tour--full) {
  position: relative;
  z-index: 60;
}
body.everest-redesign .mountain-footer.footer-reveal {
  --footer-reveal: 0;
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--footer-header-height, 68px));
  padding-top: 0;
  overflow: hidden;
  background: #000;
  border-top: 0;
}
body.everest-redesign .mountain-footer.footer-reveal[data-footer-reveal="fixed"] {
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  transform: translate3d(0, calc(36px * (1 - var(--footer-reveal))), 0);
}
body.everest-redesign .mountain-footer.footer-reveal > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--footer-header-height, 68px));
}
body.everest-redesign .mountain-footer.footer-reveal .footer-main {
  flex: 1;
  position: relative;
  z-index: 1;
  background: transparent;
  mix-blend-mode: normal;
  align-content: start;
}
body.everest-redesign .mountain-footer.footer-reveal .footer-bottom {
  margin-top: auto;
}
body.everest-redesign .mountain-footer.footer-reveal::before,
body.everest-redesign .mountain-footer.footer-reveal::after {
  content: none;
  display: none;
  background: none;
  box-shadow: none;
  filter: none;
}
body.everest-redesign .mountain-footer.footer-reveal .footer-mountain {
  position: absolute;
  left: 50%;
  right: auto;
  top: auto;
  bottom: -112px;
  z-index: 0;
  width: var(--footer-mountain-width, clamp(1000px, 92vw, 1440px));
  max-width: none;
  height: auto;
  pointer-events: none;
  transform: translateX(-50%);
  /* The mark stays bright at full reveal; no lower-edge fade or legacy clipping. */
  opacity: calc(.02 + var(--footer-reveal) * .98);
  clip-path: none;
  -webkit-mask-image: none;
  mask-image: none;
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 calc(10px + var(--footer-reveal) * 14px) rgb(188 232 255 / 35%))
    drop-shadow(0 0 calc(20px + var(--footer-reveal) * 52px) rgb(98 191 255 / 35%));
}
body.everest-redesign .mountain-footer.footer-reveal :is(.footer-main,.footer-bottom) {
  /* Only the lettering gets a dark edge; the luminous mountain remains unobscured. */
  text-shadow: 0 1px 2px #07121e;
}
body.everest-redesign .mountain-footer.footer-reveal :is(.footer-main nav > a, .footer-contact address, .footer-bottom) {
  color: #edf5fd;
}
@media (max-width: 767px) {
  body.everest-redesign .mountain-footer.footer-reveal .footer-mountain {
    width: var(--footer-mountain-width, clamp(700px, 200vw, 1000px));
    top: auto;
    bottom: -48px;
    opacity: calc(.02 + var(--footer-reveal) * .98);
  }
  body.everest-redesign .mountain-footer.footer-reveal[data-footer-reveal="fixed"] {
    transform: translate3d(0, calc(20px * (1 - var(--footer-reveal))), 0);
  }
  body.everest-redesign .mountain-footer.footer-reveal .footer-bottom {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  body.everest-redesign .mountain-footer.footer-reveal[data-footer-reveal="fixed"] {
    transform: none;
  }
  body.everest-redesign .mountain-footer.footer-reveal::before {
    opacity: 1;
  }
  body.everest-redesign .mountain-footer.footer-reveal .footer-mountain {
    opacity: 1;
  }
}
@media print {
  body.everest-redesign.footer-has-reveal { padding-bottom: 0; }
  body.everest-redesign .mountain-footer.footer-reveal[data-footer-reveal="fixed"] {
    position: relative;
    transform: none;
    min-height: 0;
  }
  body.everest-redesign .mountain-footer.footer-reveal > .container { min-height: 0; }
}

/* Large plain identity, clipped flush with the footer's upper edge. */
body.everest-redesign .mountain-footer.footer-clean {
  padding-top: 0;
  border-top: 0;
}
body.everest-redesign .mountain-footer.footer-clean .footer-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  height: auto;
  min-height: 0;
  padding: 0 0 32px;
}
body.everest-redesign .mountain-footer.footer-clean .footer-slogan {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  gap: 0;
  margin: calc(-1 * var(--footer-slogan-top-trim, .14em)) 0 0;
  font-size: var(--footer-slogan-size, clamp(18px, 5.2vw, 90px));
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  text-shadow: none !important;
  filter: none;
}
body.everest-redesign .mountain-footer.footer-clean .footer-slogan > span {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: none !important;
  filter: none;
  opacity: 1;
}
body.everest-redesign .mountain-footer.footer-clean .footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  background: none;
  text-shadow: none !important;
  filter: none;
}
body.everest-redesign .mountain-footer.footer-clean .footer-brand > .footer-brand-original {
  display: block !important;
  position: relative;
  width: clamp(180px, 20vw, 280px);
  max-width: none;
  aspect-ratio: 1090 / 244;
  background: none;
  -webkit-mask: none;
  mask: none;
  opacity: 1;
  filter: none;
  box-shadow: none;
  text-shadow: none !important;
}
/* Retain the exact supplied letter shapes and original blue triangle on dark. */
body.everest-redesign .mountain-footer.footer-clean .footer-brand-original .footer-gpz-white {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
body.everest-redesign .mountain-footer.footer-clean .footer-brand-original .footer-gpz-accent {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  filter: none;
  clip-path: polygon(82% 0, 93% 0, 82% 50%);
}
body.everest-redesign .mountain-footer.footer-clean .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
  padding: 16px 0 18px;
}
body.everest-redesign .mountain-footer.footer-clean .footer-main > .footer-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  align-self: start;
}
body.everest-redesign .mountain-footer.footer-clean .footer-main :is(.footer-contact-title, .footer-desktop-group > summary) {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 24px;
  padding: 0;
  color: #f5f9ff;
  font-size: 20.8px;
  font-weight: 650;
  line-height: 34px;
  letter-spacing: -.025em;
}
body.everest-redesign .mountain-footer.footer-clean .footer-main .footer-group-content {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: auto;
  gap: 12px;
}
body.everest-redesign .mountain-footer.footer-clean .footer-main nav.footer-group-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
}
body.everest-redesign .mountain-footer.footer-clean .footer-main nav.footer-group-content > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 16.8px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}
body.everest-redesign .mountain-footer.footer-clean .footer-contact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
}
body.everest-redesign .mountain-footer.footer-clean .footer-contact-row {
  min-height: 0;
  padding-left: 36px;
}
body.everest-redesign .mountain-footer.footer-clean .footer-contact-row dt {
  margin: 0 0 4px;
  color: #c4d3e4;
  font-size: 16.8px;
  font-weight: 500;
  line-height: 1.35;
}
body.everest-redesign .mountain-footer.footer-clean .footer-contact-row dd {
  margin: 0;
  color: #f0f6ff;
  font-size: 19.2px;
  font-weight: 400;
  line-height: 1.4;
}
body.everest-redesign .mountain-footer.footer-clean .footer-contact-icon {
  top: 2px;
  left: 0;
  width: 25px;
  height: 25px;
}
body.everest-redesign .mountain-footer.footer-clean .footer-contact-icon svg {
  width: 25px;
  height: 25px;
}
body.everest-redesign .mountain-footer.footer-clean .footer-team-link {
  display: inline-flex;
  gap: 9px;
  min-height: 36px;
  margin: 22px 0 0 36px;
  font-size: 16.8px;
  line-height: 1.4;
}
body.everest-redesign .mountain-footer.footer-clean .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  min-height: 0;
  margin-top: auto;
  padding: 24px 66px 28px 0;
  font-size: 14.4px;
  line-height: 1.5;
}
body.everest-redesign .mountain-footer.footer-clean .footer-bottom > a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}
body.everest-redesign .mountain-footer.footer-clean .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: inherit;
  line-height: inherit;
}
body.everest-redesign .mountain-footer.footer-clean .footer-legal-separator { display: none; }

@media (min-width: 768px) and (max-width: 1099px) {
  body.everest-redesign .mountain-footer.footer-clean .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 44px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-masthead { gap: 24px; }
}
@media (max-width: 767px) {
  body.everest-redesign .mountain-footer.footer-clean .footer-masthead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 22px;
    height: auto;
    min-height: 0;
    padding: 0 0 26px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-slogan {
    gap: 0;
    line-height: 1;
    letter-spacing: -.045em;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-brand {
    justify-content: flex-end;
    padding: 0;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-brand > .footer-brand-original { width: 190px; }
  body.everest-redesign .mountain-footer.footer-clean .footer-main {
    display: block;
    padding: 26px 0 20px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-main > .footer-contact-group {
    padding: 0 0 24px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-main .footer-contact-title {
    display: block;
    min-height: 0;
    margin: 0 0 22px;
    font-size: 19.2px;
    line-height: 1.35;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-contact-row {
    padding-left: 36px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-contact-list { gap: 18px; }
  body.everest-redesign .mountain-footer.footer-clean .footer-contact-row dt { font-size: 14.4px; }
  body.everest-redesign .mountain-footer.footer-clean .footer-contact-row dd { font-size: 16.8px; }
  body.everest-redesign .mountain-footer.footer-clean .footer-team-link {
    margin: 18px 0 0 36px;
    font-size: 15.6px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-main > .footer-mobile-group {
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-mobile-group > summary {
    min-height: 60px;
    margin: 0;
    padding: 15px 0;
    font-size: 19.2px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -.02em;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-main .footer-mobile-group[open] > .footer-group-content {
    gap: 0;
    padding: 0 0 15px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-main .footer-mobile-group .footer-group-content > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 9px 0;
    font-size: 16.8px;
    line-height: 1.4;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-bottom {
    display: block;
    padding: 20px 58px max(24px, env(safe-area-inset-bottom)) 0;
    font-size: 13.2px;
    line-height: 1.5;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-legal {
    display: flex;
    gap: 6px 16px;
  }
  body.everest-redesign .mountain-footer.footer-clean .footer-bottom > a {
    min-height: 44px;
    margin-top: 10px;
    font-size: inherit;
  }
}

/* The large mountain is a background layer; it never contributes to footer height. */
body.everest-redesign .mountain-footer.footer-reveal .footer-mountain-stage {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: var(--footer-viewport-width, 100vw);
  max-width: none;
  height: 100%;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}
body.everest-redesign .mountain-footer.footer-reveal .footer-masthead {
  z-index: 1;
  background: #000;
}
body.everest-redesign .mountain-footer.footer-reveal :is(.footer-main, .footer-bottom) {
  /* Local dark lettering edges stay readable throughout the mountain's brightness range. */
  text-shadow: 0 1px 1px #000, 0 -1px 1px #000, 1px 0 1px #000, -1px 0 1px #000;
  -webkit-text-stroke: .5px #000;
  paint-order: stroke fill;
}
body.everest-redesign .mountain-footer.footer-reveal .footer-main .footer-contact-icon {
  filter: drop-shadow(0 1px 1px #000);
}
body.everest-redesign .mountain-footer.footer-reveal .footer-bottom {
  position: relative;
  z-index: 1;
  background: transparent;
}
/* Half the previous day's atmospheric light, without washing the reading area. */
body.everest-redesign .mountain-footer.footer-reveal .footer-mountain-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 78%, rgb(152 215 255 / 22%) 0%, rgb(71 158 248 / 14%) 38%, transparent 74%);
  opacity: calc(.06 + var(--footer-reveal) * .94);
}
@media (prefers-reduced-motion: reduce) {
  body.everest-redesign .mountain-footer.footer-reveal .footer-mountain-stage::before { opacity: 1; }
}
