/* Blog — posts index, taxonomy archives and single posts. */

/* ---------- Heroes -------------------------------------------------------- */

.argyll-hero.argyll-hero--blog {
	min-height: 400px;
}

.argyll-hero.argyll-post-hero {
	min-height: 440px;
}

@media (min-width: 768px) {

	.argyll-hero.argyll-hero--blog {
		min-height: 54vh;
	}

	.argyll-hero.argyll-post-hero {
		min-height: 60vh;
	}
}

/* Clear the expanded header rather than centring behind it. */
@media (min-width: 1025px) {

	.argyll-hero.argyll-hero--blog {
		/* stylelint-disable-next-line @stylistic/max-line-length */
		min-height: max(54vh, calc(var(--argyll-header-expanded-height, 265px) + var(--argyll-hero-safe-content-height)));
		padding-top: var(--argyll-header-expanded-height, 265px);
	}

	.argyll-hero.argyll-post-hero {
		/* stylelint-disable-next-line @stylistic/max-line-length */
		min-height: max(60vh, calc(var(--argyll-header-expanded-height, 265px) + var(--argyll-hero-safe-content-height)));
		padding-top: var(--argyll-header-expanded-height, 265px);
	}

	.argyll-hero--blog .wp-block-cover__inner-container,
	.argyll-post-hero .wp-block-cover__inner-container {
		transform: none;
	}
}

.argyll-hero--blog .wp-block-cover__background,
.argyll-post-hero .wp-block-cover__background {
	background-image: radial-gradient(ellipse at center, rgba(30, 30, 30, 0.06) 18%, rgba(30, 30, 30, 0.8) 100%);
	opacity: 0.55;
}

.blog-hero__eyebrow,
.argyll-post-hero__terms {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--nav);
	font-weight: var(--wp--custom--font-weight--body-semibold);
	letter-spacing: 0.02em;
	line-height: 1;
	margin: 0 0 20px;
	text-align: center;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.argyll-post-hero__terms a {
	color: inherit;
	text-decoration: none;
}

.argyll-post-hero__terms a:hover,
.argyll-post-hero__terms a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.argyll-post-hero__meta {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1;
	margin: 28px 0 0;
	opacity: 0.92;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Archive intro ------------------------------------------------- */

.blog-archive-intro {
	margin-top: 0;
	padding: 40px var(--wp--custom--spacing--page-gutter) 96px;
}

/* Nothing below the breadcrumbs — collapse to a slim band rather than a
   stretch of empty sage. */
.blog-archive-intro:not(:has(.blog-filter, .wp-block-term-description, .blog-archive-intro__title)) {
	padding-bottom: 40px;
}

.blog-archive-intro>.blog-breadcrumbs {
	margin: 0 auto 48px;
	max-width: var(--wp--custom--size--park-section-max);
	width: 100%;
}

.blog-archive-intro:not(:has(.blog-filter, .wp-block-term-description, .blog-archive-intro__title))>.blog-breadcrumbs {
	margin-bottom: 0;
}

.blog-archive-intro:has(.blog-archive-intro__title)>.blog-breadcrumbs {
	margin-bottom: 80px;
}

.blog-archive-intro__content {
	align-items: center;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.blog-archive-intro__eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--nav);
	font-weight: var(--wp--custom--font-weight--body-semibold);
	line-height: 1;
	margin: 0 0 16px;
}

.blog-archive-intro__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--custom--typography--archive-title);
	font-weight: var(--wp--custom--font-weight--display-regular);
	line-height: 1;
	margin: 0;
	text-wrap: pretty;
}

.blog-archive-intro__title strong {
	font-weight: var(--wp--custom--font-weight--display-medium);
}

.blog-archive-intro__body {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.33;
	margin: 48px 0 0;
	max-width: 54ch;
	text-wrap: pretty;
}

.blog-archive-intro__body:empty {
	display: none;
	margin: 0;
}

/* ---------- Category filter ----------------------------------------------- */

.blog-filter {
	margin-top: 48px;
	max-width: none;
	width: 100%;
}

.blog-archive-intro--compact .blog-filter {
	margin-top: 0;
}

.blog-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.blog-filter__list li {
	margin: 0;
}

.blog-filter__pill {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 22%, transparent);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1;
	padding: 12px 22px;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.blog-filter__pill:hover,
.blog-filter__pill:focus-visible {
	background: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 45%, transparent);
}

.blog-filter__pill.is-active {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* ---------- Post grid ----------------------------------------------------- */

.blog-archive-grid-wrap {
	padding-right: var(--wp--custom--spacing--page-gutter);
	padding-bottom: var(--wp--custom--spacing--section-inset-v-large);
	padding-left: var(--wp--custom--spacing--page-gutter);
}

.blog-archive-grid-wrap .blog-archive-query {
	margin-right: auto;
	margin-left: auto;
	max-width: var(--wp--custom--size--park-section-max);
	width: 100%;
}

.blog-archive-grid {
	align-items: start;
	column-gap: var(--wp--custom--spacing--component-gap);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: var(--wp--custom--spacing--section-inset-v) 0 0;
	padding: 0;
	row-gap: 72px;
	width: 100%;
}

.blog-archive-grid>li {
	list-style: none;
	margin: 0;
}

.blog-archive-empty {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--nav);
	margin: var(--wp--custom--spacing--section-inset-v) 0;
}

