:root {
	--ae-purple: #5236b8;
	--ae-red: #f75c45;
	--ae-slate: #2e2e2e;
	--ae-light-grey: #e5e3df;
	--ae-white: #ffffff;
}

.ae-root,
.ae-detail {
	color: var(--ae-slate);
	font-family: "TT Norms", "TTNormsPro", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.ae-intro {
	margin: 0 auto 1.5rem;
	max-width: 720px;
	text-align: center;
}

.ae-intro h1 {
	color: var(--ae-purple);
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.6rem;
}

.ae-intro p {
	font-weight: 400;
	margin: 0;
}

.ae-layout {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 210px minmax(0, 1fr);
}

.ae-sidebar {
	padding-top: 0.5rem;
}

.ae-field {
	margin-bottom: 0.6rem;
	position: relative;
}

.ae-field input[type="search"],
.ae-multiselect-button,
.ae-sort-form select {
	background: var(--ae-white);
	border: 1px solid var(--ae-purple);
	border-radius: 4px;
	color: var(--ae-purple);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 400;
	min-height: 36px;
	padding: 0.4rem 0.6rem;
	width: 100%;
}

.ae-multiselect-button {
	cursor: pointer;
	text-align: left;
}

.ae-multiselect-button::after {
	content: "▾";
	float: right;
	font-size: 0.75em;
	margin-top: 0.25rem;
}

.ae-multiselect-menu {
	background: var(--ae-white);
	border: 1px solid var(--ae-purple);
	border-top: 0;
	display: none;
	max-height: 280px;
	overflow: auto;
	padding: 0.4rem;
}

.ae-multiselect.is-open .ae-multiselect-menu {
	display: block;
}

.ae-multiselect-menu label {
	align-items: center;
	color: var(--ae-slate);
	cursor: pointer;
	display: flex;
	font-size: 0.85rem;
	font-weight: 400;
	gap: 0.5rem;
	padding: 0.3rem 0.15rem;
}

.ae-actions {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: 1fr 1fr;
	margin-top: 0.75rem;
}

.ae-button {
	align-items: center;
	border: 1px solid var(--ae-purple);
	border-radius: 4px;
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 700;
	justify-content: center;
	min-height: 36px;
	padding: 0.4rem 0.8rem;
	text-decoration: none;
}

.ae-button-primary {
	background: var(--ae-purple);
	color: var(--ae-white);
}

.ae-button-secondary {
	background: var(--ae-white);
	color: var(--ae-purple);
}

.ae-results-header {
	align-items: center;
	background: #f1f0ed;
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding: 0.5rem 0.85rem;
}

.ae-results-header h2 {
	color: var(--ae-slate);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	text-transform: uppercase;
}

.ae-sort-form {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	margin: 0;
}

.ae-sort-form label {
	color: var(--ae-slate);
	font-size: 0.875rem;
	font-weight: 400;
	white-space: nowrap;
}

.ae-sort-form select {
	min-height: 32px;
	padding: 0.25rem 0.5rem;
	width: auto;
}

.ae-card-grid {
	display: grid;
	gap: 2rem 1.5rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ae-card {
	border: 0;
	margin: 0;
}

.ae-card a {
	color: inherit;
	display: block;
	text-decoration: none;
}

.ae-card-logo-wrap {
	align-items: center;
	display: flex;
	height: 110px;
	justify-content: center;
	margin-bottom: 1.25rem;
}

.ae-card-logo {
	max-height: 110px;
	max-width: 100%;
	object-fit: contain;
}

.ae-card-date {
	color: var(--ae-red);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.35;
	margin: 0 0 0.25rem;
	text-transform: uppercase;
}

.ae-card-type {
	color: var(--ae-slate);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.4rem;
	text-transform: uppercase;
}

.ae-card-title {
	color: var(--ae-purple);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 0.6rem;
}

.ae-card-excerpt {
	color: var(--ae-slate);
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.45;
	margin: 0 0 0.85rem;
}

.ae-card-journeys,
.ae-journey-list {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ae-journey-icon img {
	display: block;
	height: 28px;
	width: 28px;
}

.ae-pagination-count {
	color: var(--ae-slate);
	font-size: 0.85rem;
	font-weight: 400;
	margin: 3.5rem 0 0.75rem;
	text-align: center;
}

.ae-pagination {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	margin: 0.25rem 0 0;
}

.ae-pagination a,
.ae-page-current {
	align-items: center;
	border: 1px solid var(--ae-purple);
	color: var(--ae-purple);
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 700;
	height: 32px;
	justify-content: center;
	min-width: 32px;
	text-decoration: none;
}

.ae-page-current {
	background: var(--ae-purple);
	color: var(--ae-white);
}

.ae-no-results {
	font-weight: 600;
	margin: 1rem 0;
}

.ae-detail-hero {
	background: var(--ae-purple);
	color: var(--ae-white);
	margin: 0 0 2.5rem;
	padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.5rem, 5vw, 4rem);
}

.ae-detail-hero h1 {
	color: var(--ae-white);
	font-size: clamp(2rem, 4.4vw, 3.8rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 0.75rem;
}

.ae-detail .ae-detail-hero h1,
.ae-detail .ae-detail-hero h1.fusion-responsive-typography-calculated {
	color: var(--ae-white) !important;
}

.ae-detail-hero p {
	font-weight: 800;
	margin: 0;
	text-transform: uppercase;
}

.ae-back-link a {
	color: var(--ae-purple);
	font-weight: 800;
	text-decoration: none;
}

.ae-language-notice {
	background: #fff7e7;
	border-left: 5px solid var(--ae-red);
	font-weight: 700;
	margin: 0 0 1.5rem;
	padding: 1rem;
}

.ae-detail-layout {
	display: grid;
	gap: 3rem;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.ae-detail-main {
	color: var(--ae-slate);
}

/* Excerpt (purple) + body (slate): match news/article detail — light 300 weight. */
.ae-detail-summary,
#wrapper .post-content .ae-detail .ae-detail-summary {
	color: var(--ae-purple);
	font-family: "TT Norms", "TTNormsPro-Light", Helvetica, Arial, sans-serif;
	font-size: 1.15rem;
	font-weight: 300;
	line-height: 1.55;
	margin: 0 0 2rem;
}

.ae-detail-summary p,
#wrapper .post-content .ae-detail .ae-detail-summary p {
	color: var(--ae-purple);
	font-weight: 300;
	margin: 0 0 1rem;
}

.ae-detail-summary p:last-child {
	margin-bottom: 0;
}

.ae-detail-content,
#wrapper .post-content .ae-detail .ae-detail-content {
	color: var(--ae-slate);
	font-family: "TT Norms", "TTNormsPro-Light", Helvetica, Arial, sans-serif;
	font-size: 1.02rem;
	font-weight: 300;
	line-height: 1.7;
}

.ae-detail-content p,
.ae-detail-content li,
.ae-detail-content td,
.ae-detail-content blockquote,
#wrapper .post-content .ae-detail .ae-detail-content p,
#wrapper .post-content .ae-detail .ae-detail-content li,
#wrapper .post-content .ae-detail .ae-detail-content td,
#wrapper .post-content .ae-detail .ae-detail-content blockquote {
	color: var(--ae-slate);
	font-weight: 300;
}

