/*
 * Veterans' Voices theme styles.
 * Values mirror the staging Beaver Builder layouts (header 13, footer 64, home 19)
 * plus bb-theme-child/style.css v1.19.
 * Breakpoints match Beaver Builder: 1200 / 992 / 768.
 */

:root {
	--vv-navy: #002868;
	--vv-navy-dark: #001a45;
	--vv-charcoal: #282f41;
	--vv-bronze: #b08d5c;
	--vv-gold-light: #d6b98a;
	--vv-gold: #e0b84c;
	--vv-cream: #f8f6f0;
	--vv-gray: #e6e6e6;
	--vv-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--vv-font-heading: Georgia, "Times New Roman", serif;
	--vv-max: 1850px;
	--vv-link: #0057b8;
	--vv-link-visited: #7040a0;
	--vv-link-hover: #003d82;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	word-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
}

p {
	margin: 0 0 10px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vv-skip-link:focus {
	position: fixed !important;
	top: 0;
	left: 0;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 15px;
	clip: auto;
	background: #fff;
	color: #000;
}

:where(a, button):focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

/* ---------- Banner ---------- */

.vv-banner {
	background: url(../images/american-flags.jpg) center center / cover no-repeat;
}

.vv-banner__inner {
	max-width: var(--vv-max);
	margin: 0 auto;
	line-height: 0;
	text-align: center;
}

.vv-banner img {
	display: block;
	width: 100%;
	margin: 0 auto;
}

/* ---------- Main menu (blue bar, gold hover) ---------- */

.vv-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--vv-navy);
	box-shadow: 0 2px 12px rgba(0, 26, 69, 0.18);
}

body.admin-bar .vv-nav {
	top: 32px;
}

.vv-nav__inner {
	max-width: var(--vv-max);
	margin: 0 auto;
	padding: 0 20px;
}

.vv-menu,
.vv-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vv-menu li {
	position: relative;
}

.vv-menu a {
	display: block;
	font-family: var(--vv-font-body);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: var(--vv-cream);
}

.vv-menu a:is(:hover, :focus) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vv-menu > li > a {
	padding: 10px 20px;
	font-size: 20px;
	text-transform: uppercase;
}

.vv-menu > li:is(:hover, :focus-within, .current-menu-item) > a,
.vv-menu > li:is(:hover, :focus-within, .current-menu-item) > .vv-submenu-toggle {
	background-color: var(--vv-gold-light);
	color: var(--vv-navy-dark);
}

.vv-menu .sub-menu {
	background-color: var(--vv-navy-dark);
}

.vv-menu .sub-menu a {
	padding: 10px;
	font-size: 18px;
	text-transform: none;
	letter-spacing: 0.01em;
	color: var(--vv-cream);
	background-color: var(--vv-navy-dark);
}

.vv-menu .sub-menu li:is(:hover, :focus-within, .current-menu-item) > a,
.vv-menu .sub-menu li:is(:hover, :focus-within, .current-menu-item) > .vv-submenu-toggle {
	background-color: var(--vv-gold-light);
	color: var(--vv-navy-dark);
}

.vv-submenu-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 100%;
	max-height: 50px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--vv-cream);
	cursor: pointer;
}

.vv-submenu-toggle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	margin: -7px 0 0 -5px;
	border-right: 2px solid;
	border-bottom: 2px solid;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.vv-nav__toggle,
.vv-nav__close,
.vv-nav__overlay {
	display: none;
}

@media (min-width: 769px) {
	.vv-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	.vv-menu > li.menu-item-has-children > a {
		padding-right: 54px;
	}

	.vv-menu > li > .vv-submenu-toggle {
		right: 10px;
		width: 36px;
		max-height: none;
		background: transparent !important;
	}

	.vv-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 10;
		min-width: 270px;
		text-align: left;
		visibility: hidden;
		opacity: 0;
	}

	.vv-menu .sub-menu .sub-menu {
		top: 0;
		left: 100%;
	}

	.vv-menu li.vv-submenu-right > .sub-menu {
		left: auto;
		right: 0;
	}

	.vv-menu .sub-menu li.vv-submenu-right > .sub-menu {
		right: 100%;
	}

	.vv-menu li:is(:hover, :focus-within, .is-open) > .sub-menu {
		visibility: visible;
		opacity: 1;
	}

	.vv-menu .sub-menu a {
		border-bottom: 1px solid rgb(64, 75, 104);
	}

	.vv-menu .sub-menu li.menu-item-has-children > a {
		padding-right: 44px;
	}

	.vv-menu .sub-menu > li:last-child > a {
		border-bottom: 0;
	}

	.vv-menu .sub-menu .vv-submenu-toggle::before {
		transform: rotate(-45deg);
	}
}

