/**
 * Events — feed + signup sidebar.
 */

.uw-events,
.uw-events *,
.uw-events *::before,
.uw-events *::after {
	box-sizing: border-box;
}

.uw-events,
.wp-block-unity-events {
	display: block;
	width: 100%;
	max-width: var(--uw-container, 1680px);
	margin-inline: auto;
	padding-block: 64px 100px;
}

.uw-events__inner {
	display: grid;
	grid-template-columns: minmax(0, 8.5fr) minmax(0, 3.5fr);
	gap: 40px;
	align-items: start;
}

.uw-events__main {
	min-width: 0;
}

.uw-events__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 28px;
	margin-bottom: 28px;
}

.uw-events__filters {
	display: flex;
	flex-wrap: wrap;
	flex: 1 1 auto;
	gap: 8px 28px;
	align-items: center;
	min-width: 0;
}

.uw-events__filter-select-wrap,
.uw-events__filters-trigger {
	display: none;
}

.uw-events__filters-drawer {
	display: none;
}

.uw-events__filters-drawer[hidden] {
	display: none !important;
}

.uw-events__filter {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0 0 6px;
	border: 0;
	background: transparent;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 22px;
	line-height: 30px;
	color: #a6a6a6;
	cursor: pointer;
	appearance: none;
	transition: color 160ms ease;
}

.uw-events__filter.is-active {
	font-weight: 600;
	color: var(--uw-accent-strong, #5a9a5c);
}

.uw-events__filter.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--uw-accent-strong, #5a9a5c);
}

.uw-events__filter-select-wrap {
	position: relative;
	width: 100%;
}

.uw-events__filter-select-wrap .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.uw-events__filter-select {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px 44px 10px 16px;
	border: 0;
	border-radius: 100px;
	background: #2a3738;
	color: #ffffff;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.uw-events__filter-select:focus {
	outline: 2px solid #5e7e82;
	outline-offset: 2px;
}

.uw-events__filter-select-chevron {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	color: #ffffff;
	pointer-events: none;
}

.uw-events__order {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-left: auto;
	min-width: 140px;
}

.uw-events__order-label {
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 600;
	font-size: 20px;
	line-height: 30px;
	color: #000000;
}

.uw-events__order-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 300;
	font-size: 20px;
	line-height: 18px;
	color: #000000;
	cursor: pointer;
	appearance: none;
}

.uw-events__order-chevron {
	display: inline-flex;
}

.uw-events__order-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	min-width: 160px;
	padding: 6px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(42, 55, 56, 0.12);
}

.uw-events__order-menu[hidden] {
	display: none;
}

.uw-events__order-menu button {
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	font-family: "Source Sans 3", sans-serif;
	font-size: 16px;
	color: #2a3738;
	cursor: pointer;
}

.uw-events__order-menu button:hover,
.uw-events__order-menu button:focus-visible {
	background: #f6f5f2;
}

.uw-events__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.uw-events.is-loading .uw-events__list {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 160ms ease;
}

.uw-events__signup-placeholder {
	margin: 0;
	font-family: "Source Sans 3", sans-serif;
	font-size: 16px;
	color: #707070;
}

.uw-events__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	min-height: 220px;
	margin: 0;
	padding: 40px 36px;
	background: #f6f5f2;
	border-radius: 10px;
}

.uw-events__empty-title {
	margin: 0;
	font-family: "Fraunces", var(--wp--preset--font-family--fraunces, Georgia, serif);
	font-style: normal;
	font-weight: 400;
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.15;
	color: #2a3738;
}

.uw-events__empty-text {
	margin: 0;
	max-width: 36rem;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.45;
	color: #2a3738;
}

.uw-events__main--empty .uw-events__list {
	margin-top: 0;
}

.uw-events__card {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) 1px minmax(0, 5.1fr) minmax(0, 3.6fr);
	align-items: stretch;
	column-gap: 15px;
	padding: 30px 40px;
	background: #f6f5f2;
	border-radius: 10px;
}

.uw-events__card-date {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding-top: 0;
}

.uw-events__card-month {
	margin: 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #000000;
}

.uw-events__card-day {
	margin: 6px 0 2px;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 600;
	font-size: 58px;
	line-height: 0.9;
	color: #000000;
}

.uw-events__card-year {
	margin: 0 0 14px;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 1;
	color: #000000;
}