.ae-detail-content img,
.ae-detail-content iframe {
	max-width: 100%;
}

.ae-detail-content iframe {
	border: 0;
}

.ae-detail-content .myButton {
	background-color: var(--ae-red);
	border: 1px solid var(--ae-red);
	border-radius: 4px;
	color: var(--ae-white);
	cursor: pointer;
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	padding: 16px 31px;
	text-decoration: none;
	text-shadow: 0 1px 0 #665a28;
}

.ae-detail-content .myButton:hover,
.ae-detail-content .myButton:active {
	background-color: var(--ae-red);
	color: var(--ae-white);
}

.ae-detail-content .center {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.ae-detail-content #productbox,
.ae-detail-content .product {
	display: block;
	width: 100%;
}

.ae-detail-content #productbox {
	overflow: hidden;
}

.ae-detail-content .product {
	clear: both;
	display: flex;
	gap: 20px;
	margin-bottom: 10px;
	padding-bottom: 8px;
}

.ae-detail-content .product_img {
	flex: 0 0 min(350px, 100%);
	float: none;
	height: auto;
	max-width: 350px;
	width: 100%;
}

.ae-detail-content .product_content {
	flex: 1 1 280px;
	float: none;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	min-width: 0;
	text-align: left;
	width: 100%;
}

