/*
 * The Knowledge centre: the site's type and colours on BetterDocs' article layout, the hub's
 * search box and article list, and the archive cards (knowledge-centre.php, archive.php).
 */

.betterdocs-wrapper,
.betterdocs-wrapper :is(p, li, td, th, a, span, div, h1, h2, h3, h4, h5, h6, input, button) {
	font-family: var(--bc-font) !important;
}

.betterdocs-wrapper .betterdocs-entry-content :is(p, ul, ol) {
	margin-bottom: 22px;
}

.betterdocs-wrapper .betterdocs-entry-content :is(p, li, td, th) {
	font-size: 16px;
	line-height: 1.45;
	color: var(--bc-ink);
}

.betterdocs-wrapper .betterdocs-entry-header h1,
.betterdocs-wrapper .betterdocs-entry-title {
	font-size: clamp(28px, 2.8vw, 36px) !important;
	font-weight: 800 !important;
	line-height: 1.15;
	color: var(--bc-ink) !important;
}

.betterdocs-wrapper .betterdocs-entry-content h2 {
	margin: 48px 0 14px;
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--bc-ink);
}

.betterdocs-wrapper .betterdocs-entry-content h3 {
	margin: 28px 0 8px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--bc-ink);
}

.betterdocs-wrapper .betterdocs-entry-content h4 {
	margin: 22px 0 6px;
	font-size: 17px;
	font-weight: 800;
	color: var(--bc-ink);
}

.betterdocs-wrapper .betterdocs-entry-content a {
	color: var(--bc-ink);
	font-weight: 700;
}

/* The search box in the hero. */
.bc-docs-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 560px;
	padding-top: 6px;
}

.bc-docs-search input[type="search"] {
	flex: 1 1 240px;
	min-width: 0;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 9999px;
	background: #FFFFFF;
	color: var(--bc-ink);
	font: inherit;
}

.bc-docs-search button {
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 9999px;
	background: var(--bc-slate);
	color: #FFFFFF;
	font: 800 15px/1 var(--bc-font);
	cursor: pointer;
}

.bc-docs-search button:hover,
.bc-docs-search button:focus-visible {
	background: var(--bc-navy);
}

.bc-docs .bc-icard a {
	color: var(--bc-ink);
	text-decoration: none;
}

.bc-docs .bc-icard a:hover {
	text-decoration: underline;
}

.bc-docs + .bc-docs {
	padding-top: 0;
}

.bc-docs__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-docs__list li {
	border-bottom: 1px solid var(--bc-line-3);
}

.bc-section .bc-docs__list a {
	display: block;
	padding: 14px 0;
	color: var(--bc-ink);
	font-weight: 700;
	text-decoration: none;
}

.bc-section .bc-docs__list a:hover {
	text-decoration: underline;
}

.bc-read__date {
	font-size: 14px;
	color: var(--bc-ink);
}

.bc-archive-grid {
	display: grid;
}

.bc-reads .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 32px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.bc-docs__list {
		grid-template-columns: minmax(0, 1fr);
	}
}