@media (max-width: 768px) {
	.vv-nav__inner {
		padding: 5px 20px;
		text-align: center;
	}

	.vv-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 50px;
		height: 44px;
		padding: 0;
		border: 0;
		background-color: var(--vv-navy);
		color: var(--vv-cream);
		cursor: pointer;
	}

	.vv-hamburger,
	.vv-hamburger::before,
	.vv-hamburger::after {
		display: block;
		width: 30px;
		height: 3px;
		background-color: var(--vv-cream);
	}

	.vv-hamburger {
		position: relative;
	}

	.vv-hamburger::before,
	.vv-hamburger::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.vv-hamburger::before {
		top: -10px;
	}

	.vv-hamburger::after {
		top: 10px;
	}

	.vv-nav__panel {
		position: fixed;
		top: var(--wp-admin--admin-bar--height, 0px);
		bottom: 0;
		left: 0;
		z-index: 1000;
		width: min(300px, 85vw);
		overflow-y: auto;
		padding: 50px 30px;
		background-color: var(--vv-navy-dark);
		text-align: center;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform 0.5s ease, visibility 0.5s;
	}

	.vv-nav.is-open .vv-nav__panel {
		transform: none;
		visibility: visible;
	}

	.vv-nav__close {
		display: block;
		position: absolute;
		top: 10px;
		right: 10px;
		padding: 0 8px;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 30px;
		line-height: 1;
		cursor: pointer;
	}

	.vv-nav__overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 999;
		background: rgba(0, 0, 0, 0.5);
	}

	.vv-nav__overlay[hidden] {
		display: none;
	}

	.vv-menu a,
	.vv-menu > li > a,
	.vv-menu .sub-menu a {
		padding: 10px 44px 10px 10px;
		background-color: var(--vv-navy-dark);
	}

	.vv-menu .sub-menu {
		display: none;
	}

	.vv-menu li.is-open > .sub-menu {
		display: block;
	}

	.vv-menu li.is-open > .vv-submenu-toggle::before {
		transform: rotate(-135deg);
		margin-top: -2px;
	}

	html.vv-menu-open {
		overflow: hidden;
	}
}

