/*
Theme Name: EVL Blocks
Theme URI: https://ellicottvilleny.com
Author: Ellicottville Chamber of Commerce
Description: Block theme for the Ellicottville Chamber of Commerce website. Built with Gutenberg and designed to showcase Ellicottville, NY — skiing, festivals, dining, and four-season mountain village life.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evl-blocks
*/

/* Decorative separator: constrain to 60px */
.wp-block-separator.is-style-wide.has-copper-background-color {
	width: 60px;
}

/* Gallery slider */
.evl-slider { position: relative; padding: 0 60px; }
.evl-slider .swiper { overflow: hidden; }
.evl-slider .swiper-slide { height: auto; display: flex; }
.evl-slider .swiper-slide > * { flex: 1; }
.evl-slider .swiper-button-prev,
.evl-slider .swiper-button-next {
	color: var(--wp--preset--color--white);
	background: rgba(26,26,46,0.5);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
}
.evl-slider .swiper-button-prev { left: 0; }
.evl-slider .swiper-button-next { right: 0; }
.evl-slider .swiper-button-prev::after,
.evl-slider .swiper-button-next::after { font-size: 16px; }
.evl-slider .swiper-pagination {
	position: relative;
	margin-top: var(--wp--preset--spacing--40);
	bottom: auto;
}
.evl-slider .swiper-pagination-bullet-active {
	background: var(--wp--preset--color--copper);
}

/* Member archive grid — equal-height cards */
.post-type-archive-evl_member .wp-block-post-template .wp-block-post {
	display: flex;
}
.post-type-archive-evl_member .wp-block-post-template .wp-block-post > .wp-block-group {
	flex: 1;
}

/* Featured member indicator */
.post-type-archive-evl_member .is-featured-member > .wp-block-group {
	border: 2px solid var(--wp--preset--color--copper);
	position: relative;
}
.post-type-archive-evl_member .is-featured-member > .wp-block-group::before {
	content: "Featured";
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: var(--wp--preset--color--copper);
	color: var(--wp--preset--color--white);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	line-height: 1.4;
	z-index: 1;
}

