/* =============================================================================
   Event single — per-template stylesheet.

   Enqueued only on is_singular('wwh_event'). Implements the Variant A design
   (original designer mockups removed pre-beta; see git history). All values pulled from theme.json
   tokens; no raw hex / px / rem outside the documented THEME_STANDARDS snap
   table for layout-specific dimensions (cover heights, sticky offsets,
   grid widths).
   ========================================================================= */

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */

body.wwh-magazine .wwh-single--event .wwh-event-hero {
	position: relative;
	min-height: 86vh;
	color: #fff;
	padding: clamp(7rem, 12vh, 9rem) clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 6vh, 4rem);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

/* Variant A's signature gradient: lighter at top, darker at bottom — different
   from .wwh-cover-hero's mid-heavy scrim, so the date-stamp glass card on the
   left sits over a softer top while the headline sits over deeper colour. */
body.wwh-magazine .wwh-single--event .wwh-event-hero .wp-block-cover__background,
body.wwh-magazine .wwh-single--event .wwh-event-hero::after {
	background: linear-gradient(180deg,
		rgba(10, 8, 6, 0.35) 0%,
		rgba(10, 8, 6, 0.2) 35%,
		rgba(10, 8, 6, 0.85) 100%);
}

body.wwh-magazine .wwh-single--event .wwh-event-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: end;
}

/* Date-stamp glass card */
body.wwh-magazine .wwh-event-datestamp {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--8);
	background: rgba(255, 255, 255, 0.07);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	min-width: 180px;
}

body.wwh-magazine .wwh-event-datestamp__dow {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

body.wwh-magazine .wwh-event-datestamp__num {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(5rem, 7vw, 6.5rem);
	line-height: 0.85;
	letter-spacing: -0.02em;
	margin-top: var(--wp--preset--spacing--1);
	color: #fff;
}

body.wwh-magazine .wwh-event-datestamp__mo {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff;
	margin-top: var(--wp--preset--spacing--1);
}

body.wwh-magazine .wwh-event-datestamp__yr {
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: var(--wp--preset--font-size--caption);
	color: rgba(255, 255, 255, 0.7);
	margin-top: var(--wp--preset--spacing--1);
}

body.wwh-magazine .wwh-event-datestamp__time {
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: var(--wp--preset--font-size--caption);
	color: #fff;
	margin-top: var(--wp--preset--spacing--3);
	padding-top: var(--wp--preset--spacing--2);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	width: 100%;
	text-align: center;
}

/* Hero copy column (right of date-stamp) */
body.wwh-magazine .wwh-event-hero__copy {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--6);
}

body.wwh-magazine .wwh-event-hero__crumbs {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
	display: flex;
	gap: var(--wp--preset--spacing--3);
	align-items: center;
}

body.wwh-magazine .wwh-event-hero__crumbs a { color: inherit; text-decoration: none; }
body.wwh-magazine .wwh-event-hero__crumbs a:hover { color: #fff; }

body.wwh-magazine .wwh-event-hero__eyebrow {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	margin: 0;
}

body.wwh-magazine .wwh-event-hero__eyebrow .wwh-event-hero__dot {
	width: 6px;
	height: 6px;
	border-radius: 9999px;
	background: var(--wp--preset--color--event-status-dot);
	display: inline-block;
}

body.wwh-magazine .wwh-event-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--display-hero);
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-wrap: balance;
	color: #fff;
	margin: 0;
}

body.wwh-magazine .wwh-event-hero__sub {
	font-family: var(--wp--preset--font-family--body);
	font-style: italic;
	font-size: var(--wp--preset--font-size--lede);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.88);
	max-width: 48ch;
	margin: 0;
}

body.wwh-magazine .wwh-event-hero__at {
	display: flex;
	gap: var(--wp--preset--spacing--8);
	flex-wrap: wrap;
	padding-top: var(--wp--preset--spacing--4);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin-top: var(--wp--preset--spacing--1);
}

body.wwh-magazine .wwh-event-hero__at-item {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--1);
}

