/**
 * ---------------------------------------------------------------------------
 * InSo brand tokens
 * ---------------------------------------------------------------------------
 * Source of truth: insousa.com (Elementor global kit + rendered computed styles,
 * captured 2026-07-29). Every colour and typeface below is measured from the live
 * brand site rather than invented, so the plugin's sections drop into an InSo page
 * without re-theming.
 *
 *   #121212  page          #1E1D1D  panel/surface
 *   #D4AF37  gold          #E5C241  gold bright (primary button fill)
 *   #B68830  gold deep     #EBC73F  gold light
 *   #FFFEFE  cream/heading #D5CCCC  muted body copy      #000  ink on gold
 *
 *   Playfair Display  display headings   (H1 55/700 ls.8, H2 55/500 ls.7)
 *   Cinzel            uppercase eyebrows (18/600)
 *   Montserrat        UI, buttons, meta  (button 14/600)
 *   Didact Gothic     body copy
 *
 * Consumers should read the --iem-brand-* tokens, never the raw hex, so a site can
 * re-skin the whole plugin by overriding this one block.
 */
.iem-experience,
.iem-events-section,
.iem-builder-block,
.iem-featured-hero,
.iem-newsletter,
.iem-event-modal,
.iem-builder-landing-hero {
	--iem-brand-bg: #121212;
	--iem-brand-panel: #1e1d1d;
	--iem-brand-panel-soft: #232121;
	--iem-brand-gold: #d4af37;
	--iem-brand-gold-bright: #e5c241;
	--iem-brand-gold-light: #ebc73f;
	--iem-brand-gold-deep: #b68830;
	--iem-brand-cream: #fffefe;
	--iem-brand-muted: #d5cccc;
	--iem-brand-ink: #000;
	--iem-brand-line: rgba(212, 175, 55, 0.32);
	--iem-brand-line-strong: rgba(212, 175, 55, 0.68);

	--iem-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--iem-font-eyebrow: "Cinzel", "Playfair Display", Georgia, serif;
	--iem-font-ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--iem-font-body: "Didact Gothic", "Montserrat", ui-sans-serif, system-ui, sans-serif;

	/* Brand button geometry: pill, Montserrat 14/600, ink on gold. */
	--iem-btn-radius: 999px;
	--iem-btn-font: var(--iem-font-ui);
	--iem-btn-weight: 600;
}

/**
 * ---------------------------------------------------------------------------
 * [hidden] guard
 * ---------------------------------------------------------------------------
 * frontend.js shows and hides things by setting the `hidden` property - the view
 * switcher, the filter chips, the search box, and load-more paging all rely on it.
 * The only thing that acts on `hidden` is the UA stylesheet's [hidden]{display:none},
 * and ANY author-level `display` beats it no matter how weak the selector. Since the
 * containers below are laid out with display:grid / flex / inline-flex, `hidden` was
 * being set correctly and then silently ignored, so every view rendered at once and
 * the toggle looked dead.
 *
 * These are the plugin's own data-* hooks - the same set frontend.js assigns
 * `.hidden` to - so the !important stays inside the plugin and can't leak onto a
 * theme. Any new element the script hides needs its hook added here.
 */
[data-iem-view][hidden],
[data-iem-card][hidden],
[data-iem-row][hidden],
[data-iem-empty][hidden],
[data-iem-load-item][hidden],
[data-iem-load-more][hidden] {
	display: none !important;
}

/**
 * ---------------------------------------------------------------------------
 * Clickable card affordance
 * ---------------------------------------------------------------------------
 * Every card that opens the event modal carries data-iem-open-event and
 * role="button", but they are <article>/<div> elements, so the browser gives them
 * a text caret instead of the hand a button gets. Keying off the behaviour hook
 * rather than each card class means the ticket, weekly, upcoming, featured, grid
 * and list cards are all covered, and a new card type gets the affordance for
 * free the moment it becomes clickable.
 *
 * `cursor` inherits, so the card's inner text and media pick this up too - which
 * is what we want, since the whole card is one hit target. Nested .iem-btn
 * children set their own pointer and are unaffected.
 */
[data-iem-open-event] {
	cursor: pointer;
}

.iem-events-section {
	--iem-gold: var(--iem-brand-gold);
	--iem-border: var(--iem-brand-line-strong);
	--iem-text: var(--iem-brand-cream);
	--iem-muted: var(--iem-brand-muted);
	width: 100%;
}

.iem-section-heading {
	margin-bottom: 22px;
}

.iem-section-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.iem-heading-title {
	margin: 0;
	color: var(--iem-gold);
	font-size: clamp(22px, 2vw, 32px);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.iem-heading-subtitle {
	margin: 8px 0 0;
	color: var(--iem-muted);
	font-size: 16px;
	line-height: 1.5;
}

.iem-events-grid {
	--iem-grid-cols: var(--iem-columns, 4);
	--iem-grid-gap: 24px;
	--iem-grid-min: 264px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--iem-grid-min), calc((100% - (var(--iem-grid-cols) - 1) * var(--iem-grid-gap)) / var(--iem-grid-cols) - 0.5px))), 1fr));
	gap: 24px;
}

.iem-event-card {
	position: relative;
	min-height: 360px;
	overflow: hidden;
	border: 1px solid var(--iem-border);
	border-radius: 5px;
	background: #0b0b0b;
	isolation: isolate;
}

.iem-card-link {
	position: absolute;
	inset: 0;
	display: block;
	color: inherit;
	text-decoration: none;
}

.iem-card-link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -5px;
}

.iem-card-image,
.iem-card-link picture {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.iem-card-image {
	object-fit: cover;
	transition: transform 0.45s ease;
}

.iem-card-placeholder {
	background: radial-gradient(circle at 50% 20%, #2b2116 0, #111 45%, #050505 100%);
}

.iem-event-card:hover .iem-card-image {
	transform: scale(1.045);
}

.iem-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 8%, rgba(0, 0, 0, 0.22) 34%, rgba(0, 0, 0, 0.95) 100%);
	pointer-events: none;
}

.iem-card-content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* `height: 100%` pinned this box to the card's height while its own content needed
	   more, and the card's overflow:hidden then sliced 30px off the bottom. A minimum
	   keeps the 360px card floor without capping how far the content can grow -
	   border-box so that floor matches the card's rather than adding padding on top,
	   which is what pushed this to 392px inside a 362px card. */
	box-sizing: border-box;
	min-height: 360px;
	padding: 16px;
	z-index: 2;
}

