/* Static GK — archives (topic cards) and single topics (TOC, related). */

/* Topic cards
--------------------------------------------- */

.gkta-gk-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	margin-bottom: 30px;
}

.gkta-gk-card {
	border: 1px solid #ddd;
	border-left: 4px solid var(--gkta-primary);
	border-radius: 5px;
	display: flex;
	flex-direction: column;
	padding: 16px 20px;
}

.gkta-gk-card__title {
	font-size: 18px;
	line-height: 1.4;
	margin-bottom: 8px;
}

.gkta-gk-card__title a {
	color: #333;
	text-decoration: none;
}

.gkta-gk-card__title a:hover,
.gkta-gk-card__title a:focus {
	color: var(--gkta-primary);
}

.gkta-gk-card__excerpt {
	color: #555;
	font-size: 15px;
	margin-bottom: 12px;
}

.gkta-gk-card__meta {
	color: #646970;
	font-size: 13px;
	margin: auto 0 0;
}

/* Table of contents
--------------------------------------------- */

.gkta-toc {
	background: var(--gkta-primary-soft);
	border: 1px solid var(--gkta-primary-soft-2);
	border-radius: 5px;
	margin-bottom: 30px;
	padding: 16px 20px;
}

.gkta-toc__title {
	cursor: pointer;
	font-weight: 700;
}

.gkta-toc__list {
	margin: 12px 0 0 20px;
}

.entry-content .gkta-toc__list > li {
	list-style-type: decimal;
	margin-bottom: 6px;
}

.entry-content .gkta-toc__list > li.gkta-toc__item--sub {
	list-style-type: circle;
	margin-left: 20px;
}

.gkta-toc a {
	text-decoration: none;
}

.gkta-toc a:hover,
.gkta-toc a:focus {
	text-decoration: underline;
}

/* Keep anchored headings clear of the sticky header. */
.single-gk-topic .entry-content h2[id],
.single-gk-topic .entry-content h3[id] {
	scroll-margin-top: 90px;
}

/* Related topics
--------------------------------------------- */

.gkta-related {
	border-top: 2px solid #eee;
	margin-bottom: 40px;
	padding-top: 24px;
}

.gkta-related__title {
	font-size: 20px;
	margin-bottom: 12px;
}

.gkta-related__list {
	margin: 0 0 0 20px;
}

.gkta-related__list li {
	list-style-type: disc;
	margin-bottom: 6px;
}
