@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

.kb-single-wrap {
    font-family: 'Poppins', sans-serif !important;
    background: #F5FBFD;
    min-height: 100vh;
    overflow: visible !important;
}

/* ── BREADCRUMB ── */
.kb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 0.875rem 2rem;
    font-size: 12px;
    background: #fff;
    border-bottom: 1px solid #edf0f4;
    border-top: 1px solid #edf0f4;
    font-family: 'Poppins', sans-serif !important;
}

#kb-sidebar-search-input { border-radius: 12px !important; }

.kb-breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f4f8;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400;
    color: #5a6478;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.kb-breadcrumb-pill:hover { background: #E6F1FB; color: #185FA5; text-decoration: none; }
.kb-breadcrumb-pill.active {
    background: #185FA5;
    color: #fff;
    font-weight: 500;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.8;
    vertical-align: middle;
}
.kb-breadcrumb-pill i { font-size: 12px; font-family: 'tabler-icons' !important; }
.kb-breadcrumb-sep {
    font-size: 11px;
    color: #c5cdd8;
    font-family: 'tabler-icons' !important;
    margin: 0 1px;
    flex-shrink: 0;
}

/* ── LAYOUT ── */
.kb-single-layout {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
    min-height: calc(100vh - 50px);
    overflow: visible !important;
}

/* ── SIDEBAR ── */
.kb-sidebar {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    border-right: 1px solid #edf0f4;
    background: #fff;
    padding: 1.25rem 0 2rem;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    font-family: 'Poppins', sans-serif !important;
    align-self: start !important;
}

