/*
 * Event Landing Page — port of public/prototypes/event-landing.html.
 * Tokens: public/prototypes/brand-spec.md.
 *
 * Every rule is scoped under the ETI wrapper + .ev so nothing leaks out, and
 * the extra class out-specifies the Elementor kit / Hello reset rules
 * (`.elementor-kit-4 a`, `button:hover`, …) that would otherwise leak in.
 *
 * Site chrome (fixed sidebar, dotted body background, its 290px / 200px offset,
 * mobile top bar) comes from the Elementor header template and kit CSS, so it
 * is not repeated here.
 */

/* ─── tokens ──────────────────────────────────────────────────────── */
.eti-tpl--hvec-event-landing-php .ev {
	--bg:      #E0DED6;
	--surface: #EEEEEE;
	--fg:      #333333;
	--muted:   oklch(0.48 0.006 90);
	--border:  #DDDDDD;
	--accent:  #2E7CB7;

	--ink:     #314353;
	--flyer:   #FFE266;
	--rule:    #7A7A7A;
	--divider: #BEBEBE;
	--paper:   #FFFFFF;
	--link:    oklch(0.47 0.12 248);

	--ink-hover: color-mix(in oklch, var(--ink) 84%, var(--paper));
	--shadow:    3px 3px 6px color-mix(in oklch, var(--fg) 28%, transparent);

	--font-display: 'Dosis', system-ui, sans-serif;
	--font-body:    'Roboto Slab', Georgia, serif;
	--font-ui:      'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

	color: var(--fg);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* ─── base (inside the template only) ─────────────────────────────────
 * Element rules sit in :where() so they beat the kit/Hello resets (0,1,1)
 * but lose to every component rule below. */
.eti-tpl--hvec-event-landing-php .ev *,
.eti-tpl--hvec-event-landing-php .ev *::before,
.eti-tpl--hvec-event-landing-php .ev *::after { box-sizing: border-box; }
.eti-tpl--hvec-event-landing-php .ev :where(img) { display: block; max-width: 100%; height: auto; }
.eti-tpl--hvec-event-landing-php .ev :where(a) { color: var(--link); text-decoration: none; }
.eti-tpl--hvec-event-landing-php .ev :where(a):hover { text-decoration: underline; text-underline-offset: 3px; }
.eti-tpl--hvec-event-landing-php .ev :where(button) { font: inherit; cursor: pointer; }
.eti-tpl--hvec-event-landing-php .ev :where(p) { text-wrap: pretty; margin: 0; }
.eti-tpl--hvec-event-landing-php .ev :where(h1, h2, h3) { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
.eti-tpl--hvec-event-landing-php .ev :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.eti-tpl--hvec-event-landing-php .ev .ev-label {
	font-family: var(--font-ui); font-weight: 500; font-size: 12px; line-height: 1.6;
	letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}

/* ─── main column ─────────────────────────────────────────────────── */
.eti-tpl--hvec-event-landing-php .ev-main {
	padding: 40px 48px 96px 0;
	container: ev-main / inline-size;
}
.eti-tpl--hvec-event-landing-php .ev-wrap { max-width: 1100px; }

.eti-tpl--hvec-event-landing-php .ev-crumbs { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.eti-tpl--hvec-event-landing-php .ev-crumbs a { font-family: var(--font-ui); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.eti-tpl--hvec-event-landing-php .ev-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; background: var(--paper); color: var(--ink);
	font-family: var(--font-ui); font-weight: 500; font-size: 13px; line-height: 1.6; letter-spacing: 0.02em;
	box-shadow: 2px 2px 0 color-mix(in oklch, var(--fg) 14%, transparent);
}
.eti-tpl--hvec-event-landing-php .ev-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.eti-tpl--hvec-event-landing-php .ev-chip[data-state="live"]::before { background: var(--accent); }
.eti-tpl--hvec-event-landing-php .ev-chip[data-state="ended"] { color: var(--muted); }
.eti-tpl--hvec-event-landing-php .ev-chip[data-state="ended"]::before { background: var(--divider); }

/* hero */
.eti-tpl--hvec-event-landing-php .ev-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
	grid-template-areas: "head side" "body side";
	grid-template-rows: auto 1fr;
	column-gap: 64px; align-items: start;
}
.eti-tpl--hvec-event-landing-php .ev-hero { grid-area: head; }
.eti-tpl--hvec-event-landing-php .ev-side { grid-area: side; display: grid; gap: 48px; justify-items: center; }
.eti-tpl--hvec-event-landing-php .ev-side .ev-flyer { width: 100%; }
.eti-tpl--hvec-event-landing-php .ev-hero h1 {
	font-size: clamp(36px, 5.4cqi, 60px);
	line-height: 1.05; letter-spacing: -0.01em; color: var(--fg);
	margin: 14px 0 20px;
}
.eti-tpl--hvec-event-landing-php .ev-when { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); letter-spacing: 0.02em; }
.eti-tpl--hvec-event-landing-php .ev-lead { font-size: 21px; line-height: 1.5; max-width: 34ch; }

/* the flyer — the page's one flourish */
.eti-tpl--hvec-event-landing-php .ev-flyer {
	background: var(--flyer);
	border: 10px solid var(--surface);
	box-shadow: var(--shadow);
	transform: rotate(-1deg);
	padding: 22px 24px 18px;
}
.eti-tpl--hvec-event-landing-php .ev-date { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.eti-tpl--hvec-event-landing-php .ev-day { text-align: center; color: var(--ink); line-height: 1; min-width: 72px; }
.eti-tpl--hvec-event-landing-php .ev-mon { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; }
.eti-tpl--hvec-event-landing-php .ev-num { font-family: var(--font-display); font-weight: 700; font-size: 64px; letter-spacing: -0.02em; }
.eti-tpl--hvec-event-landing-php .ev-wk { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--fg); line-height: 1.15; }
.eti-tpl--hvec-event-landing-php .ev-tm { font-size: 17px; }
.eti-tpl--hvec-event-landing-php .ev-sub { font-size: 14px; color: var(--muted); }
.eti-tpl--hvec-event-landing-php .ev-dotted { border: 0; border-top: 2px dotted var(--rule); margin: 16px 0; background: none; height: 0; }
.eti-tpl--hvec-event-landing-php .ev-facts { display: grid; gap: 14px; margin: 0; }
.eti-tpl--hvec-event-landing-php .ev-facts > div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: baseline; }
.eti-tpl--hvec-event-landing-php .ev-facts dt { margin: 0; }
.eti-tpl--hvec-event-landing-php .ev-facts dd { margin: 0; font-size: 16px; line-height: 1.45; }
.eti-tpl--hvec-event-landing-php .ev-price { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--fg); }
.eti-tpl--hvec-event-landing-php .ev-lineup { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 16px; }
.eti-tpl--hvec-event-landing-php .ev-lineup li { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.eti-tpl--hvec-event-landing-php .ev-lineup time { font-family: var(--font-ui); font-weight: 500; font-variant-numeric: tabular-nums; }
.eti-tpl--hvec-event-landing-php .ev-lineup li.is-headline span { font-weight: 700; }

.eti-tpl--hvec-event-landing-php .ev .ev-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	font-family: var(--font-ui); font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: 0.01em;
	border: 2px solid transparent; border-radius: 0;
	transition: background-color .15s ease, transform .05s ease;
	text-decoration: none;
}
.eti-tpl--hvec-event-landing-php .ev .ev-btn:hover { text-decoration: none; }
.eti-tpl--hvec-event-landing-php .ev .ev-btn:active { transform: translateY(1px); }
.eti-tpl--hvec-event-landing-php .ev .ev-btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.eti-tpl--hvec-event-landing-php .ev .ev-btn--primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: var(--paper); }
.eti-tpl--hvec-event-landing-php .ev .ev-btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.eti-tpl--hvec-event-landing-php .ev .ev-btn--outline:hover { background: color-mix(in oklch, var(--ink) 10%, transparent); color: var(--ink); }
.eti-tpl--hvec-event-landing-php .ev .ev-btn svg { width: 16px; height: 16px; flex: none; }
.eti-tpl--hvec-event-landing-php .ev-flyer .ev-btn--primary { width: 100%; margin-top: 18px; }
.eti-tpl--hvec-event-landing-php .ev-cta-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.eti-tpl--hvec-event-landing-php .ev-tools { display: flex; justify-content: center; gap: 4px 20px; flex-wrap: wrap; margin-top: 6px; }
.eti-tpl--hvec-event-landing-php .ev .ev-tool,
.eti-tpl--hvec-event-landing-php .ev .ev-tool:hover,
.eti-tpl--hvec-event-landing-php .ev .ev-tool:focus {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px;
	background: none; border: 0; border-radius: 0; color: var(--link);
	font-family: var(--font-ui); font-weight: 500; font-size: 14px; line-height: 1.2;
}
.eti-tpl--hvec-event-landing-php .ev .ev-tool:hover { text-decoration: underline; text-underline-offset: 3px; }
.eti-tpl--hvec-event-landing-php .ev .ev-tool svg { width: 16px; height: 16px; }

