/* Keep the navigation offset inside the app. Element's modal menus temporarily
   reset body padding when locking scroll; a body offset would make the room list
   jump underneath the pointer and immediately select/close the opening menu. */
#matrixchat {
  box-sizing: border-box;
  padding-top: 56px;
}

.hub-navigation {
  position: fixed;
  /* The paint-contained #matrixchat root otherwise intercepts clicks in its padding.
     Stay above that root but below Element's menus and modal dialogs. */
  z-index: 1;
  inset: 0 0 auto;
  height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 6px 16px;
  background: #f5f8fa;
  border-bottom: 1px solid #d9e3e8;
  font: 600 14px/1.3 system-ui, sans-serif;
}

.hub-navigation-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #b6cbd8;
  border-radius: 8px;
  background: #fff;
  color: #245d83;
  text-decoration: none;
  white-space: nowrap;
}

.hub-navigation-link:hover {
  background: #e8f0f5;
  text-decoration: none;
}

.hub-navigation-link:focus-visible {
  outline: 3px solid #245d83;
  outline-offset: 2px;
}

/* Element's login view otherwise uses the full viewport inside the reduced root. */
#matrixchat .mx_AuthPage {
  height: 100%;
}
