/* ==========================================================================
   RG Mega Header Pro
   Colours/sizes come from CSS variables printed from the settings page.
   KEY RULE: the mega panel is positioned against .rgmh-shell (the header
   container), never against the menu <li>. It is centred in the shell and
   its width is min(max-width, 100% - gutter), so it can't leave the screen.
   ========================================================================== */

:root {
	--rgmh-navy: #232850;
	--rgmh-green: #347f36;
	--rgmh-yellow: #f6d33c;
	--rgmh-gold: #c99a2e;
	--rgmh-pill: #f7f6f2;
	--rgmh-bar: #232850;
	--rgmh-logo-small-h: 72px;
	--rgmh-logo-main-h: 84px;
	--rgmh-mega-w: 1180px;
	--rgmh-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--rgmh-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--rgmh-ease: cubic-bezier(.22, .61, .36, 1);
	--rgmh-bar-h: 0px;
}

/* ---------- reset (scoped, defends against theme styles) ---------- */
.rgmh-wrap,
.rgmh-wrap *,
.rgmh-wrap *::before,
.rgmh-wrap *::after {
	box-sizing: border-box;
}

.rgmh-wrap {
	position: relative;
	z-index: 99990;
	width: 100%;
	max-width: 100%;
	background: #fff;
	font-family: var(--rgmh-sans);
	font-size: 16px;
	line-height: 1.4;
	color: var(--rgmh-navy);
}

.rgmh-wrap ul,
.rgmh-wrap li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rgmh-wrap li::marker { content: ""; }

.rgmh-wrap a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.rgmh-wrap img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.rgmh-wrap button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	line-height: 1;
}

.rgmh-wrap .rgmh-ico { display: block; flex: none; }

.rgmh-wrap :focus-visible {
	outline: 2px solid var(--rgmh-green);
	outline-offset: 2px;
}

/* ---------- sticky ---------- */
.rgmh-wrap.rgmh-is-sticky {
	position: sticky;
	top: calc(0px - var(--rgmh-bar-h));
}
body.admin-bar .rgmh-wrap.rgmh-is-sticky { top: calc(32px - var(--rgmh-bar-h)); }
@media (max-width: 782px) {
	body.admin-bar .rgmh-wrap.rgmh-is-sticky { top: calc(46px - var(--rgmh-bar-h)); }
}
.rgmh-wrap.is-scrolled .rgmh-header { box-shadow: 0 6px 22px rgba(35, 40, 80, .10); }

/* ---------- announcement bar ---------- */
.rgmh-wrap .rgmh-bar {
	background: var(--rgmh-bar);
	color: #fff;
	text-align: center;
}

.rgmh-wrap .rgmh-bar__in {
	display: block;
	margin: 0;
	padding: 11px 16px;
	font-size: clamp(14px, 1.5vw, 20px);
	font-weight: 700;
	letter-spacing: .01em;
	color: #fff;
}

.rgmh-wrap .rgmh-bar__hi {
	color: var(--rgmh-yellow);
	font-weight: 700;
	margin-right: .3em;
}

/* ---------- header shell ---------- */
.rgmh-wrap .rgmh-header {
	position: relative;
	background: #fff;
	transition: box-shadow .25s var(--rgmh-ease);
}

.rgmh-wrap .rgmh-shell {
	position: relative; /* anchor of the mega panel + mobile drawer */
	display: grid;
	/* nav | logo (true centre) | tools */
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 22px;
	width: 100%;
	max-width: 1560px;
	margin: 0 auto;
	padding: 14px clamp(14px, 2.2vw, 32px);
}

/* logos */
.rgmh-wrap .rgmh-logo { display: flex; align-items: center; flex: none; }
.rgmh-wrap .rgmh-logo--small img { height: var(--rgmh-logo-small-h); width: auto; max-width: 160px; object-fit: contain; }
.rgmh-wrap .rgmh-logo--main { justify-self: center; justify-content: center; min-width: 0; }
.rgmh-wrap .rgmh-logo--main img { height: var(--rgmh-logo-main-h); width: auto; max-width: 100%; object-fit: contain; }
.rgmh-wrap .rgmh-logo__text {
	font-family: var(--rgmh-serif);
	font-size: clamp(22px, 2.4vw, 34px);
	font-weight: 700;
	color: var(--rgmh-navy);
	letter-spacing: .04em;
	text-align: center;
}

/* ---------- nav pill ---------- */
.rgmh-wrap .rgmh-nav { justify-self: start; max-width: 100%; min-width: 0; }

.rgmh-wrap .rgmh-nav__pill {
	background: var(--rgmh-pill);
	border-radius: 30px;
	padding: 10px 18px;
}

