/* Baltz Street: Floating top bar: menu pill, Updates, avatar menu, banners. */

.mapbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.mapbar > * {
  pointer-events: auto;
}

.mapbar-l,
.mapbar-r {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mapbar.menu-open {
  z-index: 30;
}

.memenu {
  position: relative;
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  background: var(--paper);
  border-radius: 16px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}

.menu[hidden] {
  display: none;
}

.mi {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: calc(0px + var(--nudge)) 12px calc(0px - var(--nudge));
  border-radius: 8px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.mi svg {
  flex: none;
  color: var(--muted);
  margin-top: calc(-1 * var(--nudge));
}

.mi:hover,
.mi:focus-visible {
  background: var(--paper-2);
  outline: none;
}

.mi + .mi {
  margin-top: 4px;
}

.mi[hidden] {
  display: none;
}

.menu > .seg ~ .mi:not([hidden]) {
  margin-top: 4px;
}

.menu-div {
  height: 1px;
  background: var(--line);
  margin: 8px -8px 7px;
}

.brand {
  background: var(--paper);
  border-radius: 22px;
  height: 44px;
  padding: 0 20px 0 12px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-pin {
  flex: none;
}

/* Overpass capitals sit 0.1em high; same correction as the pills */
.brand b {
  white-space: nowrap;
  position: relative;
  top: var(--nudge);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.01em;
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  display: block;
}

.me-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.me-btn .face {
  width: 36px;
  height: 36px;
  font-size: 14px;
  line-height: 20px;
  box-shadow: none;
}

#menuBtn {
  position: fixed;
  z-index: 12;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: max(16px, env(safe-area-inset-left, 0px));
  display: none;
}

#scrim {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: rgba(8, 12, 18, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.2, 0.9, 0.25, 1);
}

body.collapsed #scrim {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.collapsed .sheet {
  display: none;
}
