/* DignityHost Knowledgebase article styling. Scoped to .kb-article so the WHMCS template is untouched. */
.kb-article {
  --kb-ink: #0f172a;
  --kb-muted: #475569;
  --kb-line: #e2e8f0;
  --kb-paper: #f8fafc;
  --kb-navy: #0a3361;
  --kb-blue: #0e5aa7;
  --kb-cyan: #0891b2;
  color: var(--kb-ink);
  font-size: 16.5px;
  line-height: 1.78;
  max-width: 820px;
  overflow-wrap: anywhere;
}
.kb-article > *:first-child { margin-top: 0; }
.kb-article p { margin: 0 0 1.05em; }
.kb-article a { color: var(--kb-blue); text-decoration: underline; text-underline-offset: 2px; }
.kb-article a:hover { color: var(--kb-cyan); }
.kb-article strong { font-weight: 700; }

.kb-article h2 {
  font-size: 1.55em; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em;
  margin: 2.1em 0 0.7em; padding-bottom: 0.35em; border-bottom: 2px solid var(--kb-line);
  scroll-margin-top: 90px;
}
.kb-article h3 { font-size: 1.18em; line-height: 1.35; font-weight: 700; margin: 1.6em 0 0.5em; }
.kb-article ul, .kb-article ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.kb-article li { margin: 0.35em 0; }
.kb-article li > p { margin: 0.3em 0; }

.kb-article .kb-lead {
  font-size: 1.16em; line-height: 1.65; color: var(--kb-muted); margin: 0 0 1.2em;
  padding-left: 1em; border-left: 4px solid var(--kb-cyan);
}

/* at-a-glance chips */
.kb-article .kb-glance {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.6em; padding: 0;
}
.kb-article .kb-glance li {
  margin: 0; padding: 8px 14px; background: var(--kb-paper); border: 1px solid var(--kb-line);
  border-radius: 10px; display: flex; flex-direction: column; line-height: 1.3; min-width: 140px;
}
.kb-article .kb-glance span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--kb-muted); }
.kb-article .kb-glance b { font-size: 14.5px; font-weight: 700; }

/* numbered steps */
.kb-article ol.kb-steps { list-style: none; counter-reset: kbstep; padding-left: 0; margin: 1.2em 0 1.6em; }
.kb-article ol.kb-steps > li {
  counter-increment: kbstep; position: relative; margin: 0 0 14px; padding: 12px 16px 12px 58px;
  background: #fff; border: 1px solid var(--kb-line); border-radius: 12px; min-height: 52px;
}
.kb-article ol.kb-steps > li::before {
  content: counter(kbstep); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px;
  border-radius: 50%; background: linear-gradient(135deg, var(--kb-cyan), var(--kb-blue)); color: #fff;
  font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center;
}

/* callouts */
.kb-article .kb-callout {
  margin: 1.4em 0; padding: 14px 18px; border-radius: 12px; border: 1px solid; border-left-width: 5px;
}
.kb-article .kb-callout strong { display: block; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.kb-article .kb-callout > div > p:last-child { margin-bottom: 0; }
.kb-article .kb-tip  { background: #ecfdf5; border-color: #10b981; color: #064e3b; }
.kb-article .kb-note { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
.kb-article .kb-warn { background: #fff7ed; border-color: #f59e0b; color: #7c2d12; }
.kb-article .kb-key  { background: #f5f3ff; border-color: #7c3aed; color: #4c1d95; }
.kb-article .kb-callout a { color: inherit; font-weight: 600; }

/* code */
.kb-article code { background: #eef2f7; border-radius: 5px; padding: 1px 6px; font-size: 0.9em; }
.kb-article pre.kb-code {
  position: relative; background: #0b1220; color: #dbe7ff; border-radius: 12px; padding: 16px 18px;
  margin: 1.3em 0; overflow-x: auto; font-size: 14px; line-height: 1.6; border: 1px solid #1e293b;
}
.kb-article pre.kb-code::before {
  content: attr(data-lang); position: absolute; top: 8px; right: 12px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: #7dd3fc; opacity: .85;
}
.kb-article pre.kb-code code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }

/* tables */
.kb-article .kb-table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--kb-line); border-radius: 12px; }
.kb-article table.kb-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.kb-article .kb-table caption { caption-side: top; text-align: left; padding: 10px 14px; font-weight: 700; background: var(--kb-paper); }
.kb-article .kb-table th { background: var(--kb-navy); color: #fff; text-align: left; padding: 10px 14px; font-weight: 700; white-space: nowrap; }
.kb-article .kb-table td { padding: 10px 14px; border-top: 1px solid var(--kb-line); vertical-align: top; }
.kb-article .kb-table tr:nth-child(even) td { background: #f8fafc; }

/* figures */
.kb-article figure.kb-figure { margin: 1.8em 0; text-align: center; }
.kb-article figure.kb-figure img {
  max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--kb-line);
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35);
}
.kb-article figure.kb-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--kb-muted); }
.kb-article figure.kb-hero img { border: 0; box-shadow: 0 18px 40px -22px rgba(7, 26, 51, .6); }

/* faq */
.kb-article .kb-faq details { border: 1px solid var(--kb-line); border-radius: 12px; margin: 10px 0; background: #fff; }
.kb-article .kb-faq summary { cursor: pointer; padding: 13px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.kb-article .kb-faq summary::-webkit-details-marker { display: none; }
.kb-article .kb-faq summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font-size: 22px; color: var(--kb-cyan); }
.kb-article .kb-faq details[open] summary::after { content: "\2212"; }
.kb-article .kb-faq details[open] summary { border-bottom: 1px solid var(--kb-line); }
.kb-article .kb-faq-a { padding: 12px 18px 4px; }

/* cta, related, refs */
.kb-article .kb-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin: 2.2em 0; padding: 20px 24px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #071a33, #0a3361 55%, #0e5aa7);
}
.kb-article .kb-cta strong { display: block; font-size: 1.12em; }
.kb-article .kb-cta span { display: block; opacity: .85; font-size: 14.5px; line-height: 1.5; max-width: 480px; }
.kb-article .kb-cta a {
  background: #22d3ee; color: #06182f; font-weight: 800; padding: 11px 20px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
.kb-article .kb-cta a:hover { background: #fff; color: #06182f; }
.kb-article .kb-related ul, .kb-article .kb-refs ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.kb-article .kb-related li, .kb-article .kb-refs li { margin: 0; }
.kb-article .kb-related a {
  display: block; padding: 11px 16px; border: 1px solid var(--kb-line); border-radius: 10px; text-decoration: none;
  font-weight: 600; background: #fff;
}
.kb-article .kb-related a::before { content: "\2192\00a0\00a0"; color: var(--kb-cyan); }
.kb-article .kb-related a:hover { border-color: var(--kb-cyan); background: var(--kb-paper); }
.kb-article .kb-refs a { font-size: 15px; }
.kb-article .kb-updated { margin-top: 2em; font-size: 13.5px; color: var(--kb-muted); }

@media (max-width: 640px) {
  .kb-article { font-size: 16px; }
  .kb-article h2 { font-size: 1.35em; }
  .kb-article ol.kb-steps > li { padding-left: 52px; }
  .kb-article .kb-cta { padding: 18px; }
}
@media print { .kb-article .kb-cta, .kb-article .kb-faq summary::after { display: none; } .kb-article details > * { display: block !important; } }
