/*
 * Events list and event pages (AMOMZINGTR-22).
 *
 * Gold fills take dark brown text (#5A2914, 4.6:1), never white, which fails
 * contrast (AMOMZINGTR-36). Pink and coral stay decorative.
 */

.events_page {
	--ev-gold: #d4943a;
	--ev-brown-dark: #5a2914;
	--ev-brown: #664a26;
	--ev-caramel: #804a11;
	--ev-blush: #fef2f4;
	--ev-focus: #c81e4d;
	background-color: var(--ev-blush);
	padding: 40px 0 120px;
}

.events_page a:focus-visible {
	outline: 3px solid var(--ev-focus);
	outline-offset: 3px;
}

.events_empty {
	max-width: 640px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 28px;
	color: var(--ev-brown);
	text-align: center;
}

.events_empty a {
	color: var(--ev-caramel);
	text-decoration: underline;
}

/* List */

.events_list {
	display: grid;
	/*
	 * Up to three across, centered, so one or two events don't hug the left.
	 * 280px wide keeps a whole card (4:5 flyer included) on a laptop screen
	 * below the fixed header.
	 */
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 280px));
	justify-content: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.event_card {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	background-color: #fff;
	border-radius: 20px;
	box-shadow: 0 6px 24px rgba(90, 41, 20, 0.08);
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.event_card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 30px rgba(90, 41, 20, 0.14);
}

.event_card_link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: var(--ev-brown);
	text-decoration: none;
}

.event_card_link:hover {
	color: var(--ev-brown);
}

/* Add to calendar */

.event_cal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--ev-brown);
}

.event_card .event_cal {
	padding: 10px 18px 14px;
	border-top: 1px solid #f6dde2;
}

.event_single_info .event_cal {
	margin-bottom: 24px;
	font-size: 16px;
}

.event_cal_label {
	font-weight: 600;
}

.event_cal_link {
	color: var(--ev-caramel);
	text-decoration: underline;
}

.event_cal_link:hover {
	color: var(--ev-brown-dark);
}

.event_card_flyer {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	background-color: #fbe3e7;
}

.event_card_flyer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.event_card_date {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: var(--heading_font_medium);
	color: var(--ev-brown-dark);
}

.event_card_month {
	font-size: 24px;
	line-height: 1;
	text-transform: uppercase;
}

.event_card_day {
	font-size: 80px;
	line-height: 1;
}

.event_card_body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px;
}

.event_card_title {
	margin-bottom: 8px;
	font-family: var(--heading_font_medium);
	font-size: 20px;
	line-height: 26px;
	color: var(--ev-brown-dark);
}

.event_card_when,
.event_card_where {
	margin-bottom: 4px;
	font-size: 15px;
	line-height: 22px;
}

.event_card_when {
	font-weight: 600;
}

.event_card_more {
	margin-top: auto;
	padding-top: 10px;
	font-weight: 600;
	color: var(--ev-caramel);
	text-decoration: underline;
}

/* Single event */

/* The list's top padding shrank to fit its cards on screen; the event page keeps 60px. */
.event_single {
	padding-top: 60px;
}

.event_single_grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 50px;
	align-items: start;
}

.event_single_grid > :only-child {
	grid-column: 1 / -1;
	max-width: 720px;
	margin: 0 auto;
}

.event_single_flyer img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 6px 24px rgba(90, 41, 20, 0.12);
}

.event_past_note {
	margin-bottom: 24px;
	padding: 14px 18px;
	background-color: #fff;
	border-left: 4px solid var(--ev-gold);
	border-radius: 8px;
	color: var(--ev-brown-dark);
}

.event_facts {
	margin-bottom: 24px;
}

.event_facts dt {
	margin-top: 18px;
	font-family: var(--heading_font_medium);
	font-size: 16px;
	font-weight: 500;
	color: var(--ev-brown-dark);
	text-transform: uppercase;
}

.event_facts dd {
	margin: 4px 0 0;
	font-size: 18px;
	line-height: 28px;
	color: var(--ev-brown);
}

.event_venue,
.event_address,
.event_map_link {
	display: block;
}

.event_venue {
	font-weight: 600;
}

.event_map_link,
.event_back {
	color: var(--ev-caramel);
	text-decoration: underline;
}

.event_notes {
	font-size: 17px;
	line-height: 27px;
	color: var(--ev-brown);
}

.event_actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 30px;
}

.event_button {
	display: inline-block;
	padding: 14px 32px;
	background-color: var(--ev-gold);
	border-radius: 999px;
	font-family: var(--heading_font_medium);
	color: var(--ev-brown-dark);
	text-decoration: none;
}

.event_button:hover {
	background-color: #c78630;
	color: var(--ev-brown-dark);
}

/* Home page section, above The Cookie Jar: compact, so it fits on screen */

.home_events {
	padding: 50px 0 20px;
	background-color: #fff;
}

.home_events .sec_center_headig {
	margin-bottom: 24px;
	text-align: center;
}

.home_events .sec_center_headig h2 {
	margin-bottom: 0;
	font-size: 30px;
	line-height: 38px;
}

.home_events .events_list {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 400px));
	gap: 20px;
}

.home_events_more {
	margin: 24px 0 0;
	text-align: center;
}

/* Compact card: small flyer on the left, details on the right */

.event_card_compact .event_card_link {
	flex-direction: row;
}

.event_card_compact .event_card_flyer {
	flex: 0 0 120px;
	align-self: flex-start;
	width: 120px;
}

.event_card_compact .event_card_date {
	flex-direction: column;
}

.event_card_compact .event_card_month {
	font-size: 16px;
}

.event_card_compact .event_card_day {
	font-size: 48px;
}

.event_card_compact .event_card_body {
	padding: 14px 16px;
}

.event_card_compact .event_card_title {
	margin-bottom: 6px;
	font-size: 18px;
	line-height: 24px;
}

.event_card_compact .event_card_when,
.event_card_compact .event_card_where {
	margin-bottom: 2px;
	font-size: 14px;
	line-height: 20px;
}

.event_card_compact .event_card_more {
	padding-top: 8px;
	font-size: 14px;
}

.event_card_compact .event_cal {
	padding: 10px 16px 12px;
	font-size: 13px;
}

@media (max-width: 991px) {
	.event_single_grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
}

@media (max-width: 575px) {
	.events_page {
		padding: 40px 0 80px;
	}

	/* One row that scrolls sideways, so the events don't push The Cookie Jar far down. */
	.home_events {
		padding: 40px 0 10px;
	}

	.home_events .events_list {
		grid-template-columns: none;
		grid-auto-columns: 88%;
		justify-content: start;
		grid-auto-flow: column;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 12px;
	}

	.home_events .event_card {
		scroll-snap-align: start;
	}
}
