/* ============================================================
   JB Knowledge Base — Base Styles
   ============================================================ */

/* ---- Shared layout ---------------------------------------- */
.kb-archive,
.kb-single-wrap,
.kb-taxonomy-archive {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ---- Archive header --------------------------------------- */
.kb-archive__header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.25rem;
}

.kb-archive__header h1,
.kb-taxonomy-archive__title {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    line-height: 1.2;
}

/* ---- Category sections (archive) -------------------------- */
.kb-category-section {
    margin-bottom: 2.5rem;
}

.kb-category-section__title {
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
}

.kb-category-section__title a {
    text-decoration: none;
    color: inherit;
}

.kb-category-section__title a:hover {
    text-decoration: underline;
}

.kb-category-section__desc {
    color: #6b7280;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

/* ---- Article list ----------------------------------------- */
.kb-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-article-list__item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.kb-article-list__item:last-child {
    border-bottom: none;
}

.kb-article-list__link {
    font-weight: 600;
    text-decoration: none;
}

.kb-article-list__link:hover {
    text-decoration: underline;
}

.kb-article-list__excerpt {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* ---- Breadcrumb ------------------------------------------- */
.kb-breadcrumb {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.kb-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.kb-breadcrumb a:hover {
    text-decoration: underline;
    color: #374151;
}

.kb-breadcrumb__sep {
    margin: 0 0.35rem;
}

/* ---- Single article --------------------------------------- */
.kb-article__title {
    font-size: 2rem;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}

.kb-article__meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0 0 2rem;
}

.kb-article__content {
    line-height: 1.75;
}

.kb-article__content h2,
.kb-article__content h3,
.kb-article__content h4 {
    margin-top: 2rem;
}

/* ---- Related articles sidebar ----------------------------- */
.kb-related {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.kb-related__title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.kb-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-related__item {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.kb-related__item:last-child {
    border-bottom: none;
}

.kb-related__item a {
    text-decoration: none;
    font-size: 0.9rem;
}

.kb-related__item a:hover {
    text-decoration: underline;
}

/* ---- Taxonomy archive ------------------------------------- */
.kb-taxonomy-archive__header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.25rem;
}

.kb-taxonomy-archive__desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
