.kb-hero {
  position: relative;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(circle at 78% 22%, rgba(59, 130, 246, .32), transparent 27rem),
    linear-gradient(120deg, #081326 0%, #10234a 58%, #12366b 100%);
}

.kb-hero-inner {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.kb-hero-copy { position: relative; z-index: 1; }
.kb-eyebrow, .kb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #93c5fd;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.kb-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

.kb-hero h1 {
  margin: 20px 0 16px;
  color: #fff;
  font-size: clamp(2.65rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.kb-hero h1 span { color: #8bbcff; }
.kb-hero-copy > p { max-width: 54ch; margin: 0; color: #c4d2e8; font-size: 1.06rem; }
.kb-hero-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: #fff;
  font-size: .93rem;
  font-weight: 700;
  text-decoration: none;
}
.kb-hero-link span { color: #93c5fd; font-size: 1.2rem; transition: transform .2s ease; }
.kb-hero-link:hover span { transform: translateY(3px); }

.kb-hero-art { position: relative; min-height: 270px; display: grid; place-items: center; }
.kb-orbit {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(147, 197, 253, .17);
  border-radius: 50%;
}
.kb-orbit-two { width: 195px; height: 195px; border-style: dashed; }
.kb-device {
  position: relative;
  z-index: 1;
  width: 210px;
  padding: 11px 11px 0;
  border: 1px solid rgba(191, 219, 254, .55);
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(145deg, rgba(226, 239, 255, .22), rgba(30, 64, 115, .42));
  box-shadow: 0 28px 60px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .2);
  transform: rotate(-5deg);
}
.kb-device-screen { display: grid; gap: 12px; min-height: 130px; padding: 25px 20px; border-radius: 7px 7px 2px 2px; background: #f4f8ff; }
.kb-device-screen span { display: block; height: 8px; width: 76%; border-radius: 10px; background: #c9d8ee; }
.kb-device-screen span:first-child { width: 42%; height: 10px; background: #2563eb; }
.kb-device-screen span:last-child { width: 58%; }
.kb-device-base { display: block; height: 9px; margin: 0 -22px; border-radius: 0 0 16px 16px; background: linear-gradient(#dce9fa, #91a9ca); }
.kb-check {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 11%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 4px solid #13315b;
  border-radius: 50%;
  color: #052e2b;
  background: #6ee7b7;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.kb-spark { position: absolute; color: #93c5fd; font-size: 1.6rem; }
.kb-spark-one { top: 45px; left: 16%; }
.kb-spark-two { right: 12%; bottom: 35px; font-size: 2rem; }

.kb-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -1px 0 52px;
  padding: 23px 0;
  border-bottom: 1px solid #e6ebf3;
}
.kb-stat { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 13px; padding: 0 22px; border-right: 1px solid #e6ebf3; }
.kb-stat:first-child { padding-left: 4px; }
.kb-stat:last-child { border-right: 0; }
.kb-stat-icon { grid-row: 1 / 3; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #1d4ed8; background: #eaf2ff; font-size: 1.35rem; }
.kb-stat strong { color: #13213a; font-size: 1.15rem; line-height: 1.2; }
.kb-stat > span:last-child { color: #68758a; font-size: .83rem; }

.kb-section { margin: 0 0 52px; scroll-margin-top: 28px; }
.kb-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 22px; }
.kb-kicker { color: #2563eb; font-size: .69rem; }
.kb-section-heading h2 { margin: 6px 0 0; color: #13213a; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.035em; }
.kb-section-heading > p { max-width: 38ch; margin: 0 0 3px; color: #68758a; font-size: .92rem; }

.kb-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.kb-category-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-color: #e6ebf3;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kb-category-card:hover { transform: translateY(-4px); border-color: var(--category-color); box-shadow: 0 14px 28px rgba(15, 23, 42, .09); }
.kb-category-image { display: block; width: 100%; height: 118px; margin: 0; border-radius: 0; object-fit: cover; background: var(--category-tint); }
.kb-category-content { display: block; padding: 14px 17px 18px; }
.kb-card-count { display: block; margin: 0 0 5px; color: var(--category-color); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.kb-category-card strong { display: block; margin-bottom: 5px; color: #17243b; font-size: 1.1rem; }
.kb-category-content > span:last-child { display: block; padding-right: 9px; color: #68758a; font-size: .83rem; line-height: 1.5; }
.kb-card-arrow { position: absolute; right: 16px; bottom: 16px; color: var(--category-color); font-size: 1.1rem; }
.kb-hardware { --category-color: #2563eb; --category-tint: #eaf2ff; }
.kb-software { --category-color: #7c3aed; --category-tint: #f2eefe; }
.kb-accounts { --category-color: #059669; --category-tint: #e5f8f1; }
.kb-network { --category-color: #d97706; --category-tint: #fff5df; }

.kb-library { padding: 28px; border: 1px solid #e6ebf3; border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(15, 23, 42, .045); }
.kb-search-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #dce5f1; border-radius: 13px; background: #f8faff; }
.kb-search-box { flex: 1 1 300px; display: flex; align-items: center; gap: 11px; min-width: 0; color: #7290b6; }
.kb-search-box > span { font-size: 1.65rem; line-height: 1; }
.kb-search-box input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: .97rem; }
.kb-search-box input:focus-visible { outline: none; }
.kb-search-box kbd { flex: none; padding: 2px 7px; border: 1px solid #dce5f1; border-radius: 5px; color: #718096; background: white; font-family: inherit; font-size: .78rem; font-weight: 500; }
.kb-clear { padding: 8px 12px; border: 1px solid #d7e1ee; color: #34445f; background: #fff; font-size: .82rem; }
.kb-clear:hover { color: #fff; }
.kb-clear[hidden] { display: none; }
.kb-popular { flex: 1 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-left: 30px; }
.kb-popular > span { margin-right: 2px; color: #8290a4; font-size: .66rem; font-weight: 800; letter-spacing: .08em; }
.kb-suggestion { padding: 4px 10px; border: 1px solid #e0e7f1; border-radius: 20px; color: #53627a; background: white; font-size: .73rem; }
.kb-suggestion:hover { border-color: #93b8f5; color: #1d4ed8; background: #eff6ff; }

.kb-library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 22px 0 15px; }
.kb-filters, .kb-view-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.kb-filter { padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; color: #65738a; background: transparent; font-size: .81rem; font-weight: 650; }
.kb-filter:hover { color: #1d4ed8; background: #f1f6ff; }
.kb-filter.is-active { border-color: #dbeafe; color: #1d4ed8; background: #eff6ff; }
.kb-filter span { margin-left: 4px; color: #8290a4; font-size: .72rem; }
.kb-view-actions { justify-content: end; }
.kb-view-actions > span { margin-right: 4px; color: #68758a; font-size: .79rem; white-space: nowrap; }
.kb-view-actions button { padding: 5px 7px; color: #53627a; background: transparent; font-size: .75rem; }
.kb-view-actions button:hover { color: #1d4ed8; background: #eff6ff; }
.kb-library details.cat { margin-bottom: 10px; overflow: hidden; border-color: #e6ebf3; border-radius: 11px; }
.kb-library details.cat[hidden], .kb-library .article-list li[hidden] { display: none; }
.kb-library details.cat summary { position: relative; padding: 16px 48px 16px 18px; color: #1d2b43; font-size: .94rem; list-style: none; }
.kb-library details.cat summary::-webkit-details-marker { display: none; }
.kb-library details.cat summary::after { position: absolute; right: 18px; top: 50%; content: "+"; color: #52719e; font-size: 1.25rem; font-weight: 400; transform: translateY(-50%); }
.kb-library details.cat[open] summary::after { content: "−"; }
.kb-library details.cat[open] summary { border-bottom: 1px solid #edf1f6; background: #fbfcff; }
.kb-library details.cat .body { padding: 7px 18px 14px; }
.kb-library .article-list { margin: 8px 0; columns: 2 260px; column-gap: 36px; }
.kb-library .article-list li { margin: 0; padding: 7px 0; border-bottom: 1px solid #f0f3f7; }
.kb-library .article-list a { color: #42536e; font-size: .86rem; text-decoration: none; }
.kb-library .article-list a:hover { color: #1d4ed8; text-decoration: underline; }
.kb-empty:not([hidden]) { display: block; padding: 28px 14px; border: 1px dashed #d7e1ee; border-radius: 10px; text-align: center; }

.kb-help-callout { display: flex; align-items: center; gap: 16px; margin: 0 0 52px; padding: 22px; border: 1px solid #dce8fb; border-radius: 14px; background: linear-gradient(110deg, #f1f6ff, #f9fbff); }
.kb-help-icon { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #1d4ed8; background: #dbeafe; font-size: 1.25rem; font-weight: 800; }
.kb-help-callout strong { display: block; color: #1d2b43; }
.kb-help-callout p { margin: 2px 0 0; color: #68758a; font-size: .86rem; }
.kb-help-button { margin-left: auto; padding: 10px 14px; border-radius: 8px; color: white; background: #1d4ed8; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kb-help-button:hover { color: white; background: #1e40af; }
.kb-help-button span { margin-left: 6px; }

@media (max-width: 820px) {
  .kb-hero-inner { min-height: 350px; grid-template-columns: 1fr .7fr; gap: 12px; }
  .kb-hero-art { transform: scale(.83); }
  .kb-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-library-toolbar { align-items: flex-start; flex-direction: column; }
  .kb-view-actions { justify-content: flex-start; }
}

@media (max-width: 580px) {
  .kb-hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 30px; }
  .kb-hero h1 { font-size: 2.75rem; }
  .kb-hero-art { display: none; }
  .kb-overview { margin-bottom: 38px; padding: 18px 0; }
  .kb-stat { grid-template-columns: 1fr; justify-items: center; gap: 5px; padding: 0 8px; text-align: center; }
  .kb-stat-icon { grid-row: auto; width: 34px; height: 34px; }
  .kb-stat strong { font-size: 1rem; }
  .kb-stat > span:last-child { font-size: .7rem; }
  .kb-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .kb-category-grid { gap: 10px; }
  .kb-category-image { height: 92px; }
  .kb-category-content { padding: 12px 13px 16px; }
  .kb-category-card strong { font-size: 1rem; }
  .kb-category-content > span:last-child { font-size: .77rem; }
  .kb-library { padding: 18px 13px; border-radius: 13px; }
  .kb-search-panel { padding: 10px; }
  .kb-search-box { flex-basis: 100%; }
  .kb-search-box kbd { display: none; }
  .kb-popular { padding-left: 0; }
  .kb-filters { gap: 3px; }
  .kb-filter { padding: 7px 8px; font-size: .74rem; }
  .kb-view-actions { gap: 3px; }
  .kb-view-actions > span { flex-basis: 100%; margin-bottom: 3px; }
  .kb-library .article-list { columns: 1; }
  .kb-help-callout { align-items: flex-start; flex-wrap: wrap; padding: 17px; }
  .kb-help-callout > div { flex: 1; }
  .kb-help-button { width: 100%; margin-left: 58px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .kb-category-card, .kb-hero-link span { transition: none; }
}

/* Shared layout for the knowledge-base landing, category, and article pages. */
.kb-page {
  min-height: 100vh;
  background: #f5f7fb;
  color: #17243b;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
.kb-page .container { max-width: 1160px; }
.kb-page .site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #0b172b;
}
.kb-page .site-header .container { min-height: 72px; gap: 18px; }
.kb-page .brand { display: inline-flex; align-items: center; gap: 10px; font-size: .96rem; letter-spacing: -.02em; }
.kb-page .brand::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(147, 197, 253, .28);
  border-radius: 10px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, .2);
  content: "N";
  font-size: .9rem;
  font-weight: 800;
}
.kb-page .site-header nav { gap: 6px; }
.kb-page .site-header nav a { padding: 8px 11px; border-radius: 7px; font-size: .84rem; transition: background .18s ease, color .18s ease; }
.kb-page .site-header nav a:hover,
.kb-page .site-header nav a[aria-current] { color: #fff; background: rgba(147, 197, 253, .12); text-decoration: none; }
.kb-nav-toggle { display: none; }
.kb-page .page-intro {
  padding: 46px 0 42px;
  background:
    radial-gradient(circle at 85% 15%, rgba(96, 165, 250, .27), transparent 24rem),
    linear-gradient(120deg, #10203a, #173d72);
}
.kb-page .page-intro h1 { margin: 0 0 9px; color: white; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.045em; }
.kb-page .page-intro p { margin: 0; color: #cad8ed; font-size: 1rem; }
.kb-page main { padding: 30px 0 56px; }
.kb-page .crumbs { color: #718096; }
.kb-page .crumbs a { color: #255bb7; text-decoration: none; }
.kb-page .crumbs a:hover { text-decoration: underline; }
.kb-page .banner {
  height: 190px;
  max-height: none;
  margin: 0 0 22px;
  border: 1px solid #e2e9f3;
  border-radius: 14px;
  background: #e9f0fb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}
.kb-page .tools {
  align-items: center;
  margin: 0 0 13px;
  padding: 10px 13px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
}
.kb-page .tools input[type=search] { min-width: 0; padding: 8px 5px; border: 0; outline: none; background: transparent; box-shadow: none; }
.kb-page .kb-category-count { margin-left: auto; color: #718096; font-size: .8rem; white-space: nowrap; }
.kb-page .article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  columns: initial;
}
.kb-page .article-list li {
  min-width: 0;
  margin: 0;
  border: 1px solid #e4eaf3;
  border-radius: 10px;
  background: #fff;
  break-inside: initial;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.kb-page .article-list li:hover { transform: translateY(-2px); border-color: #b6cef4; box-shadow: 0 8px 18px rgba(30, 64, 175, .07); }
.kb-page .article-list li[hidden] { display: none; }
.kb-page .article-list a {
  position: relative;
  display: block;
  padding: 13px 39px 13px 15px;
  color: #34445f;
  font-size: .87rem;
  text-decoration: none;
}
.kb-page .article-list a::after { position: absolute; top: 50%; right: 14px; color: #8ba2c2; content: "↗"; transform: translateY(-50%); }
.kb-page .article-list a:hover { color: #1d4ed8; }
.kb-page .kb-empty:not([hidden]) { display: block; margin-top: 12px; padding: 22px; border: 1px dashed #cbd7e7; border-radius: 11px; background: #fff; text-align: center; }
.kb-page .site-footer { padding: 30px 0; color: #b3bfd1; background: #0b172b; text-align: left; }
.kb-page .site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; }
.kb-page .site-footer p { margin: 0; color: inherit; font-size: .82rem; }
.kb-page .site-footer p:first-child { max-width: 68ch; }
.kb-page .site-footer a { color: #d5e4fa; text-decoration: none; }
.kb-page .site-footer a:hover { color: white; text-decoration: underline; }

.kb-page .article { max-width: 900px; margin: 0 auto; padding: clamp(20px, 4vw, 42px); border: 1px solid #e3eaf3; border-radius: 18px; background: white; box-shadow: 0 14px 40px rgba(15, 23, 42, .055); }
.kb-page .article > h2 { margin: 32px 0 12px; color: #1b2b45; font-size: 1.35rem; letter-spacing: -.025em; }
.kb-page .article .problem { padding: 17px 18px; border-left: 3px solid #3b82f6; border-radius: 0 10px 10px 0; color: #40516b; background: #f2f7ff; }
.kb-page .article .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 15px 0 24px; }
.kb-page .article .box { padding: 19px; border: 1px solid #e5ebf4; border-radius: 12px; background: #fafcff; }
.kb-page .article .box h2 { margin: 0 0 10px; color: #253752; font-size: 1.05rem; }
.kb-page .article .box ul, .kb-page .article .checklist { padding-left: 20px; color: #51617a; }
.kb-page .article .box li, .kb-page .article .checklist li { margin: 6px 0; }
.kb-page .article .steps { display: grid; gap: 10px; padding-left: 0; counter-reset: kb-step; list-style: none; }
.kb-page .article .steps > li { position: relative; padding: 16px 17px 16px 56px; border: 1px solid #e4eaf3; border-radius: 11px; color: #40516b; background: #fff; counter-increment: kb-step; }
.kb-page .article .steps > li::before { position: absolute; top: 14px; left: 15px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #1d4ed8; background: #eaf2ff; content: counter(kb-step); font-size: .8rem; font-weight: 800; }
.kb-page .article .steps > li.is-complete { border-color: #a7e5c7; background: #f5fcf8; }
.kb-step-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 7px; color: #718096; font-size: .74rem; cursor: pointer; }
.kb-step-toggle input { width: 15px; height: 15px; margin: 0; accent-color: #059669; }
.kb-progress { margin: 16px 0 5px; padding: 15px 17px; border: 1px solid #dbe7f7; border-radius: 11px; background: #f7faff; }
.kb-progress-heading { display: flex; justify-content: space-between; gap: 12px; color: #40516b; font-size: .81rem; font-weight: 700; }
.kb-progress-track { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 10px; background: #e2eaf5; }
.kb-progress-fill { width: 0; height: 100%; border-radius: inherit; background: #2563eb; transition: width .2s ease; }
.kb-article-actions { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.kb-article-actions button { padding: 8px 12px; border: 1px solid #dce5f1; color: #41516b; background: #fff; font-size: .8rem; }
.kb-article-actions button:hover { color: #1d4ed8; background: #f1f6ff; }
.kb-page .article .callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 16px; padding: 20px; border: 1px solid #dbe7f7; border-radius: 13px; background: linear-gradient(110deg, #f0f6ff, #fafcff); }
.kb-page .article .callout p { margin: 0; color: #40516b; }
.kb-page .article .callout strong { color: #172b4d; }
.kb-page .article .callout .btn { flex: none; border-radius: 8px; font-size: .84rem; font-weight: 700; }
.kb-page .article .updated { margin: 18px 0 0; color: #8290a4; font-size: .8rem; }
.kb-page .article .cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (max-width: 760px) {
  .kb-page .site-header .container { position: relative; min-height: 64px; }
  .kb-page .kb-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 11px;
    border: 1px solid rgba(191, 219, 254, .25);
    border-radius: 8px;
    color: #eff6ff;
    background: rgba(255, 255, 255, .07);
    font-size: .83rem;
  }
  .kb-page .site-header nav { flex: 1 0 100%; display: none; align-items: stretch; flex-direction: column; gap: 3px; padding: 0 0 13px; }
  html.kb-js .kb-page .site-header nav { display: none; }
  html.kb-js .kb-page .site-header nav.is-open { display: flex; }
  .kb-page .site-header nav.is-open { display: flex; }
  .kb-page .site-header nav a { padding: 10px 12px; }
  .kb-page .article .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kb-page .page-intro { padding: 36px 0 32px; }
  .kb-page main { padding-top: 22px; }
  .kb-page .banner { height: 140px; }
  .kb-page .article-list { grid-template-columns: 1fr; }
  .kb-page .kb-category-count { width: 100%; margin-left: 0; }
  .kb-page .site-footer .container { align-items: flex-start; flex-direction: column; }
  .kb-page .article { padding: 19px 15px; border-radius: 13px; }
  .kb-page .article .steps > li { padding-right: 12px; padding-left: 51px; }
  .kb-page .article .callout { align-items: flex-start; flex-direction: column; }
}
@media print {
  .kb-page .site-header, .kb-page .site-footer, .kb-article-actions, .kb-progress, .kb-help-callout { display: none !important; }
  .kb-page, .kb-page main { padding: 0; background: #fff; }
  .kb-page .article { max-width: none; border: 0; box-shadow: none; }
}
