/**
 * HealthSource theme: blog post, blog index and archive templates.
 *
 * Owns: the post hero band (.hs-post-hero), the post sidebar (table of contents, book card), the mobile
 * table of contents, the post note, the featured-post card, topic chips, the pager and the Posts page
 * intro. Content components (.hs-entry), heroes (.hs-hero) and cards (.hs-qcard) are in pages.css.
 * Colours come only from theme tokens (see the --hsp-* aliases at the top of pages.css).
 */

/* ================================================================== post hero */
.hs-post-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--hsp-white);
	background:
		radial-gradient(42rem 24rem at 100% -10%, color-mix(in srgb, var(--hsp-red) 30%, transparent), transparent 62%),
		radial-gradient(36rem 20rem at -10% 120%, color-mix(in srgb, var(--hsp-navy) 85%, transparent), transparent 70%),
		linear-gradient(115deg, var(--hsp-navy-deep) 0%, var(--hsp-navy-2) 55%, var(--hsp-navy) 100%);
	padding-top: clamp(1.75rem, 4.5vw, 3.75rem);
	padding-bottom: clamp(4.25rem, 8vw, 6.5rem);
}

/* A faint photo fading in from the right: texture, not content. */
.hs-post-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(48%, 46rem);
	background: url("../img/hero-reading.webp") 30% 35% / cover no-repeat;
	opacity: 0.28;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, black 70%);
	mask-image: linear-gradient(90deg, transparent 0%, black 70%);
	pointer-events: none;
}

.hs-post-hero::after {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(26px, 4.5vw, 72px);
	background: var(--hsp-white);
	-webkit-mask: var(--hsp-wave) center bottom / 100% 100% no-repeat;
	mask: var(--hsp-wave) center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

@media (max-width: 781px) {
	.hs-post-hero::before {
		width: 100%;
		opacity: 0.12;
	}
}

.hs-post-hero .hs-post-hero__inner {
	position: relative;
	z-index: 2;
}

.hs-post-hero .hs-post-hero__inner > * {
	max-width: 52rem;
	margin-block: 0;
}

.hs-post-hero .hs-post-hero__inner > * + * {
	margin-top: 1rem;
}

.hs-post-hero .ssc-breadcrumbs {
	margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
	font-size: 0.875rem;
	color: var(--hsp-on-dark);
}

.hs-post-hero .ssc-breadcrumbs a {
	color: var(--hsp-white);
	text-decoration-color: color-mix(in srgb, var(--hsp-white) 40%, transparent);
}

.hs-post-hero .hs-post-hero__cat {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	font-size: 0;
}

.hs-post-hero .hs-post-hero__cat .wp-block-post-terms__separator {
	display: none;
}

.hs-post-hero .hs-post-hero__cat a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.38rem 0.85rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--hsp-white) 22%, transparent);
	background: color-mix(in srgb, var(--hsp-white) 10%, transparent);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.hs-post-hero .hs-post-hero__cat a::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--hsp-red);
	box-shadow: 0 0 10px var(--hsp-red);
}

.hs-post-hero .hs-post-hero__cat a:hover {
	background: var(--hsp-white);
	color: var(--hsp-navy-2);
}

.hs-post-hero h1,
.hs-post-hero .hs-post-hero__title {
	color: var(--hsp-white);
	font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.hs-post-hero .hs-post-hero__inner > .hs-post-hero__dek {
	margin-top: 1.1rem;
}

.hs-post-hero .hs-post-hero__dek p {
	margin: 0;
}

.hs-post-hero .hs-post-hero__dek,
.hs-post-hero .hs-post-hero__dek p {
	max-width: 44rem;
	font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.22rem);
	line-height: 1.6;
	color: var(--hsp-on-dark);
}

.hs-post-hero .hs-post-meta {
	gap: 0.5rem 1rem;
	align-items: center;
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--hsp-on-dark);
}

.hs-post-meta > * {
	margin: 0;
}

.hs-post-meta .hs-byline {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-weight: 600;
	color: var(--hsp-white);
}

