/* VC Events – front end. Restyle with the custom properties below, e.g. in the theme:
   .vc-ev, .vc-ev-single { --vc-accent: #b3261e; } */
.vc-ev,
.vc-ev-single {
	--vc-accent: #1d4e89;
	--vc-accent-ink: #fff;
	--vc-ink: #1d2327;
	--vc-muted: #5b6770;
	--vc-line: #d8dde2;
	--vc-soft: #f4f6f8;
	--vc-warn: #8a3b00;
	--vc-warn-bg: #fff4e5;
	--vc-radius: 8px;
	--vc-gap: 1rem;
	color: var(--vc-ink);
}

.vc-ev-sr {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.vc-ev a:focus-visible,
.vc-ev-single a:focus-visible {
	outline: 3px solid var(--vc-accent);
	outline-offset: 2px;
}

/* Lists */
.vc-ev-list {
	list-style: none;
	margin: 0 0 var(--vc-gap);
	padding: 0;
}

.vc-ev-list--list .vc-ev-item {
	align-items: flex-start;
	border-bottom: 1px solid var(--vc-line);
	display: flex;
	gap: var(--vc-gap);
	padding: var(--vc-gap) 0;
}

.vc-ev-badge {
	background: var(--vc-accent);
	border-radius: var(--vc-radius);
	color: var(--vc-accent-ink);
	display: flex;
	flex: 0 0 4.5rem;
	flex-direction: column;
	line-height: 1.1;
	padding: 0.5rem 0.25rem;
	text-align: center;
	width: 4.5rem;
}

.vc-ev-badge__day {
	font-size: 1.75rem;
	font-weight: 700;
}

.vc-ev-badge__month {
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vc-ev-badge__year {
	font-size: 0.8rem;
	opacity: 0.85;
}

.vc-ev-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.vc-ev-item__title,
.vc-ev-card__title {
	font-size: 1.15rem;
	line-height: 1.3;
	margin: 0 0 0.25rem;
}

.vc-ev-item__title a,
.vc-ev-card__title a {
	color: inherit;
	text-decoration: none;
}

.vc-ev-item__title a:hover,
.vc-ev-card__title a:hover {
	color: var(--vc-accent);
	text-decoration: underline;
}

.vc-ev-item__when {
	color: var(--vc-muted);
	margin: 0 0 0.25rem;
}

.vc-ev-meta {
	color: var(--vc-muted);
	list-style: none;
	margin: 0;
	padding: 0;
}

.vc-ev-item__excerpt {
	margin: 0.5rem 0 0;
}

.vc-ev-flag {
	background: var(--vc-warn-bg);
	border: 1px solid var(--vc-warn);
	border-radius: 999px;
	color: var(--vc-warn);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.1rem 0.6rem;
	vertical-align: middle;
}

.vc-ev-status-cancelled .vc-ev-item__title a,
.vc-ev-status-cancelled .vc-ev-card__title a {
	text-decoration: line-through;
}

.vc-ev-year {
	border-bottom: 2px solid var(--vc-accent);
	font-size: 1.4rem;
	margin: 1.5rem 0 0;
	padding-bottom: 0.25rem;
}

.vc-ev-empty {
	background: var(--vc-soft);
	border-radius: var(--vc-radius);
	padding: var(--vc-gap);
}

/* Cards */
.vc-ev-list--cards {
	display: grid;
	gap: var(--vc-gap);
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.vc-ev-list--cards .vc-ev-item,
.vc-ev-card {
	background: #fff;
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.vc-ev-list--cards .vc-ev-item__body,
.vc-ev-card__body {
	padding: var(--vc-gap);
}

.vc-ev-item__image img,
.vc-ev-card__image img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

/* Next event */
.vc-ev-next__heading {
	margin: 0 0 0.5rem;
}

.vc-ev-card {
	border-left: 6px solid var(--vc-accent);
}

.vc-ev-button {
	background: var(--vc-accent);
	border: 2px solid var(--vc-accent);
	border-radius: var(--vc-radius);
	color: var(--vc-accent-ink);
	display: inline-block;
	font-weight: 600;
	min-height: 44px;
	padding: 0.65rem 1.1rem;
	text-decoration: none;
}

.vc-ev-button:hover {
	filter: brightness(1.1);
}

.vc-ev-button--secondary {
	background: transparent;
	color: var(--vc-accent);
}

.vc-ev-card__more {
	margin: 0.75rem 0 0;
}

/* Pagination */
.vc-ev-pager ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: var(--vc-gap) 0;
	padding: 0;
}

.vc-ev-pager a,
.vc-ev-pager span {
	border: 1px solid var(--vc-line);
	border-radius: var(--vc-radius);
	display: inline-block;
	min-height: 44px;
	min-width: 44px;
	padding: 0.6rem 0.8rem;
	text-align: center;
	text-decoration: none;
}

.vc-ev-pager .current {
	background: var(--vc-accent);
	border-color: var(--vc-accent);
	color: var(--vc-accent-ink);
}

/* Archive */
.vc-ev-archive__header {
	margin-bottom: var(--vc-gap);
}

.vc-ev-tabs ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vc-ev-tabs a {
	border: 2px solid var(--vc-accent);
	border-radius: 999px;
	color: var(--vc-accent);
	display: inline-block;
	min-height: 44px;
	padding: 0.6rem 1.1rem;
	text-decoration: none;
}

.vc-ev-tabs a[aria-current='page'] {
	background: var(--vc-accent);
	color: var(--vc-accent-ink);
}

.vc-ev-subscribe {
	color: var(--vc-muted);
	margin-top: 1.5rem;
}

/* Single event */
.vc-ev-single {
	margin: 0 auto;
	max-width: 52rem;
}

.vc-ev-single__title {
	margin: 0 0 var(--vc-gap);
}

.vc-ev-single__image img {
	border-radius: var(--vc-radius);
	height: auto;
	max-width: 100%;
}

.vc-ev-banner {
	background: var(--vc-warn-bg);
	border-left: 6px solid var(--vc-warn);
	border-radius: var(--vc-radius);
	color: var(--vc-warn);
	margin-bottom: var(--vc-gap);
	padding: 0.9rem 1rem;
}

.vc-ev-banner--cancelled {
	background: #fdecea;
	border-left-color: #b3261e;
	color: #7a1712;
}

.vc-ev-details {
	background: var(--vc-soft);
	border-radius: var(--vc-radius);
	margin: 0 0 1.5rem;
	padding: 0.5rem 1rem;
}

.vc-ev-details__row {
	display: grid;
	gap: 0.25rem 1rem;
	grid-template-columns: 8rem 1fr;
	padding: 0.6rem 0;
}

.vc-ev-details__row + .vc-ev-details__row {
	border-top: 1px solid var(--vc-line);
}

.vc-ev-details dt {
	color: var(--vc-muted);
	font-weight: 600;
}

.vc-ev-details dd {
	margin: 0;
}

.vc-ev-addcal__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vc-ev-speaker {
	display: flex;
	gap: var(--vc-gap);
	margin-bottom: var(--vc-gap);
}

.vc-ev-speaker__photo img {
	border-radius: 50%;
	height: 6rem;
	object-fit: cover;
	width: 6rem;
}

.vc-ev-speaker__text h3 {
	margin-top: 0;
}

/* Month calendar */
.vc-ev-cal__nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.vc-ev-cal__title {
	margin: 0;
}

.vc-ev-cal__prev,
.vc-ev-cal__next {
	border: 2px solid var(--vc-accent);
	border-radius: var(--vc-radius);
	color: var(--vc-accent);
	display: inline-block;
	min-height: 44px;
	padding: 0.55rem 0.9rem;
	text-decoration: none;
}

.vc-ev-cal__grid {
	border-collapse: collapse;
	table-layout: fixed;
	width: 100%;
}

.vc-ev-cal__grid th {
	background: var(--vc-soft);
	border: 1px solid var(--vc-line);
	padding: 0.4rem;
}

.vc-ev-cal__day {
	border: 1px solid var(--vc-line);
	height: 6rem;
	padding: 0.25rem;
	vertical-align: top;
}

.vc-ev-cal__day--empty {
	background: var(--vc-soft);
}

.vc-ev-cal__day--today {
	box-shadow: inset 0 0 0 3px var(--vc-accent);
}

.vc-ev-cal__num {
	color: var(--vc-muted);
	display: block;
	font-size: 0.85rem;
}

.vc-ev-cal__events {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vc-ev-cal__events a {
	background: var(--vc-accent);
	border-radius: 4px;
	color: var(--vc-accent-ink);
	display: block;
	font-size: 0.8rem;
	line-height: 1.25;
	margin-top: 2px;
	overflow-wrap: anywhere;
	padding: 0.2rem 0.3rem;
	text-decoration: none;
}

.vc-ev-cal__events .vc-ev-status-cancelled a {
	text-decoration: line-through;
}

.vc-ev-cal__time {
	font-weight: 700;
}

@media (max-width: 40rem) {
	.vc-ev-details__row {
		grid-template-columns: 1fr;
	}

	.vc-ev-list--list .vc-ev-item {
		gap: 0.75rem;
	}

	.vc-ev-badge {
		flex-basis: 3.75rem;
		width: 3.75rem;
	}

	/* The month grid becomes a list of the days that have events. */
	.vc-ev-cal__grid,
	.vc-ev-cal__grid tbody,
	.vc-ev-cal__grid tr,
	.vc-ev-cal__grid td {
		display: block;
		width: 100%;
	}

	.vc-ev-cal__grid thead,
	.vc-ev-cal__day:not(.vc-ev-cal__day--has) {
		display: none;
	}

	.vc-ev-cal__day {
		height: auto;
	}

	.vc-ev-cal__day::before {
		content: attr(data-label);
		font-weight: 700;
	}

	.vc-ev-cal__num {
		display: inline;
		margin-left: 0.4rem;
	}

	.vc-ev-cal__events a {
		font-size: 1rem;
		padding: 0.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vc-ev * {
		animation: none !important;
		transition: none !important;
	}
}
