/**
 * Connect + Contact + Guide + About + Store + the Tier 3 form pages +
 * the Tier 3 generic-templates pass — Design V2 rail spacing and section
 * rhythm (Tier 1 + Tier 2 + Tier 3).
 *
 * Additive only, every rule scoped under body.lvg-v2 main.lvg-connect,
 * main.lvg-contact, main.lvg-guide, main.lvg-about, main.lvg-store,
 * main.lvg-submit-event, main.lvg-suggest-edit, main.lvg-member-preferences,
 * main.lvg-advertise, main.lvg-privacy-policy, main.lvg-terms,
 * main.lvg-coming-soon-page, main.lvg-search, main.lvg-404, main.lvg-index,
 * main.lvg-page, or main.lvg-post, so nothing here can touch a page that
 * has not opted into V2 or any section outside these pages. The generic
 * rail spacing and .lvg-section rhythm already come from v2-tokens.css;
 * this file only adds the minimal spacing these pages' own section mix
 * needs on top of that shared baseline. The Dolly Wall band on
 * Connect/Contact keeps its own existing stylesheet (dolly-wall-band.css)
 * untouched and is not addressed here.
 *
 * Loaded after style.css and v2-tokens.css, and only on page-connect.php,
 * page-contact.php, page-guide.php, page-about.php, page-store.php,
 * page-submit-event.php, page-suggest-edit.php,
 * page-member-preferences.php, page-advertise.php,
 * page-privacy-policy.php, page-terms.php, page-coming-soon.php (only
 * when assigned to the 'coming-soon' slug), search.php, 404.php,
 * index.php, single.php, and page.php (only when the
 * `lvg_generic_page_rail` filter is flipped true) — see the conditional
 * enqueue in inc/setup.php. No other page pays for this file.
 */

body.lvg-v2 main.lvg-connect,
body.lvg-v2 main.lvg-contact,
body.lvg-v2 main.lvg-guide,
body.lvg-v2 main.lvg-about,
body.lvg-v2 main.lvg-store,
body.lvg-v2 main.lvg-submit-event,
body.lvg-v2 main.lvg-suggest-edit,
body.lvg-v2 main.lvg-member-preferences,
body.lvg-v2 main.lvg-advertise,
body.lvg-v2 main.lvg-privacy-policy,
body.lvg-v2 main.lvg-terms,
body.lvg-v2 main.lvg-coming-soon-page,
body.lvg-v2 main.lvg-search,
body.lvg-v2 main.lvg-404,
body.lvg-v2 main.lvg-index,
body.lvg-v2 main.lvg-page,
body.lvg-v2 main.lvg-post {
	display: block;
}

/* Connect hides the site header (style.css .lvg-connect-template .lvg-site-header),
   but rail.js keeps the last measured header height (it ignores a 0), so the
   sticky rail sat 84px down over the link-stack logo. On Connect the rail sits
   at the top (2026-10-20, V2 release 1). Overrides rail.css's header-coupled
   `top`; the shared --lvg-site-header-height token is left alone. */
body.lvg-connect-template .lvg-rail,
body.lvg-connect-template.lvg-rail-auto-hide .lvg-rail {
	top: -1px;
}

/* Connect is a single link-stack section; give it the same rail-aware
   top spacing the other V2 pages give their first section, on top of
   whatever .lvg-linktree already sets for itself. */
body.lvg-v2 main.lvg-connect #links {
	padding-block-start: 1.5rem;
}

/* Contact's sections are plain .lvg-section rhythm already handled by
   v2-tokens.css; close the page with a bit more room above the footer,
   whichever section (white-party is conditional) happens to render last. */
body.lvg-v2 main.lvg-contact > .lvg-rail-scroll-target:last-of-type {
	padding-block-end: clamp(2.5rem, 6vw, 4rem);
}

/* Guide and About are plain .lvg-section / .lvg-guide-section rhythm
   already handled by v2-tokens.css and the theme's existing guide/about
   rules; close each page with the same bit of extra room above the
   footer that Contact gets. */
body.lvg-v2 main.lvg-guide > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-about > .lvg-rail-scroll-target:last-of-type {
	padding-block-end: clamp(2.5rem, 6vw, 4rem);
}

/* Submit an event, Suggest edit, and Advertise are plain .lvg-section
   rhythm too (Tier 3 form-pages pass); Member preferences' second
   section also uses .lvg-section. Close each page with the same bit of
   extra room above the footer that Contact/Guide/About get. */
