/* Compact menu (desktop 8 items, mobile 8 rows). Loaded after the page styles on purpose. */

/* logo is a real link now (the "Home" menu item was removed) */
a.nav-logo { color: inherit; text-decoration: none; }

/* ---------- mobile menu ---------- */
.mobile-menu { padding: 0; overflow: hidden; }
.mobile-menu.open { display: flex; }
@media (max-width: 768px) { .mobile-menu { bottom: calc(46px + env(safe-area-inset-bottom, 0px)); } }   /* leave the bottom bar (46px) free */

.mm-top { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 12px 0 22px; border-bottom: 1px solid var(--border); }
.mobile-menu .mm-top a.lang-switch-m { display: inline-block; border: 1px solid var(--border); padding: 6px 10px; font-size: 13px; letter-spacing: .08em; line-height: 1.2; }
.mobile-menu .mm-top .mobile-close { position: static; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; font-size: 24px; line-height: 1; color: var(--pink); }

.mm-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 22px 14px; }
.mobile-menu .mm-list .mm-link,
.mobile-menu .mm-list .mm-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0; font-size: 20px; letter-spacing: .04em; text-align: left; cursor: pointer; }
.mm-toggle .mm-arrow, .mm-chev .mm-arrow { font-size: 13px; opacity: .8; transition: transform .2s; }
.mm-toggle[aria-expanded="true"] .mm-arrow, .mm-chev[aria-expanded="true"] .mm-arrow { transform: rotate(180deg); }

.mm-split { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--border); }
.mobile-menu .mm-list .mm-split .mm-link { flex: 1 1 auto; width: auto; border-bottom: 0; }
.mobile-menu .mm-list .mm-split .mm-chev { flex: none; width: 52px; min-height: 48px; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; }
.mm-split .mobile-submenu { flex: 0 0 100%; }

.mm-group { border-bottom: 0; }
.mobile-menu .mobile-submenu { padding: 2px 0 8px 18px; border-bottom: 1px solid var(--border); }
.mobile-menu .mobile-submenu a { display: block; padding: 0; min-height: 40px; line-height: 40px; border-bottom: 0; font-size: 16px; letter-spacing: 0; }

.mm-pin { flex: none; padding: 10px 22px 12px; border-top: 1px solid var(--border); }
.mobile-menu .mm-pin a.btn-nav { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 0 !important; padding: 0 12px; border: 0; background: var(--grad); font-size: 16px; letter-spacing: .1em; color: #fff; text-align: center; }
