/* ==========================================================================
   CRMit — Knowledgebase styles
   Layered on top of the main design system (style.css). KB-only so the
   global cache-busted style.css stays untouched.
   ========================================================================== */

/* ----------  Search  ---------- */
.kb-search { max-width: 620px; margin: 28px auto 0; position: relative; }
.kb-search input {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 16px 22px 16px 52px;
  box-shadow: var(--sh-sm);
  transition: border-color .2s, box-shadow .2s;
}
.kb-search input::placeholder { color: var(--c-muted); }
.kb-search input:focus { outline: none; border-color: var(--c-purple); box-shadow: 0 0 0 4px rgba(123, 92, 255, .14); }
.kb-search .kb-search-ic {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.15rem; color: var(--c-muted); pointer-events: none;
}

/* Hide non-matching cards during search */
.module.is-hidden { display: none; }

.kb-empty {
  display: none;
  text-align: center;
  color: var(--c-muted);
  font-weight: 600;
  padding: 40px 0 8px;
}
.kb-empty.is-visible { display: block; }

/* ----------  Category / guide cards  ---------- */
.module .cat-chip {
  display: inline-block;
  margin-top: 14px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.module.is-soon { opacity: .62; cursor: default; }
.module.is-soon:hover { transform: none; box-shadow: none; border-color: var(--c-line); }
.chip-soon {
  display: inline-block;
  margin-top: 14px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-purple-d);
  background: rgba(123, 92, 255, .12);
  padding: 4px 10px; border-radius: 999px;
}

/* ----------  Breadcrumb  ---------- */
.kb-breadcrumb { padding: 22px 0 0; }
.kb-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; }
.kb-breadcrumb a { color: var(--c-muted); }
.kb-breadcrumb a:hover { color: var(--c-purple-d); }
.kb-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--c-line); }
.kb-breadcrumb li[aria-current] { color: var(--c-ink); }

/* ----------  Article meta  ---------- */
.kb-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
  margin-top: 18px; color: var(--c-muted); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.kb-meta .dot { color: var(--c-line); }

/* ----------  Article body  ---------- */
.kb-article { max-width: 760px; margin: 0 auto; }
.kb-article > p { font-size: 1.08rem; }
.kb-article h2 { margin-top: 48px; }
.kb-article h3 { margin-top: 32px; }

/* Numbered steps */
.kb-steps { counter-reset: kb-step; margin: 32px 0; display: grid; gap: 20px; }
.kb-steps > li {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 24px 26px 24px 74px;
  box-shadow: var(--sh-sm);
}
.kb-steps > li::before {
  counter-increment: kb-step;
  content: counter(kb-step);
  position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  background: var(--g-brand);
}
.kb-steps > li h3 { margin: 0 0 6px; font-size: 1.12rem; }
.kb-steps > li p:last-child { margin-bottom: 0; }
.kb-steps ul { list-style: disc; padding-left: 20px; margin: 10px 0 0; }
.kb-steps ul li { color: var(--c-ink-2); margin-bottom: 6px; }

/* Callout / tip box */
.kb-callout {
  display: flex; gap: 14px;
  background: var(--g-brand-soft);
  border: 1px solid rgba(123, 92, 255, .18);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 28px 0;
}
.kb-callout .kb-callout-ic { font-size: 1.4rem; line-height: 1.2; flex: none; }
.kb-callout p { margin: 0; color: var(--c-ink-2); }
.kb-callout strong { color: var(--c-ink); }

/* Inline UI reference (button / menu names) */
.kb-ui {
  font-weight: 700; color: var(--c-purple-d);
  background: rgba(123, 92, 255, .10);
  padding: 1px 7px; border-radius: 6px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .kb-steps > li { padding: 22px 20px 22px 20px; }
  .kb-steps > li::before { position: static; margin-bottom: 12px; }
}