.uw-events__card-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 100px;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
	color: #ffffff;
	white-space: nowrap;
}

.uw-events__card-badge.is-passed {
	background: #bdcaca;
}

.uw-events__card-badge.is-upcoming {
	background: #a8c8c0;
}

.uw-events__card-rule {
	width: 1px;
	margin: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.25);
	justify-self: stretch;
}

.uw-events__card-body {
	min-width: 0;
	padding-top: 2px;
}

.uw-events__card-category {
	margin: 0 0 10px;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 20px;
	color: var(--uw-accent-strong, #5a9a5c);
}

.uw-events__card-title {
	margin: 0 0 12px;
	font-family: "Fraunces", var(--wp--preset--font-family--fraunces, Georgia, serif);
	font-style: normal;
	font-weight: 400;
	font-size: 32px;
	line-height: 32px;
	color: #000000;
}

.uw-events__card-excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin: 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
	color: #a6a6a6;
}

.uw-events__card-aside {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	height: 100%;
	padding-top: 2px;
}

.uw-events__card-location,
.uw-events__card-time {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.uw-events__card-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	margin-top: 2px;
}

.uw-events__card-icon svg {
	display: block;
	width: 30px;
	height: 30px;
}

.uw-events__card-location-text {
	min-width: 0;
}

.uw-events__card-location-title {
	margin: 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
	color: #000000;
}

.uw-events__card-location-address {
	margin: 4px 0 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.3;
	color: #a6a6a6;
}

.uw-events__card-time-text {
	margin: 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.2;
	color: #000000;
}

.uw-events__card-time {
	align-items: center;
}

.uw-events__card-time .uw-events__card-icon {
	margin-top: 0;
}

.uw-events__card-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 28px;
	margin-top: auto;
	padding-top: 8px;
}

.uw-events__read-more,
.uw-events__materials {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0 0 4px;
	border: 0;
	background: transparent;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 600;
	font-size: 20px;
	line-height: 30px;
	color: #000000;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	transition: color 220ms ease;
}

.uw-events__read-more::after,
.uw-events__materials::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 80%;
	height: 3px;
	background: var(--uw-accent, #7bc47c);
	transform-origin: left center;
	transition:
		width 280ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 220ms ease;
}

.uw-events__read-more:hover,
.uw-events__read-more:focus-visible,
.uw-events__materials:hover,
.uw-events__materials:focus-visible {
	color: #2a3738;
}

.uw-events__read-more:hover::after,
.uw-events__read-more:focus-visible::after,
.uw-events__materials:hover::after,
.uw-events__materials:focus-visible::after {
	width: 100%;
	background-color: var(--uw-accent-strong, #5a9a5c);
}

.uw-events__read-more:focus-visible,
.uw-events__materials:focus-visible {
	outline: 2px solid #5e7e82;
	outline-offset: 4px;
}

.uw-events__more-wrap {
	display: flex;
	justify-content: flex-start;
	margin-top: 28px;
}

.uw-events__more-wrap[hidden] {
	display: none !important;
}

.uw-events__more.uw-btn,
.uw-events__more.uw-btn.uw-btn--arrow {
	width: 200px;
	min-width: 200px !important;
	max-width: 200px;
	padding-right: 70px !important;
}

.uw-events__sidebar {
	min-width: 0;
	position: sticky;
	top: 24px;
}

.uw-events__signup {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 45px;
	background: #2a3738;
	border-radius: 10px;
	color: #ffffff;
}

.uw-events__signup-triangle {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 0;
	width: min(72%, 280px);
	height: min(58%, 220px);
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(99, 140, 145, 0.4) 0%,
		rgba(42, 55, 56, 0.6) 50%
	);
	clip-path: polygon(0 0, 0 100%, 100% 100%);
	border-radius: 0 0 0 10px;
}

.uw-events__signup-stage {
	position: relative;
	z-index: 1;
	display: grid;
	width: 100%;
	isolation: isolate;
}

.uw-events__signup-panel,
.uw-events__thanks {
	grid-area: 1 / 1;
	width: 100%;
}

.uw-events__signup-panel {
	position: relative;
	z-index: 1;
	transform: translate3d(0, 0, 0);
	opacity: 1;
	transition:
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 420ms ease;
}

.uw-events__signup-inner {
	position: relative;
}

.uw-events__thanks {
	position: relative;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	pointer-events: none;
	transform: translate3d(18%, 0, 0);
	opacity: 0;
	visibility: hidden;
	transition:
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 420ms ease 80ms,
		visibility 0ms linear 700ms;
}

