/*
 * WV Wins: presentation layer (v2, 11/24: plainer after "looks a little too AI made").
 *
 * One typeface (Public Sans) and West Virginia blue with a single gold line under the header.
 * No all-caps tracked labels, no accent underlines, no decorative icons, no card grids, no
 * shadows. Headings are sentence case and left-aligned; "Myth #1" and "Truth" are the client's
 * own labels and stay plain bold text.
 *
 * Contents: 1 Tokens & base · 2 Block styles · 3 Opening section · 4 Myths & truths
 *           5 Coming-soon frames · 6 Data, FAQs, resources · 7 Header · 8 Footer · 9 Responsive
 */

/* 1. Tokens & base ------------------------------------------------------------------------ */

:root {
	--wvw-blue: var(--wp--preset--color--primary);
	--wvw-blue-dark: var(--wp--preset--color--primary-dark);
	--wvw-navy: var(--wp--preset--color--secondary);
	--wvw-gold: var(--wp--preset--color--accent);
	--wvw-cream: var(--wp--preset--color--neutral-light);
	--wvw-line: var(--wp--preset--color--line);
	--wvw-stone: var(--wp--preset--color--stone);
	--wvw-muted: var(--wp--preset--color--neutral-mid);
	--wvw-on-dark: var(--wp--preset--color--text-on-dark);
	--wvw-radius: 2px;
	--wvw-sticky: 72px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--wvw-sticky) + 12px);
}
body.wvw-site {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.wvw-site h1,
.wvw-site h2,
.wvw-site h3,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
	text-wrap: balance;
}
.wvw-site h2,
.editor-styles-wrapper h2 {
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 700;
}
.wvw-site p,
.wvw-site li {
	text-wrap: pretty;
}
::selection {
	background: var(--wvw-navy);
	color: #fff;
}
.wvw-site :focus-visible {
	outline: 2px solid var(--wvw-blue);
	outline-offset: 3px;
	border-radius: 2px;
}
.wvw-site .is-dark :focus-visible,
.wvw-site-footer :focus-visible {
	outline-color: #fff;
}

/* Blocksy leaves an empty hero wrapper with a bottom margin even when the page hero is off. */
.wvw-site .hero-section {
	display: none;
}
/* Full-bleed bands sit flush (WordPress block gap + Blocksy content spacing). */
.entry-content > .alignfull,
.wvw-site-footer > .alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.wvw-band {
	position: relative;
}
/* Two white sections in a row get a rule between them. */
.entry-content > .wvw-band.has-white-background-color + .wvw-band.has-white-background-color {
	border-top: 1px solid var(--wvw-line);
}

/* 2. Block styles ------------------------------------------------------------------------- */

.is-style-lead {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.6;
}
.is-dark p {
	color: var(--wvw-on-dark);
}
.wvw-site .is-dark h1,
.wvw-site .is-dark h2,
.wvw-site .is-dark h3,
.editor-styles-wrapper .is-dark h1,
.editor-styles-wrapper .is-dark h2,
.editor-styles-wrapper .is-dark h3 {
	color: #fff;
}
.is-dark a:where(:not(.wp-element-button)) {
	color: #fff;
}

/* "Myth #1" / "Truth": the client's labels, as plain bold text. */
p.is-style-label {
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wvw-muted);
}
p.is-style-label.wvw-label-truth {
	color: var(--wvw-blue);
}

/* Buttons: flat (none on the page today; kept for the client's Styles panel). */
.wvw-site .wp-block-button__link,
.editor-styles-wrapper .wp-block-button__link {
	padding: 0.8rem 1.4rem;
	font-weight: 700;
	line-height: 1.2;
	border-radius: var(--wvw-radius);
	text-decoration: none;
}
.wvw-site .wp-block-button__link:hover {
	background-color: var(--wvw-blue-dark);
	color: #fff;
}
.wp-block-button.is-style-gold .wp-block-button__link {
	background: var(--wvw-gold);
	color: var(--wvw-navy);
}
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 2px #fff;
}

/* 3. Opening section ----------------------------------------------------------------------- */

.wvw-hero h1 {
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.015em;
}
.wvw-hero .is-style-lead {
	max-width: 34rem;
}
.wvw-photo img,
.wvw-hero .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wvw-radius);
}

/* 4. Myths & truths ----------------------------------------------------------------------- */

.wvw-head h2 {
	max-width: 24ch;
}
.wvw-myth {
	padding-block: var(--wp--preset--spacing--xl);
	border-top: 1px solid var(--wvw-stone);
}
.wvw-myth > .wp-block-columns {
	margin: 0;
}
.wvw-site .wvw-myth h3.wvw-myth__claim,
.editor-styles-wrapper .wvw-myth h3.wvw-myth__claim {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: var(--wvw-navy);
}
.wvw-myth .wp-block-video,
.wvw-myth .wp-block-embed {
	margin: 0;
}
.wvw-myth .wp-block-video video {
	display: block;
	width: 100%;
	border-radius: var(--wvw-radius);
	background: #000;
}

/* 5. Coming-soon frames (inc/placeholders.php) --------------------------------------------- */

