.ipd-section--events {
	background: rgba(255, 252, 246, 0.72);
	border-top: 1px solid var(--ipd-line);
}

.ipd-events__head {
	align-items: flex-end;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin-bottom: 28px;
}

.ipd-events__head h2 {
	font-size: clamp(2.1rem, 4vw, 3.2rem);
	line-height: 1;
	margin: 0;
}

.ipd-events__head p {
	color: #263b32;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
	max-width: 430px;
}

.ipd-events__list {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ipd-event {
	appearance: none;
	background: #fffaf2 !important;
	background-color: #fffaf2 !important;
	border: 1px solid rgba(33, 50, 43, 0.22) !important;
	border-radius: 16px;
	box-shadow: none !important;
	color: #17251f !important;
	cursor: pointer;
	display: grid;
	font: inherit;
	gap: 18px;
	grid-template-columns: 74px minmax(0, 1fr);
	padding: 20px;
	text-align: left;
	text-decoration: none;
	transition: border-color 0.12s ease;
	transform: none !important;
	width: 100%;
}

.ipd-events .ipd-event:hover,
.ipd-events .ipd-event:focus,
.ipd-events .ipd-event:focus-visible,
.ipd-events .ipd-event:active {
	background: #fffaf2 !important;
	background-color: #fffaf2 !important;
	border-color: rgba(33, 50, 43, 0.22) !important;
	box-shadow: none !important;
	color: #17251f !important;
	transform: none !important;
}

.ipd-events .ipd-event:focus-visible {
	outline: none;
}

.ipd-event__date {
	align-items: center;
	background: var(--ipd-forest);
	border-radius: 14px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 76px;
	text-align: center;
}

.ipd-event__date span {
	color: #fff;
	font-family: var(--ipd-serif);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.ipd-event__date small {
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	margin-top: 7px;
	text-transform: uppercase;
}

.ipd-event__body h3 {
	color: #17251f;
	font-size: 1.45rem;
	line-height: 1.1;
	margin: 0 0 8px;
}

.ipd-event__body p {
	color: #263b32;
	font-size: 0.98rem;
	line-height: 1.55;
	margin: 0 0 14px;
}

.ipd-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.ipd-event__meta span {
	background: #dfe8dd;
	border-radius: 999px;
	color: #162820;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 7px 10px;
}

.ipd-event__link {
	color: #193b2d;
	font-weight: 700;
	text-decoration: none;
}

.ipd-events .ipd-event:hover .ipd-event__body h3,
.ipd-events .ipd-event:focus .ipd-event__body h3,
.ipd-events .ipd-event:active .ipd-event__body h3 {
	color: #17251f !important;
}

.ipd-events .ipd-event:hover .ipd-event__body p,
.ipd-events .ipd-event:focus .ipd-event__body p,
.ipd-events .ipd-event:active .ipd-event__body p {
	color: #263b32 !important;
}

.ipd-events .ipd-event:hover .ipd-event__link,
.ipd-events .ipd-event:focus .ipd-event__link,
.ipd-events .ipd-event:focus-visible .ipd-event__link,
.ipd-events .ipd-event:active .ipd-event__link {
	color: #193b2d !important;
}

.ipd-event-modal[hidden] {
	display: none;
}

.ipd-event-modal.is-open {
	align-items: center;
	background: transparent !important;
	background-color: transparent !important;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 99999;
}

.ipd-event-modal__backdrop {
	background: rgba(255, 250, 242, 0.86) !important;
	background-color: rgba(255, 250, 242, 0.86) !important;
	border: 0;
	cursor: pointer;
	display: block;
	inset: 0;
	opacity: 1 !important;
	padding: 0;
	position: absolute;
}

.ipd-event-modal__panel {
	background: #fffaf2;
	border: 1px solid rgba(33, 50, 43, 0.22);
	border-radius: 18px;
	box-shadow: 0 18px 54px rgba(33, 50, 43, 0.16);
	color: #17251f;
	max-height: min(82vh, 760px);
	overflow: auto;
	padding: 34px;
	position: relative;
	width: min(680px, 100%);
	z-index: 1;
}

.ipd-event-modal__close {
	align-items: center;
	appearance: none;
	background: #dfe8dd;
	border: 0;
	border-radius: 999px;
	color: #10251c;
	cursor: pointer;
	display: flex;
	font-size: 1.6rem;
	font-weight: 500;
	height: 38px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 18px;
	text-decoration: none;
	top: 18px;
	width: 38px;
}

.ipd-event-modal__close:hover,
.ipd-event-modal__close:focus-visible {
	background: #dfe8dd;
	color: #10251c;
	outline: none;
}

html.ipd-event-modal-open {
	overflow: hidden;
}

.ipd-event-modal h2 {
	color: #14241d;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
	margin: 0 42px 16px 0;
}

.ipd-event-modal .ipd-section-label {
	color: #315343;
}

.ipd-event-modal__meta {
	margin-bottom: 22px;
}

.ipd-event-modal__content {
	color: #17251f;
	font-size: 1.02rem;
	line-height: 1.75;
}

.ipd-event-modal__content p,
.ipd-event-modal__content li {
	color: #17251f;
}

.ipd-event-modal__content strong {
	color: #0f2119;
}

.ipd-event-modal__content a {
	color: #173f2d;
	font-weight: 800;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ipd-event-modal__content > *:first-child {
	margin-top: 0;
}

.ipd-event-modal__content > *:last-child {
	margin-bottom: 0;
}

.ipd-event-modal__cta {
	background: var(--ipd-forest);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	margin-top: 24px;
	padding: 12px 18px;
	text-decoration: none;
}

.ipd-event-modal__cta:hover,
.ipd-event-modal__cta:focus-visible {
	background: #10251c;
	color: #fff;
	outline: none;
}

.ipd-events__empty {
	background: rgba(255, 250, 242, 0.82);
	border: 1px solid rgba(33, 50, 43, 0.12);
	border-radius: 16px;
	padding: 24px;
}

.ipd-events__empty p {
	color: #263b32;
	margin: 0 0 12px;
}

.ipd-events__empty a {
	color: var(--ipd-forest);
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 840px) {
	.ipd-events__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.ipd-events__list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.ipd-event {
		grid-template-columns: 1fr;
	}

	.ipd-event__date {
		align-items: baseline;
		flex-direction: row;
		gap: 8px;
		justify-content: flex-start;
		min-height: 0;
		padding: 12px 14px;
	}

	.ipd-event__date small {
		margin-top: 0;
	}

	.ipd-event-modal.is-open {
		align-items: flex-end;
		padding: 12px;
	}

	.ipd-event-modal__panel {
		border-radius: 16px;
		max-height: 88vh;
		padding: 28px 22px;
	}

	.ipd-event-modal h2 {
		margin-right: 36px;
	}
}