@media (max-width: 782px) {
	body.admin-bar .vv-nav {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .vv-nav {
		top: 0;
	}
}

/* ---------- Account strip (logged-in menu) ---------- */

.vv-account-bar {
	background-color: var(--vv-navy-dark);
}

.vv-account-bar__inner {
	max-width: var(--vv-max);
	margin: 0 auto;
	padding: 0 20px;
}

.vv-menu--account {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.vv-menu--account > li > a {
	font-size: 16px;
	background-color: var(--vv-navy-dark);
}

@media (max-width: 768px) {
	.vv-account-bar {
		padding: 5px 0;
	}

	.vv-menu--account .sub-menu {
		position: static;
	}
}

/* ---------- Page content ---------- */

.vv-main {
	display: block;
}

.vv-entry {
	padding-bottom: 10px;
}

.home .vv-entry {
	padding-bottom: 0;
}

.vv-page-header {
	max-width: 1020px;
	margin: 0 auto;
	padding: 40px 20px 20px;
}

.vv-page-header.is-wide {
	max-width: var(--vv-max);
	padding-left: 40px;
	padding-right: 40px;
}

.vv-page-title,
.wp-block-heading.is-style-vv-page-title {
	margin: 10px 0;
	font-family: var(--vv-font-heading);
	font-size: 45px;
	font-weight: 600;
	line-height: 1.4;
}

.vv-page-title::after,
.wp-block-heading.is-style-vv-page-title::after {
	content: "";
	display: block;
	width: 100px;
	margin-top: 10px;
	border-bottom: 2px solid var(--vv-navy);
}

@media (max-width: 992px) {
	.vv-page-title,
	.wp-block-heading.is-style-vv-page-title {
		font-size: 40px;
	}
}

@media (max-width: 768px) {
	.vv-page-header {
		padding-top: 20px;
	}

	.vv-page-title,
	.wp-block-heading.is-style-vv-page-title {
		font-size: 34px;
	}
}

.vv-entry-content {
	padding: 0 20px;
}

.vv-entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/*
 * PrintFriendly wraps the content in <div class="pf-content">, so treat that wrapper
 * as transparent: its children follow the same width rules as direct children.
 */
.vv-entry-content > .pf-content {
	max-width: none;
	margin: 0;
}

.vv-entry-content > .pf-content::after {
	content: "";
	display: table;
	clear: both;
}

:is(.vv-entry-content, .vv-entry-content > .pf-content) > :not(.pf-content) {
	max-width: var(--wp--style--global--content-size, 1020px);
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	margin-bottom: 0;
}

:is(.vv-entry-content, .vv-entry-content > .pf-content) > :not(.pf-content) + * {
	margin-top: 20px;
}

:is(.vv-entry-content, .vv-entry-content > .pf-content) > .alignwide {
	max-width: var(--wp--style--global--wide-size, 1850px);
}

/* Full-width blocks, plus Beaver Builder layouts while pages are being converted. */
:is(.vv-entry-content, .vv-entry-content > .pf-content) > :is(.alignfull, .fl-builder-content) {
	max-width: none;
	margin-left: -20px;
	margin-right: -20px;
}

:is(.vv-entry-content, .vv-entry-content > .pf-content) > .alignfull + .alignfull {
	margin-top: 0;
}

:is(.vv-entry-content, .vv-entry-content > .pf-content) > .alignwide.wp-block-group:not(.has-background) {
	padding-left: 20px;
	padding-right: 20px;
}

:is(.vv-entry-content, .vv-entry-content > .pf-content) > .alignwide .wp-block-columns {
	gap: 40px;
}

.vv-entry-content :is(p, li) {
	line-height: 1.7;
}

.vv-entry-content .wp-block-list li,
.editor-styles-wrapper .wp-block-list li {
	margin-bottom: 0.85em;
}

:is(.is-style-vv-section, .is-style-vv-section-stripes, .is-style-vv-section-corner, .is-style-vv-section-tall) :is(p, li) {
	line-height: 1.65;
}

/* Text links inside content (from child theme v1.19) */
.vv-entry-content :is(p, li, td, figcaption, .wp-block-table) a[href]:not(.wp-element-button):not(:has(img, svg)),
.editor-styles-wrapper :is(p, li) a[href]:not(.wp-element-button) {
	color: var(--vv-link);
	text-decoration-line: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
	overflow-wrap: anywhere;
}

.vv-entry-content :is(p, li, td, figcaption, .wp-block-table) a[href]:not(.wp-element-button):not(:has(img, svg)):visited {
	color: var(--vv-link-visited);
}

.vv-entry-content :is(p, li, td, figcaption, .wp-block-table) a[href]:not(.wp-element-button):not(:has(img, svg)):is(:hover, :focus-visible) {
	color: var(--vv-link-hover);
	text-decoration-thickness: 3px;
}

.has-white-color,
.vv-on-dark {
	--vv-link: #8dcbff;
	--vv-link-visited: #dec8ff;
	--vv-link-hover: #ffffff;
}

/* "More >" text links */
.vv-text-link:not(:has(i, svg))::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.35em;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-0.1em) rotate(45deg);
}