/* Member directory filters */
.evl-member-filters {
	margin-bottom: 0;
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--wp--preset--color--stone, #f5f3f0);
	padding: 0 0 0.75rem;
}
.admin-bar .evl-member-filters {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .evl-member-filters {
		top: 46px;
	}
}
.admin-bar .evl-directory-layout__map {
	top: calc(32px + 1rem);
	height: calc(100vh - 32px - 2rem);
}
@media (max-width: 782px) {
	.admin-bar .evl-directory-layout__map {
		top: calc(46px + 1rem);
		height: calc(100vh - 46px - 2rem);
	}
}
.evl-member-filters__row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.evl-member-filters__autocomplete {
	position: relative;
	flex: 0 0 480px;
	max-width: 100%;
	height: 42px;
}
.evl-member-filters__dropdowns {
	flex: 0 0 auto;
	height: 42px;
	margin: 0;
}
.evl-member-filters__input {
	width: 100%;
	box-sizing: border-box;
	height: 42px;
	padding: 0 2.75rem 0 1rem;
	border: 1px solid #d0cfc9;
	border-radius: 4px;
	font-size: 0.9375rem;
	line-height: 1.4;
	font-family: var(--wp--preset--font-family--body);
	background: var(--wp--preset--color--white);
}
.evl-member-filters__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--copper);
}
.evl-member-filters__suggestions {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;
	background: var(--wp--preset--color--white, #fff);
	border: 1px solid #d0cfc9;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	max-height: 320px;
	overflow-y: auto;
}
.evl-member-filters__suggestions[hidden] {
	display: none;
}
.evl-member-filters__suggestion {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0.875rem;
	font-size: 0.9375rem;
	font-family: var(--wp--preset--font-family--body);
	cursor: pointer;
	color: var(--wp--preset--color--night, #1a1a2e);
}
.evl-member-filters__suggestion.is-active,
.evl-member-filters__suggestion:hover {
	background: var(--wp--preset--color--stone, #f5f3f0);
}
.evl-member-filters__suggestion mark {
	background: transparent;
	color: inherit;
	font-weight: 600;
}
.evl-member-filters__suggestion-label {
	flex: 0 0 auto;
	min-width: 4.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b6b6b;
}
.evl-member-filters__suggestion.is-category .evl-member-filters__suggestion-label {
	color: var(--wp--preset--color--copper, #b87333);
}
.evl-member-filters__suggestion-title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.evl-member-filters__dropdowns {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.evl-member-filters__tags {
	display: flex;
	gap: 0.375rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
.evl-member-filters__tags:empty {
	display: none;
}
.evl-member-filters__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.5rem;
	background: var(--wp--preset--color--night, #1a1a2e);
	color: var(--wp--preset--color--white, #fff);
	border-radius: 3px;
	font-size: 0.75rem;
	font-family: var(--wp--preset--font-family--body);
	line-height: 1.4;
}
.evl-member-filters__tag-remove {
	background: none;
	border: none;
	color: inherit;
	font-size: 0.875rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	opacity: 0.7;
}
.evl-member-filters__tag-remove:hover {
	opacity: 1;
}
.evl-member-filters__select {
	box-sizing: border-box;
	height: 42px;
	padding: 0 2.25rem 0 0.875rem;
	border: 1px solid #d0cfc9;
	border-radius: 4px;
	font-size: 0.875rem;
	line-height: 1.4;
	font-family: var(--wp--preset--font-family--body);
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
	appearance: none;
	cursor: pointer;
	min-width: 220px;
}
.evl-member-filters__select:focus {
	outline: none;
	border-color: var(--wp--preset--color--copper);
}
.evl-member-filters__submit {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--slate, #4a4a4a);
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.evl-member-filters__submit:hover {
	color: var(--wp--preset--color--night);
}
.evl-member-filters__submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--copper);
	outline-offset: 2px;
}
.evl-member-filters__count {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--slate, #64748b);
}
.evl-member-filters__clear {
	font-size: 0.875rem;
	color: var(--wp--preset--color--copper);
	white-space: nowrap;
}

/* Experience archive cards — cover-block styles for <a> tags */
a.wp-block-cover {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
a.wp-block-cover .wp-block-cover__background {
	position: absolute;
	inset: 0;
}
a.wp-block-cover .wp-block-cover__image-background {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
a.wp-block-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
}

/* Experience cards — equal-height alignment */
.wp-block-post-template .wp-block-post:has(.evl-experience-card) {
	display: flex;
}
.evl-experience-card {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.evl-experience-card > .wp-block-group {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.evl-experience-card .wp-block-post-excerpt {
	margin-top: auto;
}

/* Cover card — featured image as background with overlay */
.evl-cover-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.evl-cover-card .wp-block-post-featured-image,
.evl-cover-card > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
}
.evl-cover-card .wp-block-post-featured-image a,
.evl-cover-card .wp-block-post-featured-image img,
.evl-cover-card > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.evl-cover-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(26,26,46,0.2) 0%, rgba(26,26,46,0.7) 100%);
	pointer-events: none;
	border-radius: 6px;
}
.evl-cover-card__content {
	position: relative;
	z-index: 1;
}
.evl-cover-card__date {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--white);
	opacity: 0.85;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Event card — equal-height with shadow */
.wp-block-post-template .wp-block-post:has(.evl-event-card) {
	display: flex;
}
.evl-event-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s ease;
}
.evl-event-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.evl-event-card > .wp-block-group {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.evl-event-card .wp-block-post-excerpt {
	margin-top: var(--wp--preset--spacing--20);
}
.evl-event-date {
	margin: 0.25rem 0 0;
}

/* Single event: sticky meta sidebar. align-self:start keeps the grid item
   from stretching full-height so it can stick as the content column scrolls. */
.evl-event-single__sidebar {
	align-self: start;
	position: sticky;
	top: var(--wp--preset--spacing--50);
}
.admin-bar .evl-event-single__sidebar {
	top: calc(var(--wp--preset--spacing--50) + 32px);
}
@media (max-width: 900px) {
	.evl-event-single__sidebar {
		position: static;
	}
}

/* AJAX random query grid */
.evl-random-query .wp-block-post-template[style*="--grid-columns"] {
	display: grid;
	grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
	gap: var(--wp--preset--spacing--50);
	list-style: none;
	padding: 0;
}

/* Featured image contained card */
.evl-contained-image img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}

/* Experience archive grid — responsive */
@media (max-width: 781px) {
	.evl-experience-grid--2col,
	.evl-experience-grid--3col {
		grid-template-columns: 1fr !important;
	}
}
@media (min-width: 782px) and (max-width: 1023px) {
	.evl-experience-grid--3col {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Member directory two-column layout */
.evl-directory-layout {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: var(--wp--preset--spacing--50, 1.5rem);
	margin-top: 0;
}
.evl-member-filters ~ p:empty,
.evl-member-filters + p:empty,
.evl-member-filters p:empty {
	display: none;
}
.evl-directory-layout__map {
	position: sticky;
	top: 1rem;
	align-self: stretch;
	height: calc(100vh - 2rem);
	padding: 0;
	margin: 0;
}
.evl-directory-layout__map .wp-block-evl-member-map,
.evl-directory-layout__map .evl-member-map-wrap,
.evl-directory-layout__map #evl-member-map {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
}
.post-type-archive-evl_member main > .wp-block-group:has(> .evl-member-filters),
.tax-member_category main > .wp-block-group:has(> .evl-member-filters) {
	padding-top: var(--wp--preset--spacing--30, 1rem) !important;
}
@media (max-width: 1023px) {
	.evl-directory-layout {
		grid-template-columns: 1fr;
	}
	.evl-directory-layout__map {
		display: none;
	}
	.evl-member-filters__dropdowns {
		display: none;
	}
	.evl-member-filters__clear {
		margin-left: auto;
	}
}

/* Member map */
.evl-member-map-wrap {
	margin: 0;
}
#evl-member-map {
	border-radius: 6px;
	z-index: 1;
}
.evl-map-pin {
	background: none !important;
	border: none !important;
}
.evl-map-popup {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-family: var(--wp--preset--font-family--body, sans-serif);
	font-size: 0.8125rem;
	line-height: 1.4;
}
.evl-map-popup a {
	color: var(--wp--preset--color--night, #1a1a2e);
	text-decoration: none;
}
.evl-map-popup a:hover {
	color: var(--wp--preset--color--copper, #b87333);
}
.evl-map-popup__cats {
	color: var(--wp--preset--color--copper, #b87333);
	font-size: 0.75rem;
}
.evl-map-popup__address {
	color: var(--wp--preset--color--slate, #64748b);
	font-size: 0.75rem;
}

/* ==========================================================================
   Mega Menu
   ========================================================================== */
.evl-mega-menu {
	position: static;
	display: flex;
	align-items: center;
	font-family: var(--wp--preset--font-family--body, inherit);
}
.evl-mega-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 2rem;
	align-items: center;
}
.evl-mega-menu__item {
	position: static;
}
/* The dropdown panel is anchored to the outer header bar so it can span the
   full viewport width and center its inner content, regardless of which menu
   item it belongs to. */
.evl-header-bar {
	position: relative;
}
/* Site brand: favicon + "This is {site name}" */
.evl-site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--wp--preset--color--white, #fff);
	text-decoration: none;
}
.evl-site-brand__icon {
	display: block;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 4px;
}
.evl-site-brand__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.1;
}
.evl-mega-menu__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--wp--preset--color--white, #fff);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 1.25rem 0;
	transition: color 0.15s ease;
}
/* Invisible hover bridge — keeps the cursor "inside" the link (DOM-wise)
   while crossing the gap between the link and the dropdown panel. Without
   this, mouseleave fires the moment the cursor enters the gap and the panel
   closes. The bridge is a pseudo-element of the link, so pointer events over
   it count as pointer events over the link itself. Desktop only — on mobile
   the layout is an accordion and the bridge would intercept taps. */
@media (min-width: 900px) {
	.evl-mega-menu__item.has-panel .evl-mega-menu__link::after {
		content: '';
		position: absolute;
		top: 100%;
		left: -1rem;
		right: -1rem;
		height: 3rem;
	}
}
.evl-mega-menu__link:hover,
.evl-mega-menu__link:focus-visible,
.evl-mega-menu__item.is-open > .evl-mega-menu__link {
	color: var(--wp--preset--color--copper, #b87333);
}
.evl-mega-menu__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	transition: transform 0.15s ease;
}
.evl-mega-menu__item.is-open .evl-mega-menu__caret {
	transform: rotate(180deg);
}

/* Dropdown panel — full-width strip below the header bar. */
.evl-mega-menu__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--night, #1a1a2e);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
	z-index: 100;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}
.evl-mega-menu__item.is-open .evl-mega-menu__panel {
	opacity: 1;
	pointer-events: auto;
}
.evl-mega-menu__panel[hidden] {
	display: none;
}
.evl-mega-menu__panel-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding: 2rem 2.5rem;
	max-width: 1280px;
	margin: 0 auto;
}
/* Desktop only: two columns when BOTH sidebar and featured exist.
   On mobile the panel always stacks (sidebar / link list on top, featured below). */
@media (min-width: 900px) {
	.evl-mega-menu__panel-inner:has(.evl-mega-menu__sidebar):has(.evl-mega-menu__featured) {
		grid-template-columns: minmax(200px, 260px) 1fr;
	}
}
.evl-mega-menu__sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.evl-mega-menu__panel-inner:has(.evl-mega-menu__featured) .evl-mega-menu__sidebar {
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	padding-right: 1.75rem;
}
.evl-mega-menu__sidebar-heading,
.evl-mega-menu__featured-heading {
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate, #64748b);
}
.evl-mega-menu__featured-heading {
	margin-bottom: 1rem;
}
.evl-mega-menu__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.evl-mega-menu__links-item {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.evl-mega-menu__links-item:last-child {
	border-bottom: 0;
}
.evl-mega-menu__links-link {
	display: block;
	padding: 0.55rem 0;
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--wp--preset--color--night, #1a1a2e);
	text-decoration: none;
	transition: color 0.15s ease, padding-left 0.15s ease;
}
.evl-mega-menu__links-link:hover,
.evl-mega-menu__links-link:focus-visible {
	color: var(--wp--preset--color--copper, #b87333);
	padding-left: 0.25rem;
}
.evl-mega-menu__intro-text {
	margin: 0.25rem 0 0;
	font-family: var(--wp--preset--font-family--body, sans-serif);
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--wp--preset--color--slate, #64748b);
	text-transform: none;
	letter-spacing: 0;
}
.evl-mega-menu__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--wp--preset--color--copper, #b87333);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.evl-mega-menu__view-all:hover {
	text-decoration: underline;
}
.evl-mega-menu__featured {
	display: flex;
	flex-direction: column;
}

/* Card grid */
.evl-mega-menu__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(var(--evl-mm-columns, 4), minmax(0, 1fr));
}
.evl-mega-menu__cards[data-columns="1"] { --evl-mm-columns: 1; }
.evl-mega-menu__cards[data-columns="2"] { --evl-mm-columns: 2; }
.evl-mega-menu__cards[data-columns="3"] { --evl-mm-columns: 3; }
.evl-mega-menu__cards[data-columns="4"] { --evl-mm-columns: 4; }
.evl-mega-menu__card {
	margin: 0;
}
.evl-mega-menu__card-link {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	text-decoration: none;
	color: inherit;
}
.evl-mega-menu__card-media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-color: var(--wp--preset--color--stone, #ece8e1);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.25s ease;
}
.evl-mega-menu__card-link:hover .evl-mega-menu__card-media {
	transform: scale(1.02);
}
.evl-mega-menu__card-meta {
	display: block;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--copper, #b87333);
}
.evl-mega-menu__card-title {
	display: block;
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--night, #1a1a2e);
}
.evl-mega-menu__card-link:hover .evl-mega-menu__card-title {
	color: var(--wp--preset--color--copper, #b87333);
}

/* Hamburger toggle (hidden on desktop) */
.evl-mega-menu__toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
	width: 40px;
	height: 40px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.evl-mega-menu__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--wp--preset--color--white, #fff);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.evl-mega-menu.is-open .evl-mega-menu__toggle-bar:nth-child(2) {
	transform: translateY(7px) rotate(45deg);
}
.evl-mega-menu.is-open .evl-mega-menu__toggle-bar:nth-child(3) {
	opacity: 0;
}
.evl-mega-menu.is-open .evl-mega-menu__toggle-bar:nth-child(4) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Desktop-only: items WITHOUT featured cards drop a narrow panel directly
   below the menu item instead of stretching across the full header. The item
   becomes the positioning context, and the panel is right-aligned to the item
   so it never overflows the right edge of the viewport. */
@media (min-width: 900px) {
	.evl-mega-menu__item:not(:has(.evl-mega-menu__featured)) {
		position: relative;
	}
	.evl-mega-menu__item:not(:has(.evl-mega-menu__featured)) > .evl-mega-menu__panel {
		left: auto;
		right: 0;
		width: auto;
		min-width: 240px;
		border-radius: 8px;
		margin-top: 0.25rem;
	}
	.evl-mega-menu__item:not(:has(.evl-mega-menu__featured)) .evl-mega-menu__panel-inner {
		max-width: none;
		margin: 0;
		padding: 1.25rem 1.5rem;
		gap: 0.75rem;
	}
}

/* Mobile layout */
@media (max-width: 899px) {
	.evl-mega-menu__toggle {
		display: flex;
	}
	.evl-mega-menu__list {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		min-width: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--wp--preset--color--night, #1a1a2e);
		padding: 1rem 0;
		box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
		z-index: 100;
	}
	.evl-mega-menu.is-open .evl-mega-menu__list {
		display: flex;
	}
	.evl-mega-menu__item {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	.evl-mega-menu__item:last-child {
		border-bottom: 0;
	}
	.evl-mega-menu__link {
		padding: 1rem 1.5rem;
		justify-content: space-between;
		width: 100%;
	}
	.evl-mega-menu__panel {
		position: static;
		transform: none;
		width: 100%;
		max-width: none;
		margin: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
	}
	.evl-mega-menu__panel-inner,
	.evl-mega-menu__panel-inner:has(.evl-mega-menu__sidebar) {
		grid-template-columns: 1fr;
		padding: 1rem 1.5rem 1.5rem;
		gap: 1.25rem;
	}
	.evl-mega-menu__sidebar {
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		padding: 0 0 1rem;
	}
	.evl-mega-menu__cards,
	.evl-mega-menu__cards[data-columns] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		--evl-mm-columns: 2;
	}
}

/* Content feed shortcode */
.evl-content-feed__title {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
	color: inherit;
	font-family: var(--wp--preset--font-family--body);
}
.evl-content-feed__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20, 0.5rem);
	font-size: 0.875rem;
	font-weight: 300;
}
.evl-content-feed__list a {
	color: inherit;
	text-decoration: none;
}
.evl-content-feed__list a:hover {
	text-decoration: underline;
}
.evl-content-feed__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(var(--evl-cf-cols, 5), minmax(0, 1fr));
	gap: 0.75rem;
}
@media (max-width: 1023px) {
	.evl-content-feed__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.evl-content-feed__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.evl-content-feed__slider {
	position: relative;
	padding: 0 2.5rem;
}
.evl-content-feed__slider .swiper {
	overflow: hidden;
}
.evl-content-feed__slider .swiper-slide {
	height: auto;
	display: flex;
}
.evl-content-feed__slider .swiper-slide > * {
	flex: 1;
}
.evl-content-feed__slider .swiper-button-prev,
.evl-content-feed__slider .swiper-button-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}
.evl-content-feed__slider .swiper-button-prev:hover,
.evl-content-feed__slider .swiper-button-next:hover {
	background: rgba(255, 255, 255, 0.25);
}
.evl-content-feed__slider .swiper-button-prev { left: 0; }
.evl-content-feed__slider .swiper-button-next { right: 0; }
.evl-content-feed__slider .swiper-button-prev::after { content: "\2039"; font-size: 22px; line-height: 1; }
.evl-content-feed__slider .swiper-button-next::after { content: "\203A"; font-size: 22px; line-height: 1; }
.evl-content-feed__cell {
	margin: 0;
}
.evl-content-feed__square {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--white, #fff);
	border-radius: 6px;
	padding: 0.75rem;
	overflow: hidden;
	color: var(--wp--preset--color--night, #1a1a2e);
	text-decoration: none;
	transition: transform 0.15s ease;
}
.evl-content-feed__square:hover {
	transform: translateY(-2px);
}
.evl-content-feed__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.evl-content-feed__label {
	font-size: 0.8125rem;
	font-weight: 500;
	text-align: center;
	line-height: 1.3;
}
