.uec {
	--uec-bronze: #e8d9b8;
	--uec-bronze-hot: #d2b88a;
	--uec-ink: #f5f5f5;
	--uec-muted: rgba(255, 255, 255, 0.68);
	display: grid;
	grid-template-columns: minmax(22rem, 30rem) minmax(24rem, 38rem);
	justify-content: center;
	align-content: center;
	align-items: stretch;
	gap: 1.25rem 1.6rem;
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	margin-inline: auto;
	padding: 0.6rem 1.5rem 0.85rem;
	position: relative;
	box-sizing: border-box;
	color: var(--uec-ink);
	font-family: "Montserrat", sans-serif;
}

.uec [data-uec-data] {
	display: none;
}

.uec__cal,
.uec__agenda {
	min-height: 0;
	height: auto;
	max-height: 100%;
	border: 1px solid rgba(232, 217, 184, 0.18);
	border-radius: 1.15rem;
	background: rgba(4, 22, 20, 0.42);
}

.uec__cal {
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1.15rem 1.2rem;
}

.uec__cal-head {
	display: grid;
	grid-template-columns: 2.2rem 1fr 2.2rem;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.7rem;
}

.uec__month {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}

.uec__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	border: 1px solid rgba(232, 217, 184, 0.22);
	border-radius: 999px;
	background: rgba(8, 40, 36, 0.55);
	color: var(--uec-bronze);
	cursor: pointer;
}

.uec__nav:hover,
.uec__nav:focus-visible {
	border-color: var(--uec-bronze);
	background: rgba(11, 61, 56, 0.85);
	outline: none;
}

.uec__nav svg {
	width: 1.05rem;
	height: 1.05rem;
}

.uec__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	grid-template-rows: auto;
	grid-auto-rows: 2.55rem;
	flex: 0 0 auto;
	min-height: 0;
	gap: 0.35rem;
}

.uec__dow {
	padding: 0.2rem 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	color: var(--uec-bronze);
}

.uec__day {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 0;
	height: 100%;
	padding: 0.25rem 0 0.5rem;
	border: 1px solid transparent;
	border-radius: 0.7rem;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.uec__day.is-pad {
	pointer-events: none;
	visibility: hidden;
}

.uec__day:hover,
.uec__day:focus-visible {
	background: rgba(232, 217, 184, 0.1);
	outline: none;
}

.uec__day.is-today {
	border-color: rgba(232, 217, 184, 0.55);
}

.uec__day.is-selected {
	background: rgba(232, 217, 184, 0.2);
	border-color: var(--uec-bronze);
	color: var(--uec-bronze);
}

.uec__num {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
}

.uec__dot {
	position: absolute;
	bottom: 0.32rem;
	width: 0.34rem;
	height: 0.34rem;
	border-radius: 999px;
	background: var(--uec-bronze);
}

.uec__agenda {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.45rem 1.2rem;
}

.uec__agenda-head {
	flex: 0 0 auto;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(232, 217, 184, 0.14);
}

.uec__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--uec-bronze);
}

.uec__agenda-title {
	margin: 0;
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	text-transform: capitalize;
}

.uec__agenda-count {
	margin: 0.28rem 0 0;
	font-size: 0.78rem;
	color: var(--uec-muted);
}

.uec__list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	margin-top: 0.7rem;
	padding-right: 0.15rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(232, 217, 184, 0.45) transparent;
}