.hs-post-meta .hs-byline::before {
	content: "HS";
	content: "HS" / "";
	display: grid;
	place-items: center;
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--hsp-red) 0%, var(--hsp-red-dark) 100%);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hsp-white) 18%, transparent);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.hs-post-meta .hs-post-meta__date,
.hs-post-meta .hs-post-meta__time,
.hs-post-meta .hsc-read-time {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--hsp-on-dark);
}

.hs-post-meta > * + *::before {
	content: "";
	display: inline-block;
	width: 0.3rem;
	height: 0.3rem;
	margin-right: 0.6rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--hsp-white) 40%, transparent);
}

.hs-post-meta .hs-byline + *::before {
	display: none;
}

.hs-post-meta .hsc-icon {
	width: 1rem;
	height: 1rem;
}

/* ================================================================== post body */
.hs-body--post {
	padding-top: clamp(2rem, 4.5vw, 3.75rem);
}

.wp-block-post-content.hs-entry--post > .hs-media {
	margin-block: 2.25em;
}

.wp-block-post-content.hs-entry--post > .hs-lead + .hs-media {
	margin-block-start: 1.75em;
}

/* Table of contents: card in the sticky sidebar on desktop, a collapsible box above the article on phones. */
.hs-toc-mobile {
	margin: 0;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-md);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
}

.hs-toc-mobile:not(:has(.hsc-toc)) {
	display: none;
}

.hs-toc-mobile > summary {
	position: relative;
	cursor: pointer;
	list-style: none;
	padding: 1rem 3.5rem 1rem 3.35rem;
	font-family: var(--hsp-head);
	font-size: 1rem;
	font-weight: 800;
	color: var(--hsp-navy-2);
}

.hs-toc-mobile > summary::-webkit-details-marker {
	display: none;
}

.hs-toc-mobile > summary::before {
	content: "";
	position: absolute;
	left: 1.1rem;
	top: 50%;
	width: 1.35rem;
	height: 1.35rem;
	transform: translateY(-50%);
	background: var(--hsp-red);
	-webkit-mask: url("../icons/doc.svg") center / contain no-repeat;
	mask: url("../icons/doc.svg") center / contain no-repeat;
}

.hs-toc-mobile > summary::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: 1.1rem;
	height: 1.1rem;
	transform: translateY(-50%);
	background: var(--hsp-navy);
	-webkit-mask: url("../icons/chevron-down.svg") center / contain no-repeat;
	mask: url("../icons/chevron-down.svg") center / contain no-repeat;
	transition: transform 0.3s var(--hsp-ease);
}

.hs-toc-mobile[open] > summary::before {
	background: var(--hsp-red);
}

.hs-toc-mobile[open] > summary::after {
	background-color: var(--hsp-navy);
	-webkit-mask-image: url("../icons/chevron-down.svg");
	mask-image: url("../icons/chevron-down.svg");
	transform: translateY(-50%) rotate(180deg);
}

.hs-toc-mobile > .hsc-toc:last-child,
.hs-toc-mobile .hsc-toc {
	margin: 0;
	padding: 0 1.25rem 1.25rem;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.hs-toc-mobile .hsc-toc__title {
	display: none;
}

@media (min-width: 1080px) {
	.hs-body--post .hs-toc-mobile {
		display: none;
	}
}

.hs-aside .hs-toc-card {
	display: none;
}

@media (min-width: 1080px) {
	.hs-aside .hs-toc-card:has(.hsc-toc) {
		display: block;
	}
}

.hs-toc-card .hsc-toc {
	margin: 0;
	padding: 1.35rem 1.35rem 1.15rem;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-lg);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
}

.hsc-toc .hsc-toc__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.85rem;
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hsp-navy);
}

.hsc-toc .hsc-toc__title .hsc-icon {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--hsp-red);
}

.hs-body--post .hsc-toc .hsc-toc__list {
	display: grid;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hs-toc;
}

.hs-body--post .hsc-toc .hsc-toc__list > li {
	position: relative;
	margin: 0;
	counter-increment: hs-toc;
}