.iem-card-badge {
	align-self: center;
	min-width: 130px;
	padding: 5px 16px;
	border: 1px solid var(--iem-border);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.72);
	color: var(--iem-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.iem-status-badge {
	position: absolute;
	top: 54px;
	right: 14px;
	padding: 5px 8px;
	border-radius: 3px;
	background: #fff;
	color: #111;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.iem-card-bottom {
	margin-top: auto;
	text-align: center;
}

.iem-upcoming-card .iem-card-bottom {
	text-align: left;
}

.iem-card-title {
	margin: 0;
	color: var(--iem-text);
	font-size: clamp(20px, 1.55vw, 27px);
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.15;
	text-transform: uppercase;
}

.iem-card-description {
	margin: 10px 0 0;
	color: var(--iem-muted);
	font-size: 12px;
	line-height: 1.45;
	/*
	 * Card height is bounded here rather than by trimming the text to a word count on
	 * save. Trimming destroyed any formatting the author wrote, and it also meant the
	 * stored value differed from what they typed. Clamping keeps every card the same
	 * height whatever the content, which is what the layout actually needs.
	 */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* The upcoming-card body used an unclassed <div>; it takes the same clamp. */
.iem-ucard-body > .iem-card-description {
	margin: 0;
}

/* Inline formatting is allowed in this text; block elements are not. */
.iem-card-description p {
	display: inline;
	margin: 0;
}

.iem-card-description a {
	color: inherit;
	text-decoration: underline;
}

.iem-card-time {
	margin: 14px 0 0;
	color: var(--iem-gold);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.iem-section-action {
	margin-top: 22px;
	text-align: center;
}

.iem-view-all-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 32px;
	border: 1px solid var(--iem-border);
	border-radius: 4px;
	color: var(--iem-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.iem-view-all-button:hover,
.iem-view-all-button:focus-visible {
	background: var(--iem-gold);
	color: #111;
}

.iem-inline-link {
	color: var(--iem-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
}

.iem-upcoming-card {
	min-height: 360px;
}

.iem-date-block {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
}

.iem-date-block span {
	color: var(--iem-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iem-date-block strong {
	margin-top: 4px;
	color: #fff;
	font-size: 32px;
	font-weight: 400;
}

.iem-card-eyebrow {
	margin: 0 0 8px;
	color: var(--iem-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 1024px) {
	.iem-events-grid {
		--iem-grid-cols: min(var(--iem-columns, 3), 3);
	}
}

@media (max-width: 767px) {
	.iem-section-heading-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.iem-events-grid {
		--iem-grid-cols: 1;
	}

	.iem-event-card {
		min-height: 410px;
	}
}

/*
 * Brand tokens also at the root.
 *
 * They were declared only on .iem-experience, and the event modal is moved to document.body
 * when it opens - outside that element. Every var() in the modal therefore resolved to
 * nothing, which invalidates the whole declaration: the RSVP button lost its gold gradient
 * and rounded shape and fell back to the theme's own button styling, appearing as a bright
 * magenta rectangle.
 *
 * Declaring them here means anything rendered outside a section still has a palette.
 * .iem-experience keeps its copy so a per-template palette still overrides within a section,
 * and openEventModal() copies the resolved values onto the modal so it matches the section
 * it was opened from rather than the defaults.
 */
:root {
	--iem-x-ink: var(--iem-brand-bg);
	--iem-x-panel: var(--iem-brand-panel);
	--iem-x-card: var(--iem-brand-panel-soft);
	--iem-x-gold: var(--iem-brand-gold);
	--iem-x-gold-bright: var(--iem-brand-gold-bright);
	--iem-x-cream: var(--iem-brand-cream);
	--iem-x-muted: var(--iem-brand-muted);
	--iem-x-line: var(--iem-brand-line);
	--iem-x-line-strong: var(--iem-brand-line-strong);
}

.iem-experience {
	--iem-x-ink: var(--iem-brand-bg);
	--iem-x-panel: var(--iem-brand-panel);
	--iem-x-card: var(--iem-brand-panel-soft);
	--iem-x-gold: var(--iem-brand-gold);
	--iem-x-gold-bright: var(--iem-brand-gold-bright);
	--iem-x-cream: var(--iem-brand-cream);
	--iem-x-muted: var(--iem-brand-muted);
	--iem-x-line: var(--iem-brand-line);
	--iem-x-line-strong: var(--iem-brand-line-strong);
	position: relative;
	isolation: isolate;
	width: 100%;
	margin: 0;
	background: var(--iem-x-ink);
	color: var(--iem-x-cream);
	font-family: var(--iem-font-body);
	overflow: clip;
}

.iem-experience *,
.iem-experience *::before,
.iem-experience *::after {
	box-sizing: border-box;
}

.iem-experience a {
	color: inherit;
	text-decoration: none;
}

.iem-experience img {
	display: block;
	max-width: 100%;
}

.iem-grain {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.035;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.iem-nav,
.iem-shell,
.iem-hero,
.iem-footer {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(18px, 4vw, 48px);
}

.iem-nav {
	display: none;
	position: relative;
	top: auto;
	z-index: 30;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding-block: 16px;
	border-bottom: 1px solid var(--iem-x-line);
	background: rgba(10, 10, 12, 0.78);
	backdrop-filter: blur(16px) saturate(140%);
}

.iem-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.iem-logo span {
	color: var(--iem-x-gold);
	font-size: 0.72em;
	font-style: italic;
	font-weight: 400;
}

.iem-nav-links {
	display: flex;
	align-items: center;
	gap: clamp(18px, 4vw, 46px);
	color: var(--iem-x-muted);
	font-size: 14px;
}

.iem-nav-links a:hover,
.iem-nav-links a:focus-visible {
	color: var(--iem-x-gold-bright);
}

/* Brand button: pill, Montserrat 14/600, ink on gold - matches insousa.com. */
.iem-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 21px;
	border: 1px solid transparent;
	border-radius: var(--iem-btn-radius, 999px);
	font-family: var(--iem-btn-font, inherit);
	font-size: 14px;
	font-weight: var(--iem-btn-weight, 600);
	line-height: 1;
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.iem-btn:hover,
.iem-btn:focus-visible {
	transform: translateY(-2px);
}

.iem-btn-primary {
	background: linear-gradient(135deg, var(--iem-x-gold-bright), var(--iem-x-gold) 60%, var(--iem-brand-gold-deep, #8a6f3b));
	box-shadow: 0 12px 28px -16px rgba(212, 175, 55, 0.9);
	color: var(--iem-brand-ink, #1a1508);
}

.iem-btn-ghost {
	border-color: var(--iem-x-line-strong);
	background: transparent;
	color: var(--iem-x-cream);
}

.iem-btn-ghost:hover,
.iem-btn-ghost:focus-visible {
	border-color: var(--iem-x-gold);
	color: var(--iem-x-gold-bright);
}

.iem-btn-small {
	min-height: 36px;
	padding: 9px 16px;
	font-size: 12px;
}

.iem-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--iem-x-gold);
	font-family: var(--iem-font-eyebrow);
	font-size: 11.5px;
	font-weight: 400;
	letter-spacing: 0.22em;
	line-height: 1.3;
	text-transform: uppercase;
}

.iem-eyebrow::before {
	display: inline-block;
	width: 18px;
	height: 1px;
	background: currentColor;
	content: "";
}

.iem-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
	gap: clamp(30px, 6vw, 72px);
	align-items: center;
	padding-block: clamp(64px, 8vw, 104px) 80px;
}

.iem-hero::before {
	position: absolute;
	top: -160px;
	left: 50%;
	width: min(900px, 92vw);
	height: 480px;
	background: radial-gradient(ellipse at center, rgba(199, 162, 82, 0.16), transparent 66%);
	transform: translateX(-50%);
	content: "";
	pointer-events: none;
}

.iem-hero-copy,
.iem-ticket {
	position: relative;
	z-index: 1;
}

.iem-hero h1 {
	max-width: 720px;
	margin: 22px 0;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: clamp(42px, 5vw, 68px);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.04;
}

.iem-hero p {
	max-width: 540px;
	margin: 0 0 28px;
	color: var(--iem-x-muted);
	font-size: 17px;
	line-height: 1.7;
}

.iem-actions,
.iem-ticket-meta,
.iem-ticket-foot,
.iem-section-head,
.iem-view-toggle,
.iem-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.iem-ticket {
	overflow: hidden;
	border: 1px solid var(--iem-x-line-strong);
	border-radius: 22px;
	background: linear-gradient(180deg, var(--iem-x-card), var(--iem-x-panel));
	box-shadow: 0 24px 70px -26px rgba(0, 0, 0, 0.82);
}

.iem-ticket-art {
	position: relative;
	height: 240px;
	overflow: hidden;
}

.iem-ticket-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9) brightness(0.74) contrast(1.08);
}

.iem-ticket-art::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent, rgba(10, 10, 12, 0.62));
	content: "";
}

.iem-ticket-art span {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	padding: 7px 12px;
	border: 1px solid var(--iem-x-line-strong);
	border-radius: 999px;
	background: rgba(10, 10, 12, 0.64);
	color: var(--iem-x-gold-bright);
	font-family: var(--iem-font-eyebrow);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.iem-ticket-divider {
	margin-inline: 26px;
	border-top: 1px dashed var(--iem-x-line-strong);
}

.iem-ticket-body {
	padding: 28px;
}

.iem-ticket h2,
.iem-section-head h2 {
	margin: 9px 0 0;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.iem-ticket-meta {
	margin: 16px 0 22px;
	color: var(--iem-x-muted);
	font-size: 13px;
}

.iem-ticket-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.iem-meta-icon {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 16px;
	height: 16px;
	color: var(--iem-fh-gold, var(--iem-x-gold));
	font-size: 0;
	font-style: normal;
	line-height: 1;
}

.iem-meta-icon svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.iem-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 22px;
}

.iem-countdown div {
	padding: 10px 4px;
	border: 1px solid var(--iem-x-line);
	border-radius: 10px;
	background: #232029;
	text-align: center;
}

.iem-countdown b {
	display: block;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: 22px;
	font-weight: 500;
}

.iem-countdown span {
	color: #6e6a78;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iem-featured-hero {
	--iem-fh-gold: var(--iem-brand-gold);
	--iem-fh-gold-bright: var(--iem-brand-gold-bright);
	--iem-fh-cream: var(--iem-brand-cream);
	--iem-fh-muted: var(--iem-brand-muted);
	--iem-fh-panel: var(--iem-brand-panel);
	--iem-fh-line: var(--iem-brand-line);
	width: 100%;
	max-width: 560px;
	margin: 0;
	color: var(--iem-fh-cream);
	font-family: var(--iem-font-body);
}

.iem-featured-hero,
.iem-featured-hero * {
	box-sizing: border-box;
}

/**
 * Row 2 is a zero-height slot holding the dashed "ticket stub" divider, so the divider
 * always lands on the art/body seam without the card needing a fixed aspect ratio.
 * The body is content-sized: at 320-390px the old square/1:1.5 ratio was ~85px shorter
 * than the copy needed and cut the seat count and CTA off the bottom of the card.
 */
.iem-featured-hero-card {
	position: relative;
	display: grid;
	grid-template-rows: auto 0 auto;
	min-height: 0;
	overflow: hidden;
	border: 1px solid rgba(215, 174, 87, 0.38);
	border-radius: 20px;
	background: radial-gradient(circle at 80% 5%, rgba(215, 174, 87, 0.18), transparent 32%), linear-gradient(180deg, #17141a 0%, #111018 100%);
	box-shadow: 0 30px 80px -48px rgba(215, 174, 87, 0.72), 0 28px 62px -42px rgba(0, 0, 0, 0.98);
}

.iem-featured-hero-art {
	position: relative;
	min-height: 0;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background: #111018;
}

/*
 * The image is shown as uploaded.
 *
 * It used to render at 18% opacity over a near-black panel, desaturated and with contrast
 * pushed - so what a site owner actually saw was mostly the background colour with a hint
 * of their photograph through it. Combined with the gold starburst that used to sit on
 * top, almost nothing of the original picture survived.
 *
 * Nothing here dims or tints it now. The dark background on the parent stays as the base
 * colour behind a transparent PNG and while the image is still loading.
 */
.iem-featured-hero-art img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * No overlay at all.
 *
 * This carried a gold radial flare and a repeating conic "rays" pattern blended over the
 * photo, then a vertical scrim. The decoration went first; the scrim has now gone too,
 * because nothing actually needs it - the "Featured this week" badge carries its own
 * opaque pill and border, and the title, date and venue sit on the panel below the image
 * rather than on top of it.
 *
 * The element is kept so existing markup and any child rules stay valid.
 */
.iem-featured-hero-pattern {
	display: none;
}

.iem-featured-hero-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100% - 32px);
	padding: 10px 18px;
	border: 1px solid rgba(215, 174, 87, 0.34);
	border-radius: 999px;
	background: rgba(22, 18, 14, 0.78);
	color: var(--iem-fh-gold-bright);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
}

.iem-featured-hero-badge i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--iem-fh-gold-bright);
	box-shadow: 0 0 16px rgba(243, 210, 122, 0.9);
}

.iem-featured-hero-divider {
	position: relative;
	z-index: 2;
	align-self: start;
	border-top: 1px dashed rgba(215, 174, 87, 0.32);
}

.iem-featured-hero-divider::before,
.iem-featured-hero-divider::after {
	content: "";
	position: absolute;
	top: -12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #08080b;
}

.iem-featured-hero-divider::before {
	left: -13px;
}

.iem-featured-hero-divider::after {
	right: -13px;
}

.iem-featured-hero-body {
	display: flex;
	min-height: 0;
	flex-direction: column;
	overflow: visible;
	padding: clamp(22px, 5.7%, 30px) clamp(24px, 6%, 32px);
	background: linear-gradient(180deg, rgba(21, 20, 27, 0.98), rgba(15, 14, 22, 0.99));
}

.iem-featured-hero-body > * {
	flex: 0 0 auto;
}

.iem-featured-hero h2 {
	margin: 0;
	color: var(--iem-fh-cream);
	font-family: var(--iem-font-display);
	font-size: clamp(22px, 4.8vw, 28px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.12;
	text-transform: none;
}

.iem-featured-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 14px 0 18px;
	color: var(--iem-fh-muted);
	font-size: 13px;
	line-height: 1.35;
}

.iem-featured-hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.iem-featured-hero-meta i {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 16px;
	height: 16px;
	color: var(--iem-fh-gold);
	font-size: 13px;
	font-style: normal;
	line-height: 1;
}

.iem-featured-hero-meta i svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.iem-featured-hero-countdown {
/* No cap: the countdown fills the card so its right edge lines up with the CTA
   below it. The old 330px cap was tuned for the narrow side-column hero and left
   131-143px of dead space to the right of the boxes once the card went full width. */
	max-width: none;
	margin-bottom: 0;
}

.iem-featured-hero-countdown div {
	padding: 8px 4px;
	border-color: rgba(215, 174, 87, 0.2);
	background: #24212a;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.iem-featured-hero-countdown b {
	font-size: 21px;
}

.iem-featured-hero-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	/* `margin-top: auto` still pins the row to the bottom when the card has spare
	   height, but the body is content-sized now, so on its own it collapses to 0 and
	   the CTA ends up touching the countdown. The padding guarantees the gap. */
	margin-top: auto;
	padding-top: 18px;
	color: var(--iem-fh-muted);
	font-size: 13px;
}

.iem-featured-hero-foot b {
	color: var(--iem-fh-gold-bright);
}

.iem-featured-hero-cta.iem-btn {
	min-width: 118px;
	min-height: 38px;
	padding-inline: 22px;
	border: 0;
	box-shadow: 0 18px 28px -18px rgba(243, 210, 122, 0.95);
	white-space: nowrap;
}

.iem-newsletter {
	--iem-nl-gold: var(--iem-brand-gold);
	--iem-nl-gold-bright: var(--iem-brand-gold-bright);
	--iem-nl-cream: var(--iem-brand-cream);
	--iem-nl-muted: var(--iem-brand-muted);
	--iem-nl-panel: var(--iem-brand-panel);
	--iem-nl-line: var(--iem-brand-line-strong);
	width: 100%;
	color: var(--iem-nl-cream);
	font-family: var(--iem-font-body);
}

.iem-newsletter,
.iem-newsletter * {
	box-sizing: border-box;
}

.iem-newsletter-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 386px);
	align-items: center;
	gap: 40px;
	min-height: 252px;
	padding: 62px 64px;
	overflow: hidden;
	border: 1px solid var(--iem-nl-line);
	border-radius: 20px;
	background:
		radial-gradient(circle at 92% 0%, rgba(215, 174, 87, 0.1), transparent 18%),
		linear-gradient(135deg, #171620 0%, var(--iem-nl-panel) 48%, #111018 100%);
	box-shadow: 0 28px 70px -46px rgba(215, 174, 87, 0.62);
}

.iem-newsletter-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	color: var(--iem-nl-gold-bright);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.24em;
	line-height: 1;
	text-transform: uppercase;
}

.iem-newsletter-eyebrow::before {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
}

.iem-newsletter h2 {
	margin: 0;
	color: var(--iem-nl-cream);
	font-family: var(--iem-font-display);
	font-size: clamp(28px, 3.5vw, 36px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.12;
}

.iem-newsletter p {
	max-width: 430px;
	margin: 16px 0 0;
	color: var(--iem-nl-muted);
	font-size: 15px;
	line-height: 1.45;
}

/* Authored as HTML, so it arrives in its own block tags; the wrapper carries the
   type scale and the tags inside inherit it. */
.iem-newsletter-lede {
	max-width: 430px;
	margin-top: 16px;
	color: var(--iem-nl-muted);
	font-size: 15px;
	line-height: 1.45;
}

.iem-newsletter-lede p {
	max-width: none;
	margin: 0 0 0.7em;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.iem-newsletter-lede > :last-child {
	margin-bottom: 0;
}

.iem-newsletter-message {
	display: inline-flex;
	margin-top: 16px;
	padding: 8px 12px;
	border: 1px solid rgba(215, 174, 87, 0.28);
	border-radius: 999px;
	background: rgba(215, 174, 87, 0.08);
	color: var(--iem-nl-gold-bright);
	font-size: 12px;
	font-weight: 700;
}

.iem-newsletter-message-error {
	border-color: rgba(248, 113, 113, 0.38);
	background: rgba(248, 113, 113, 0.1);
	color: #fecaca;
}

.iem-newsletter-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.iem-newsletter-field {
	display: block;
	min-width: 0;
}

.iem-newsletter-field input {
	font-family: var(--iem-font-body);
	width: 100%;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid rgba(215, 174, 87, 0.34);
	border-radius: 999px;
	outline: 0;
	background: rgba(5, 5, 7, 0.76);
	color: var(--iem-nl-cream);
	font-size: 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iem-newsletter-field input::placeholder {
	color: #77727f;
}

.iem-newsletter-field input:focus {
	border-color: var(--iem-nl-gold-bright);
	box-shadow: 0 0 0 3px rgba(215, 174, 87, 0.12);
}

.iem-newsletter-button {
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--iem-brand-gold-bright, #f2d075), var(--iem-brand-gold-deep, #bd9344));
	color: var(--iem-brand-ink, #151006);
	cursor: pointer;
	/* Was `font: inherit`, which pulled the theme's face (Jost) into a plugin control. */
	font-family: var(--iem-font-ui);
	font-size: 14px;
	font-weight: var(--iem-btn-weight, 600);
	/* A soft lift, not a halo. At 0.95 alpha this threw a gold smear onto the panel
	   below the button that read as a rendering artefact rather than a highlight. */
	box-shadow: 0 6px 14px -10px rgba(243, 210, 122, 0.35);
	transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.iem-newsletter-button:hover,
.iem-newsletter-button:focus-visible {
	filter: brightness(1.04);
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -10px rgba(243, 210, 122, 0.5);
}

.iem-newsletter-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.iem-ticket-foot {
	align-items: center;
	justify-content: space-between;
	color: var(--iem-x-muted);
	font-size: 13px;
}

.iem-ticket-foot b {
	color: var(--iem-x-gold-bright);
}

.iem-filterbar {
	position: sticky;
	top: 70px;
	z-index: 25;
	max-width: 1184px;
	margin: -38px auto 28px;
	padding: 22px;
	border: 1px solid var(--iem-x-line);
	border-radius: 18px;
	background: rgba(19, 18, 24, 0.88);
	box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(14px);
}

.iem-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--iem-x-line);
	border-radius: 12px;
	background: var(--iem-x-ink);
	color: var(--iem-x-muted);
}

.iem-search input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-body);
	font-size: 15px;
}

.iem-chips {
	margin-top: 12px;
}

.iem-chip,
.iem-mood,
.iem-view-toggle button,
.iem-cal-head button {
	border: 1px solid var(--iem-x-line);
	background: var(--iem-x-ink);
	color: var(--iem-x-muted);
	cursor: pointer;
	font-family: var(--iem-font-ui);
	font-size: 13px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.iem-chip {
	padding: 8px 15px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.iem-chip:hover,
.iem-chip.is-active,
.iem-view-toggle button:hover,
.iem-view-toggle button.is-active {
	border-color: var(--iem-x-gold);
	background: var(--iem-x-gold);
	color: #1a1508;
}

.iem-shell {
	padding-block: clamp(48px, 7vw, 92px);
}

.iem-section-head {
	align-items: end;
	justify-content: space-between;
	margin-bottom: 34px;
}

/*
 * The heading block sizes to its own content.
 *
 * It holds only the eyebrow and the h2 now that the description is a sibling, so it must
 * not grow - giving it flex-grow pushed the Grid/List/Calendar toggle onto its own line.
 */
.iem-section-head > div:first-child {
	min-width: 0;
}

/*
 * The description spans the whole row, under the heading and any control beside it.
 *
 * order:1 puts it after both, and flex-basis:100% forces its own line. This is why it had
 * to move out of the heading wrapper - a nested element cannot claim a flex row of its own.
 */
/*
 * The description spans the whole row, under the heading and any control beside it.
 *
 * This is a <div>, not a <p>: more_block() can return block-level markup (paragraphs, a
 * list, the read-more wrapper) and a <div> inside a <p> is invalid - the browser closed the
 * paragraph early, which left the content as a stray sibling in the flex row and pushed the
 * Grid/List/Calendar toggle onto its own line.
 */
.iem-section-head > .iem-section-lede {
	order: 1;
	flex: 1 1 100%;
	min-width: 0;
}

.iem-section-head p,
.iem-section-head .iem-section-lede {
	margin: 8px 0 0;
	color: var(--iem-x-muted);
	font-size: 15px;
	line-height: 1.6;
}

.iem-section-head .iem-section-lede p {
	margin: 0 0 12px;
}

.iem-section-head .iem-section-lede > :last-child {
	margin-bottom: 0;
}

.iem-mood-grid,
.iem-featured-grid,
.iem-upcoming-grid,
.iem-past-grid,
.iem-artists-track {
	display: grid;
	gap: 24px;
}

.iem-mood-grid {
	--iem-grid-cols: 5;
	--iem-grid-gap: 18px;
	--iem-grid-min: 168px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--iem-grid-min), calc((100% - (var(--iem-grid-cols) - 1) * var(--iem-grid-gap)) / var(--iem-grid-cols) - 0.5px))), 1fr));
}

