/* DANIAN Knowledge Base — /kb pages (ZP chrome parity pass, Sep 1 2026).
   Colors are the exact Zoho portal values (Alek's changes.txt #3/#4). */

.kb-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  font-family: 'Geist', sans-serif;
  color: #0E1413;
}
.kb-crumbs { font-size: 14px; color: #545B5A; margin-bottom: 14px; }
.kb-crumbs a { color: #0F4C5C; text-decoration: none; }
.kb-h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; color: #0E1413; }
.kb-lead { font-size: 16px; color: #545B5A; margin: 0 0 8px; }

/* ---- article body ---- */
.kb-body { font-size: 16px; line-height: 1.65; color: #0E1413; }
/* Zoho parity: adjacent source rows render with ZERO paragraph margin — all vertical
   gaps come from explicit blank paragraphs (ENTER+ENTER) and block margins. */
.kb-body p { margin: 0; }
.kb-body h2, .kb-body h3 { margin: 26px 0 10px; font-weight: 500; color: #0E1413; }
.kb-body h2 { font-size: 22px; }
.kb-body h3 { font-size: 18px; }
.kb-body ul, .kb-body ol { padding-left: 24px; margin: 0 0 16px; }
.kb-body a { color: #0F4C5C; }
.kb-body code { background: #F2F2EE; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.kb-body .emdash-html-block { margin: 0; } /* spacing comes from the inner p */

/* Highlight paragraphs (htmlBlock <p class="kb-p">): no extra margins so the
   hard-break separated lines sit tight, like the portal. */
.kb-body p.kb-p { margin: 0 0 16px; line-height: 1.65; }
.kb-body .kbhl { border-radius: 2px; padding: 1px 3px; }
.kb-body .kbhl-green { background-color: rgb(204, 255, 204); }
.kb-body .kbhl-yellow { background-color: rgb(255, 255, 204); }
.kb-body .kb-b { font-weight: 700; }

/* ---- 'Explore the platform' CTA box (exact Zoho design, class-based) ---- */
.kb-body .kb-cta-box {
  margin-top: 50px;
  padding: 24px;
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  border-left: 4px solid #00A3FF;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.kb-body .kb-cta-title { margin: 0 0 8px 0; color: #0B1120; font-size: 18px; font-weight: 600; display: block; }
.kb-body .kb-cta-text { margin: 0 0 16px 0; color: #4D5A6D; font-size: 15px; line-height: 1.5; }
.kb-body .kb-cta-btn {
  display: inline-block;
  background-color: #ffffff;
  border: 2px solid #00A3FF;
  color: #00A3FF;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 163, 255, 0.2);
}
.kb-body .kb-cta-btn:hover { background: #00A3FF; color: #fff; }

/* ---- related ---- */
.kb-related { margin-top: 44px; border-top: 1px solid #E7E9EA; padding-top: 20px; }
.kb-related h2 { font-size: 18px; margin: 0 0 10px; font-weight: 500; }
.kb-related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.kb-related a { color: #0F4C5C; text-decoration: none; font-weight: 500; }

/* ---- /kb hub ---- */
.kb-search { display: flex; gap: 10px; margin: 0 0 40px; max-width: 560px; }
.kb-search input[type="search"] {
  flex: 1; padding: 12px 16px; border: 1px solid #D2D2CB; border-radius: 6px;
  font-size: 15px; font-family: 'Geist', sans-serif; background: #fff;
}
.kb-search input[type="search"]:focus { outline: 2px solid #0F4C5C; outline-offset: -1px; }
.kb-search button, .kb-btn {
  padding: 12px 24px; border: 0; border-radius: 6px; cursor: pointer;
  background: #0F4C5C; color: #FAFAF8; font-family: 'Geist', sans-serif;
  font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: 0px;
}
.kb-search button:hover, .kb-btn:hover { background: #0E1413; color: #fff; }

.kb-section-title { font-size: 26px; font-weight: 500; margin: 40px 0 6px; color: #0E1413; letter-spacing: -0.01em; }
.kb-section-sub { color: #545B5A; font-size: 15px; margin: 0 0 18px; }
.kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kb-cat { background: #fff; border: 1px solid #E7E9EA; border-radius: 8px; padding: 16px 18px; transition: box-shadow .18s ease, transform .18s ease; }
.kb-cat:hover { box-shadow: 0 6px 18px rgba(15, 76, 92, 0.10); transform: translateY(-1px); }
.kb-cat h2 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.kb-cat a { color: #0E1413; text-decoration: none; }
.kb-cat p { color: #545B5A; margin: 0; font-size: 13px; }

/* ---- category page ---- */
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kb-list a { color: #0F4C5C; font-weight: 500; text-decoration: none; font-size: 16px; }
.kb-list a:hover { text-decoration: underline; }
.kb-sum { margin: 4px 0 0; color: #545B5A; font-size: 14px; }
.kb-back { color: #0F4C5C; }

@media (max-width: 640px) {
  .kb-h1 { font-size: 26px; }
  .kb-search { flex-direction: column; }
  .kb-wrap { padding: 24px 16px 60px; }
}