/* Theme 6 — Knowledge Base (Wikipedia/docs inspired). Persistent left nav,
   classic wiki blue links, dense serif-free reading column, info-box sidebar. */
.theme-knowledge{--kb-ink:#202122;--kb-muted:#54595d;--kb-line:#a2a9b1;--kb-line2:#eaecf0;--kb-blue:#3366cc;--kb-bg:#fff;--kb-panel:#f8f9fa;font-family:-apple-system,'Segoe UI',Arial,sans-serif;color:var(--kb-ink);background:var(--kb-bg);font-size:14.5px;}
[data-theme="dark"] .theme-knowledge{--kb-ink:#e8e8e8;--kb-muted:#9a9a9a;--kb-line:#4a4a4a;--kb-line2:#2a2a2a;--kb-blue:#8ab4f8;--kb-bg:#141414;--kb-panel:#1c1c1c;}
.theme-knowledge *{box-sizing:border-box;}
.theme-knowledge a{color:var(--kb-blue);text-decoration:none;}
.theme-knowledge a:hover{text-decoration:underline;}
.theme-knowledge h1,.theme-knowledge h2,.theme-knowledge h3{font-family:Georgia,'Linux Libertine',serif;color:var(--kb-ink);font-weight:400;}
.theme-knowledge .kb-shell{display:grid;grid-template-columns:220px 1fr;max-width:1280px;margin:0 auto;}
.theme-knowledge .kb-nav{border-right:1px solid var(--kb-line2);padding:20px 16px;}
.theme-knowledge .kb-nav h4{font-size:12px;text-transform:uppercase;color:var(--kb-muted);margin:18px 0 8px;letter-spacing:.03em;}
.theme-knowledge .kb-nav h4:first-child{margin-top:0;}
.theme-knowledge .kb-nav a{display:block;padding:5px 0;font-size:13.5px;}
.theme-knowledge .kb-main{padding:24px 30px 60px;min-width:0;}
.theme-knowledge .kb-h1{font-size:28px;border-bottom:1px solid var(--kb-line2);padding-bottom:10px;margin-bottom:16px;}
.theme-knowledge .kb-sub{color:var(--kb-muted);font-size:13px;font-style:italic;margin-bottom:20px;}

.theme-knowledge .kb-list-item{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--kb-line2);}
.theme-knowledge .kb-list-item img{width:90px;height:70px;object-fit:cover;border:1px solid var(--kb-line2);flex-shrink:0;}
.theme-knowledge .kb-list-item h3{font-size:17px;margin-bottom:4px;}
.theme-knowledge .kb-list-item h3 a{color:var(--kb-blue);}
.theme-knowledge .kb-list-item p{color:var(--kb-ink);font-size:13.5px;line-height:1.5;}
.theme-knowledge .kb-list-item .kb-meta{color:var(--kb-muted);font-size:12px;margin-top:4px;}

.theme-knowledge .kb-infobox{background:var(--kb-panel);border:1px solid var(--kb-line2);border-radius:2px;padding:16px;margin-bottom:20px;}
.theme-knowledge .kb-infobox h4{font-size:11.5px;text-transform:uppercase;color:var(--kb-muted);margin-bottom:10px;letter-spacing:.04em;}
.theme-knowledge .kb-infobox a{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--kb-line2);font-size:13px;}

@media(max-width:820px){.theme-knowledge .kb-shell{grid-template-columns:1fr;}.theme-knowledge .kb-nav{border-right:none;border-bottom:1px solid var(--kb-line2);}}

/* Article */
.theme-knowledge .kb-art-shell{display:grid;grid-template-columns:1fr 260px;gap:34px;align-items:start;max-width:1280px;margin:0 auto;padding:24px 30px 60px;}
.theme-knowledge .kb-breadcrumb-row{font-size:12.5px;color:var(--kb-muted);margin-bottom:6px;}
.theme-knowledge .kb-art-shell h1{font-size:30px;border-bottom:1px solid var(--kb-line2);padding-bottom:10px;margin-bottom:6px;}
.theme-knowledge .kb-toc{border:1px solid var(--kb-line2);background:var(--kb-panel);padding:14px 18px;margin:18px 0;display:inline-block;min-width:240px;}
.theme-knowledge .kb-toc h4{font-size:14px;margin-bottom:8px;font-weight:700;font-family:inherit;}
.theme-knowledge .kb-toc ol{margin:0;padding-left:20px;font-size:13.5px;}
.theme-knowledge .kb-toc li{margin-bottom:4px;}
.theme-knowledge .kb-content{font-size:15px;line-height:1.7;}
.theme-knowledge .kb-content h2{font-size:21px;border-bottom:1px solid var(--kb-line2);padding-bottom:6px;margin:28px 0 12px;scroll-margin-top:20px;}
.theme-knowledge .kb-content h3{font-size:17px;margin:20px 0 8px;scroll-margin-top:20px;}
.theme-knowledge .kb-content p{margin-bottom:14px;}
.theme-knowledge .kb-content img{max-width:100%;border:1px solid var(--kb-line2);margin:16px 0;}
.theme-knowledge .kb-content pre{background:var(--kb-panel);border:1px solid var(--kb-line2);padding:12px;overflow-x:auto;font-size:13px;}
.theme-knowledge .kb-side-box{position:sticky;top:90px;}
.theme-knowledge .kb-related-list a{display:block;padding:7px 0;border-bottom:1px solid var(--kb-line2);font-size:13.5px;}
@media(max-width:900px){.theme-knowledge .kb-art-shell{grid-template-columns:1fr;}.theme-knowledge .kb-side-box{position:static;}}