.uec__empty {
	margin: 0;
	color: var(--uec-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.uec__card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.55rem;
	flex: 0 0 auto;
	min-height: 0;
	width: 100%;
	padding: 0.38rem 0.6rem 0.38rem 0.38rem;
	border: 1px solid rgba(232, 217, 184, 0.18);
	border-radius: 0.75rem;
	background: rgba(4, 22, 20, 0.42);
	color: #fff;
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.uec__card:hover,
.uec__card:focus-visible {
	border-color: rgba(232, 217, 184, 0.55);
	background: rgba(8, 40, 36, 0.72);
	outline: none;
}

.uec__card-media {
	display: block;
	width: 3.15rem;
	height: 3.15rem;
	border-radius: 0.55rem;
	overflow: hidden;
	background: linear-gradient(135deg, #0b3d38, #14524b);
}

.uec__card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uec__card-copy {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	min-width: 0;
}

.uec__card-time {
	margin: 0;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uec-bronze);
}

.uec__card-title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uec__card-place {
	margin: 0;
	font-size: 0.74rem;
	line-height: 1.25;
	color: var(--uec-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.uec-dialog[hidden] {
	display: none;
}

.uec-dialog {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	overflow: hidden;
}

.uec-dialog__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgba(2, 10, 9, 0.72);
	cursor: pointer;
}

.uec-dialog__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	width: min(100%, 56rem);
	height: min(80svh, 52rem);
	max-height: min(90svh, 56rem);
	min-height: 0;
	overflow: hidden;
	padding: 1.15rem 1.35rem 1.25rem;
	border: 1px solid rgba(232, 217, 184, 0.22);
	border-radius: 1.1rem;
	background: #082824;
	scrollbar-width: thin;
	scrollbar-color: rgba(232, 217, 184, 0.45) transparent;
}

.uec-dialog.has-image .uec-dialog__panel,
.uec-dialog.has-video .uec-dialog__panel {
	width: min(100%, 58rem);
}

.uec-dialog__close {
	flex: 0 0 auto;
	align-self: flex-end;
	padding: 0.28rem 0.7rem;
	border: 1px solid rgba(232, 217, 184, 0.28);
	border-radius: 999px;
	background: rgba(4, 22, 20, 0.45);
	color: var(--uec-bronze);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.uec-dialog__close:hover,
.uec-dialog__close:focus-visible {
	border-color: var(--uec-bronze);
	color: #fff;
	outline: none;
}

.uec-dialog__body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.uec-dialog.has-image .uec-dialog__body {
	grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
	align-items: start;
}

.uec-dialog__media {
	aspect-ratio: 1 / 1;
	width: 100%;
	border-radius: 0.85rem;
	overflow: hidden;
	background: rgba(4, 22, 20, 0.55);
}

.uec-dialog__media[hidden] {
	display: none;
}

.uec-dialog.has-video .uec-dialog__media {
	aspect-ratio: 16 / 9;
	width: 100%;
	max-height: min(52svh, 28rem);
	margin-inline: auto;
	background: #041614;
}

.uec-dialog__media img,
.uec-dialog__media iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.uec-dialog__media img {
	object-fit: cover;
}

.uec-dialog__copy {
	min-width: 0;
}

.uec-dialog__time {
	margin: 0 0 0.28rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--uec-bronze);
}

.uec-dialog__title {
	margin: 0;
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}

.uec-dialog__place,
.uec-dialog__desc {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--uec-muted);
}

.uec-dialog__place[hidden] {
	display: none;
}

@media (max-width: 700px) {
	.uec-dialog.has-image .uec-dialog__body {
		grid-template-columns: 1fr;
	}

	.uec-dialog__media {
		max-width: 14rem;
		margin-inline: auto;
	}

	.uec-dialog.has-video .uec-dialog__media {
		max-width: none;
		margin-inline: 0;
	}
}

@media (max-width: 820px) {
	.uec {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		align-content: stretch;
		align-items: stretch;
		justify-content: stretch;
		gap: 0.5rem;
		width: 100%;
		height: 100%;
		min-height: 0;
		overflow: hidden;
		padding: 0.35rem 0.55rem 0.4rem;
	}

	.uec__cal,
	.uec__agenda {
		height: auto;
		max-height: none;
	}

	.uec__cal {
		flex: 0 0 auto;
		overflow: hidden;
		padding: 0.4rem 0.4rem 0.45rem;
	}

	.uec__cal-head {
		grid-template-columns: 1.75rem 1fr 1.75rem;
		margin-bottom: 0.2rem;
	}

	.uec__month {
		font-size: 0.78rem;
		letter-spacing: 0.03em;
	}

	.uec__nav {
		width: 1.75rem;
		height: 1.75rem;
	}

	.uec__nav svg {
		width: 0.9rem;
		height: 0.9rem;
	}

	.uec__grid {
		gap: 0.1rem;
		grid-auto-rows: 1.55rem;
	}

	.uec__dow {
		padding: 0 0 0.08rem;
		font-size: 0.6rem;
	}

	.uec__day {
		min-height: 0;
		padding: 0 0 0.22rem;
		border-radius: 0.38rem;
	}

	.uec__num {
		font-size: 0.76rem;
	}

	.uec__dot {
		bottom: 0.1rem;
		width: 0.2rem;
		height: 0.2rem;
	}

	.uec__agenda {
		min-height: 0;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		padding: 0.4rem 0.55rem 0.4rem;
	}

	.uec__agenda-head {
		flex: 0 0 auto;
		padding-bottom: 0.28rem;
	}

	.uec__eyebrow {
		font-size: 0.62rem;
		margin-bottom: 0.08rem;
	}

	.uec__agenda-title {
		font-size: 1.02rem;
	}

	.uec__agenda-count {
		margin-top: 0.12rem;
		font-size: 0.7rem;
	}

	.uec__list {
		flex: 1 1 auto;
		min-height: 0;
		gap: 0.35rem;
		margin-top: 0.35rem;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.uec__card {
		padding: 0.32rem 0.5rem 0.32rem 0.32rem;
	}

	.uec__card-media {
		width: 2.65rem;
		height: 2.65rem;
		border-radius: 0.45rem;
	}

	.uec__card-title {
		font-size: 0.82rem;
	}

	.uec__card-place {
		font-size: 0.68rem;
	}

	.uec-dialog {
		padding: max(0.55rem, env(safe-area-inset-top, 0px)) 0.65rem max(0.55rem, env(safe-area-inset-bottom, 0px));
	}

	.uec-dialog__panel {
		width: min(100%, 26rem);
		height: auto;
		max-height: 100%;
		min-height: 0;
	}

	.uec-dialog.has-image .uec-dialog__panel,
	.uec-dialog.has-video .uec-dialog__panel {
		width: min(100%, 26rem);
	}

	.uec-dialog.has-image .uec-dialog__body {
		grid-template-columns: 1fr;
	}

	.uec-dialog__close {
		position: sticky;
		top: 0;
		z-index: 2;
		background: #082824;
	}

	.uec-dialog__body {
		-webkit-overflow-scrolling: touch;
	}

	.uec-dialog.has-video .uec-dialog__media {
		max-height: min(38svh, 13.5rem);
		width: min(100%, calc(min(38svh, 13.5rem) * 16 / 9));
		margin-inline: auto;
	}
}

@media (max-height: 500px) and (orientation: landscape) {
	.uec {
		grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		padding: 0.5rem 0.75rem;
	}

	.uec__day {
		min-height: 1.7rem;
		padding-bottom: 0.32rem;
	}

	.uec__agenda {
		overflow: hidden;
	}

	.uec__list {
		overflow-y: auto;
	}
}
