body[data-template-file="knowledgebase"] .dh-client-page .main-content { padding-right: 14px !important; padding-left: 14px !important; }
body[data-template-file="knowledgebase"] .sidebar .panel:has(#Primary_Sidebar-Support_Knowledgebase_Categories-No_Support_Knowledgebase_Categories) { display:none; }
body[data-template-file="knowledgebase"] .dh-kb-page { --kb-purple:#7416d5; --kb-dark:#3d076f; --kb-ink:#22152d; --kb-muted:#706579; --kb-line:#e8dff0; width:100%; color:var(--kb-ink); }

.dh-kb-hero { padding:40px; position:relative; overflow:hidden; border:1px solid #e2d4ef; border-radius:24px; color:#fff; background:radial-gradient(circle at 88% 15%,rgba(194,111,255,.48),transparent 26%),linear-gradient(125deg,#3d076f 0%,#7114cf 56%,#8d24e8 100%); box-shadow:0 20px 48px rgba(74,15,126,.19); }
.dh-kb-hero:after { content:""; width:250px; height:250px; position:absolute; top:-145px; right:-70px; border:1px solid rgba(255,255,255,.17); border-radius:50%; box-shadow:0 0 0 42px rgba(255,255,255,.035),0 0 0 82px rgba(255,255,255,.025); }
.dh-kb-hero-copy { max-width:760px; position:relative; z-index:1; }
.dh-kb-eyebrow,.dh-kb-section-kicker { display:inline-flex; align-items:center; gap:7px; font-size:11px; font-weight:800; letter-spacing:.75px; text-transform:uppercase; }
.dh-kb-eyebrow { padding:7px 11px; border:1px solid rgba(255,255,255,.22); border-radius:999px; color:#f3ddff; background:rgba(255,255,255,.09); }
.dh-kb-hero h2 { margin:20px 0 10px; color:#fff; font-size:clamp(30px,4vw,44px); font-weight:900; line-height:1.12; letter-spacing:-1px; }
.dh-kb-hero-copy p { max-width:690px; margin:0; color:rgba(255,255,255,.78); font-size:15px; line-height:1.7; }
.dh-kb-search-form { margin-top:28px; position:relative; z-index:2; }
.dh-kb-search-form .kb-search { width:100%; display:flex; filter:drop-shadow(0 10px 22px rgba(37,0,66,.22)); }
.dh-kb-search-form .dh-kb-search-icon { width:54px; display:flex; align-items:center; justify-content:center; border-radius:12px 0 0 12px; color:#8a7b93; background:#fff; font-size:16px; }
.dh-kb-search-form .form-control { height:58px; padding:0 14px 0 0; flex:1; border:0; border-radius:0; color:#302538; background:#fff; box-shadow:none; font-size:15px; }
.dh-kb-search-form .input-group-btn { width:auto; display:flex; }
.dh-kb-search-form .btn { min-width:145px; height:58px; display:flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:0 12px 12px 0; color:#fff; background:#241034; font-size:14px; font-weight:800; }
.dh-kb-search-form .btn:hover,.dh-kb-search-form .btn:focus { color:#fff; background:#13091d; }

.dh-kb-section-heading { margin:38px 0 18px; display:flex; align-items:end; justify-content:space-between; }
.dh-kb-section-kicker { color:var(--kb-purple); }
.dh-kb-section-heading h2 { margin:5px 0 0; color:var(--kb-ink); font-size:28px; font-weight:900; }
.dh-kb-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dh-kb-category-card { min-width:0; padding:0; overflow:hidden; border:1px solid var(--kb-line); border-radius:16px; background:#fff; box-shadow:0 10px 26px rgba(48,25,67,.06); }
.dh-kb-category-link { padding:18px; display:flex; align-items:center; gap:13px; color:var(--kb-ink); text-decoration:none; }
.dh-kb-category-link:hover,.dh-kb-category-link:focus { color:var(--kb-purple); text-decoration:none; }
.dh-kb-category-icon,.dh-kb-help-icon,.dh-kb-article-icon { display:flex; align-items:center; justify-content:center; flex:0 0 auto; color:#fff; background:linear-gradient(135deg,#9226ea,#5a0eac); }
.dh-kb-category-icon { width:43px; height:43px; border-radius:12px; font-size:17px; }
.dh-kb-category-copy { min-width:0; display:flex; flex:1; flex-direction:column; }
.dh-kb-category-copy strong { font-size:14px; font-weight:800; }
.dh-kb-category-copy small { margin-top:3px; color:var(--kb-muted); font-size:11px; }
.dh-kb-category-arrow { color:#b6a9bf; font-size:11px; }
.dh-kb-category-card > p { margin:-5px 18px 18px 74px; color:var(--kb-muted); font-size:12px; line-height:1.5; }

.dh-kb-empty { max-width:820px; margin:38px auto 20px; padding:34px; border:1px solid var(--kb-line); border-radius:20px; background:linear-gradient(145deg,#fff,#fbf7ff); box-shadow:0 14px 34px rgba(54,27,75,.08); text-align:center; }
.dh-kb-empty-icon { width:68px; height:68px; margin:0 auto 18px; display:flex; align-items:center; justify-content:center; border-radius:20px; color:#fff; background:linear-gradient(135deg,#9226ea,#5a0eac); box-shadow:0 12px 26px rgba(107,17,192,.23); font-size:27px; }
.dh-kb-empty h2 { margin:9px 0 10px; color:var(--kb-ink); font-size:27px; font-weight:900; line-height:1.25; }
.dh-kb-empty p { max-width:650px; margin:0 auto; color:var(--kb-muted); font-size:14px; line-height:1.7; }
.dh-kb-help-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.dh-kb-help-card { min-width:0; min-height:112px; padding:20px; display:flex; align-items:center; gap:15px; border:1px solid var(--kb-line); border-radius:17px; color:var(--kb-ink); background:#fff; box-shadow:0 10px 28px rgba(48,25,67,.065); text-decoration:none; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.dh-kb-help-card:hover,.dh-kb-help-card:focus { border-color:#c895eb; color:var(--kb-purple); box-shadow:0 15px 34px rgba(83,23,126,.12); text-decoration:none; transform:translateY(-3px); }
.dh-kb-help-icon { width:50px; height:50px; border-radius:14px; font-size:19px; }
.dh-kb-help-card > span:nth-child(2) { min-width:0; display:flex; flex:1; flex-direction:column; }
.dh-kb-help-card strong { margin-bottom:5px; font-size:15px; font-weight:850; }
.dh-kb-help-card small { color:var(--kb-muted); font-size:12px; line-height:1.5; }
.dh-kb-help-card > i { color:#b0a2bb; font-size:12px; }
.dh-kb-help-primary { border-color:#6d15c6; color:#fff; background:linear-gradient(130deg,#4b087f,#7717d6); }
.dh-kb-help-primary .dh-kb-help-icon { color:#5b0e9f; background:#fff; }
.dh-kb-help-primary small,.dh-kb-help-primary > i { color:rgba(255,255,255,.73); }
.dh-kb-help-primary:hover,.dh-kb-help-primary:focus { color:#fff; border-color:#8b31dc; }

.dh-kb-popular-heading { margin-top:42px; }
.dh-kb-popular-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.dh-kb-article-card { padding:18px; display:flex; align-items:flex-start; gap:13px; border:1px solid var(--kb-line); border-radius:15px; background:#fff; }
.dh-kb-article-icon { width:42px; height:42px; border-radius:11px; }
.dh-kb-article-card > div { min-width:0; flex:1; }
.dh-kb-article-card a { color:#3f1758; font-size:14px; font-weight:800; }
.dh-kb-article-card p { margin:6px 0 0; color:var(--kb-muted); font-size:12px; line-height:1.55; }

/* Category and search result pages. */
body[data-template-file="knowledgebasecat"] .dh-client-page .main-content { padding-right:14px !important; padding-left:14px !important; }
body[data-template-file="knowledgebasecat"] .dh-kb-page { --kb-purple:#7416d5; --kb-dark:#3d076f; --kb-ink:#22152d; --kb-muted:#706579; --kb-line:#e8dff0; width:100%; color:var(--kb-ink); }
.dh-kb-search-standalone { margin:0 0 32px; padding:10px; border:1px solid var(--kb-line); border-radius:16px; background:#fff; box-shadow:0 12px 30px rgba(51,25,72,.08); }
.dh-kb-search-standalone .kb-search { filter:none; }
.dh-kb-search-standalone .dh-kb-search-icon { background:#faf8fc; }
.dh-kb-search-standalone .form-control { background:#faf8fc; }
.dh-kb-search-standalone .btn { background:linear-gradient(135deg,#8c20e9,#6500be); }
.dh-kb-articles-heading { margin-top:34px; }
.dh-kb-result-count { padding:7px 11px; border-radius:999px; color:#6a16bd; background:#f4eafa; font-size:11px; font-weight:800; }
.dh-kb-article-list { display:grid; gap:13px; }
.dh-kb-list-card { min-width:0; padding:19px 20px; display:flex; align-items:center; gap:15px; position:relative; border:1px solid var(--kb-line); border-radius:16px; background:#fff; box-shadow:0 9px 25px rgba(48,25,67,.055); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.dh-kb-list-card:hover { border-color:#c58fe8; box-shadow:0 14px 32px rgba(81,23,124,.11); transform:translateY(-2px); }
.dh-kb-list-icon { width:47px; height:47px; display:flex; align-items:center; justify-content:center; flex:0 0 47px; border-radius:13px; color:#fff; background:linear-gradient(135deg,#9226ea,#5a0eac); font-size:18px; }
.dh-kb-list-copy { min-width:0; flex:1; }
.dh-kb-list-copy > a { display:inline-block; color:#351446; font-size:15px; font-weight:850; line-height:1.4; }
.dh-kb-list-copy > a:hover,.dh-kb-list-copy > a:focus { color:var(--kb-purple); text-decoration:none; }
.dh-kb-list-copy p { margin:6px 0 0; color:var(--kb-muted); font-size:12.5px; line-height:1.55; }
.dh-kb-list-arrow { color:#b4a5bd; font-size:12px; }
.dh-kb-empty-compact { width:100%; margin:0; }
.dh-kb-empty-compact .btn { margin-top:18px; border:0; border-radius:10px; background:linear-gradient(135deg,#8c20e9,#6500be); font-weight:800; }

/* Article reader. */
body[data-template-file="knowledgebasearticle"] .dh-client-page .main-content { padding-right:14px !important; padding-left:14px !important; color:#281c30; }
body[data-template-file="knowledgebasearticle"] { --kb-purple:#7416d5; --kb-dark:#3d076f; --kb-ink:#22152d; --kb-muted:#706579; --kb-line:#e8dff0; }
.dh-kb-reader { overflow:hidden; border:1px solid var(--kb-line); border-radius:20px; background:#fff; box-shadow:0 16px 40px rgba(48,25,67,.09); }
.dh-kb-reader-header { padding:25px 28px; display:flex; align-items:flex-start; justify-content:space-between; gap:20px; border-bottom:1px solid #eee7f3; background:linear-gradient(135deg,#fff,#fbf7ff); }
.dh-kb-reader-heading { min-width:0; display:flex; align-items:flex-start; gap:16px; }
.dh-kb-reader-icon { width:52px; height:52px; display:flex; align-items:center; justify-content:center; flex:0 0 52px; border-radius:15px; color:#fff; background:linear-gradient(135deg,#9226ea,#5a0eac); box-shadow:0 10px 23px rgba(100,17,180,.22); font-size:20px; }
.dh-kb-reader-heading h2 { margin:7px 0 0; color:var(--kb-ink); font-size:clamp(24px,3vw,34px); font-weight:900; line-height:1.2; letter-spacing:-.7px; }
.dh-kb-print { min-height:42px; padding:10px 14px; display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; border:1px solid #dfd1e9; border-radius:10px; color:#6915b9; background:#fff; font-size:12px; font-weight:800; text-decoration:none; }
.dh-kb-print:hover,.dh-kb-print:focus { border-color:#bd81e3; color:#4f0d8b; background:#faf5fd; text-decoration:none; }
.dh-kb-reader-feedback { padding:20px 28px 0; }
.dh-kb-reader-content { padding:34px 38px 38px; color:#3e3544; font-size:16px; line-height:1.85; overflow-wrap:anywhere; }
.dh-kb-reader-content > *:first-child { margin-top:0; }
.dh-kb-reader-content > *:last-child { margin-bottom:0; }
.dh-kb-reader-content p { margin:0 0 18px; }
.dh-kb-reader-content h2,.dh-kb-reader-content h3,.dh-kb-reader-content h4 { margin:30px 0 13px; color:#2f173c; font-weight:850; line-height:1.3; }
.dh-kb-reader-content h2 { font-size:25px; }.dh-kb-reader-content h3 { font-size:21px; }.dh-kb-reader-content h4 { font-size:18px; }
.dh-kb-reader-content ul,.dh-kb-reader-content ol { margin:0 0 20px; padding-left:25px; }
.dh-kb-reader-content li { margin-bottom:8px; }
.dh-kb-reader-content a { color:#6817bb; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.dh-kb-reader-content img { max-width:100%; height:auto; border-radius:12px; }
.dh-kb-reader-content pre,.dh-kb-reader-content code { border-radius:8px; }
.dh-kb-reader-footer { padding:18px 28px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid #eee7f3; background:#fcfafe; }
.dh-kb-reader-meta { margin:0; padding:0; display:flex; flex-wrap:wrap; gap:10px; list-style:none; }
.dh-kb-reader-meta li { padding:7px 10px; display:inline-flex; align-items:center; gap:7px; border-radius:999px; color:#6d6075; background:#f1eaf6; font-size:11px; font-weight:700; }
.dh-kb-reader-meta i { color:#7416d5; }
.dh-kb-rating { margin-top:18px; padding:20px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; border:1px solid var(--kb-line); border-radius:17px; background:#fff; box-shadow:0 10px 28px rgba(48,25,67,.065); }
.dh-kb-rating > div { display:flex; align-items:center; gap:13px; }
.dh-kb-rating-icon { width:44px; height:44px; display:flex; align-items:center; justify-content:center; flex:0 0 44px; border-radius:12px; color:#fff; background:linear-gradient(135deg,#9226ea,#5a0eac); font-size:17px; }
.dh-kb-rating strong { color:var(--kb-ink); font-size:14px; font-weight:850; }.dh-kb-rating p { margin:3px 0 0; color:var(--kb-muted); font-size:11px; }
.dh-kb-rating form { display:flex; align-items:center; gap:8px; }
.dh-kb-vote { min-width:76px; padding:9px 13px; border:1px solid #ddd1e7; border-radius:9px; color:#65596d; background:#fff; font-size:12px; font-weight:800; }
.dh-kb-vote-yes { border-color:#7718d1; color:#fff; background:linear-gradient(135deg,#8c20e9,#6500be); }
.dh-kb-vote-yes:hover,.dh-kb-vote-yes:focus { color:#fff; }.dh-kb-vote:hover,.dh-kb-vote:focus { border-color:#b77ddb; color:#5e119f; }
.dh-kb-rating-result { color:#6b5f73; font-size:12px; font-weight:700; }
.dh-kb-related { margin-top:36px; }

@media (max-width:991px) { .dh-kb-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px) {
  body[data-template-file="knowledgebase"] .dh-client-page .main-content { padding-right:0 !important; padding-left:0 !important; }
  body[data-template-file="knowledgebasecat"] .dh-client-page .main-content { padding-right:0 !important; padding-left:0 !important; }
  body[data-template-file="knowledgebasearticle"] .dh-client-page .main-content { padding-right:0 !important; padding-left:0 !important; }
  .dh-kb-hero { padding:28px 20px; border-radius:18px; }
  .dh-kb-search-form .kb-search { flex-wrap:wrap; filter:none; }
  .dh-kb-search-form .dh-kb-search-icon { height:54px; border-radius:10px 0 0 10px; }
  .dh-kb-search-form .form-control { height:54px; border-radius:0 10px 10px 0; }
  .dh-kb-search-form .input-group-btn { width:100%; margin-top:9px; }
  .dh-kb-search-form .btn { width:100%; height:52px; border-radius:10px; }
  .dh-kb-category-grid,.dh-kb-help-grid,.dh-kb-popular-grid { grid-template-columns:1fr; }
  .dh-kb-search-standalone { padding:8px; }
  .dh-kb-list-card { padding:16px 14px; gap:12px; }
  .dh-kb-list-icon { width:42px; height:42px; flex-basis:42px; }
  .dh-kb-list-arrow { display:none; }
  .dh-kb-empty { margin-top:24px; padding:27px 18px; }
  .dh-kb-empty h2 { font-size:23px; }
  .dh-kb-reader { border-radius:15px; }
  .dh-kb-reader-header { padding:20px 17px; }
  .dh-kb-reader-icon { width:44px; height:44px; flex-basis:44px; border-radius:12px; }
  .dh-kb-reader-heading h2 { font-size:23px; }
  .dh-kb-print span { display:none; }
  .dh-kb-reader-content { padding:25px 19px 28px; font-size:15px; line-height:1.75; }
  .dh-kb-reader-footer,.dh-kb-rating { align-items:flex-start; flex-direction:column; }
  .dh-kb-rating form { width:100%; }
  .dh-kb-vote { flex:1; }
}

@media print {
  body[data-template-file="knowledgebasearticle"] .sidebar,
  body[data-template-file="knowledgebasearticle"] .dh-kb-rating,
  body[data-template-file="knowledgebasearticle"] .dh-kb-related { display:none !important; }
  .dh-kb-reader { border:0; box-shadow:none; }
  .dh-kb-reader-content { padding:20px 0; }
}
