:root {
    --kb-bg: #f7faff;
    --kb-surface: #fff;
    --kb-surface-soft: #eef7ff;
    --kb-text: #10243c;
    --kb-muted: #61758a;
    --kb-border: rgba(var(--sellz-brand-primary-rgb), .13);
    --kb-shadow: 0 18px 48px rgba(var(--sellz-brand-primary-rgb), .09);
}
html[data-theme="dark"] {
    --kb-bg: #06101e;
    --kb-surface: #0d1d31;
    --kb-surface-soft: #102640;
    --kb-text: #f2f7fb;
    --kb-muted: #9db3c8;
    --kb-border: rgba(var(--sellz-brand-secondary-rgb), .22);
    --kb-shadow: 0 22px 55px rgba(0,0,0,.28);
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sellz-kb { margin: 0; overflow-x: hidden; background: var(--kb-bg); color: var(--kb-text); font-family: "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
.kb-shell { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.sellz-kb a:focus-visible, .sellz-kb input:focus-visible, .sellz-kb button:focus-visible { outline: 3px solid var(--sellz-brand-focus); outline-offset: 3px; }

.kb-hero { position: relative; overflow: hidden; padding: 88px 0 78px; background: radial-gradient(circle at 85% 15%, rgba(var(--sellz-brand-secondary-rgb), .18), transparent 30%), linear-gradient(145deg, #fff, var(--sellz-brand-pale)); text-align: center; }
html[data-theme="dark"] .kb-hero { background: radial-gradient(circle at 85% 15%, rgba(var(--sellz-brand-secondary-rgb), .2), transparent 32%), linear-gradient(145deg, #071426, #0b2139); }
.kb-eyebrow { width: fit-content; margin: 0 auto 18px; padding: 8px 12px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--sellz-brand-border); border-radius: 999px; background: var(--sellz-brand-soft); color: var(--sellz-brand-secondary); font-size: .69rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.kb-hero h1 { width: min(780px, 100%); margin: 0 auto; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -.05em; }
.kb-search { width: min(700px, 100%); min-height: 58px; margin: 34px auto 0; padding: 6px 6px 6px 19px; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; border: 1px solid var(--kb-border); border-radius: 17px; background: var(--kb-surface); box-shadow: var(--kb-shadow); }
.kb-search > i { color: var(--sellz-brand-secondary); }
.kb-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--kb-text); font-size: .85rem; }
.kb-search button { min-height: 44px; padding: 9px 19px; border: 0; border-radius: 12px; background: var(--sellz-brand-gradient); color: #fff; cursor: pointer; font-size: .75rem; font-weight: 800; }

.kb-content-section, .kb-related { padding: 76px 0 96px; }
.kb-categories { margin-bottom: 66px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.kb-categories a { min-height: 39px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--kb-border); border-radius: 999px; background: var(--kb-surface); color: var(--kb-muted); text-decoration: none; font-size: .68rem; font-weight: 750; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.kb-categories a small { min-width: 20px; padding: 2px 5px; border-radius: 999px; background: var(--kb-surface-soft); text-align: center; }
.kb-categories a.is-active, .kb-categories a:hover { border-color: var(--sellz-brand-secondary); background: var(--sellz-brand-soft); color: var(--sellz-brand-primary); }
html[data-theme="dark"] .kb-categories a.is-active, html[data-theme="dark"] .kb-categories a:hover { color: var(--sellz-brand-secondary); }
.kb-section-head { margin: 58px 0 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.kb-section-head p { margin: 0 0 6px; color: var(--sellz-brand-secondary); font-size: .64rem; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.kb-section-head h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.kb-section-head > a { color: var(--sellz-brand-secondary); font-size: .72rem; font-weight: 750; }
.kb-card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.kb-article-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--kb-border); border-radius: 20px; background: var(--kb-surface); box-shadow: var(--kb-shadow); transition: transform .2s ease, border-color .2s ease; }
.kb-card-media { min-height: 170px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--sellz-brand-pale-strong), var(--kb-surface-soft)); color: var(--sellz-brand-secondary); }
.kb-card-media img { width: 100%; height: 190px; object-fit: cover; transition: transform .35s ease; }
.kb-card-media > span { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid var(--sellz-brand-border); border-radius: 20px; background: var(--kb-surface); font-size: 1.5rem; box-shadow: var(--kb-shadow); }
.kb-card-body { min-height: 246px; padding: 21px; display: flex; flex-direction: column; }
.kb-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--kb-muted); font-size: .62rem; font-weight: 700; }
.kb-card-meta span { color: var(--sellz-brand-secondary); text-transform: uppercase; letter-spacing: .045em; }
.kb-card-body h3 { margin: 15px 0 9px; font-size: 1rem; line-height: 1.42; }
.kb-card-body h3 a { color: var(--kb-text); text-decoration: none; }
.kb-card-body p { margin: 0 0 18px; color: var(--kb-muted); font-size: .75rem; line-height: 1.66; }
.kb-read-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--sellz-brand-secondary); text-decoration: none; font-size: .72rem; font-weight: 800; }
.kb-empty { padding: 70px 20px; display: grid; place-items: center; gap: 13px; border: 1px dashed var(--kb-border); border-radius: 22px; background: var(--kb-surface); text-align: center; }
.kb-empty > i { font-size: 2rem; color: var(--sellz-brand-secondary); }
.kb-empty h2 { margin: 0; font-size: 1.05rem; }
.kb-empty a { color: var(--sellz-brand-secondary); font-size: .76rem; font-weight: 750; }
.kb-pagination { margin-top: 36px; }
.kb-pagination nav > div:first-child { display: none; }
.kb-pagination nav > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--kb-muted); font-size: .72rem; }
.kb-pagination span[aria-current="page"] span, .kb-pagination a { display: inline-flex; min-width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--kb-border); border-radius: 9px; background: var(--kb-surface); color: var(--kb-text); text-decoration: none; }
.kb-pagination span[aria-current="page"] span { border-color: transparent; background: var(--sellz-brand-gradient); color: #fff; }

.kb-article-hero { padding: 74px 0 58px; background: linear-gradient(145deg, #fff, var(--sellz-brand-pale)); }
html[data-theme="dark"] .kb-article-hero { background: linear-gradient(145deg, #071426, #0b2139); }
.kb-article-shell { width: min(820px, calc(100% - 36px)); }
.kb-back { display: inline-flex; align-items: center; gap: 7px; color: var(--kb-muted); text-decoration: none; font-size: .72rem; font-weight: 750; }
.kb-article-meta { margin-top: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--kb-muted); font-size: .69rem; font-weight: 700; }
.kb-article-meta a { color: var(--sellz-brand-secondary); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.kb-article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kb-article-hero h1 { margin: 17px 0 14px; font-size: clamp(2rem, 5.7vw, 4.25rem); line-height: 1.08; letter-spacing: -.052em; }
.kb-article-hero p { max-width: 720px; margin: 0; color: var(--kb-muted); font-size: .96rem; line-height: 1.68; }
.kb-article-cover { overflow: hidden; margin: 54px 0 0; border: 1px solid var(--kb-border); border-radius: 23px; box-shadow: var(--kb-shadow); }
.kb-article-cover img { width: 100%; max-height: 480px; display: block; object-fit: cover; }
.kb-prose { padding: 58px 0 92px; color: var(--kb-text); font-size: .94rem; line-height: 1.85; }
.kb-prose h2, .kb-prose h3, .kb-prose h4 { margin: 2em 0 .7em; line-height: 1.3; letter-spacing: -.025em; }
.kb-prose h2 { font-size: 1.65rem; }
.kb-prose h3 { font-size: 1.28rem; }
.kb-prose p, .kb-prose ul, .kb-prose ol { margin: 0 0 1.35em; }
.kb-prose a { color: var(--sellz-brand-secondary); }
.kb-prose img { max-width: 100%; height: auto; border-radius: 15px; }
.kb-prose pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 14px; background: #071426; color: #e9f3fb; }
.kb-prose blockquote { margin: 1.6em 0; padding: 15px 20px; border-left: 4px solid var(--sellz-brand-secondary); border-radius: 0 12px 12px 0; background: var(--kb-surface-soft); color: var(--kb-muted); }
.kb-related { border-top: 1px solid var(--kb-border); background: var(--kb-surface-soft); }

@media (hover:hover) {
    .kb-article-card:hover { transform: translateY(-4px); border-color: var(--sellz-brand-secondary); }
    .kb-article-card:hover .kb-card-media img { transform: scale(1.035); }
}
@media (min-width: 680px) { .kb-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kb-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 720px) {
    .kb-shell, .kb-article-shell { width: min(100% - 32px, 1160px); }
    .kb-hero { padding: 66px 0 60px; }
    .kb-search { min-height: 54px; padding-left: 14px; }
    .kb-search button { padding-inline: 14px; }
    .kb-content-section, .kb-related { padding-block: 58px 72px; }
    .kb-categories { margin-bottom: 48px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: none; }
    .kb-categories a { flex: 0 0 auto; }
    .kb-section-head { margin-top: 46px; }
    .kb-article-hero { padding: 54px 0 45px; }
    .kb-article-meta { margin-top: 34px; }
    .kb-prose { padding-block: 45px 70px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