body.wwh-magazine .wwh-event-hero__at-lab {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

body.wwh-magazine .wwh-event-hero__at-val {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: var(--wp--preset--font-size--card-title);
	color: #fff;
	margin: 0;
}

/* Empty-row collapse — auto-hide an at-item whose value is empty. */
body.wwh-magazine .wwh-event-hero__at-item:has(.wwh-event-hero__at-val:empty) {
	display: none;
}

/* -----------------------------------------------------------------------------
   Action band — obsidian strip directly under the hero
   ----------------------------------------------------------------------------- */

body.wwh-magazine .wwh-event-action-band {
	background: var(--wp--preset--color--warm-obsidian);
	color: #fff;
	padding: var(--wp--preset--spacing--6) clamp(1.5rem, 5vw, 3.5rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--8);
	flex-wrap: wrap;
}

body.wwh-magazine .wwh-event-action-band__lt {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	flex-wrap: wrap;
}

body.wwh-magazine .wwh-event-action-band__price,
body.wwh-magazine .wwh-event-action-band__stat {
	display: flex;
	flex-direction: column;
}

body.wwh-magazine .wwh-event-action-band__lab {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

body.wwh-magazine .wwh-event-action-band__v {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: var(--wp--preset--font-size--display-h3);
	line-height: 1;
	color: #fff;
	margin: 0;
}

body.wwh-magazine .wwh-event-action-band__v small {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--caption);
	font-style: italic;
	color: rgba(255, 255, 255, 0.6);
	margin-left: var(--wp--preset--spacing--1);
}

body.wwh-magazine .wwh-event-action-band__strong {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: var(--wp--preset--font-size--card-title);
	color: #fff;
	margin: 0;
}

body.wwh-magazine .wwh-event-action-band__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	background: #fff;
	color: var(--wp--preset--color--ink-primary);
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8);
	border: 1px solid #fff;
	border-radius: 9999px;
	text-decoration: none;
}
body.wwh-magazine .wwh-event-action-band__btn:hover {
	background: rgba(255, 255, 255, 0.88);
	color: var(--wp--preset--color--ink-primary);
}

/* Action-band variants */
body.wwh-magazine .wwh-event-action-band--soldout {
	background: var(--wp--preset--color--event-soldout);
}
body.wwh-magazine .wwh-event-action-band--closed {
	background: var(--wp--preset--color--warm-cream-2);
	color: var(--wp--preset--color--ink-primary);
}
body.wwh-magazine .wwh-event-action-band--closed .wwh-event-action-band__lab,
body.wwh-magazine .wwh-event-action-band--closed .wwh-event-action-band__v small {
	color: var(--wp--preset--color--ink-caption);
}
body.wwh-magazine .wwh-event-action-band--closed .wwh-event-action-band__v,
body.wwh-magazine .wwh-event-action-band--closed .wwh-event-action-band__strong {
	color: var(--wp--preset--color--ink-primary);
}

/* -----------------------------------------------------------------------------
   Two-column body: prose left, sticky obsidian ticket panel right
   ----------------------------------------------------------------------------- */

body.wwh-magazine .wwh-event-body {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 3.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

body.wwh-magazine .wwh-event-body__prose {
	max-width: 60ch;
}

body.wwh-magazine .wwh-event-body__prose .wp-block-post-content {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--prose);
	line-height: 1.6;
	color: var(--wp--preset--color--ink-primary);
}

body.wwh-magazine .wwh-event-body__prose .wp-block-post-content > * + * {
	margin-top: var(--wp--preset--spacing--6);
}

body.wwh-magazine .wwh-event-body__prose .wp-block-post-content h2 {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--display-prose);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink-primary);
	margin-top: var(--wp--preset--spacing--12);
}

body.wwh-magazine .wwh-event-body__prose .wp-block-post-content blockquote,
body.wwh-magazine .wwh-event-body__prose .wp-block-post-content .wp-block-quote {
	border-left: 0;
	margin: var(--wp--preset--spacing--12) 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--display-h3);
	line-height: 1.35;
	color: var(--wp--preset--color--ink-primary);
}

