

/* .kb-hero {
  background: linear-gradient(180deg, #f0f3ff 0%, #ffffff 100%);
} */

.kb-version-badge {
  background: #1b203e;
}

.kb-version-badge__item {
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(148, 163, 184, 0.25);
}

.kb-search-wrap {
  width: 100%;
  max-width: 360px;
}

.kb-search__input {
  outline: none;
}

/* Typeahead dropdown positioning - responsive */
#search {
  position: relative;
}

#search .tt-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: 0 !important;
  width: 130% !important;
  margin-top: 15px !important;
  border-radius: 6px !important;
  max-height: auto;
}

.kb-sidebar-link.is-active {
  color: #5048e4;
}

.kb-release-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.kb-release-card__header {
  background: rgba(106, 120, 159, 0.08) !important;
  padding: 1.25rem 1.5rem;
}

.kb-release-card__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.kb-release-card__text {
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive iframes (YouTube, Vimeo, etc.) */
article iframe,
article div iframe,
article .p-16 iframe {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Responsive video elements */
article video,
article div video,
article .p-16 video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* For images that should fill the container width */
article img[style*="width"],
article div img[style*="width"],
article .kb-article-card__body img[style*="width"] {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

/* Force all images within article to be responsive - catch-all rule */
article * img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

article .img-box,
article [class*="img-box"],
article div[style*="width"],
article div[class*="w-"] {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Ensure tables are also responsive */
article table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


@media (max-width: 991.98px) {
  .kb-version-badge__item {
    padding: 0.9rem 1.1rem;
  }

  .kb-search {
    max-width: 100%;
  }

}

@media (max-width: 767.98px) {
  .kb-sidebar-card {
    padding: 1.5rem;
  }
  .kb-release-card__header,
  .kb-release-card__body,
  .kb-article-card__header,
  .kb-article-card__body,
  .kb-article-card__footer {
    padding: 1.25rem;
  }

  #search {
    width: 100%;
  }
  #search .tt-menu {
    width: 150% !important;
  }

}
