/* stylelint-disable no-descending-specificity, function-linear-gradient-no-nonstandard-direction */
#toc-container {
  max-width: 282px;
  margin-bottom: 0;
}

#toc-list .kb-nav-item__height-transition.kb-height-transition {
  overflow: scroll;
}

#toc-list .kb-badge.kb-badge-new {
  margin-right: 8px;
}

#toc-wrapper.fixed {
  position: fixed !important;
  top: 20px;
  min-width: 320px;
}

.fadeOut {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 300ms, opacity 300ms;
}

.fadeIn {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s linear 0s, opacity 300ms;
}

#toc-list {
  margin-left: 0;
  max-height: 600px;
  overflow: auto;
  padding-left: 12px;
  position: relative;
  left: -12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#toc-list > li > .kb-nav-item__height-transition.kb-height-transition {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#toc-list::-webkit-scrollbar,
#toc-list > li > .kb-nav-item__height-transition.kb-height-transition::-webkit-scrollbar {
  appearance: none;
  display: none;
}

#toc-list ul {
  margin-left: 0;
}

#toc-container h4 {
  font-size: 20px;
  color: #33475b;
  padding-bottom: 0.25em;
  margin: 0;
  border-bottom: 1px solid #ddd;
  position: relative;
  left: -12px;
  padding-left: 12px;
}

.kb-nav li {
  max-width: 282px;
}

/* Mobile */

.toc-mobile#toc-container {
  max-width: unset;
  top: unset;
  bottom: 0;
  right: 0;
  left: 0;
  background: #f5f8fa;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-flow: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: fixed;
  z-index: 9;
}

.toc-mobile h4 {
  border-bottom: 0;
  text-align: center;
  box-shadow: 0 -1px 5px 0 rgba(45, 62, 80, 0.12);
  width: 100%;
  padding: 12px 0;
}

.toc-mobile #toc-list {
  margin-top: 0;
  max-height: 400px;
  overflow: auto;
}

/*
 * Just for stage
 */
.login-cta-container {
  display: none !important;
}

/*
 *
 */

nav#toc-container {
  position: relative;
  margin-left: 30px;
}

#toc-container::after {
  transition: height 0.3s ease;
  content: "";
  display: block;
  height: 0px;
  width: 100%;
  border-bottom: 1px solid #ddd;
  left: -12px;
  bottom: 0;
  position: absolute;
}

#toc-container:not(.bottom-scrolled)::after {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  border-radius: 3px;
  width: 100%;
  position: absolute;
  bottom: 0px;
  left: -12px;
}

#toc-container::before {
  transition: height 0.3s ease;
  content: "";
  display: block;
  height: auto;
}

#toc-container:not(.top-scrolled)::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  border-radius: 3px;
  width: 100%;
  position: absolute;
  top: 30px;
  left: -12px;
  z-index: 1;
}

.sidebar-cta-wrapper {
  margin-top: 15px;
  margin-left: 18px;
  padding-right: 18px;
}

.sidebar-cta-wrapper img.hs-cta-img {
  height: auto;
  width: 282px;
}

span.cta-inner {
  display: block;
  margin: 0 auto;
  float: none;
  width: fit-content;
}

.mobile-cta-wrapper {
  display: none;
}

.toc-mobile .mobile-cta-wrapper {
  display: block;
}

@media screen and (max-height: 800px) {
  #toc-list {
    max-height: calc(100vh - 350px);
  }
}

@media screen and (max-width: 768px) {
  nav#toc-container {
    margin-left: 0;
  }

  #toc-container h4 {
    left: 0;
    padding-left: 0;
  }

  #toc-container::before {
    top: 48px !important;
    left: 0 !important;
  }

  #toc-container::after {
    left: 0 !important;
    height: 20px !important;
  }

  .sidebar-cta-wrapper {
    display: none;
  }
}
