/* HLSEC article reader adjustment — scoped to article shells. */
body.hlsec-knowledge-single .hlsec-article-hero {
  box-sizing: border-box;
  width: min(100%, 1194px) !important;
  max-width: 100% !important;
  margin: 0 auto 24px !important;
  padding-top: 8px !important;
}
body.hlsec-knowledge-single .hlsec-article-hero .hlsec-article-title {
  max-width: 100%;
  margin: 12px 0 20px !important;
  font-size: clamp(1.75rem, 2.8vw, 2.875rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
body.hlsec-knowledge-single .hlsec-article-hero .hlsec-breadcrumb {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.hlsec-knowledge-single .hlsec-toc-inner a {
  border-radius: 0 6px 6px 0;
  transition: color .15s, background-color .15s, border-color .15s;
}
body.hlsec-knowledge-single .hlsec-toc-inner a.hlsec-toc-active,
body.hlsec-knowledge-single .hlsec-toc-inner a[aria-current="location"] {
  color: #b83f17 !important;
  background: rgba(252, 91, 4, .09);
  border-left: 3px solid var(--hl-orange, #fc5b04);
  padding-left: 11px;
  font-weight: 700;
}
body.hlsec-knowledge-single .hlsec-toc-inner a.toc-h3.hlsec-toc-active {
  padding-left: 23px;
}
body.hlsec-knowledge-single .hlsec-toc-inner a:focus-visible {
  outline: 2px solid var(--hl-orange, #fc5b04);
  outline-offset: 2px;
}
@media (min-width: 1181px) {
  body.hlsec-knowledge-single .hlsec-single-shell .hlsec-doc-layout > aside.hlsec-toc {
    position: sticky !important;
    top: calc(var(--hl-header-height, 82px) + var(--wp-admin--admin-bar--height, 0px) + 16px) !important;
    align-self: start !important;
    min-width: 0;
  }
  body.hlsec-knowledge-single .hlsec-single-shell .hlsec-doc-layout > aside.hlsec-toc > .hlsec-toc-inner {
    box-sizing: border-box;
    position: static !important;
    max-height: calc(100vh - var(--hl-header-height, 82px) - var(--wp-admin--admin-bar--height, 0px) - 40px) !important;
    max-height: calc(100dvh - var(--hl-header-height, 82px) - var(--wp-admin--admin-bar--height, 0px) - 40px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}
@media (max-width: 1180px) {
  body.hlsec-knowledge-single .hlsec-single-shell .hlsec-doc-layout > aside.hlsec-toc {
    position: static !important;
    top: auto !important;
  }
  body.hlsec-knowledge-single .hlsec-single-shell .hlsec-doc-layout > aside.hlsec-toc > .hlsec-toc-inner {
    position: static !important;
    max-height: min(55vh, 24rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.hlsec-knowledge-single .hlsec-toc-inner a { transition: none; }
}

/* Default reading layout: contents on the left, article on the right. */
@media (min-width: 1181px) {
  body.hlsec-blog-single .hlsec-doc-layout--blog:not(.hlsec-doc-layout--no-toc) {
    grid-template-columns: minmax(230px, 300px) minmax(0, 860px) !important;
  }
  body.hlsec-blog-single .hlsec-doc-layout--blog > .hlsec-toc {
    grid-column: 1;
    grid-row: 1;
  }
  body.hlsec-blog-single .hlsec-doc-layout--blog > .hlsec-single-content {
    grid-column: 2;
    grid-row: 1;
  }
}
