eq-navbar,
.eq-navbar {
  --eq-navbar-button-size: var(--top-bar-button-size, 2.25rem);
  --eq-navbar-icon-size: var(--top-bar-icon-glyph-size, 1.5rem);
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--color-text, var(--color-fg));
}

.eq-navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: var(--eq-navbar-button-size);
  min-width: var(--eq-navbar-button-size);
  height: var(--eq-navbar-button-size);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.eq-navbar__toggle::before {
  content: "";
  width: 1.1rem;
  height: 0.8rem;
  border-top: 0.16rem solid currentColor;
  border-bottom: 0.16rem solid currentColor;
  box-shadow: 0 0.32rem 0 currentColor;
}

.eq-navbar__toggle:hover,
.eq-navbar__toggle:focus-visible {
  box-shadow: none;
  background: var(--color-surface-soft, var(--color-bg-alt));
  filter: none;
}

.eq-navbar__items {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0 0 0.15rem;
  overflow-x: auto;
  list-style: none;
  transition: width 0.18s ease, opacity 0.18s ease;
}

eq-navbar:not([open]) .eq-navbar__items,
eq-navbar:not([open]) .eq-navbar__items,
.eq-navbar:not([open]) .eq-navbar__items {
  flex: 0 1 auto;
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.eq-navbar__items li {
  flex: 0 0 auto;
}

.eq-navbar__item {
  position: relative;
  display: block;
  width: var(--eq-navbar-button-size);
  height: var(--eq-navbar-button-size);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  text-align: center;
  font: inherit;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.eq-navbar__item.active,
.eq-navbar__item:hover,
.eq-navbar__item:focus-visible,
.eq-navbar__item:active {
  background: var(--color-surface-soft, var(--color-bg-alt));
  box-shadow: none;
  filter: none;
}

.eq-navbar__item:active {
  transform: none;
}

.eq-navbar__item::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--eq-navbar-icon-size);
  height: var(--eq-navbar-icon-size);
  margin: auto;
  background: currentColor;
  -webkit-mask-image: var(--menu-icon);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--menu-icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

@media (max-width: 900px) and (pointer: coarse) {
  eq-navbar,
    eq-navbar,
  .eq-navbar {
    --eq-navbar-button-size: 3.25rem;
  }
}
