/*
 * Events blocks. Each event sets its host's colours:
 * --csa-ev (dark enough for white text, and as text on white),
 * --csa-ev-base (the brand colour itself), --csa-ev-tint and --csa-ev-ink.
 */
.csa-events, .csa-evcal, .csa-ev-details {
	--csa-ev: #06719f;
	--csa-ev-on: #fff;
	--csa-ev-base: #088ecb;
	--csa-ev-tint: #e2f2fa;
	--csa-ev-ink: #055a80;
	--csa-ev-line: #e2e2e2;
	--csa-ev-muted: #5c5c5c;
	--csa-ev-radius: 12px;
}

/* Hidden by the filters or search, whatever display the element has. */
.csa-events [hidden], .csa-evcal [hidden] { display: none !important; }

/* ---------- Image: a 2:1 frame, never cropped ---------- */
.csa-ev-img {
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	border-radius: var(--csa-ev-radius);
	background: var(--csa-ev-tint, #f2f2f2);
	isolation: isolate;
}
.csa-ev-img__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.csa-ev-img.is-whole .csa-ev-img__img { object-fit: contain; }
/* A soft, blurred copy of the image fills the space around one of another shape. */
.csa-ev-img.is-whole::before {
	content: "";
	position: absolute;
	inset: -24px;
	z-index: -1;
	background: var(--csa-ev-back) center / cover no-repeat;
	filter: blur(24px) saturate(1.1);
	opacity: .55;
}
.csa-ev-img.is-empty {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 8%;
	background: linear-gradient(135deg, var(--csa-ev-base), var(--csa-ev));
	color: var(--csa-ev-on);
}
.csa-ev-img__mark { width: 34%; height: auto; opacity: .3; transform: rotate(-8deg); }
.csa-ev-img--page { margin-bottom: 1.5rem; }
.csa-ev-dates { margin-top: 2rem; }

/* ---------- Event cards and rows ---------- */
.csa-ev-list { list-style: none; margin: 0; padding: 0; }
.csa-ev-item { position: relative; }
.csa-ev-title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.csa-ev-title a { color: inherit; text-decoration: none; }
.csa-ev-title a:hover, .csa-ev-title a:focus-visible { text-decoration: underline; }
/* The whole card or row is the link's target. */
.csa-ev-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.csa-ev-title a:focus-visible { outline: none; }
.csa-ev-item:has(.csa-ev-title a:focus-visible) { outline: 3px solid var(--csa-ev-ink); outline-offset: 2px; }
/* The host, then what's free. */
.csa-ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.csa-ev-host {
	display: inline-block;
	margin: 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--csa-ev-tint);
	color: var(--csa-ev-ink);
	font-size: .8rem;
	font-weight: 700;
}
.csa-ev-icon { flex: none; width: 1.1em; height: 1.1em; }
.csa-ev-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px .45em; margin: 4px 0 0; font-weight: 600; }
.csa-ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 6px 0 0; color: var(--csa-ev-muted); font-size: .95rem; }
.csa-ev-meta .csa-ev-time { color: #2b2b2b; font-weight: 600; }
.csa-ev-meta > span { display: inline-flex; align-items: flex-start; gap: .4em; }
/* Level with the first line when the text wraps. */
.csa-ev-meta .csa-ev-icon { margin-top: .2em; }
.csa-ev-item .csa-ev-icon { color: var(--csa-ev-ink); }
.csa-ev-note {
	display: inline-block;
	padding: 0 .5em;
	border-radius: 4px;
	background: #fff4d6;
	color: #6b4d00;
	font-size: .85em;
	font-weight: 600;
}
.csa-ev-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 3.25rem;
	padding: 6px 8px;
	border-radius: 8px;
	background: var(--csa-ev);
	color: var(--csa-ev-on);
	line-height: 1;
	text-align: center;
}
.csa-ev-badge__w, .csa-ev-badge__m { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.csa-ev-badge__d { font-size: 1.4rem; font-weight: 900; margin: 2px 0; }
.csa-ev-empty { color: var(--csa-ev-muted); }
.csa-ev-more { margin: 1rem 0 0; font-weight: 600; }

/* Cards */
.csa-events--cards .csa-ev-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 20px;
}
/* One or two cards don't stretch across a wide row. */
.csa-events--cards .csa-ev-list > .csa-ev-item { max-width: 440px; }
.csa-events--cards .csa-ev-item {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--csa-ev-line);
	border-radius: var(--csa-ev-radius);
	background: #fff;
	overflow: hidden;
	transition: box-shadow .15s, transform .15s;
}
.csa-events--cards .csa-ev-item:hover { box-shadow: 0 6px 20px rgb(0 0 0 / 8%); transform: translateY(-2px); }
.csa-events--cards .csa-ev-img { border-radius: 0; }
.csa-events--cards .csa-ev-badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 6px rgb(0 0 0 / 20%); }
.csa-events--cards .csa-ev-item__body { padding: 14px 16px 16px; flex: 1; }
.csa-events--cards .csa-ev-item:not(:has(.csa-ev-img)) .csa-ev-badge { position: static; margin: 14px 16px 0; align-self: flex-start; }

