/*
 * KNOWVERSE public-tool product promotion banner.
 * The banner sits directly below the 72px canonical site header.
 */
.promo-banner {
  position: sticky;
  top: 72px;
  z-index: 900;
  min-height: 76px;
  overflow: hidden;
  background: #0B1E3D;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 30, 61, .12);
}

.promo-banner-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 82px;
}

.promo-track {
  position: relative;
  min-height: 76px;
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 0;
  color: #fff;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.promo-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.promo-product-copy {
  min-width: 0;
}

.promo-product-name {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.promo-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 100px;
  background: #16B3C6;
  color: #04262C;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.promo-product-tagline {
  display: block;
  overflow: hidden;
  color: #B9C8DC;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-cta {
  flex: 0 0 auto;
  color: #76DCE7;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.promo-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.promo-control:hover,
.promo-control:focus-visible {
  background: rgba(255, 255, 255, .15);
}

.promo-prev {
  left: 28px;
}

.promo-next {
  right: 28px;
}

.promo-dots {
  position: absolute;
  right: 18px;
  bottom: 6px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.promo-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
}

.promo-dot[aria-current="true"] {
  background: #76DCE7;
}

@media (max-width: 700px) {
  .promo-banner,
  .promo-banner-inner,
  .promo-track {
    min-height: 88px;
  }

  .promo-banner-inner {
    padding: 0 52px;
  }

  .promo-slide {
    display: block;
    padding: 12px 4px 16px;
  }

  .promo-product-name,
  .promo-product-tagline,
  .promo-cta {
    font-size: 12px;
  }

  .promo-product-name {
    font-size: 13px;
  }

  .promo-product-tagline {
    margin-bottom: 5px;
  }

  .promo-prev {
    left: 10px;
  }

  .promo-next {
    right: 10px;
  }

  .promo-dots {
    right: 50%;
    bottom: 5px;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-slide {
    transition: none;
  }
}

@media print {
  .promo-banner {
    display: none !important;
  }
}
