/* ──────────────────────────────────────────────
   SIA Events — front-end
   Everything is scoped under .sia-ev-*; no bare element selectors, nothing
   that can collide with Blocksy (.ct-*), WoodMart (.wd-*) or Elementor
   (.elementor-*). Colours inherit from the theme wherever it is safe, so the
   plugin looks native on both themes without a settings page full of colours.
   ────────────────────────────────────────────── */

.sia-ev-single,
.sia-ev-form-wrap,
.sia-ev-list {
	--sia-ev-accent: #7c3aed;
	--sia-ev-accent-dark: #6d28d9;
	--sia-ev-border: rgba(17, 24, 39, 0.12);
	--sia-ev-muted: rgba(17, 24, 39, 0.6);
	--sia-ev-surface: rgba(17, 24, 39, 0.02);
	--sia-ev-radius: 12px;
	max-width: 100%;
	box-sizing: border-box;
}

.sia-ev-single *,
.sia-ev-form-wrap *,
.sia-ev-list * { box-sizing: border-box; }

/* ─── Cards ──────────────────────────────────── */
.sia-ev-card {
	border: 1px solid var(--sia-ev-border);
	border-radius: var(--sia-ev-radius);
	padding: 20px 22px;
	margin: 0 0 22px;
	background: var(--sia-ev-surface);
}
.sia-ev-h2 { margin: 0 0 14px; font-size: 1.15em; }
.sia-ev-muted { color: var(--sia-ev-muted); font-size: 0.9em; }
.sia-ev-content { margin: 0 0 22px; }

/* ─── Details ────────────────────────────────── */
.sia-ev-dl {
	display: grid;
	grid-template-columns: minmax(90px, max-content) 1fr;
	gap: 8px 18px;
	margin: 0;
}
.sia-ev-dl dt {
	margin: 0;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sia-ev-muted);
	padding-top: 2px;
}
.sia-ev-dl dd { margin: 0; }
.sia-ev-tz { color: var(--sia-ev-muted); font-size: 0.85em; }
.sia-ev-full { color: #b45309; }

.sia-ev-calendar {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--sia-ev-border);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.sia-ev-chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--sia-ev-border);
	border-radius: 999px;
	font-size: 0.85em;
	text-decoration: none;
	line-height: 1.4;
}
.sia-ev-chip:hover { border-color: var(--sia-ev-accent); color: var(--sia-ev-accent); }

/* ─── Join ───────────────────────────────────── */
.sia-ev-join { text-align: center; }
.sia-ev-join.is-waiting { text-align: left; }
.sia-ev-join p { margin: 10px 0 0; }

/* ─── Buttons ────────────────────────────────── */
.sia-ev-btn {
	display: inline-block;
	padding: 12px 22px;
	background: var(--sia-ev-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s;
}
.sia-ev-btn:hover:not(:disabled) { background: var(--sia-ev-accent-dark); color: #fff; }
.sia-ev-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Form ───────────────────────────────────── */
.sia-ev-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px 18px;
}
.sia-ev-field { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.sia-ev-field > label { font-size: 0.85em; font-weight: 600; }
.sia-ev-field input[type="text"],
.sia-ev-field input[type="email"],
.sia-ev-field input[type="tel"],
.sia-ev-field input[type="number"],
.sia-ev-field select,
.sia-ev-field textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sia-ev-border);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	color: inherit;
}
.sia-ev-field input:focus,
.sia-ev-field select:focus,
.sia-ev-field textarea:focus {
	outline: none;
	border-color: var(--sia-ev-accent);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.sia-ev-field--qty { max-width: 140px; }
.sia-ev-req { color: #b91c1c; }
.sia-ev-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.sia-ev-hint { font-size: 0.85em; color: var(--sia-ev-muted); margin: 8px 0 0; }

.sia-ev-attendee {
	border: 1px solid var(--sia-ev-border);
	border-radius: var(--sia-ev-radius);
	padding: 14px 16px;
	margin: 14px 0 0;
}
.sia-ev-attendee legend {
	padding: 0 6px;
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sia-ev-muted);
}

.sia-ev-consent { margin: 16px 0 0; font-size: 0.9em; }
.sia-ev-consent label { display: flex; align-items: flex-start; gap: 9px; }
.sia-ev-consent input { margin-top: 3px; flex-shrink: 0; }

.sia-ev-captcha { margin: 14px 0 0; }

.sia-ev-actions { margin: 18px 0 0; display: flex; align-items: center; gap: 12px; }

/* Honeypot — off screen, never display:none (bots skip hidden fields). */
.sia-ev-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.sia-ev-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--sia-ev-border);
	border-top-color: var(--sia-ev-accent);
	border-radius: 50%;
	animation: sia-ev-spin 0.7s linear infinite;
}
@keyframes sia-ev-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.sia-ev-spinner { animation-duration: 3s; }
}

