/* Knowledge Base archive (kb_article): branded hero + category-grouped link list. */
.kb-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 430px;
	background-color: #3490ff;
	padding: 130px 0 54px;
}

.kb-hero__pattern {
	position: absolute;
	inset: 0;
	background-image: url(../images/kb-pattern.svg);
	background-size: auto;
	background-repeat: repeat;
	background-position: 0 0;
	mix-blend-mode: soft-light;
	pointer-events: none;
}

.kb-hero .container {
	position: relative;
}

.kb-hero__title {
	margin: 0;
	color: #ffffff;
	font-family: "Poppins", Helvetica, Arial, sans-serif;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
}

/* Hide Divi's content/sidebar divider line (drawn even without a sidebar). */
body.post-type-archive-kb_article #main-content .container:before {
	display: none;
}

/* Override Divi's customizer 220px archive top padding — equal specificity, so !important. */
body.post-type-archive-kb_article #main-content > .container {
	padding-top: 0 !important;
}

.kb-archive {
	columns: 2;
	column-gap: 90px;
	padding: 60px 0 100px;
}

.kb-section {
	break-inside: avoid;
	margin-bottom: 56px;
	scroll-margin-top: 120px;
}

.kb-section__title {
	margin: 0 0 20px;
	color: #3490ff;
	font-size: 22px;
	font-weight: 700;
}

.kb-section__list {
	margin: 0;
	padding-left: 1.1em;
	list-style: disc;
}

.kb-section__list li {
	margin: 0 0 12px;
	line-height: 1.4;
	color: #3490ff;
}

.kb-section__list a {
	color: #3490ff;
}

.kb-section__list a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.kb-archive {
		columns: 1;
	}

	.kb-hero__title {
		font-size: 34px;
	}
}

/* Single Knowledge Base article. */
.kb-back {
	display: inline-block;
	margin-top: 30px;
	margin-bottom: 22px;
	font-weight: 600;
	color: #3490ff;
}

.kb-adjacent {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 50px;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
}

.kb-adjacent__next {
	text-align: right;
	margin-left: auto;
}

.kb-adjacent__label {
	display: block;
	font-size: 13px;
	color: #888;
}

.kb-adjacent__title {
	display: block;
	font-weight: 600;
	color: #3490ff;
}

.kb-nav__heading {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
	color: #3490ff;
}

.kb-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kb-nav__list li {
	margin: 0 0 8px;
	line-height: 1.35;
}

.kb-nav__list a {
	color: #3490ff;
}

.kb-nav__list li.is-current > a {
	font-weight: 700;
}

/* Divi resets :focus{outline:0} in every stylesheet it ships and has no focus-visible rules,
   so without this the KB links have no keyboard focus indicator at all. */
.kb-back:focus-visible,
.kb-section__list a:focus-visible,
.kb-nav__list a:focus-visible,
.kb-adjacent a:focus-visible {
	outline: 2px solid #3490ff;
	outline-offset: 3px;
	border-radius: 2px;
}

/* Content headings match page styling (brand blue). */
body.single-kb_article .entry-title,
body.single-kb_article .entry-content h1,
body.single-kb_article .entry-content h2,
body.single-kb_article .entry-content h3,
body.single-kb_article .entry-content h4,
body.single-kb_article .entry-content h5,
body.single-kb_article .entry-content h6 {
	color: #3490ff;
}

body.single-kb_article .entry-title {
	font-family: "Poppins", Helvetica, Arial, sans-serif;
	font-weight: 700;
}

/* Clear the fixed header without Divi's excess 220px top padding; add footer breathing room. */
body.single-kb_article #main-content > .container {
	padding-top: 120px !important;
	padding-bottom: 90px !important;
}

/* Align the sidebar top with the breadcrumb (nudged down 30px). */
body.single-kb_article #sidebar {
	margin-top: 30px;
}

@media (max-width: 980px) {
	body.single-kb_article #sidebar {
		margin-top: 48px;
		padding-top: 32px;
		border-top: 1px solid #e5e5e5;
	}
}