.rgmh-wrap .rgmh-menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 2px 4px;
}

.rgmh-wrap .rgmh-item { display: flex; align-items: center; position: static; }

.rgmh-wrap .rgmh-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 12px 16px;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--rgmh-navy);
	white-space: nowrap;
	transition: color .2s ease, background-color .2s ease;
}

.rgmh-wrap .rgmh-link::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--rgmh-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--rgmh-ease);
}

.rgmh-wrap .rgmh-has-drop > .rgmh-link { padding-right: 8px; }
.rgmh-wrap .rgmh-has-drop > .rgmh-link::after { right: 8px; }

.rgmh-wrap .rgmh-item:hover > .rgmh-link,
.rgmh-wrap .rgmh-item.is-open > .rgmh-link { color: var(--rgmh-green); }

.rgmh-wrap .rgmh-item:hover > .rgmh-link::after,
.rgmh-wrap .rgmh-item.is-open > .rgmh-link::after { transform: scaleX(1); }

.rgmh-wrap .rgmh-item.is-current > .rgmh-link {
	background: var(--rgmh-yellow);
	color: var(--rgmh-navy);
}
.rgmh-wrap .rgmh-item.is-current > .rgmh-link::after { display: none; }

.rgmh-wrap .rgmh-chev {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 30px;
	margin-left: -4px;
	margin-right: 4px;
	border-radius: 50%;
	color: var(--rgmh-navy);
}
.rgmh-wrap .rgmh-chev .rgmh-ico { transition: transform .25s var(--rgmh-ease); }
.rgmh-wrap .rgmh-item.is-open > .rgmh-chev .rgmh-ico { transform: rotate(180deg); }
.rgmh-wrap .rgmh-item.is-open > .rgmh-chev,
.rgmh-wrap .rgmh-chev:hover { color: var(--rgmh-green); }

.rgmh-wrap .rgmh-placeholder { margin: 6px 10px; font-size: 14px; }

/* ---------- plain (non-mega) dropdown ---------- */
.rgmh-wrap .rgmh-item.rgmh-has-drop:not(.rgmh-has-mega) { position: relative; }

.rgmh-wrap .rgmh-sub--d0 {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 5;
	min-width: 220px;
	max-width: min(320px, calc(100vw - 24px));
	padding: 10px;
	background: #fff;
	border-radius: 14px;
	border-top: 3px solid var(--rgmh-gold);
	box-shadow: 0 18px 40px rgba(35, 40, 80, .16);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .2s var(--rgmh-ease), transform .2s var(--rgmh-ease), visibility 0s linear .2s;
}
.rgmh-wrap .rgmh-sub--d0::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.rgmh-wrap .rgmh-item.is-open > .rgmh-sub--d0 {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
}
.rgmh-wrap .rgmh-sub--d0.is-flip { left: auto; right: 0; }

.rgmh-wrap .rgmh-sub a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	color: var(--rgmh-navy);
	transition: background-color .15s ease, color .15s ease;
}
.rgmh-wrap .rgmh-sub a:hover { background: var(--rgmh-pill); color: var(--rgmh-green); }
.rgmh-wrap .rgmh-sub .rgmh-sub { padding-left: 12px; }

/* ---------- MEGA PANEL ---------- */
.rgmh-wrap .rgmh-mega {
	position: absolute;
	top: calc(100% - 6px);
	left: 50%;
	z-index: 5;
	width: min(var(--rgmh-mega-w), calc(100% - 24px));
	max-width: 100%;
	max-height: calc(100vh - var(--rgmh-panel-top, 160px) - 16px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	border-radius: 18px;
	border-top: 3px solid var(--rgmh-gold);
	box-shadow: 0 24px 60px rgba(35, 40, 80, .20), 0 2px 8px rgba(35, 40, 80, .08);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity .22s var(--rgmh-ease), transform .26s var(--rgmh-ease), visibility 0s linear .26s;
}

/* invisible bridge so the pointer can travel from the link to the panel */
.rgmh-wrap .rgmh-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -26px;
	height: 26px;
}

.rgmh-wrap .rgmh-item.is-open > .rgmh-mega {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
	transition-delay: 0s;
}

.rgmh-wrap .rgmh-mega__inner {
	display: grid;
	grid-template-columns: minmax(150px, .75fr) minmax(0, 1.55fr) minmax(0, 2fr);
	align-items: stretch;
	min-width: 0;
}

.rgmh-wrap .rgmh-mega__inner > * { min-width: 0; }

.rgmh-wrap .rgmh-mega__list,
.rgmh-wrap .rgmh-mega__cards { padding: 28px clamp(16px, 2vw, 30px) 30px; }

