/*
 * Blog listing and single post.
 * Loaded only on blog views (see inc/blog.php).
 */

:root {
	--gp-green: #6cbe03;
	--gp-green-600: #5aa302;
	--gp-green-700: #3d7a00;
	--gp-green-900: #1f3d05;
	--gp-ink: #1d2618;
	--gp-muted: #5d6858;
	--gp-line: #e3e9dd;
	--gp-soft: #f4f8ef;
	--gp-radius: 16px;
	--gp-shadow: 0 1px 2px rgba(29, 38, 24, .06), 0 8px 24px rgba(29, 38, 24, .06);
	--gp-shadow-hover: 0 2px 4px rgba(29, 38, 24, .08), 0 18px 40px rgba(29, 38, 24, .12);
	--gp-heading: 'Raleway', sans-serif;
	--gp-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Hero ---------- */

.gp-hero.page-header {
	padding: 64px 0 56px;
	margin: 0;
	border: 0;
	text-align: left;
}
.gp-hero.page-header:before {
	opacity: 1;
	background: linear-gradient(115deg, rgba(18, 34, 6, .92) 0%, rgba(24, 48, 6, .78) 55%, rgba(24, 48, 6, .55) 100%);
}
.gp-hero .container {
	position: relative;
	z-index: 1;
}
.gp-hero__eyebrow {
	margin: 0 0 10px;
	font: 700 13px/1 var(--gp-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gp-green);
}
.page-header h1.gp-hero__title {
	max-width: 880px;
	margin: 0;
	font-family: var(--gp-heading);
	font-size: clamp(30px, 4.2vw, 48px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-transform: none;
	color: #fff;
}
.gp-hero__text {
	max-width: 620px;
	margin-top: 14px;
	font: 400 18px/1.6 var(--gp-body);
	color: rgba(255, 255, 255, .82);
}
.gp-hero__text p {
	margin: 0;
	color: inherit;
	font: inherit;
}
.gp-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	font: 400 15px/1.4 var(--gp-body);
	color: rgba(255, 255, 255, .8);
}
.gp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
	font: 400 14px/1.4 var(--gp-body);
	color: rgba(255, 255, 255, .55);
}
.gp-breadcrumb a,
.gp-breadcrumb [aria-current] {
	color: rgba(255, 255, 255, .85);
}
.gp-breadcrumb a:hover {
	color: var(--gp-green);
	text-decoration: none;
}
.gp-hero--post {
	padding: 72px 0 64px;
}

/* ---------- Search ---------- */

.gp-search {
	position: relative;
	max-width: 460px;
	margin-top: 28px;
}
.gp-search input[type="search"] {
	width: 100%;
	height: 52px;
	padding: 0 56px 0 22px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	font: 400 16px var(--gp-body);
	color: var(--gp-ink);
	-webkit-appearance: none;
	appearance: none;
}
.gp-search input[type="search"]:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(108, 190, 3, .45);
}
.gp-search button {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gp-green);
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}
.gp-search button:hover {
	background: var(--gp-green-600);
}

/* ---------- Listing ---------- */

.gp-blog {
	padding: 40px 0 88px;
	background: #fff;
}

.gp-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--gp-line);
}
.gp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--gp-line);
	border-radius: 999px;
	background: #fff;
	font: 700 14px/1.2 var(--gp-body);
	color: var(--gp-ink);
	cursor: pointer;
	list-style: none;
	transition: border-color .2s, background .2s, color .2s;
}
.gp-chip::-webkit-details-marker {
	display: none;
}
.gp-chip:hover,
.gp-chip:focus {
	border-color: var(--gp-green);
	color: var(--gp-green-700);
	text-decoration: none;
}
.gp-chip.is-active {
	border-color: var(--gp-ink);
	background: var(--gp-ink);
	color: #fff;
}
.gp-chip--sm {
	padding: 6px 12px;
	font-size: 13px;
}
.gp-topics__more > summary:after {
	content: '';
	width: 7px;
	height: 7px;
	margin: -3px 0 0 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}
.gp-topics__more[open] {
	flex-basis: 100%;
}
.gp-topics__more[open] > summary:after {
	margin-top: 3px;
	transform: rotate(-135deg);
}
.gp-topics__more-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.gp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 28px;
}

/* ---------- Cards ---------- */

