.haven-christmas-fir,
.haven-christmas-lights {
  display: none !important;
  pointer-events: none;
  user-select: none;
}

/* A shared place below navigation and above each subpage's content. */
.haven-christmas-subpage-slot {
  box-sizing: border-box;
  display: none;
  position: sticky;
  top: 90px;
  z-index: 4;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px clamp(1rem, 4vw, 4rem) 0;
  justify-content: flex-end;
  pointer-events: none;
  line-height: 0;
}

@media (max-width: 1320px) {
  .haven-christmas-subpage-slot {
    top: 76px;
  }
}

.haven-christmas-active .haven-christmas-subpage-slot {
  display: flex;
}

.haven-christmas-active .haven-christmas-subpage-slot > img.haven-christmas-subpage {
  display: block !important;
  width: 120px;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 620px) {
  .haven-christmas-subpage-slot {
    padding-inline: 1rem;
  }

  .haven-christmas-active .haven-christmas-subpage-slot > img.haven-christmas-subpage {
    width: 75px;
  }
}

.haven-christmas-active .hero-grid > .haven-christmas-hero-desktop,
.haven-christmas-active .hero-grid > .haven-christmas-lights--desktop {
  position: absolute;
  display: block !important;
  top: 96px;
  right: 0;
  z-index: 3;
  width: clamp(144px, 15vw, 232px);
  height: auto;
  margin: 0;
}

header.haven-header .brand:has(> .haven-christmas-mark) {
  position: relative;
}

header.haven-header .brand > img.haven-christmas-mark {
  position: absolute;
  display: none !important;
  left: calc(100% - 12px);
  bottom: -22px;
  width: 38px !important;
  height: 19px !important;
  max-width: none;
  margin: 0;
  object-fit: contain;
  z-index: 1;
}

.haven-christmas-active header.haven-header .brand > img.haven-christmas-mark {
  display: block !important;
}

@media (max-width: 1320px) {
  header.haven-header .brand > img.haven-christmas-mark {
    left: calc(100% - 14px);
    bottom: -13px;
    width: 26px !important;
    height: 13px !important;
  }
}

@media (max-width: 960px) {
  .haven-christmas-active .hero-grid > .haven-christmas-hero-desktop,
  .haven-christmas-active .hero-grid > .haven-christmas-lights--desktop {
    display: none !important;
  }

  .haven-christmas-active .hero-featured-media > .haven-christmas-hero-mobile,
  .haven-christmas-active .hero-featured-media > .haven-christmas-lights--mobile {
    position: absolute;
    display: block !important;
    top: 0;
    right: 0;
    z-index: 2;
    width: clamp(72px, 22vw, 128px);
    height: auto;
    margin: 0;
  }
}

/* Breathe the two existing bulbs, including the glow baked into the image. */
.haven-christmas-lights,
.haven-christmas-lights * {
  pointer-events: none;
}

.haven-christmas-light,
.haven-christmas-light-dimmer {
  animation-duration: var(--bulb-duration);
  animation-delay: var(--bulb-delay);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.haven-christmas-light {
  opacity: .04;
  animation-name: haven-christmas-light-breathe;
}

.haven-christmas-light-dimmer {
  opacity: .72;
  animation-name: haven-christmas-light-dim;
}

@keyframes haven-christmas-light-breathe {
  0%, 100% { opacity: .04; }
  50% { opacity: 1; }
}

@keyframes haven-christmas-light-dim {
  0%, 100% { opacity: .72; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .haven-christmas-light,
  .haven-christmas-light-dimmer {
    animation: none;
  }
  .haven-christmas-light {
    opacity: .35;
  }
  .haven-christmas-light-dimmer {
    opacity: 0;
  }
}

/* The approved silver sprig belongs beside the logo on listing details. */
header.haven-header .brand > img.haven-christmas-mark--silver {
  left: calc(100% + 18px);
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: 140px !important;
  height: auto !important;
}

@media (max-width: 1320px) {
  header.haven-header .brand > img.haven-christmas-mark--silver {
    left: calc(100% + 12px);
    width: 80px !important;
  }
}

@media (max-width: 359px) {
  header.haven-header .brand > img.haven-christmas-mark--silver {
    left: calc(100% + 10px);
    width: 66px !important;
  }
}