.ae-detail-content .clear {
	clear: both;
}

/* Legacy #productbox callouts: Avada inflates h3 to ~36px via responsive typography. */
.ae-detail-content #productbox h3,
.ae-detail-content #productbox h3.fusion-responsive-typography-calculated,
.ae-detail-content #productbox .product_special h3,
.ae-detail-content #productbox .product_special h3.fusion-responsive-typography-calculated,
#wrapper .post-content .ae-detail .ae-detail-content #productbox h3,
#wrapper .post-content .ae-detail .ae-detail-content #productbox h3.fusion-responsive-typography-calculated {
	color: var(--ae-slate);
	font-family: "TT Norms", "TTNormsPro-Light", Helvetica, Arial, sans-serif;
	font-size: 25px !important;
	font-weight: 300 !important;
	line-height: 1.3 !important;
	margin: 0 0 1rem;
	--fontSize: 25;
}

.ae-detail-content #productbox h3 b,
.ae-detail-content #productbox .product_special h3 b {
	font-size: inherit;
	font-weight: inherit;
}

/* In-content links: brand purple, no underline (defeat Avada .post-content a rules). */
.ae-detail-content a:not(.myButton),
.ae-detail-content a:not(.myButton):link,
.ae-detail-content a:not(.myButton):visited,
#wrapper .post-content .ae-detail .ae-detail-content a:not(.myButton),
#wrapper .post-content .ae-detail .ae-detail-content a:not(.myButton):link,
#wrapper .post-content .ae-detail .ae-detail-content a:not(.myButton):visited {
	color: var(--ae-purple) !important;
	text-decoration: none !important;
}

.ae-detail-content a:not(.myButton):hover,
.ae-detail-content a:not(.myButton):focus,
#wrapper .post-content .ae-detail .ae-detail-content a:not(.myButton):hover,
#wrapper .post-content .ae-detail .ae-detail-content a:not(.myButton):focus {
	color: var(--ae-purple) !important;
	text-decoration: none !important;
}

.ae-detail-side {
	color: var(--ae-slate);
	font-family: "TTNormsPro-Light", "TT Norms", Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.5;
}

.ae-detail-logo {
	display: block;
	margin: 0 0 1rem;
	max-height: none;
	max-width: 250px;
	object-fit: contain;
	padding: 1rem 0;
	width: 100%;
}

.ae-detail-meta {
	margin: 0 0 1rem;
}

.ae-detail-meta dt {
	color: var(--ae-slate);
	font-family: "TTNormsPro-Bold", "TT Norms", Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5;
	margin: 0;
	padding-top: 0.85rem;
	text-transform: uppercase;
}

.ae-detail-meta dd {
	color: #a5a098;
	font-family: "TTNormsPro-Medium", "TT Norms", Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
	padding-bottom: 0.85rem;
	text-transform: uppercase;
}

.ae-detail-journey-icons {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding-top: 0.35rem;
}

.ae-detail-side .ae-journey-icon img {
	height: 24px;
	width: 24px;
}

.ae-detail-side h2 {
	color: var(--ae-purple);
	font-size: 1.25rem;
	margin: 1.5rem 0 0.5rem;
}