/* ─── Notices ────────────────────────────────── */
.sia-ev-notice,
.sia-ev-result {
	margin: 0 0 16px;
	padding: 12px 15px;
	border-radius: 8px;
	border: 1px solid var(--sia-ev-border);
	font-size: 0.95em;
	line-height: 1.5;
}
.sia-ev-result { margin: 16px 0 0; }
.sia-ev-notice.is-ok,
.sia-ev-result.is-ok {
	background: #d1fae5;
	border-color: rgba(5, 150, 105, 0.35);
	color: #065f46;
}
.sia-ev-notice.is-error,
.sia-ev-result.is-error {
	background: #fee2e2;
	border-color: rgba(220, 38, 38, 0.3);
	color: #991b1b;
}
.sia-ev-form.is-done .sia-ev-grid,
.sia-ev-form.is-done .sia-ev-actions,
.sia-ev-form.is-done .sia-ev-consent,
.sia-ev-form.is-done .sia-ev-extra { display: none; }

/* ─── Speakers ───────────────────────────────── */
.sia-ev-speakers {
	--sia-ev-spk-photo: 108px;
	--sia-ev-spk-radius: 50%;
	--sia-ev-spk-cols: 3;
}
.sia-ev-speakers__list { display: flex; flex-direction: column; gap: 24px; }
/* One shape everywhere: a head row (portrait + name/role beside it), and the
   biography under the whole thing, full width, behind a hairline. */
.sia-ev-speaker { display: flex; flex-direction: column; gap: 12px; }
.sia-ev-speaker__head { display: flex; align-items: center; gap: 14px; }
.sia-ev-speaker__intro { min-width: 0; }
.sia-ev-speaker__photo { flex: 0 0 var(--sia-ev-spk-photo, 108px); }
.sia-ev-speaker__photo img {
	width: var(--sia-ev-spk-photo, 108px);
	height: var(--sia-ev-spk-photo, 108px);
	object-fit: cover;
	border-radius: var(--sia-ev-spk-radius, 50%);
	display: block;
}
.sia-ev-speaker__bio {
	border-top: 1px solid var(--sia-ev-border);
	padding-top: 12px;
}

/* Card layout: portrait above the words, several across. */
.sia-ev-speakers--grid .sia-ev-speakers__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	gap: 26px;
}
.sia-ev-speakers--grid .sia-ev-speaker__head {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}
.sia-ev-speakers--grid .sia-ev-speaker__photo { flex: none; }
.sia-ev-speakers--grid .sia-ev-speaker__bio { text-align: left; }

/* The editor-only hint the single-event widgets print when they have nothing
   to show. Never rendered on the front end. */
.sia-ev-editor-note {
	padding: 14px 16px;
	border: 1px dashed rgba(17, 24, 39, .25);
	border-radius: 10px;
	color: rgba(17, 24, 39, .6);
	font-size: .9em;
}

/* Label/value arrangements for the Event Details widget. */
.sia-ev-dl--stack { grid-template-columns: 1fr; gap: 2px 0; }
.sia-ev-dl--stack dd { margin-bottom: 12px; }
.sia-ev-dl--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 22px;
}
.sia-ev-dl--inline dt::after { content: ":"; }
.sia-ev-dl.has-no-labels { grid-template-columns: 1fr; }
.sia-ev-speaker__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--sia-ev-spk-photo, 108px);
	height: var(--sia-ev-spk-photo, 108px);
	border-radius: var(--sia-ev-spk-radius, 50%);
	font-size: 2.1rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1;
	/* Colour comes from the name, so one person keeps one colour across every
	   event they speak at. Low saturation and light text keeps it a portrait
	   stand-in rather than a decoration competing with the photos beside it. */
	color: hsl(var(--sia-ev-avatar-hue, 260) 42% 32%);
	background: hsl(var(--sia-ev-avatar-hue, 260) 46% 92%);
}
.sia-ev-speaker__body { min-width: 0; }
.sia-ev-speaker__name { margin: 0; font-size: 1.02em; }
.sia-ev-speaker__role {
	margin: 3px 0 8px;
	font-size: 0.82em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sia-ev-accent);
}
.sia-ev-speaker__bio { font-size: 0.92em; color: var(--sia-ev-muted); }
.sia-ev-speaker__bio p { margin: 0 0 8px; }
@media (max-width: 600px) {
	.sia-ev-speaker { flex-direction: column; }
	.sia-ev-speaker__photo { flex: none; }
}

