body {
	--uw-event-highlight-color: var(--wp--custom--color--primary, #c5050c);
}

/* Base archive spacing */
.uw-event-archive article:first-of-type {
	margin-block-start: 0;
}

/* Event list to match UW Events list style */
.uw-events__list {
	list-style: none;
	padding-inline-start: 0;
}
.uw-events__list .uw-events__list--guest-speaker {
	font-size: var(--wp--custom--font-size--18, 1.125rem);
	margin-bottom: 0;
	margin-top: 0;
}
.uw-events__list .uw-events__list-item {
	display: flex;
	margin-bottom: var(--wp--custom--spacing--32, 2rem);
}
.uw-events__list .uw-events__list--title {
	font-family: var(--wp--custom--font--heading, 'Red Hat Display');
	font-size: var(--wp--custom--font-size--20, 1.25rem);
	font-weight: var(--wp--custom--font-weight--bold, 700);
	line-height: var(--wp--custom--line-height--medium, 1.3);
	text-decoration: none;
}
.uw-events__list .uw-events__list--inner-content {
	margin: 0;
}
.uw-events__list .uw-events__list--inner-content span {
	display: block;
}
.uw-events__list .uw-events__list-details {
	display: flex;
	flex-direction: column;
	font-size: var(--wp--custom--font-size--16, 1rem);
}

@media (min-width: 50rem) {
	.uw-events__list .uw-events__list--date {
		display: flex;
		flex-direction: column;
		min-width: 3rem;
		padding-right: var(--wp--custom--spacing--16, 1rem);
		text-align: center;
	}
}
.uw-events__list .uw-events__list--date-month {
	font-size: var(--wp--custom--font-size--16, 1rem);
	line-height: 1.3;
}
.uw-events__list .uw-events__list--date-day,
.uw-events__list .uw-events__list--date-month {
	color: var(--uw-event-highlight-color, #c5050c);
	font-weight: var(--wp--custom--font-weight--bold, 700);
	margin: 0;
	padding: 0;
}
.uw-events__list .uw-events__list--date-day {
	font-size: 1.625rem;
	line-height: 1.1;
	line-height: var(--wp--custom--line-height--none, 1);
	text-wrap: nowrap;
}
.uw-events__list .uw-events__list--event-excerpt {
	margin-bottom: 0;
}

.uw-events__list-item {
	flex-direction: column; /* Stack on mobile */
}
.uw-event-holder-image-desktop {
	display: none;
}
.uw-event-holder-image {
	margin-block-start: var(--wp--custom--spacing--16, 1rem);
}
.uw-event-holder-image img {
	width: 100%;
	height: auto;
}
.uw-events__list--date {
	display: none;
}

@media (min-width: 50rem) {
	.uw-event-holder-image-desktop {
		display: block;
	}
	.uw-event-holder-image-mobile {
		display: none;
	}
	.uw-events__list-item {
		flex-direction: row;
	}
	.uw-events__list-details {
		flex-grow: 1;
	}
	.uw-event-holder-image {
		flex-shrink: 0;
		padding-left: 3rem;
		margin-block-start: 0;
		width: 20rem;
	}
	.uw-event-holder-image img {
		width: 100%;
	}
}

@media (min-width: 64rem) {
	.uw-event-holder-image {
		width: 30rem;
	}
}

/* Navigation for top and bottom of page */

.uw-events-list-navigation {
	gap: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

@media (min-width: 40rem) {
	.uw-events-list-navigation {
		gap: 2rem;
	}
}
.uw-events-list-navigation--top {
	border-bottom: 1px solid var(--wp--custom--color--border, #cfcfcf);
	margin-block-end: var(--wp--custom--spacing--32, 2rem);
	padding-block-end: var(--wp--custom--spacing--32, 2rem);
}
.uw-events-list-navigation--bottom {
	border-top: 1px solid var(--wp--custom--color--border, #cfcfcf);
	margin-block-start: var(--wp--custom--spacing--32, 2rem);
	padding-block-start: var(--wp--custom--spacing--32, 2rem);
}
.uw-event-link-arrow a {
	font-size: var(--wp--custom--font-size--16, 1rem);
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: var(--wp--custom--line-height--medium, 1.3);
	text-decoration: none !important;
}
.uw-event-link-arrow .uw-link-text > span {
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 2px;
	transition: background-size 0.25s ease;
}
.uw-plain-arrow-after {
	display: inline;
	white-space: nowrap;
}
.uw-plain-arrow-after svg {
	margin-left: 0.25rem;
	width: 0.7rem;
}
.uw-plain-arrow-after.inline svg {
	margin-left: 5px;
	vertical-align: -1px;
}
.uw-plain-arrow-after path {
	fill: var(--uw-link-text-no-arrow-color, var(--wp--custom--color--secondary, #036796));
}

.uw-event-link-arrow a:hover path {
	fill: var(--uw-link-text-with-arrow-color, var(--wp--custom--color--secondary-dark, #023d54));
}
.uw-event-link-arrow.event-left-arrow {
	svg {
		transform: rotate(180deg);
	}
}

.uw-event-links-right {
	display: flex;
	gap: 1rem;
}
@media (min-width: 40rem) {
	.uw-event-links-right {
		gap: 2rem;
		margin-left: auto; /* align to the right above  size */
	}
}

.uw-event-links-right a {
	font-size: var(--wp--custom--font-size--16, 1rem);
	font-weight: var(--wp--custom--font-weight--regular, 400);
	line-height: var(--wp--custom--line-height--medium, 1.3);
	display: inline-block;
}
