/* Events / Training dynamic source. */
.events .ev-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Card ----------------------------------------------------------- */
.ev-card {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 36px;
	align-items: center;
	padding: 28px;
	border-radius: var(--brand-radius, 6px);
	background: color-mix(in srgb, var(--brand, #1b938f) 6%, #fff);
}

.ev-card-media {
	border-radius: var(--brand-radius, 6px);
	overflow: hidden;
	aspect-ratio: 21 / 11;
	background: var(--brand-paper, #f4faf9);
}

.ev-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ev-card-body {
	min-width: 0;
}

.ev-date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	color: #000;
	font-size: 0.92rem;
}

.ev-date svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--brand-ink, #000);
}

.ev-title {
	margin: 0 0 12px !important;
	font-family: var(--brand-head, inherit) !IMPORTANT;
	font-size: clamp(1.3rem, 2.2vw, 1.6rem) !important;
	line-height: 1.25 !important;
	color: var(--brand-ink, #000) !important;
}

.ev-summary {
	margin: 0 0 22px;
	font-size: 1.125rem;
	color: #000;
	line-height: 1.6;
	max-width: 60ch;
}

.ev-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ev-empty {
	color: var(--brand-body, #5a5a5a);
}

/* Modal ---------------------------------------------------------- */
.ev-modal[hidden] {
	display: none;
}

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

.ev-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.ev-modal-panel {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: 88vh;
	background: #fff;
	border-radius: var(--brand-radius, 6px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.ev-modal-panel p {
    margin: 0;
}

.ev-modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 40px;
	height: 40px;
	border: 3px solid #fff;
	border-radius: 999px;
	background: var(--brand, #1b938f);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}

.ev-modal-datebar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 32px;
	background: var(--brand-paper, #f4faf9);
	border-bottom: 1px solid var(--brand-line, #d9e2e0);
	border-radius: var(--brand-radius, 6px) var(--brand-radius, 6px) 0 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-ink, #000);
}

.ev-modal-datebar svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--brand, #1b938f);
}

.ev-modal-content {
	padding: 28px 32px 32px;
}

.ev-modal-title {
	margin: 0 0 16px;
	font-family: var(--brand-head, inherit);
	font-size: clamp(1.4rem, 2.4vw, 1.7rem);
	line-height: 1.25;
	color: var(--brand-ink, #000);
}

.ev-modal-lead {
	margin: 0 0 18px;
	color: var(--brand-body, #5a5a5a);
	line-height: 1.6;
}

.ev-modal-body {
	color: #000;
	font-size: 0.78125rem;
	line-height: 1.65;
	margin-bottom: 26px;
	overflow-y: scroll;
	margin-top: 1rem;
	max-height: 25rem;
}

.ev-modal-body p {
	margin: 0 0 14px;
}

.ev-modal-body ul,
.ev-modal-body ol {
	margin: 0 0 14px;
	padding-left: 22px;
}

.ev-modal-body li {
	margin-bottom: 6px;
}

.ev-modal-body blockquote {
	margin: 0 0 14px;
	padding: 16px 20px;
	border: 0;
	border-radius: var(--brand-radius, 6px);
	background: var(--brand-paper, #f4faf9);
	color: var(--brand-ink, #000);
}

.ev-modal-body blockquote p:last-child {
	margin-bottom: 0;
}

.ev-modal-cta {
	display: inline-block;
}

@media (max-width: 720px) {
	.ev-card {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 22px;
	}

	.ev-modal-close {
		top: 10px;
		right: 10px;
		border-width: 0;
	}

	.ev-modal-datebar,
	.ev-modal-content {
		padding-left: 22px;
		padding-right: 22px;
	}
}