/* ended: swap the CTA for "See upcoming events", drop Add to calendar and the ticket bar */
.eti-tpl--hvec-event-landing-php .ev-cta-ended,
.eti-tpl--hvec-event-landing-php .ev[data-state="ended"] .ev-cta-live,
.eti-tpl--hvec-event-landing-php .ev[data-state="ended"] .ev-add-cal,
.eti-tpl--hvec-event-landing-php .ev[data-state="ended"] .ev-ticket-bar { display: none; }
.eti-tpl--hvec-event-landing-php .ev[data-state="ended"] .ev-cta-ended { display: block; }

/* body + poster */
.eti-tpl--hvec-event-landing-php .ev-content { grid-area: body; max-width: 64ch; margin-top: 40px; padding-top: 32px; border-top: 2px dotted var(--rule); }
.eti-tpl--hvec-event-landing-php .ev-content > * { margin: 0; }
.eti-tpl--hvec-event-landing-php .ev-content > * + * { margin-top: 18px; }
.eti-tpl--hvec-event-landing-php .ev-content h2 { font-size: 30px; line-height: 1.15; color: var(--fg); }
.eti-tpl--hvec-event-landing-php .ev-content h3 { font-size: 23px; line-height: 1.2; color: var(--ink); }
.eti-tpl--hvec-event-landing-php .ev-content > * + h3,
.eti-tpl--hvec-event-landing-php .ev-content > * + h2 { margin-top: 34px; }
.eti-tpl--hvec-event-landing-php .ev-content h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.eti-tpl--hvec-event-landing-php .ev-content ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.eti-tpl--hvec-event-landing-php .ev-content ul li { padding: 8px 0; border-bottom: 2px dotted color-mix(in oklch, var(--rule) 55%, transparent); }
.eti-tpl--hvec-event-landing-php .ev-content ul li:last-child { border-bottom: 0; }
.eti-tpl--hvec-event-landing-php .ev-content ol { padding-left: 1.4em; }
.eti-tpl--hvec-event-landing-php .ev-content img[width="16"],
.eti-tpl--hvec-event-landing-php .ev-content img.emoji { display: inline; width: 1em; height: 1em; vertical-align: -0.12em; }
.eti-tpl--hvec-event-landing-php .ev-content a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