/* Captions */
.wp-block-image figcaption,
.wp-element-caption,
.wp-caption-text {
	margin: 0;
	padding-top: 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

/* Classic-editor images & captions (single posts/archives, legacy pages) */
.vv-entry-content figure.wp-caption.alignleft,
.vv-entry-content figure.wp-caption.alignright {
	max-width: 45%;
	box-sizing: border-box;
}

.vv-entry-content figure.wp-caption.alignleft {
	margin: 6px 28px 18px 0;
}

.vv-entry-content figure.wp-caption.alignright {
	margin: 6px 0 18px 28px;
}

.vv-entry-content figure.wp-caption img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

@media (max-width: 700px) {
	.vv-entry-content figure.wp-caption.alignleft,
	.vv-entry-content figure.wp-caption.alignright {
		float: none;
		max-width: 100%;
		margin: 0 0 18px;
	}
}

/* ---------- Block styles ---------- */

.is-style-vv-eyebrow {
	margin-bottom: 0;
	font-size: 16px;
	font-weight: 700;
	font-style: normal;
	text-transform: uppercase;
	color: var(--vv-navy);
}

.has-white-color .is-style-vv-eyebrow,
.is-style-vv-eyebrow.has-gold-color {
	color: var(--vv-gold);
}

.is-style-vv-section-title {
	margin-top: 0;
	margin-bottom: 0;
	font-family: var(--vv-font-heading);
	font-weight: 700;
	text-transform: uppercase;
}

.is-style-vv-eyebrow + * {
	margin-top: 0 !important;
}

.wp-block-button.is-style-vv-light .wp-block-button__link {
	background-color: #fff;
	color: var(--vv-charcoal);
	transition: none;
}

.wp-block-button.is-style-vv-light .wp-block-button__link:is(:hover, :focus) {
	background-color: var(--vv-navy);
	color: #fff;
}

/* Sections (replacing Beaver Builder rows) */
.wp-block-group:is(.is-style-vv-section, .is-style-vv-section-stripes, .is-style-vv-section-corner, .is-style-vv-section-tall) {
	padding: 60px 20px;
}

.is-style-vv-section-stripes {
	background: url(../images/red-stripe-background-left-to-right.png) left center / cover no-repeat;
}

.wp-block-group.is-style-vv-section-stripes {
	padding-top: 220px;
	padding-bottom: 180px;
}

.is-style-vv-section-corner {
	background: url(../images/red-corner-lower-right.png) right bottom / cover no-repeat;
}

.wp-block-group.is-style-vv-section-corner {
	padding-bottom: 80px;
}

.wp-block-group.is-style-vv-section-tall {
	padding-top: 160px;
	padding-bottom: 180px;
}

:is(.is-style-vv-section, .is-style-vv-section-stripes, .is-style-vv-section-corner, .is-style-vv-section-tall) > * {
	max-width: var(--vv-max);
	margin-left: auto;
	margin-right: auto;
}

:is(.is-style-vv-section, .is-style-vv-section-corner) > .wp-block-columns {
	gap: 40px;
	margin-top: 0;
	margin-bottom: 0;
	padding: 20px;
}

:is(.is-style-vv-section, .is-style-vv-section-stripes, .is-style-vv-section-corner, .is-style-vv-section-tall) .wp-block-column > * {
	margin-top: 0;
	margin-bottom: 0;
}

:is(.is-style-vv-section, .is-style-vv-section-stripes, .is-style-vv-section-corner, .is-style-vv-section-tall) .wp-block-column > * + * {
	margin-top: 10px;
}

:is(.is-style-vv-section, .is-style-vv-section-stripes, .is-style-vv-section-corner, .is-style-vv-section-tall) .wp-block-column > .alignleft {
	margin: 5px 20px 10px 0;
}

.home .vv-entry-content .wp-block-image img.wp-image-150 {
	width: 600px;
	max-width: 100%;
	height: auto;
}

.home .vv-entry-content .wp-block-image img.wp-image-329 {
	width: 400px;
	max-width: 100%;
	height: auto;
}

.wp-block-group.is-style-vv-feature-card {
	padding: 0;
	background-color: var(--vv-charcoal);
	color: #fff;
}

.is-style-vv-feature-card > .wp-block-columns {
	gap: 0;
	margin: 0;
}

.is-style-vv-feature-card .vv-feature-card__text {
	padding: 80px;
}

.is-style-vv-feature-card .vv-feature-card__text .wp-block-buttons {
	margin-top: 40px;
	gap: 10px;
}

.vv-hero-title {
	margin-top: 0;
	margin-bottom: 40px !important;
	font-family: var(--vv-font-heading);
	font-size: 34px;
	font-weight: 700;
	color: var(--vv-navy);
}

/* Tilted magazine cover */
.wp-block-columns > .wp-block-column.vv-issue-col {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch;
}

/* Absolutely positioned but vertically centered by the flex column, like the Beaver layout. */
.wp-block-image.is-style-vv-tilted-cover {
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	margin: 0 !important;
	text-align: right;
	/* Tilt cover + caption together; "rotate" doesn't clash with the fade-in "transform". */
	rotate: 12.5deg;
}

.wp-block-image.is-style-vv-tilted-cover img {
	display: block;
	width: 100%;
	max-width: 450px !important;
	height: auto !important;
	margin: 0 150px 0 auto;
}

.wp-block-image.is-style-vv-tilted-cover figcaption {
	width: fit-content;
	max-width: 260px;
	margin: 10px auto 0;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.5);
	color: #000;
	font-weight: 700;
	text-align: center;
}