.iem-mood {
	min-height: 132px;
	padding: 22px;
	border-radius: 16px;
	text-align: left;
}

.iem-mood:hover,
.iem-mood:focus-visible {
	border-color: var(--iem-x-gold);
	color: var(--iem-x-cream);
	transform: translateY(-3px);
}

.iem-mood span {
	display: grid;
	width: 36px;
	height: 36px;
	margin-bottom: 18px;
	place-items: center;
	border-radius: 50%;
	background: rgba(199, 162, 82, 0.12);
	color: var(--iem-x-gold-bright);
}

.iem-mood strong,
.iem-mood em {
	display: block;
	font-style: normal;
}

.iem-mood strong {
	color: var(--iem-x-cream);
	font-size: 15px;
}

.iem-mood em {
	margin-top: 4px;
	color: var(--iem-x-muted);
	font-size: 12px;
}

.iem-featured-grid {
	--iem-grid-cols: 3;
	--iem-grid-gap: 24px;
	--iem-grid-min: 264px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--iem-grid-min), calc((100% - (var(--iem-grid-cols) - 1) * var(--iem-grid-gap)) / var(--iem-grid-cols) - 0.5px))), 1fr));
}

.iem-fcard,
.iem-ucard,
.iem-lrow,
.iem-past-card,
.iem-artist-card,
.iem-cal-card {
	overflow: hidden;
	border: 1px solid var(--iem-x-line);
	border-radius: 16px;
	background: var(--iem-x-panel);
}

.iem-fcard,
.iem-ucard,
.iem-past-card,
.iem-artist-card {
	transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

/**
 * The artwork keeps a fixed 2:1 ratio (the old "half of a square" look) while the
 * body row is sized by its own content. On narrow cards - low-resolution desktops
 * running 4 columns, or phones under ~360px - a hard `aspect-ratio: 1 / 1` left the
 * body with less height than the title/description needed and the flex children were
 * squashed to a few pixels, slicing the text in half. Letting the body grow keeps the
 * card square-ish where there is room and simply taller where there is not.
 */
.iem-ucard {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 0;
	container-type: inline-size;
}

.iem-fcard:hover,
.iem-ucard:hover,
.iem-past-card:hover,
.iem-artist-card:hover {
	border-color: var(--iem-x-line-strong);
	box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
	transform: translateY(-5px);
}

.iem-fcard-art,
.iem-ucard-art {
	position: relative;
	overflow: hidden;
	background: #111;
}

.iem-fcard-art {
	height: 210px;
}

.iem-ucard-art {
	height: auto !important;
	min-height: 0;
	aspect-ratio: 2 / 1;
}

.iem-ucard-art img {
	position: absolute;
	inset: 0;
}

.iem-fcard-art img,
.iem-ucard-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.9) brightness(0.72) contrast(1.08);
	transition: transform 0.45s ease;
}

.iem-fcard:hover img,
.iem-ucard:hover img {
	transform: scale(1.055);
}

.iem-fcard-art::after,
.iem-ucard-art::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 10, 12, 0.02), rgba(10, 10, 12, 0.52));
	content: "";
}

.iem-status,
.iem-ucard-art span {
	position: absolute;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 25px;
	box-sizing: border-box;
	white-space: nowrap;
	line-height: 1;
}

.iem-ucard-art span {
	top: 12px;
	left: 12px;
	min-width: 82px;
	padding: 6px 13px;
	border: 1px solid var(--iem-x-line-strong);
	border-radius: 999px;
	background: rgba(10, 10, 12, 0.78);
	color: var(--iem-x-gold-bright);
	font-family: var(--iem-font-eyebrow);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iem-status {
	top: 12px;
	right: 12px;
	min-width: 52px;
	padding: 6px 12px;
	border: 1px solid rgba(70, 214, 135, 0.55);
	border-radius: 999px;
	background: rgba(17, 88, 50, 0.72);
	color: #93f2b9;
	font-family: var(--iem-font-eyebrow);
	font-size: 10.5px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iem-status-few-left {
	border-color: rgba(243, 210, 122, 0.68);
	background: rgba(138, 103, 38, 0.72);
	color: #f0d692;
}

.iem-status-sold-out {
	border-color: rgba(225, 96, 118, 0.68);
	background: rgba(98, 27, 42, 0.72);
	color: #e8e1d4;
}

.iem-fcard-body,
.iem-ucard-body {
	display: flex;
	min-height: 0;
	flex-direction: column;
	overflow: hidden;
	padding: clamp(16px, 5.8%, 20px);
}

.iem-ucard-body {
	overflow: visible;
	padding: clamp(14px, 4.6%, 20px);
}

/* Never let the date/title/description lose height to flex shrinking. */
.iem-ucard-body > * {
	flex: 0 0 auto;
}

.iem-fcard-body p,
.iem-ucard-body p {
	margin: 0 0 6px;
	color: var(--iem-x-gold);
	font-family: var(--iem-font-eyebrow);
	font-size: clamp(10px, 2.7vw, 12px);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.iem-fcard-body h3,
.iem-ucard-body h3,
.iem-lrow h3 {
	margin: 0;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: clamp(18px, 5.7vw, 21px);
	font-weight: 500;
	line-height: 1.12;
}

.iem-ucard-body h3 {
	display: -webkit-box;
	overflow: hidden;
	font-size: clamp(15px, 3.4vw, 16px);
	line-height: 1.12;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.iem-fcard-body em,
.iem-ucard-body div,
.iem-lrow p {
	display: block;
	margin-top: 8px;
	color: var(--iem-x-muted);
	font-size: clamp(12px, 3.4vw, 13px);
	font-style: normal;
	line-height: 1.42;
}

.iem-ucard-body div {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 7px;
	font-size: 12px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.iem-fcard-body > div,
.iem-ucard-body footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: clamp(10px, 3.5%, 16px);
	border-top: 1px solid var(--iem-x-line);
}

.iem-ucard .iem-btn-small {
	min-height: 34px;
	padding: 7px 15px;
}

@supports (width: 1cqw) {
	.iem-ucard-body {
		padding: clamp(14px, 4.8cqw, 24px);
	}

	.iem-ucard-art span,
	.iem-status {
		top: clamp(12px, 3.8cqw, 18px);
		font-size: clamp(10.5px, 2.25cqw, 11.5px);
	}

	.iem-ucard-art span {
		left: clamp(12px, 3.8cqw, 18px);
		min-width: clamp(82px, 21cqw, 112px);
		padding: clamp(6px, 1.55cqw, 8px) clamp(13px, 3.2cqw, 18px);
	}

	.iem-status {
		right: clamp(12px, 3.8cqw, 18px);
		min-width: clamp(52px, 13cqw, 70px);
		padding: clamp(6px, 1.55cqw, 8px) clamp(12px, 3cqw, 16px);
	}

	.iem-ucard-body p {
		margin-bottom: clamp(6px, 1.5cqw, 10px);
		font-size: clamp(10px, 2.45cqw, 12px);
	}

	.iem-ucard-body h3,
	.iem-builder-block .iem-ucard-body h3 {
		font-size: clamp(15px, 3.6cqw, 16px);
		line-height: 1.12;
	}

	.iem-ucard-body div,
	.iem-builder-block .iem-ucard-body div {
		margin-top: clamp(7px, 1.8cqw, 10px);
		font-size: 12px;
		line-height: 1.35;
	}

	.iem-seat-bar {
		height: clamp(3px, 0.85cqw, 4px);
		margin-top: clamp(8px, 2.4cqw, 14px);
	}

	.iem-ucard-body footer {
		gap: clamp(10px, 3.5cqw, 16px);
		padding-top: clamp(10px, 3cqw, 16px);
	}

	.iem-ucard-body small {
		font-size: clamp(12px, 2.7cqw, 14px);
	}

	.iem-ucard .iem-btn-small {
		min-height: clamp(31px, 7.5cqw, 38px);
		padding: 7px clamp(14px, 4cqw, 18px);
		font-size: clamp(12px, 2.7cqw, 14px);
	}

	/**
	 * Narrow cards - four columns on a 1366px desktop, or one column on a small phone -
	 * lost most of the title and description to the single-line clamp. Now the card body
	 * grows with its content, so give those cards a second line. Wider cards keep the
	 * one-line rhythm they were designed with.
	 */
	@container (max-width: 320px) {
		.iem-ucard-body h3,
		.iem-ucard-body div {
			-webkit-line-clamp: 2;
		}
	}
}

.iem-fcard-body span,
.iem-artist-card span {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 1px solid rgba(244, 239, 228, 0.18);
	border-radius: 50%;
	background: var(--iem-x-gold);
	color: #1a1508;
	font-size: 11px;
	font-weight: 800;
}

.iem-fcard-body strong,
.iem-ucard-body small {
	color: var(--iem-x-muted);
	font-size: 12px;
	font-weight: 700;
}

.iem-view-toggle {
	gap: 6px;
	padding: 5px;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--iem-x-panel, var(--iem-brand-panel)) 72%, #000);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.iem-view-toggle button {
	font-family: var(--iem-font-ui);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 92px;
	min-height: 34px;
	padding: 7px 16px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.025);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
}

.iem-view-toggle button:hover,
.iem-view-toggle button.is-active {
	border-color: transparent;
	background: var(--iem-x-gold);
	color: #141006;
}

.iem-toggle-icon {
	position: relative;
	display: inline-block;
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	color: currentColor;
}

.iem-toggle-icon-grid {
	background:
		linear-gradient(currentColor 0 0) 0 0 / 6px 6px no-repeat,
		linear-gradient(currentColor 0 0) 9px 0 / 6px 6px no-repeat,
		linear-gradient(currentColor 0 0) 0 9px / 6px 6px no-repeat,
		linear-gradient(currentColor 0 0) 9px 9px / 6px 6px no-repeat;
}

.iem-toggle-icon-list::before,
.iem-toggle-icon-list::after,
.iem-toggle-icon-calendar::before,
.iem-toggle-icon-calendar::after {
	position: absolute;
	content: "";
}

.iem-toggle-icon-list::before {
	top: 2px;
	left: 0;
	width: 15px;
	height: 2px;
	border-radius: 99px;
	background: currentColor;
	box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.iem-toggle-icon-calendar::before {
	inset: 2px 1px 1px;
	border: 1.8px solid currentColor;
	border-radius: 2px;
}

.iem-toggle-icon-calendar::after {
	top: 5px;
	left: 2px;
	right: 2px;
	height: 1.8px;
	background: currentColor;
}

/**
 * Column tracks are sized so the configured count acts as a *maximum*: each track is
 * at least `--iem-grid-min` wide, otherwise exactly one Nth of the row. Once the row
 * can no longer give every column its minimum - low-resolution desktops, where four
 * columns leave ~260px each - auto-fill drops to however many do fit instead of
 * crushing the cards. `min(100%, ...)` keeps a single column from overflowing phones
 * narrower than the minimum.
 */
.iem-upcoming-grid {
	--iem-grid-cols: 4;
	--iem-grid-gap: 24px;
	--iem-grid-min: 264px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--iem-grid-min), calc((100% - (var(--iem-grid-cols) - 1) * var(--iem-grid-gap)) / var(--iem-grid-cols) - 0.5px))), 1fr));
}

.iem-upcomming-events {
	border-radius: 0;
}

.iem-upcomming-events .iem-upcoming-grid {
	--iem-grid-cols: var(--iem-builder-columns, var(--iem-upcoming-columns, 4));
}

.iem-upcomming-events-shell {
	padding-block: clamp(46px, 6vw, 74px);
}

.iem-weekly-events-grid {
	--iem-grid-cols: 3;
	--iem-grid-gap: 24px;
	--iem-grid-min: 264px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--iem-grid-min), calc((100% - (var(--iem-grid-cols) - 1) * var(--iem-grid-gap)) / var(--iem-grid-cols) - 0.5px))), 1fr));
}

.iem-weekly-events-rich .iem-weekly-events-grid {
	--iem-grid-cols: var(--iem-builder-columns, var(--iem-weekly-columns, 3));
}

.iem-weekly-events-shell {
	padding-block: clamp(46px, 6vw, 74px);
}

.iem-upcomming-load-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.iem-upcomming-load,
.iem-weekly-load {
	min-width: 170px;
	justify-content: center;
}

.iem-weekly-load-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.iem-event-categories-shell {
	padding-block: clamp(42px, 6vw, 72px);
}

.iem-event-category-grid {
	--iem-grid-cols: var(--iem-builder-columns, var(--iem-category-columns, 6));
	--iem-grid-gap: 14px;
	--iem-grid-min: 156px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--iem-grid-min), calc((100% - (var(--iem-grid-cols) - 1) * var(--iem-grid-gap)) / var(--iem-grid-cols) - 0.5px))), 1fr));
	gap: 14px;
}

.iem-event-category-card {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	min-height: 142px;
	padding: 22px 16px;
	overflow: hidden;
	border: 1px solid var(--iem-x-line);
	border-radius: 14px;
	background: var(--iem-x-panel);
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.iem-event-category-card:hover,
.iem-event-category-card:focus-visible {
	border-color: var(--iem-x-line-strong);
	box-shadow: 0 18px 48px -34px rgba(0, 0, 0, 0.95);
	transform: translateY(-4px);
}

.iem-event-category-icon {
	display: grid;
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--iem-x-line-strong);
	border-radius: 50%;
	background: rgba(199, 162, 82, 0.12);
	color: var(--iem-x-gold-bright);
	font-size: 19px;
	line-height: 1;
}

.iem-event-category-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.iem-event-category-icon i {
	font-style: normal;
}

.iem-event-category-icon i[class*="fa-"],
.iem-event-category-icon i[class^="fa"] {
	display: inline-grid;
	place-items: center;
}

