/*!
 * HOA Mega Menu — scoped to .hoa-menu* so the theme is untouched.
 */

:root {
	--hoa-menu-primary: #660000;
	--hoa-menu-ink: #151515;
	--hoa-menu-ghost: #888888;
}

/* ---------- The hamburger ---------- */
.hoa-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	margin: 0 0 0 14px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	vertical-align: middle;
	-webkit-appearance: none;
	appearance: none;
}
.hoa-menu-toggle:hover { color: var(--hoa-menu-primary); opacity: 1; }
.hoa-menu-toggle:focus-visible { outline: 2px solid var(--hoa-menu-primary); outline-offset: 3px; }
.hoa-menu-toggle__bars { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 26px; height: 18px; }
.hoa-menu-toggle__bars i { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .25s, width .25s; }
.hoa-menu-toggle__bars i:nth-child(2) { width: 70%; }
.hoa-menu-toggle:hover .hoa-menu-toggle__bars i:nth-child(2) { width: 100%; }
.hoa-menu-toggle__label { font-weight: 600; }
@media (max-width: 780px) { .hoa-menu-toggle__label { display: none; } }

/* Floating fallback, used only when the logo selector is not found. */
.hoa-menu-toggle--float {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 99990;
	background: #fff;
	color: var(--hoa-menu-ink);
	border-radius: 999px;
	padding: 10px 16px;
	margin: 0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
body.admin-bar .hoa-menu-toggle--float { top: 50px; }

/* ---------- The panel ---------- */
.hoa-menu {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: var(--hoa-menu-primary);
	color: #fff;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.hoa-menu[hidden] { display: none !important; }
.hoa-menu.is-open { animation: hoa-menu-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes hoa-menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
html.hoa-menu-lock, html.hoa-menu-lock body { overflow: hidden; }

.hoa-menu *, .hoa-menu *::before, .hoa-menu *::after { box-sizing: border-box; }
.hoa-menu a { color: #fff; text-decoration: none; }
.hoa-menu :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hoa-menu__sheet {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	max-width: 1560px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 64px) clamp(24px, 4vw, 48px);
}

/* ---------- Search ---------- */
.hoa-menu-search { border-bottom: 1px solid rgba(255, 255, 255, .28); padding: clamp(12px, 2vw, 22px) 0; }
.hoa-menu-search__row { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.hoa-menu-search__close,
.hoa-menu-search__go {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	transition: background .18s;
}
.hoa-menu-search__close:hover, .hoa-menu-search__go:hover { background: rgba(255, 255, 255, .16); }
.hoa-menu-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 64px;
	padding: 0 6px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 3.4vw, 2.3rem);
	line-height: 1.2;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.hoa-menu-search input[type="search"]::placeholder { color: rgba(255, 255, 255, .6); }
.hoa-menu-search input[type="search"]:focus { outline: none; box-shadow: none; }
.hoa-menu-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Columns ---------- */
.hoa-menu__cols {
	flex: 1;
	display: grid;
	/* auto-fit rather than a fixed four: the four audience columns are the
	   normal case, but turning the category columns back on makes six, and a
	   hard repeat(4) would push the last two off the sheet. */
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: clamp(20px, 3vw, 48px);
	padding: clamp(26px, 4vw, 56px) 0 clamp(20px, 3vw, 40px);
	align-items: start;
}
.hoa-menu-col { min-width: 0; }
.hoa-menu-col__title {
	margin: 0 0 clamp(14px, 1.6vw, 24px);
	font-family: inherit;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}
.hoa-menu-col__title a { color: inherit; }
.hoa-menu-col__title a:hover { color: #fff; }
.hoa-menu-list { list-style: none; margin: 0; padding: 0; }
.hoa-menu-list li { margin: 0; padding: 0; list-style: none; }
.hoa-menu-list li::marker { content: none; }

.hoa-menu-link {
	display: block;
	padding: 6px 0;
	font-size: .92rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .88);
	transition: color .15s, transform .15s;
}
.hoa-menu-link:hover, .hoa-menu-link:focus { color: #fff; transform: translateX(4px); }
.hoa-menu-link[aria-current] { color: #fff; }
.hoa-menu-link[aria-current]::before { content: "— "; }

.hoa-menu-link--big {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.15rem, 2vw, 1.85rem);
	letter-spacing: .01em;
	text-transform: uppercase;
	line-height: 1.24;
	padding: 3px 0;
}
.hoa-menu-link--accent { color: #fff; font-weight: 700; }
.hoa-menu-link--accent::after {
	content: "";
	display: block;
	width: 26px;
	height: 2px;
	margin-top: 5px;
	background: #fff;
	opacity: .55;
	transition: width .2s;
}
.hoa-menu-link--accent:hover::after { width: 54px; opacity: 1; }

/* ---------- Footer ---------- */
.hoa-menu__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 24px;
	align-items: center;
	justify-content: space-between;
	padding-top: clamp(16px, 2vw, 26px);
	border-top: 1px solid rgba(255, 255, 255, .28);
	font-size: .84rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.hoa-menu__logo img { display: block; width: auto; height: 34px; filter: brightness(0) invert(1); }
.hoa-menu__note { margin: 0; color: rgba(255, 255, 255, .7); text-transform: none; letter-spacing: 0; font-size: .86rem; }
.hoa-menu__note:empty { display: none; }
.hoa-menu__account { margin: 0; display: flex; gap: 10px; align-items: center; }
.hoa-menu__account span { opacity: .5; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hoa-menu__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
@media (max-width: 600px) {
	.hoa-menu__cols { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 18px; }
	.hoa-menu-col { border-bottom: 1px solid rgba(255, 255, 255, .2); padding: 6px 0 12px; }
	.hoa-menu-col:last-child { border-bottom: 0; }
	.hoa-menu-col__title { margin-bottom: 10px; }
	.hoa-menu-link--big { font-size: 1.15rem; }
	.hoa-menu-search input[type="search"] { height: 52px; }
	.hoa-menu__foot { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.hoa-menu.is-open { animation: none; }
	.hoa-menu-link, .hoa-menu-link--accent::after, .hoa-menu-toggle__bars i { transition: none; }
	.hoa-menu-link:hover { transform: none; }
}
@media print { .hoa-menu, .hoa-menu-toggle { display: none !important; } }


/* ---------- 1.1 — audience columns ---------- */

/* Every column now carries the same list, so the accent link is what marks
   the one action in each: Sell Artwork, Become a Curator. */
.hoa-menu-col--artists .hoa-menu-link--accent,
.hoa-menu-col--curators .hoa-menu-link--accent { font-weight: 700; }

@media (max-width: 1180px) {
	.hoa-menu__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FiboSearch inside the menu panel.
   Only the space around it is styled — the plugin's own classes are left
   alone, because restyling another plugin's internals breaks on its next
   update. */
.hoa-menu-search--fibo .hoa-menu-search__row {
	align-items: center;
}
.hoa-menu-search__fibo {
	flex: 1;
	min-width: 0;
}
.hoa-menu-search__fibo .dgwt-wcas-search-wrapp {
	max-width: none;
	width: 100%;
}
/* The suggestions list must sit above the panel, or it opens behind it. */
.hoa-menu-search__fibo .dgwt-wcas-suggestions-wrapp {
	z-index: 100001;
}