body.lvg-v2 main.lvg-submit-event > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-suggest-edit > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-member-preferences > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-advertise > .lvg-rail-scroll-target:last-of-type {
	padding-block-end: clamp(2.5rem, 6vw, 4rem);
}

/* Store keeps its single hero section but is now split rail-wise into an
   intro block and the product/order block; give the order block (product,
   request form, and returns policy) the same rail-aware top spacing the
   other V2 pages give their first section. */
body.lvg-v2 main.lvg-store #order {
	padding-block-start: 1.5rem;
}

/* Tier 3 generic-templates pass (2026-09): Privacy Policy, Terms, Coming
   Soon, search, 404, index, every post, and the generic page.php
   fallback. All of these are plain .lvg-section rhythm (already handled
   by v2-tokens.css) except single.php, which keeps its own pre-existing
   article styling below; close each page with the same bit of extra
   room above the footer that Contact/Guide/About/the Tier 3 form pages
   get. */
body.lvg-v2 main.lvg-privacy-policy > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-terms > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-coming-soon-page > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-search > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-404 > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-index > .lvg-rail-scroll-target:last-of-type,
body.lvg-v2 main.lvg-page > .lvg-rail-scroll-target:last-of-type {
	padding-block-end: clamp(2.5rem, 6vw, 4rem);
}

/* single.php (every post, Dolly tribute or not) — its pre-existing
 * article styling, relocated verbatim from the template's inline
 * <style> block during the Tier 3 generic-templates pass (2026-09) so
 * the template stays inline-style-free (Two hard rules,
 * Website/docs/DESIGN_V2_SYSTEM.md). Selectors only gained the
 * `body.lvg-v2 main.lvg-post` / `body.lvg-v2 main.lvg-article-page`
 * ancestor scope; the declarations themselves are unchanged, so the
 * rendered result is the same as before single.php opted into V2 (it
 * always renders V2 now — see lvg_page_uses_rail()'s is_singular('post')
 * clause — so this rule set is effectively always active, same as
 * before).
 */
body.lvg-v2 main.lvg-article-page {
	--lvg-article-accent: var(--lvg-purple);
	--lvg-article-accent-soft: rgba(117, 7, 135, .2);
	background:
		radial-gradient(circle at 12% 8%, var(--lvg-article-accent-soft), transparent 31rem),
		linear-gradient(180deg, rgba(6, 5, 12, .12), rgba(6, 5, 12, .72));
}

body.lvg-v2 main.lvg-article-page--dolly {
	--lvg-article-accent: var(--lvg-pink);
	--lvg-article-accent-soft: rgba(243, 79, 178, .18);
}

body.lvg-v2 main.lvg-post .lvg-article-hero {
	padding: clamp(2.8rem, 8vw, 6rem) 0 clamp(1.2rem, 4vw, 2.5rem);
}