.iem-event-category-card strong {
	color: var(--iem-x-cream);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.iem-event-category-card em {
	margin-top: 8px;
	color: var(--iem-x-muted);
	font-size: 12px;
	font-style: normal;
	line-height: 1.2;
}

.iem-builder-template {
	background: var(--iem-x-bg, #070708);
	color: var(--iem-x-cream, var(--iem-brand-cream));
}

.iem-builder-template-transparent {
	background: transparent;
}

.iem-builder-template-has-transparent-section {
	background: transparent;
}

.iem-builder-block {
	/*
	 * One gutter for every section.
	 *
	 * Each section shell used to compute its own horizontal inset, and they disagreed:
	 * the landing hero applied a `max()` floor and a 48px fallback, the listing shells
	 * used a bare 16px fallback, and the newsletter had no shell at all. With identical
	 * padding stored on all four sections their text still started at 166px, 142px and
	 * 231px - three different indents down one page, which is the first thing the eye
	 * picks up when scanning a layout.
	 *
	 * The floor is kept, because it is what stops content touching the viewport edge on
	 * a wide screen; it is simply applied everywhere now instead of to one section.
	 */
	--iem-section-gutter-left: max(var(--iem-builder-padding-left, 48px), clamp(20px, 3.2vw, 48px));
	--iem-section-gutter-right: max(var(--iem-builder-padding-right, 48px), clamp(20px, 3.2vw, 48px));
	overflow: hidden;
	margin: var(--iem-builder-margin-top, 0) var(--iem-builder-margin-right, 0) var(--iem-builder-margin-bottom, 0) var(--iem-builder-margin-left, 0);
	background: var(--iem-x-bg, #070708);
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-family: var(--iem-builder-font-family, inherit);
	text-align: var(--iem-builder-text-align, left);
}

.iem-builder-layout-custom {
	width: min(var(--iem-builder-max-width, 1180px), calc(100% - var(--iem-builder-margin-left, 0px) - var(--iem-builder-margin-right, 0px)));
	margin-left: auto;
	margin-right: auto;
	border-radius: var(--iem-builder-radius, 18px);
}

.iem-builder-layout-boxed {
	width: auto;
	max-width: none;
}

.iem-builder-layout-full {
	width: auto;
	max-width: none;
}

.iem-builder-block .iem-experience,
.iem-builder-block .iem-events-section {
	background: var(--iem-x-bg, #070708);
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-family: var(--iem-builder-font-family, inherit);
}

.iem-builder-template-transparent > .iem-builder-block,
.iem-builder-template-transparent > .iem-builder-block .iem-experience,
.iem-builder-template-transparent > .iem-builder-block .iem-events-section,
.iem-builder-template-transparent > .iem-builder-block-hero_landing,
.iem-builder-template-transparent .iem-builder-landing-hero {
	background: transparent;
}

.iem-builder-section-transparent,
.iem-builder-section-transparent .iem-experience,
.iem-builder-section-transparent .iem-events-section,
.iem-builder-section-transparent.iem-builder-block-hero_landing,
.iem-builder-section-transparent .iem-builder-landing-hero {
	background: transparent;
}

.iem-builder-section-transparent .iem-grain {
	display: none;
}

.iem-builder-block .iem-shell,
.iem-builder-block .iem-upcomming-events-shell,
.iem-builder-block .iem-weekly-events-shell {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--iem-builder-max-width, 1180px);
	margin-inline: auto;
	padding-top: var(--iem-builder-padding-top, 72px);
	padding-right: var(--iem-section-gutter-right, max(var(--iem-builder-padding-right, 48px), clamp(20px, 3.2vw, 48px)));
	padding-bottom: var(--iem-builder-padding-bottom, 72px);
	padding-left: var(--iem-section-gutter-left, max(var(--iem-builder-padding-left, 48px), clamp(20px, 3.2vw, 48px)));
}

.iem-builder-layout-full .iem-shell,
.iem-builder-layout-full .iem-upcomming-events-shell,
.iem-builder-layout-full .iem-weekly-events-shell {
	max-width: none;
}

.iem-builder-block .iem-event-card,
.iem-builder-block .iem-upcard,
.iem-builder-block .iem-event-category-card,
.iem-builder-block .iem-newsletter-card,
.iem-builder-block .iem-featured-hero {
	border-radius: var(--iem-builder-radius, 18px);
}

.iem-builder-block .iem-featured-hero {
	--iem-fh-gold: var(--iem-x-gold, var(--iem-brand-gold));
	--iem-fh-gold-bright: var(--iem-x-gold-bright, var(--iem-brand-gold-bright));
	--iem-fh-cream: var(--iem-x-cream, var(--iem-brand-cream));
	--iem-fh-muted: var(--iem-x-muted, var(--iem-brand-muted));
	--iem-fh-panel: var(--iem-x-panel, var(--iem-brand-panel));
	--iem-fh-line: var(--iem-x-line, var(--iem-brand-line));
	max-width: min(560px, 100%);
	font-family: var(--iem-builder-font-family, inherit);
}

.iem-builder-block .iem-featured-hero-card {
	border-color: var(--iem-fh-line);
	background: radial-gradient(circle at 80% 5%, color-mix(in srgb, var(--iem-fh-gold) 18%, transparent), transparent 32%), linear-gradient(180deg, var(--iem-fh-panel) 0%, color-mix(in srgb, var(--iem-fh-panel) 76%, #000) 100%);
}

.iem-builder-landing-card .iem-featured-hero-card {
	border-radius: var(--iem-builder-radius, 20px);
}

.iem-builder-landing-card .iem-featured-hero-art {
	min-height: 0 !important;
}

.iem-builder-block .iem-featured-hero-body {
	background: color-mix(in srgb, var(--iem-fh-panel) 94%, #000);
}

.iem-builder-landing-card .iem-featured-hero-body {
	padding: clamp(18px, 4.5%, 24px) clamp(22px, 5.4%, 30px) clamp(16px, 4.2%, 22px);
}

.iem-builder-block .iem-featured-hero h2,
.iem-builder-landing-card .iem-featured-hero h2 {
	max-width: 100%;
	margin: 0;
	font-size: clamp(22px, 4.8vw, 28px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.12;
	text-transform: none;
}

.iem-builder-landing-card .iem-featured-hero-meta {
	gap: 8px 18px;
	margin: 14px 0 18px;
	font-size: 13px;
}

.iem-builder-landing-card .iem-featured-hero-countdown {
	max-width: none;
	margin-bottom: 0;
}

.iem-builder-landing-card .iem-featured-hero-foot {
	align-items: center;
	flex-direction: row;
}

.iem-builder-block .iem-featured-hero-badge,
.iem-builder-block .iem-featured-hero-countdown div {
	border-color: var(--iem-fh-line);
	background: color-mix(in srgb, var(--iem-fh-panel) 86%, transparent);
}

.iem-builder-block .iem-newsletter {
	--iem-nl-gold: var(--iem-x-gold, var(--iem-brand-gold));
	--iem-nl-gold-bright: var(--iem-x-gold-bright, var(--iem-brand-gold-bright));
	--iem-nl-cream: var(--iem-x-cream, var(--iem-brand-cream));
	--iem-nl-muted: var(--iem-x-muted, var(--iem-brand-muted));
	--iem-nl-panel: var(--iem-x-panel, var(--iem-brand-panel));
	--iem-nl-line: var(--iem-x-line, var(--iem-brand-line-strong));
	font-family: var(--iem-builder-font-family, inherit);
}

/*
 * The newsletter had no shell, so it was the one section that consumed none of its own
 * padding settings: whatever you set for it in the editor did nothing, and the section
 * sat hard against the one above it - an 86px gap where its neighbours got 141px and
 * 156px. The card's max-width moves onto this wrapper so its outer edge lines up with
 * the content edge of every other section, and the card's own padding then insets its
 * text the way a bordered panel should.
 */
.iem-builder-block-newsletter .iem-newsletter {
	box-sizing: border-box;
	width: 100%;
	/*
	 * Max-width on the wrapper with the padding inside it, which is the order the other
	 * section shells use. Applying them the other way round - padding on a full-width
	 * wrapper, max-width on the card - centres the card inside the already-inset area
	 * and lands it about 7px short of where every other section starts.
	 */
	max-width: var(--iem-builder-max-width, 1180px);
	margin-inline: auto;
	padding-top: var(--iem-builder-padding-top, 72px);
	padding-right: var(--iem-section-gutter-right, max(var(--iem-builder-padding-right, 48px), clamp(20px, 3.2vw, 48px)));
	padding-bottom: var(--iem-builder-padding-bottom, 72px);
	padding-left: var(--iem-section-gutter-left, max(var(--iem-builder-padding-left, 48px), clamp(20px, 3.2vw, 48px)));
}

.iem-builder-block-newsletter .iem-newsletter .iem-newsletter-card {
	max-width: none;
}

.iem-builder-block .iem-newsletter-card {
	width: 100%;
	max-width: var(--iem-builder-max-width, 1120px);
	margin-inline: auto;
	border-color: var(--iem-nl-line);
	background: radial-gradient(circle at 88% 5%, color-mix(in srgb, var(--iem-nl-gold) 18%, transparent), transparent 26%), linear-gradient(135deg, color-mix(in srgb, var(--iem-nl-panel) 92%, #fff) 0%, var(--iem-nl-panel) 48%, color-mix(in srgb, var(--iem-nl-panel) 78%, #000) 100%);
}

.iem-builder-layout-full .iem-newsletter-card {
	max-width: none;
}

.iem-builder-block-newsletter .iem-newsletter-card {
	grid-template-columns: minmax(0, 1fr) minmax(380px, 0.62fr);
	min-height: 252px;
	padding: 62px 64px;
}

.iem-builder-block .iem-newsletter-field input {
	border-color: var(--iem-nl-line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--iem-x-bg, #050507) 78%, transparent);
	color: var(--iem-nl-cream);
}

.iem-builder-block .iem-newsletter-button,
.iem-builder-block .iem-featured-hero-cta.iem-btn {
	background: linear-gradient(135deg, var(--iem-x-gold-bright, #f2d075), var(--iem-x-gold, #bd9344));
	color: #151006;
}

.iem-builder-block-newsletter .iem-newsletter-form {
	grid-template-columns: minmax(0, 262px) auto;
	justify-content: end;
	gap: 12px;
}

.iem-builder-block-newsletter .iem-newsletter-field input {
	min-height: 46px;
	padding-inline: 22px;
}

.iem-builder-block-newsletter .iem-newsletter-button {
	min-height: 46px;
	padding-inline: 28px;
	border-radius: 999px;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.iem-builder-custom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
	gap: clamp(26px, 5vw, 70px);
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--iem-builder-max-width, 1180px);
	margin: 0 auto;
	padding-top: var(--iem-builder-padding-top, 72px);
	padding-right: var(--iem-section-gutter-right, max(var(--iem-builder-padding-right, 48px), clamp(20px, 3.2vw, 48px)));
	padding-bottom: var(--iem-builder-padding-bottom, 72px);
	padding-left: var(--iem-section-gutter-left, max(var(--iem-builder-padding-left, 48px), clamp(20px, 3.2vw, 48px)));
}

.iem-builder-layout-full .iem-builder-custom {
	max-width: none;
}

.iem-builder-custom h2 {
	max-width: 780px;
	margin: 12px 0 0;
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-family: var(--iem-font-display);
	font-size: clamp(28px, 5vw, var(--iem-builder-heading-size, 72px));
	font-weight: var(--iem-builder-heading-weight, 500);
	letter-spacing: var(--iem-builder-letter-spacing, -0.01em);
	line-height: var(--iem-builder-heading-line-height, 0.98);
}

.iem-builder-custom p {
	max-width: 620px;
	margin: 18px 0 0;
	color: var(--iem-x-muted, var(--iem-brand-muted));
	font-size: var(--iem-builder-text-size, 16px);
	font-weight: var(--iem-builder-text-weight, 400);
	line-height: var(--iem-builder-text-line-height, 1.55);
}

/**
 * Both columns share the same floor, so the pair wraps to one column the moment they
 * stop fitting side by side. The previous `minmax(0, 1fr) minmax(500px, 532px)` gave
 * the card a hard 500px floor and the copy none, so between 781px and 1100px the copy
 * column was crushed - 24px wide on an 800px tablet, one letter per line - because only
 * the 780px rule ever collapsed the grid. Sizing from the container rather than the
 * viewport also keeps this correct whatever max-width/padding the builder is set to.
 */
.iem-builder-landing-hero {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: clamp(42px, 5vw, 72px);
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--iem-builder-max-width, 1280px);
	margin: 0 auto;
	padding-top: var(--iem-builder-padding-top, 96px);
	padding-right: var(--iem-section-gutter-right, max(var(--iem-builder-padding-right, 48px), clamp(20px, 3.2vw, 48px)));
	padding-bottom: var(--iem-builder-padding-bottom, 78px);
	padding-left: var(--iem-section-gutter-left, max(var(--iem-builder-padding-left, 48px), clamp(20px, 3.2vw, 48px)));
	background:
		radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 14%, transparent), transparent 38%),
		radial-gradient(circle at 74% 48%, rgba(255, 255, 255, 0.04), transparent 28%);
}

.iem-builder-layout-full .iem-builder-landing-hero {
	max-width: var(--iem-builder-max-width, 1280px);
}

.iem-elementor-landing-hero.iem-builder-layout-full .iem-builder-landing-hero {
	max-width: var(--iem-builder-max-width, 1280px) !important;
}

.iem-builder-landing-copy h1 {
	max-width: 610px;
	margin: 26px 0 0;
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-family: var(--iem-font-display);
	font-size: clamp(38px, 5vw, var(--iem-builder-heading-size, 64px));
	font-weight: var(--iem-builder-heading-weight, 500);
	letter-spacing: var(--iem-builder-letter-spacing, -0.01em);
	line-height: 1.04;
	text-transform: none;
}

.iem-builder-landing-copy h1 em {
	display: block;
	color: var(--iem-x-gold, var(--iem-brand-gold));
	font-style: italic;
	font-weight: 500;
	text-transform: none;
}

.iem-builder-landing-copy p {
	max-width: 570px;
	margin: 32px 0 0;
	color: var(--iem-x-muted, var(--iem-brand-muted));
	font-size: var(--iem-builder-text-size, 16px);
	font-weight: var(--iem-builder-text-weight, 400);
	line-height: 1.62;
}

/* The description is authored as HTML, so it arrives wrapped in its own block tags.
   The wrapper carries the type scale; the tags inside inherit it rather than
   restating it, which keeps a pasted <ul> or <h3> looking like part of the hero. */
.iem-builder-landing-copy .iem-builder-landing-lede,
.iem-builder-custom .iem-builder-custom-lede {
	max-width: 570px;
	margin-top: 32px;
	color: var(--iem-x-muted, var(--iem-brand-muted));
	font-size: var(--iem-builder-text-size, 16px);
	font-weight: var(--iem-builder-text-weight, 400);
	line-height: 1.62;
}

.iem-builder-landing-copy .iem-builder-landing-lede p,
.iem-builder-custom .iem-builder-custom-lede p {
	max-width: none;
	margin: 0 0 0.85em;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.iem-builder-landing-lede ul,
.iem-builder-landing-lede ol,
.iem-builder-custom-lede ul,
.iem-builder-custom-lede ol {
	margin: 0 0 0.85em;
	padding-left: 1.25em;
}

.iem-builder-landing-lede li,
.iem-builder-custom-lede li {
	margin-bottom: 0.35em;
}

.iem-builder-landing-lede strong,
.iem-builder-landing-lede b,
.iem-builder-custom-lede strong,
.iem-builder-custom-lede b {
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-weight: 700;
}

.iem-builder-landing-lede a,
.iem-builder-custom-lede a {
	color: var(--iem-x-gold, var(--iem-brand-gold));
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.iem-builder-landing-lede > :last-child,
.iem-builder-custom-lede > :last-child {
	margin-bottom: 0;
}

.iem-builder-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: flex-start;
	margin-top: 34px;
}

.iem-builder-block[style*="--iem-builder-text-align:center"] .iem-builder-button-row {
	justify-content: center;
}

.iem-builder-block[style*="--iem-builder-text-align:right"] .iem-builder-button-row {
	justify-content: flex-end;
}

.iem-builder-button-row .iem-builder-button {
	/* No shrinking: a squeezed flex item eats its own padding, which is what put the
	   label hard against the pill edge. Long labels wrap the row instead. */
	flex: 0 0 auto;
	max-width: 100%;
	margin-top: 0;
	min-width: 180px;
	min-height: 46px;
	padding-inline: 28px;
	border: 1px solid color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 70%, transparent);
	font-size: 13.5px;
	letter-spacing: 0.02em;
	text-align: center;
}

.iem-builder-button-ghost {
	background: transparent;
	color: var(--iem-x-cream, var(--iem-brand-cream));
	box-shadow: none;
}

.iem-builder-landing-card .iem-featured-hero {
	width: 100%;
	max-width: 532px;
	margin-inline: auto;
}

.iem-builder-block-hero_landing {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%),
		var(--iem-x-bg, #070708);
}

.iem-builder-block .iem-section-head h2 {
	font-size: clamp(24px, 3.2vw, var(--iem-builder-heading-size, 38px));
	font-weight: var(--iem-builder-heading-weight, 500);
	letter-spacing: var(--iem-builder-letter-spacing, -0.01em);
	line-height: var(--iem-builder-heading-line-height, 1.1);
}

.iem-builder-block .iem-section-head p {
	font-size: var(--iem-builder-text-size, 16px);
	font-weight: var(--iem-builder-text-weight, 400);
	line-height: var(--iem-builder-text-line-height, 1.55);
}

.iem-builder-block .iem-newsletter h2,
.iem-builder-block .iem-builder-custom h2 {
	font-size: clamp(24px, 4vw, var(--iem-builder-heading-size, 34px));
	font-weight: var(--iem-builder-heading-weight, 500);
	letter-spacing: var(--iem-builder-letter-spacing, -0.01em);
	line-height: var(--iem-builder-heading-line-height, 1.12);
}

.iem-builder-block .iem-fcard-body h3,
.iem-builder-block .iem-ucard-body h3,
.iem-builder-block .iem-lrow h3,
.iem-builder-block .iem-event-category-card strong {
	font-weight: var(--iem-builder-heading-weight, 500);
	letter-spacing: var(--iem-builder-letter-spacing, -0.01em);
}

.iem-builder-block .iem-ucard-body h3 {
	font-size: clamp(15px, 3.4vw, 16px);
	line-height: 1.12;
}

.iem-builder-block .iem-featured-hero-meta,
.iem-builder-block .iem-featured-hero-foot,
.iem-builder-block .iem-newsletter p,
.iem-builder-block .iem-fcard-body em,
.iem-builder-block .iem-ucard-body div,
.iem-builder-block .iem-lrow p,
.iem-builder-block .iem-event-category-card em {
	font-size: var(--iem-builder-text-size, 16px);
	font-weight: var(--iem-builder-text-weight, 400);
	line-height: var(--iem-builder-text-line-height, 1.55);
}

.iem-builder-landing-card .iem-featured-hero h2 {
	font-size: clamp(25px, 2.1vw, 30px);
	line-height: 1.08;
}

.iem-builder-landing-card .iem-featured-hero-meta {
	gap: 8px 16px;
	margin: 12px 0 14px;
	font-size: clamp(13px, 1.05vw, 15px);
	line-height: 1.35;
}

.iem-builder-landing-card .iem-featured-hero-countdown {
	gap: 10px;
	max-width: none;
	margin-bottom: 0;
}

.iem-builder-landing-card .iem-featured-hero-countdown div {
	padding: 7px 4px;
	border-radius: 9px;
}

.iem-builder-landing-card .iem-featured-hero-countdown b {
	font-size: clamp(20px, 1.75vw, 22px);
	line-height: 1.05;
}

.iem-builder-landing-card .iem-featured-hero-countdown span {
	font-size: 8px;
	letter-spacing: 0.08em;
}

.iem-builder-landing-card .iem-featured-hero-foot {
	gap: 14px;
	margin-top: auto;
	font-size: clamp(13px, 1.05vw, 15px);
	line-height: 1.3;
}

.iem-builder-landing-card .iem-featured-hero-cta.iem-btn {
	min-height: 36px;
	padding-inline: 22px;
}

.iem-builder-block .iem-ucard-body div {
	font-size: 12px;
	line-height: 1.35;
}

.iem-builder-block .iem-upcard {
	min-height: var(--iem-builder-card-min-height, 280px);
}

.iem-builder-custom figure {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--iem-x-line, var(--iem-brand-line));
	border-radius: var(--iem-builder-radius, 18px);
	background: var(--iem-x-panel, var(--iem-brand-panel));
}

.iem-builder-custom img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.iem-builder-button {
	font-family: var(--iem-font-ui);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 28px;
	padding: 0 24px;
	border: 1px solid var(--iem-x-gold, var(--iem-brand-gold));
	border-radius: 999px;
	background: linear-gradient(180deg, var(--iem-x-gold-bright, var(--iem-brand-gold)), var(--iem-x-gold, var(--iem-brand-gold-deep)));
	color: #17110a;
	font-weight: 600;
	text-decoration: none;
}

.iem-builder-button.iem-builder-button-ghost,
.iem-builder-button-row .iem-builder-button.iem-builder-button-ghost {
	border-color: color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 58%, transparent);
	background: rgba(5, 5, 7, 0.42);
	color: var(--iem-x-cream, var(--iem-brand-cream));
	box-shadow: none;
}

/* Interaction states. These are deliberately driven by the same --iem-x-gold token the
   Elementor colour controls write to, so a re-themed hero keeps a matching hover. */
.iem-builder-button {
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
	cursor: pointer;
}

.iem-builder-button:hover,
.iem-builder-button:focus-visible {
	border-color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold))) 88%, #fff),
		var(--iem-x-gold, var(--iem-brand-gold))
	);
	color: #17110a;
	transform: translateY(-2px);
	box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 78%, transparent);
}

.iem-builder-button:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px -8px color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 70%, transparent);
}

