.ss-kb-wrap {
  --ss-kb-bg: #f8fafc;
  --ss-kb-card: #ffffff;
  --ss-kb-soft: #eef8fd;
  --ss-kb-border: #dbe5ee;
  --ss-kb-text: #182536;
  --ss-kb-muted: #607086;
  --ss-kb-accent: #1379b6;
  --ss-kb-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  background: var(--ss-kb-bg);
  color: var(--ss-kb-text);
  padding: var(--ss-kb-outer-padding, 10px) 0 40px;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.ss-kb-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, var(--ss-kb-sidebar-width, 320px));
  gap: var(--ss-kb-gap, 24px);
  max-width: var(--ss-kb-max-width, 1560px);
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

.ss-kb-card,
.ss-kb-sidebar .widget {
  background: var(--ss-kb-card);
  border: 1px solid var(--ss-kb-border);
  border-radius: 10px;
  box-shadow: var(--ss-kb-shadow);
  overflow: hidden;
}

.ss-kb-hero {
  padding: 28px 32px;
  background: linear-gradient(135deg, #eef8fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--ss-kb-border);
}

.ss-kb-hero h1 {
  margin: 0;
  color: var(--ss-kb-text);
  font-size: 34px;
  line-height: 1.35;
}

.ss-kb-hero p {
  margin: 14px 0 0;
  color: var(--ss-kb-muted);
  font-size: 17px;
  line-height: 1.8;
}

.ss-kb-kicker {
  margin: 0 0 8px !important;
  color: var(--ss-kb-muted) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ss-kb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--ss-kb-border);
  color: var(--ss-kb-muted);
  font-size: 14px;
}

.ss-kb-breadcrumbs a {
  color: var(--ss-kb-accent);
  text-decoration: none;
}

.ss-kb-search {
  display: flex;
  gap: 10px;
  padding: 18px 24px;
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--ss-kb-border);
}

.ss-kb-search-field {
  flex: 1;
  min-width: 0;
  position: relative;
}

.ss-kb-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ss-kb-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
}

.ss-kb-search button {
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--ss-kb-accent);
  color: #fff;
  font-weight: 700;
}

.ss-kb-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: min(520px, 70vh);
  overflow: auto;
  border: 1px solid var(--ss-kb-border);
  border-radius: 10px;
  background: var(--ss-kb-card);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.ss-kb-suggestion,
.ss-kb-suggestion-empty {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(219, 229, 238, .75);
  color: var(--ss-kb-text);
  text-decoration: none;
}

.ss-kb-suggestion:last-child,
.ss-kb-suggestion-empty:last-child {
  border-bottom: 0;
}

.ss-kb-suggestion:hover {
  background: var(--ss-kb-soft);
}

.ss-kb-suggestion span,
.ss-kb-suggestion em {
  display: block;
  color: var(--ss-kb-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.ss-kb-suggestion strong {
  display: block;
  margin: 3px 0;
  font-size: 16px;
  line-height: 1.45;
}

.ss-kb-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 32px;
}

.ss-kb-section-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 14px;
  padding: 18px 20px;
  border: 1px solid var(--ss-kb-border);
  border-radius: 10px;
  color: var(--ss-kb-text);
  background: #fff;
  transition: border-color .18s ease, transform .18s ease;
}

.ss-kb-section-card.no-icon {
  grid-template-columns: minmax(0, 1fr);
}

.ss-kb-section-card:hover {
  border-color: var(--ss-kb-accent);
  transform: translateY(-1px);
}

.ss-kb-card-body {
  min-width: 0;
}

.ss-kb-section-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

.ss-kb-section-card h2 a {
  color: var(--ss-kb-text);
  text-decoration: none;
}

.ss-kb-section-card h2 a:hover,
.ss-kb-card-posts a:hover,
.ss-kb-tree a:hover {
  color: var(--ss-kb-accent);
}

