/* Webflow-styled KB Articles layout helpers (scoped under .kb-articles-page). */

/* ============================================
   KB Page Hero Padding
   ============================================ */
.section-home-hero-v1 {
  padding-top: 1.5rem;
}

  .section-home-hero-v1 > .padding-global {
    padding-top: 4rem;
  }

@media screen and (max-width: 991px) {
  .section-home-hero-v1 {
    padding-top: 0;
  }

    .section-home-hero-v1 > .padding-global {
      padding-top: 4rem;
    }
}

/* ============================================
   KB Articles Page Hero Padding (standalone article pages)
   ============================================ */
.kb-articles-page {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

  .kb-articles-page > .padding-global {
    padding-top: 4rem;
  }

@media screen and (max-width: 991px) {
  .kb-articles-page {
    padding-top: 0;
  }

    .kb-articles-page > .padding-global {
      padding-top: 4rem;
    }
}

/* ============================================
   KB Search Styles
   ============================================ */
:root {
  --colors--kb-resource: var(--colors--grey, #7B7B7B);
}

/* --- KB search icon inside the input --- */
#searchForm .kb-search-input-wrap {
  position: relative;
  width: 100%;
  max-width: none;
}

#searchForm .kb-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#searchForm .kb-search-input {
  width: 100%;
  padding-left: 2.75rem;
}

/* Search bar/button tweaks */
#searchForm .form-input {
  background-color: #FAFAFA;
  border: none;
  border-radius: 6px 0 0 6px;
}

  #searchForm .form-input:focus,
  #searchForm .form-input:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
  }

#searchForm .button {
  border-radius: 6px;
  min-height: 3rem;
}

#searchForm .form-input,
#searchForm .button {
  height: 3rem;
}

#searchForm .button {
  margin-left: 0;
}

/* Remove any double border/overlap when input and button sit flush */
#searchForm .form-input {
  border-right: none;
}

#searchForm .kb-search-button-wrap {
  background-color: #FAFAFA;
  display: flex;
  align-items: stretch;
  border-radius: 0 6px 6px 0;
}

  #searchForm .kb-search-button-wrap .button {
    border-radius: 6px;
  }

/* KB search layout (used on /kb and /kb/articles) */
.kb-search-outer {
  padding-left: 20px;
  padding-right: 20px;
}

.kb-search-row {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

#searchForm .button {
  white-space: nowrap;
}

/* Webflow-styled KB Articles layout helpers (scoped under .kb-articles-page). */

:root {
  --colors--kb-resource: var(--colors--grey, #7B7B7B);
}

/* Legacy scoped rules for the articles page grid/layout */
.kb-articles-page .kb-articles-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.kb-articles-page .kb-articles-grid {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) minmax(0, 14rem);
  gap: 2rem;
}

@media screen and (max-width: 991px) {
  .kb-articles-page .kb-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky blocks: header stays visible; inner list scrolls only when needed. */
.kb-articles-page .kb-sticky {
  position: sticky;
  top: 6rem;
  align-self: start;
}

@media screen and (max-width: 991px) {
  .kb-articles-page .kb-sticky {
    position: static;
    top: auto;
  }
}

.kb-articles-page .kb-sticky-card {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  overflow: visible;
  box-shadow: none;
}

/* Panel treatment: use flex so header stays in the sticky panel and only the body scrolls. */
.kb-articles-page .kb-sticky-card--panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6rem);
}

.kb-articles-page .kb-sticky-card__header {
  padding: 0;
  border-bottom: 1px solid #ECECEC;
  flex: 0 0 auto;
}

.kb-articles-page .kb-sticky-card__body {
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 1rem;
  flex: 1 1 auto;
  /* Hide scrollbars while keeping scroll behavior */
  -ms-overflow-style: none; /* IE 10+ */
  scrollbar-width: none; /* Firefox */
}

  .kb-articles-page .kb-sticky-card__body::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

/* Default sidebar link text: muted grey; use existing grey var if available, otherwise fall back.
   NOTE: don't force the inner <div> color, so selected link color can take effect. */
