/* Deltek Learning Hub — Knowledgebase
   Type:    Manrope (display) + Source Sans 3 (body)
   Colors:  navy header, primary blue, neutral grays
*/

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  /* Brand */
  --navy-900: #07172e;
  --navy-800: #0b1f3f;
  --navy-700: #102a55;
  --navy-600: #173a72;
  --blue-700: #0a4ea8;
  --blue-600: #0c63c4;
  --blue-500: #1980e6;
  --blue-100: #e6f0fb;
  --blue-50:  #f3f8fd;
  --accent:   #00a3e0;

  /* Neutrals */
  --ink-900: #0f172a;
  --ink-800: #1a2235;
  --ink-700: #2a3550;
  --ink-600: #475066;
  --ink-500: #6b7488;
  --ink-400: #9099aa;
  --ink-300: #c8cdd6;
  --ink-200: #e2e5ec;
  --ink-150: #ebeef3;
  --ink-100: #f1f3f7;
  --ink-50:  #f7f8fb;
  --bg:      #ffffff;
  --panel:   #f7f8fb;
  --panel-2: #eef1f6;
  --border:  #e3e7ee;
  --border-strong: #c8cfdb;

  /* Status */
  --success: #1f7a4c;
  --warning: #b8730a;
  --danger:  #b3261e;

  /* Type */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --content-max: 1320px;
  --sidebar-w: 280px;
  --toc-w: 240px;
  --header-h: 60px;
  --subnav-h: 0px;

  /* Radius + shadow */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --shadow-md: 0 6px 18px -8px rgba(15,23,42,.15), 0 2px 6px -2px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px -28px rgba(15,23,42,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Top header ---------- */
.kb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--navy-900);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.kb-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.kb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.kb-brand:hover { color: #fff; text-decoration: none; }
.kb-brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue-500), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
}
.kb-brand__sep {
  width: 1px; height: 22px;
  background: rgba(255,255,255,.18);
  margin: 0 4px;
}
.kb-brand__label {
  font-weight: 500;
  color: rgba(255,255,255,.85);
  font-family: var(--font-display);
  font-size: 14px;
}
.kb-brand__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.012em;
  color: #fff;
  white-space: nowrap;
}

.kb-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.kb-search__input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.kb-search__input::placeholder { color: rgba(255,255,255,.55); }
.kb-search__input:focus {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
}
.kb-search__icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: rgba(255,255,255,.6);
  pointer-events: none;
}
.kb-search__kbd {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  font: 11px var(--font-mono);
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  padding: 1px 6px;
  border-radius: 3px;
}

.kb-nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.kb-nav-link {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
}
.kb-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  text-decoration: none;
}
.kb-nav-link--cta {
  background: var(--blue-600);
  color: #fff;
  padding: 7px 14px;
  margin-left: 6px;
}
.kb-nav-link--cta:hover {
  background: var(--blue-500);
  color: #fff;
}

/* ---------- Sub-product nav ---------- */
.kb-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--subnav-h);
}
.kb-subnav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
}
.kb-subnav__link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--ink-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.kb-subnav__link:hover { color: var(--blue-700); text-decoration: none; }
.kb-subnav__link--active {
  color: var(--blue-700);
  border-bottom-color: var(--blue-600);
}
.kb-subnav__divider {
  width: 1px; align-self: center; height: 18px;
  background: var(--border);
  margin: 0 4px;
}

/* ---------- Layout shell ---------- */
.kb-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  gap: 40px;
  align-items: start;
}
.kb-shell--no-toc {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
.kb-shell--full {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Sidebar ---------- */
.kb-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--subnav-h));
  height: calc(100vh - var(--header-h) - var(--subnav-h));
  overflow-y: auto;
  padding: 24px 8px 40px 0;
  border-right: 1px solid var(--border);
  font-size: 14px;
}
.kb-sidebar__group { margin-bottom: 4px; }
.kb-sidebar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 14px 12px 6px;
}
.kb-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kb-sidebar__item {}
.kb-sidebar__link {
  display: block;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-700);
  text-decoration: none;
  line-height: 1.4;
  font-size: 13.5px;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.kb-sidebar__link:hover {
  background: var(--ink-50);
  color: var(--ink-900);
  text-decoration: none;
}
.kb-sidebar__link--active {
  color: var(--blue-700);
  background: var(--blue-50);
  font-weight: 600;
  border-left-color: var(--blue-600);
}
.kb-sidebar__category {
  margin: 12px 0 2px;
}
.kb-sidebar__category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-900);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.005em;
}
.kb-sidebar__category-btn:hover { background: var(--ink-50); }
.kb-sidebar__chev {
  width: 12px; height: 12px;
  transition: transform .15s ease;
  color: var(--ink-500);
}
.kb-sidebar__category[data-open="true"] .kb-sidebar__chev { transform: rotate(90deg); }
.kb-sidebar__sublist { display: none; padding-left: 12px; }
.kb-sidebar__category[data-open="true"] .kb-sidebar__sublist { display: block; }

