/* ============================================================
   KB Sidebar Links – Front-end Styles
   ============================================================ */

/* ---- "On this page" TOC area: fixed height + scroll ---- */
.kbsl-toc-wrap {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0;
    /* Thin styled scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ABD3EF #f0f0f0;
        margin-left: 10px;
}
.kbsl-toc-wrap::-webkit-scrollbar {
    width: 5px;
}
.kbsl-toc-wrap::-webkit-scrollbar-track {
    background: #f0f0f0;
}
.kbsl-toc-wrap::-webkit-scrollbar-thumb {
    background: #ABD3EF;
    border-radius: 4px;
}

/* ---- Section divider inside sidebar ---- */
.kbsl-quick-links-wrap,
.kbsl-related-articles-wrap {
    border-top: 0px solid #ccc;
    /* padding-top: 10px;
    margin-top: 10px; */
    margin-left: 10px;
}

/* ---- Section title ---- */
.kbsl-section-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.8px;
    /* text-transform: uppercase; */
    color: #0e2b5c;
    margin: 0 0 8px 0;
    padding: 0 10px;
}

/* ---- Pill group container ---- */
.kbsl-pill-group {
    display: block;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 10px 8px;
}

/* ---- Individual pill label ---- */
.kbsl-label-pill {
    display: block;
    align-items: center;
    padding: 4px 10px;
    border-radius: 5px;
    background-color: #ABD3EF;
    /* border: 1px solid #1D4972; */
        margin-bottom: 5px;
    color: #1D4972 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.8;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    /* margin-left: -10px; */
}
.kbsl-label-pill:hover {
    background-color: #1d4a72;
    color:  #ABD3EF!important;
    border-color: #ABD3EF;
    text-decoration: none !important;
}

/* ---- Related articles list ---- */
.kbsl-related-list {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ABD3EF #f0f0f0;
}
.kbsl-related-list::-webkit-scrollbar {
    width: 4px;
}
.kbsl-related-list::-webkit-scrollbar-thumb {
    background: #ABD3EF;
    border-radius: 4px;
}
.kbsl-related-item {
    margin: 2px 2px 2px 5px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.4;
    list-style-type: disc;
}
.kbsl-related-item:last-child {
    border-bottom: none;
}
.kbsl-related-item a {
    color: #006ea6;
    font-size: 14px;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.kbsl-related-item a:hover {
    color: #006EA6;
}

/* ---- Remove the old related_kb_post block that may still get
        rendered by other template calls (safety net) ---- */
.related_kb_post {
    display: none !important;
}