.ss-kb-section-summary,
.ss-kb-section-card em {
  color: var(--ss-kb-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.75;
}

.ss-kb-section-summary {
  margin: 0 0 10px;
}

.ss-kb-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f5fb;
  color: var(--ss-kb-accent);
  font-size: 18px;
  font-weight: 700;
}

.ss-kb-card-posts {
  margin: 12px 0 10px;
  padding: 0;
  list-style: none;
}

.ss-kb-card-posts li {
  margin: 0;
  padding: 7px 0 7px 14px;
  border-top: 1px solid rgba(219, 229, 238, .75);
  position: relative;
  font-size: 14px;
  line-height: 1.55;
}

.ss-kb-card-posts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ss-kb-accent);
}

.ss-kb-card-posts a {
  color: var(--ss-kb-text);
  text-decoration: none;
}

.ss-kb-block-title {
  margin: 28px 32px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ss-kb-border);
  font-size: 24px;
}

.ss-kb-article-list {
  display: grid;
  gap: 12px;
  padding: 24px 32px 32px;
}

.ss-kb-teaser {
  padding: 16px 18px;
  border: 1px solid var(--ss-kb-border);
  border-radius: 10px;
  background: #fff;
}

.ss-kb-teaser h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.ss-kb-teaser a {
  color: var(--ss-kb-text);
  text-decoration: none;
}

.ss-kb-teaser p {
  margin: 0;
  color: var(--ss-kb-muted);
  line-height: 1.8;
}

.ss-kb-featured {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.ss-kb-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.ss-kb-content {
  padding: 32px;
  font-size: 18px;
  line-height: 1.9;
}

.ss-kb-featured + .ss-kb-content {
  padding-top: 18px;
}

.ss-kb-content > :first-child {
  margin-top: 0 !important;
}

.ss-kb-content p,
.ss-kb-content li,
.ss-kb-content blockquote {
  font-size: inherit;
  line-height: inherit;
}

.ss-kb-content h2,
.ss-kb-content h3,
.ss-kb-content h4 {
  color: var(--ss-kb-text);
}

.ss-kb-featured + .ss-kb-toc {
  margin-top: 18px;
}

.ss-kb-content .ss-toc,
.ss-kb-content .ss-toc-wrapper,
.ss-kb-content .shongshoy-toc,
.ss-kb-content .toc,
.ss-kb-content .toc-wrapper,
.ss-kb-content [class*="toc"] {
  margin-top: 0 !important;
}

.ss-kb-toc {
  margin: 24px 32px 0;
  border: 1px solid var(--ss-kb-border);
  border-radius: 10px;
  background: #fbfdff;
}

.ss-kb-toc-title {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ss-kb-border);
  font-weight: 800;
}

.ss-kb-toc ol {
  margin: 0;
  padding: 16px 24px 18px 42px;
}

.ss-kb-toc li {
  margin: 6px 0;
}

.ss-kb-toc a {
  color: var(--ss-kb-accent);
  text-decoration: none;
}

.ss-kb-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 32px 32px;
}

.ss-kb-adjacent a {
  border: 1px solid var(--ss-kb-border);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ss-kb-text);
}

.ss-kb-adjacent span {
  display: block;
  color: var(--ss-kb-muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.ss-kb-related h2 {
  margin: 0 32px;
  font-size: 24px;
}

.ss-kb-sidebar {
  min-width: 0;
}

.ss-kb-sidebar .widget {
  padding: 22px;
  margin-bottom: 22px;
}

.ss-kb-sidebar .widget-title {
  margin: 0 0 14px;
  font-size: 19px;
}

.ss-kb-tree ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.ss-kb-tree li {
  margin: 0;
  border-top: 1px solid rgba(219, 229, 238, .75);
}

.ss-kb-tree li:first-child {
  border-top: 0;
}

.ss-kb-tree-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.ss-kb-tree-toggle,
.ss-kb-tree-spacer {
  width: 24px;
  height: 24px;
}

.ss-kb-tree-toggle {
  border: 0;
  border-radius: 50%;
  background: #e9f5fb;
  color: var(--ss-kb-accent);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  transition: transform .18s ease;
}

.ss-kb-tree li.is-open > .ss-kb-tree-row .ss-kb-tree-toggle {
  transform: rotate(90deg);
}

.ss-kb-tree a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--ss-kb-text);
  text-decoration: none;
}

