/**
 * Editorial — pages, posts, archives, search and 404.
 */

.pstv-page-band {
	background: var(--pstv-ice);
	padding: var(--pstv-space-lg) 0;
}

.pstv-page-band .pstv-eyebrow {
	padding-bottom: 12px;
	color: var(--pstv-grey);
}

.pstv-post-hero img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
}

/* ---- Prose ---------------------------------------------------------------- */

.pstv-prose {
	padding-block: var(--pstv-space-lg) var(--pstv-space-section);
}

/* An Elementor-built body manages its own width; everything else gets a
   comfortable measure. */
.pstv-prose > *:not(.elementor) {
	max-width: 68ch;
}

.pstv-prose h2 {
	margin: 2em 0 0.6em;
	font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
	font-weight: 300;
	line-height: 1.2;
}

.pstv-prose h3 {
	margin: 1.6em 0 0.5em;
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.pstv-prose p,
.pstv-prose li {
	line-height: 1.75;
	text-wrap: pretty;
}

.pstv-prose p {
	margin: 0 0 1.1em;
}

.pstv-prose ul,
.pstv-prose ol {
	margin: 0 0 1.4em;
	padding-inline-start: 1.3em;
}

.pstv-prose li {
	margin-bottom: 0.5em;
}

.pstv-prose blockquote {
	margin: 1.8em 0;
	padding: 20px 0 20px 26px;
	border-inline-start: 2px solid var(--pstv-blue);
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.55;
}

.pstv-prose img {
	margin: 1.6em 0;
}

.pstv-prose figcaption {
	font-size: 0.8125rem;
	color: var(--pstv-grey);
}

.pstv-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
}

.pstv-prose th,
.pstv-prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--pstv-hairline);
	text-align: left;
}

.pstv-prose code {
	padding: 2px 6px;
	background: var(--pstv-ice);
	font-size: 0.9em;
}

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

.pstv-archive {
	padding-block: var(--pstv-space-lg) var(--pstv-space-section);
}

.pstv-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pstv-grid-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pstv-post-card {
	display: flex;
	flex-direction: column;
}

.pstv-post-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.pstv-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 18px;
}

.pstv-post-card__date {
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pstv-grey);
}

.pstv-post-card__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.pstv-post-card__title a {
	color: var(--pstv-navy);
}

.pstv-post-card__title a:hover {
	color: var(--pstv-blue);
}

.pstv-post-card__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--pstv-grey);
}

.pstv-archive__empty {
	padding-bottom: 24px;
	color: var(--pstv-grey);
}

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

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

.pstv-pagination {
	padding-top: var(--pstv-space-md);
}

.pstv-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pstv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--pstv-tap);
	min-height: var(--pstv-tap);
	padding-inline: 14px;
	border: 1px solid var(--pstv-border);
	border-radius: var(--pstv-radius);
	color: var(--pstv-navy);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

.pstv-pagination .page-numbers.current {
	background: var(--pstv-navy);
	border-color: var(--pstv-navy);
	color: #fff;
}

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

.pstv-searchform {
	display: flex;
	gap: 10px;
	max-width: 520px;
	padding-top: 22px;
}

.pstv-searchform input[type="search"] {
	flex-grow: 1;
}

/* ---- 404 --------------------------------------------------------------------- */

.pstv-404 {
	padding-block: var(--pstv-space-section);
	background: var(--pstv-ice);
}

.pstv-404 .pstv-lead {
	max-width: 540px;
	padding-top: 18px;
}

.pstv-404 .pstv-eyebrow {
	padding-bottom: 14px;
	color: var(--pstv-grey);
}

.pstv-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 32px;
}

/* ---- Comments ------------------------------------------------------------------ */

.pstv-comments {
	padding-bottom: var(--pstv-space-section);
	max-width: 68ch;
}

.pstv-comments ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pstv-comments .comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--pstv-hairline);
}

/* ==== Editorial page hero =================================================== */

.pstv-phero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 380px;
	padding-block: var(--pstv-space-lg);
	background: var(--pstv-ice);
	overflow: hidden;
}

.pstv-phero--sky { background: var(--pstv-sky); }

.pstv-phero.has-media {
	background-image: var(--pstv-phero-image, none);
	background-size: cover;
	background-position: var(--pstv-phero-focus, center 34%);
	min-height: 460px;
}

/* Near-opaque over the copy, gone by two thirds — the headline stays legible
   whatever the photograph is doing behind it. */
.pstv-phero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		96deg,
		rgba(224, 240, 250, 0.97) 0%,
		rgba(224, 240, 250, 0.93) 38%,
		rgba(224, 240, 250, 0.45) 55%,
		rgba(224, 240, 250, 0) 74%
	);
}

.pstv-phero--end .pstv-phero__scrim {
	background: linear-gradient(
		264deg,
		rgba(224, 240, 250, 0.97) 0%,
		rgba(224, 240, 250, 0.93) 38%,
		rgba(224, 240, 250, 0.45) 55%,
		rgba(224, 240, 250, 0) 74%
	);
}

.pstv-phero--sky.has-media .pstv-phero__scrim { filter: none; }

.pstv-phero__inner {
	position: relative;
	max-width: 620px;
}

.pstv-phero--end .pstv-phero__inner {
	margin-inline-start: auto;
	text-align: end;
}

.pstv-phero--end .pstv-phero__body { margin-inline-start: auto; }

.pstv-phero__title { padding-top: 14px; }
.pstv-phero__body  { max-width: 560px; padding-top: 18px; }
.pstv-phero__cta   { margin-top: 30px; }

