

.nav {
  isolation: isolate;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-right: 8px;
}

.nav-toggle .bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}

.nav-toggle .bar:nth-child(1) {
  top: 12px;
}

.nav-toggle .bar:nth-child(2) {
  top: 18px;
}

.nav-toggle .bar:nth-child(3) {
  top: 24px;
}

.nav a span {
  display: inline !important;
}

.nav-open {
  overflow: hidden;
  height: 100dvh;
}

.nav-open body {
  overflow: hidden;
}

.nav a{ display:inline-flex; align-items:center; gap:8px; }

.nav{ display:grid; grid-auto-flow: column; gap: 16px; justify-content: center; justify-items: center; width: 100%; }

.nav-open{ overflow: hidden; }

@supports not (height: 100dvh) { .nav-open{ height: 100vh; } }