/* ─── Bundled single-event layouts (full page) ─────────────────
   These render BETWEEN the theme's header and footer via template_include, so
   they own their widths: .sia-ev-shell is the content column, the hero/stage/
   spread are edge to edge. Brand colours ride the same theme chain as the
   archive — Blocksy palette → Elementor global → fallback. */
.sia-ev-page {
	--sia-ev-navy:   var(--theme-palette-color-2, var(--e-global-color-secondary, #282a71));
	--sia-ev-accent: var(--theme-palette-color-1, var(--e-global-color-primary, #b10a4b));
	display: flex;
	flex-direction: column;
	gap: clamp(34px, 5vw, 56px);
	padding-bottom: clamp(40px, 6vw, 72px);
}
.sia-ev-shell {
	width: min(1200px, calc(100% - 2 * clamp(18px, 4vw, 48px)));
	margin: 0 auto;
}
.sia-ev-shell--narrow { max-width: 780px; display: flex; flex-direction: column; gap: 30px; }

.sia-ev-kicker {
	margin: 0;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .85);
}
.sia-ev-kicker::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: var(--sia-ev-accent);
	margin-right: 9px;
}
.sia-ev-kicker--accent { color: var(--sia-ev-accent); }
.sia-ev-title {
	margin: 0;
	font-size: clamp(1.7rem, 3.6vw, 2.7rem);
	line-height: 1.15;
	letter-spacing: -.02em;
	font-weight: 700;
}

/* ── 1. Hero: the photo opens the page, title on it ── */
.sia-ev-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 52vh, 560px);
	background: var(--sia-ev-navy) center / cover no-repeat;
	isolation: isolate;
}
/* Two-stop veil: near-solid navy at the base where the text sits (keeps the
   4.5:1 contrast whatever the photo does), fading to a light brand tint. */
