/**
 * Current Events — [cev_events] stylesheet.
 *
 * ============================================================================
 * TOKEN BLOCK — the only place to touch when wiring this up to ACSS.
 * Every color/spacing value the component uses lives here as a custom property.
 * Swap the values (or point them at var(--acss-token) instead) and the whole
 * component re-themes — nothing below this block should need editing for that.
 * ============================================================================
 */
.cev-events {
	/* BASE SURFACE — assumed color of whatever this component sits on; not painted anywhere
	   large on its own. Used (a) in dark mode, where it's deliberately darker than
	   --cev-card-background so cards read as raised above the page, and (b) to compute
	   readable text/icon color on small colored chips (the active view-switch button, the
	   lightbox close icon). */
	--cev-page-background: #FFFFFF;
	--cev-page-background-alt: #F5F5F5;
	--cev-card-background: #FFFFFF;

	--cev-text-color: #1A1A1A;
	--cev-text-color-muted: #666666;
	--cev-text-color-faint: #999999;

	--cev-border-color: #DDDDDD;
	--cev-corner-radius: 12px;
	--cev-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 10px 28px rgba(0,0,0,0.08);

	/* CATEGORY COLORS — one per real taxonomy slug. Basic vanilla palette as a generic
	   starting point — swap per client. Add a line here for any new category; anything
	   without a specific entry falls back to --cev-default-category-color. */
	--cev-default-category-color: var(--neutral, #616161);

	--cev-community-color: red;
	--cev-classes-color: blue;
	--cev-seasonal-color: orange;
	--cev-kids-color: purple;
	--cev-workshops-color: green;

	/* STATUS COLORS (not category colors — canceled/live are states, not categories). The
	   elapsed-time bar on a currently-live event reads as "live" red via Automatic CSS's
	   --danger where it's present, falling back to the ambient text color on sites without it. */
	--cev-happening-now-color: #D32F2F;
	--cev-happening-now-background: #FDE1E1;
	--cev-canceled-color: #9E9E9E;
	--cev-progress-color: var(--danger, var(--cev-text-color));

	/* VIEW-SWITCHER CONTROL (deliberately neutral, not a category color) */
	--cev-view-switch-active-background: var(--cev-text-color);
	--cev-view-switch-active-text-color: var(--cev-page-background);

	/* EVENT TITLE (card + lightbox) — same two tokens drive both the card (.cev-card-title)
	   and the lightbox (.cev-lightbox-title), so they stay consistent with each other. */
	--cev-event-title-weight: 800;
	--cev-event-title-transform: uppercase;

	/* MONTH HEADING — List view's "SEPTEMBER 2026" section labels. Separate from the event
	   title tokens above since it's a date-grouping label, not the event's own heading. */
	--cev-month-heading-size: 1.3em;
	--cev-month-heading-weight: 700;
	--cev-month-heading-transform: uppercase;

	/* LIST VIEW THUMBNAIL — set the width, set the shape, height follows on its own. 1 = square;
	   go below 1 for a taller portrait crop, above 1 for a wider landscape crop.
	   --cev-card-image-position is which part of the photo stays visible once
	   object-fit: cover crops it — any valid object-position value works. */
	--cev-list-image-width: 15em;
	--cev-list-image-ratio: 3/1.8;
	--cev-card-image-position: center top;

	/* DATE BADGE — translucent so it reads on any category color beneath it */
	--cev-date-badge-background: rgba(0, 0, 0, 0.8);
	--cev-date-badge-text-color: #FFFFFF;
	--cev-date-badge-padding: 10px 30px;
	--cev-date-badge-corner-radius: 10px;

	/* TILE VIEW GRID. Gap defaults straight to Automatic CSS's own --grid-gap, so it already
	   matches whatever the rest of the site uses. --cev-tile-grid-columns is the WIDEST tier
	   (4 columns) — narrower screens step down through the 3/2/1-column rules below this block
	   and aren't driven by this variable. Point this at an ACSS grid variable instead if you
	   want — e.g. --cev-tile-grid-columns: var(--grid-4); — to size the top tier the same way
	   any other ACSS grid on the site is sized. */
	--cev-tile-grid-columns: repeat(4, 1fr);
	--cev-tile-grid-gap: var(--grid-gap, 14px);

	/* BUBBLE VIEW CATEGORY RING — thickness of the ring border (see
	   .cev-event-list[data-view="bubble"] .cev-event-card in the BUBBLE section below). */
	--cev-bubble-ring-width: 5px;

	/* "HAPPENING NOW" live badge/icon */
	--cev-live-icon-size: 16px;

	/* LIGHTBOX — size, shape, and the sticky header's own edge. One width at every breakpoint:
	   it caps out here on wide screens, and on anything narrower the "width: 100%" rule takes
	   over instead. --cev-lightbox-hero-ratio keeps the artwork's crop consistent no matter
	   the max-width (e.g. 1.5 means "1.5x wider than tall"). The header's border/shadow give
	   the sticky header a visible edge from whatever scrolls underneath it once it's pinned —
	   shadow defaults to Automatic CSS's own "m" shadow where present, falling back to the
	   plugin's own --cev-shadow otherwise. */
	--cev-lightbox-max-width: 520px;
	--cev-lightbox-hero-ratio: 1.5;
	--cev-lightbox-hero-position: center top;
	--cev-lightbox-header-border-width: 3px;
	--cev-lightbox-header-shadow: var(--box-shadow-1, var(--cev-shadow));
	--cev-lightbox-header-padding: 1.1em 1.5em;

	/* LIGHTBOX ACTION BUTTONS — non-primary (Get Directions, Share, Call). The "Add to
	   Calendar" button's own category-colored fill darkens itself on hover instead. */
	--cev-action-hover-background: var(--cev-border-color);

	/* SINGLE EVENT PAGE (/event/{slug}/) — a plain, crawlable page for search engines, not a
	   second interactive UI; kept to the same content width as the rest of the site. Defaults
	   to Automatic CSS's own --content-width where it's present. */
	--cev-single-max-width: var(--content-width, 1200px);
}

/* Only applies when the "Current Events" element carries .cev-dark-mode-enabled — see the
   plugin's Settings page. Off by default, since most client sites have no light/dark design
   at all and shouldn't have one invented for them by following the visitor's OS setting. */
@media (prefers-color-scheme: dark) {
	.cev-events.cev-dark-mode-enabled {
		--cev-page-background: #121212;
		--cev-page-background-alt: #1E1E1E;
		--cev-card-background: #1E1E1E;
		--cev-text-color: #F5F5F5;
		--cev-text-color-muted: #AAAAAA;
		--cev-text-color-faint: #888888;
		--cev-border-color: #333333;
		--cev-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 10px 28px rgba(0,0,0,0.4);
		--cev-happening-now-color: #EF5350;
		--cev-happening-now-background: #4A1515;
		--cev-canceled-color: #757575;
		--cev-default-category-color: #9E9E9E;
		--cev-workshops-color: #42A5F5;
		--cev-classes-color:   #66BB6A;
		--cev-seasonal-color:  #FFA726;
		--cev-community-color: #EF5350;
		--cev-kids-color:      #BDBDBD;
		--cev-date-badge-background: rgba(255, 255, 255, 0.8);
		--cev-date-badge-text-color: #000000;
		--cev-view-switch-active-background: var(--cev-text-color);
		--cev-view-switch-active-text-color: var(--cev-page-background);
	}
}

/* ============================ Base / reset scope ============================ */
.cev-events {
	color: var(--cev-text-color);
	font-family: inherit;
	line-height: 1.5;
}
.cev-events * { box-sizing: border-box; }
.cev-events svg.cev-ic {
	width: 16px; height: 16px; flex: 0 0 auto;
	stroke: currentColor; fill: none; stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
	display: inline-block; vertical-align: -3px;
}
@media (prefers-reduced-motion: reduce) {
	.cev-events, .cev-events * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================ Controls (filters + view switch) ============================ */
.cev-controls {
	padding: 12px 0;
	margin-bottom: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	border-bottom: 1px solid var(--cev-border-color);
}
.cev-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cev-filter-pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--cev-border-color); background: var(--cev-card-background);
	color: var(--cev-text-color-muted); font-size: 0.78em; font-weight: 600;
	cursor: pointer; user-select: none; transition: all 0.15s ease;
}
.cev-filter-pill:hover { opacity: 0.7; }
.cev-filter-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.cev-filter-pill[data-active="true"] { color: #fff; border-color: transparent; background: var(--cev-card-category-color, var(--cev-default-category-color)); }
.cev-filter-pill[data-active="true"]::before { opacity: 1; background: #fff; }

.cev-view-switch { display: inline-flex; gap: 3px; padding: 3px; margin-left: auto; background: var(--cev-page-background-alt); border: 1px solid var(--cev-border-color); border-radius: 999px; }
.cev-view-switch button {
	appearance: none; border: none; background: transparent; color: var(--cev-text-color-muted);
	font-family: inherit; font-size: 0.78em; font-weight: 600; padding: 7px 14px;
	border-radius: 999px; cursor: pointer;
}
.cev-view-switch button[data-active="true"] { background: var(--cev-view-switch-active-background); color: var(--cev-view-switch-active-text-color); }

.cev-month-heading {
	font-weight: var(--cev-month-heading-weight); text-transform: var(--cev-month-heading-transform); letter-spacing: 0.04em;
	font-size: var(--cev-month-heading-size); color: var(--cev-text-color); margin: 32px 0 14px; padding-top: 8px;
}
.cev-month-heading:first-of-type { margin-top: 0; }

.cev-empty-state { text-align: center; padding: 60px 20px; color: var(--cev-text-color-faint); font-size: 0.9em; }

/* ============================ Badges ============================ */
.cev-badge {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 9px; border-radius: 999px;
	font-size: 0.66em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.cev-badge svg.cev-ic { width: 11px; height: 11px; }
.cev-badge.cev-cat { background: color-mix(in srgb, var(--cev-card-category-color, var(--cev-default-category-color)) 18%, var(--cev-card-background)); color: var(--cev-card-category-color, var(--cev-default-category-color)); }
.cev-badge.cev-repeating { background: var(--cev-page-background-alt); color: var(--cev-text-color-muted); border: 1px solid var(--cev-border-color); }
.cev-badge.cev-more { background: var(--cev-page-background-alt); color: var(--cev-text-color-muted); border: 1px solid var(--cev-border-color); }
.cev-badge.cev-canceled { background: color-mix(in srgb, var(--cev-canceled-color) 18%, var(--cev-card-background)); color: var(--cev-canceled-color); }
.cev-badge.cev-live { background: var(--cev-happening-now-color); color: #fff; }
.cev-badge.cev-live svg.cev-ic {
	animation: cev-pulse 1.4s ease-in-out infinite;
	width: var(--cev-live-icon-size, 16px); height: var(--cev-live-icon-size, 16px);
}
@keyframes cev-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.cev-progress-track { position: relative; height: 4px; border-radius: 999px; background: rgba(0,0,0,0.08); margin: 10px 0 4px; }
.cev-progress-fill { position: absolute; inset: 0; border-radius: 999px; background: var(--cev-progress-color); opacity: 0.35; }
.cev-progress-thumb { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cev-progress-color); border: 2px solid var(--cev-card-background); transform: translate(-50%, -50%); }
.cev-progress-label { font-size: 0.72em; color: var(--cev-text-color-faint); font-variant-numeric: tabular-nums; text-align: right; }

/* ============================ Date badge — same box in List, Tile, and Bubble ============================ */
.cev-date-badge {
	flex: 0 0 auto; position: relative; z-index: 1;
	aspect-ratio: 1 / 1; width: 50px; height: auto;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; background: var(--cev-date-badge-background);
	padding: var(--cev-date-badge-padding); border-radius: var(--cev-date-badge-corner-radius);
	font-variant-numeric: tabular-nums;
}
.cev-date-badge-day, .cev-date-badge-mon { position: relative; z-index: 2; color: var(--cev-date-badge-text-color); }
.cev-date-badge-day { font-weight: 800; font-size: 1.3em; line-height: 1; white-space: nowrap; }
.cev-date-badge-mon { font-size: 0.58em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ============================ Card base ============================ */
/*
 * To set a card background manually (a single color, per category, whatever you want)
 * without editing this file: create a class in Bricks (e.g. "my-card-bg") that sets
 *     --cev-card-background-override: #whatever;
 * and add that class to the Current Events element itself. Leave it unset anywhere and
 * cards keep using --cev-card-background from the token block, same as always.
 */
.cev-event-card {
	background: var(--cev-card-background-override, var(--cev-card-background)); border: 1px solid var(--cev-border-color);
	border-radius: var(--cev-corner-radius); box-shadow: var(--cev-shadow);
	margin-bottom: 14px; cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cev-event-card:hover, .cev-event-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(34,39,28,0.08), 0 16px 32px rgba(34,39,28,0.12);
	outline: none;
}
.cev-card-media {
	background: var(--cev-card-category-color, var(--cev-default-category-color));
	display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,0.9);
	overflow: hidden;
}
.cev-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--cev-card-image-position); }
.cev-card-media svg.cev-ic { width: 34px; height: 34px; stroke-width: 1.6; }
.cev-card-top-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cev-card-title { font-weight: var(--cev-event-title-weight); text-transform: var(--cev-event-title-transform); letter-spacing: 0.01em; font-size: 1.1em; margin: 0 0 4px; color: var(--cev-text-color); }
.cev-card-meta { font-size: 0.82em; color: var(--cev-text-color-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cev-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cev-card-desc { font-size: 0.82em; color: var(--cev-text-color-faint); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================ LIST view ============================ */
.cev-event-list[data-view="list"] { max-width: 100%; }
.cev-event-list[data-view="list"] .cev-event-card { display: flex; gap: 16px; padding: 16px; }
.cev-event-list[data-view="list"] .cev-date-badge { align-self: flex-start; }
.cev-event-list[data-view="list"] .cev-card-media {
	width: var(--cev-list-image-width);
	aspect-ratio: var(--cev-list-image-ratio);
	flex: 0 0 auto; align-self: flex-start; border-radius: 10px;
}
.cev-event-list[data-view="list"] .cev-card-body { flex: 1; min-width: 0; }

/* Below this, a side-by-side row leaves too little width for the text column next to a
   fixed-width image — title/meta start wrapping one word per line. Stack instead: full-width
   image on top, everything else below in the space it actually needs. */
@media (max-width: 768px) {
	.cev-event-list[data-view="list"] .cev-event-card { flex-direction: column; }
	.cev-event-list[data-view="list"] .cev-card-media { width: 100%; align-self: stretch; }
}

/* ============================ TILE view ============================ */
.cev-event-list[data-view="tile"] {
	display: grid;
	grid-template-columns: var(--cev-tile-grid-columns);
	gap: var(--cev-tile-grid-gap);
	max-width: 100%;
}
@media (max-width: 1024px) {
	.cev-event-list[data-view="tile"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.cev-event-list[data-view="tile"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.cev-event-list[data-view="tile"] { grid-template-columns: repeat(1, 1fr); }
}
.cev-event-list[data-view="tile"] .cev-event-card { padding: 16px; margin-bottom: 0; display: flex; flex-direction: column; gap: 12px; }
.cev-event-list[data-view="tile"] .cev-card-media { display: none; }
.cev-event-list[data-view="tile"] .cev-card-body { display: flex; flex-direction: column; gap: 10px; }
.cev-event-list[data-view="tile"] .cev-card-top-row { margin-bottom: 0; }
.cev-event-list[data-view="tile"] .cev-card-title {
	margin: 0; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.cev-event-list[data-view="tile"] .cev-card-desc { margin-top: auto; padding-top: 0; }

.cev-event-list[data-view="tile"] .cev-event-card.cev-is-canceled,
.cev-event-list[data-view="list"] .cev-event-card.cev-is-canceled { opacity: 0.6; }
.cev-event-list[data-view="tile"] .cev-badge.cev-cat,
.cev-event-list[data-view="list"] .cev-badge.cev-cat {
	background: color-mix(in srgb, var(--cev-card-category-color, var(--cev-default-category-color)) 18%, var(--cev-card-background));
	color: var(--cev-card-category-color, var(--cev-default-category-color));
}

.cev-event-list[data-view="tile"] ~ .cev-month-heading,
.cev-event-list[data-view="bubble"] ~ .cev-month-heading { display: none; }

/* ============================ BUBBLE view ============================ */
.cev-event-list[data-view="bubble"] { display: flex; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.cev-event-list[data-view="bubble"] .cev-event-card {
	width: 76px; height: 76px; flex: 0 0 auto;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: #fff; margin-bottom: 0;
	text-align: center; padding: 4px;
	/* One arc per assigned category (--cev-bubble-ring-gradient, computed per-event in JS from
	   ev.cats) as a border ring, with a plain, light center — so an event with several
	   categories shows all of them, instead of just whichever one happens to be first. */
	border: var(--cev-bubble-ring-width, 5px) solid transparent;
	background-image: linear-gradient(var(--cev-card-background), var(--cev-card-background)), var(--cev-bubble-ring-gradient);
	background-origin: border-box;
	background-clip: padding-box, border-box;
}
.cev-event-list[data-view="bubble"] .cev-event-card.cev-is-canceled { background: var(--cev-canceled-color); border-color: var(--cev-canceled-color); }
.cev-event-list[data-view="bubble"] .cev-card-media,
.cev-event-list[data-view="bubble"] .cev-card-meta,
.cev-event-list[data-view="bubble"] .cev-card-desc,
.cev-event-list[data-view="bubble"] .cev-badge,
.cev-event-list[data-view="bubble"] .cev-progress-track,
.cev-event-list[data-view="bubble"] .cev-progress-label,
.cev-event-list[data-view="bubble"] .cev-card-title,
.cev-event-list[data-view="bubble"] .cev-card-body { display: none; }

/* ============================ Lightbox ============================ */
.cev-lightbox-backdrop {
	position: fixed; top: 0; bottom: 0; left: 0; width: 100%; background: rgba(20, 22, 15, 0.55);
	display: flex; align-items: center; justify-content: center; padding: 20px;
	z-index: 100000; opacity: 0; pointer-events: none; transition: opacity 0.18s ease;
}
.cev-lightbox-backdrop.cev-is-open { opacity: 1; pointer-events: auto; }
.cev-lightbox {
	background: var(--cev-card-background); border-radius: 20px; max-width: var(--cev-lightbox-max-width); width: 100%;
	max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 60px rgba(0,0,0,0.3);
	transform: translateY(8px) scale(0.98); transition: transform 0.18s ease;
}
.cev-lightbox-backdrop.cev-is-open .cev-lightbox { transform: translateY(0) scale(1); }
.cev-lightbox-header {
	background: var(--cev-page-background-alt); color: var(--cev-text-color);
	padding: var(--cev-lightbox-header-padding); position: sticky; top: 0; z-index: 2; border-radius: 20px 20px 0 0;
	border-bottom: var(--cev-lightbox-header-border-width) solid var(--cev-border-color);
	box-shadow: var(--cev-lightbox-header-shadow);
}
.cev-lightbox-hero { width: 100%; aspect-ratio: var(--cev-lightbox-hero-ratio); object-fit: cover; object-position: var(--cev-lightbox-hero-position); display: block; border-radius: 20px 20px 0 0; }
.cev-lightbox-close {
	position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
	background: var(--cev-text-color); color: var(--cev-page-background); border: none; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.cev-lightbox-close:hover { background: var(--cev-card-category-color, var(--cev-default-category-color)); }
.cev-lightbox-close svg.cev-ic { width: 15px; height: 15px; }
.cev-lightbox-badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cev-lightbox-title { font-weight: var(--cev-event-title-weight); text-transform: var(--cev-event-title-transform); font-size: 1.5em; margin: 0; }
.cev-lightbox-body { padding: 20px 22px 24px; }
.cev-lightbox-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cev-border-color); font-size: 0.88em; }
.cev-lightbox-row:last-of-type { border-bottom: none; }
.cev-lightbox-row .cev-ic-wrap { flex: 0 0 auto; width: 20px; text-align: center; color: var(--cev-card-category-color, var(--cev-default-category-color)); padding-top: 2px; }
.cev-lightbox-row .cev-lbl { color: var(--cev-text-color-faint); font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 2px; }
.cev-lightbox-desc { font-size: 0.9em; color: var(--cev-text-color-muted); margin: 14px 0; }
/* The theme/builder's own CSS reset zeroes out <p> margins site-wide, which flattens the
   real paragraph breaks from the event's description into one running block. Restore them
   using the site's own global paragraph-spacing setting (Automatic CSS's --paragraph-spacing)
   rather than a plugin-specific value, so this follows whatever the rest of the site uses. */
.cev-lightbox-desc p { margin: 0 0 var(--paragraph-spacing, 1em); }
.cev-lightbox-desc p:last-child { margin-bottom: 0; }
.cev-lightbox-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cev-lightbox-actions button, .cev-lightbox-actions a {
	appearance: none; border: 1px solid var(--cev-border-color); background: var(--cev-page-background-alt); color: var(--cev-text-color);
	font-family: inherit; font-size: 0.8em; font-weight: 600; padding: 8px 14px; border-radius: 999px;
	cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
	transition: background-color 0.15s ease, filter 0.15s ease;
}
.cev-lightbox-actions button:hover:not(.cev-primary), .cev-lightbox-actions a:hover:not(.cev-primary) { background: var(--cev-action-hover-background); }
.cev-lightbox-actions .cev-primary { background: var(--cev-card-category-color, var(--cev-default-category-color)); color: #fff; border-color: transparent; }
.cev-lightbox-actions .cev-primary:hover { filter: brightness(0.9); }

/* Shared by every dropdown-style action (Add to Calendar, Get Directions, and any future one). */
.cev-action-dropdown { position: relative; display: inline-flex; }
.cev-action-dropdown .cev-chevron { width: 10px; height: 10px; margin-left: 2px; transition: transform 0.15s ease; }
.cev-action-dropdown.cev-is-open .cev-chevron { transform: rotate(180deg); }
.cev-action-dropdown-menu {
	display: none; position: absolute; top: calc(100% + 6px); left: 0;
	background: var(--cev-card-background); border: 1px solid var(--cev-border-color);
	border-radius: 12px; box-shadow: var(--cev-shadow); overflow: hidden; min-width: 200px; z-index: 10;
}
.cev-action-dropdown.cev-is-open .cev-action-dropdown-menu { display: block; }
.cev-action-dropdown .cev-action-dropdown-menu a {
	border: none; border-radius: 0; background: none; color: var(--cev-text-color);
	font-size: 0.85em; padding: 10px 14px; width: 100%;
}
.cev-action-dropdown .cev-action-dropdown-menu a:hover { background: var(--cev-page-background-alt); }

/* ============================================================================
 * SINGLE EVENT PAGE — /event/{slug}/, see templates/single-cev_event.php.
 * ============================================================================ */
.cev-event-single-wrap {
	max-width: var(--cev-single-max-width);
	margin-inline: auto;
	padding: 32px 20px 64px;
	color: var(--cev-text-color);
	background: var(--cev-page-background);
}
.cev-event-single-back { margin: 0 0 16px; font-size: 0.9em; }
.cev-event-single-back a { color: var(--cev-text-color-muted); text-decoration: none; }
.cev-event-single-back a:hover { text-decoration: underline; }

.cev-event-single-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.cev-event-single-title {
	font-weight: var(--cev-event-title-weight);
	text-transform: var(--cev-event-title-transform);
	font-size: 2em;
	line-height: 1.2;
	margin: 0 0 16px;
}

.cev-event-single-meta { margin: 0 0 24px; }
.cev-event-single-meta p { margin: 0 0 6px; color: var(--cev-text-color-muted); }

.cev-event-single-image {
	display: block; width: 100%; height: auto;
	border-radius: var(--cev-corner-radius);
	margin: 0 0 24px;
}

.cev-event-single-desc { max-width: 65ch; line-height: 1.6; }
.cev-event-single-desc :first-child { margin-top: 0; }

.cev-event-single-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.cev-event-single-action {
	appearance: none; border: 1px solid var(--cev-border-color); background: var(--cev-page-background-alt);
	color: var(--cev-text-color); font-size: 0.85em; font-weight: 600; padding: 8px 16px;
	border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center;
	transition: background-color 0.15s ease;
}
.cev-event-single-action:hover { background: var(--cev-action-hover-background); }
