/**
 * Website Events: homepage, archive, and single view.
 */

.emmaus-events,
.emmaus-event-past-section {
	background: #f5f7fb;
}

.emmaus-event-hero {
	padding: clamp(58px, 8vw, 104px) 0;
	color: #fff;
	background: linear-gradient(135deg, #072d6d, #0b3d91);
}

.emmaus-event-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.35;
}

.emmaus-event-hero p {
	max-width: 46rem;
	margin: 12px 0 0;
	color: #fff;
	line-height: 1.85;
}

.emmaus-event-section-title {
	margin: 0 0 28px;
	color: #072d6d;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	line-height: 1.4;
}

.emmaus-event-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 28px);
}

.emmaus-event-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #d8e1ee;
	border-top: 4px solid #a8861f;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(7, 45, 109, .07);
}

.emmaus-event-image-link,
.emmaus-event-card-image {
	display: block;
	width: 100%;
}

.emmaus-event-card-image {
	max-height: 220px;
	object-fit: cover;
}

.emmaus-event-card-body {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: clamp(20px, 3vw, 28px);
}

.emmaus-event-card-date,
.emmaus-event-detail-date {
	margin: 0;
	color: #4b5563;
	font-weight: 700;
	line-height: 1.8;
}

.emmaus-event-card-title {
	margin: 10px 0 12px;
	color: #072d6d;
	font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.emmaus-event-card-title a {
	color: inherit;
	text-decoration: none;
}

.emmaus-event-card-title a:hover,
.emmaus-event-card-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: .15em;
}

.emmaus-event-card-meta {
	display: grid;
	gap: 4px;
	margin: 0 0 16px;
	color: #303b4b;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.emmaus-event-card-excerpt {
	margin: 0 0 20px;
	color: #303b4b;
	line-height: 1.9;
	overflow-wrap: anywhere;
}

.emmaus-event-read-more,
.emmaus-event-back,
.emmaus-event-directions {
	color: #072d6d;
	font-weight: 700;
	text-underline-offset: .2em;
	overflow-wrap: anywhere;
}

.emmaus-event-read-more {
	align-self: flex-start;
	margin-top: auto;
}

.emmaus-event-empty {
	max-width: 42rem;
	margin: 0 auto;
	padding: 26px;
	border: 1px solid #d8e1ee;
	border-radius: 12px;
	color: #303b4b;
	background: #fff;
	text-align: center;
}

.emmaus-event-actions {
	margin: 32px 0 0;
	text-align: center;
}

.emmaus-event-button {
	display: inline-flex;
	max-width: 100%;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 9px;
	color: #fff;
	background: #072d6d;
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.emmaus-event-button:hover,
.emmaus-event-button:focus-visible {
	color: #fff;
	background: #0b3d91;
}

.emmaus-event-page .emmaus-section {
	padding: clamp(42px, 7vw, 80px) 0;
}

.emmaus-event-pagination {
	margin-top: 32px;
}

.emmaus-event-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 0;
	list-style: none;
}

.emmaus-event-pagination a,
.emmaus-event-pagination .current {
	display: block;
	padding: 7px 12px;
	border-radius: 6px;
	color: #072d6d;
	background: #eaf1fc;
}

.emmaus-event-pagination .current {
	color: #fff;
	background: #072d6d;
}

.emmaus-event-single {
	padding: clamp(48px, 7vw, 88px) 0;
}

.emmaus-event-detail {
	max-width: 54rem;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 48px);
	border: 1px solid #d8e1ee;
	border-radius: 18px;
	background: #fff;
}

.emmaus-event-back {
	display: inline-block;
	margin-bottom: 26px;
}

.emmaus-event-detail h1 {
	margin: 0 0 16px;
	color: #072d6d;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.emmaus-event-detail-venue {
	color: #303b4b;
	overflow-wrap: anywhere;
}

.emmaus-event-detail-image {
	margin: 24px 0;
}

.emmaus-event-detail-content {
	color: #253247;
	font-size: 1.05rem;
	line-height: 1.95;
	overflow-wrap: anywhere;
}

.emmaus-event-detail-content > * {
	max-width: 100%;
}

.emmaus-event-page a:focus-visible,
.emmaus-events a:focus-visible {
	outline: 3px solid #a8861f;
	outline-offset: 4px;
}

@media (max-width: 900px) {
	.emmaus-event-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 650px) {
	.emmaus-event-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.emmaus-event-card-body {
		padding: 24px;
	}
}