/* Rows: each its own card, image (when there is one), date, then the text. */
.csa-events--list { container: csa-ev-rows / inline-size; }
.csa-events--list .csa-ev-list, .csa-ev-list.csa-events--list { display: flex; flex-direction: column; gap: 12px; }
.csa-events--list .csa-ev-item {
	display: grid;
	grid-template-columns: [img] auto [date] auto [body] minmax(0, 1fr);
	border: 1px solid var(--csa-ev-line);
	border-radius: var(--csa-ev-radius);
	background: #fff;
	overflow: hidden;
	transition: box-shadow .15s;
}
.csa-events--list .csa-ev-item:hover { box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
.csa-events--list .csa-ev-img.is-empty { display: none; }
.csa-events--list .csa-ev-item__img { grid-column: img; width: 280px; min-height: 140px; aspect-ratio: auto; border-radius: 0; }
/* The row's text sets its height; a tall or square image fits inside, whole. */
.csa-events--list .csa-ev-item__img .csa-ev-img__img { position: absolute; inset: 0; }
.csa-events--list .csa-ev-badge {
	grid-column: date;
	width: 5.25rem;
	padding: 12px 0;
	border-radius: 0;
}
.csa-events--list .csa-ev-badge__w, .csa-events--list .csa-ev-badge__m { font-size: .8rem; }
.csa-events--list .csa-ev-badge__d { font-size: 2rem; }
.csa-events--list .csa-ev-item__body { grid-column: body; align-self: center; padding: 14px 20px; }
.csa-events--list .csa-ev-title { font-size: 1.2rem; }
/*
 * Where the list is narrower than an image plus room for the text (phones,
 * tablets, a narrow column), rows are just the date and the text. Cards
 * show the images.
 */
@container csa-ev-rows (max-width: 719px) {
	.csa-events--list .csa-ev-item { grid-template-columns: [date] auto [body] minmax(0, 1fr); }
	.csa-events--list .csa-ev-item__img { display: none; }
	.csa-events--list .csa-ev-badge { width: 4.5rem; }
	.csa-events--list .csa-ev-badge__d { font-size: 1.7rem; }
	.csa-events--list .csa-ev-item__body { padding: 12px 16px; }
	.csa-events--list .csa-ev-title { font-size: 1.1rem; }
}

/* ---------- Events calendar ---------- */
.csa-evcal__tools {
	display: grid;
	/* Not as wide as the host buttons' one scrolling line on phones. */
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 0 0 28px;
	padding: 14px;
	border: 1px solid var(--csa-ev-line);
	border-radius: var(--csa-ev-radius);
	background: #fff;
}
.csa-evcal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.csa-evcal__views { display: inline-flex; flex: none; border: 1px solid #1e1e1e; border-radius: 999px; overflow: hidden; }
.csa-evcal__view {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	color: #1e1e1e;
	font-weight: 600;
	text-decoration: none;
}
.csa-evcal__view[aria-current] { background: #1e1e1e; color: #fff; }
.csa-evcal__view:focus-visible { outline: 3px solid var(--csa-ev-ink); outline-offset: -3px; }

.csa-evcal__row { display: flex; align-items: flex-start; gap: 12px; }
.csa-evcal__filters { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; }
.csa-evcal__layout { display: inline-flex; flex: none; gap: 2px; margin-left: auto; padding: 3px; border-radius: 10px; background: #f0f0f0; }
.csa-evcal__layout-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 32px; border-radius: 8px; color: #5c5c5c; }
.csa-evcal__layout-btn:hover { color: #1e1e1e; }
.csa-evcal__layout-btn[aria-current] { background: #fff; color: #1e1e1e; box-shadow: 0 1px 3px rgb(0 0 0 / 15%); }
.csa-evcal__layout-btn .csa-ev-icon { width: 20px; height: 20px; }
/* Type menu */
.csa-evcal__type { display: flex; flex: none; gap: 6px; margin: 0; }
.csa-evcal__type select {
	box-sizing: border-box;
	max-width: 280px;
	height: 42px;
	padding: 0 38px 0 16px;
	border: 1px solid #c4c4c4;
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23404040' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 15px center / 12px;
	color: inherit;
	font: inherit;
	font-weight: 600;
	appearance: none;
	cursor: pointer;
}
.csa-evcal__type select:focus { border-color: #1e1e1e; outline: 2px solid #1e1e1e; outline-offset: 1px; }
.csa-evcal__chip {
	display: inline-flex;
	/* Baseline, so the asterisk (an empty box, whose baseline is its bottom) sits on the text's. */
	align-items: baseline;
	gap: 6px;
	padding: 5px 14px;
	border: 1px solid var(--csa-ev-line);
	border-radius: 999px;
	background: #fff;
	color: #1e1e1e;
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
}
.csa-evcal__chip:hover { border-color: #8c8c8c; }
.csa-evcal__chip[aria-current] { background: var(--csa-ev, #1e1e1e); border-color: var(--csa-ev, #1e1e1e); color: var(--csa-ev-on, #fff); }
.csa-evcal__chip[data-csa-host=""][aria-current] { background: #1e1e1e; border-color: #1e1e1e; color: #fff; }
/* Each host's colour as a small CSA asterisk (the shape is a mask, so it takes any colour). */
.csa-evcal__dot {
	--csa-asterisk: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 91.45 86.89%22%3E%3Cpath fill=%22%23000%22 d=%22M90.35,43.69l-16.6,3.39c-3.39.68-8.3,1.02-14.9,1.35,4.4,3.56,7.96,6.6,10.67,9.48l11.18,12.19c.68.68.51,1.86-.17,2.54l-18.46,13.89c-.85.68-2.03.34-2.54-.51l-7.96-14.39c-1.35-2.37-3.39-6.77-6.27-13.55-3.05,7.28-5.25,11.85-6.27,13.55l-8.13,14.39c-.51.85-1.69,1.19-2.37.51l-18.97-13.89c-.85-.51-.85-1.86-.17-2.54l12.02-12.19c3.73-3.73,7.45-6.94,11.01-9.48-3.73-.34-8.47-1.02-14.39-2.2l-16.6-2.71c-1.02-.17-1.69-1.19-1.35-2.2l7.45-21.68c.34-.85,1.35-1.35,2.2-1.02l14.9,6.77c1.69.85,6.1,3.22,13.04,7.45-1.52-6.6-2.54-11.68-2.88-14.9l-2.2-16.09c0-1.02.68-1.86,1.69-1.86h22.52c1.02,0,1.86.85,1.69,1.86l-1.86,16.09c-.51,4.4-1.52,9.31-3.05,14.9,3.05-1.52,5.08-2.54,5.93-3.05,3.39-1.86,5.93-3.22,7.62-3.89l14.9-7.11c.85-.51,2.03,0,2.2,1.02l7.11,21.68c.34,1.02-.34,1.86-1.19,2.2%22/%3E%3C/svg%3E");
	flex: none;
	/* As tall as a capital letter, from the baseline up. */
	width: .79em;
	height: .75em;
	background: var(--csa-ev-base);
	-webkit-mask: var(--csa-asterisk) center / contain no-repeat;
	mask: var(--csa-asterisk) center / contain no-repeat;
}
.csa-evcal__chip[aria-current] .csa-evcal__dot { background: currentColor; }

.csa-evcal__subscribe { position: relative; flex: none; margin-left: auto; }
.csa-evcal__subscribe summary {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: 42px;
	cursor: pointer;
	list-style: none;
	padding: 0 16px;
	border: 1px solid var(--csa-ev-line);
	border-radius: 999px;
	font-weight: 600;
}
.csa-evcal__subscribe summary::-webkit-details-marker { display: none; }
.csa-evcal__subscribe summary { gap: 8px; }
.csa-evcal__subscribe summary::after { content: "▾"; font-size: .8em; }
.csa-evcal__subscribe-panel {
	position: absolute;
	right: 0;
	z-index: 20;
	width: min(320px, 90vw);
	margin-top: 8px;
	padding: 14px 16px;
	border: 1px solid var(--csa-ev-line);
	border-radius: var(--csa-ev-radius);
	background: #fff;
	box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}
.csa-evcal__subscribe-help { margin: 0 0 8px; color: var(--csa-ev-muted); font-size: .88rem; }
.csa-evcal__feed + .csa-evcal__feed:not([hidden]) { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--csa-ev-line); }
.csa-evcal__feed-name { margin: 0 0 4px; font-weight: 700; }
.csa-evcal__feed ul { list-style: none; margin: 0; padding: 0; }
.csa-evcal__feed li { margin: 2px 0; }
.csa-evcal__copy { padding: 0; border: 0; background: none; color: var(--wp--preset--color--link, #0670a1); font: inherit; text-decoration: underline; cursor: pointer; }

.csa-evcal__month-group + .csa-evcal__month-group { margin-top: 28px; }
.csa-evcal__month-name { margin: 0 0 8px; font-size: 1.35rem; }
.csa-evcal__past { margin-top: 28px; font-weight: 600; }
.csa-evcal__back { margin: 0 0 12px; font-weight: 600; }
.csa-evcal__pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-weight: 600; }
.csa-evcal__older { margin-left: auto; }
.csa-evcal__list[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
.csa-evcal__past-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 14px; }
.csa-evcal__past-title { margin: 0; font-size: 1.6rem; }
.csa-evcal__past-head .csa-evcal__back { margin: 0; }

/* Month */
.csa-evcal__month-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.csa-evcal__month-title { margin: 0 8px; font-size: 1.35rem; min-width: 10ch; }
.csa-evcal__nav, .csa-evcal__today {
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--csa-ev-line);
	border-radius: 999px;
	background: #fff;
	color: #1e1e1e;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.csa-evcal__nav { font-size: 1.3rem; line-height: 1; padding: 0; }
.csa-evcal__today { margin-left: auto; }
.csa-evcal__grid-wrap { overflow-x: auto; }
.csa-evcal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.csa-evcal__grid th { padding: 6px 4px; color: var(--csa-ev-muted); font-size: .8rem; font-weight: 700; text-align: left; text-transform: uppercase; }
.csa-evcal__day { height: 112px; padding: 4px; border: 1px solid var(--csa-ev-line); vertical-align: top; background: #fff; }
.csa-evcal__day.is-other { background: #fafafa; }
.csa-evcal__day.is-other .csa-evcal__date { color: #9a9a9a; }
.csa-evcal__day.is-selected { box-shadow: inset 0 0 0 2px #1e1e1e; }
.csa-evcal__date {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	padding: 2px 4px;
	border: 0;
	background: none;
	color: #1e1e1e;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.csa-evcal__day.is-today .csa-evcal__date > span:first-child {
	display: inline-grid;
	place-items: center;
	min-width: 1.7em;
	height: 1.7em;
	border-radius: 50%;
	background: #1e1e1e;
	color: #fff;
}
.csa-evcal__dots { display: none; gap: 3px; }
.csa-evcal__dots span { width: 7px; height: 7px; border-radius: 50%; }
.csa-evcal__chips { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.csa-evcal__chips li { min-width: 0; }
.csa-evcal__chip-ev {
	display: block;
	padding: 2px 6px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--csa-ev-tint);
	color: var(--csa-ev-ink);
	font-size: .78rem;
	line-height: 1.35;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.csa-evcal__chip-ev:hover { background: var(--csa-ev); color: var(--csa-ev-on); }
.csa-evcal__time { font-weight: 700; }
.csa-evcal__free { display: inline-flex; margin-right: 3px; vertical-align: -1px; }
.csa-evcal__free .csa-ev-icon { display: inline; width: 12px; height: 12px; }
/* Free food and free stuff: the same warm label whoever hosts. */
.csa-ev-free {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 10px 2px 8px;
	border-radius: 999px;
	background: #fff1c7;
	color: #6a4300;
	font-size: .8rem;
	font-weight: 700;
}
.csa-ev-item .csa-ev-free .csa-ev-icon { width: 14px; height: 14px; color: inherit; }
.csa-evcal__day.is-past .csa-evcal__chip-ev { opacity: .65; }
.csa-evcal__more { margin-top: 2px; padding: 0 6px; border: 0; background: none; color: var(--csa-ev-muted); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.csa-evcal__panel { margin-top: 20px; }
.csa-evcal__panel-title { margin: 0 0 6px; font-size: 1.1rem; }
.csa-evcal__loading { color: var(--csa-ev-muted); }

@media (max-width: 700px) {
	.csa-evcal__day { height: auto; padding: 2px; }
	.csa-evcal__date { flex-direction: column; align-items: center; padding: 6px 0; }
	.csa-evcal__dots { display: flex; min-height: 7px; }
	.csa-evcal__chips, .csa-evcal__more { display: none; }
	.csa-evcal__grid th { text-align: center; font-size: .72rem; }
	.csa-evcal__bar { align-items: stretch; }
	.csa-evcal__subscribe-panel { right: auto; left: 0; }
}

/* Search */
.csa-evcal__search { position: relative; flex: 1 1 320px; }
.csa-evcal__search[hidden] { display: none; }
.csa-evcal__search .csa-ev-icon { position: absolute; top: 50%; left: 14px; color: var(--csa-ev-muted); transform: translateY(-50%); pointer-events: none; }
.csa-evcal__search input {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	padding: 0 16px 0 40px;
	border: 1px solid #c4c4c4;
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
}
.csa-evcal__search input:focus { border-color: #1e1e1e; outline: 2px solid #1e1e1e; outline-offset: 1px; }
@media (max-width: 700px) {
	.csa-evcal__search { flex-basis: 100%; }
	/* Views fill the row; Subscribe becomes its icon. */
	.csa-evcal__views { flex: 1 1 auto; }
	.csa-evcal__view { flex: 1; justify-content: center; padding: 0 12px; }
	.csa-evcal__subscribe summary { width: 42px; padding: 0; justify-content: center; }
	.csa-evcal__subscribe summary::after { content: none; }
	.csa-evcal__subscribe-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	/* The host buttons in one line that scrolls sideways. */
	.csa-evcal__filters { flex-wrap: nowrap; margin-left: -14px; padding: 0 0 2px 14px; overflow-x: auto; scrollbar-width: none; }
	/* Search, then views and Subscribe, then the type menu. */
	.csa-evcal__type { order: 3; flex: 1 1 100%; min-width: 0; }
	.csa-evcal__type select { width: 100%; min-width: 0; max-width: none; }
	.csa-evcal__chip { flex: none; }
}

/* ---------- Event panel (the events page) ---------- */
.csa-ev-panel:modal {
	inset: 0 0 0 auto;
	box-sizing: border-box;
	width: min(620px, 100vw);
	max-width: 100vw;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: inherit;
	box-shadow: -12px 0 40px rgb(0 0 0 / 18%);
	overflow: hidden;
}
.csa-ev-panel[open] { display: flex; flex-direction: column; animation: csa-ev-panel-in .22s ease-out; }
.csa-ev-panel::backdrop { background: rgb(0 0 0 / 40%); }
@keyframes csa-ev-panel-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .csa-ev-panel[open] { animation: none; } }
html:has(.csa-ev-panel[open]) { overflow: hidden; }
.csa-ev-panel__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px 10px 22px;
	border-bottom: 1px solid #e2e2e2;
}
.csa-ev-panel__full { font-weight: 600; }
.csa-ev-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f0f0f0;
	color: #1e1e1e;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}
.csa-ev-panel__close:hover { background: #e2e2e2; }
.csa-ev-panel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 40px; }
.csa-ev-panel__title { margin: 18px 0 12px; font-size: 1.75rem; line-height: 1.2; }
.csa-ev-panel__text > * + * { margin-top: 1em; }
.csa-ev-panel__text img { max-width: 100%; height: auto; }

/* ---------- Event page ---------- */
.csa-ev-crumb a { font-weight: 600; text-decoration: none; }
.csa-ev-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 1rem; padding: 0; }
.csa-ev-tag {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--csa-ev-tint);
	color: var(--csa-ev-ink);
	font-size: .85rem;
	font-weight: 700;
	text-decoration: none;
}
a.csa-ev-tag:hover { background: var(--csa-ev); color: var(--csa-ev-on); }
.csa-ev-tag.is-plain { background: #f0f0f0; color: #404040; }
.csa-ev-ended { padding: 10px 14px; border-radius: 8px; background: #f0f0f0; font-weight: 600; }
/* dl.csa-ev-facts outranks the theme's .wp-site-blocks dl (a flex column). */
.csa-ev-details dl.csa-ev-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 18px 28px;
	margin: 0 0 1.25rem;
	padding: 20px 22px;
	border: 1px solid var(--csa-ev-line);
	border-radius: var(--csa-ev-radius);
	background: #fff;
}
.csa-ev-fact { position: relative; padding-left: 40px; }
.csa-ev-fact dt { color: var(--csa-ev-muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.csa-ev-fact dt .csa-ev-icon {
	position: absolute;
	top: 2px;
	left: 0;
	box-sizing: content-box;
	width: 18px;
	height: 18px;
	padding: 6px;
	border-radius: 50%;
	background: var(--csa-ev-tint);
	color: var(--csa-ev-ink);
}
.csa-ev-fact dd { margin: 2px 0 0; }
.csa-ev-repeat { color: var(--csa-ev-muted); }
.csa-ev-fact .csa-ev-repeat { color: inherit; }
.csa-ev-directions { font-weight: 600; white-space: nowrap; }
.csa-ev-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 0 0 1.5rem; }
.csa-ev-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 26px;
	border-radius: 999px;
	background: var(--csa-ev);
	color: var(--csa-ev-on);
	font-weight: 700;
	text-decoration: none;
}
.csa-ev-button:hover, .csa-ev-button:focus-visible { background: #1e1e1e; color: #fff; }
.csa-ev-add { position: relative; }
.csa-ev-add summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	list-style: none;
	padding: 11px 22px;
	border: 1px solid #1e1e1e;
	border-radius: 999px;
	font-weight: 700;
}
.csa-ev-add summary::-webkit-details-marker { display: none; }
.csa-ev-add ul {
	position: absolute;
	z-index: 20;
	min-width: 220px;
	margin: 8px 0 0;
	padding: 8px 0;
	list-style: none;
	border: 1px solid var(--csa-ev-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}
.csa-ev-add li a { display: block; padding: 6px 16px; }
.csa-ev-dates { margin: 0 0 1.5rem; }
.csa-ev-dates__title { margin: 0 0 6px; font-size: 1.15rem; }
.csa-ev-dates__list { margin: 0; padding-left: 1.2em; }
.csa-ev-dates__list li { margin: 3px 0; }
.csa-ev-dates__more summary { cursor: pointer; margin-top: 4px; font-weight: 600; }



/* Day by day (Upcoming events): This week at the Bullring. */
.csa-events--agenda { display: grid; gap: 18px; container-type: inline-size; }
.csa-ev-day__name { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; }
.csa-ev-day__date { color: var(--csa-ev-muted, #5c5c5c); font-size: .9rem; font-weight: 600; }
.csa-ev-day__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--csa-ev-line, #e0e0e0); }
.csa-ev-line {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr);
	gap: 4px 16px;
	padding: 10px 0 10px 12px;
	border-bottom: 1px solid var(--csa-ev-line, #e0e0e0);
	box-shadow: inset 3px 0 0 var(--csa-ev-tint);
}
.csa-ev-line__time { color: var(--csa-ev-ink); font-weight: 700; white-space: nowrap; }
.csa-ev-line__what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.csa-ev-line__title { color: inherit; font-weight: 600; text-decoration: none; }
.csa-ev-line__title:hover, .csa-ev-line__title:focus-visible { text-decoration: underline; }
.csa-ev-line__where { flex-basis: 100%; color: var(--csa-ev-muted, #5c5c5c); font-size: .9rem; }
@container (max-width: 360px) {
	.csa-ev-line { grid-template-columns: 1fr; }
}