.rgmh-wrap .rgmh-mega__list { border-right: 1px solid rgba(201, 154, 46, .35); }

.rgmh-wrap .rgmh-mega__title {
	margin: 0 0 22px;
	font-family: var(--rgmh-serif);
	font-size: clamp(24px, 2.4vw, 36px);
	font-weight: 600;
	line-height: 1.12;
	color: var(--rgmh-navy);
	overflow-wrap: anywhere;
}

/* column 1 — list */
.rgmh-wrap .rgmh-mega__list ul { display: grid; gap: 4px; }
.rgmh-wrap .rgmh-mega__list a {
	position: relative;
	display: block;
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 19px;
	font-weight: 500;
	color: var(--rgmh-navy);
	overflow-wrap: anywhere;
	transition: background-color .18s ease, color .18s ease, padding-left .18s var(--rgmh-ease);
}
.rgmh-wrap .rgmh-mega__list a:hover,
.rgmh-wrap .rgmh-mega__list a.is-hot {
	background: var(--rgmh-pill);
	color: var(--rgmh-green);
	padding-left: 20px;
}

/* column 2 — circular cards */
.rgmh-wrap .rgmh-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 26px 14px;
}

.rgmh-wrap .rgmh-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	color: var(--rgmh-navy);
}

.rgmh-wrap .rgmh-card__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(112px, 100%);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--rgmh-pill);
	border: 3px solid transparent;
	box-shadow: 0 0 0 1px rgba(35, 40, 80, .08);
	transition: border-color .2s ease, transform .25s var(--rgmh-ease), box-shadow .2s ease;
}
.rgmh-wrap .rgmh-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--rgmh-ease); }

.rgmh-wrap .rgmh-card__fallback {
	font-family: var(--rgmh-serif);
	font-size: 36px;
	font-weight: 700;
	color: var(--rgmh-navy);
}

.rgmh-wrap .rgmh-card__name {
	font-family: var(--rgmh-serif);
	font-size: clamp(17px, 1.5vw, 21px);
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
	transition: color .2s ease;
}

.rgmh-wrap .rgmh-card:hover .rgmh-card__img,
.rgmh-wrap .rgmh-card.is-hot .rgmh-card__img {
	border-color: var(--rgmh-gold);
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(35, 40, 80, .16);
}
.rgmh-wrap .rgmh-card:hover .rgmh-card__img img { transform: scale(1.08); }
.rgmh-wrap .rgmh-card:hover .rgmh-card__name,
.rgmh-wrap .rgmh-card.is-hot .rgmh-card__name { color: var(--rgmh-green); }

/* entrance animation (re-runs on every open) */
.rgmh-wrap .rgmh-item.is-open .rgmh-card,
.rgmh-wrap .rgmh-item.is-open .rgmh-mega__list li {
	animation: rgmh-rise .38s var(--rgmh-ease) both;
	animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes rgmh-rise {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

/* column 3 — featured image */
.rgmh-wrap .rgmh-mega__feature {
	position: relative;
	align-self: stretch;
	margin: 28px clamp(16px, 2vw, 30px) 30px 0;
	min-height: 260px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--rgmh-navy);
}

.rgmh-wrap .rgmh-slide {
	position: absolute;
	inset: 0;
	display: block;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility 0s linear .35s;
}
.rgmh-wrap .rgmh-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.rgmh-wrap .rgmh-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rgmh-wrap .rgmh-slide__blank { position: absolute; inset: 0; background: linear-gradient(135deg, var(--rgmh-navy), #3a4080); }
.rgmh-wrap .rgmh-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 24, 56, .72) 0%, rgba(20, 24, 56, 0) 58%);
	pointer-events: none;
}
.rgmh-wrap .rgmh-slide__label {
	position: absolute;
	z-index: 1;
	left: clamp(16px, 3vw, 34px);
	right: clamp(16px, 3vw, 34px);
	bottom: clamp(12px, 2vw, 24px);
	font-family: var(--rgmh-serif);
	font-size: clamp(30px, 4.2vw, 62px);
	font-weight: 600;
	line-height: 1.05;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
	overflow-wrap: anywhere;
}

/* ---------- tools (search / user / cart) ---------- */
.rgmh-wrap .rgmh-tools {
	justify-self: end;
	width: 100%;
	max-width: 560px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 26px);
	padding: 16px 22px;
	background: var(--rgmh-pill);
	border-radius: 30px;
}

.rgmh-wrap .rgmh-search { position: relative; flex: 1 1 auto; min-width: 0; }