.ss-kb-tree ul ul {
  padding-left: 14px;
}

.ss-kb-tree li:not(.is-open) > ul,
.ss-kb-tree li:not(.is-open) > .ss-kb-tree-posts {
  display: none;
}

.ss-kb-tree-icon {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
  color: var(--ss-kb-accent);
}

.ss-kb-tree-posts {
  margin: 0 0 8px 32px;
  padding: 0;
  list-style: none;
}

.ss-kb-tree-posts li {
  border-top: 0;
}

.ss-kb-tree-posts a {
  padding: 5px 0;
  color: var(--ss-kb-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ss-kb-tree .is-current > .ss-kb-tree-row a,
.ss-kb-tree .is-current-post > a {
  color: var(--ss-kb-accent);
  font-weight: 800;
}

.ss-kb-edit-link {
  margin-top: 12px !important;
}

.ss-kb-edit-link a {
  display: inline-flex;
  border: 1px solid var(--ss-kb-accent);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--ss-kb-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.ss-kb-about-section {
  padding: 0 32px 28px;
}

.ss-kb-article #comments,
.ss-kb-article .comments-area,
.ss-kb-article .comment-respond {
  margin: 28px 32px 32px;
}

.ss-kb-article .comment-respond {
  padding: 22px;
  border: 1px solid var(--ss-kb-border);
  border-radius: 10px;
  background: var(--ss-kb-card);
}

html.ss-dark-mode .ss-kb-wrap,
body.ss-dark-mode .ss-kb-wrap,
body.dark-mode .ss-kb-wrap {
  --ss-kb-bg: #0f1724;
  --ss-kb-card: #162333;
  --ss-kb-soft: #1b2d42;
  --ss-kb-border: #2c4057;
  --ss-kb-text: #e8eef6;
  --ss-kb-muted: #a9b7c9;
  --ss-kb-accent: #65c7ff;
  --ss-kb-shadow: none;
}

html.ss-dark-mode .ss-kb-hero,
body.ss-dark-mode .ss-kb-hero,
body.dark-mode .ss-kb-hero,
html.ss-dark-mode .ss-kb-section-card,
body.ss-dark-mode .ss-kb-section-card,
body.dark-mode .ss-kb-section-card,
html.ss-dark-mode .ss-kb-teaser,
body.ss-dark-mode .ss-kb-teaser,
body.dark-mode .ss-kb-teaser,
html.ss-dark-mode .ss-kb-toc,
body.ss-dark-mode .ss-kb-toc,
body.dark-mode .ss-kb-toc {
  background: var(--ss-kb-card);
}

@media (max-width: 900px) {
  .ss-kb-wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 0 28px;
  }
  .ss-kb-shell {
    display: block;
  }
  .ss-kb-card,
  .ss-kb-sidebar .widget {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ss-kb-sidebar {
    margin-top: 18px;
  }
  .ss-kb-section-grid,
  .ss-kb-adjacent {
    grid-template-columns: 1fr;
  }
  .ss-kb-hero,
  .ss-kb-content,
  .ss-kb-section-grid,
  .ss-kb-article-list {
    padding-left: 18px;
    padding-right: 18px;
  }
  .ss-kb-search {
    padding-left: 18px;
    padding-right: 18px;
  }
  .ss-kb-hero h1 {
    font-size: 28px;
  }
  .ss-kb-toc {
    margin-left: 18px;
    margin-right: 18px;
  }
  .ss-kb-search {
    flex-direction: column;
  }
  .ss-kb-search button {
    min-height: 44px;
  }
}