.hs-body--post .hsc-toc .hsc-toc__list a {
	display: grid;
	grid-template-columns: 1.6rem minmax(0, 1fr);
	gap: 0.5rem;
	padding: 0.45rem 0.55rem;
	border-radius: 0.6rem;
	font-size: 0.925rem;
	line-height: 1.4;
	color: var(--hsp-ink);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.hs-body--post .hsc-toc .hsc-toc__list a::before {
	content: counter(hs-toc, decimal-leading-zero);
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.8;
	color: var(--hsp-red);
}

.hs-body--post .hsc-toc .hsc-toc__list a:hover,
.hs-body--post .hsc-toc .hsc-toc__list a:focus-visible {
	background: var(--hsp-surface);
	color: var(--hsp-navy-2);
}

.hs-body--post .hsc-toc .hsc-toc__list a:hover::before,
.hs-body--post .hsc-toc .hsc-toc__list a:focus-visible::before {
	color: var(--hsp-navy);
}

/* Book card in the post sidebar. */
.hs-bookcard {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(1.4rem, 3vw, 1.75rem);
	border-radius: var(--hsp-r-lg);
	color: var(--hsp-white);
	background:
		radial-gradient(18rem 12rem at 110% -10%, color-mix(in srgb, var(--hsp-red) 45%, transparent), transparent 65%),
		linear-gradient(140deg, var(--hsp-navy-deep) 0%, var(--hsp-navy-2) 60%, var(--hsp-navy) 100%);
	box-shadow: var(--hsp-sh-lg);
}

.hs-bookcard > * {
	margin-block: 0;
}

.hs-bookcard > * + * {
	margin-top: 0.7rem;
}

.hs-bookcard .hs-bookcard__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--hsp-head);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hsp-on-dark);
}

.hs-bookcard .hs-bookcard__eyebrow::before {
	content: "";
	width: 0.95rem;
	height: 0.95rem;
	background: var(--hsp-red);
	-webkit-mask: url("../icons/pin.svg") center / contain no-repeat;
	mask: url("../icons/pin.svg") center / contain no-repeat;
}

.hs-bookcard .hs-bookcard__title {
	font-family: var(--hsp-head);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--hsp-white);
}

.hs-bookcard .hs-bookcard__text {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--hsp-on-dark);
}

.hs-bookcard .hs-bookcard__buttons {
	display: grid;
	gap: 0.6rem;
	margin-top: 1.1rem;
}

.hs-bookcard .hs-bookcard__buttons .wp-block-button,
.hs-bookcard .hs-bookcard__buttons .wp-block-button__link {
	width: 100%;
	text-align: center;
}

.hs-bookcard .hs-btn-book .wp-block-button__link {
	box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--hsp-red) 90%, transparent);
}

.hs-bookcard .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	color: var(--hsp-white);
	border: 2px solid color-mix(in srgb, var(--hsp-white) 55%, transparent);
	background: transparent;
	box-shadow: none;
}

.hs-bookcard .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.hs-bookcard .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus-visible {
	color: var(--hsp-navy-2);
	border-color: var(--hsp-white);
	background: var(--hsp-white);
}

.hs-bookcard .hsc-hours-today {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hsp-white);
}

/* Educational note after the article. */
.hs-post-note {
	position: relative;
	padding: 1.1rem 1.35rem 1.1rem 3.6rem;
	border-radius: var(--hsp-r-md);
	background: var(--hsp-surface);
	border: 1px solid var(--hsp-border);
}

.hs-post-note::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 1.2rem;
	width: 1.45rem;
	height: 1.45rem;
	background: var(--hsp-navy);
	-webkit-mask: url("../icons/stethoscope.svg") center / contain no-repeat;
	mask: url("../icons/stethoscope.svg") center / contain no-repeat;
}

.hs-post-note > * {
	margin: 0;
}

.hs-post-note .hs-post-note__text {
	max-width: 68ch;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--hsp-ink);
}

/* ================================================================== blog index */
.hs-hero .hs-blog-head {
	margin: 0;
}

.hs-hero .hs-blog-head > * {
	margin-block: 0;
}

.hs-hero .hs-blog-head h1 {
	margin-top: 0.25rem;
}

.hs-hero .wp-block-term-description p {
	margin: 0;
}

main.hs-main > .hs-sec--featured {
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
	padding-bottom: 0;
}

.paged main.hs-main > .hs-sec--featured {
	display: none;
}