/* The ghost button fills toward the accent rather than jumping straight to solid gold,
   so the two buttons stay visually distinct while hovered. */
.iem-builder-button.iem-builder-button-ghost:hover,
.iem-builder-button.iem-builder-button-ghost:focus-visible,
.iem-builder-button-row .iem-builder-button.iem-builder-button-ghost:hover,
.iem-builder-button-row .iem-builder-button.iem-builder-button-ghost:focus-visible {
	border-color: var(--iem-x-gold, var(--iem-brand-gold));
	background: color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 16%, rgba(5, 5, 7, 0.42));
	color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
	box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 60%, transparent);
}

.iem-builder-button:focus-visible {
	outline: 2px solid var(--iem-x-cream, var(--iem-brand-cream));
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.iem-builder-button {
		transition: none;
	}

	.iem-builder-button:hover,
	.iem-builder-button:focus-visible,
	.iem-builder-button:active {
		transform: none;
	}
}

.iem-builder-custom-cta {
	grid-template-columns: minmax(0, 1fr) auto;
	padding-right: var(--iem-builder-padding-right, 58px);
	padding-left: var(--iem-builder-padding-left, 58px);
	border: 1px solid var(--iem-x-line, var(--iem-brand-line));
	border-radius: var(--iem-builder-radius, 18px);
	background:
		radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 26%, transparent), transparent 36%),
		var(--iem-x-panel, var(--iem-brand-panel));
}

.iem-builder-custom-cta h2 {
	font-size: clamp(30px, 3vw, 48px);
}

.iem-builder-custom-cta figure {
	display: none;
}

.iem-builder-spacer {
	height: clamp(20px, var(--iem-builder-padding-top, 72px), 180px);
}

.iem-seat-bar {
	display: block;
	height: 3px;
	margin-top: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(244, 239, 228, 0.1);
}

.iem-seat-bar i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--iem-x-gold);
}

.iem-upcoming-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.iem-lrow {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr) auto auto auto;
	gap: 18px;
	align-items: center;
	padding: 16px;
}

.iem-ldate {
	display: grid;
	grid-template-rows: auto auto;
	align-content: center;
	justify-items: center;
	row-gap: 5px;
	width: 56px;
	height: 56px;
	padding: 7px 6px 6px;
	border: 1px solid var(--iem-x-line);
	border-radius: 12px;
	background: var(--iem-x-ink);
}

.iem-ldate b {
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: 23px;
	font-weight: 500;
	line-height: 1;
}

.iem-ldate span {
	color: var(--iem-x-gold);
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.iem-lrow > span {
	color: var(--iem-x-muted);
	font-size: 12px;
}

.iem-lrow .iem-status {
	position: static;
	white-space: nowrap;
}

.iem-calendar {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 384px);
	gap: 22px;
	align-items: start;
}

.iem-cal-card {
	padding: 24px;
}

.iem-cal-panel {
	min-height: 0;
	padding: 34px 32px;
	border-radius: var(--iem-builder-radius, 18px);
	background:
		radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 9%, transparent), transparent 36%),
		color-mix(in srgb, var(--iem-x-panel, var(--iem-brand-panel)) 94%, #000);
}

.iem-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.iem-cal-head h3 {
	margin: 0;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: 24px;
	font-weight: 500;
}

.iem-cal-panel h4 {
	margin: 0 0 26px;
	color: var(--iem-x-gold-bright);
	font-family: var(--iem-font-ui);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.iem-cal-head button {
	width: 34px;
	height: 34px;
	margin-left: 8px;
	border-radius: 50%;
	color: var(--iem-x-gold-bright);
	font-size: 22px;
	line-height: 1;
}

.iem-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: clamp(3px, 1.2vw, 8px);
}

.iem-cal-dows {
	margin-bottom: 8px;
	color: var(--iem-x-muted);
	font-size: 11px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

.iem-cal-cell {
	position: relative;
	display: grid;
	min-height: 50px;
	padding: 2px 0 8px;
	place-items: center;
	border: 1px solid var(--iem-x-line);
	border-radius: 10px;
	background: var(--iem-x-ink);
	color: var(--iem-x-muted);
	cursor: pointer;
	/* Seven cells across a phone leave ~30px each; without this the two-digit days
	   wrapped to "2 / 0" over two lines. */
	white-space: nowrap;
}

.iem-cal-cell.is-empty {
	border-color: transparent;
	background: transparent;
	cursor: default;
}

.iem-cal-cell.has-event {
	color: var(--iem-x-cream);
}

.iem-cal-cell.has-event::after {
	position: absolute;
	left: 50%;
	bottom: 7px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--iem-x-gold);
	content: "";
	transform: translateX(-50%);
}

.iem-cal-cell.is-selected {
	border-color: var(--iem-x-gold);
	background: rgba(199, 162, 82, 0.12);
	color: var(--iem-x-gold-bright);
}

.iem-cal-event {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding: 0 0 24px;
	border-bottom: 1px solid var(--iem-x-line);
}

.iem-cal-event span {
	flex: 0 0 44px;
	padding-top: 2px;
	color: var(--iem-x-gold-bright);
	font-family: var(--iem-font-eyebrow);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.iem-cal-event h5 {
	margin: 0 0 4px;
	color: var(--iem-x-cream);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.1;
}

.iem-cal-event p,
.iem-cal-empty,
.iem-empty {
	margin: 0;
	color: var(--iem-x-muted);
	font-size: 13px;
	line-height: 1.45;
}

.iem-past-section {
	background: linear-gradient(180deg, rgba(19, 18, 24, 0.2), rgba(19, 18, 24, 0.56));
}

.iem-past-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iem-past-card {
	min-height: 250px;
	display: flex;
	flex-direction: column;
	justify-content: end;
	padding: 20px;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 -150px 90px -70px rgba(10, 10, 12, 0.95);
	filter: grayscale(0.45) brightness(0.78);
}

.iem-past-card:hover {
	filter: grayscale(0) brightness(0.92);
}

.iem-past-card span {
	color: var(--iem-x-gold-bright);
	font-family: var(--iem-font-eyebrow);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
}

.iem-past-card strong {
	margin-top: 6px;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-display);
	font-size: 18px;
	font-weight: 500;
}

.iem-past-card em {
	margin-top: 8px;
	color: var(--iem-x-muted);
	font-size: 12px;
	font-style: normal;
}

.iem-artists-track {
	/* Six hard columns squeezed the artist cards to 94px in a 654px row. Same
	   minimum-width guard the event grids use: six columns only while they fit. */
	--iem-grid-cols: 6;
	--iem-grid-gap: 18px;
	--iem-grid-min: 150px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--iem-grid-min), calc((100% - (var(--iem-grid-cols) - 1) * var(--iem-grid-gap)) / var(--iem-grid-cols) - 0.5px))), 1fr));
}

.iem-artist-card {
	padding: 20px;
	text-align: center;
}

.iem-artist-card span {
	margin: 0 auto 14px;
	width: 52px;
	height: 52px;
}

.iem-artist-card strong,
.iem-artist-card em {
	display: block;
}

.iem-artist-card strong {
	color: var(--iem-x-cream);
	font-size: 15px;
}

.iem-artist-card em {
	margin-top: 4px;
	color: var(--iem-x-muted);
	font-size: 12px;
	font-style: normal;
}

.iem-footer {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 48px;
	color: var(--iem-x-muted);
}

.iem-footer p {
	max-width: 620px;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.6;
}

.iem-reveal,
.iem-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

html.iem-event-modal-open,
body.iem-event-modal-open {
	overflow: hidden;
}