.rgmh-wrap .rgmh-search__form {
	display: flex;
	align-items: stretch;
	height: 52px;
	background: #fff;
	border: 2px solid var(--rgmh-navy);
	border-radius: 999px;
	overflow: hidden;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.rgmh-wrap .rgmh-search__form:focus-within {
	border-color: var(--rgmh-green);
	box-shadow: 0 0 0 4px rgba(52, 127, 54, .16);
}

.rgmh-wrap .rgmh-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 20px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
	font: inherit;
	font-size: 18px;
	color: var(--rgmh-navy);
	-webkit-appearance: none;
	appearance: none;
}
.rgmh-wrap .rgmh-search__input::placeholder { color: rgba(35, 40, 80, .62); opacity: 1; }
.rgmh-wrap .rgmh-search__input::-webkit-search-cancel-button { display: none; }

.rgmh-wrap .rgmh-search__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 62px;
	background: rgba(35, 40, 80, .09);
	color: var(--rgmh-navy);
	transition: background-color .2s ease;
}
.rgmh-wrap .rgmh-search__btn:hover { background: var(--rgmh-yellow); }

.rgmh-wrap .rgmh-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	font-size: 18px;
	font-weight: 500;
	color: var(--rgmh-navy);
	transition: color .2s ease;
}
.rgmh-wrap .rgmh-user .rgmh-ico { color: var(--rgmh-green); }
.rgmh-wrap .rgmh-user:hover { color: var(--rgmh-green); }

.rgmh-wrap .rgmh-cart {
	position: relative;
	display: inline-flex;
	flex: none;
	padding: 4px;
	color: var(--rgmh-navy);
	transition: color .2s ease, transform .2s var(--rgmh-ease);
}
.rgmh-wrap .rgmh-cart:hover { color: var(--rgmh-green); transform: translateY(-1px); }

.rgmh-wrap .rgmh-cart-count {
	position: absolute;
	top: -5px;
	right: -7px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--rgmh-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}
.rgmh-wrap .rgmh-cart-count.is-empty { background: var(--rgmh-gold); }

/* live search results */
.rgmh-wrap .rgmh-live {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 8;
	min-width: min(340px, calc(100vw - 24px));
	max-height: min(70vh, 460px);
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(35, 40, 80, .20);
	padding: 8px;
}
.rgmh-wrap .rgmh-live[hidden] { display: none; }

.rgmh-wrap .rgmh-live__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 10px;
	transition: background-color .15s ease;
}
.rgmh-wrap .rgmh-live__row:hover,
.rgmh-wrap .rgmh-live__row:focus { background: var(--rgmh-pill); }
.rgmh-wrap .rgmh-live__row img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: none; }
.rgmh-wrap .rgmh-live__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.rgmh-wrap .rgmh-live__p { display: block; font-size: 14px; color: var(--rgmh-green); }
.rgmh-wrap .rgmh-live__msg { padding: 12px 14px; font-size: 15px; }
.rgmh-wrap .rgmh-live__all {
	display: block;
	margin-top: 4px;
	padding: 11px 14px;
	border-radius: 10px;
	background: var(--rgmh-navy);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}
