.menu-overlay {
  position: fixed;
  z-index: var(--z-menu);
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  color: var(--linen);
}

.menu-overlay:target,
.menu-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.menu-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(26, 16, 8, .96), rgba(20, 12, 6, .95));
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
}

.menu-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 34rem);
  height: 100%;
  min-height: 0;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(min-content, 1fr) auto auto;
  gap: clamp(.35rem, 1.4svh, .85rem);
  margin-inline: auto;
  padding: max(.65rem, env(safe-area-inset-top)) max(var(--space-2), env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(var(--space-2), env(safe-area-inset-left));
  overflow-y: auto;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.menu-top {
  display: flex;
  justify-content: flex-end;
}

.menu-close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(236, 229, 214, .42);
  border-radius: 50%;
  color: var(--linen);
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.venue-nav {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
}

.venue-row {
  --jamb: var(--parq-jamb-dark);
  position: relative;
  display: grid;
  min-height: 4rem;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  padding: calc(var(--mark-h) / 2) 0;
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--linen);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.venue-row:first-child {
  border-top: 1px solid var(--hairline-dark);
}

.venue-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--jamb);
  content: "";
  transform: scaleY(0);
  transform-origin: top;
}

.venue-row[aria-current="page"]::before {
  transform: scaleY(1);
}

.venue-row--vodojemy { --jamb: var(--vodojemy-jamb-dark); }
.venue-row--molo { --jamb: var(--molo-jamb-dark); }
.venue-row--tocna { --jamb: var(--tocna-jamb-dark); }
.venue-row--bistro { --jamb: var(--bistro-jamb-dark); }
.venue-row--catering { --jamb: var(--catering-jamb-dark); }

.venue-mark {
  width: auto;
  height: var(--mark-h);
  max-width: 100%;
  color: var(--linen);
  overflow: visible;
}

.venue-mark path:not([fill]),
.venue-mark [fill]:not([fill="none"]) {
  fill: currentColor;
}

.venue-mark [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

/* Every mark's height, optically normalised per design-direction §4; the width follows each
   mark's own viewBox. The Bistro Soul logomanual (p.7) asks for a clear zone of half the mark's
   height on every side - every placement (header, bay, rail, these rows, the venue page) derives
   its padding from --mark-h / 2. */
.venue-row--parq { --mark-h: 26px; }
.venue-row--molo { --mark-h: 45px; }
.venue-row--bistro { --mark-h: 45px; }
.venue-row--tocna { --mark-h: 36px; }
.venue-row--vodojemy { --mark-h: 45px; }
.venue-row--catering { --mark-h: 45px; }

.venue-destination {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  color: var(--linen);
  font-family: var(--font-meta);
  font-size: var(--fs-meta);
  line-height: 1.2;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.venue-arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-.35rem);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 4vw, 1.75rem);
}

.section-nav a {
  max-width: 100%;
  min-height: 2.75rem;
  padding: .55rem .1rem .35rem;
  border-bottom: 2px solid transparent;
  color: var(--linen);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6svh, 1.4rem);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-meta);
  font-size: var(--fs-meta);
}

.language-switch {
  display: flex;
  align-items: center;
}

.language-switch a,
.language-switch span {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  color: var(--linen);
}

.language-switch [aria-hidden="true"] {
  min-width: .75rem;
}

.language-switch a {
  font-weight: 700;
  text-underline-offset: .22em;
}

.language-switch [aria-current="true"] {
  font-weight: 700;
}

.menu-motto {
  min-height: 15px;
  margin: 0;
  color: var(--linen);
  font-family: var(--font-meta);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: max(15px, 1.4em);
  text-align: right;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 47.999rem) {
  .venue-row {
    min-height: 3.5rem;
    padding-block: .25rem;
  }

  .venue-row--parq { --mark-h: 22px; }
  .venue-row--molo { --mark-h: 38px; }
  .venue-row--bistro { --mark-h: 38px; }
  .venue-row--tocna { --mark-h: 30px; }
  .venue-row--vodojemy { --mark-h: 38px; }
  .venue-row--catering { --mark-h: 38px; }

  .venue-destination {
    font-size: .7rem;
  }

  .section-nav {
    gap: clamp(.55rem, 3.5vw, 1rem);
  }

  .menu-motto {
    font-size: .55rem;
    letter-spacing: .06em;
  }
}

@media (hover: none) {
  .venue-arrow {
    opacity: .8;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .menu-overlay {
    transition: opacity var(--t-menu) var(--ease-dolly), visibility 0s linear var(--t-menu);
  }

  .menu-overlay:target,
  .menu-overlay.is-open {
    transition-delay: 0s;
  }

  .menu-panel {
    transform: translateY(.75rem);
    transition: transform var(--t-menu) var(--ease-dolly);
  }

  .menu-overlay:target .menu-panel,
  .menu-overlay.is-open .menu-panel {
    transform: none;
  }

  .venue-row {
    transition: background-color var(--t-plate-out) var(--ease-dolly), padding-left var(--t-plate-out) var(--ease-dolly);
  }

  .venue-row::before {
    transition: transform var(--t-jamb) var(--ease-dolly) var(--delay-jamb);
  }

  .venue-arrow {
    transition: opacity var(--t-plate-out) var(--ease-dolly), transform var(--t-plate-out) var(--ease-dolly);
  }

  .venue-row:hover,
  .venue-row:focus-visible {
    padding-left: 1rem;
    background: rgba(236, 229, 214, .06);
  }

  .venue-row:hover::before,
  .venue-row:focus-visible::before {
    transform: scaleY(1);
  }

  .venue-row:hover .venue-arrow,
  .venue-row:focus-visible .venue-arrow {
    opacity: 1;
    transform: none;
  }

  .section-nav a,
  .menu-close {
    transition: border-color var(--t-plate-out) var(--ease-dolly), color var(--t-plate-out) var(--ease-dolly);
  }

  .section-nav a:hover,
  .section-nav a:focus-visible {
    border-bottom-color: var(--focus-dark);
    color: var(--focus-dark);
  }

  .menu-close:hover,
  .menu-close:focus-visible {
    border-color: var(--focus-dark);
    color: var(--focus-dark);
  }
}