.eti-tpl--hvec-event-landing-php .ev-poster { margin: 0; width: 100%; max-width: 300px; }
.eti-tpl--hvec-event-landing-php .ev .ev-poster-open,
.eti-tpl--hvec-event-landing-php .ev .ev-poster-open:focus {
	display: block; width: 100%; padding: 0; border: 10px solid var(--paper); border-radius: 0;
	background: var(--paper); box-shadow: var(--shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.eti-tpl--hvec-event-landing-php .ev .ev-poster-open:hover { background: var(--paper); transform: translateY(-2px); box-shadow: 4px 6px 12px color-mix(in oklch, var(--fg) 30%, transparent); }
.eti-tpl--hvec-event-landing-php .ev-poster-cap { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-family: var(--font-ui); font-weight: 500; font-size: 14px; color: var(--ink); }

/* plan your visit */
.eti-tpl--hvec-event-landing-php .ev .ev-section-title { font-size: 32px; line-height: 1.2; color: var(--fg); margin-bottom: 24px; }
.eti-tpl--hvec-event-landing-php .ev-visit { margin-top: 96px; }
.eti-tpl--hvec-event-landing-php .ev-visit-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 32px; align-items: start; }
.eti-tpl--hvec-event-landing-php .ev-visit-col { border-top: 2px dotted var(--rule); padding-top: 18px; display: grid; gap: 10px; font-size: 16px; }
.eti-tpl--hvec-event-landing-php .ev-visit-col .ev-label { margin-bottom: 2px; }
.eti-tpl--hvec-event-landing-php .ev-invite {
	background: var(--surface); border: 5px solid var(--accent);
	box-shadow: var(--shadow); padding: 22px 24px; display: grid; gap: 12px;
}
.eti-tpl--hvec-event-landing-php .ev-invite h3 { font-size: 26px; line-height: 1.2; color: var(--fg); }
.eti-tpl--hvec-event-landing-php .ev-invite p { font-size: 15px; }
.eti-tpl--hvec-event-landing-php .ev-invite .ev-btn { justify-self: start; }

/* more events (mirrors loop item #100) */
.eti-tpl--hvec-event-landing-php .ev-more { margin-top: 88px; }
.eti-tpl--hvec-event-landing-php .ev-more-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.eti-tpl--hvec-event-landing-php .ev-more-head a { font-family: var(--font-ui); font-weight: 500; font-size: 15px; }
.eti-tpl--hvec-event-landing-php .ev-more-list { border-top: 2px dotted var(--rule); }
.eti-tpl--hvec-event-landing-php .ev-row {
	display: grid; grid-template-columns: .65fr 1.25fr; gap: 16px;
	padding: 12px 0; border-bottom: 2px dotted var(--rule); align-items: baseline;
}
.eti-tpl--hvec-event-landing-php .ev-row-d { font-weight: 700; font-size: 16px; line-height: 1.3; }
.eti-tpl--hvec-event-landing-php .ev-row-t { display: block; font-weight: 400; }
.eti-tpl--hvec-event-landing-php .ev-row a { font-size: 18px; line-height: 1.35; }
.eti-tpl--hvec-event-landing-php .ev-again { font-family: var(--font-ui); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-left: 8px; white-space: nowrap; }

.eti-tpl--hvec-event-landing-php .ev-foot-mobile { display: none; }

/* lightbox */
.eti-tpl--hvec-event-landing-php .ev-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible; }
.eti-tpl--hvec-event-landing-php .ev-lightbox::backdrop { background: color-mix(in oklch, #333333 82%, transparent); }
.eti-tpl--hvec-event-landing-php .ev-lightbox img { display: block; max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; border: 10px solid #FFFFFF; }
.eti-tpl--hvec-event-landing-php .ev .ev-lightbox-close,
.eti-tpl--hvec-event-landing-php .ev .ev-lightbox-close:focus {
	position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0;
	display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 0; border-radius: 0;
}
.eti-tpl--hvec-event-landing-php .ev .ev-lightbox-close:hover { background: var(--surface); color: var(--ink); }

/* toast */
.eti-tpl--hvec-event-landing-php .ev-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
	background: var(--ink); color: var(--paper); padding: 12px 18px;
	font-family: var(--font-ui); font-weight: 500; font-size: 15px;
	transition: opacity .2s ease, transform .2s ease; pointer-events: none; z-index: 50;
}
.eti-tpl--hvec-event-landing-php .ev-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* mobile ticket bar */
.eti-tpl--hvec-event-landing-php .ev-ticket-bar { display: none; }

/* ─── container: narrow main column ───────────────────────────────── */
@container ev-main (max-width: 860px) {
	.eti-tpl--hvec-event-landing-php .ev-layout { grid-template-columns: 1fr; grid-template-areas: "head" "flyer" "body" "poster"; grid-template-rows: auto; }
	.eti-tpl--hvec-event-landing-php .ev-side { display: contents; }
	.eti-tpl--hvec-event-landing-php .ev-side .ev-flyer { grid-area: flyer; max-width: 460px; margin-top: 32px; }
	.eti-tpl--hvec-event-landing-php .ev-poster { grid-area: poster; margin-top: 40px; }
	.eti-tpl--hvec-event-landing-php .ev-visit-grid { grid-template-columns: 1fr 1fr; }
	.eti-tpl--hvec-event-landing-php .ev-visit-grid .ev-invite { grid-column: 1 / -1; }
}
@container ev-main (max-width: 560px) {
	.eti-tpl--hvec-event-landing-php .ev-visit-grid { grid-template-columns: 1fr; }
	.eti-tpl--hvec-event-landing-php .ev-row { grid-template-columns: 1fr; gap: 2px; }
	.eti-tpl--hvec-event-landing-php .ev-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ─── viewport breakpoints (match site) ───────────────────────────── */
@media (max-width: 1024px) {
	/* The kit offsets content 200px here, flush with the sidebar; the prototype keeps a 32px gutter. */
	.eti-tpl--hvec-event-landing-php .ev-main { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 767px) {
	.eti-tpl--hvec-event-landing-php .ev-main { padding: 24px 20px 120px; }
	.eti-tpl--hvec-event-landing-php .ev-flyer { transform: rotate(-0.6deg); }
	.eti-tpl--hvec-event-landing-php .ev-foot-mobile { display: block; margin-top: 56px; font-size: 13px; color: var(--muted); }
	.eti-tpl--hvec-event-landing-php .ev-ticket-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--flyer); border-top: 2px dotted var(--rule);
		transform: translateY(110%); transition: transform .2s ease;
	}
	.eti-tpl--hvec-event-landing-php .ev-ticket-bar.is-shown { transform: none; }
	.eti-tpl--hvec-event-landing-php .ev-tb-when { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.2; }
	.eti-tpl--hvec-event-landing-php .ev-tb-when small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--fg); }
	.eti-tpl--hvec-event-landing-php .ev-ticket-bar .ev-btn { min-height: 44px; padding: 10px 16px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
	.eti-tpl--hvec-event-landing-php .ev * { transition: none !important; }
}