/* Scroll animations (Beaver Builder fade-left/right/up equivalent) */
.vv-js :is(.vv-fade-left, .vv-fade-right, .vv-fade-up):not(.vv-animated) {
	opacity: 0;
}

.vv-fade-left.vv-animated {
	animation: vv-fade-left 1s ease;
}

.vv-fade-right.vv-animated {
	animation: vv-fade-right 1s ease;
}

.vv-fade-up.vv-animated {
	animation: vv-fade-up 1s ease;
}

@keyframes vv-fade-left {
	from { opacity: 0; transform: translate3d(-50%, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes vv-fade-right {
	from { opacity: 0; transform: translate3d(50%, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes vv-fade-up {
	from { opacity: 0; transform: translate3d(0, 50%, 0); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.vv-js :is(.vv-fade-left, .vv-fade-right, .vv-fade-up):not(.vv-animated) {
		opacity: 1;
	}

	:is(.vv-fade-left, .vv-fade-right, .vv-fade-up).vv-animated {
		animation: none;
	}
}

.vv-main {
	overflow-x: clip;
}

@media (max-width: 992px) {
	.wp-block-group:is(.is-style-vv-section, .is-style-vv-section-corner) {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.wp-block-group:is(.is-style-vv-section-stripes, .is-style-vv-section-tall) {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.is-style-vv-feature-card .vv-feature-card__text {
		padding: 40px;
	}
}

@media (max-width: 768px) {
	.wp-block-group:is(.is-style-vv-section-stripes, .is-style-vv-section-tall) {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.is-style-vv-section-corner {
		background-size: contain;
	}
}

@media (max-width: 781px) {
	.wp-block-columns > .wp-block-column.vv-issue-col {
		display: block;
		align-self: auto;
	}

	.wp-block-image.is-style-vv-tilted-cover {
		position: relative;
		padding: 20px;
		rotate: none;
	}

	.wp-block-image.is-style-vv-tilted-cover img {
		margin-top: 0;
	}

	.wp-block-image.is-style-vv-tilted-cover figcaption {
		color: #fff;
		background: none;
	}
}

/* ---------- Archive/search fallback list ---------- */

.vv-archive-item + .vv-archive-item {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--vv-gray);
}

.vv-archive-item__title {
	margin: 0 0 10px;
	font-size: 24px;
}

.vv-archive-item__title a {
	color: inherit;
	text-decoration: none;
}

/* ---------- Footer (from child theme v1.19) ---------- */

.vv-footer {
	padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 2vw, 2rem) 2rem;
	background-color: var(--vv-navy-dark);
	color: var(--vv-cream);
	font-family: var(--vv-font-body);
	font-size: 22px;
	line-height: 1.7;
}

.vv-footer__top {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}

.vv-footer__logo img {
	display: block;
	width: 250px;
	max-width: 100%;
	height: auto;
}

.vv-footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: start;
	padding-left: 80px;
}

.vv-footer__col:nth-child(2) {
	padding-left: 1.5rem;
}

.vv-footer__contact {
	overflow-wrap: anywhere;
}

.vv-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vv-footer__menu li,
.vv-footer__contact p {
	margin: 0 0 0.75rem;
}

.vv-footer a {
	color: var(--vv-cream);
	text-decoration: none;
	text-underline-offset: 4px;
}

.vv-footer a:is(:hover, :focus-visible) {
	color: var(--vv-gold-light);
	text-decoration: underline;
}

.vv-footer__contact strong {
	color: var(--vv-cream);
}

.vv-footer__bottom {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(214, 185, 138, 0.4);
	font-size: 19px;
	text-align: center;
}

.vv-footer__bottom p {
	margin: 0 0 0.65rem;
}

@media (max-width: 1100px) {
	.vv-footer__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.vv-footer__logo {
		max-width: 250px;
		margin-inline: auto;
	}
}

@media (max-width: 767px) {
	.vv-footer__cols {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.vv-footer__contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.vv-footer__cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Gravity Form 5 on page 4229 (from child theme v1.19) ---------- */

body.page-id-4229 #gform_wrapper_5 .gform-field-label,
body.page-id-4229 #gform_wrapper_5 .gfield_required,
body.page-id-4229 #gform_wrapper_5 .gform_required_legend {
	color: #fff;
	font-weight: 700;
}

body.page-id-4229 #gform_wrapper_5 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	background-color: #f5f7fa;
	color: #000;
	font-size: 20px;
	font-weight: 500;
	opacity: 1;
}

body.page-id-4229 #gform_wrapper_5 .gform-field-label {
	font-size: 20px;
	line-height: 1.4;
}

body.page-id-4229 #gform_wrapper_5 :is(.gfield_required, .gform_required_legend) {
	font-size: 16px;
}

body.page-id-4229 #gform_wrapper_5 :is(button, input[type="submit"]) {
	font-size: 20px;
}

body.page-id-4229 #gform_wrapper_5 #gform_submit_button_5 {
	min-height: 48px;
	padding: 12px 28px;
	font-size: 20px;
	line-height: 1.2;
	max-width: 100%;
	white-space: normal;
}

body.page-id-4229 .vv-entry-content .vv-bb-section > .wp-block-columns > .wp-block-column {
	align-self: stretch;
	background-color: rgba(0, 26, 69, 0.82);
	color: #fff;
	padding: clamp(16px, 2vw, 28px);
	border-radius: 8px;
	box-sizing: border-box;
	min-width: 0;
}

body.page-id-4229 .vv-contact-details > p {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 22px;
	line-height: 1.4;
}

body.page-id-4229 .vv-entry-content .vv-bb-section .vv-contact-details a[href^="mailto:"],
body.page-id-4229 .vv-entry-content .vv-bb-section .vv-contact-details a[href^="mailto:"]:visited {
	color: #a8d8ff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.page-id-4229 .vv-entry-content .vv-bb-section .vv-contact-details a[href^="mailto:"]:is(:hover, :focus-visible) {
	color: #d6edff;
}

body.page-id-4229 .vv-entry-content .vv-bb-section .vv-contact-details a[href^="mailto:"]:focus-visible {
	outline: 2px solid #a8d8ff;
	outline-offset: 3px;
}

body.page-id-4229 .vv-contact-details {
	display: flex;
	flex-direction: column;
}

body.page-id-4229 .vv-contact-details iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 40px;
	flex: 1;
	height: auto;
	min-height: 300px;
}

body.page-id-4229 #gform_wrapper_5 {
	margin-top: 0;
	padding-top: 0;
}

body.page-id-4229 #gform_wrapper_5 .gform_title {
	margin-top: 0;
}