/* Sidebar search */
.kb-sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 1rem 1.25rem;
    background: #f4f6f9;
    border: 1.5px solid #edf0f4;
    border-radius: 16px;
    padding: 8px 14px;
    transition: border-color 0.15s;
}
.kb-sidebar-search:focus-within { border-color: #185FA5; background: #fff; }
.kb-sidebar-search i { font-size: 14px; color: #9aa3b0; flex-shrink: 0; font-family: 'tabler-icons' !important; }
.kb-sidebar-search input {
    border: none; outline: none; background: transparent;
    font-size: 13px; color: #1a1a2e; width: 100%;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 400; min-width: 0;
}
.kb-sidebar-search input::placeholder { color: #b0b8c5; }

.kb-nav-group { border-bottom: 1px solid #f0f2f5; }
.kb-nav-group-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 10px 1rem;
    background: none; border: none; cursor: pointer;
    font-size: 12px; font-weight: 700 !important; color: #1a1a2e;
    font-family: 'Poppins', sans-serif !important;
    text-align: left; transition: background 0.1s;
}
.kb-nav-group-btn:hover { background: #f4f6f9; }
.kb-nav-chevron { font-size: 12px; color: #9aa3b0; transition: transform 0.2s; flex-shrink: 0; font-family: 'tabler-icons' !important; }
.kb-nav-group.open > .kb-nav-group-btn .kb-nav-chevron,
.kb-nav-subgroup.open > .kb-nav-subgroup-btn .kb-nav-chevron { transform: rotate(90deg); }
.kb-nav-group-items { display: none; }
.kb-nav-group.open > .kb-nav-group-items { display: block; }

.kb-nav-subgroup { border-top: 1px solid #f7f8fa; }
.kb-nav-subgroup-btn {
    display: flex; align-items: center; gap: 6px;
    width: 100%; padding: 8px 1rem 8px 1.5rem;
    background: none; border: none; cursor: pointer;
    font-size: 11px; font-weight: 600 !important; color: #4a5568;
    font-family: 'Poppins', sans-serif !important;
    text-align: left; transition: background 0.1s;
}
.kb-nav-subgroup-btn i { font-size: 12px; color: #9aa3b0; font-family: 'tabler-icons' !important; }
.kb-nav-subgroup-btn:hover { background: #f4f6f9; }
.kb-nav-subgroup-btn .kb-nav-chevron { margin-left: auto; }
.kb-nav-subgroup-items { display: none; }
.kb-nav-subgroup.open > .kb-nav-subgroup-items { display: block; }

.kb-nav-item {
    display: flex; align-items: flex-start; gap: 6px;
    padding: 6px 1rem 6px 2rem;
    font-size: 12px; font-weight: 400 !important;
    font-family: 'Poppins', sans-serif !important;
    color: #4a5568; text-decoration: none; line-height: 1.4;
    transition: background 0.1s, color 0.1s;
    border-left: 2px solid transparent;
}
.kb-nav-item i { font-size: 11px; color: #b0b8c5; flex-shrink: 0; margin-top: 2px; font-family: 'tabler-icons' !important; }
.kb-nav-item:hover { background: #f0f6fd; color: #185FA5; text-decoration: none; }
.kb-nav-item.active { background: #E6F1FB; color: #185FA5; font-weight: 600 !important; border-left-color: #185FA5; }
.kb-nav-item.active i { color: #185FA5; }

/* ── MAIN ── */
.kb-single-main {
    padding: 24px;
    min-width: 0;
    background: #fff;
    min-height: 100vh;
    border-right: 1px solid #edf0f4;
    font-family: 'Poppins', sans-serif !important;
    align-self: start;
}

.kb-article-category-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #E6F1FB; color: #185FA5;
    font-size: 11px; font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 1rem;
}

.kb-article-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
    font-weight: 700 !important; color: #0f172a !important;
    line-height: 1.3 !important; margin: 0 0 1rem !important;
    letter-spacing: -0.02em !important;
}

.kb-article-meta {
    display: flex; align-items: center; gap: 1.25rem;
    font-size: 12px; font-family: 'Poppins', sans-serif !important;
    font-weight: 400 !important; color: #8a94a6;
    margin-bottom: 2rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid #edf0f4;
}
.kb-article-meta span { display: flex; align-items: center; gap: 5px; }
.kb-article-meta i { font-size: 13px; font-family: 'tabler-icons' !important; }

/* Article content */
.kb-article-content {
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important; font-weight: 400 !important;
    line-height: 1.8 !important; color: #334155 !important;
}
.kb-article-content * { font-family: 'Poppins', sans-serif !important; }
.kb-article-content [class^="ti-"],
.kb-article-content [class*=" ti-"],
.kb-article-content .ti { font-family: 'tabler-icons' !important; }
.kb-article-content h1, .kb-article-content h2,
.kb-article-content h3, .kb-article-content h4 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important; color: #0f172a !important;
}
.kb-article-content h2 { font-size: 1.2rem !important; margin: 2.5rem 0 1rem !important; padding-bottom: 0.5rem !important; border-bottom: 1px solid #edf0f4 !important; }
.kb-article-content h3 { font-size: 1rem !important; margin: 2rem 0 0.75rem !important; }
.kb-article-content p { margin: 0 0 1.25rem; }
.kb-article-content a { color: #185FA5; text-decoration: underline; }
.kb-article-content ul, .kb-article-content ol { padding-left: 1.5rem; margin: 0 0 1.25rem; }
.kb-article-content li { margin-bottom: 0.4rem; }
.kb-article-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.kb-article-content code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px 7px; font-size: 13px; color: #185FA5; font-family: monospace !important; }
.kb-article-content pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.25rem 0; }
.kb-article-content pre code { background: none; border: none; color: inherit; padding: 0; font-size: 14px; font-family: monospace !important; }
.kb-article-content blockquote { border-left: 4px solid #185FA5; background: #E6F1FB; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0; color: #185FA5; }
.kb-article-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 14px; }
.kb-article-content th { background: #f8fafc; font-weight: 700 !important; color: #1a1a2e; padding: 10px 14px; border: 1px solid #edf0f4; text-align: left; }
.kb-article-content td { padding: 10px 14px; border: 1px solid #edf0f4; }
.kb-article-content tr:hover td { background: #f8fafc; }

/* Prev/Next */
.kb-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #edf0f4; }
.kb-nav-arrow { display: flex; align-items: center; gap: 12px; padding: 1rem 1.25rem; border: 1px solid #edf0f4; border-radius: 10px; text-decoration: none; color: inherit; background: #f8fafc; transition: border-color 0.15s, background 0.15s; font-family: 'Poppins', sans-serif !important; }
.kb-nav-arrow:hover { border-color: #185FA5; background: #f0f6fd; text-decoration: none; color: inherit; }
.kb-nav-arrow i { font-size: 18px; color: #185FA5; flex-shrink: 0; font-family: 'tabler-icons' !important; }
.kb-nav-arrow span { font-size: 10px; font-weight: 500 !important; color: #8a94a6; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 3px; font-family: 'Poppins', sans-serif !important; }
.kb-nav-arrow strong { font-size: 12px; font-weight: 600 !important; color: #1a1a2e; display: block; line-height: 1.4; font-family: 'Poppins', sans-serif !important; }
.kb-nav-next { justify-content: flex-end; text-align: right; }

/* Helpful */
.kb-helpful { margin-top: 2.5rem; padding: 1.5rem; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 12px; text-align: center; font-family: 'Poppins', sans-serif !important; }
.kb-helpful p { font-size: 14px; font-weight: 500 !important; color: #1a1a2e; margin-bottom: 1rem; font-family: 'Poppins', sans-serif !important; }
.kb-helpful-btns { display: flex; gap: 10px; justify-content: center; }
.kb-helpful-btn { display: flex; align-items: center; gap: 6px; padding: 8px 20px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: 13px; font-family: 'Poppins', sans-serif !important; font-weight: 500 !important; color: #4a5568; cursor: pointer; transition: all 0.15s; }
.kb-helpful-btn:hover { border-color: #185FA5; color: #185FA5; background: #E6F1FB; }
.kb-helpful-btn:disabled { opacity: 0.5; cursor: default; }
.kb-helpful-thanks { font-size: 13px; color: #1D9E75; font-weight: 500 !important; margin-top: 0.75rem; margin-bottom: 0; font-family: 'Poppins', sans-serif !important; }

/* ── TOC ── */
.kb-toc {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 24px;
    width: 320px !important;
    align-self: start !important;
}
.kb-toc-inner { background: #fff; border: 1px solid #edf0f4; border-radius: 12px; padding: 1.25rem; }
.kb-toc-label { font-family: 'Poppins', sans-serif !important; font-size: 10px; font-weight: 700 !important; color: #185FA5; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #edf0f4; }
.kb-toc-list { list-style: none; padding: 0; margin: 0; }
.kb-toc-list li { margin-bottom: 1px; }
.kb-toc-list li.kb-toc-sub { padding-left: 0.75rem; }
.kb-toc-list a { font-family: 'Poppins', sans-serif !important; font-size: 12px; font-weight: 400 !important; color: #6b7585; text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; border-left: 2px solid transparent; transition: all 0.15s; line-height: 1.4; }
.kb-toc-list a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #c5cdd8; flex-shrink: 0; transition: background 0.15s; }
.kb-toc-list a:hover { color: #185FA5; background: #f0f6fd; }
.kb-toc-list a:hover::before { background: #185FA5; }
.kb-toc-list a.active { color: #185FA5; font-weight: 600 !important; background: #E6F1FB; border-left-color: #185FA5; }
.kb-toc-list a.active::before { background: #185FA5; }

/* ── OVERFLOW FIX za sticky ── */
#main, #content, .site-content, .entry-content,
.kb-single-wrap, .kb-single-layout {
    overflow: visible !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .kb-single-layout { grid-template-columns: 240px 1fr; }
    .kb-toc { display: none !important; }
    .kb-single-main { padding: 2rem; }
}
@media (max-width: 768px) {
    .kb-single-layout { grid-template-columns: 1fr; }
    .kb-sidebar { position: relative !important; height: auto !important; max-height: 260px; border-right: none; border-bottom: 2px solid #edf0f4; order: -1; }
    .kb-single-main { padding: 1.5rem 1rem; order: 0; border-right: none; }
    .kb-breadcrumb { padding: 0.75rem 1rem; gap: 3px; margin-top: 48px; }
    .kb-breadcrumb-pill { font-size: 11px; padding: 3px 10px; }
    .kb-breadcrumb-pill.active { max-width: 160px; }
    .kb-article-nav { grid-template-columns: 1fr; }
    .kb-toc { display: none !important; }
}
@media (max-width: 480px) {
    .kb-article-title { font-size: 1.2rem !important; }
    .kb-single-main { padding: 1rem 0.75rem; }
    .kb-breadcrumb-pill.active { max-width: 120px; }
}

.kb-nav-group[data-slug="past-releases"] { display: none !important; }
[class^="ti-"], [class*=" ti-"], .ti { font-family: 'tabler-icons' !important; font-style: normal !important; }

.kb-single-layout {
    height: 100% !important;
}

.kb-single-wrap {
    height: auto !important;
}

.kb-single-wrap {
    display: flex;
    flex-direction: column;
}

.kb-single-layout {
    flex: 1;
    min-height: 0;
}