/* GitHub Projects: cards inherit the theme's fonts and link colour. */
.ghp-grid {
	--ghp-cols: 3;
	--ghp-line: rgba(0, 0, 0, .12);
	--ghp-muted: rgba(0, 0, 0, .62);
	display: grid;
	grid-template-columns: repeat(var(--ghp-cols), minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 24px;
}
.ghp-card {
	display: grid;
	grid-template-rows: auto 1fr;
	border: 1px solid var(--ghp-line);
	background: #fff;
	min-width: 0;
}
.ghp-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	max-width: 100%;
}
.ghp-thumb .ghp-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ghp-thumb-text {
	display: grid;
	place-items: center;
	height: 100%;
	padding: 8px;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-align: center;
	line-height: 1.2;
}
.ghp-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}
.ghp-tags {
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #0f8a80;
}
.ghp-card .ghp-title {
	font-size: 1.1em;
	line-height: 1.25;
	margin: 0;
}
.ghp-title a { text-decoration: none; color: inherit; }
.ghp-title a:hover, .ghp-title a:focus-visible { text-decoration: underline; }
.ghp-card .ghp-desc {
	font-size: .9em;
	line-height: 1.45;
	color: var(--ghp-muted);
	margin: 0;
}
.ghp-meta {
	margin-top: auto;
	padding-top: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: .85em;
}
.ghp-more { font-weight: 700; }
.ghp-stars { color: var(--ghp-muted); }

.ghp-strip { margin: 0 0 28px; }
.ghp-strip-title { margin: 0 0 12px; }
.ghp-strip .ghp-grid { margin-bottom: 8px; }
.ghp-strip-more { text-align: right; margin: 0; font-weight: 700; }

.ghp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ghp-li { display: grid; gap: 1px; }
.ghp-li span { font-size: .9em; opacity: .7; }

.ghp-none { padding: 12px; border: 1px dashed rgba(0, 0, 0, .25); }

@media (max-width: 900px) {
	.ghp-grid { grid-template-columns: repeat(min(var(--ghp-cols), 2), minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ghp-grid { grid-template-columns: minmax(0, 1fr); }
}

.ghp-strip { margin-bottom: 30px; }
.ghp-strip .ghp-card { border-color: #e6e6e6; }
.ghp-strip-more a { text-decoration: none; }

/* Project article page */
.ghp_project header .meta { display: none; }
.ghp-a-summary { font-size: 1.15em; line-height: 1.5; margin: 0 0 16px; color: #333; }
.ghp-a-overview { font-weight: 700; line-height: 1.6; margin: 0 0 26px; }
.ghp-a-subtitle { font-size: 1.35em; line-height: 1.3; margin: 0 0 14px; padding-top: 18px; border-top: 1px solid #e6e6e6; }
.ghp-a-picture { margin: 0 0 22px; }
.ghp-a-picture img { display: block; width: 100%; height: auto; border: 1px solid #e6e6e6; }
.ghp-a-back { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e6e6e6; font-weight: 700; }
.ghp-a-back a { text-decoration: none; }

/* Card titles and descriptions match the blog's post titles and excerpts (Lightly + Easy Reading sizes). */
.ghp-card .ghp-body { padding: 16px 18px 18px; gap: 8px; }
.ghp-card .ghp-title {
	font-size: 27px;
	line-height: 1.333;
	font-weight: 400;
	color: #000;
}
.ghp-card .ghp-desc {
	font-size: 19px;
	line-height: 1.55;
	color: #1a1a1a;
}
.ghp-card .ghp-meta { font-size: 16px; }
@media (max-width: 600px) {
	.ghp-card .ghp-title { font-size: 24px; }
	.ghp-card .ghp-desc { font-size: 18px; }
}