/* ---------- Post card ----------------------------------------------------- */

.blog-card {
	align-items: stretch;
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--spacing--component-gap-small);
	height: 100%;
	margin: 0;
}

.blog-card__media,
.blog-card__media-link {
	margin: 0 0 8px;
	width: 100%;
}

.blog-card__media a,
.blog-card__media-link {
	aspect-ratio: var(--wp--custom--size--blog-card-image-ratio);
	background: color-mix(in srgb, var(--wp--preset--color--muted) 45%, var(--wp--preset--color--base));
	border-radius: var(--wp--custom--radius--image);
	display: block;
	overflow: clip;
	width: 100%;
}

.blog-card__media img,
.blog-card__image {
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
	width: 100%;
}

.blog-card__media-placeholder {
	background: linear-gradient(160deg, color-mix(in srgb, var(--wp--preset--color--sage) 70%, var(--wp--preset--color--base)) 0%, color-mix(in srgb, var(--wp--preset--color--muted) 60%, var(--wp--preset--color--base)) 100%);
	display: block;
	height: 100%;
	width: 100%;
}

.blog-card:hover .blog-card__media img,
.blog-card:hover .blog-card__image {
	transform: scale(1.03);
}

.blog-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	min-width: 0;
}

.blog-card__terms {
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--font-weight--body-semibold);
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0;
	text-transform: uppercase;
}

.blog-card__terms a {
	color: inherit;
	text-decoration: none;
}

.blog-card__terms a:hover,
.blog-card__terms a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.blog-card__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--custom--typography--card-title);
	font-weight: var(--wp--custom--font-weight--display-regular);
	line-height: 1.05;
	margin: 0;
	text-wrap: pretty;
}

.blog-card__title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.blog-card__title a:hover,
.blog-card__title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.blog-card__excerpt {
	margin: 0;
}

.blog-card__excerpt .wp-block-post-excerpt__excerpt {
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 72%, transparent);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.35;
	margin: 0;
	text-wrap: pretty;
}

.blog-card__foot {
	align-items: center;
	gap: var(--wp--custom--spacing--component-gap-small);
	margin: auto 0 0;
	padding-top: 8px;
	width: 100%;
}

.blog-card--related .blog-card__foot {
	display: flex;
	justify-content: space-between;
}

.blog-card__date {
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 60%, transparent);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}

.blog-card__link,
.blog-card__link.wp-block-read-more {
	align-items: center;
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--font-weight--body-regular);
	gap: var(--wp--custom--spacing--component-gap-small);
	line-height: 1;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.blog-card__link::after {
	background: center / 23px 16px no-repeat url("../icon-arrow.svg");
	content: "";
	display: inline-block;
	height: 16px;
	transform: translateY(-0.02em);
	width: 23px;
}

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

.blog-archive-pagination {
	align-items: center;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	gap: 12px;
	margin: var(--wp--custom--spacing--section-inset-v-large) 0 0;
}

.blog-archive-pagination .wp-block-query-pagination-numbers {
	display: inline-flex;
	gap: 12px;
}

.blog-archive-pagination a,
.blog-archive-pagination .page-numbers {
	align-items: center;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 14px;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}

.blog-archive-pagination a:hover,
.blog-archive-pagination a:focus-visible {
	background: color-mix(in srgb, var(--wp--preset--color--sage) 70%, transparent);
}

.blog-archive-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

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

.blog-single__body {
	background: var(--wp--preset--color--base);
	margin: 0 auto;
	max-width: var(--wp--custom--size--park-section-max);
	padding: 52px var(--wp--custom--spacing--page-gutter) var(--wp--custom--spacing--section-inset-v-large);
	width: 100%;
}

.blog-single__body>.blog-breadcrumbs {
	margin: 0 auto 56px;
	max-width: 900px;
	width: 100%;
}

.blog-single__content {
	margin: 0 auto;
	max-width: 900px;
	min-width: 0;
	width: 100%;
}

.blog-single__content .wp-block-post-content {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--nav);
	line-height: 1.45;
}

.blog-single__content .wp-block-post-content.has-global-padding {
	padding-right: 0;
	padding-left: 0;
}

.blog-single__content .wp-block-post-content>* {
	margin-right: 0 !important;
	margin-left: 0 !important;
	max-width: none !important;
	width: 100%;
}

.blog-single__content .wp-block-post-content>*+* {
	margin-block-start: 1em;
}

.blog-single__content h2 {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: var(--wp--custom--font-weight--display-regular);
	line-height: 1.05;
	margin: 64px 0 20px;
	scroll-margin-top: calc(var(--argyll-header-height, 112px) + 32px);
}