.gp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	background: #fff;
	box-shadow: var(--gp-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.gp-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--gp-shadow-hover);
}
.gp-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--gp-soft);
}
.gp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Blog graphics usually carry their headline at the top. */
	object-position: center top;
	transition: transform .5s ease;
}
.gp-card:hover .gp-card__media img {
	transform: scale(1.04);
}
.gp-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 30% 20%, #8fd43a 0%, var(--gp-green) 35%, var(--gp-green-900) 100%);
	color: rgba(255, 255, 255, .85);
}
.gp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 24px 24px;
}
.gp-pill {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--gp-soft);
	font: 700 12px/1.2 var(--gp-body);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gp-green-700);
}
.gp-pill:hover {
	background: var(--gp-green);
	color: #fff;
	text-decoration: none;
}
.gp-card h2.gp-card__title {
	margin: 0 0 10px;
	font: 700 20px/1.35 var(--gp-heading);
	letter-spacing: -.005em;
	text-transform: none;
}
.gp-card__title a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--gp-ink);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
/* Whole card is clickable through the title link. */
.gp-card__title a:after {
	content: '';
	position: absolute;
	inset: 0;
}
.gp-card .gp-pill {
	position: relative;
	z-index: 1;
}
.gp-card__title a:hover,
.gp-card:hover .gp-card__title a {
	color: var(--gp-green-700);
	text-decoration: none;
}
.gp-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 18px;
	font: 400 15px/1.6 var(--gp-body);
	color: var(--gp-muted);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.gp-card__meta {
	display: flex;
	gap: 6px;
	margin-top: auto;
	font: 400 13px/1.4 var(--gp-body);
	color: var(--gp-muted);
}

/* Featured */
.gp-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	margin-bottom: 48px;
}
.gp-card--featured .gp-card__media {
	aspect-ratio: auto;
	min-height: 380px;
}
.gp-card--featured .gp-card__media img {
	position: absolute;
	inset: 0;
}
.gp-card--featured .gp-card__body {
	justify-content: center;
	padding: 48px;
}
.gp-card--featured .gp-card__body:before {
	content: 'Latest article';
	margin-bottom: 16px;
	font: 700 12px/1 var(--gp-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gp-muted);
}
.gp-card--featured h2.gp-card__title {
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.2;
}
.gp-card--featured .gp-card__excerpt {
	font-size: 17px;
	-webkit-line-clamp: 4;
}
.gp-card--featured .gp-card__meta {
	margin-top: 8px;
	font-size: 14px;
}

/* ---------- Pagination ---------- */

.gp-pagination {
	margin-top: 56px;
}
.gp-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gp-pagination .page-numbers li {
	margin: 0;
}
.gp-pagination a.page-numbers,
.gp-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gp-line);
	border-radius: 999px;
	font: 700 15px var(--gp-body);
	color: var(--gp-ink);
}
.gp-pagination a.page-numbers:hover {
	border-color: var(--gp-green);
	color: var(--gp-green-700);
	text-decoration: none;
}
.gp-pagination span.current {
	border-color: var(--gp-green);
	background: var(--gp-green);
	color: #fff;
}
.gp-pagination span.dots {
	border-color: transparent;
}

/* ---------- Empty state ---------- */

.gp-empty {
	max-width: 440px;
	margin: 40px auto;
	text-align: center;
}
.gp-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 88px;
	height: 88px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--gp-soft);
	color: var(--gp-green-600);
}
.gp-empty h2 {
	font: 800 26px var(--gp-heading);
	color: var(--gp-ink);
}
.gp-empty p {
	margin-bottom: 24px;
	font: 400 16px/1.6 var(--gp-body);
	color: var(--gp-muted);
}

/* ---------- Buttons ---------- */

.gp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 26px;
	border: 2px solid var(--gp-green);
	border-radius: 999px;
	background: var(--gp-green);
	font: 700 15px var(--gp-body);
	color: #fff;
	transition: background .2s, border-color .2s, color .2s;
}
.gp-btn:hover,
.gp-btn:focus {
	border-color: var(--gp-green-600);
	background: var(--gp-green-600);
	color: #fff;
	text-decoration: none;
}
.gp-btn--ghost {
	border-color: rgba(255, 255, 255, .6);
	background: transparent;
}
.gp-btn--ghost:hover,
.gp-btn--ghost:focus {
	border-color: #fff;
	background: #fff;
	color: var(--gp-green-900);
}

/* ---------- Single post ---------- */