.sia-ev-cover__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		8deg,
		color-mix(in srgb, var(--sia-ev-navy) 88%, #000) 0%,
		color-mix(in srgb, var(--sia-ev-navy) 55%, transparent) 55%,
		color-mix(in srgb, var(--sia-ev-accent) 28%, transparent) 100%
	);
}
.sia-ev-cover__inner {
	width: min(1200px, calc(100% - 2 * clamp(18px, 4vw, 48px)));
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: #fff;
}
.sia-ev-cover .sia-ev-title { color: #fff; max-width: 860px; }
.sia-ev-cover__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.sia-ev-cover .sia-ev-dl dd,
.sia-ev-cover .sia-ev-tz { color: rgba(255, 255, 255, .92); }
.sia-ev-cover .sia-ev-badge { background: rgba(255, 255, 255, .16); color: #fff; }

.sia-ev-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}
.sia-ev-cols__main { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.sia-ev-cols__side {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: var(--sia-ev-sticky-top, 100px);
}
.sia-ev-panel { display: flex; flex-direction: column; gap: 16px; }

/* ── Sidebar rail: stacked cards with real depth ──
   One shape for every card — brand strip on top, a whisper of tint under it —
   with the two brand colours ALTERNATING down the rail: crimson, navy,
   crimson… so the stack reads as a rhythm, not a repetition. */
.sia-ev-rail { gap: 16px; }
.sia-ev-railcard {
	--sia-ev-rc: var(--sia-ev-accent);
	background: linear-gradient(180deg, color-mix(in srgb, var(--sia-ev-rc) 3%, #fff) 0%, #fff 55%);
	border: 1px solid var(--sia-ev-border);
	border-top: 3px solid var(--sia-ev-rc);
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 10px 30px -14px rgba(20, 24, 57, .16);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
/* The colour is assigned by the TEMPLATE (is-brand2), not by nth-child: the
   speakers card must always wear brand colour 1, with its neighbours
   alternating outward from it — and which cards exist varies per event. */
.sia-ev-railcard.is-brand2 { --sia-ev-rc: var(--sia-ev-navy); }
.sia-ev-railcard__title {
	margin: 0;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sia-ev-muted);
}
.sia-ev-railcard--accent .sia-ev-railcard__title { color: var(--sia-ev-rc); }
.sia-ev-railcard .sia-ev-cd { gap: 8px; }
.sia-ev-railcard .sia-ev-cd__u { min-width: 0; flex: 1; padding: 10px 6px; }
.sia-ev-railcard .sia-ev-cd__n { font-size: 1.35rem; }
/* ONE title style for every card in the rail — "Details", "Speakers" and
   "Register" must read as siblings. The page-level `.sia-ev-page .sia-ev-h2`
   rule ties on specificity and wins on order, so this selector deliberately
   outranks it (three classes) instead of gambling on file position. */
.sia-ev-page .sia-ev-rail .sia-ev-h2,
.sia-ev-page .sia-ev-rail .sia-ev-railcard__title {
	margin: 0 0 4px;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sia-ev-muted);
}
/* Speakers, compact for the rail: same head-row shape, smaller portrait. */
.sia-ev-railcard--people .sia-ev-speakers .sia-ev-h2 { margin-bottom: 12px; }
.sia-ev-railcard--people .sia-ev-speakers__list { gap: 20px; }
.sia-ev-railcard--people .sia-ev-speaker__photo { flex-basis: 64px; }
.sia-ev-railcard--people .sia-ev-speaker__photo img,
.sia-ev-railcard--people .sia-ev-speaker__initials { width: 64px; height: 64px; font-size: 1.2rem; }
.sia-ev-railcard--people .sia-ev-speaker__name { font-size: .98rem; }
.sia-ev-railcard--people .sia-ev-speaker__bio { font-size: .84rem; }
.sia-ev-railcard--form .sia-ev-card { border: 0; padding: 0; margin: 0; background: transparent; }

/* ── Related events ── */
.sia-ev-related { margin-top: clamp(30px, 5vw, 54px); }
.sia-ev-related .sia-ev-h2 { margin-bottom: 20px; }
.sia-ev-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 24px;
	align-items: stretch;
}
/* The archive card assumes its wrapper for colours; give it the same vars. */
.sia-ev-related__grid .sia-bp__card { height: 100%; }
/* Same reading as the archive: buttons level at the bottom of the row, and
   the date chip in the top-right corner, the way the archive page wears it. */
.sia-ev-related__grid .sia-bp__more { margin-top: auto; }
.sia-ev-related .sia-ev-date {
	left: auto;
	right: var(--sia-ev-chip-inset, 14px);
}

/* ── 2. Editorial: magazine spread, media stays put ── */
.sia-ev-spread {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
}
.sia-ev-spread__media { position: relative; }
.sia-ev-spread__media .sia-ev-image {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100dvh;
	border-radius: 0;
}
.sia-ev-spread__media .sia-ev-image img { height: 100%; }
.sia-ev-spread__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: clamp(28px, 5vw, 64px);
	max-width: 680px;
}

/* ── 3. Webinar: a navy stage and one action ── */
.sia-ev-stage {
	background:
		radial-gradient(120% 140% at 85% -20%, color-mix(in srgb, var(--sia-ev-accent) 38%, transparent) 0%, transparent 55%),
		var(--sia-ev-navy);
	color: #fff;
}
.sia-ev-stage__inner {
	width: min(880px, calc(100% - 2 * clamp(18px, 4vw, 48px)));
	margin: 0 auto;
	padding: clamp(40px, 7vw, 88px) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
}
.sia-ev-stage .sia-ev-title { color: #fff; }
.sia-ev-stage .sia-ev-dl dd,
.sia-ev-stage .sia-ev-tz,
.sia-ev-stage .sia-ev-muted { color: rgba(255, 255, 255, .85); }
.sia-ev-stage .sia-ev-dl--inline { justify-content: center; }
.sia-ev-stage .sia-ev-badge { background: rgba(255, 255, 255, .16); color: #fff; }
.sia-ev-stage .sia-ev-cd__u { background: rgba(255, 255, 255, .1); }
.sia-ev-stage .sia-ev-cd__n { color: #fff; }
.sia-ev-stage .sia-ev-cd__l { color: rgba(255, 255, 255, .7); }
.sia-ev-stage .sia-ev-chip { border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .9); }
.sia-ev-stage .sia-ev-chip:hover { border-color: #fff; color: #fff; }

.sia-ev-btn--cta {
	background: var(--sia-ev-accent);
	font-size: 1.05em;
	padding: 14px 30px;
	box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--sia-ev-accent) 70%, transparent);
}
.sia-ev-btn--cta:hover:not(:disabled) {
	background: color-mix(in srgb, var(--sia-ev-accent) 85%, #000);
}

.sia-ev-band {
	padding: clamp(32px, 5vw, 56px) 0;
	background: var(--sia-ev-surface);
}
.sia-ev-raised {
	border: 1px solid var(--sia-ev-border);
	border-radius: 16px;
	padding: clamp(20px, 3vw, 34px);
	background: #fff;
	box-shadow: 0 14px 40px -14px rgba(20, 24, 57, .18);
}
.sia-ev-raised .sia-ev-card { border: 0; padding: 0; margin: 0; background: transparent; }

/* Mobile bottom bar (webinar). 44px+ target, safe-area aware. */
.sia-ev-stickybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px clamp(14px, 4vw, 22px) calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-top: 1px solid var(--sia-ev-border);
}
.sia-ev-stickybar__when { font-size: .82rem; font-weight: 600; }
.sia-ev-stickybar .sia-ev-btn--cta { padding: 11px 20px; font-size: .95em; }

/* ── One type scale for the whole event page ──
   The theme styles the first paragraph, headings and asides each its own way,
   which is where the five different sizes came from. Inside our page the scale
   is ours: one body size, two heading steps, one small size for meta. */
.sia-ev-page .sia-ev-content p,
.sia-ev-page .sia-ev-content li {
	font-size: 1rem;
	line-height: 1.7;
}
.sia-ev-page .sia-ev-content p:first-child { font-size: 1rem; } /* no theme "lead" */
.sia-ev-page .sia-ev-content h2 { font-size: 1.4rem; line-height: 1.3; margin: 1.4em 0 .5em; }
.sia-ev-page .sia-ev-content h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.2em 0 .4em; }
.sia-ev-page .sia-ev-content > *:first-child { margin-top: 0; }
.sia-ev-page .sia-ev-h2 { font-size: 1.25rem; }
.sia-ev-page .sia-ev-dl dd { font-size: .95rem; }
.sia-ev-page .sia-ev-dl dt { font-size: .72rem; }
.sia-ev-page .sia-ev-muted,
.sia-ev-page .sia-ev-tz { font-size: .85rem; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 900px) {
	.sia-ev-cols { grid-template-columns: minmax(0, 1fr); }
	.sia-ev-cols__side { position: static; }
	.sia-ev-spread { grid-template-columns: minmax(0, 1fr); }
	.sia-ev-spread__media .sia-ev-image { position: static; height: auto; aspect-ratio: 16 / 10; }
	.sia-ev-spread__body { max-width: none; }
	.sia-ev-page--webinar .sia-ev-stickybar { display: flex; }
	.sia-ev-page--webinar { padding-bottom: 96px; }
}

/* ─── Single-event widgets ───────────────────── */
.sia-ev-image { position: relative; overflow: hidden; line-height: 0; }
.sia-ev-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sia-ev-venue__name { margin: 0 0 6px; }
.sia-ev-venue__address { margin: 0 0 12px; color: var(--sia-ev-muted); }
.sia-ev-venue__map { width: 100%; height: 300px; border: 0; display: block; margin-bottom: 12px; }

.sia-ev-cd { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.sia-ev-cd__u {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 74px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--sia-ev-surface);
}
.sia-ev-cd__n { font-size: 1.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.sia-ev-cd__l {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sia-ev-muted);
}
.sia-ev-cd.is-over { display: block; }
.sia-ev-cd.is-over .sia-ev-cd__u { display: none; }

.sia-ev-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	background: rgba(124, 58, 237, .1);
	color: var(--sia-ev-accent);
}
.sia-ev-badge--cancelled { background: #fee2e2; color: #991b1b; }
.sia-ev-badge--postponed,
.sia-ev-badge--full { background: #fef3c7; color: #92400e; }
.sia-ev-badge--past { background: rgba(17, 24, 39, .07); color: var(--sia-ev-muted); }

/* ─── Calendar ───────────────────────────────── */
.sia-ev-cal {
	--sia-ev-accent: #7c3aed;
	--sia-ev-border: rgba(17, 24, 39, 0.12);
	--sia-ev-muted: rgba(17, 24, 39, 0.6);
	max-width: 100%;
	box-sizing: border-box;
	position: relative;
}
.sia-ev-cal * { box-sizing: border-box; }
.sia-ev-cal.is-loading { opacity: 0.55; transition: opacity 0.15s; }

.sia-ev-cal__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 12px;
}
.sia-ev-cal__title { margin: 0; font-size: 1.1em; text-transform: capitalize; }
.sia-ev-cal__nav {
	width: 34px;
	height: 34px;
	border: 1px solid var(--sia-ev-border);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.sia-ev-cal__nav:hover { border-color: var(--sia-ev-accent); color: var(--sia-ev-accent); }

.sia-ev-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: var(--sia-ev-border);
	border: 1px solid var(--sia-ev-border);
	border-radius: 10px;
	overflow: hidden;
}
.sia-ev-cal__dow {
	background: rgba(17, 24, 39, 0.03);
	padding: 8px 6px;
	text-align: center;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--sia-ev-muted);
}
.sia-ev-cal__day {
	background: #fff;
	min-height: 104px;
	padding: 6px 7px;
}
.sia-ev-cal__day.is-outside { background: rgba(17, 24, 39, 0.02); }
.sia-ev-cal__day.is-outside .sia-ev-cal__num { opacity: 0.4; }
.sia-ev-cal__day.is-today .sia-ev-cal__num {
	background: var(--sia-ev-accent);
	color: #fff;
	border-radius: 999px;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.sia-ev-cal__num { font-size: 0.82em; font-weight: 600; color: var(--sia-ev-muted); }
.sia-ev-cal__events { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sia-ev-cal__event {
	display: block;
	padding: 3px 6px;
	border-radius: 5px;
	background: rgba(124, 58, 237, 0.1);
	color: inherit;
	font-size: 0.76em;
	line-height: 1.35;
	text-decoration: none;
}
.sia-ev-cal__event:hover { background: rgba(124, 58, 237, 0.2); }
.sia-ev-cal__event.is-cancelled { text-decoration: line-through; opacity: 0.6; }
.sia-ev-cal__time { font-weight: 700; margin-right: 4px; }
.sia-ev-cal__name { display: inline; }

/* Below the tablet break a 7-column grid is unreadable: keep only the days
   that actually have something on them, as a list. */
@media (max-width: 640px) {
	.sia-ev-cal__grid {
		display: block;
		background: transparent;
		border: 0;
	}
	.sia-ev-cal__dow { display: none; }
	.sia-ev-cal__day {
		min-height: 0;
		display: flex;
		gap: 12px;
		padding: 10px 12px;
		border: 1px solid var(--sia-ev-border);
		border-radius: 8px;
		margin-bottom: 6px;
	}
	.sia-ev-cal__day:not(.has-events) { display: none; }
	.sia-ev-cal__num { flex: 0 0 26px; }
	.sia-ev-cal__events { flex: 1; margin: 0; }
	.sia-ev-cal__event { font-size: 0.9em; }
}

/* ─── Listing ────────────────────────────────── */
.sia-ev-list--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.sia-ev-list--list { display: flex; flex-direction: column; gap: 18px; }
.sia-ev-list--list .sia-ev-item { display: flex; gap: 18px; align-items: flex-start; }
.sia-ev-list--list .sia-ev-item__thumb { flex: 0 0 200px; }

.sia-ev-item { min-width: 0; }
.sia-ev-item__thumb { display: block; margin-bottom: 12px; }
.sia-ev-item__thumb img { width: 100%; height: auto; border-radius: var(--sia-ev-radius); display: block; }
.sia-ev-item__when {
	margin: 0 0 4px;
	font-size: 0.82em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--sia-ev-accent);
}
.sia-ev-item__title { margin: 0 0 8px; font-size: 1.05em; line-height: 1.35; }
.sia-ev-item__title a { text-decoration: none; }
.sia-ev-item__meta { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sia-ev-tag {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.1);
	color: var(--sia-ev-accent-dark);
	font-size: 0.75em;
	font-weight: 600;
}
.sia-ev-tag--warn { background: #fef3c7; color: #92400e; }
.sia-ev-item__excerpt { margin: 0 0 8px; font-size: 0.92em; color: var(--sia-ev-muted); }
.sia-ev-item__more { margin: 0; font-size: 0.9em; }
.sia-ev-empty { color: var(--sia-ev-muted); }

@media (max-width: 600px) {
	.sia-ev-card { padding: 16px; }
	.sia-ev-dl { grid-template-columns: 1fr; gap: 2px 0; }
	.sia-ev-dl dd { margin-bottom: 10px; }
	.sia-ev-list--list .sia-ev-item { flex-direction: column; }
	.sia-ev-list--list .sia-ev-item__thumb { flex: 1 1 auto; width: 100%; }
}
