/*
 * Events page: starter styles.
 * Scoped to .ev-page and prefixed ev- so it never touches Current Stock (tl-/tr-), Product Pages (pp-/pr-) or the Elementor pages.
 * Loaded only by page-events.php. Fonts are inherited from the theme. Colours are estimates: swap for the theme's exact values.
 */

.ev-page {
	--ev-navy: #1f2247;
	--ev-gold: #c2a97f;
	--ev-dots: #c2b59b;
	--ev-sand: #e3d9c5;
	--ev-text: #4a4a4a;
	--ev-on-navy: #ffffff;
	--ev-header-h: 100px; /* height of the site header that overlays the banner: match it to your header */
	color: var(--ev-text);
}
.ev-page .ev-wrap { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.ev-page img { display: block; max-width: 100%; height: auto; }

/* Banner + breadcrumb */
.ev-banner { background: var(--ev-navy); color: var(--ev-on-navy); padding: calc(var(--ev-header-h) + 50px) 0 40px; }
.ev-title {
	margin: 0 0 20px;
	padding-bottom: 20px;
	color: var(--ev-on-navy);
	font-size: 2.75rem;
	line-height: 1.15;
	border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.ev-breadcrumb { font-size: 13px; color: var(--ev-on-navy); }
.ev-breadcrumb a { color: var(--ev-on-navy); text-decoration: none; }
.ev-breadcrumb a:hover { text-decoration: underline; }
.ev-breadcrumb .ev-sep { margin: 0 8px; opacity: .6; }
.ev-breadcrumb .ev-current { color: var(--ev-gold); }

/* Optional intro */
.ev-intro { padding-top: 50px; max-width: 900px; text-align: center; }

/* Event rows: image left, text right, a thin line between events */
.ev-listing { padding-top: 40px; padding-bottom: 90px; }
.ev-item {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px;
	align-items: center;
	padding: 40px 0;
	border-bottom: 1px solid rgba(31, 34, 71, .15);
}
.ev-item:last-child { border-bottom: 0; }
.ev-item.ev-no-media { grid-template-columns: minmax(0, 1fr); }
.ev-media { overflow: hidden; background: var(--ev-sand); aspect-ratio: 4 / 3; }
.ev-page .ev-media .ev-img { width: 100%; height: 100%; object-fit: cover; }

/* Date line: small gold heading with the bracket + fading line graphic (same as the other templates) */
.ev-eyebrow {
	--ev-dots: #c2b59b;
	position: relative;
	display: inline-block;
	margin: 0 0 8px;
	padding-left: 46px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ev-gold);
	background: linear-gradient(to right, var(--ev-dots), rgb(184 151 128 / 6%)) no-repeat 10px 50% / 26px 2px;
}
.ev-eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 11px;
	height: 15px;
	transform: translateY(-50%);
	box-sizing: border-box;
	border: 2px solid var(--ev-dots);
	border-left: 0;
	border-radius: 0 150px 150px 0;
}
.ev-name { margin: 0 0 6px; font-size: 1.9rem; line-height: 1.2; color: var(--ev-navy); }
.ev-where { margin: 0 0 16px; font-weight: 600; color: var(--ev-navy); }
.ev-desc p { margin: 0 0 1em; }
.ev-desc p:last-child { margin-bottom: 0; }
.ev-link {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 22px;
	background: var(--ev-navy);
	color: var(--ev-on-navy);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s;
}
.ev-link:hover, .ev-link:focus-visible { background: var(--ev-gold); color: var(--ev-navy); }
.ev-empty { padding: 60px 20px; text-align: center; background: var(--ev-sand); }

@media (max-width: 1200px) { .ev-page { --ev-header-h: 150px; } } /* header wraps onto two rows here */
@media (max-width: 960px) {
	.ev-page { --ev-header-h: 80px; }
	.ev-banner { padding: calc(var(--ev-header-h) + 30px) 0 30px; }
	.ev-title { font-size: 2rem; }
	.ev-item { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
	.ev-name { font-size: 1.6rem; }
}

/* visually hidden text for screen readers (does not rely on the theme providing this class) */
.ev-page .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