.iem-event-modal[hidden] {
	display: none !important;
}

.iem-event-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: grid;
	place-items: center;
	padding: 28px;
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-family: var(--iem-font-body);
	isolation: isolate;
}

.iem-event-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(5, 5, 7, 0.72);
	backdrop-filter: blur(8px);
	z-index: 0;
}

.iem-event-modal-panel {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: min(92vh, 1180px);
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid rgba(215, 174, 87, 0.34);
	border-radius: 18px;
	background:
		radial-gradient(circle at 82% 8%, rgba(215, 174, 87, 0.15), transparent 34%),
		linear-gradient(145deg, rgba(72, 74, 75, 0.96), rgba(42, 43, 45, 0.98) 42%, rgba(24, 24, 28, 0.98));
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), 0 0 54px rgba(215, 174, 87, 0.13);
}

.iem-event-modal-close {
	position: sticky;
	top: 16px;
	z-index: 3;
	float: right;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 14px 14px -52px 0;
	border: 1px solid rgba(248, 242, 232, 0.22);
	border-radius: 999px;
	background: rgba(9, 9, 12, 0.78);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.iem-event-modal-close:hover,
.iem-event-modal-close:focus-visible {
	border-color: rgba(215, 174, 87, 0.78);
	color: #f3d27a;
}

.iem-event-modal-hero {
	position: relative;
	margin: 28px 28px 0;
	overflow: visible;
	border-radius: 14px;
	aspect-ratio: 16 / 8;
	background: #111016;
}

/* <picture> is inline by default; make it fill the frame like a bare <img> would,
   so the responsive-source path lays out identically to the single-image path. */
.iem-event-modal-hero picture {
	display: block;
	width: 100%;
	height: 100%;
}

.iem-event-modal-hero img {
	overflow: hidden;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: inherit;
}

.iem-event-modal-date {
	position: absolute;
	right: 72px;
	bottom: -18px;
	display: grid;
	width: 88px;
	overflow: hidden;
	border-radius: 9px;
	background: #202023;
	text-align: center;
	box-shadow: 0 14px 22px rgba(0, 0, 0, 0.36);
	z-index: 4;
}

.iem-event-modal-date span {
	padding: 9px 10px 7px;
	background: #ecd23f;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
}

.iem-event-modal-date b {
	padding-top: 8px;
	color: #fff;
	font-family: var(--iem-font-display);
	font-size: 42px;
	line-height: 1;
}

.iem-event-modal-date em {
	padding: 4px 8px 11px;
	color: #f0f0f0;
	font-size: 17px;
	font-style: normal;
	line-height: 1.05;
}

.iem-event-modal-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 34px;
	padding: 32px 42px 42px;
}

.iem-event-modal-grid main,
.iem-event-modal-grid aside {
	min-width: 0;
}

.iem-event-modal h2 {
	margin: 0 0 12px;
	color: #fffaf0;
	font-family: var(--iem-font-display);
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.05;
}

.iem-event-modal h3 {
	margin: 26px 0 10px;
	color: #f8f2e8;
	font-family: var(--iem-font-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}

.iem-event-modal p {
	margin: 0;
	color: rgba(248, 242, 232, 0.66);
	font-size: 16px;
	line-height: 1.62;
}

.iem-event-modal-meta {
	display: grid;
	gap: 9px;
	margin: 0 0 12px;
	padding: 0;
	color: rgba(248, 242, 232, 0.86);
	font-size: 16px;
	list-style: none;
}

.iem-event-modal-meta li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.iem-event-modal-meta li::before {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: currentColor;
	color: #d7b35f;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.iem-event-modal-meta .iem-modal-meta-date::before {
	mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M7 2h2v3h6V2h2v3h3v17H4V5h3V2Zm13 8H4v10h16V10ZM6 7v1h12V7H6Z'/%3E%3C/svg%3E");
}

.iem-event-modal-meta .iem-modal-meta-venue::before {
	mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E");
}

.iem-event-modal-meta .iem-modal-meta-stage::before {
	mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 14a4 4 0 0 0 4-4V5a4 4 0 0 0-8 0v5a4 4 0 0 0 4 4Zm6-4a6 6 0 0 1-12 0H4a8 8 0 0 0 7 7.94V21H8v2h8v-2h-3v-3.06A8 8 0 0 0 20 10h-2Z'/%3E%3C/svg%3E");
}

.iem-event-modal-meta .iem-modal-meta-artist::before {
	mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm-9 9a9 9 0 0 1 18 0v1H3v-1Z'/%3E%3C/svg%3E");
}

.iem-event-modal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 22px;
}

.iem-event-modal-tags span {
	border: 1px solid rgba(215, 179, 95, 0.42);
	border-radius: 999px;
	background: rgba(215, 179, 95, 0.12);
	color: #f4d37a;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.iem-event-modal-songs {
	display: grid;
	gap: 7px;
	overflow: hidden;
	border: 1px solid rgba(215, 179, 95, 0.14);
	border-radius: 14px;
	background: rgba(8, 8, 10, 0.32);
}

.iem-event-modal-songs a,
.iem-event-modal-songs div {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 16px;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(215, 179, 95, 0.1);
	border-radius: 0;
	background:
		linear-gradient(90deg, rgba(215, 179, 95, 0.1), transparent 46%),
		linear-gradient(135deg, rgba(24, 23, 29, 0.98), rgba(16, 15, 20, 0.98));
	color: #f8f2e8;
	text-decoration: none;
}

.iem-event-modal-songs a:last-child,
.iem-event-modal-songs div:last-child {
	border-bottom: 0;
}

.iem-event-modal-songs a:nth-child(2n),
.iem-event-modal-songs div:nth-child(2n) {
	background:
		linear-gradient(90deg, rgba(215, 179, 95, 0.07), transparent 46%),
		linear-gradient(135deg, rgba(31, 29, 36, 0.98), rgba(17, 16, 21, 0.98));
}

.iem-event-modal-songs strong,
.iem-event-modal-songs em {
	min-width: 0;
}

.iem-event-modal-songs em {
	color: rgba(248, 242, 232, 0.62);
	font-size: 13px;
	font-style: normal;
}

