/* Global navigation (D28, theme 0.8.1): compact floating panels beneath the bar on desktop, expandable groups in the
   menu sheet. Mounted in both header designs (the approved Egypt bar .bar and the older floating bar .rx-fb), so every
   rule is scoped to the component. Mobile first: the base is the sheet; the desktop navigation appears from 1024 px.
   Light Luxury: white panels, ink text, graphite notes, mist image tiles, hairlines, near-square corners, slow-out
   easing; motion is opacity and small translations only, 150-240 ms, and never delays a link. */

.rx-mm, .rx-mmm {
	/* Component tokens, from the approved Light Luxury palette (the hosts' own variables where they exist). */
	--mm-ink: var(--ink, #121416);
	--mm-graphite: var(--graphite, #5a6066);
	--mm-paper: #ffffff;
	--mm-mist: #f6f7f7;
	--mm-mist-deep: #eceeee;
	--mm-line: rgba(18, 20, 22, .1);
	--mm-ease: cubic-bezier(.2, .7, .1, 1);
	--mm-radius: 2px;
	--mm-in: 200ms;
	--mm-out: 130ms;
	--mm-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Links keep their ink in every state, whatever global link colours a page's older stylesheet sets. */
.rx-mm .rx-mm__panel a, .rx-mm .rx-mm__panel a:hover, .rx-mm .rx-mm__panel a:focus,
.rx-mmm a, .rx-mmm a:hover, .rx-mmm a:focus { color: var(--mm-ink); }
.rx-mmm .rx-mmm__cta, .rx-mmm .rx-mmm__cta:hover, .rx-mmm .rx-mmm__cta:focus { color: #fff; }

/* ---------- Shared pieces ---------- */
.rx-mm__media { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 1; background: var(--mm-mist); border-radius: var(--mm-radius); }
.rx-mm__media img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; transition: transform 320ms var(--mm-ease); }
.rx-mm__media--studio img { mix-blend-mode: multiply; } /* white studio backdrop takes the tile's tone */
.rx-mm__media--photo img { object-fit: cover; object-position: 55% 60%; }
.rx-mm__media--plate { display: grid; place-items: center; }
.rx-mm__media--plate span { font-size: 13px; font-weight: 300; letter-spacing: .3em; color: var(--mm-graphite); }
.rx-mm__name { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--mm-ink); }
.rx-mm__desc { display: block; margin-block-start: 3px; font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--mm-graphite); }
.rx-mm__arrow { flex: none; color: var(--mm-ink); transition: transform 200ms var(--mm-ease), opacity 200ms var(--mm-ease); }
.rx-mm__chev { flex: none; transition: transform 200ms var(--mm-ease); }
[aria-expanded="true"] > .rx-mm__chev { transform: rotate(180deg); }

/* ---------- Menu sheet (all widths below 1024 px; the sheet opens from the bar's Menu button) ---------- */
.rx-mmm { display: flex; flex-direction: column; font-family: var(--mm-font); color: var(--mm-ink); }
.rx-mmm__group { border-block-end: 1px solid var(--mm-line); }
.rx-mmm__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; inline-size: 100%; min-block-size: 56px;
	margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: start; text-decoration: none;
	font: 600 19px/1.2 var(--mm-font); letter-spacing: -.01em;
}
.rx-mmm__head .rx-mm__chev { inline-size: 14px; block-size: 14px; }
.rx-mmm__head--link { border-block-end: 1px solid var(--mm-line); }
.rx-mmm__head[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.rx-mmm__body { padding-block: 2px 18px; }
.rx-mmm__body:not([hidden]) { animation: rx-mm-in var(--mm-in) var(--mm-ease); }
.rx-mmm__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rx-mmm__card { display: block; min-block-size: 44px; color: inherit; text-decoration: none; }
.rx-mmm__card .rx-mm__name { margin-block-start: 10px; font-size: 15px; }
.rx-mmm__card .rx-mm__desc { font-size: 12px; }
.rx-mmm__card[aria-current] .rx-mm__media { box-shadow: inset 0 0 0 1px var(--mm-ink); }
.rx-mmm__links { display: grid; margin: 0; padding: 0; list-style: none; }
.rx-mmm__link { display: block; padding-block: 10px; min-block-size: 44px; color: inherit; text-decoration: none; }
.rx-mmm__link .rx-mm__name { font-size: 16px; }
.rx-mmm__link[aria-current] .rx-mm__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rx-mmm__cta {
	display: flex; align-items: center; justify-content: center; min-block-size: 52px; margin-block-start: 20px; padding: 0 20px;
	background: var(--mm-ink); color: #fff; text-decoration: none; font: 600 13px/1 var(--mm-font); letter-spacing: .12em; text-transform: uppercase;
	transition: background-color 200ms var(--mm-ease);
}
.rx-mmm__cta:hover { background: #2b2f33; color: #fff; }
.rx-mmm a:focus-visible, .rx-mmm button:focus-visible { outline: 2px solid var(--mm-ink); outline-offset: 3px; }

/* The Egypt sheet: the groups take the place of the old flat list; the page behind does not scroll while it is open. */
.sheet .rx-mmm { margin-block: 8px auto; overflow-y: auto; }
html:has(dialog.sheet[open]) { overflow: hidden; }
/* The older sheet: its search button stays above the groups. */
.rx-sheet__body .rx-mmm { margin-block-start: 8px; }

/* ---------- Desktop (1024 px and wider): the navigation in the bar ---------- */
.rx-mm { display: none; font-family: var(--mm-font); }
.rx-mm__list { display: flex; align-items: center; gap: clamp(20px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.rx-mm__item { position: static; }

/* Top-level items in the approved Egypt bar: the bar's own link style (13 px, 600, tracked, hairline underline). */
.rx-mm--bar .rx-mm__top {
	display: inline-flex; align-items: center; gap: 7px; min-block-size: 44px; margin: 0; padding: 0; border: 0; background: none;
	color: inherit; cursor: pointer; text-decoration: none; white-space: nowrap;
	font: 600 13px/1 var(--mm-font); letter-spacing: .06em;
	background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 calc(100% - 10px); background-size: 0 1px;
	transition: background-size .35s var(--mm-ease);
}
.rx-mm--bar .rx-mm__top:hover, .rx-mm--bar .rx-mm__top[aria-expanded="true"], .rx-mm--bar .rx-mm__top[aria-current], .rx-mm--bar .rx-mm__top[data-current] { background-size: 100% 1px; }
.rx-mm--bar .rx-mm__top .rx-mm__chev { inline-size: 9px; block-size: 9px; opacity: .8; }
.rx-mm--fb .rx-mm__top[data-current]::after { transform: scaleX(1); }
.rx-mm .rx-mm__top:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* The panels: content-sized cards just beneath the bar, aligned to their trigger (nav.js sets --mm-x). */
.rx-mm__panel {
	position: absolute; inset-block-start: calc(100% + 10px); inset-inline-start: var(--mm-x, 0px); z-index: 1;
	padding: 10px; background: var(--mm-paper); color: var(--mm-ink); border: 1px solid var(--mm-line); border-radius: var(--mm-radius);
	box-shadow: 0 1px 2px rgba(18, 20, 22, .04), 0 28px 56px -26px rgba(18, 20, 22, .34);
	transform-origin: top left;
}
.rx-mm__panel[hidden] { display: none; }
.rx-mm__panel::before { content: ""; position: absolute; inset-inline: 0; inset-block-end: 100%; block-size: 12px; } /* pointer bridge across the gap */
.rx-mm__panel.is-in { animation: rx-mm-in var(--mm-in) var(--mm-ease); }
.rx-mm__panel.is-out { animation: rx-mm-out var(--mm-out) ease-in forwards; }
@keyframes rx-mm-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rx-mm-out { to { opacity: 0; transform: translateY(-4px); } }

/* Models: a miniature showroom, two cards side by side. */
.rx-mm__cards { display: grid; grid-template-columns: repeat(2, 236px); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rx-mm__card {
	display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 10px; padding: 0 4px 6px 0;
	color: var(--mm-ink); text-decoration: none; border-radius: var(--mm-radius);
}
.rx-mm__card .rx-mm__media { grid-column: 1 / -1; transition: background-color 240ms var(--mm-ease); }
.rx-mm__card .rx-mm__label { padding-inline-start: 4px; }
.rx-mm__card .rx-mm__arrow { margin-block-end: 6px; opacity: .55; }
.rx-mm__card:hover .rx-mm__media, .rx-mm__card:focus-visible .rx-mm__media { background: var(--mm-mist-deep); }
.rx-mm__card:hover .rx-mm__media--studio img, .rx-mm__card:focus-visible .rx-mm__media--studio img { transform: translateX(5px); }
.rx-mm__card:hover .rx-mm__arrow, .rx-mm__card:focus-visible .rx-mm__arrow { opacity: 1; transform: translateX(3px); }
.rx-mm__card[aria-current] .rx-mm__media { box-shadow: inset 0 0 0 1px var(--mm-ink); }
.rx-mm__card:focus-visible { outline: 2px solid var(--mm-ink); outline-offset: 3px; }

/* Discover: a short editorial index, one destination per line. */
.rx-mm__links { display: grid; min-inline-size: 330px; margin: 0; padding: 0; list-style: none; }
.rx-mm__links li + li { border-block-start: 1px solid var(--mm-line); }
.rx-mm__link {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 12px 13px 14px;
	color: var(--mm-ink); text-decoration: none; border-radius: var(--mm-radius); transition: background-color 200ms var(--mm-ease);
}
.rx-mm__link .rx-mm__name { font-size: 15px; }
.rx-mm__link .rx-mm__arrow { opacity: 0; transform: translateX(-4px); }
.rx-mm__link:hover, .rx-mm__link:focus-visible { background: var(--mm-mist); }
.rx-mm__link:hover .rx-mm__arrow, .rx-mm__link:focus-visible .rx-mm__arrow { opacity: 1; transform: none; }
.rx-mm__link[aria-current] .rx-mm__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rx-mm__link:focus-visible { outline: 2px solid var(--mm-ink); outline-offset: -2px; }

@media (min-width: 1024px) {
	.rx-mm { display: block; }
	/* The approved Egypt bar: the shorter navigation fits from 1024 px, so the Menu button is no longer needed there. */
	.bar .rx-mm { margin-inline-start: 12px; }
	.bar .bar__menu { display: none; }
	/* The older bar centres its navigation, as before. */
	.rx-fb .rx-mm { margin-inline: auto; }
}

/* ---------- Reduced motion: everything appears and changes at once ---------- */
@media (prefers-reduced-motion: reduce) {
	.rx-mm__panel.is-in, .rx-mm__panel.is-out, .rx-mmm__body:not([hidden]) { animation: none; }
	.rx-mm__panel.is-out { display: none; }
	.rx-mm__media img, .rx-mm__arrow, .rx-mm__chev, .rx-mm__card .rx-mm__media, .rx-mm__link, .rx-mm--bar .rx-mm__top, .rx-mmm__cta { transition: none; }
	.rx-mm__card:hover .rx-mm__media--studio img, .rx-mm__card:focus-visible .rx-mm__media--studio img { transform: none; }
}