body.page-id-4229 #gform_wrapper_5 .gform_fields {
	grid-row-gap: 10px;
}

body.page-id-4229 #gform_wrapper_5 .gfield {
	margin-bottom: 0;
}

body.page-id-4229 #gform_wrapper_5 textarea {
	height: 120px;
	min-height: 120px;
	resize: vertical;
}

body.page-id-4229 #gform_wrapper_5 :is(input, textarea)::placeholder {
	color: #4b5563;
	opacity: 1;
}

@media (min-width: 993px) {
	body.page-id-4229 #gform_wrapper_5 #gform_submit_button_5 {
		position: relative;
		top: 5px;
	}
}

/* ---------- Converted Beaver sections & FAQ ---------- */

.wp-block-group.vv-bb-section {
	padding: 40px 20px;
}

.vv-bb-section > * {
	max-width: var(--vv-max);
	margin-left: auto;
	margin-right: auto;
}

.vv-bb-section > .wp-block-columns {
	gap: 40px;
	padding: 0 20px;
}

/* Links on dark/photo sections need a lighter color */
.vv-entry-content .vv-bb-section.has-white-color a[href]:not(.wp-element-button),
.vv-bb-section.has-white-color a[href]:not(.wp-element-button) {
	color: var(--vv-gold-light);
}

.vv-entry-content .vv-bb-section.has-white-color a[href]:not(.wp-element-button):is(:hover, :focus-visible, :visited),
.vv-bb-section.has-white-color a[href]:not(.wp-element-button):is(:hover, :focus-visible, :visited) {
	color: var(--vv-cream);
}

.wp-block-details {
	border: 1px solid var(--vv-gray);
	background-color: #fff;
}

.wp-block-details + .wp-block-details {
	margin-top: 10px !important;
}

.page-id-99 .vv-entry {
	background: #fff;
}

.page-id-99 .vv-page-header {
	max-width: var(--vv-max);
}

.page-id-99 .vv-page-title {
	font-family: var(--vv-font-body);
}

.page-id-99 .wp-block-details {
	border: 0;
	background: #eee;
}

.page-id-99 .wp-block-details > summary {
	position: relative;
	padding: 10px 40px 10px 10px;
	background: #e6e6e6;
	color: #000;
	font-weight: 600;
	list-style: none;
}

