/**
 * Block-based WordPress pages (non-SPA).
 */

.vb-block-page-content {
	min-height: 40vh;
	/* Match static .edge / .home-hero inset from viewport */
	--vb-edge-inset: 12px;
	--vb-edge-radius: 14px;
	--vb-hero-inset-x: 10px;
	--vb-hero-inset-top: 10px;
	--vb-hero-radius: 12px;
}

@media (max-width: 650px) {
	.vb-block-page-content {
		--vb-edge-inset: 8px;
		--vb-edge-radius: 10px;
		--vb-hero-inset-x: 7px;
		--vb-hero-inset-top: 7px;
		--vb-hero-radius: 9px;
	}
}

/* Full-bleed bands (no edge treatment). */
.vb-block-page-content > section:not(.edge):not(.home-hero):not(.home-hero--edge):not(.page-hero),
.vb-block-page-content > .home-trust,
.vb-block-page-content > .partner-section,
.vb-block-page-content > .vb-columns,
.vb-block-page-content > .alignfull:not(.edge):not(.home-hero--edge),
.vb-block-page-content > .wp-block-vb-wrapper:not(.edge) {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

/* Simple page titles are the container themselves. Keep them on the same column as the page content. */
.vb-block-page-content > section.page-hero.container:not(.edge) {
	width: calc(100% - var(--gutter) * 2);
	max-width: var(--max);
	margin-inline: auto;
}

/* Section wrapper — edge treatment (inset + radius, same as static .edge). */
.vb-block-page-content > section.vb-wrapper.edge,
.vb-block-page-content > .wp-block-vb-wrapper.alignfull.edge,
.vb-block-page-content > .alignfull.edge {
	width: auto;
	max-width: none;
	margin-inline: var(--vb-edge-inset);
	border-radius: var(--vb-edge-radius);
	overflow: hidden;
	box-sizing: border-box;
}

/* The photo hero already has its own 10px inset. An edge wrapper around it was adding a second left/right gap. */
.vb-block-page-content > section.vb-wrapper.edge:has(> .home-hero),
.vb-block-page-content > .wp-block-vb-wrapper.edge:has(> .home-hero) {
	margin-inline: 0;
	border-radius: 0;
	overflow: visible;
	width: 100%;
}

/* Home photo hero — inset band (static .home-hero; block root is the section). */
.vb-block-page-content > section.home-hero.home-hero--edge,
.vb-block-page-content > section.wp-block-vb-hero.home-hero--edge {
	width: auto;
	max-width: none;
	margin: var(--vb-hero-inset-top) var(--vb-hero-inset-x) 0;
	border-radius: var(--vb-hero-radius);
	overflow: hidden;
	box-sizing: border-box;
	height: min(870px, calc(100svh - var(--vb-hero-inset-top) - var(--vb-hero-inset-x)));
	min-height: calc(800px - var(--vb-hero-inset-top));
}

@media (max-width: 650px) {
	.vb-block-page-content > section.home-hero.home-hero--edge,
	.vb-block-page-content > section.wp-block-vb-hero.home-hero--edge {
		height: calc(100svh - 14px);
		max-height: 860px;
		min-height: 750px;
	}
}

.vb-block-page-content > section.home-hero.home-hero--flush,
.vb-block-page-content > section.wp-block-vb-hero.home-hero--flush {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	height: min(870px, calc(100svh - 20px));
}

/* Section wrapper: nested blocks share one theme .container — drop inner shells. */
.vb-wrapper > .container .vb-section-header > .container {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

.vb-wrapper > .container .vb-columns > .container {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

.vb-block-page-content > .vb\/section:first-child,
.vb-block-page-content > .wp-block-vb-section:first-child,
.vb-block-page-content > section.vb-wrapper:first-of-type,
.vb-block-page-content > .wp-block-vb-wrapper:first-of-type {
	margin-top: 0;
}

.vb-news-archive .news-feature + .news-feature {
	margin-top: 72px;
}

.vb-testimonials.quote-region.is-lined {
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.vb-testimonials .archive-quote.is-plain {
	padding-top: 0 !important;
	border-top: 0 !important;
}

@media (max-width: 650px) {
	.vb-testimonials.quote-region.is-lined {
		padding-top: 25px;
	}
}

.vb-testimonials.quote-region.is-single {
	align-self: start;
	margin-top: 0;
}

.vb-news-archive .news-story-source {
	display: none !important;
}

.info-dialog {
	border: 0;
	padding: 0;
	width: calc(100% - 40px);
	max-width: 790px;
	max-height: calc(100dvh - 50px);
	background: white;
	color: var(--ink);
	border-radius: 12px;
	overflow-y: auto;
}

.info-dialog::backdrop {
	background: #071b38d9;
	backdrop-filter: blur(4px);
}

.dialog-close {
	position: absolute;
	right: 20px;
	top: 20px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: var(--paper);
	border: 0;
	border-radius: 50%;
	z-index: 2;
	cursor: pointer;
}

.dialog-close .icon {
	width: 17px;
	height: 17px;
}

.dialog-content {
	padding: 48px;
}

.dialog-content .label {
	font-size: 10px;
	margin-right: 35px;
}

.dialog-content h2 {
	font-size: 43px;
	margin-bottom: 27px;
}

.dialog-content p {
	font-size: 16px;
	line-height: 1.8;
	margin-top: 20px;
}

.dialog-content ul {
	font-size: 15px;
	line-height: 1.9;
	color: var(--muted);
	padding-left: 20px;
}

.dialog-content .media {
	height: 380px;
	margin: 27px 0;
}