.uw-events__signup.is-thanks .uw-events__signup-panel {
	transform: translate3d(-18%, 0, 0);
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition:
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 360ms ease,
		visibility 0ms linear 620ms;
}

.uw-events__signup.is-thanks .uw-events__thanks {
	z-index: 2;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	opacity: 1;
	visibility: visible;
	transition:
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 420ms ease 60ms,
		visibility 0ms linear 0ms;
}

.uw-events__thanks-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding-block: 8px;
}

.uw-events__thanks-mark {
	display: inline-flex;
	margin-bottom: 1.1rem;
	color: #a8c8c0;
}

.uw-events__thanks-ring,
.uw-events__thanks-check {
	stroke-dasharray: 220;
	stroke-dashoffset: 220;
}

.uw-events__signup.is-thanks .uw-events__thanks-ring {
	animation: uw-events-thanks-draw 700ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

.uw-events__signup.is-thanks .uw-events__thanks-check {
	animation: uw-events-thanks-draw 520ms cubic-bezier(0.22, 1, 0.36, 1) 420ms forwards;
}

.uw-events__thanks-title {
	margin: 0 0 12px;
	font-family: "Fraunces", var(--wp--preset--font-family--fraunces, Georgia, serif);
	font-style: normal;
	font-weight: 400;
	font-size: 42px;
	line-height: 1.1;
	color: #ffffff;
	outline: none;
}

.uw-events__thanks-text {
	margin: 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 1.45;
	color: #ffffff;
}

.uw-events__signup.is-thanks .wpcf7-response-output {
	display: none !important;
}

@keyframes uw-events-thanks-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.uw-events__signup-panel,
	.uw-events__thanks,
	.uw-events__signup.is-thanks .uw-events__signup-panel,
	.uw-events__signup.is-thanks .uw-events__thanks {
		transition: opacity 180ms ease;
		transform: none;
	}

	.uw-events__signup.is-thanks .uw-events__thanks-ring,
	.uw-events__signup.is-thanks .uw-events__thanks-check {
		animation: none;
		stroke-dashoffset: 0;
	}
}

.uw-events__signup-title {
	margin: 0;
	font-family: "Fraunces", var(--wp--preset--font-family--fraunces, Georgia, serif);
	font-style: normal;
	font-weight: 400;
	font-size: 48px;
	line-height: 36px;
	color: #ffffff;
}

@media (min-width: 1401px) {
	:lang(es) .uw-events__signup-title,
	:lang(ru) .uw-events__signup-title,
	:lang(zh) .uw-events__signup-title,
	:lang(yue) .uw-events__signup-title {
		font-size: 40px;
		line-height: 1.1;
	}
}

.uw-events__signup-text {
	margin: 10px 0 24px;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 32px;
	line-height: 30px;
	color: #ffffff;
}

:lang(es) .uw-events__signup-text,
:lang(ru) .uw-events__signup-text,
:lang(zh) .uw-events__signup-text,
:lang(yue) .uw-events__signup-text {
	font-size: 26px;
}

.uw-events__signup-form .wpcf7 {
	margin: 0;
}

.uw-events__signup-form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
}

.uw-events__signup-form .wpcf7-form > p {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	width: 100%;
}

.uw-events__signup-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.uw-events__signup-form .wpcf7-form > p > .wpcf7-submit,
.uw-events__signup-form .wpcf7-form > p > button.wpcf7-submit {
	margin-top: 10px;
}

.uw-events__signup-form label {
	display: block;
	width: 100%;
}

.uw-events__signup-form input[type="text"],
.uw-events__signup-form input[type="email"],
.uw-events__signup-form input[type="tel"],
.uw-events__signup-form input[type="url"],
.uw-events__signup-form textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: #ffffff;
	color: #2a3738;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 25px;
	opacity: 1;
	box-shadow: none;
	appearance: none;
}

