/* Mobile / tablet menu — shared styling (2026-10-23, middle ground).
   Targets the data-attributes every template prints ([data-menu-open], [data-mobile-menu], [data-menu-close]).
   Kept from each page's own CSS: the liquid-glass pill panel, its position and the open/close animation, the vertically
   centred, left-aligned list and the start-aligned CTA. Restyled here: the round two-line / X buttons, bigger links
   with hairline dividers, indented sub-links, with always-visible links (no per-link animation). */

/* ---- open button: two lines (the second one shorter), no circle ---- */
body button[data-menu-open] {
  position: relative; width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 0; background: none;
}
body button[data-menu-open] svg, body button[data-menu-close] svg { display: none; }
body button[data-menu-open]::before, body button[data-menu-open]::after {
  content: ''; position: absolute; right: 13px; height: 1.75px; border-radius: 2px; background: currentColor; transition: width .25s ease;
}
body button[data-menu-open]::before { top: 17px; width: 18px; }
body button[data-menu-open]::after { top: 25px; width: 11px; }
body button[data-menu-open]:hover::after { width: 18px; }

/* ---- close button: drawn X, no circle (sits in the pill's top bar, as before) ---- */
body button[data-menu-close] {
  position: relative; width: 40px; height: 40px; border-radius: 50%; padding: 0;
  border: 0; background: none; color: #fff;
  transition: transform .35s ease;
}
body button[data-menu-close]::before, body button[data-menu-close]::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 17px; height: 1.75px; border-radius: 2px; background: currentColor;
}
body button[data-menu-close]::before { transform: translate(-50%, -50%) rotate(45deg); }
body button[data-menu-close]::after { transform: translate(-50%, -50%) rotate(-45deg); }
body button[data-menu-close]:hover { color: #fff; transform: rotate(90deg); }

/* ---- glass pill: same liquid glass as before, slightly darker so the page behind never competes with the links ---- */
body [data-mobile-menu] .mobile-menu-panel {
  background: linear-gradient(120deg, rgba(255,255,255,.12), rgba(255,255,255,0) 40%), rgba(9,9,9,.72) !important;
}

/* ---- links: bigger, hairline dividers (sub-links are only indented: no vertical line) ---- */
body [data-mobile-menu] .mobile-menu-panel a:not(.cta):not(.btn) {
  display: block; color: #f7f4ee; text-decoration: none;
  font-family: 'kallisto', 'Archivo', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(17px, min(6.2vw, 3.9vh), 28px); padding: clamp(4px, 1.1vh, 11px) 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s ease;
}
body [data-mobile-menu] .mobile-menu-panel a:not(.cta):not(.btn):hover,
body [data-mobile-menu] .mobile-menu-panel a:not(.cta):not(.btn):active { color: var(--gold, var(--orange, #ff5a00)); }
body [data-mobile-menu] .mobile-submenu {
  display: flex; flex-direction: column; gap: 0; padding: clamp(2px, .5vh, 4px) 0 clamp(5px, 1.2vh, 10px) 14px !important; margin: 0 0 0 2px !important;
}
body [data-mobile-menu] .mobile-submenu a {
  font-family: 'myriad-variable', 'Inter', Arial, sans-serif !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important;
  font-size: clamp(14px, 2.4vh, 16px) !important; padding: clamp(3px, .7vh, 6px) 0 !important; border-bottom: 0 !important; color: rgba(247,244,238,.64) !important;
}
body [data-mobile-menu] .mobile-submenu a:hover { color: var(--gold, var(--orange, #ff5a00)) !important; }

/* ---- CTA: start-aligned pill as before, body font ---- */
body [data-mobile-menu] .mobile-menu-panel a.cta, body [data-mobile-menu] .mobile-menu-panel a.btn {
  align-self: flex-start !important; display: inline-flex !important; align-items: center; gap: 8px; margin-top: clamp(10px, 2vh, 22px) !important; padding: clamp(11px, 1.8vh, 14px) 24px !important;
  font-family: 'myriad-variable', 'Inter', Arial, sans-serif !important; font-weight: 700 !important; font-size: 13px !important; letter-spacing: .04em !important; text-transform: uppercase;
}

/* No per-link entrance animation on purpose: animated children inside the blurred glass panel are not painted by some browsers
   (links stayed invisible). The panel itself still fades / slides in via each page's own open transition. */

/* ---- always inside the screen: the glass pill follows the visible viewport (dynamic toolbars, notch / home bar) and, since the
   spacing above scales with the screen height, the list fits without scrolling on normal phones; very short screens scroll inside the pill ---- */
body [data-mobile-menu] { height: 100vh; height: 100dvh; max-height: 100%; }
body [data-mobile-menu] .mobile-menu-panel {
  top: max(18px, env(safe-area-inset-top)) !important; bottom: max(20px, env(safe-area-inset-bottom)) !important;
  left: max(20px, env(safe-area-inset-left)) !important; right: max(20px, env(safe-area-inset-right)) !important;
  overscroll-behavior: contain; box-sizing: border-box;
}
body [data-mobile-menu] .mobile-menu-panel { padding-top: clamp(54px, 8vh, 62px) !important; }
body [data-mobile-menu] .mobile-menu-panel > div { padding-bottom: 16px !important; }
body [data-mobile-menu] .mobile-menu-topbar { top: max(18px, env(safe-area-inset-top)) !important; }

/* ---- scrolling list: entries passing behind the logo / close button blur out and fade to the background ---- */
body [data-mobile-menu] .mobile-menu-topbar::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% + 22px);
  border-radius: 32px 32px 0 0; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: linear-gradient(to bottom, rgba(9,9,9,.82), rgba(9,9,9,.5) 55%, rgba(9,9,9,0));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
body [data-mobile-menu].is-scrolled .mobile-menu-topbar::before { opacity: 1; }