/* Sticky ticket-panel column */
body.wwh-magazine .wwh-event-body__rail {
	position: sticky;
	top: calc(var(--wwh-header-height, 72px) + var(--wp--preset--spacing--6));
	align-self: start;
}

/* -----------------------------------------------------------------------------
   Facts list — sat below the prose, surfaces every populated meta field
   ----------------------------------------------------------------------------- */

body.wwh-magazine .wwh-event-facts {
	margin-top: var(--wp--preset--spacing--12);
	border-top: 1px solid var(--wwh-hair-light, rgba(26, 22, 19, 0.12));
}

body.wwh-magazine .wwh-event-facts__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: var(--wp--preset--spacing--6);
	padding: var(--wp--preset--spacing--6) 0;
	border-bottom: 1px solid var(--wwh-hair-light, rgba(26, 22, 19, 0.12));
	align-items: baseline;
}

body.wwh-magazine .wwh-event-facts__lab {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-caption);
	margin: 0;
}

body.wwh-magazine .wwh-event-facts__val {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: var(--wp--preset--font-size--card-title);
	color: var(--wp--preset--color--ink-primary);
	margin: 0;
	line-height: 1.2;
}

body.wwh-magazine .wwh-event-facts__row:has(.wwh-event-facts__val:empty) {
	display: none;
}

/* "Featured row" — first row gets a quiet warm-cream-2 wash to anchor the eye. */
body.wwh-magazine .wwh-event-facts__row--feat {
	background: var(--wp--preset--color--warm-cream-2);
	padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--6);
	margin-left: calc(var(--wp--preset--spacing--6) * -1);
	margin-right: calc(var(--wp--preset--spacing--6) * -1);
}

/* -----------------------------------------------------------------------------
   Meeting-point strip — editorial copy + map, side by side
   ----------------------------------------------------------------------------- */

body.wwh-magazine .wwh-event-meet {
	background: var(--wp--preset--color--warm-cream-2);
	padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 3.5rem);
}

body.wwh-magazine .wwh-event-meet__inner {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

body.wwh-magazine .wwh-event-meet__copy {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	max-width: 44ch;
}

body.wwh-magazine .wwh-event-meet__eyebrow {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink-caption);
	margin: 0;
}

body.wwh-magazine .wwh-event-meet__title {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--display-prose);
	line-height: 1.1;
	color: var(--wp--preset--color--ink-primary);
	margin: 0;
}

body.wwh-magazine .wwh-event-meet__body {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.55;
	color: var(--wp--preset--color--ink-primary);
	margin: 0;
}

/* Hide the meet strip entirely when there's no meeting-point value. The eyebrow
   binding is the canonical signal — empty eyebrow means no meeting point worth
   surfacing alongside the map, so we hide the whole strip. */
body.wwh-magazine .wwh-event-meet:has(.wwh-event-meet__eyebrow:empty) {
	display: none;
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	body.wwh-magazine .wwh-event-body {
		grid-template-columns: 1fr;
	}
	body.wwh-magazine .wwh-event-body__rail {
		position: static;
		order: 2;
	}
	body.wwh-magazine .wwh-event-body__prose { order: 1; max-width: none; }
	body.wwh-magazine .wwh-event-body__facts-wrap { order: 3; }
	body.wwh-magazine .wwh-event-meet__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	body.wwh-magazine .wwh-single--event .wwh-event-hero .wp-block-cover__inner-container {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--8);
	}
	body.wwh-magazine .wwh-event-datestamp { min-width: 0; align-self: flex-start; }
	body.wwh-magazine .wwh-event-action-band {
		flex-direction: column;
		align-items: stretch;
	}
	body.wwh-magazine .wwh-event-action-band__btn {
		width: 100%;
		justify-content: center;
	}
	body.wwh-magazine .wwh-event-facts__row {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--2);
	}
}