@media (max-width: 900px) {
	.pstv-phero.has-media {
		background-position: 64% 24%;
		min-height: 520px;
		align-items: flex-end;
	}

	.pstv-phero__scrim,
	.pstv-phero--end .pstv-phero__scrim {
		background: linear-gradient(180deg, rgba(224,240,250,0) 0%, rgba(224,240,250,0.6) 34%, rgba(224,240,250,0.96) 56%, rgba(224,240,250,0.99) 100%);
	}

	.pstv-phero--end .pstv-phero__inner { text-align: start; margin-inline-start: 0; }
}

/* ==== Statement + claims ==================================================== */

.pstv-statement { padding-block: var(--pstv-space-section); }

.pstv-statement__lead {
	max-width: 780px;
	margin: 18px 0 0;
	font-size: clamp(1.0625rem, 0.85rem + 0.9vw, 1.375rem);
	font-weight: 300;
	line-height: 1.55;
	text-wrap: pretty;
}

.pstv-claims--about {
	gap: 54px;
	padding-top: var(--pstv-space-md);
}

/* ==== Pillars =============================================================== */

.pstv-pillars { padding-block: var(--pstv-space-section); }
.pstv-pillars__heading { text-align: center; }

.pstv-pillars__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--pstv-grid-gap);
	margin: 0;
	padding: var(--pstv-space-md) 0 0;
	list-style: none;
}

.pstv-pillar {
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--pstv-hairline);
}

.pstv-pillar__media {
	display: block;
	background: var(--pstv-flavour, var(--pstv-ice));
}

.pstv-pillar__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.pstv-pillar__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 26px 30px;
}

.pstv-pillar__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--pstv-flavour-text, var(--pstv-navy));
}

.pstv-pillar__text {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--pstv-grey);
}

/* ==== Steps ================================================================= */

.pstv-steps { padding-block: var(--pstv-space-section); }
.pstv-steps--ice { background: var(--pstv-ice); }
.pstv-steps__heading { text-align: center; padding-bottom: var(--pstv-space-md); }

.pstv-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.pstv-steps__item { display: flex; flex-direction: column; gap: 10px; }

.pstv-steps__num {
	font-size: 2.25rem;
	font-weight: 300;
	line-height: 1;
	color: var(--pstv-blue);
}

.pstv-steps__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pstv-steps__body { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--pstv-grey); }

/* ==== Facts ================================================================== */

.pstv-facts { padding-block: var(--pstv-space-section); }

.pstv-facts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 30px;
	padding-top: var(--pstv-space-md);
}

.pstv-fact {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 26px 30px;
	border: 1px solid var(--pstv-hairline);
	border-radius: 16px;
}

.pstv-fact svg { color: var(--pstv-blue); }
.pstv-fact h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.pstv-fact p  { margin: 0; font-size: 0.875rem; line-height: 1.7; color: var(--pstv-grey); }

.pstv-fact--todo {
	border-style: dashed;
	background: var(--pstv-ice);
}

/* ==== FAQ ==================================================================== */

.pstv-faq { padding-block: var(--pstv-space-section); }

.pstv-faq__layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.pstv-faq__rail {
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: sticky;
	top: calc(var(--pstv-header-h) + 20px);
}

.pstv-faq__tab {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: none;
	color: var(--pstv-navy);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: start;
	cursor: pointer;
	transition: background var(--pstv-dur) var(--pstv-ease);
}

.pstv-faq__tab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 10px;
	background: var(--pstv-ice);
	transition: background var(--pstv-dur) var(--pstv-ease), color var(--pstv-dur) var(--pstv-ease);
}

.pstv-faq__tab:hover { background: var(--pstv-ice); }
.pstv-faq__tab[aria-selected="true"] { background: var(--pstv-ice); }
.pstv-faq__tab[aria-selected="true"] .pstv-faq__tab-icon { background: var(--pstv-navy); color: #fff; }

.pstv-faq__heading {
	margin: 0 0 18px;
	font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem);
	font-weight: 300;
}

@media (max-width: 900px) {
	.pstv-faq__layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.pstv-faq__rail {
		position: static;
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 4px;
	}
	.pstv-faq__tab { flex-shrink: 0; }
}

/* ==== News =================================================================== */

.pstv-news { padding-block: var(--pstv-space-lg) var(--pstv-space-section); }

.pstv-lead-post {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
	border: 1px solid var(--pstv-hairline);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: var(--pstv-space-lg);
}

.pstv-lead-post__media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	display: block;
}

.pstv-lead-post__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 44px 46px;
}

.pstv-lead-post__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.125rem);
	font-weight: 300;
	line-height: 1.2;
}

.pstv-lead-post__title a { color: var(--pstv-navy); }
.pstv-lead-post__title a:hover { color: var(--pstv-blue); }

.pstv-lead-post__excerpt { margin: 0; line-height: 1.7; color: var(--pstv-grey); }
.pstv-lead-post__body .pstv-btn { align-self: flex-start; margin-top: 10px; }

@media (max-width: 900px) {
	.pstv-lead-post { grid-template-columns: minmax(0, 1fr); }
	.pstv-lead-post__body { padding: 28px var(--pstv-gutter-mobile) 32px; }
}

/* ==== CTA band =============================================================== */

.pstv-cta-band {
	background: var(--pstv-navy);
	color: #fff;
	padding-block: var(--pstv-space-lg);
}

.pstv-cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.pstv-cta-band .pstv-eyebrow { color: #8fb6da; }
.pstv-cta-band .pstv-h2 { color: #fff; }

@media (max-width: 700px) {
	.pstv-cta-band__inner { flex-direction: column; align-items: stretch; }
	.pstv-cta-band .pstv-btn { width: 100%; }
}

@media (max-width: 900px) {
	.pstv-pillars__grid,
	.pstv-steps__list { grid-template-columns: minmax(0, 1fr); }
	.pstv-claims--about { gap: 24px; }
}
