body.has-banner {
  --banner-height: 40px;
}

.banner {
  width: 100%;
  height: var(--banner-height);
  box-sizing: border-box;
  background: linear-gradient(90deg, #007bff 0%, #5b6ee1 100%);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 9;
}

.banner-slide {
  width: 100%;
  padding: 0 1em;
  animation: banner-fade-in 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
  flex-shrink: 0;
}

.banner-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 4px;
  margin-bottom: 2px;
}

.banner a.banner-slide:hover {
  background-color: transparent;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #f9f4dc;
}

.banner a.banner-slide:hover .banner-text {
  color: #f9f4dc;
}

@keyframes banner-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.has-banner .layout-container.home {
  height: calc(100% - 80px - var(--banner-height));
}

body.has-banner .layout-container {
  height: calc(100% - var(--banner-height));
}

body.has-banner .nav-container {
  top: var(--banner-height);
}

@media screen and (max-width: 768px) {
  body.has-banner {
    --banner-height: 36px;
  }

  .banner-slide {
    font-size: 13px;
  }

  .banner-avatar {
    width: 18px;
    height: 18px;
  }

  .banner-arrow {
    width: 14px;
    height: 14px;
  }

  .banner a.banner-slide:hover {
    text-decoration: none;
  }
}

@media print {
  .banner {
    display: none;
  }

  body.has-banner .layout-container,
  body.has-banner .layout-container.home {
    height: auto;
  }
}