/* ---------- Main column ---------- */
.kb-main {
  min-width: 0;
  padding: 28px 0 80px;
}

.kb-crumbs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: var(--ink-500);
}
.kb-crumbs li {
  display: inline-flex;
  align-items: center;
}
.kb-crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin: 0 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%236b7488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%236b7488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M9 6l6 6-6 6'/></svg>") center/contain no-repeat;
  opacity: .6;
}
.kb-crumbs a {
  color: var(--ink-600);
  text-decoration: none;
}
.kb-crumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.kb-crumbs li:last-child {
  color: var(--ink-900);
  font-weight: 500;
}

/* ---------- Article ---------- */
.kb-article {
  max-width: 760px;
}
.kb-article__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 10px;
}
.kb-article__eyebrow::before {
  content: "";
  width: 18px; height: 1.5px;
  background: var(--blue-600);
  border-radius: 1px;
}
.kb-article h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 14px;
  text-wrap: balance;
}
.kb-article__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0 0 8px;
  text-wrap: pretty;
}
.kb-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 18px 0 28px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-500);
}
.kb-article__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kb-article__meta-item strong {
  color: var(--ink-700);
  font-weight: 600;
}
.kb-article__meta svg {
  width: 14px; height: 14px;
  color: var(--ink-400);
}

.kb-article h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 40px 0 12px;
  scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 16px);
}
.kb-article h2:first-child { margin-top: 0; }
.kb-article h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink-900);
  margin: 28px 0 8px;
}
.kb-article h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-800);
  margin: 22px 0 6px;
}
.kb-article p {
  margin: 0 0 14px;
  color: var(--ink-800);
  text-wrap: pretty;
}
.kb-article ul, .kb-article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.kb-article li {
  margin-bottom: 6px;
  color: var(--ink-800);
}
.kb-article li::marker {
  color: var(--ink-500);
}
.kb-article strong { color: var(--ink-900); font-weight: 600; }
.kb-article em { font-style: italic; }
.kb-article code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--ink-100);
  color: var(--ink-900);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.kb-article pre {
  background: var(--navy-900);
  color: #e6ebf3;
  padding: 16px 18px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
}
.kb-article pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* Tables */
.kb-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.kb-article thead { background: var(--ink-50); }
.kb-article th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-700);
  letter-spacing: 0.01em;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.kb-article td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-800);
}
.kb-article tbody tr:hover { background: var(--ink-50); }

/* Legacy step blocks from original markup */
.kb-article .step {
  position: relative;
  padding: 14px 16px 14px 56px;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue-600);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.kb-article .step .step-number {
  position: absolute;
  left: 14px; top: 14px;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  margin: 0;
}

.kb-article .doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
}
.kb-article .doc-item {
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.kb-article .doc-item:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kb-article .doc-title { margin: 0; }
.kb-article .doc-title a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.kb-article .doc-summary { color: var(--ink-600); font-size: 14.5px; flex: 1; }
.kb-article .doc-link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
}
.kb-article .doc-link a::after {
  content: "→";
  font-size: 14px;
  transition: transform .15s;
}
.kb-article .doc-item:hover .doc-link a::after { transform: translateX(2px); }

/* FAQ sections */
.kb-article .faq-section { margin-bottom: 24px; }
.kb-article .question {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  margin: 18px 0 6px;
  padding-left: 22px;
  position: relative;
}
.kb-article .question::before {
  content: "Q";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
}
.kb-article .answer {
  display: block;
  color: var(--ink-700);
  padding-left: 22px;
  margin-bottom: 14px;
  position: relative;
}
.kb-article .answer::before {
  content: "A";
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-700);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
}

/* Callouts (used by custom transform) */
.kb-callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--panel);
  margin: 0 0 18px;
}
.kb-callout__icon {
  flex: 0 0 20px;
  width: 20px; height: 20px;
  margin-top: 2px;
  color: var(--blue-600);
}
.kb-callout__body { color: var(--ink-800); font-size: 14.5px; }
.kb-callout--info { background: var(--blue-50); border-color: #cfe3f7; }
.kb-callout--info .kb-callout__icon { color: var(--blue-700); }
.kb-callout--warn { background: #fff7ea; border-color: #f1e0b0; }
.kb-callout--warn .kb-callout__icon { color: var(--warning); }

/* ---------- TOC (right rail) ---------- */
.kb-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--subnav-h));
  align-self: start;
  padding: 28px 0 24px;
  font-size: 13.5px;
}
.kb-toc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 10px;
}
.kb-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--border);
}
.kb-toc__link {
  display: block;
  padding: 5px 12px;
  margin-left: -1px;
  color: var(--ink-600);
  text-decoration: none;
  border-left: 1px solid transparent;
  line-height: 1.35;
}
.kb-toc__link:hover { color: var(--blue-700); text-decoration: none; }
.kb-toc__link--active {
  color: var(--blue-700);
  font-weight: 600;
  border-left-color: var(--blue-600);
}
.kb-toc__item--h3 .kb-toc__link {
  padding-left: 22px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ---------- Feedback + footer ---------- */
.kb-feedback {
  margin: 50px 0 0;
  padding: 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: 760px;
}
.kb-feedback__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  margin: 0;
}
.kb-feedback__actions { display: flex; gap: 10px; margin-left: auto; }
.kb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--ink-800);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--r-md);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.kb-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
  text-decoration: none;
}
.kb-btn--primary {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}
.kb-btn--primary:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