.uw-events__signup-form textarea {
	height: auto;
	min-height: 50px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.uw-events__signup-form input::placeholder,
.uw-events__signup-form textarea::placeholder {
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 25px;
	color: #a6a6a6;
	opacity: 1;
}

.uw-events__signup-form input:focus,
.uw-events__signup-form textarea:focus {
	outline: 2px solid #5e7e82;
	outline-offset: 2px;
}

.uw-events__signup-form .uw-btn,
.uw-events__subscribe,
.uw-events__signup-form button.wpcf7-submit.uw-btn,
.uw-events__signup-form button.wpcf7-submit.uw-btn.uw-btn--arrow {
	align-self: flex-start;
	width: 200px;
	min-width: 200px !important;
	max-width: 200px;
	padding-right: 70px !important;
}

:lang(es) .uw-events__signup-form .uw-btn,
:lang(es) .uw-events__subscribe,
:lang(es) .uw-events__signup-form button.wpcf7-submit.uw-btn,
:lang(es) .uw-events__signup-form button.wpcf7-submit.uw-btn.uw-btn--arrow,
:lang(ru) .uw-events__signup-form .uw-btn,
:lang(ru) .uw-events__subscribe,
:lang(ru) .uw-events__signup-form button.wpcf7-submit.uw-btn,
:lang(ru) .uw-events__signup-form button.wpcf7-submit.uw-btn.uw-btn--arrow {
	width: 270px;
	min-width: 270px !important;
	max-width: 270px;
}

.uw-events__signup-form .wpcf7-spinner {
	margin: 0 0 0 10px;
	vertical-align: middle;
}

.uw-events__signup-form .wpcf7-response-output {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	color: #ffffff;
	font-family: "Source Sans 3", sans-serif;
	font-size: 14px;
}

.uw-events__signup-disclaimer {
	margin: 16px 0 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
	color: #ffffff;
}

/* Modal */
.uw-events__modal {
	position: fixed;
	inset: 0;
	z-index: 100040;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.uw-events__modal[hidden] {
	display: none !important;
}

.uw-events__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(42, 55, 56, 0.55);
}

.uw-events__modal-dialog {
	position: relative;
	z-index: 1;
	width: min(820px, 100%);
	max-height: min(88vh, 900px);
	overflow: auto;
	padding: 36px 40px;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.uw-events__modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	margin: 0;
	padding: 4px 10px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	color: #2a3738;
	cursor: pointer;
}

.uw-events__modal-meta {
	margin: 0 0 8px;
	font-family: "Source Sans 3", sans-serif;
	font-size: 16px;
	color: var(--uw-accent-strong, #5a9a5c);
}

.uw-events__modal-title {
	margin: 0 0 20px;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 400;
	font-size: 36px;
	line-height: 1.15;
	color: #000000;
}

.uw-events__modal-media {
	margin: 0 0 20px;
}

.uw-events__modal-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.uw-events__modal-content {
	font-family: "Source Sans 3", sans-serif;
	font-size: 18px;
	line-height: 1.55;
	color: #2a3738;
}

.uw-events__materials-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.uw-events__materials-modal[hidden] {
	display: none !important;
}

.uw-events__materials-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(42, 55, 56, 0.55);
}

.uw-events__materials-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(1100px, 100%);
	max-height: min(88vh, 900px);
	overflow: auto;
	padding: 40px 44px 48px;
	background: #f7f7f4;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.uw-events__materials-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	margin: 0;
	padding: 4px 10px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	color: #2a3738;
	cursor: pointer;
}

.uw-events__materials-modal-title {
	margin: 0 0 28px;
	font-family: "Fraunces", var(--wp--preset--font-family--fraunces, Georgia, serif);
	font-style: normal;
	font-weight: 400;
	font-size: 36px;
	line-height: 1.15;
	color: #000000;
}

.uw-events__materials-head,
.uw-events__materials-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px 72px;
	gap: 20px;
	align-items: center;
}

.uw-events__materials-head {
	padding: 0 0 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 24px;
	line-height: 30px;
	color: #a6a6a6;
}

.uw-events__materials-row {
	padding: 22px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.uw-events__materials-row:last-child {
	border-bottom: 0;
}

.uw-events__materials-title-cell {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	min-width: 0;
}

.uw-events__materials-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 60px;
	height: 60px;
	color: #000000;
}

.uw-events__materials-icon svg {
	display: block;
	width: 60px;
	height: 60px;
}

.uw-events__materials-copy {
	min-width: 0;
	padding-top: 4px;
}

.uw-events__materials-item-title {
	margin: 0;
	font-family: "Fraunces", var(--wp--preset--font-family--fraunces, Georgia, serif);
	font-style: normal;
	font-weight: 400;
	font-size: 22px;
	line-height: 32px;
	color: #000000;
}

