/* Compact public header and a discreet first-screen scroll cue. */
@media (min-width: 1024px) {
  body.design-v2 #main-header .cdmi-header-inner,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-header-inner {
    min-height: 136px !important;
    grid-template-columns: minmax(190px, 218px) minmax(0, 1fr) 123px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }

  body.design-v2 #main-header .cdmi-logo,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-logo {
    width: 205px !important;
    min-height: 120px !important;
  }

  body.design-v2 #main-header .cdmi-official-logo-frame,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-official-logo-frame {
    --cdmi-full-logo-width: 168px !important;
  }

  body.design-v2 #main-header .cdmi-brand-tagline,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-brand-tagline {
    margin-top: 3px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 1023px) {
  body.design-v2 #main-header .cdmi-header-inner,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-header-inner {
    min-height: 96px !important;
    height: 96px !important;
  }

  body.design-v2 #main-header .cdmi-logo,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-logo {
    width: clamp(118px, 34vw, 142px) !important;
  }

  body.design-v2 #main-header .cdmi-official-logo-frame,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-official-logo-frame {
    --cdmi-full-logo-width: clamp(116px, 32vw, 136px) !important;
  }

  body.design-v2 #main-header .cdmi-brand-tagline,
  body.design-v2 #main-header.cdmi-header-compact .cdmi-brand-tagline {
    font-size: clamp(7.5px, 1.8vw, 9px) !important;
  }

  body.design-v2 #mobile-menu-btn.cdmi-v312-header-menu {
    top: 27px !important;
  }
}

body.design-v2 .cdmi-hero-scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 16, 12, .42);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  backdrop-filter: blur(4px);
  transform: translateX(-50%);
  cursor: pointer;
  opacity: 1;
  transition: opacity .35s ease, visibility .35s ease, background-color .2s ease;
  animation: cdmi-scroll-cue 1.8s ease-in-out infinite;
}

body.design-v2 .cdmi-hero-scroll-cue:hover,
body.design-v2 .cdmi-hero-scroll-cue:focus-visible {
  background: rgba(20, 16, 12, .7);
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.design-v2 .cdmi-hero-scroll-cue svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body.design-v2 .cdmi-hero-scroll-cue.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

@keyframes cdmi-scroll-cue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@media (max-width: 700px) {
  body.design-v2 .cdmi-hero-scroll-cue {
    bottom: 13px;
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.design-v2 .cdmi-hero-scroll-cue { animation: none; }
}