.wvw-pending {
	margin: 0;
}
.wvw-pending__frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--wvw-radius);
}
.wvw-pending--video .wvw-pending__frame {
	background: #1c2a3d;
	color: #c9d3e0;
}
/* A plain play triangle, like a paused player. */
.wvw-pending__play {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 1.1rem 0 1.1rem 1.8rem;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.85);
}
.wvw-pending__text {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}
.wvw-pending--graphic .wvw-pending__frame {
	aspect-ratio: 4 / 3;
	background: var(--wvw-cream);
	color: var(--wvw-muted);
	border: 1px solid var(--wvw-stone);
}

/* 6. Data, FAQs, resources ------------------------------------------------------------------ */

.wvw-graphics .wp-block-image {
	margin: 0;
}
.wvw-graphics .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.wvw-faqs {
	border-bottom: 1px solid var(--wvw-stone);
}
.wvw-site .wp-block-details.wvw-faq,
.editor-styles-wrapper .wp-block-details.wvw-faq {
	margin: 0;
	border-top: 1px solid var(--wvw-stone);
}
.wp-block-details.wvw-faq summary {
	position: relative;
	padding: 1.1rem 2.5rem 1.1rem 0;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
	line-height: 1.4;
	color: var(--wvw-navy);
	list-style: none;
	cursor: pointer;
}
.wp-block-details.wvw-faq summary::-webkit-details-marker {
	display: none;
}
.wp-block-details.wvw-faq summary::before,
.wp-block-details.wvw-faq summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.25rem;
	width: 0.9rem;
	height: 2px;
	background: var(--wvw-navy);
	transform: translateY(-50%);
}
.wp-block-details.wvw-faq summary::after {
	transform: translateY(-50%) rotate(90deg);
}
.wp-block-details.wvw-faq[open] summary::after {
	display: none;
}
.wp-block-details.wvw-faq[open] summary {
	padding-bottom: 0.5rem;
}
.wp-block-details.wvw-faq summary:hover {
	color: var(--wvw-blue);
}
.wp-block-details.wvw-faq > :not(summary) {
	max-width: 44rem;
	margin-top: 0;
	margin-bottom: 1.1rem;
}

.wvw-resource {
	padding-block: var(--wp--preset--spacing--lg);
	border-top: 1px solid var(--wvw-line);
}
.wvw-resource:last-child {
	border-bottom: 1px solid var(--wvw-line);
}
.wvw-site .wvw-resource h3,
.editor-styles-wrapper .wvw-resource h3 {
	font-weight: 600;
}
.wvw-resource h3 a {
	color: var(--wvw-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.wvw-resource h3 a:hover {
	color: var(--wvw-navy);
}
.wvw-resource p {
	margin: 0;
	color: var(--wvw-muted);
}

/* 7. Header ---------------------------------------------------------------------------------- */

/* Sticky white header. Until the logo exists, the site title is the wordmark. The gold line under
   it is the one gold accent on the page. */
#header.ct-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar #header.ct-header {
	top: 32px;
}
#header [data-row*="middle"] {
	border-bottom: 3px solid var(--wvw-gold);
}
#header .site-title,
#offcanvas .site-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: none;
}
#header .site-title a {
	color: var(--wvw-navy);
	text-decoration: none;
}
#header [data-row*="middle"] .menu > li > a {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 500;
	text-transform: none;
}
#offcanvas .mobile-menu .menu > li > a,
#offcanvas .mobile-menu a {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.25rem;
	font-weight: 600;
}

/* 8. Footer ---------------------------------------------------------------------------------- */

.wvw-footer p.wvw-footer-mark {
	margin: 0 0 0.6rem;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
}
.wvw-footer p.wvw-footer-mark a {
	color: #fff;
	text-decoration: none;
}
.wvw-footer p.wvw-footer-about {
	max-width: 28rem;
	margin: 0;
}
.wvw-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wvw-footer .wvw-footer-links a {
	color: var(--wvw-on-dark);
	text-decoration: none;
}
.wvw-footer .wvw-footer-links a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.wp-block-group.wvw-footer-bottom {
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.wvw-footer p.wvw-footer-copy {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted-on-dark);
}
/* Blocksy's own footer rows are unused (the Site Footer page replaces them). */
.wvw-site #footer.ct-footer:not(:has(.ct-container *)) {
	display: none;
}

/* 404 */
.wvw-404__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--xxxl) var(--wp--preset--spacing--gutter);
}
.wvw-404__inner h1 {
	margin: 0 0 1rem;
}

/* 9. Responsive, motion & print ----------------------------------------------------------- */

@media (max-width: 999.98px) {
	:root {
		--wvw-sticky: 64px;
	}
	.admin-bar #header.ct-header {
		top: 46px;
	}
}
@media (max-width: 781.98px) {
	.wvw-hero .wp-block-columns {
		gap: var(--wp--preset--spacing--xl);
	}
	.wvw-myth > .wp-block-columns {
		gap: var(--wp--preset--spacing--md);
	}
	.wvw-footer-links {
		justify-content: flex-start;
	}
}
@media (max-width: 600px) {
	.admin-bar #header.ct-header {
		top: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
@media print {
	#header.ct-header {
		position: static;
	}
}