.ae-detail-map-section {
	border-top: 1px solid var(--ae-light-grey);
	margin: 3rem 0 0;
	padding-top: 1rem;
}

.ae-detail-map-info {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
	margin: 0 0 1.5rem;
}

.ae-detail-map-info-label {
	color: var(--ae-slate);
	font-family: "TTNormsPro-Bold", "TT Norms", Helvetica, Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ae-detail-map-info-value {
	color: #a5a098;
	font-family: "TT Norms", "TTNormsPro", Helvetica, Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.45;
	margin-top: 0.25rem;
}

.ae-detail-map {
	height: 360px;
	width: 100%;
}

.ae-map-info-window {
	color: var(--ae-slate);
	font-family: "TT Norms", "TTNormsPro", Helvetica, Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	max-width: 260px;
}

@media (max-width: 1100px) {
	.ae-layout,
	.ae-detail-layout {
		grid-template-columns: 1fr;
	}

	.ae-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ae-results-header {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 640px) {
	.ae-card-grid {
		grid-template-columns: 1fr;
	}

	.ae-detail-map-info {
		grid-template-columns: 1fr;
	}

	.ae-actions {
		grid-template-columns: 1fr;
	}

	.ae-card-logo-wrap {
		height: auto;
		margin-bottom: 1rem;
	}

	.ae-sort-form {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.ae-detail-content .product {
		flex-direction: column;
	}

	.ae-detail-content .product_img {
		max-width: 100%;
	}
}

/*
 * Avada / Fusion responsive typography overrides.
 * Fusion injects `font-size: calc(...) !important` on elements tagged
 * `.fusion-responsive-typography-calculated`, which inflates our card
 * titles and results header back to the theme's global heading sizes.
 * Higher-specificity selectors + !important are required to win.
 */
.ae-root .ae-intro h1,
.ae-root .ae-intro h1.fusion-responsive-typography-calculated {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem) !important;
	line-height: 1.15 !important;
}

.ae-root .ae-results-header h2,
.ae-root .ae-results-header h2.fusion-responsive-typography-calculated {
	font-size: 0.875rem !important;
	line-height: 1.25 !important;
}

.ae-root .ae-card-title,
.ae-root .ae-card-title.fusion-responsive-typography-calculated {
	font-size: 1.1rem !important;
	line-height: 1.2 !important;
}

.ae-root .ae-card .ae-card-title {
	font-weight: 800;
}

.ae-root .ae-sort-form label {
	color: var(--ae-slate);
	font-weight: 400;
}

/* Belt-and-braces: keep the intro lede and excerpt at a regular weight
 * even if a parent theme rule (e.g. .post-content p) tries to bold them. */
.ae-root .ae-intro p,
.ae-root .ae-card-excerpt {
	font-weight: 400;
}

/* Match for the filter dropdowns: theme `button`/`select` rules in Avada
 * default to a bolder weight, so re-assert regular here. */
.ae-root .ae-field input[type="search"],
.ae-root .ae-multiselect-button,
.ae-root .ae-sort-form select {
	font-weight: 400;
}

/*
 * Avada / .post-content forces `text-decoration: underline` on every <a>
 * inside the page content, which made the entire event card (date, type,
 * title, excerpt) render underlined. Defeat it with higher specificity
 * and !important, and explicitly suppress underline on the inner blocks
 * (text-decoration on <a> visually applies to descendant text).
 */
.ae-root .ae-card a,
.ae-root .ae-card a:link,
.ae-root .ae-card a:visited,
.ae-root .ae-card a:hover,
.ae-root .ae-card a:focus,
.ae-root .ae-card a:active,
.ae-root .ae-card a:hover .ae-card-title,
.ae-root .ae-card a:hover .ae-card-excerpt,
.ae-root .ae-card a:hover .ae-card-date,
.ae-root .ae-card a:hover .ae-card-type {
	text-decoration: none !important;
}