.rgmh-wrap .rgmh-live__all:hover { background: var(--rgmh-green); color: #fff; }

/* burger (mobile only) */
.rgmh-wrap .rgmh-burger { display: none; }

/* ---------- medium desktops ---------- */
@media (max-width: 1280px) {
	.rgmh-wrap .rgmh-shell { gap: 14px; }
	.rgmh-wrap .rgmh-link { padding: 12px 11px; font-size: 16px; }
	.rgmh-wrap .rgmh-has-drop > .rgmh-link { padding-right: 6px; }
	.rgmh-wrap .rgmh-tools { max-width: 440px; padding: 14px 16px; }
}

@media (max-width: 1100px) {
	.rgmh-wrap .rgmh-shell { gap: 10px; }
	.rgmh-wrap .rgmh-nav__pill { padding: 8px 10px; }
	.rgmh-wrap .rgmh-link { padding: 10px 8px; font-size: 15px; }
	.rgmh-wrap .rgmh-has-drop > .rgmh-link { padding-right: 4px; }
	.rgmh-wrap .rgmh-link::after { left: 8px; right: 8px; }
	.rgmh-wrap .rgmh-tools { max-width: 330px; padding: 12px 14px; gap: 10px; }
	.rgmh-wrap .rgmh-search__input { font-size: 16px; padding: 0 14px; }
	.rgmh-wrap .rgmh-search__btn { width: 52px; }
	.rgmh-wrap .rgmh-user__label { display: none; }
	.rgmh-wrap .rgmh-logo--main img { height: calc(var(--rgmh-logo-main-h) * .75); }
	.rgmh-wrap .rgmh-logo--small { display: none; }
	.rgmh-wrap .rgmh-mega__inner { grid-template-columns: minmax(130px, .7fr) minmax(0, 1.6fr) minmax(0, 1.5fr); }
}

/* ==========================================================================
   MOBILE / TABLET — drawer + accordion mega
   ========================================================================== */
@media (max-width: 991px) {
	.rgmh-wrap .rgmh-shell {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto auto;
		grid-template-areas:
			"burger logo user cart"
			"search search search search";
		align-items: center;
		gap: 10px 14px;
		padding: 10px 14px 12px;
	}

	.rgmh-wrap .rgmh-burger {
		grid-area: burger;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		border-radius: 14px;
		background: var(--rgmh-pill);
		color: var(--rgmh-navy);
	}
	.rgmh-wrap .rgmh-burger__close { display: none; }
	.rgmh-wrap .rgmh-burger[aria-expanded="true"] .rgmh-burger__open { display: none; }
	.rgmh-wrap .rgmh-burger[aria-expanded="true"] .rgmh-burger__close { display: block; }

	.rgmh-wrap .rgmh-logo--main { grid-area: logo; justify-content: center; }
	.rgmh-wrap .rgmh-logo--main img { height: calc(var(--rgmh-logo-main-h) * .62); max-height: 64px; }

	/* tools flatten into the grid */
	.rgmh-wrap .rgmh-tools { display: contents; }
	.rgmh-wrap .rgmh-search { grid-area: search; }
	.rgmh-wrap .rgmh-search__form { height: 46px; background: #fff; }
	.rgmh-wrap .rgmh-user { grid-area: user; }
	.rgmh-wrap .rgmh-cart { grid-area: cart; }

	/* drawer */
	.rgmh-wrap .rgmh-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 6;
		display: none;
		max-height: calc(100vh - var(--rgmh-panel-top, 120px));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		border-top: 3px solid var(--rgmh-gold);
		box-shadow: 0 24px 40px rgba(35, 40, 80, .18);
	}
	.rgmh-wrap .rgmh-nav.is-open { display: block; }

	.rgmh-wrap .rgmh-nav__pill { background: transparent; border-radius: 0; padding: 8px 14px 16px; }
	.rgmh-wrap .rgmh-menu { display: block; }

	.rgmh-wrap .rgmh-item {
		flex-wrap: wrap;
		border-bottom: 1px solid rgba(35, 40, 80, .08);
	}
	.rgmh-wrap .rgmh-item:last-child { border-bottom: 0; }

	.rgmh-wrap .rgmh-link { flex: 1 1 0; min-width: 0; padding: 16px 8px; font-size: 18px; white-space: normal; border-radius: 10px; }
	.rgmh-wrap .rgmh-link::after { display: none; }
	.rgmh-wrap .rgmh-chev { width: 46px; height: 46px; margin: 0; }

	/* mega + dropdown become inline accordions */
	.rgmh-wrap .rgmh-mega,
	.rgmh-wrap .rgmh-sub--d0 {
		position: static;
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		max-height: none;
		display: none;
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: none;
		border-radius: 12px;
		border-top: 0;
		box-shadow: none;
		background: var(--rgmh-pill);
		margin: 0 0 12px;
		padding: 0;
		overflow: visible;
	}
	.rgmh-wrap .rgmh-mega::before,
	.rgmh-wrap .rgmh-sub--d0::before { display: none; }
	.rgmh-wrap .rgmh-item.is-open > .rgmh-mega,
	.rgmh-wrap .rgmh-item.is-open > .rgmh-sub--d0 { display: block; transform: none; }

	.rgmh-wrap .rgmh-sub--d0 { padding: 6px; }

	.rgmh-wrap .rgmh-mega__inner { display: block; }
	.rgmh-wrap .rgmh-mega__list,
	.rgmh-wrap .rgmh-mega__feature { display: none; }
	.rgmh-wrap .rgmh-mega__cards { padding: 16px 12px 18px; }
	.rgmh-wrap .rgmh-mega__title { font-size: 22px; margin-bottom: 14px; }
	.rgmh-wrap .rgmh-cards { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 18px 10px; }
	.rgmh-wrap .rgmh-card__img { width: min(84px, 100%); }
	.rgmh-wrap .rgmh-card__name { font-size: 16px; }
}

@media (max-width: 480px) {
	.rgmh-wrap .rgmh-user__label { display: none; }
	.rgmh-wrap .rgmh-bar__in { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.rgmh-wrap *,
	.rgmh-wrap *::before,
	.rgmh-wrap *::after {
		animation: none !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
}