body.lvg-v2 main.lvg-post .lvg-article-back {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-bottom: 1.15rem;
	color: var(--lvg-muted);
	font-size: .78rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.lvg-v2 main.lvg-post .lvg-article-back:hover,
body.lvg-v2 main.lvg-post .lvg-article-back:focus-visible {
	color: #fff;
}

body.lvg-v2 main.lvg-post .lvg-article-header,
body.lvg-v2 main.lvg-post .lvg-article-body {
	max-width: 52rem;
	margin-inline: auto;
}

body.lvg-v2 main.lvg-post .lvg-article-header {
	position: relative;
	overflow: hidden;
	padding: clamp(1.45rem, 5vw, 3.25rem);
	border: 1px solid rgba(255, 255, 255, .13);
	border-top: 3px solid var(--lvg-article-accent);
	border-radius: var(--lvg-radius);
	background: linear-gradient(145deg, rgba(29, 16, 35, .92), rgba(15, 15, 31, .94));
	box-shadow: var(--lvg-shadow);
}

body.lvg-v2 main.lvg-post .lvg-article-header::after {
	position: absolute;
	inset: auto -5rem -7rem auto;
	width: 18rem;
	height: 18rem;
	border-radius: 50%;
	background: radial-gradient(circle, var(--lvg-article-accent-soft), transparent 68%);
	content: "";
	pointer-events: none;
}

body.lvg-v2 main.lvg-post .lvg-article-kicker {
	position: relative;
	z-index: 1;
	margin: 0 0 .8rem;
	color: var(--lvg-article-accent);
	font-size: .76rem;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
}

body.lvg-v2 main.lvg-post .lvg-article-title {
	position: relative;
	z-index: 1;
	max-width: 17ch;
	margin: 0;
	font-size: clamp(2.15rem, 7.6vw, 5rem);
	font-weight: 900;
	letter-spacing: -.035em;
	line-height: .98;
	text-wrap: balance;
}

body.lvg-v2 main.lvg-post .lvg-article-dek {
	position: relative;
	z-index: 1;
	max-width: 58ch;
	margin: 1.2rem 0 0;
	color: var(--lvg-muted);
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	line-height: 1.55;
}

body.lvg-v2 main.lvg-post .lvg-article-tags {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: 1.25rem;
}

body.lvg-v2 main.lvg-post .lvg-article-tag {
	padding: .35rem .62rem;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: .66rem;
	font-weight: 900;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.lvg-v2 main.lvg-post .lvg-article-section {
	padding: 0 0 clamp(4rem, 10vw, 7rem);
}

body.lvg-v2 main.lvg-post .lvg-article-body {
	padding: clamp(1.4rem, 5vw, 3.2rem);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--lvg-radius);
	background: rgba(15, 15, 31, .88);
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

body.lvg-v2 main.lvg-post .lvg-article-content {
	color: rgba(247, 244, 251, .92);
	font-size: clamp(1rem, 2.2vw, 1.12rem);
	line-height: 1.78;
}

body.lvg-v2 main.lvg-post .lvg-article-content > :first-child {
	margin-top: 0;
	font-size: clamp(1.1rem, 2.6vw, 1.3rem);
}

body.lvg-v2 main.lvg-post .lvg-article-content p {
	margin: 0 0 1.35em;
}

body.lvg-v2 main.lvg-post .lvg-article-content a {
	color: #fffaf4;
	text-decoration: underline;
	text-decoration-color: #d9b7ff;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

body.lvg-v2 main.lvg-post .lvg-article-content a:hover,
body.lvg-v2 main.lvg-post .lvg-article-content a:focus-visible {
	color: #fff;
	text-decoration-color: var(--lvg-article-accent);
}

body.lvg-v2 main.lvg-article-page--dolly .lvg-article-content > p:last-child {
	margin: 2.25rem 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(243, 79, 178, .28);
	color: var(--lvg-muted);
	font-size: .9rem;
}

body.lvg-v2 main.lvg-post .lvg-article-return {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

body.lvg-v2 main.lvg-post .lvg-article-return a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .65rem 1.05rem;
	border: 1px solid color-mix(in srgb, var(--lvg-article-accent) 70%, #fffaf4);
	border-radius: 999px;
	background: color-mix(in srgb, var(--lvg-article-accent) 12%, transparent);
	font-size: .76rem;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.lvg-v2 main.lvg-post .lvg-article-return a:hover,
body.lvg-v2 main.lvg-post .lvg-article-return a:focus-visible {
	border-color: var(--lvg-purple);
	background: rgba(117, 7, 135, 0.18);
}

@media (max-width: 520px) {
	body.lvg-v2 main.lvg-post .lvg-article-hero {
		padding-top: 2.25rem;
	}

	body.lvg-v2 main.lvg-post .lvg-article-title {
		font-size: clamp(2rem, 11vw, 3.35rem);
	}

	body.lvg-v2 main.lvg-post .lvg-article-header,
	body.lvg-v2 main.lvg-post .lvg-article-body {
		border-radius: 20px;
	}
}


/* ---- Meet Prism (/prism/), 2026-10-24 ----
 * Lives here, not in its own file: a new stylesheet changes the LMNOP skin
 * handover's declaration_scan_order, which is re-pinned by its own lane.
 * Declares no custom properties. */

main.lvg-prism {
	background: var(--v2-stage);
	color: var(--lvg-text);
}

.lvg-prism .lvg-section {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.lvg-prism .lvg-container {
	max-width: var(--lvg-max);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.lvg-prism__hero-grid {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
}

.lvg-prism__eyebrow {
	color: var(--v2-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin: 0 0 0.85rem;
	text-transform: uppercase;
}

.lvg-prism h1 {
	font-size: clamp(3rem, 9vw, 7rem);
	letter-spacing: -0.06em;
	line-height: 0.9;
	margin: 0;
}

.lvg-prism h2 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: -0.04em;
	line-height: 1;
	margin: 0 0 1rem;
}

.lvg-prism__lede,
.lvg-prism__lead {
	color: var(--lvg-muted);
	font-size: clamp(1.1rem, 2.1vw, 1.4rem);
	line-height: 1.55;
	margin: 1.5rem 0 0;
	max-width: 42rem;
}

.lvg-prism__lead {
	margin-top: 0;
}

.lvg-prism__face {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	text-align: center;
}

.lvg-prism__face p {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0;
}

.lvg-prism__avatar {
	border-radius: 2rem;
	box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
	height: auto;
	max-width: 100%;
}

.lvg-prism__section {
	border-top: 1px solid var(--lvg-line);
}

.lvg-prism__cards,
.lvg-prism__updates {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.lvg-prism__cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lvg-prism__cards li {
	background: var(--lvg-surface-strong);
	border: 1px solid var(--lvg-line);
	border-radius: var(--lvg-radius);
	display: grid;
	gap: 0.6rem;
	min-width: 0;
	padding: 1.35rem;
}

.lvg-prism__cards strong {
	font-size: 1.15rem;
}

.lvg-prism__cards span {
	color: var(--lvg-muted);
	line-height: 1.55;
}

.lvg-prism__updates {
	border-left: 3px solid rgba(255, 250, 244, 0.35);
	display: grid;
	gap: 1.1rem;
	max-width: 46rem;
	padding-left: 1.25rem;
}

.lvg-prism__updates li {
	display: grid;
	gap: 0.25rem;
}

.lvg-prism__updates time {
	color: var(--v2-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lvg-prism__updates span {
	line-height: 1.55;
}

@media (max-width: 860px) {
	.lvg-prism__hero-grid,
	.lvg-prism__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.lvg-prism__face {
		justify-items: start;
		text-align: left;
	}

	.lvg-prism__avatar {
		width: 7.5rem;
	}
}

/* ---- What's new (/whats-new/), 2026-10-24 ----
 * Same reasoning as Meet Prism above: lives here so no new stylesheet is
 * added. Declares no custom properties. */

main.lvg-whatsnew {
	background:
		radial-gradient(circle at 12% 6%, rgba(117, 7, 135, 0.16), transparent 30rem),
		var(--v2-stage);
	color: var(--lvg-text);
}

.lvg-whatsnew .lvg-section {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.lvg-whatsnew .lvg-container {
	max-width: var(--lvg-max);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.lvg-whatsnew__eyebrow {
	color: var(--v2-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.lvg-whatsnew h1 {
	font-size: clamp(2.6rem, 7vw, 4.5rem);
	line-height: 1;
	margin: 0 0 1rem;
}

.lvg-whatsnew h2 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 0;
}

.lvg-whatsnew__lede {
	font-size: 1.15rem;
	line-height: 1.6;
	max-width: 42rem;
}

.lvg-whatsnew__section {
	border-top: 1px solid var(--lvg-line);
}

.lvg-whatsnew__entries {
	border-left: 3px solid var(--lvg-purple);
	display: grid;
	gap: 1.75rem;
	list-style: none;
	margin: 2rem 0 0;
	max-width: 46rem;
	padding: 0 0 0 1.25rem;
}

.lvg-whatsnew__entries li {
	display: grid;
	gap: 0.3rem;
}

.lvg-whatsnew__entries time {
	color: var(--v2-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lvg-whatsnew__entries strong {
	font-size: 1.2rem;
}

.lvg-whatsnew__entries span {
	color: var(--lvg-muted);
	line-height: 1.55;
}

.lvg-whatsnew__more {
	margin-top: 2rem;
}

/* Email preferences (/email-preferences/, 2026-10-24): the page behind the unsubscribe
 * footer of every public Prism email. Rides on the Meet Prism page shell. */
.lvg-emailprefs__card {
	display: grid;
	gap: 1.5rem;
	max-width: 40rem;
}

.lvg-emailprefs__form fieldset {
	border: 0;
	display: grid;
	gap: 0.75rem;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.lvg-emailprefs__form legend {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.lvg-emailprefs__choice {
	align-items: flex-start;
	background: var(--lvg-surface-strong);
	border: 1px solid var(--lvg-line);
	border-radius: var(--lvg-radius);
	cursor: pointer;
	display: flex;
	gap: 0.85rem;
	padding: 1rem 1.15rem;
}

.lvg-emailprefs__choice input {
	flex: none;
	height: 1.35rem;
	margin-top: 0.15rem;
	width: 1.35rem;
}

.lvg-emailprefs__choice span {
	display: grid;
	gap: 0.2rem;
}

.lvg-emailprefs__choice small,
.lvg-emailprefs__note {
	color: var(--lvg-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.lvg-emailprefs__big {
	font-size: 1.1rem;
	min-height: 3.5rem;
	width: 100%;
}
