/* ============================================
   SAFE KB FIX – scoped to KB pages only
   ============================================ */

/* Hide Popular/Recent blocks */
.portal_kb .PopularArticles,
.portal_kb .RecentArticles,
.portal_kb #popularArticles,
.portal_kb #recentArticles,
.portal_kb [class*="popular"],
.portal_kb [class*="Popular"],
.portal_kb [class*="recent"],
.portal_kb [class*="Recent"],
.portal_solutions .PopularArticles,
.portal_solutions .RecentArticles,
.portal_solutions #popularArticles,
.portal_solutions #recentArticles,
.portal_solutions [class*="popular"],
.portal_solutions [class*="Popular"],
.portal_solutions [class*="recent"],
.portal_solutions [class*="Recent"] {
  display: none !important;
}

/* Centre the KB container */
.portal_kb,
.portal_solutions {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 24px !important;
}

/* Make article links look like cards + stop truncation */
.portal_kb a[href*="/kb/"],
.portal_solutions a[href*="/solutions/"] {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(30, 22, 55, 0.10);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 14px 0;
  line-height: 1.4;
  color: #1E1637;
}

.portal_kb a[href*="/kb/"] *,
.portal_solutions a[href*="/solutions/"] * {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-break: break-word;
}

/* Optional: hide Follow only (do NOT hide all buttons) */
.portal_kb [class*="follow"],
.portal_kb #follow,
.portal_solutions [class*="follow"],
.portal_solutions #follow {
  display: none !important;
}