.hs-blog-featured .hs-grid {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-blog-featured .hs-grid > li {
	margin: 0;
}

.hs-featpost {
	position: relative;
	display: grid;
	overflow: hidden;
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-xl);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-lg);
	transition: transform 0.5s var(--hsp-ease), box-shadow 0.5s var(--hsp-ease);
}

.hs-featpost:hover {
	transform: translateY(-4px);
}

.hs-featpost:has(a:focus-visible) {
	outline: 3px solid color-mix(in srgb, var(--hsp-red) 55%, transparent);
	outline-offset: 3px;
}

@media (min-width: 900px) {
	.hs-featpost {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		min-height: 24rem;
	}
}

.hs-featpost > * {
	margin: 0;
}

.hs-featpost .hs-featpost__media {
	position: relative;
	overflow: hidden;
	background: var(--hsp-surface);
}

.hs-featpost .hs-featpost__media a {
	display: block;
	height: 100%;
}

.hs-featpost .hs-featpost__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--hsp-ease);
}

@media (min-width: 900px) {
	.hs-featpost .hs-featpost__media img {
		position: absolute;
		inset: 0;
		aspect-ratio: auto !important;
	}
}

.hs-featpost:hover .hs-featpost__media img {
	transform: scale(1.04);
}

.hs-featpost .hs-featpost__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.85rem;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.hs-featpost .hs-featpost__body > * {
	margin: 0;
}

.hs-featpost .hs-featpost__flag {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	align-self: flex-start;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	background: var(--hsp-red);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hs-featpost .hs-featpost__flag::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--hsp-white);
}

.hs-featpost .hs-featpost__title {
	font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.4rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.hs-featpost .hs-featpost__title a {
	color: var(--hsp-navy-2);
	text-decoration: none;
}

.hs-featpost .hs-featpost__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.hs-featpost .hs-featpost__text,
.hs-featpost .hs-featpost__text p {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--hsp-muted);
}

.hs-featpost .hs-qcard__cat,
.hs-featpost .hs-featpost__more {
	position: relative;
	z-index: 2;
}

.hs-featpost .hs-qcard__cat {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	font-size: 0;
}

.hs-featpost .hs-qcard__cat .wp-block-post-terms__separator {
	display: none;
}

.hs-featpost .hs-qcard__cat a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	background: var(--hsp-surface);
	color: var(--hsp-navy);
	font-family: var(--hsp-head);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.hs-featpost .hs-qcard__cat a::before {
	content: "";
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--hsp-red);
}

.hs-featpost .hs-qcard__meta {
	gap: 0.35rem 0.9rem;
	font-size: 0.9rem;
	color: var(--hsp-muted);
}

.hs-featpost .hs-qcard__meta > * {
	margin: 0;
}

.hs-featpost .hs-qcard__meta > * + *::before {
	content: "";
	display: inline-block;
	width: 0.25rem;
	height: 0.25rem;
	margin-right: 0.9rem;
	border-radius: 50%;
	background: var(--hsp-border);
	vertical-align: middle;
}

.hs-featpost .hs-featpost__more {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	align-self: flex-start;
	margin-top: 0.4rem;
	padding: 0.85rem 1.4rem;
	border-radius: 999px;
	background: var(--hsp-navy-2);
	color: var(--hsp-white);
	font-family: var(--hsp-head);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s;
}

.hs-featpost .hs-featpost__more::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	mask: url("../icons/arrow-right.svg") center / contain no-repeat;
	transition: transform 0.3s var(--hsp-ease);
}

.hs-featpost:hover .hs-featpost__more {
	background: var(--hsp-red);
}

.hs-featpost:hover .hs-featpost__more::after {
	transform: translateX(4px);
}

/* The latest post is the featured card on page 1, so the grid skips it there. */
.blog:not(.paged) .hs-blog-grid .wp-block-post-template > .wp-block-post:first-child {
	display: none;
}

/* Topic chips (core/categories). */
.hs-topics {
	gap: 0.75rem 1rem;
	align-items: center;
}

.hs-topics > * {
	margin: 0;
}

.hs-topics .hs-topics__label {
	font-family: var(--hsp-head);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hsp-navy);
}

.hs-topics .hs-catchips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hs-catchips li {
	margin: 0;
}

