/* GuildMesh navigation v3, scoped to sidebar navigation only. */
.navigation-v3-sidebar {
  padding: 18px 14px 16px;
}

.navigation-context {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 0 2px 14px;
  padding: 12px;
  border: 1px solid #26344b;
  background: #0f1725;
}

.navigation-context-icon,
.navigation-context-fallback,
.navigation-community-context > img {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  object-fit: cover;
  border: 1px solid #34445f;
  background: #171f32;
  color: #a991ff;
  font-size: 18px;
  font-weight: 900;
}

.navigation-context strong,
.navigation-context small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navigation-context strong {
  color: #f4f7fc;
  font-size: 13px;
}

.navigation-context small {
  margin-top: 3px;
  color: #8193af;
  font-size: 10px;
}

.navigation-portal-return {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 2px 13px;
  padding: 10px 11px;
  border: 1px solid #26344b;
  color: #dce6f6;
  text-decoration: none;
}

.navigation-portal-return:hover {
  border-color: #7258d9;
  background: #141d30;
}

.navigation-portal-return > span:first-child {
  color: #9f8cff;
  font-size: 17px;
}

.navigation-portal-return strong,
.navigation-portal-return small {
  display: block;
}

.navigation-portal-return strong {
  font-size: 11px;
}

.navigation-portal-return small {
  margin-top: 2px;
  color: #8294b0;
  font-size: 9px;
}

.navigation-v3 {
  display: block;
}

.navigation-group {
  padding: 12px 0 11px;
  border-top: 1px solid #1f2b40;
}

.navigation-group:first-child {
  padding-top: 4px;
  border-top: 0;
}

.navigation-group-title {
  display: block;
  padding: 0 11px 7px;
  color: #7283a0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.navigation-v3 .nav-category-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
}

.navigation-v3 .nav-category-items > a,
.navigation-v3 .nav-coming-soon {
  min-height: 42px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border-left: 3px solid transparent;
  color: #b8c5da;
  text-decoration: none;
}

.navigation-v3 .nav-category-items > a:hover {
  background: #121c2e;
  color: #fff;
}

.navigation-v3 .nav-category-items > a.active {
  border-left-color: #8d73ff;
  background: linear-gradient(90deg, rgba(117, 87, 235, .21), rgba(117, 87, 235, .05));
  color: #fff;
}

.navigation-v3 .nav-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
}

.navigation-v3 .nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.navigation-v3 .status-pill {
  margin-left: 3px;
}

.navigation-v3 .nav-coming-soon {
  opacity: .62;
}

.navigation-v3 .nav-coming-soon > span:nth-child(2),
.navigation-v3 .nav-coming-soon small {
  display: block;
}

.navigation-v3 .nav-coming-soon small {
  margin-top: 2px;
  color: #71829e;
  font-size: 9px;
}

.navigation-v3 .status-soon {
  border-color: #38465e;
  background: #182235;
  color: #8494ad;
}

.navigation-v3 .nav-coming-soon {
  cursor: default;
  pointer-events: none;
}

.navigation-shortcuts-group {
  margin-top: 3px;
}

@media (min-width: 1025px) {
  body.global-context .app-menu-button {
    display: none !important;
  }

  body.global-context .portal-app-shell {
    display: grid !important;
    grid-template-columns: var(--gm-sidebar-width) minmax(0, 1fr) !important;
    min-height: calc(100vh - var(--gm-topbar-height));
  }

  body.global-context .global-drawer-sidebar {
    position: sticky !important;
    z-index: auto !important;
    top: var(--gm-topbar-height) !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: calc(100vh - var(--gm-topbar-height)) !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
  }

  body.global-context .portal-workspace {
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding-left: 32px;
    padding-right: 32px;
  }

  body.global-context.global-nav-open .app-sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .navigation-v3-sidebar {
    padding-top: 16px !important;
  }

  .navigation-context {
    margin-top: 0;
  }
}