.kb-articles-page nav .read-more-link {
  color: var(--colors--kb-resource, #7B7B7B);
}

  .kb-articles-page nav .read-more-link > div {
    color: inherit;
  }

  .kb-articles-page nav .read-more-link.is-selected,
  .kb-articles-page nav .read-more-link.is-selected > div {
    color: var(--colors--blue);
    font-weight: 400;
  }

/* In the Resources list, "Show More" should always be blue. */
.kb-articles-page nav .show-more-btn,
.kb-articles-page nav .show-more-btn > div {
  color: var(--colors--blue);
}

/* ---- Right-side Table of Contents ---- */

/* Default TOC text */
.kb-articles-page aside .kb-sticky-card__body a {
  color: var(--colors--kb-resource, #7B7B7B);
  text-decoration: none;
}

/* Selected TOC section: blue + not bold */
.kb-articles-page aside .kb-sticky-card__body #toc a.active,
.kb-articles-page aside .kb-sticky-card__body #toc a[aria-current="true"],
.kb-articles-page aside .kb-sticky-card__body #toc li.active > a {
  color: var(--colors--blue) !important;
  font-weight: 400;
  background: transparent;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Remove bullets from all TOC lists, keep a subtle indent */
.kb-articles-page aside .kb-sticky-card__body ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

  .kb-articles-page aside .kb-sticky-card__body ul ul {
    padding-left: 0.75rem;
    margin-top: 0.5rem;
  }

    /* Nested subsections slightly smaller */
    .kb-articles-page aside .kb-sticky-card__body ul ul a {
      font-size: 0.95rem;
    }

/* Selected TOC section: blue + not bold */
.kb-articles-page aside .kb-sticky-card__body a.active,
.kb-articles-page aside .kb-sticky-card__body a.is-active,
.kb-articles-page aside .kb-sticky-card__body li.active > a {
  color: var(--colors--blue) !important;
  font-weight: 400;
  background: rgba(51, 136, 255, 0.08);
  border-radius: 4px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

/* Don't tint every nested item in a section; only the active link should be blue. */
.kb-articles-page aside .kb-sticky-card__body li.active ul a {
  color: inherit !important;
}

.kb-articles-page aside .kb-sticky-card__body li.active {
  list-style: none;
}

  .kb-articles-page aside .kb-sticky-card__body li.active::marker {
    content: "";
  }

.kb-articles-page aside .kb-sticky-card__body li.active {
  padding-left: 0;
}

/* Content card */
.kb-articles-page .kb-article-card {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

@media screen and (max-width: 767px) {
  .kb-articles-page .kb-article-card {
    padding: 0;
  }
}

/* Let markdown/article HTML breathe with Webflow typography */
.kb-articles-page .kb-article-body {
  color: var(--colors--grey);
}

  .kb-articles-page .kb-article-body h1,
  .kb-articles-page .kb-article-body h2,
  .kb-articles-page .kb-article-body h3,
  .kb-articles-page .kb-article-body h4 {
    color: var(--colors--black);
  }

/* --- Breadcrumb separator icon (override Webflow default 0.5rem circle) --- */
.kb-articles-page .blog-meta-info-circle {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
}

  .kb-articles-page .blog-meta-info-circle svg {
    width: 20px;
    height: 20px;
    display: block;
  }

/* KB category cards (/kb) */
.kb-category-card {
  text-align: center;
  align-items: center;
}

  .kb-category-card h3,
  .kb-category-card .text-size-medium-grey {
    text-align: center;
  }

  .kb-category-card .read-more-link {
    justify-content: center;
    text-align: center;
  }

    .kb-category-card .read-more-link > div,
    .kb-category-card .read-more-link > div * {
      text-align: center;
    }

.kb-category-icon {
  max-width: 64px;
  margin-left: auto;
  margin-right: auto;
}

.kb-category-card .read-more-link {
  margin-left: auto;
  margin-right: auto;
}

.kb-category-card h3.text-size-large {
  display: block;
  width: 100%;
  text-align: center;
}

/* KB category grid (/kb) */
.kb-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media screen and (max-width: 991px) {
  .kb-category-grid {
    grid-template-columns: 1fr;
  }
}

/* KB category grid (/kb)
   Webflow's `.w-layout-grid` sets 2 columns by default, so we override using a more specific selector. */
.w-layout-grid.kb-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media screen and (max-width: 991px) {
  .w-layout-grid.kb-category-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure category description stays centered even if other rules override it */
.product-card-content-v1.kb-category-card .text-size-medium-grey {
  text-align: center !important;
}

.product-card-content-v1.kb-category-card > * {
  text-align: center;
}

/* KB category card: make description span full row width */
.product-card-content-v1.kb-category-card .text-size-medium-grey {
  width: 100%;
}

/* Make entire KB category card clickable */
.kb-category-card-link {
  display: block;
}

  .kb-category-card-link:focus-visible {
    outline: 2px solid var(--colors--blue);
    outline-offset: 4px;
    border-radius: 16px;
  }

  .kb-category-card-link:hover {
    opacity: 0.95;
  }

/* Clickable KB category cards (container-driven) */
.kb-category-card-container[data-href] {
  cursor: pointer;
}

  .kb-category-card-container[data-href]:focus-visible {
    outline: 2px solid var(--colors--blue);
    outline-offset: 4px;
    border-radius: 16px;
  }

/* Full-card clickable category cards without JS (stretched-link pattern) */
.kb-category-card-container {
  position: relative;
}

.kb-category-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
  color: inherit;
}

/* Ensure visible content sits above the overlay where needed */
.kb-category-card {
  position: relative;
  z-index: 1;
}

.kb-category-showall-link {
  position: relative;
  z-index: 3;
}

.kb-category-stretched-link:focus-visible {
  outline: 2px solid var(--colors--blue);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Ensure the stretched-link overlay captures clicks over non-interactive content (e.g., icon) */
.kb-category-stretched-link {
  z-index: 2;
}

/* Keep explicit links above the overlay */
.kb-category-showall-link {
  z-index: 3;
}

/* Card content should not sit above the overlay */
.kb-category-card {
  z-index: 1;
}

/* KB category card: vertically center contents */
.product-card-content-v1.kb-category-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

  /* KB category card: keep descriptions aligned by normalizing height */
  .product-card-content-v1.kb-category-card .text-size-medium-grey {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

/* ============================================
   KB Article Body - Markdown Content Spacing
   Only applies to parsed markdown content (#entry)
   ============================================ */
.kb-articles-page #entry p {
  margin-bottom: 1rem;
}

.kb-articles-page #entry h1,
.kb-articles-page #entry h2,
.kb-articles-page #entry h3,
.kb-articles-page #entry h4,
.kb-articles-page #entry h5,
.kb-articles-page #entry h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Remove top margin from first heading if it's the first child */
.kb-articles-page #entry > h1:first-child,
.kb-articles-page #entry > h2:first-child,
.kb-articles-page #entry > h3:first-child,
.kb-articles-page #entry > h4:first-child,
.kb-articles-page #entry > h5:first-child,
.kb-articles-page #entry > h6:first-child {
  margin-top: 0;
}

/* Remove bottom margin from last paragraph */
.kb-articles-page #entry > p:last-child {
  margin-bottom: 0;
}

var {
  margin: 0;
  border: 1px solid #ddd;
  background-color: #fcfcfc;
  border-radius: 3px;
  max-width: 100%;
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  font-family: monospace;
  padding: 0 5px;
}