.gp-article {
	padding: 56px 20px 72px;
	background: #fff;
}
.gp-article__wrap {
	max-width: 760px;
	margin: 0 auto;
}
/* Shrink-wraps the image so square/portrait social graphics aren't cropped. */
.gp-article__cover {
	display: flex;
	justify-content: center;
	position: relative;
	z-index: 2;
	margin: -112px 0 48px;
}
.gp-article__cover img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 620px;
	border-radius: 20px;
	box-shadow: var(--gp-shadow-hover);
}
.gp-hero--post:has(+ .gp-article .gp-article__cover) {
	padding-bottom: 136px;
}

.gp-article__content {
	font: 400 18px/1.8 var(--gp-body);
	color: #2b3427;
}
.gp-article__content > *:first-child {
	margin-top: 0;
}
.gp-article__content p,
.gp-article__content li {
	font: inherit;
	color: inherit;
	text-align: left;
}
/* Many posts were pasted from other sites with inline font/color styles. */
.gp-article__content p,
.gp-article__content li,
.gp-article__content span,
.gp-article__content div,
.gp-article__content td {
	font-family: var(--gp-body) !important;
	font-size: inherit !important;
	text-align: left !important;
	line-height: inherit !important;
	color: inherit !important;
}
.gp-article__content a,
.gp-article__content a span {
	color: var(--gp-green-700) !important;
}
.gp-article__content h1 { font-size: 30px; }
.gp-article__content p {
	margin: 0 0 1.4em;
}
.gp-article__content h1,
.gp-article__content h2,
.gp-article__content h3,
.gp-article__content h4 {
	margin: 1.9em 0 .6em;
	font-family: var(--gp-heading);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.005em;
	text-transform: none;
	color: var(--gp-ink);
}
.gp-article__content h2 { font-size: 30px; }
.gp-article__content h3 { font-size: 24px; }
.gp-article__content h4 { font-size: 20px; }
.gp-article__content h2 a,
.gp-article__content h3 a,
.gp-article__content h4 a {
	color: inherit;
}
.gp-article__content a {
	color: var(--gp-green-700);
	text-decoration: underline;
	text-decoration-color: rgba(61, 122, 0, .35);
	text-underline-offset: 3px;
	transition: text-decoration-color .2s;
}
.gp-article__content a:hover {
	color: var(--gp-green-700);
	text-decoration-color: currentColor;
}
.gp-article__content ul,
.gp-article__content ol {
	margin: 0 0 1.6em;
	padding-left: 1.4em;
}
.gp-article__content li {
	margin-bottom: .5em;
}
.gp-article__content ul li::marker {
	color: var(--gp-green);
}
.gp-article__content strong,
.gp-article__content b {
	color: var(--gp-ink);
}
.gp-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
.gp-article__content figure,
.gp-article__content .wp-caption {
	max-width: 100%;
	margin: 2em 0;
}
.gp-article__content figcaption,
.gp-article__content .wp-caption-text {
	margin-top: 10px;
	font-size: 14px;
	color: var(--gp-muted);
	text-align: center;
}
.gp-article__content .alignleft {
	float: left;
	margin: .4em 1.6em 1em 0;
}
.gp-article__content .alignright {
	float: right;
	margin: .4em 0 1em 1.6em;
}
.gp-article__content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.gp-article__content iframe,
.gp-article__content video {
	max-width: 100%;
	border-radius: 12px;
}
.gp-article__content iframe[src*="youtube"],
.gp-article__content iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.gp-article__content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--gp-green);
	font-size: 20px;
	font-style: italic;
	color: var(--gp-ink);
}
.gp-article__content blockquote p:last-child {
	margin-bottom: 0;
}
.gp-article__content table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
	font-size: 16px;
}
.gp-article__content th,
.gp-article__content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--gp-line);
	text-align: left;
}
.gp-article__content th {
	background: var(--gp-soft);
	color: var(--gp-ink);
}
.gp-article__content hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--gp-line);
}
.gp-article__content::after {
	content: '';
	display: table;
	clear: both;
}

.gp-article__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--gp-line);
}
.gp-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.gp-share {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.gp-share__label {
	margin-right: 4px;
	font: 700 14px var(--gp-body);
	color: var(--gp-muted);
}
.gp-share__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--gp-line);
	border-radius: 50%;
	background: #fff;
	color: var(--gp-ink);
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
}
.gp-share__btn:hover,
.gp-share__btn:focus {
	border-color: var(--gp-green);
	background: var(--gp-green);
	color: #fff;
}
.gp-share__btn.is-copied:after {
	content: 'Copied!';
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--gp-ink);
	font: 700 12px/1.2 var(--gp-body);
	color: #fff;
	white-space: nowrap;
	transform: translateX(-50%);
}