.hs-catchips a {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1rem;
	border: 1px solid var(--hsp-border);
	border-radius: 999px;
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-sm);
	color: var(--hsp-navy-2);
	font-family: var(--hsp-head);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--hsp-ease);
}

.hs-catchips a:hover {
	transform: translateY(-2px);
	border-color: var(--hsp-navy);
}

.hs-catchips .current-cat > a,
.hs-catchips a[aria-current] {
	background: var(--hsp-navy-2);
	border-color: var(--hsp-navy-2);
	color: var(--hsp-white);
}

/* Pager. */
.hs-qcards .hs-pager {
	gap: 0.5rem;
	margin-top: clamp(2rem, 4vw, 3rem);
	font-family: var(--hsp-head);
	font-weight: 700;
}

.hs-pager .page-numbers,
.hs-pager .wp-block-query-pagination-previous,
.hs-pager .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	white-space: nowrap;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.9rem;
	border: 1px solid var(--hsp-border);
	border-radius: 999px;
	background: var(--hsp-white);
	color: var(--hsp-navy-2);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.hs-pager .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hs-pager .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.hs-pager a.page-numbers:hover,
.hs-pager .wp-block-query-pagination-previous:hover,
.hs-pager .wp-block-query-pagination-next:hover {
	border-color: var(--hsp-navy);
	background: var(--hsp-surface);
}

.hs-pager .page-numbers.current {
	border-color: var(--hsp-red);
	background: var(--hsp-red);
	color: var(--hsp-white);
}

/* Posts page intro, moved below the grid so articles come first. */
.hs-sec--intro {
	background: linear-gradient(180deg, var(--hsp-white) 0%, var(--hsp-surface) 100%);
}

.hs-sec--intro:not(:has(.ssc-posts-page-header__intro)) {
	display: none;
}

/* Fallback until the block supports showTitle: the page title is already the H1 in the hero. */
.hs-blog-intro > h1 {
	display: none;
}

.hs-blog-intro .ssc-posts-page-header__intro {
	max-width: 54rem;
	margin-inline: auto;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--hsp-border);
	border-radius: var(--hsp-r-xl);
	background: var(--hsp-white);
	box-shadow: var(--hsp-sh-md);
	font-size: 1.05rem;
	line-height: 1.75;
}

.hs-blog-intro .ssc-posts-page-header__intro > * {
	max-width: 68ch;
	margin-block: 0;
}

.hs-blog-intro .ssc-posts-page-header__intro > * + * {
	margin-top: 1.1em;
}

.hs-blog-intro .ssc-posts-page-header__intro h2 {
	position: relative;
	margin-top: 2em;
	padding-top: 1rem;
	font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem);
}

.hs-blog-intro .ssc-posts-page-header__intro > h2:first-child {
	margin-top: 0;
}

.hs-blog-intro .ssc-posts-page-header__intro h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3rem;
	height: 4px;
	border-radius: 4px;
	background: var(--hsp-red);
}

.hs-blog-intro .ssc-posts-page-header__intro img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--hsp-r-lg);
}

.hs-blog-intro .ssc-posts-page-header__intro a:where(:not(.wp-element-button)) {
	color: var(--hsp-navy);
	text-decoration-color: color-mix(in srgb, var(--hsp-red) 65%, transparent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.22em;
}

@media (min-width: 900px) {
	.hs-blog-intro .ssc-posts-page-header__intro > figure:first-of-type {
		float: right;
		width: 40%;
		margin: 0.35em 0 1.25em 2rem;
	}
}

.hs-blog-intro .ssc-posts-page-header__intro::after {
	content: "";
	display: table;
	clear: both;
}

/* ================================================================== motion */
@media (prefers-reduced-motion: no-preference) {
	.hs-post-hero .hs-post-hero__dek,
	.hs-post-hero .hs-post-meta {
		animation: hs-fade-up 0.7s var(--hsp-ease) 0.1s both;
	}

	.hs-blog-featured .hs-featpost {
		animation: hs-rise 0.8s var(--hsp-ease) 0.1s both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hs-featpost,
	.hs-featpost .hs-featpost__media img,
	.hs-catchips a {
		transition: none;
	}

	.hs-featpost:hover,
	.hs-catchips a:hover {
		transform: none;
	}
}