.page-id-99 .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.page-id-99 .wp-block-details > summary::after {
	content: "+";
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
}

.page-id-99 .wp-block-details[open] > summary,
.page-id-99 .wp-block-details > summary:is(:hover, :focus-visible) {
	background: var(--vv-charcoal);
	color: #fff;
	border: 0;
}

.page-id-99 .wp-block-details[open] > summary::after {
	content: "−";
}

.page-id-99 .wp-block-details > :not(summary) {
	margin: 0;
	padding: 15px;
}

.vv-therapy-demo {
	background: #fff;
}

.vv-therapy-demo:not(.vv-therapy-editable) .vv-page-header,
.vv-therapy-demo:not(.vv-therapy-editable) .vv-entry-content > :not(.pf-content),
.vv-therapy-demo:not(.vv-therapy-editable) .vv-entry-content > .pf-content > * {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.vv-therapy-demo .vv-page-title,
.vv-therapy-demo .pp-content-grid-post-title {
	font-family: var(--vv-font-body);
}

.vv-therapy-demo .ctc-pp-grid-item {
	display: grid;
	grid-template-columns: 1fr 5fr;
	gap: 30px;
	margin: 20px 0;
	padding: 20px;
	background: #f2f2f2;
}

.vv-therapy-demo .pp-content-grid-post-image img {
	max-width: 100%;
	height: auto;
}

.vv-therapy-demo .pp-content-grid-post-title {
	margin: 0 0 10px;
	font-size: 24px;
}

.vv-therapy-list .row {
	display: grid;
	grid-template-columns: 1fr 2fr 2fr 1fr;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid #ddd;
}

.vv-therapy-list .pp-content-grid-post-text {
	display: contents;
}

@media (max-width: 767px) {
	.vv-therapy-demo .ctc-pp-grid-item,
	.vv-therapy-list .row {
		grid-template-columns: 1fr;
	}
}

.tax-archive-categories.term-writing-as-therapy .vv-archive-item {
	display: flow-root;
}

.vv-therapy-image {
	float: left;
	width: 16.6667%;
	padding-right: 24px;
}

.vv-therapy-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.vv-therapy-image {
		float: none;
		width: auto;
		padding-right: 0;
		margin-bottom: 16px;
	}
}

.wp-block-details > summary {
	padding: 15px 20px;
	font-weight: 700;
	cursor: pointer;
}

.wp-block-details[open] > summary {
	border-bottom: 1px solid var(--vv-gray);
}

.wp-block-details > :not(summary) {
	padding: 0 20px;
}

.wp-block-details > summary + * {
	margin-top: 15px;
}

.wp-block-details > :last-child:not(summary) {
	padding-bottom: 15px;
}

/* ---------- Functional pages: legacy markup + plugin output ---------- */

/* Minimal .row/.col-sm-* grid for legacy markup (Bootstrap is not loaded) */
.vv-entry-content .row {
	display: flex;
	flex-wrap: wrap;
	margin-inline: -12px;
}

.vv-entry-content .row > [class*="col-sm-"] {
	box-sizing: border-box;
	padding-inline: 12px;
	min-width: 0;
}

.vv-entry-content .col-sm-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.vv-entry-content .col-sm-3  { flex: 0 0 25%;      max-width: 25%; }
.vv-entry-content .col-sm-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.vv-entry-content .col-sm-6  { flex: 0 0 50%;      max-width: 50%; }
.vv-entry-content .col-sm-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.vv-entry-content .col-sm-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.vv-entry-content .col-sm-12 { flex: 0 0 100%;     max-width: 100%; }

@media (max-width: 767px) {
	.vv-entry-content .row > [class*="col-sm-"] {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* Tables: TablePress, wpDataTables, legacy shortcode tables */
.vv-entry-content :is(.tablepress, .wpDataTable, .wpdt-c table, table.wpDataTable) {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--vv-font-body);
	font-size: 16px;
}

.vv-entry-content :is(.tablepress, .wpDataTable, .wpdt-c table) :is(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--vv-gray);
	text-align: left;
	vertical-align: top;
}

.vv-entry-content :is(.tablepress, .wpDataTable, .wpdt-c table) thead th,
.vv-entry-content :is(.tablepress, .wpDataTable, .wpdt-c table) .column-1:is(th, td):first-child {
	background: var(--vv-navy);
	color: var(--vv-cream);
}