.kb-related {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.kb-related__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 12px;
}
.kb-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.kb-related__card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink-900);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.kb-related__card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}
.kb-related__card-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 700;
  margin-bottom: 4px;
}
.kb-related__card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
}

.kb-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  margin-top: 60px;
  padding: 40px 0 28px;
  font-size: 13.5px;
}
.kb-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.kb-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.kb-footer__heading {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.kb-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kb-footer__list a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.kb-footer__list a:hover { color: #fff; text-decoration: none; }
.kb-footer__brand-blurb {
  margin: 10px 0 0;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  line-height: 1.55;
  max-width: 320px;
}
.kb-footer__legal {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.kb-footer__legal a { color: rgba(255,255,255,.6); text-decoration: none; }
.kb-footer__legal a:hover { color: #fff; text-decoration: none; }

/* ---------- Home / landing ---------- */
.kb-hero {
  background:
    radial-gradient(800px 280px at 20% 0%, rgba(25,128,230,.18), transparent 60%),
    radial-gradient(700px 240px at 90% 100%, rgba(0,163,224,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 60px 0 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.kb-hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.kb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,.85);
  margin-bottom: 18px;
}
.kb-hero__eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,163,224,.25);
}
.kb-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  max-width: 720px;
  text-wrap: balance;
}
.kb-hero__sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  max-width: 620px;
  margin: 0 0 26px;
}
.kb-hero__search {
  max-width: 620px;
  position: relative;
}
.kb-hero__search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 50px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.95);
  color: var(--ink-900);
  font: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: 0 12px 40px -16px rgba(0,0,0,.4);
}
.kb-hero__search input:focus { background: #fff; border-color: var(--blue-500); }
.kb-hero__search svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-500);
}

.kb-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.kb-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
}
.kb-hero__chip:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }

.kb-home {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.kb-home__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 4px;
}
.kb-home__subtitle {
  color: var(--ink-500);
  margin: 0 0 22px;
  font-size: 15px;
}
.kb-home__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.kb-cat {
  display: block;
  padding: 22px 22px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink-900);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.kb-cat:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.kb-cat__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.kb-cat__icon svg { width: 18px; height: 18px; }
.kb-cat--alt .kb-cat__icon { background: #ecf6ee; color: var(--success); }
.kb-cat--warn .kb-cat__icon { background: #fef3df; color: var(--warning); }
.kb-cat--violet .kb-cat__icon { background: #efeafe; color: #5237b8; }
.kb-cat--teal .kb-cat__icon { background: #def6f4; color: #0a7d76; }
.kb-cat--rose .kb-cat__icon { background: #fde6ec; color: #b3265c; }
.kb-cat--slate .kb-cat__icon { background: var(--ink-100); color: var(--ink-700); }
.kb-cat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 4px;
}
.kb-cat__count {
  font-size: 12.5px;
  color: var(--ink-500);
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
}
.kb-cat__desc {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.5;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.kb-cat__topics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
}
.kb-cat__topics li {
  color: var(--ink-600);
  padding-left: 14px;
  position: relative;
}
.kb-cat__topics li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-300);
}
.kb-cat__arrow {
  position: absolute;
  top: 22px; right: 22px;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  transition: color .15s, transform .15s;
}
.kb-cat:hover .kb-cat__arrow { color: var(--blue-700); transform: translateX(2px); }

.kb-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.kb-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 36px 0 16px;
}
.kb-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0;
}
.kb-section__more {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
}

.kb-popular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.kb-popular__card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  text-decoration: none;
  color: var(--ink-900);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.kb-popular__card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}
.kb-popular__num {
  flex: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--blue-700);
  background: var(--blue-50);
  width: 28px; height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kb-popular__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-900);
  margin: 4px 0 0;
}

.kb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}
.kb-stat {
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}
.kb-stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  line-height: 1;
}
.kb-stat__lbl {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .kb-shell { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: 32px; }
  .kb-toc { display: none; }
}
@media (max-width: 820px) {
  :root { --header-h: 56px; --subnav-h: 44px; }
  .kb-search { display: none; }
  .kb-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kb-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0 16px;
  }
  .kb-article h1 { font-size: 30px; }
  .kb-hero h1 { font-size: 32px; }
  .kb-hero { padding: 40px 0 40px; }
  .kb-footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 540px) {
  .kb-nav-links { display: none; }
  .kb-footer__cols { grid-template-columns: 1fr; }
}

/* Hide elements that are present in source but rendered via the new chrome */
.kb-source-only { display: none !important; }