.uw-events__materials-item-desc {
	margin: 4px 0 0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 20px;
	color: #bdcaca;
}

.uw-events__materials-type-cell {
	display: flex;
	justify-content: flex-start;
}

.uw-events__materials-type {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	min-width: 100px;
	padding: 5px 12px;
	border-radius: 100px;
	background: #a8c8c0;
	font-family: "Source Sans 3", var(--wp--preset--font-family--source-sans-3, sans-serif);
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 18px;
	color: #ffffff;
	text-align: center;
}

.uw-events__materials-type-icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.uw-events__materials-type-icon svg {
	display: block;
	width: 16px;
	height: 16px;
}

.uw-events__materials-type-icon svg [fill="black"] {
	fill: #ffffff;
}

.uw-events__materials-type-icon svg [stroke="black"] {
	stroke: #ffffff;
}

.uw-events__materials-type-label {
	min-width: 0;
}

.uw-events__materials-action-cell {
	display: flex;
	justify-content: flex-end;
}

.uw-events__materials-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #000000;
	text-decoration: none;
}

.uw-events__materials-action svg {
	display: block;
	width: 28px;
	height: 28px;
}

.uw-events__materials-empty {
	margin: 24px 0 0;
	font-family: "Source Sans 3", sans-serif;
	font-size: 18px;
	color: #707070;
}

html.uw-events-modal-open,
html.uw-events-materials-open,
html.uw-events-filters-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.uw-events__materials-modal {
		align-items: flex-end;
		padding: 0;
	}

	.uw-events__materials-modal-dialog {
		width: 100%;
		max-height: min(92vh, 100%);
		padding: 20px 18px 28px;
		border-radius: 20px 20px 0 0;
	}

	.uw-events__materials-modal-title {
		margin: 0 36px 20px 0;
		font-size: 28px;
		line-height: 1.15;
	}

	.uw-events__materials-head {
		display: none;
	}

	.uw-events__materials-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"title title"
			"type action";
		gap: 12px 16px;
		align-items: center;
		padding: 18px 0;
	}

	.uw-events__materials-title-cell {
		grid-area: title;
		gap: 12px;
	}

	.uw-events__materials-type-cell {
		grid-area: type;
		justify-content: flex-start;
	}

	.uw-events__materials-action-cell {
		grid-area: action;
		justify-content: flex-end;
	}

	.uw-events__materials-icon,
	.uw-events__materials-icon svg {
		width: 40px;
		height: 40px;
	}

	.uw-events__materials-copy {
		padding-top: 0;
	}

	.uw-events__materials-item-title {
		font-size: 18px;
		line-height: 1.3;
	}

	.uw-events__materials-item-desc {
		margin-top: 6px;
		font-size: 15px;
		line-height: 1.35;
	}

	.uw-events__materials-type {
		width: auto;
		min-width: 84px;
		padding: 5px 14px;
		font-size: 15px;
		line-height: 18px;
	}

	.uw-events__card-actions {
		flex-wrap: wrap;
		gap: 12px 20px;
	}

	.uw-events__read-more,
	.uw-events__materials {
		font-size: 18px;
		line-height: 28px;
		white-space: normal;
	}
}

@media (min-width: 1200px) and (max-width: 1337px) {
	.uw-events__signup {
		padding: 25px;
	}
}

/* Sidebar signup title + subtext: tone down between 1200–1400. */
@media (min-width: 1200px) and (max-width: 1400px) {
	.uw-events__signup-title {
		font-size: 36px;
		line-height: 1.1;
	}

	.uw-events__signup-text {
		font-size: 20px;
		line-height: 1.25;
	}
}

@media (max-width: 1440px) {
	.uw-events__card {
		grid-template-columns: minmax(0, 1.3fr) 1px minmax(0, 4.1fr);
		column-gap: 22px;
		row-gap: 18px;
	}

	.uw-events__card-actions {
		flex-wrap: nowrap;
	}

	.uw-events__card-aside {
		grid-column: 3;
	}

	.uw-events__card-rule {
		grid-row: 1 / span 2;
	}

	.uw-events__card-date {
		grid-row: 1 / span 2;
	}
}

@media (max-width: 1199px) {
	.uw-events__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.uw-events__sidebar {
		position: static;
		max-width: 480px;
	}

	.uw-events__filters {
		display: none;
	}

	.uw-events__filter-select-wrap {
		display: block;
		flex: 1 1 auto;
		max-width: 360px;
	}

	.uw-events__order {
		margin-left: 0;
	}
}