.iem-event-modal-songs i {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid rgba(215, 179, 95, 0.36);
	border-radius: 999px;
	background: rgba(215, 179, 95, 0.1);
	padding: 7px 11px;
	color: #f4d37a;
	font-size: 11px;
	font-weight: 800;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.iem-event-modal-songs i::before {
	content: "";
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid currentColor;
}

.iem-event-modal-video {
	overflow: hidden;
	border-radius: 10px;
	aspect-ratio: 16 / 9;
	background: #09090b;
}

.iem-event-modal-video iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.iem-event-modal-photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.iem-event-modal-photos img {
	width: 100%;
	aspect-ratio: 1.22 / 1;
	object-fit: cover;
	display: block;
}

/* The thumbnail is a button now, so it has to shed the button chrome and read as
   an image again. */
.iem-gallery-item {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	cursor: zoom-in;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iem-gallery-item img {
	transition: transform 0.35s ease;
}

.iem-gallery-item:hover img,
.iem-gallery-item:focus-visible img {
	transform: scale(1.05);
}

.iem-gallery-item:focus-visible {
	outline: 2px solid var(--iem-x-gold, var(--iem-brand-gold));
	outline-offset: 2px;
}

.iem-event-modal-grid aside {
	align-self: start;
	display: grid;
	gap: 12px;
	padding-top: 118px;
}

.iem-event-modal-grid aside div {
	display: grid;
	gap: 2px;
	padding: 14px;
	border: 1px solid rgba(248, 242, 232, 0.12);
	border-radius: 10px;
	background: rgba(10, 10, 13, 0.34);
}

.iem-event-modal-grid aside strong {
	color: #fffaf0;
	font-size: 15px;
	line-height: 1.25;
}

.iem-event-modal-grid aside span {
	color: rgba(248, 242, 232, 0.62);
	font-size: 13px;
}

.iem-event-modal-grid aside p {
	padding: 14px;
	border: 1px solid rgba(215, 174, 87, 0.24);
	border-radius: 10px;
	background: rgba(215, 174, 87, 0.08);
	font-size: 13px;
}

.iem-event-modal-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f3d27a, #c7a252 62%, #8d713a);
	box-shadow: 0 14px 30px rgba(215, 174, 87, 0.28);
	color: #111016;
	font-weight: 800;
	text-decoration: none;
}

/**
 * Theme-proofing for control typography.
 *
 * Themes routinely style bare elements - this one ships `form button:not(.components-button)`,
 * specificity (0,1,2), which outranks a plain `.iem-newsletter-button` (0,1,0) and was
 * pulling the theme face (Jost) into the plugin's own buttons. Re-assert the brand faces
 * from the plugin root so blanket element rules can't reach inside our sections, without
 * resorting to !important (which would block legitimate per-site overrides).
 */
.iem-newsletter .iem-newsletter-button,
.iem-builder-block .iem-newsletter-button,
.iem-experience .iem-btn,
.iem-events-section .iem-btn,
.iem-builder-block .iem-btn,
.iem-event-modal .iem-btn,
.iem-event-modal .iem-event-modal-cta,
.iem-experience .iem-view-toggle button,
.iem-experience .iem-chip,
.iem-experience .iem-cal-head button,
.iem-experience .iem-cal-cell,
.iem-builder-block .iem-builder-button {
	font-family: var(--iem-font-ui);
}

.iem-newsletter .iem-newsletter-field input,
.iem-builder-block .iem-newsletter-field input,
.iem-experience .iem-search input {
	font-family: var(--iem-font-body);
}

@media (max-width: 1100px) {
	/**
	 * Every two-column block stacks together here. The newsletter card and custom block
	 * used to hold on until 780px, but their second column carries a hard floor (380px
	 * and 260px) while the copy column's floor is 0 - so the copy was crushed long
	 * before the stack kicked in: 112px at 860, 66px at 800, 51px at 781.
	 */
	.iem-hero,
	.iem-calendar,
	.iem-newsletter-card,
	.iem-builder-block-newsletter .iem-newsletter-card,
	.iem-builder-custom {
		grid-template-columns: 1fr;
	}

	.iem-newsletter-copy,
	.iem-builder-block-newsletter .iem-newsletter-copy {
		min-width: 0;
		width: 100%;
	}

	/* Card is stacked, but the field and button still fit side by side down to 700px. */
	.iem-newsletter-form,
	.iem-builder-block-newsletter .iem-newsletter-form {
		grid-template-columns: minmax(0, 1fr) auto;
		justify-content: stretch;
		justify-items: stretch;
	}

	.iem-newsletter-button,
	.iem-builder-block-newsletter .iem-newsletter-button {
		justify-self: end;
	}

	.iem-upcoming-grid,
	.iem-upcomming-events .iem-upcoming-grid,
	.iem-weekly-events-grid,
	.iem-weekly-events-rich .iem-weekly-events-grid {
		--iem-grid-cols: 2;
	}

	.iem-past-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.iem-builder-block .iem-upcoming-grid,
	.iem-builder-block .iem-weekly-events-grid,
	.iem-builder-block .iem-event-category-grid {
		--iem-grid-cols: var(--iem-builder-tablet-columns, 2);
	}

	.iem-mood-grid,
	.iem-event-category-grid {
		--iem-grid-cols: 3;
	}

	.iem-artists-track {
		--iem-grid-cols: 3;
	}

	.iem-builder-landing-hero {
		gap: 44px;
	}
}

@media (max-width: 780px) {
	.iem-experience {
		overflow-x: hidden;
	}

	.iem-event-modal {
		align-items: start;
		padding: 12px;
	}

	.iem-event-modal-panel {
		width: 100%;
		max-height: calc(100vh - 24px);
		border-radius: 16px;
	}

	.iem-event-modal-close {
		top: 10px;
		width: 34px;
		height: 34px;
		margin: 10px 10px -44px 0;
		font-size: 21px;
	}

	.iem-event-modal-hero {
		margin: 16px 16px 0;
		aspect-ratio: 1.35 / 1;
		border-radius: 12px;
	}

	.iem-event-modal-date {
		right: 14px;
		bottom: -16px;
		width: 76px;
	}

	.iem-event-modal-date span {
		padding: 8px 8px 6px;
		font-size: 11px;
	}

	.iem-event-modal-date b {
		padding-top: 7px;
		font-size: 34px;
	}

	.iem-event-modal-date em {
		padding: 3px 7px 9px;
		font-size: 14px;
	}

	.iem-event-modal-grid {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 28px 20px 24px;
	}

	.iem-event-modal-grid aside {
		order: -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-top: 0;
	}

	.iem-event-modal-grid aside p,
	.iem-event-modal-cta {
		grid-column: 1 / -1;
	}

	.iem-event-modal h2 {
		font-size: clamp(27px, 9vw, 34px);
	}

	.iem-event-modal h3 {
		margin-top: 22px;
		font-size: 18px;
	}

		.iem-event-modal p,
		.iem-event-modal-meta {
			font-size: 14px;
			line-height: 1.55;
		}

		.iem-event-modal-songs a,
		.iem-event-modal-songs div {
			grid-template-columns: 1fr;
		}

		.iem-event-modal-songs i {
			grid-column: 1;
			grid-row: auto;
			justify-self: start;
			margin-top: 4px;
		}

		.iem-event-modal-photos {
			grid-template-columns: 1fr;
		}

	/* Stacking itself now happens at 1100px; these are the phone-sized paddings. */
	.iem-newsletter-card {
		gap: 28px;
		min-height: 0;
		padding: 34px 22px;
	}

	.iem-builder-block-newsletter .iem-newsletter-card {
		gap: 26px;
		min-height: 0;
		padding: 34px 22px;
	}

	.iem-newsletter h2,
	.iem-builder-block .iem-newsletter h2 {
		overflow-wrap: normal;
		word-break: normal;
		font-size: clamp(28px, 9vw, 34px);
		line-height: 1.12;
	}

	.iem-newsletter p,
	.iem-builder-block .iem-newsletter p {
		max-width: 100%;
		font-size: 15px;
		line-height: 1.5;
	}

	.iem-newsletter-button,
	.iem-builder-block-newsletter .iem-newsletter-button {
		width: auto;
		min-height: 46px;
		padding-inline: 28px;
	}

	.iem-featured-hero {
		max-width: 100%;
	}

	.iem-featured-hero-art {
		min-height: 0;
	}

	.iem-featured-hero-body {
		padding: 22px 20px;
	}

	.iem-featured-hero-foot {
		align-items: center;
		flex-direction: row;
	}

	.iem-nav {
		align-items: flex-start;
		flex-direction: column;
	}

	.iem-nav-links {
		width: 100%;
		justify-content: space-between;
	}

	.iem-hero {
		padding-block: 46px 66px;
	}

	.iem-ticket-body,
	.iem-cal-card {
		padding: 20px;
	}

	.iem-cal-panel {
		padding: 28px 24px;
	}

	.iem-section-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

	.iem-view-toggle {
		display: grid;
		width: 100%;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.iem-view-toggle button {
		min-width: 0;
		padding-inline: 8px;
	}

	.iem-builder-custom,
	.iem-builder-custom-cta,
	.iem-builder-landing-hero {
		grid-template-columns: 1fr;
	}

	/*
	 * Vertical rhythm on small screens.
	 *
	 * 80px of section padding is right on a desktop and far too much on a 390px phone,
	 * where it costs most of a screenful before the content starts. The landing hero
	 * already scaled down here; nothing else did, so the hero closed up on mobile while
	 * the sections below it kept their full desktop spacing and the gaps went uneven
	 * (132px under the hero against 165px everywhere else).
	 *
	 * Same clamp for top and bottom, so the space between any two sections stays equal.
	 */
	.iem-builder-block .iem-shell,
	.iem-builder-block .iem-upcomming-events-shell,
	.iem-builder-block .iem-weekly-events-shell,
	.iem-builder-block-newsletter .iem-newsletter,
	.iem-builder-custom,
	.iem-builder-landing-hero {
		padding-top: clamp(38px, 9vw, 56px);
		padding-bottom: clamp(38px, 9vw, 56px);
	}

	.iem-builder-landing-hero {
		gap: 34px;
		background:
			radial-gradient(circle at 66% 8%, color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 24%, transparent), transparent 40%),
			radial-gradient(circle at 20% 24%, color-mix(in srgb, var(--iem-x-gold, var(--iem-brand-gold)) 10%, transparent), transparent 42%);
	}

	.iem-builder-block {
		margin-right: min(var(--iem-builder-margin-right, 0px), 18px);
		margin-left: min(var(--iem-builder-margin-left, 0px), 18px);
	}

	.iem-builder-layout-custom {
		width: auto;
	}

	.iem-builder-block .iem-shell,
	.iem-builder-block .iem-upcomming-events-shell,
	.iem-builder-block .iem-weekly-events-shell,
	.iem-builder-block-newsletter .iem-newsletter,
	.iem-builder-custom,
	.iem-builder-landing-hero {
		padding-right: max(min(var(--iem-builder-padding-right, 24px), 24px), 18px);
		padding-left: max(min(var(--iem-builder-padding-left, 24px), 24px), 18px);
	}

	/**
	 * Phone-sized caps used to be hard pixel values (340px heading, 350px copy) with the
	 * heading capped at 44px, so a 712px tablet rendered a small heading hugging the left
	 * edge of a 571px column with the rest empty. Both now fill the column and the type
	 * scales with it, so the block reads the same way at 375px and at 780px.
	 */
	.iem-builder-landing-copy h1 {
		max-width: 100%;
		margin-top: 20px;
		overflow-wrap: normal;
		word-break: normal;
		font-size: clamp(36px, 6.6vw, 58px);
		line-height: 1;
	}

	.iem-builder-landing-copy p {
		max-width: 100%;
		margin-top: 24px;
		font-size: clamp(16px, 2.5vw, 19px);
		line-height: 1.55;
	}

	.iem-builder-custom h2 {
		overflow-wrap: anywhere;
	}

	.iem-builder-custom-cta {
		width: auto;
	}

	/* Wrap rather than hard-stack: side by side while they fit, two rows on phones. */
	.iem-builder-button-row {
		align-items: flex-start;
		gap: 14px;
		margin-top: 32px;
	}

	.iem-builder-button-row .iem-builder-button {
		min-width: 198px;
		min-height: 43px;
		padding-inline: 22px;
	}

	.iem-builder-button-row .iem-builder-button.iem-builder-button-ghost {
		min-width: 184px;
	}

	.iem-builder-landing-card .iem-featured-hero {
		margin-inline: 0;
	}

	.iem-lrow {
		grid-template-columns: 64px minmax(0, 1fr);
		align-items: start;
		gap: 14px 18px;
		padding: 18px;
		text-align: left;
	}

	.iem-lrow > div:not(.iem-ldate) {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.iem-lrow > span {
		grid-column: 2;
		grid-row: 3;
		justify-self: start;
	}

	.iem-lrow > em {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		justify-self: start;
	}

	/* The CTA renders as a <button>, so `> a` alone never matched and the button fell
	   into auto-placement inside the 64px date column. */
	.iem-lrow > a,
	.iem-lrow > button {
		grid-column: 2;
		grid-row: 4;
		justify-self: end;
	}

	.iem-lrow .iem-ldate {
		grid-column: 1;
		grid-row: 2;
		margin-top: 8px;
	}

	.iem-lrow h3 {
		font-size: clamp(20px, 6.4vw, 24px);
		line-height: 1.08;
	}

	.iem-lrow p {
		margin-top: 8px;
		font-size: 14px;
		line-height: 1.45;
	}

	.iem-lrow > span {
		margin-top: 4px;
	}

	.iem-lrow .iem-status {
		margin-top: 0;
		align-self: center;
	}

	.iem-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

/**
 * Card grids collapse to the mobile column count at 700px, not at the 780px used for
 * the rest of the mobile layout. 768px - iPad Mini and iPad 9.7 in portrait, the most
 * common tablet width there is - sat just under 780 and dropped to a single 620px card
 * per row, while every neighbouring tablet width (800/810/820/834) showed two. Phones
 * keep one column, and the `--iem-grid-min` floor still steps a 2-column tablet layout
 * down to 1 by itself on anything too narrow to carry it.
 */
@media (max-width: 700px) {
	.iem-featured-grid,
	.iem-upcoming-grid,
	.iem-upcomming-events .iem-upcoming-grid,
	.iem-weekly-events-grid,
	.iem-weekly-events-rich .iem-weekly-events-grid,
	.iem-event-category-grid,
	.iem-mood-grid {
		--iem-grid-cols: 1;
	}

	.iem-past-grid {
		grid-template-columns: 1fr;
	}

	.iem-artists-track {
		--iem-grid-cols: 1;
	}

	.iem-builder-block .iem-upcoming-grid,
	.iem-builder-block .iem-weekly-events-grid,
	.iem-builder-block .iem-event-category-grid {
		--iem-grid-cols: var(--iem-builder-mobile-columns, 1);
	}

	.iem-newsletter-form,
	.iem-builder-block-newsletter .iem-newsletter-form {
		grid-template-columns: 1fr;
		justify-content: center;
		justify-items: center;
	}

	.iem-newsletter-button,
	.iem-builder-block-newsletter .iem-newsletter-button {
		justify-self: center;
	}
}

@media (max-width: 520px) {
	.iem-builder-block .iem-shell,
	.iem-builder-block .iem-upcomming-events-shell,
	.iem-builder-block .iem-weekly-events-shell,
	.iem-builder-block-newsletter .iem-newsletter,
	.iem-builder-custom,
	.iem-builder-landing-hero {
		padding-right: max(min(var(--iem-builder-padding-right, 18px), 18px), 16px);
		padding-left: max(min(var(--iem-builder-padding-left, 18px), 18px), 16px);
	}

	.iem-featured-hero-art {
		aspect-ratio: 1.55 / 1;
	}

	.iem-featured-hero-body,
	.iem-builder-landing-card .iem-featured-hero-body {
		padding: 18px 22px 26px;
	}

	.iem-builder-landing-card .iem-featured-hero h2,
	.iem-featured-hero h2 {
		font-size: clamp(23px, 7vw, 28px);
		line-height: 1.08;
	}

	.iem-featured-hero-meta,
	.iem-builder-landing-card .iem-featured-hero-meta {
		gap: 8px 16px;
		margin: 10px 0 14px;
		font-size: 13px;
		line-height: 1.35;
	}

	.iem-featured-hero-countdown,
	.iem-builder-landing-card .iem-featured-hero-countdown {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 7px;
		max-width: none;
	}

	.iem-featured-hero-countdown div,
	.iem-builder-landing-card .iem-featured-hero-countdown div {
		padding: 7px 2px 6px;
	}

	.iem-featured-hero-countdown b,
	.iem-builder-landing-card .iem-featured-hero-countdown b {
		font-size: 18px;
	}

	.iem-featured-hero-foot,
	.iem-builder-landing-card .iem-featured-hero-foot {
		align-items: center;
		flex-direction: row;
		gap: 12px;
		margin-top: auto;
		padding-top: 16px;
		font-size: 13px;
	}

	.iem-featured-hero-cta.iem-btn,
	.iem-builder-landing-card .iem-featured-hero-cta.iem-btn {
		min-width: 112px;
		min-height: 38px;
		padding-inline: 18px;
	}

	.iem-newsletter-card {
		padding: 28px 18px;
	}

	.iem-builder-block-newsletter .iem-newsletter-card {
		padding: 28px 18px;
	}

	.iem-builder-block-newsletter .iem-newsletter-form {
		width: 100%;
	}

	.iem-newsletter-field input,
	.iem-builder-block-newsletter .iem-newsletter-field input {
		min-width: 0;
	}

	.iem-event-category-card {
		min-height: 124px;
	}

	.iem-cal-card {
		padding: 16px 14px;
	}

	.iem-cal-cell {
		min-height: 42px;
		padding: 2px 0 7px;
		font-size: 13px;
	}

	.iem-cal-cell.has-event::after {
		bottom: 5px;
	}

	.iem-cal-dows {
		font-size: 10px;
	}

	.iem-cal-head h3 {
		font-size: 19px;
	}

	.iem-cal-head button {
		width: 30px;
		height: 30px;
		margin-left: 6px;
	}

	.iem-cal-event {
		gap: 16px;
	}
}

@media (max-width: 380px) {
	.iem-featured-hero-body,
	.iem-builder-landing-card .iem-featured-hero-body {
		padding: 16px 18px 22px;
	}

	.iem-featured-hero-meta,
	.iem-builder-landing-card .iem-featured-hero-meta {
		gap: 7px 12px;
	}

	.iem-featured-hero-countdown,
	.iem-builder-landing-card .iem-featured-hero-countdown {
		gap: 6px;
	}

	.iem-featured-hero-foot,
	.iem-builder-landing-card .iem-featured-hero-foot {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		margin-top: auto;
		padding-top: 18px;
	}

	.iem-featured-hero-cta.iem-btn,
	.iem-builder-landing-card .iem-featured-hero-cta.iem-btn {
		width: 100%;
	}

	.iem-lrow {
		grid-template-columns: 54px minmax(0, 1fr);
		gap: 12px 14px;
		padding: 16px;
	}

	.iem-ldate {
		width: 50px;
		height: 50px;
	}

	.iem-ldate b {
		font-size: 21px;
	}

	.iem-lrow h3 {
		font-size: clamp(19px, 6.2vw, 22px);
	}

	.iem-lrow > .iem-btn {
		min-width: 96px;
	}
}

/* Add to calendar ------------------------------------------------------------- */
.iem-event-modal-cal {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--iem-x-line);
}

.iem-event-modal-cal span {
	width: 100%;
	color: var(--iem-x-muted);
	font-family: var(--iem-font-eyebrow);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.iem-event-modal-cal a {
	padding: 7px 14px;
	border: 1px solid var(--iem-x-line-strong);
	border-radius: 999px;
	color: var(--iem-x-cream);
	font-family: var(--iem-font-ui);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.iem-event-modal-cal a:hover,
.iem-event-modal-cal a:focus-visible {
	border-color: var(--iem-x-gold);
	color: var(--iem-x-gold-bright);
}

/* RSVP -------------------------------------------------------------------- */
.iem-rsvp {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--iem-x-line);
}

.iem-rsvp strong {
	color: var(--iem-x-cream);
	font-family: var(--iem-font-ui);
	font-size: 13px;
}

.iem-rsvp small {
	margin-top: -4px;
	color: var(--iem-x-gold);
	font-family: var(--iem-font-ui);
	font-size: 11.5px;
	font-weight: 600;
}

.iem-rsvp input[type="text"],
.iem-rsvp input[type="email"] {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 15px;
	border: 1px solid var(--iem-x-line-strong);
	border-radius: 999px;
	outline: 0;
	background: rgba(5, 5, 7, 0.6);
	color: var(--iem-x-cream);
	font-family: var(--iem-font-body);
	font-size: 15px;
}

.iem-rsvp input:focus {
	border-color: var(--iem-x-gold);
}

/*
 * The submit button, specific enough to beat the theme.
 *
 * A plain `.iem-rsvp button` lost to the active theme's own button rules: the pill radius
 * was flattened to a rectangle and the label forced to white, which on gold measures about
 * 2:1 - far below AA. Naming the element and the type raises specificity enough without
 * resorting to !important.
 */
.iem-rsvp button[type="submit"],
.iem-event-modal .iem-rsvp button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin-top: 2px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--iem-x-gold-bright, #e5c241), var(--iem-x-gold, #d4af37));
	/* Dark ink on gold, not white - roughly 8x the contrast. */
	color: #17120a;
	cursor: pointer;
	font-family: var(--iem-font-ui);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: none;
	text-shadow: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.iem-rsvp button[type="submit"]:hover,
.iem-event-modal .iem-rsvp button[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
	filter: brightness(1.06);
	color: #17120a;
}

.iem-rsvp button[type="submit"]:active,
.iem-event-modal .iem-rsvp button[type="submit"]:active {
	transform: translateY(0);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.iem-rsvp button[type="submit"]:focus-visible,
.iem-event-modal .iem-rsvp button[type="submit"]:focus-visible {
	outline: 2px solid var(--iem-x-cream, #f3ede1);
	outline-offset: 3px;
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.iem-rsvp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.iem-rsvp-closed {
	grid-column: 1 / -1;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--iem-x-line);
	color: var(--iem-x-muted);
	font-size: 13px;
}

/* Formatted popup description ---------------------------------------------- */
.iem-modal-richtext > :first-child {
	margin-top: 0;
}

.iem-modal-richtext > :last-child {
	margin-bottom: 0;
}

.iem-modal-richtext p {
	margin: 0 0 12px;
}

.iem-modal-richtext ul,
.iem-modal-richtext ol {
	margin: 0 0 12px;
	padding-left: 20px;
}

.iem-modal-richtext li {
	margin-bottom: 5px;
}

.iem-modal-richtext a {
	color: var(--iem-x-gold);
	text-decoration: underline;
}

.iem-modal-richtext strong {
	color: var(--iem-x-cream);
}

/* Read more --------------------------------------------------------------- */

/*
 * The hidden half is collapsed, never removed - it stays in the document so search engines
 * index it and the browser's own find-in-page still reaches it.
 *
 * Nothing is hidden until JavaScript adds .is-collapsed, so if the script fails the full
 * passage simply reads as normal rather than being stranded behind a dead button.
 */
.iem-more-rest {
	display: block;
}

.iem-more.is-collapsed .iem-more-rest {
	display: none;
}

.iem-more-toggle {
	display: none;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--iem-x-gold, #d4af37);
	cursor: pointer;
	font: inherit;
	font-size: 0.95em;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Only shown once the script is in charge of the collapsing. */
.iem-more.is-enhanced .iem-more-toggle {
	display: inline-block;
}

.iem-more-toggle:hover,
.iem-more-toggle:focus-visible {
	color: var(--iem-x-gold-bright, #f0cf6d);
}

.iem-more-toggle::after {
	content: " \203A";
	display: inline-block;
	transition: transform 0.15s ease;
}

.iem-more:not(.is-collapsed) .iem-more-toggle::after {
	transform: rotate(90deg);
}

/* ==========================================================================
   Host-theme armour
   --------------------------------------------------------------------------
   Elementor's global kit writes `.elementor-kit-N a` and `.elementor-kit-N button`,
   which is specificity (0,1,1). Almost every component rule in this file is a single
   class, (0,1,0), so the kit was winning: filled buttons inherited the theme's gold
   link colour and rendered gold-on-gold at 1.13:1, and the modal close button
   inherited `padding: 13px 22px`, which forced its automatic minimum width past the
   38px square and turned the circle into an oval.

   Each rule below is (0,2,1) - above the kit, and still below the (0,3,0)+ selectors
   Elementor generates for a widget's own colour controls, so per-widget overrides in
   the editor keep working. Only properties a host theme demonstrably breaks are
   restated here; this is not a general reset.
   ========================================================================== */

/* Filled buttons: dark ink on the accent fill. */
.iem-builder-block a.iem-builder-button,
.iem-builder-block button.iem-builder-button,
.iem-builder-block a.iem-newsletter-button,
.iem-builder-block button.iem-newsletter-button,
.iem-experience a.iem-btn-primary,
.iem-experience button.iem-btn-primary,
.iem-featured-hero a.iem-featured-hero-cta,
.iem-event-modal a.iem-btn-primary,
.iem-event-modal button.iem-btn-primary,
.iem-event-modal a.iem-event-modal-cta,
.iem-event-modal button.iem-event-modal-cta {
	color: var(--iem-brand-ink, #17110a);
}

.iem-builder-block a.iem-builder-button:hover,
.iem-builder-block a.iem-builder-button:focus-visible,
.iem-experience a.iem-btn-primary:hover,
.iem-experience a.iem-btn-primary:focus-visible,
.iem-featured-hero a.iem-featured-hero-cta:hover,
.iem-featured-hero a.iem-featured-hero-cta:focus-visible,
.iem-event-modal a.iem-event-modal-cta:hover,
.iem-event-modal a.iem-event-modal-cta:focus-visible {
	color: var(--iem-brand-ink, #17110a);
}

/* Outline buttons: cream at rest, accent once pointed at. */
.iem-builder-block a.iem-builder-button-ghost,
.iem-builder-block button.iem-builder-button-ghost,
.iem-experience a.iem-btn-ghost,
.iem-experience button.iem-btn-ghost,
.iem-event-modal a.iem-btn-ghost,
.iem-event-modal button.iem-btn-ghost {
	color: var(--iem-x-cream, var(--iem-brand-cream));
}

.iem-builder-block a.iem-builder-button-ghost:hover,
.iem-builder-block a.iem-builder-button-ghost:focus-visible,
.iem-experience a.iem-btn-ghost:hover,
.iem-experience a.iem-btn-ghost:focus-visible {
	color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
}

/* Chips and view toggles. :not(.is-active) keeps this off the selected state,
   which carries its own colour and must stay the brighter of the two. */
.iem-experience .iem-view-toggle button:not(.is-active),
.iem-experience button.iem-chip:not(.is-active),
.iem-experience .iem-cal-head button:not(.is-active) {
	color: var(--iem-x-cream, var(--iem-brand-cream));
}

/* The kit fills every <button> with `background-color`. Component rules here use the
   `background` shorthand, which sets background-color at (0,1,0) and therefore lost -
   so unfilled buttons came out as gold pills. Restating the intended surface is what
   fixes it; the filled variants are unaffected because their gradient lives in
   background-image, which the kit never touches. */
.iem-experience button.iem-btn-ghost,
.iem-event-modal button.iem-btn-ghost,
.iem-builder-block button.iem-builder-button-ghost {
	background-color: transparent;
}

.iem-experience .iem-view-toggle button:not(.is-active),
.iem-experience button.iem-chip:not(.is-active),
.iem-experience .iem-cal-head button,
.iem-experience button.iem-cal-cell:not(.is-active) {
	background-color: var(--iem-x-ink, var(--iem-brand-ink));
}

/*
 * Calendar day cells.
 *
 * These are buttons, so the kit's `color: #080706` landed on them - dark ink on the
 * cell's dark surface, 1.07:1, which made every day *without* an event practically
 * invisible while the days with one stayed bright. It also replaced the 10px corner
 * with a 999px pill and added 13px/22px of padding, stretching the squares into ovals.
 */
.iem-experience button.iem-cal-cell,
.iem-event-modal button.iem-cal-cell {
	padding: 2px 0 8px;
	border-radius: 10px;
	color: var(--iem-x-muted, var(--iem-brand-muted));
	font-size: 16px;
}

.iem-experience button.iem-cal-cell.has-event {
	color: var(--iem-x-cream, var(--iem-brand-cream));
}

.iem-experience button.iem-cal-cell.is-selected {
	border-color: var(--iem-x-gold, var(--iem-brand-gold));
	background-color: rgba(199, 162, 82, 0.12);
	color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
}

.iem-experience button.iem-cal-cell.is-empty {
	border-color: transparent;
	background-color: transparent;
	cursor: default;
}

/* Month arrows: the inherited horizontal padding pushed a 34px square out to 46x34,
   which `border-radius: 50%` then drew as an ellipse. */
.iem-experience .iem-cal-head button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	min-width: 34px;
	max-width: 34px;
	height: 34px;
	min-height: 34px;
	/*
	 * Optical centring for the chevrons.
	 *
	 * Centring the box is not the same as centring the mark: these glyphs carry their
	 * ink below the middle of the line box, so a perfectly centred button still reads a
	 * pixel low. The button holds a bare text node with nothing to target, so the shift
	 * comes from trimming the content box at the bottom, which lifts the centred line
	 * with it.
	 */
	padding: 0 0 2px;
	border-radius: 50%;
	color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
	font-size: 20px;
	line-height: 1;
}

.iem-experience .iem-cal-head button:hover,
.iem-experience .iem-cal-head button:focus-visible {
	border-color: var(--iem-x-gold, var(--iem-brand-gold));
	background-color: rgba(199, 162, 82, 0.16);
}

.iem-more button.iem-more-toggle {
	padding: 0;
	background-color: transparent;
	color: var(--iem-x-gold, #d4af37);
}

/* Gallery thumbnails are <button> elements so the keyboard can reach them, which also
   handed them the kit's gold pill: a coloured blob behind every picture, plus 22px of
   padding holding the image away from its own frame. */
.iem-event-modal button.iem-gallery-item,
.iem-experience button.iem-gallery-item {
	padding: 0;
	border: 0;
	border-radius: 10px;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
}

/* The inherited padding made this 8px taller than the email field beside it, so the
   pair no longer read as one control. Height comes from min-height, as designed. */
.iem-newsletter form.iem-newsletter-form .iem-newsletter-button {
	min-height: 48px;
	padding: 0 26px;
}

/* The image viewer's own controls. On a themed site these came out as gold pills with
   22px of side padding, which put the close button at 46x44 instead of square and put
   the kit's colour on a panel that is deliberately neutral so the photograph carries
   the eye. Legible either way - it is the wrong design, not an unreadable one. */
.iem-lightbox button.iem-lightbox-nav,
.iem-lightbox button.iem-lightbox-close {
	padding: 0;
	border: 1px solid rgba(248, 242, 232, 0.46);
	background-color: rgba(34, 34, 40, 0.92);
	background-image: none;
	color: var(--iem-x-cream, var(--iem-brand-cream));
}

.iem-lightbox button.iem-lightbox-nav:hover,
.iem-lightbox button.iem-lightbox-nav:focus-visible,
.iem-lightbox button.iem-lightbox-close:hover,
.iem-lightbox button.iem-lightbox-close:focus-visible {
	border-color: var(--iem-x-gold, var(--iem-brand-gold));
	background-color: rgba(48, 44, 32, 0.96);
	color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
}

.iem-newsletter form.iem-newsletter-form .iem-newsletter-field input {
	min-height: 48px;
}

/* Icon buttons must stay square. The inherited `padding: 13px 22px` raised the
   button's automatic minimum width above its declared 38px, so `width` alone could
   not hold the circle - zeroing the padding is the part that actually fixes it.
   Layout properties (grid, float, sticky offsets) are deliberately left to the
   component rule above; only what the kit overrode is restated. */
.iem-event-modal button.iem-event-modal-close,
.iem-experience button.iem-event-modal-close {
	box-sizing: border-box;
	width: 38px;
	min-width: 38px;
	max-width: 38px;
	height: 38px;
	min-height: 38px;
	padding: 0;
	border-radius: 999px;
	background-color: rgba(9, 9, 12, 0.78);
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-size: 18px;
	line-height: 1;
}

.iem-event-modal button.iem-event-modal-close:hover,
.iem-event-modal button.iem-event-modal-close:focus-visible {
	background-color: rgba(9, 9, 12, 0.92);
	border-color: var(--iem-x-gold, var(--iem-brand-gold));
	color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
}

/* ==========================================================================
   Gallery lightbox
   Opens above the event popup, which already holds the maximum z-index; DOM
   order is what decides the stack, so the JS re-appends this to <body> on open.
   ========================================================================== */
html.iem-lightbox-open {
	overflow: hidden;
}

.iem-lightbox[hidden] {
	display: none !important;
}

.iem-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: grid;
	place-items: center;
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-family: var(--iem-font-ui, var(--iem-font-body));
}

.iem-lightbox-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(4, 4, 6, 0.94);
	backdrop-filter: blur(6px);
}

.iem-lightbox-panel {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 20px clamp(12px, 4vw, 56px);
	box-sizing: border-box;
}

/*
 * This is a <figure>, and themes routinely style that element directly - this one with
 * `display: flex; justify-content: flex-start`. The class wins `display`, but a property
 * it never declares is simply inherited from that rule, so `flex-start` survived into the
 * grid and packed the single track hard against the left edge. `justify-items` then had
 * nothing left to centre, which is why the image sat off to one side no matter what.
 *
 * Both axes are stated explicitly, and the track is given an explicit 1fr so it fills the
 * column whatever a host theme has to say about content alignment.
 */
.iem-lightbox-stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-content: center;
	place-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
	min-width: 0;
}

/* Contained, never cropped: the point of opening an image full screen is to see
   all of it, so the frame gives way to the picture's own proportions. */
.iem-lightbox-stage img {
	max-width: 100%;
	max-height: calc(100vh - 104px);
	width: auto;
	height: auto;
	border-radius: 8px;
	object-fit: contain;
	box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
}

/* The backdrop here is near-black, so the first version of these controls - a dark
   surface with a faint hairline - measured 1.02:1 against it and effectively had no
   visible edge at all. The surface is lifted and the border strengthened to clear the
   3:1 that WCAG 1.4.11 asks of a control boundary. */
.iem-lightbox-nav,
.iem-lightbox-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex: 0 0 auto;
	padding: 0;
	border: 1px solid rgba(248, 242, 232, 0.46);
	border-radius: 999px;
	background: rgba(34, 34, 40, 0.92);
	color: var(--iem-x-cream, var(--iem-brand-cream));
	cursor: pointer;
	line-height: 1;
	box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.9);
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.iem-lightbox-nav {
	width: 52px;
	min-width: 52px;
	height: 52px;
	font-size: 30px;
}

.iem-lightbox-close {
	position: absolute;
	top: 18px;
	right: clamp(12px, 4vw, 56px);
	z-index: 2;
	width: 44px;
	min-width: 44px;
	height: 44px;
	font-size: 22px;
}

.iem-lightbox-nav:hover,
.iem-lightbox-close:hover,
.iem-lightbox-nav:focus-visible,
.iem-lightbox-close:focus-visible {
	border-color: var(--iem-x-gold, var(--iem-brand-gold));
	background: rgba(48, 44, 32, 0.96);
	color: var(--iem-x-gold-bright, var(--iem-x-gold, var(--iem-brand-gold)));
	transform: scale(1.06);
}

.iem-lightbox-nav:focus-visible,
.iem-lightbox-close:focus-visible {
	outline: 2px solid var(--iem-x-cream, var(--iem-brand-cream));
	outline-offset: 3px;
}

.iem-lightbox-count[hidden] {
	display: none !important;
}

/* Out of use but still holding its grid column, so the image beside it stays in the
   middle track. display:none here put single-image galleries against the left edge. */
.iem-lightbox-nav.is-hidden {
	visibility: hidden;
	pointer-events: none;
}

.iem-lightbox-count {
	position: absolute;
	bottom: 20px;
	left: 50%;
	margin: 0;
	padding: 6px 15px;
	border: 1px solid rgba(248, 242, 232, 0.24);
	border-radius: 999px;
	background: rgba(34, 34, 40, 0.92);
	color: var(--iem-x-cream, var(--iem-brand-cream));
	font-size: 12.5px;
	letter-spacing: 0.06em;
	transform: translateX(-50%);
}

/* On a phone the arrows would eat most of the width, so they move on top of the
   image at the bottom edge, where a thumb can reach them. */
@media (max-width: 640px) {
	.iem-lightbox-panel {
		grid-template-columns: 1fr;
		padding: 16px 12px 84px;
	}

	.iem-lightbox-stage img {
		max-height: calc(100vh - 160px);
	}

	.iem-lightbox-nav {
		position: absolute;
		bottom: 18px;
		width: 46px;
		min-width: 46px;
		height: 46px;
	}

	.iem-lightbox-prev {
		left: 22%;
	}

	.iem-lightbox-next {
		right: 22%;
	}

	.iem-lightbox-count {
		bottom: 31px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iem-lightbox-nav,
	.iem-lightbox-close,
	.iem-gallery-item img {
		transition: none;
	}

	.iem-lightbox-nav:hover,
	.iem-lightbox-close:hover,
	.iem-gallery-item:hover img {
		transform: none;
	}
}