.vv-entry-content :is(.tablepress, .wpDataTable, .wpdt-c table) tbody tr:nth-child(even) {
	background: #f5f5f2;
}

/* Forminator forms: match theme inputs/buttons */
.vv-entry-content .forminator-ui .forminator-label,
.vv-entry-content .forminator-ui label {
	font-family: var(--vv-font-body);
	font-weight: 700;
}

.vv-entry-content .forminator-ui :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea) {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--vv-gray);
	border-radius: 4px;
	background: #fff;
	font-family: var(--vv-font-body);
	font-size: 17px;
}

.vv-entry-content .forminator-ui :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea):focus {
	border-color: var(--vv-navy);
	outline: 2px solid rgba(0, 40, 104, 0.25);
	outline-offset: 0;
}

.vv-entry-content .forminator-ui .forminator-button,
.vv-entry-content .forminator-ui button[type="submit"],
.vv-entry-content .forminator-ui input[type="submit"] {
	padding: 14px 30px;
	border: 0;
	border-radius: 4px;
	background: var(--vv-navy);
	color: var(--vv-cream);
	font-family: var(--vv-font-body);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.vv-entry-content .forminator-ui .forminator-button:is(:hover, :focus-visible),
.vv-entry-content .forminator-ui :is(button, input)[type="submit"]:is(:hover, :focus-visible) {
	background: var(--vv-navy-dark);
}

.vv-entry-content .forminator-ui .forminator-row {
	margin-bottom: 16px;
}

/* wpDataTables chrome (filters/pagination wrappers) */
.vv-entry-content .wpdt-c :is(.dataTables_filter, .dataTables_length, .dataTables_paginate) {
	font-family: var(--vv-font-body);
	font-size: 15px;
}

.vv-entry-content .wpdt-c .dataTables_filter input {
	padding: 8px 10px;
	border: 1px solid var(--vv-gray);
	border-radius: 4px;
}

/* Legacy submit/action buttons rendered by shortcodes */
.vv-entry-content :is(a.vv-btn, a.pp-btn, button.pp-btn) {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 4px;
	background: var(--vv-navy);
	color: var(--vv-cream) !important;
	font-weight: 700;
	text-decoration: none;
}

.vv-entry-content :is(a.vv-btn, a.pp-btn, button.pp-btn):is(:hover, :focus-visible) {
	background: var(--vv-navy-dark);
}

/* ---------- Account/profile pages polish ---------- */

/* Profile tables (My Account, Edit Account): first column = field label */
.vv-entry-content .tablepress td.column-1,
.vv-entry-content .tablepress td:first-child {
	background: transparent;
	color: var(--vv-navy-dark);
	font-weight: 700;
	white-space: nowrap;
	width: 1%;
}

.vv-entry-content .tablepress {
	max-width: 720px;
	border: 1px solid var(--vv-gray);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vv-entry-content .tablepress :is(th, td) {
	border-color: var(--vv-gray);
}

/* Generic Gravity Forms styling (all forms, not just page 4229) */
.vv-entry-content .gform_wrapper .gfield_label,
.vv-entry-content .gform_wrapper .gform-field-label {
	font-family: var(--vv-font-body);
	font-weight: 700;
	color: var(--vv-navy-dark);
}

.vv-entry-content .gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], select, textarea) {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--vv-gray);
	border-radius: 4px;
	background: #fff;
	font-family: var(--vv-font-body);
	font-size: 16px;
}

.vv-entry-content .gform_wrapper :is(input, select, textarea):focus {
	border-color: var(--vv-navy);
	outline: 2px solid rgba(0, 40, 104, 0.2);
	outline-offset: 0;
}

.vv-entry-content .gform_wrapper .gform_button,
.vv-entry-content .gform_wrapper input[type="submit"] {
	padding: 14px 32px;
	border: 0;
	border-radius: 4px;
	background: var(--vv-navy);
	color: var(--vv-cream) !important;
	font-family: var(--vv-font-body);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.vv-entry-content .gform_wrapper .gform_button:is(:hover, :focus-visible),
.vv-entry-content .gform_wrapper input[type="submit"]:is(:hover, :focus-visible) {
	background: var(--vv-navy-dark);
}

/* Required asterisk + field spacing */
.vv-entry-content .gform_wrapper .gfield_required {
	color: #b3001b;
}

.vv-entry-content .gform_wrapper .gfield {
	margin-bottom: 18px;
}
