/* Scoped to the archive and reusable BlogPost Summary cards. */
.kb-blog,
.kb-post {
    --kb-plum: #78235f;
    --kb-ink: #382333;
    --kb-muted: #786c75;
    --kb-line: #e9dfe5;
    --kb-paper: #fbf8fa;
    --kb-rose: #f4eaf0;
    font-family: Estedad, sans-serif;
    color: var(--kb-ink);
    line-height: 1.9;
    overflow-wrap: anywhere;
}
.kb-blog { background: var(--kb-paper); padding-bottom: 1px; }
.kb-blog *, .kb-post * { box-sizing: border-box; }
.kb-blog a, .kb-post a { text-decoration: none; }
.kb-blog :is(a, button, input, select):focus-visible,
.kb-post a:focus-visible { outline: 3px solid #b566a0; outline-offset: 4px; }
.kb-blog :is(h1, h2, h3, p), .kb-post :is(h2, p) { margin: 0; }
.kb-shell { width: min(78rem, calc(100% - 3rem)); margin-inline: auto; }

.kb-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: radial-gradient(ellipse at 12% 45%, #97567d55, transparent 48%), linear-gradient(115deg, #311a30, #602047 65%, #78235f);
}
.kb-hero::before,
.kb-hero::after {
    position: absolute;
    content: "";
    z-index: -1;
    width: 38rem;
    aspect-ratio: 1;
    border: 1px solid #ffffff12;
    border-radius: 50%;
    left: -8rem;
    top: -16rem;
}
.kb-hero::after { width: 48rem; left: -13rem; top: -21rem; }
.kb-hero-image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.kb-breadcrumb { display: flex; gap: .8rem; padding-top: 1.5rem; font-size: .78rem; color: #e0c6d8; }
.kb-breadcrumb a { color: #f8eef4; }
.kb-breadcrumb a:hover { text-decoration: underline; }
.kb-hero-content {padding: 8rem 5.75rem 10rem 5.75rem; }
.kb-eyebrow {
    margin-top: 1rem !important;
    font-size: 1rem !important;
    color: #f4e635 !important;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .78rem;
    font-weight: 600;
}
.kb-hero .kb-eyebrow { color: #edcade; }
.kb-eyebrow > span { width: .45rem; height: .45rem; border-radius: 50%; background: #d9ae85; box-shadow: 0 0 0 5px #d9ae8515; }
.kb-hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 4.3rem); font-weight: 850; line-height: 1.4; margin-block: .65rem .35rem; }
.kb-hero .kb-hero-lead { color: #f5e3ef; font-size: clamp(1.15rem, 2vw, 1.65rem); font-weight: 650; }
.kb-hero .kb-hero-description { color: #d9c1d2; font-size: .92rem; line-height: 2.2;}
.kb-hero-link { display: inline-flex; align-items: center; gap: 1rem; color: #f5d2a8; font-size: .8rem; margin-top: 1.5rem; }
.kb-hero-link:hover { color: #fff; }
.kb-hero-link span { font-size: 1.25rem; }
.kb-hero-note { position: relative; padding: 1.8rem 2rem; border: 1px solid #ffffff24; border-radius: 1.5rem 1.5rem 4rem 1.5rem; background: #ffffff08; transform: rotate(-3deg); box-shadow: 0 1.5rem 4rem #1d0a181a; }
.kb-note-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; color: #e7c3a0; background: #ffffff0b; border: 1px solid #ffffff24; border-radius: 1rem; font-size: 1.3rem; }
.kb-note-rule { display: block; height: 1px; width: 3rem; background: #dbb78e; margin-block: 1.5rem 1rem; }
.kb-hero-note p { color: #e5cddd; font-size: 1.5rem; line-height: 1.9; }
.kb-hero-note strong { color: #fff; font-weight: 700; }
.kb-note-caption { display: block; color: #ccacbf; font-size: .7rem; margin-top: 1rem; }

.kb-main { position: relative; padding-bottom: 2rem; }
.kb-search { position: relative; display: flex; align-items: end; gap: 1rem; margin-top: -2.5rem; padding: 1rem; background: #fff; border: 1px solid var(--kb-line); border-radius: 1.25rem; box-shadow: 0 .65rem 2rem #47213b0a; scroll-margin-top: 2rem; }
.kb-search label { display: block; font-size: .78rem; font-weight: 650; margin-bottom: .5rem; }
.kb-search-field { flex: 1; min-width: 0; }
.kb-search-input { position: relative; }
.kb-search-input > i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: #99788d; pointer-events: none; }
.kb-search input[type="search"],
.kb-search select { width: 100%; min-height: 3.15rem; border: 1px solid var(--kb-line); border-radius: .75rem; background-color: #fcfafb; font: inherit; font-size: .8rem; color: var(--kb-ink); padding: .7rem 1rem; }
.kb-search input[type="search"] { padding-inline-start: 2.8rem; }
.kb-search input::placeholder { color: #8b7c86; opacity: 1; }
.kb-sort-field { position: relative; flex: 0 0 11.5rem; }
.kb-search select { appearance: none; padding-inline-end: 2.5rem; }
.kb-sort-field::after { content: ""; position: absolute; inset-inline-end: 1rem; top: 50%; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.kb-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.4rem; min-height: 3.15rem; padding: .7rem 1.5rem; border: 1px solid var(--kb-plum); border-radius: .75rem; background: var(--kb-plum); color: #fff; font: inherit; font-size: .83rem; font-weight: 650; cursor: pointer; }
.kb-button:hover { background: #5c1b49; border-color: #5c1b49; color: #fff; }
.kb-search .kb-search-submit { flex: 0 0 3.15rem; width: 3.15rem; height: 3.15rem; min-height: 3.15rem; border-radius: 50%; padding: .7rem; }
.kb-columns { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; gap: 0 2.25rem; align-items: start; margin-top: 2rem; }
.kb-results-header { grid-column: 1; }
.kb-results { grid-column: 1; grid-row: 2; min-width: 0; scroll-margin-top: 2rem; }
.kb-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.kb-section-heading .kb-eyebrow { color: #a06a8c; font-size: .7rem; margin-bottom: .25rem; }
.kb-section-heading h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.6; color: #442738; }
.kb-result-count { flex-shrink: 0; color: var(--kb-muted); font-size: .73rem; border-bottom: 1px solid #d3bdcb; padding-bottom: .2rem; }
.kb-filter-state { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; padding: .8rem 1rem; background: var(--kb-rose); border-radius: .75rem; margin-bottom: 1rem; font-size: .8rem; }
.kb-filter-state a { color: var(--kb-plum); text-decoration: underline; text-underline-offset: .25rem; }

.kb-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.kb-post { position: relative; isolation: isolate; display: grid; align-items: end; min-width: 0; aspect-ratio: 1.618 / 1; background: #382333; border-radius: 1rem; overflow: hidden; box-shadow: 0 .4rem 1.5rem #38233312; }
.kb-post-image { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
.kb-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.kb-post:hover .kb-post-image img { transform: scale(1.035); }
.kb-image-placeholder { display: grid; align-content: start; justify-items: center; gap: .5rem; padding-top: 1.5rem; height: 100%; color: #e3cedc; background: linear-gradient(125deg, #784463, #382333); font-size: .75rem; }
.kb-image-placeholder i { font-size: 2rem; }
.kb-post-body { min-height: 0; padding: .85rem 1rem; max-height: 88%; overflow: auto; color: #fff; background: linear-gradient(to left, #261b25d1, #20121f85); }
.kb-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .8rem; font-size: .7rem; color: var(--kb-muted); margin-bottom: .35rem; }
.kb-post-meta > :is(span, time) { display: inline-flex; align-items: baseline; gap: .35rem; }
.kb-post-meta i { font-size: .85em; opacity: .85; }
.kb-post .kb-post-meta { color: #eddee8; }
.kb-post h2 { font-size: 1rem; line-height: 1.65; font-weight: 750; }
.kb-post h2 a { color: #fff; }
.kb-post h2 a:hover { color: #f5d2a8; }
.kb-post .kb-post-excerpt { margin-top: .25rem; color: #f2e9ee; font-size: .76rem; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-post-tags { display: flex; flex-wrap: wrap; gap: .3rem .7rem; padding: 0; margin: .4rem 0 0; list-style: none; font-size: .65rem; color: #ead3e2; }
.kb-post-tags li::before { content: "#"; padding-inline-end: .15rem; opacity: .6; }
.kb-post-featured { grid-column: 1 / -1; }
.kb-post-featured .kb-post-body { padding: 1.3rem 1.5rem; }
.kb-post-featured h2 { font-size: clamp(1.2rem, 2.2vw, 1.75rem); }
.kb-post-featured .kb-post-excerpt { font-size: .9rem; }
.kb-featured-label { position: absolute; right: 1rem; top: 1rem; background: #fff5e8; color: #724b31; border-radius: 2rem; padding: .3rem .7rem; font-size: .66rem; font-weight: 700; }

.kb-author .social-icons {
    direction: ltr;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    width: 150px;
    font-size: .5em;
    margin: 0 auto;
}
.kb-author .social-icons a {
    color: #a5a5a5 !important;
}
.kb-author .social-icons a:hover {
    color: #78235f !important;
}
.kb-sidebar { grid-column: 2; grid-row: 2; display: grid; gap: 1.25rem; }
.kb-author { border: 1px solid var(--kb-line); border-radius: 1.15rem; background: #fff; padding: 1.5rem; }
.kb-author-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--kb-line); font-size: .7rem; color: #8c6b80; }
.kb-author-top i { font-size: 1.4rem; color: #dbc4d3; }
.kb-author-photo { display: block; width: 5.4rem; height: 5.4rem; object-fit: cover; border-radius: 50%; padding: .25rem; border: 1px solid #dec3d4; margin-top: -4.2rem; margin-bottom: 1rem; background: var(--kb-rose); }
.kb-author h2 { font-size: 1rem; font-weight: 750; color: #542044; line-height: 1.8; }
.kb-author .kb-author-role { font-size: .67rem; color: #98748b; margin-top: .35rem;text-align:justify }
.kb-author .kb-author-copy {text-align:justify; font-size: .77rem; color: var(--kb-muted); line-height: 2.25; margin-top: 1rem; }
.kb-author-contact { display: flex; align-items: center; justify-content: space-between; color: var(--kb-plum); font-size: .75rem; font-weight: 650; margin-top: 1rem; }
.kb-author-contact:hover { color: #4d153e; }
.kb-social { display: flex; gap: .65rem; border-top: 1px solid var(--kb-line); padding-top: 1rem; margin-top: 1rem; }
.kb-social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--kb-line); border-radius: 50%; color: #7b586e; background: var(--kb-paper); font-size: 1rem; }
.kb-social a:hover { background: var(--kb-plum); color: #fff; border-color: var(--kb-plum); }
.kb-clinic { border: 1px solid #d9e5e2; background: #edf4f1; border-radius: 1.15rem; padding: 1.5rem; }
.kb-clinic-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: #dcebe5; color: #3d6e60; border-radius: .75rem; margin-bottom: 1rem; }
.kb-clinic h2 { color: #315d50; font-size: .95rem; font-weight: 750; line-height: 1.8; }
.kb-clinic p { font-size: .75rem; color: #60766e; margin-top: .7rem; }
.kb-clinic a { display: flex; align-items: center; justify-content: space-between; color: #315d50; font-size: .74rem; font-weight: 700; border-top: 1px solid #d4e2dc; padding-top: .85rem; margin-top: 1rem; }
.kb-clinic a:hover { text-decoration: underline; text-underline-offset: .25rem; }
.kb-empty { padding: 4rem 1.5rem; text-align: center; border: 1px dashed #d7bfce; border-radius: 1rem; background: #fff; }
.kb-empty-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; color: #92607e; background: var(--kb-rose); margin: 0 auto 1rem; font-size: 1.3rem; }
.kb-empty h3 { font-size: 1.2rem; color: #542044; }
.kb-empty p { font-size: .85rem; color: var(--kb-muted); margin-block: .75rem 1.25rem; }
.kb-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.kb-pagination a { display: grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; border: 1px solid var(--kb-line); border-radius: .7rem; background: #fff; color: var(--kb-plum); font-size: .85rem; }
.kb-pagination a[aria-current="page"], .kb-pagination a:hover { background: var(--kb-plum); border-color: var(--kb-plum); color: #fff; }
.kb-endnote { display: flex; align-items: center; justify-content: center; gap: 1rem; border-top: 1px solid var(--kb-line); margin-top: 3rem; padding-top: 2rem; color: #95778a; }
.kb-endnote > i { font-size: 1.4rem; color: #bea2b3; }
.kb-endnote p { font-size: .82rem; font-weight: 600; }
.kb-endnote p span { font-size: .7rem; font-weight: 400; color: #9b8a95; }

@media (max-width: 1100px) {
    .kb-columns { grid-template-columns: minmax(0, 1fr) 16rem; column-gap: 1.5rem; }
    .kb-hero-content { grid-template-columns: minmax(0, 1fr) 17rem; gap: 2rem; }
}
@media (max-width: 850px) {
    .kb-columns { grid-template-columns: minmax(0, 1fr); }
    .kb-sidebar { grid-column: 1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin-top: 4.2rem; }
    .kb-hero-content { grid-template-columns: minmax(0, 1fr); padding-block: 10rem 10rem; }
    .kb-hero-note { display: none; }
    .kb-search { flex-wrap: wrap; }
    .kb-search-field { flex-basis: 100%; }
    .kb-sort-field { flex: 1; }
}
@media (max-width: 575.98px) {
    .kb-shell { width: calc(100% - 2rem); }
    .kb-breadcrumb { padding-top: 1rem; }
    .kb-hero .kb-eyebrow { font-size: .65rem; }
    .kb-hero .kb-hero-description { font-size: .8rem; }
    .kb-desktop-break { display: none; }
    .kb-search { padding: 1rem; gap: .85rem; border-radius: 1rem; }
    .kb-search label { font-size: .72rem; }
    .kb-search input[type="search"] { font-size: .7rem; }
    .kb-button { padding-inline: 1rem; gap: .75rem; }
    .kb-section-heading h2 { font-size: 1.2rem; }
    .kb-post-grid, .kb-sidebar { grid-template-columns: minmax(0, 1fr); }
    .kb-post-featured h2 { font-size: 1.15rem; }
    .kb-post-meta { font-size: .7rem; }
    .kb-post-tags { font-size: .7rem; }
    .kb-endnote { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
    .kb-post, .kb-post-image img { transition: none; }
    .kb-post:hover, .kb-post:hover .kb-post-image img { transform: none; }
}

/* Post detail: the body stays in Orchard's sanitization and display pipeline. */
.kb-detail { padding-block: 1.5rem 4rem; }
.kb-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; gap: 2rem; }
.kb-article { min-width: 0; background: #fff; border: 1px solid var(--kb-line); border-radius: 1.2rem; overflow: hidden; }
.kb-detail-image { aspect-ratio: 1.618 / 1; overflow: hidden; background: var(--kb-rose); }
.kb-detail-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kb-article-heading { padding: 1.75rem 2rem 1rem; }
.kb-article h1 { font-size: clamp(1.5rem, 2.7vw, 2.3rem); line-height: 1.6; font-weight: 800; color: var(--kb-ink); margin: .3rem 0 .5rem; }
.kb-article-content { padding: .5rem 2rem 2rem; line-height: 2.2; font-size: 1rem; }
.kb-article-content p { margin-block: 0 1.25rem; }
.kb-article-content :is(h2, h3, h4) { color: var(--kb-ink); line-height: 1.7; margin-block: 1.5rem .6rem; }
.kb-article-content h2 { font-size: 1.4rem; }
.kb-article-content h3 { font-size: 1.2rem; }
.kb-article-content :is(img, video, iframe) { max-width: 100%; }
.kb-article-content :is(img, video) { height: auto; border-radius: .65rem; }
.kb-article-content a { color: var(--kb-plum); text-decoration: underline; text-underline-offset: .2rem; }
.kb-article-content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-inline-start: 3px solid var(--kb-plum); background: var(--kb-paper); }
.kb-article-content :is(pre, table) { display: block; max-width: 100%; overflow-x: auto; }
.kb-article-tags { margin: 0 2rem 2rem; padding-top: 1rem; border-top: 1px solid var(--kb-line); color: var(--kb-plum); }
.kb-latest { padding: 1.25rem; border: 1px solid var(--kb-line); border-radius: 1rem; background: #fff; }
.kb-latest h2 { font-size: 1rem; font-weight: 750; line-height: 1.8; padding-bottom: 1rem; border-bottom: 1px solid var(--kb-line); }
.kb-latest h2 i { color: var(--kb-plum); margin-inline-end: .35rem; }
.kb-latest ol { list-style: none; padding: 0; margin: 0; }
.kb-latest li { padding-block: 1rem; border-bottom: 1px solid var(--kb-line); }
.kb-latest li > a { display: flex; align-items: start; gap: .75rem; color: var(--kb-ink); font-size: .82rem; font-weight: 650; line-height: 1.9; }
.kb-latest li > a:hover { color: var(--kb-plum); }
.kb-latest img { width: 5.25rem; aspect-ratio: 1.618 / 1; height: auto; object-fit: cover; border-radius: .5rem; flex-shrink: 0; }
.kb-latest .kb-post-meta { margin: .65rem 0 0; font-size: .65rem; }
.kb-all-posts { display: flex; justify-content: space-between; color: var(--kb-plum); font-size: .8rem; padding-top: 1rem; }
.kb-latest-empty { padding-top: 1rem; color: var(--kb-muted); font-size: .8rem; }
.kb-related { margin-top: 3rem; }
.kb-related .kb-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) {
    .kb-detail-columns { grid-template-columns: minmax(0, 1fr) 15rem; gap: 1.25rem; }
    .kb-results .kb-post-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
    .kb-detail-columns { grid-template-columns: minmax(0, 1fr); }
    .kb-latest ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
    .kb-results .kb-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .kb-related .kb-post-grid, .kb-results .kb-post-grid, .kb-latest ol { grid-template-columns: minmax(0, 1fr); }
    .kb-article-heading { padding: 1.25rem 1.25rem .75rem; }
    .kb-article-content { padding: .25rem 1.25rem 1.25rem; }
    .kb-article-tags { margin-inline: 1.25rem; }
    .kb-post-featured .kb-post-body { padding: .85rem 1rem; }
    .kb-post-featured .kb-post-excerpt { font-size: .76rem; }
}

/* Shared linked metadata and writer archive. */
.kb-icon { display: inline-block; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; vertical-align: middle; }
.kb-post-meta a { color: inherit; }
.kb-post-meta a[href]:hover { text-decoration: underline; text-underline-offset: .2rem; }
.kb-post-meta > :is(a, span, time) { display: inline-flex; align-items: center; gap: .4rem; }
.kb-post-meta .kb-post-category { flex-wrap: wrap; }
.kb-writer-avatar { display: block; width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; border: 1px solid #ffffff55; flex-shrink: 0; }
.kb-detail-visual { position: relative; }
.kb-detail-meta { padding: .85rem 1.25rem; color: #fff; background: linear-gradient(to left, #271c29d1, #271c2985); }
.kb-detail-visual.has-image .kb-detail-meta { position: absolute; inset: auto 0 0; }
.kb-detail-meta .kb-post-meta { color: #fff; margin: 0; gap: .65rem 1.25rem; font-size: .8rem; }
.kb-detail-meta .kb-writer-avatar { width: 2.75rem; height: 2.75rem; }
.kb-latest h2 .kb-icon { color: var(--kb-plum); margin-inline-end: .35rem; }
.kb-latest .kb-writer-avatar { width: 1.6rem; height: 1.6rem; aspect-ratio: 1; border-radius: 50%; }
.kb-profile-header { padding: 3rem 0 4.5rem; text-align: center; background: linear-gradient(120deg, #311a30, #602047); color: #fff; }
.kb-profile-avatar { width: 8rem; height: 8rem; border-radius: 50%; object-fit: cover; border: 3px solid #ffffff66; margin-bottom: 1rem; }
.kb-profile-header h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.6; }
.kb-profile-header p { max-width: 46rem; margin: .8rem auto 0; white-space: pre-line; color: #f0dfe9; line-height: 2.1; }
.kb-writer-archive .kb-columns { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 575.98px) {
    .kb-detail-meta { padding: .65rem .85rem; }
    .kb-detail-meta .kb-post-meta { font-size: .7rem; gap: .5rem .8rem; }
    .kb-detail-meta .kb-writer-avatar { width: 2rem; height: 2rem; }
}

/* One taxonomy content item, rendered as a directory or sidebar summary. */
.kb-category-page { padding: 3rem 0; }
.kb-category-page .kb-category-directory { width: min(68rem, calc(100% - 2rem)); margin-inline: auto; }
.kb-category-directory { border: 1px solid var(--kb-line); border-radius: 1.15rem; background: #fff; overflow: hidden; }
.kb-category-directory header { padding: 1.5rem; background: linear-gradient(120deg, #f7edf3, #fcfafb); border-bottom: 1px solid var(--kb-line); }
.kb-category-kicker { color: var(--kb-plum); font-size: .7rem; font-weight: 650; }
.kb-category-directory :is(h1, h2) { font-size: 1.2rem; line-height: 1.7; margin-top: .3rem; }
.kb-category-directory h2 a { color: var(--kb-ink); }
.kb-category-directory header p { color: var(--kb-muted); font-size: .8rem; margin-top: .4rem; }
.kb-category-list { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 1.25rem; }
.kb-category-list li { min-width: 0; padding-inline-start: calc(var(--category-depth, 0) * .75rem); }
.kb-category-list a { display: flex; align-items: center; gap: .8rem; height: 100%; padding: .85rem; border: 1px solid var(--kb-line); border-radius: .7rem; color: var(--kb-ink); background: #fff; font-size: .82rem; transition: background .15s ease; }
.kb-category-list .kb-icon { color: var(--kb-plum); }
.kb-category-list a:hover { background: var(--kb-rose); border-color: #d7bdcd; }
.kb-category-page .kb-category-list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.75rem; gap: 1rem; }
.kb-category-page .kb-category-list a { min-height: 6rem; font-size: .95rem; }
.kb-category-page .kb-category-directory header { padding: 2rem; }
.kb-category-panel { background: transparent; padding: 0; }
.kb-category-empty { padding: 1.5rem; color: var(--kb-muted); font-size: .8rem; }
@media (max-width: 850px) {
    .kb-category-page .kb-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .kb-category-page .kb-category-list { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
}