.gp-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 40px;
}
.gp-postnav__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	border: 1px solid var(--gp-line);
	border-radius: 14px;
	transition: border-color .2s, box-shadow .2s;
}
.gp-postnav__link:hover {
	border-color: var(--gp-green);
	box-shadow: var(--gp-shadow);
	text-decoration: none;
}
.gp-postnav__link--next {
	grid-column: 2;
	text-align: right;
}
.gp-postnav__dir {
	font: 700 12px/1 var(--gp-body);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gp-green-700);
}
.gp-postnav__title {
	font: 700 16px/1.4 var(--gp-heading);
	color: var(--gp-ink);
}

/* CTA */
.gp-cta {
	padding: 0 0 72px;
	background: #fff;
}
.gp-cta__box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 44px 48px;
	border-radius: 24px;
	background: linear-gradient(120deg, var(--gp-green-900) 0%, #2f5e07 60%, var(--gp-green-600) 140%);
	color: #fff;
}
.gp-cta__box h2 {
	margin: 0 0 6px;
	font: 800 clamp(22px, 2.4vw, 28px)/1.25 var(--gp-heading);
	text-transform: none;
	color: #fff;
}
.gp-cta__box p {
	margin: 0;
	font: 400 17px/1.6 var(--gp-body);
	color: rgba(255, 255, 255, .8);
}
.gp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Related */
.gp-related {
	padding: 72px 0 88px;
	background: var(--gp-soft);
}
.gp-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.gp-related__head h2 {
	margin: 0;
	font: 800 30px/1.2 var(--gp-heading);
	text-transform: none;
	color: var(--gp-ink);
}
.gp-related__head a {
	font: 700 15px var(--gp-body);
	color: var(--gp-green-700);
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	.gp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
	.gp-card--featured {
		grid-template-columns: 1fr;
	}
	.gp-card--featured .gp-card__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.gp-card--featured .gp-card__body {
		padding: 32px;
	}
}

@media (max-width: 767px) {
	.parallax.gp-hero {
		background-attachment: scroll;
	}
	.gp-hero.page-header {
		padding: 44px 0 40px;
	}
	.gp-hero__text {
		font-size: 16px;
	}
	.gp-blog {
		padding: 28px 0 64px;
	}
	.gp-topics {
		flex-wrap: nowrap;
		margin: 0 -15px 28px;
		padding: 0 15px 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.gp-topics::-webkit-scrollbar {
		display: none;
	}
	.gp-chip {
		flex: 0 0 auto;
	}
	.gp-topics__more[open] {
		flex-basis: auto;
	}
	.gp-topics__more-list {
		flex-wrap: nowrap;
		display: inline-flex;
		margin: 0 0 0 10px;
	}
	.gp-topics__more[open] {
		display: flex;
	}
	.gp-card--featured .gp-card__body {
		padding: 24px;
	}
	.gp-article {
		padding: 36px 16px 56px;
	}
	.gp-hero--post:has(+ .gp-article .gp-article__cover) {
		padding-bottom: 96px;
	}
	.gp-article__cover {
		margin-top: -88px;
		margin-bottom: 32px;
	}
	.gp-article__cover img {
		border-radius: 14px;
	}
	.gp-article__content {
		font-size: 17px;
	}
	.gp-article__content h2 { font-size: 25px; }
	.gp-article__content h3 { font-size: 21px; }
	.gp-article__content .alignleft,
	.gp-article__content .alignright {
		float: none;
		margin: 1.5em auto;
	}
	.gp-share {
		margin-left: 0;
	}
	.gp-postnav {
		grid-template-columns: 1fr;
	}
	.gp-postnav__link--next {
		grid-column: auto;
	}
	.gp-cta__box {
		padding: 32px 24px;
	}
	.gp-related {
		padding: 56px 0 64px;
	}
	.gp-related__head h2 {
		font-size: 24px;
	}
}

@media (max-width: 575px) {
	.gp-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gp-card,
	.gp-card__media img {
		transition: none;
	}
	.gp-card:hover,
	.gp-card:hover .gp-card__media img {
		transform: none;
	}
}
