/* Knowledge base article styling for seeded (and future) help articles.
   Loaded on knowledge base pages only, client and admin.
   Modern editorial look: photo heroes, clear hierarchy, calm callouts.
   Class names are kept stable (kbx-*) so existing and new content both style. */

.kbx-article{
  --kbx-ink:#151d29; --kbx-body:#38424f; --kbx-muted:#697585;
  --kbx-line:#e6e9ef; --kbx-navy:#0f1f3d; --kbx-gold:#c9a84c; --kbx-accent:#1c4e7a;
  max-width:820px;
  font-size:16.5px;
  line-height:1.75;
  color:var(--kbx-body);
  -webkit-font-smoothing:antialiased;
}

.kbx-article p{margin:0 0 1.05em}
.kbx-article a{color:var(--kbx-accent);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
.kbx-article strong{color:var(--kbx-ink)}

.kbx-article h2{
  margin:2em 0 .55em;
  font-size:1.55rem;
  font-weight:700;
  line-height:1.25;
  letter-spacing:-.01em;
  color:var(--kbx-ink);
}
.kbx-article h3{
  margin:1.6em 0 .45em;
  font-size:1.2rem;
  font-weight:700;
  color:var(--kbx-ink);
}

.kbx-article ul,.kbx-article ol{margin:0 0 1.2em;padding-left:1.3em}
.kbx-article li{margin:.4em 0}

/* Lead paragraph */
.kbx-lead{
  font-size:1.2rem;
  line-height:1.6;
  color:var(--kbx-ink);
  margin-bottom:1.2em;
}

/* Hero: real photo (img) or legacy illustration (svg) */
.kbx-hero{
  margin:0 0 1.8em;
  border-radius:18px;
  overflow:hidden;
  line-height:0;
  box-shadow:0 18px 40px rgba(15,31,61,.14);
  background:#eef1f6;
}
.kbx-hero img{
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}
.kbx-hero svg{width:100%;height:auto;display:block}

/* Callouts */
.kbx-callout{
  display:flex;
  gap:12px;
  margin:1.5em 0;
  padding:16px 18px;
  border-radius:14px;
  background:#f4f7fb;
  border:1px solid #e0e8f2;
  border-left:4px solid var(--kbx-accent);
  font-size:.99rem;
}
.kbx-callout p{margin:0}
.kbx-callout p + p{margin-top:.5em}
.kbx-callout .kbx-callout-icon{flex:0 0 auto;font-size:19px;line-height:1.5}
.kbx-callout.kbx-tip{background:#f6faf4;border-color:#dcecd6;border-left-color:#4e9a51}
.kbx-callout.kbx-note{background:#fbf7ef;border-color:#efe3cc;border-left-color:var(--kbx-gold)}
.kbx-callout.kbx-warn{background:#fdf4ef;border-color:#f3d6c5;border-left-color:#d67a45}
.kbx-callout-label{font-weight:700;color:var(--kbx-ink);margin-right:.3em}

/* Numbered steps */
.kbx-steps{counter-reset:kbx-step;list-style:none;margin:1.2em 0 1.5em;padding:0}
.kbx-steps > li{
  counter-increment:kbx-step;
  position:relative;
  margin:0 0 1em;
  padding:2px 0 2px 48px;
  min-height:32px;
}
.kbx-steps > li::before{
  content:counter(kbx-step);
  position:absolute;left:0;top:0;
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg,var(--kbx-navy),var(--kbx-accent));
  color:#fff;font-size:14px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(15,31,61,.25);
}
.kbx-steps > li > strong{display:block;margin-bottom:1px;color:var(--kbx-ink)}

/* Tables */
.kbx-table{width:100%;margin:1.5em 0;border-collapse:collapse;font-size:.97rem;overflow:hidden;border-radius:12px;box-shadow:0 1px 0 var(--kbx-line)}
.kbx-table th,.kbx-table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--kbx-line);vertical-align:top}
.kbx-table thead th{background:var(--kbx-navy);color:#fff;font-weight:600;border:0}
.kbx-table tbody tr:nth-child(even){background:#f7f9fc}
.kbx-table tbody tr:last-child td{border-bottom:0}

/* Figures (photo or illustration) */
.kbx-figure{margin:1.6em 0;border-radius:14px;overflow:hidden;border:1px solid var(--kbx-line);line-height:0}
.kbx-figure img,.kbx-figure svg{width:100%;height:auto;display:block}
.kbx-figure figcaption{padding:11px 15px;font-size:.85rem;line-height:1.5;color:var(--kbx-muted);background:#f9fafc}

/* Pull quote (optional) */
.kbx-quote{margin:1.8em 0;padding:.2em 0 .2em 1.3em;border-left:3px solid var(--kbx-gold);
  font-size:1.28rem;line-height:1.45;color:var(--kbx-ink);font-weight:500}

.kbx-kbd{display:inline-block;padding:1px 7px;border-radius:6px;border:1px solid #d7dee6;border-bottom-width:2px;
  background:#f6f8fb;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82em;color:#26303d}

@media (max-width:600px){
  .kbx-article{font-size:16px}
  .kbx-article h2{font-size:1.35rem}
  .kbx-hero{border-radius:14px}
}