.blog-single__content h3 {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--heading);
	font-weight: var(--wp--custom--font-weight--display-medium);
	line-height: 1.1;
	margin: 48px 0 16px;
}

.blog-single__content h2:first-child,
.blog-single__content h3:first-child {
	margin-top: 0;
}

.blog-single__content p,
.blog-single__content ul,
.blog-single__content ol {
	margin-top: 0;
	margin-bottom: 1em;
}

.blog-single__content li+li {
	margin-top: 0.35em;
}

.blog-single__content img,
.blog-single__content .wp-block-image img {
	border-radius: var(--wp--custom--radius--image);
}

.blog-single__content figcaption {
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 62%, transparent);
	font-size: var(--wp--preset--font-size--caption);
	margin-top: 12px;
	text-align: left;
}

.blog-single__content blockquote {
	border-left: 3px solid var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.2;
	margin: 48px 0;
	padding-left: 32px;
}

.blog-single__foot {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 14%, transparent);
	margin-top: 64px;
	padding-top: 32px;
}

.blog-single__foot:not(:has(.wp-block-post-terms)) {
	display: none;
}

.blog-single__tags {
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 62%, transparent);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.blog-single__tags:empty {
	display: none;
}

.blog-single__tags a {
	color: var(--wp--preset--color--primary);
	text-underline-offset: 0.2em;
}

/* ---------- Related posts ------------------------------------------------- */

.blog-related {
	background: var(--wp--preset--color--sage);
	padding: var(--wp--custom--spacing--section-inset-v-large) var(--wp--custom--spacing--page-gutter);
}

.blog-related__inner {
	margin: 0 auto;
	max-width: var(--wp--custom--size--park-section-max);
	width: 100%;
}

.blog-related__header {
	margin: 0 0 var(--wp--custom--spacing--component-gap);
	text-align: center;
}

.blog-related__eyebrow {
	color: var(--wp--preset--color--secondary);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--nav);
	font-weight: var(--wp--custom--font-weight--body-semibold);
	line-height: 1;
	margin: 0 0 16px;
}

.blog-related__heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--custom--typography--section-title);
	font-weight: var(--wp--custom--font-weight--display-regular);
	line-height: 1;
	margin: 0;
	text-wrap: pretty;
}

.blog-related__grid {
	column-gap: var(--wp--custom--spacing--component-gap);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: var(--wp--custom--spacing--component-gap);
	row-gap: 56px;
}

/* One or two editorial picks centre rather than hugging the left edge. */
.blog-related__grid--count-1,
.blog-related__grid--count-2 {
	margin-right: auto;
	margin-left: auto;
	max-width: 1160px;
}

.blog-related__grid--count-1 {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}

.blog-related__grid--count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

@media (max-width: 1024px) {

	.blog-archive-grid,
	.blog-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.blog-archive-intro,
	.blog-archive-grid-wrap,
	.blog-related,
	.blog-single__body {
		padding-right: var(--wp--custom--spacing--page-gutter-compact);
		padding-left: var(--wp--custom--spacing--page-gutter-compact);
	}
}

@media (max-width: 781px) {

	.argyll-hero.argyll-hero--blog,
	.argyll-hero.argyll-post-hero {
		min-height: 380px;
	}

	.blog-archive-intro {
		padding-bottom: 72px;
	}

	.blog-archive-intro:not(:has(.blog-filter, .wp-block-term-description, .blog-archive-intro__title)) {
		padding-bottom: 32px;
	}

	.blog-archive-intro>.blog-breadcrumbs,
	.blog-archive-intro:has(.blog-archive-intro__title)>.blog-breadcrumbs {
		margin-bottom: 40px;
	}

	.blog-archive-intro:not(:has(.blog-filter, .wp-block-term-description, .blog-archive-intro__title))>.blog-breadcrumbs {
		margin-bottom: 0;
	}

	.blog-archive-intro__body {
		margin-top: 32px;
	}

	.blog-filter {
		margin-top: 32px;
	}

	.blog-archive-grid,
	.blog-related__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}

	.blog-archive-grid {
		margin-top: 56px;
	}

	.blog-archive-grid-wrap {
		padding-bottom: var(--wp--custom--spacing--section-inset-v);
	}

	.blog-archive-pagination {
		margin-top: var(--wp--custom--spacing--section-inset-v);
	}

	.blog-single__body {
		padding-top: 40px;
		padding-bottom: var(--wp--custom--spacing--section-inset-v);
	}

	.blog-single__body>.blog-breadcrumbs {
		margin-bottom: 40px;
	}

	.blog-single__content h2 {
		margin-top: 48px;
	}

	.blog-related {
		padding-top: var(--wp--custom--spacing--section-inset-v);
		padding-bottom: var(--wp--custom--spacing--section-inset-v);
	}
}

@media (prefers-reduced-motion: reduce) {

	.blog-card__media img,
	.blog-card__image {
		transition: none;
	}

	.blog-card:hover .blog-card__media img,
	.blog-card:hover .blog-card__image {
		transform: none;
	}
}