@media (max-width: 997px) {
	.uw-events,
	.wp-block-unity-events {
		padding-block: 40px 64px;
	}

	.uw-events__card {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 4.1fr);
		column-gap: 18px;
		row-gap: 16px;
		padding: 24px 22px;
	}

	.uw-events__card-rule {
		display: none;
	}

	.uw-events__card-date {
		grid-row: auto;
	}

	.uw-events__card-actions {
		flex-wrap: wrap;
	}

	.uw-events__card-body,
	.uw-events__card-aside {
		grid-column: 1 / -1;
	}

	.uw-events__card-day {
		font-size: 48px;
		line-height: 0.9;
	}

	.uw-events__card-title {
		font-size: 26px;
		line-height: 1.15;
	}

	.uw-events__empty {
		min-height: 180px;
		padding: 32px 28px;
	}

	.uw-events__empty-title {
		font-size: 28px;
	}

	.uw-events__empty-text {
		font-size: 18px;
	}

	.uw-events__signup {
		padding: 32px 28px;
	}

	.uw-events__signup-title {
		font-size: 40px;
		line-height: 1;
	}

	.uw-events__signup-text {
		font-size: 24px;
		line-height: 1.2;
	}

	.uw-events__sidebar {
		max-width: none;
	}
}

@media (max-width: 768px) {
	.uw-events__toolbar {
		gap: 12px;
	}

	.uw-events__filter-select-wrap {
		display: none;
	}

	.uw-events__filters-trigger {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 12px 16px;
		border: 0;
		border-radius: 100px;
		background: #2a3738;
		color: #ffffff;
		cursor: pointer;
		appearance: none;
	}

	.uw-events__filters-trigger-text {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		min-width: 0;
		text-align: left;
	}

	.uw-events__filters-trigger-label {
		font-family: "Source Sans 3", sans-serif;
		font-size: 12px;
		line-height: 1.2;
		opacity: 0.75;
	}

	.uw-events__filters-trigger-value {
		font-family: "Source Sans 3", sans-serif;
		font-size: 16px;
		line-height: 1.2;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.uw-events__filters-trigger-chevron {
		display: inline-flex;
		flex: 0 0 auto;
	}

	.uw-events__order {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
		margin-left: 0;
	}

	.uw-events__filters-drawer {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100050;
	}

	.uw-events__filters-drawer-backdrop {
		position: absolute;
		inset: 0;
		background: rgba(42, 55, 56, 0.45);
		opacity: 0;
		transition: opacity 220ms ease;
	}

	.uw-events__filters-drawer.is-open .uw-events__filters-drawer-backdrop {
		opacity: 1;
	}

	.uw-events__filters-drawer-sheet {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		max-height: min(78vh, 560px);
		padding: 12px 20px 28px;
		background: #ffffff;
		border-radius: 20px 20px 0 0;
		transform: translateY(110%);
		transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.uw-events__filters-drawer.is-open .uw-events__filters-drawer-sheet {
		transform: translateY(0);
	}

	.uw-events__filters-drawer-handle {
		width: 44px;
		height: 4px;
		margin: 0 auto 12px;
		border-radius: 100px;
		background: #d9d9d9;
	}

	.uw-events__filters-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
	}

	.uw-events__filters-drawer-title {
		margin: 0;
		font-family: "Fraunces", Georgia, serif;
		font-size: 28px;
		font-weight: 400;
	}

	.uw-events__filters-drawer-close {
		margin: 0;
		padding: 4px 10px;
		border: 0;
		background: transparent;
		font-size: 28px;
		line-height: 1;
		cursor: pointer;
	}

	.uw-events__filters-drawer-body {
		display: flex;
		flex-direction: column;
		gap: 4px;
		overflow: auto;
	}

	.uw-events__filters-drawer-body .uw-events__filter {
		justify-content: flex-start;
		width: 100%;
		padding: 14px 4px;
		font-size: 20px;
	}

	.uw-events__card-day {
		font-size: 44px;
		line-height: 0.9;
	}

	.uw-events__card-badge {
		font-size: 14px;
		padding: 7px 10px;
	}

	.uw-events__modal-dialog {
		padding: 28px 20px;
	}

	.uw-events__modal-title {
		font-size: 28px;
	}
}
