#back-button {
  flex-grow: 1;
  background-color: rgb(3, 109, 201);
  border: none;
  border-radius: 5px;
  color: white;
  box-shadow: 1px 1px 3px black;
}

#nav-mobile-button {
  flex-grow: 1;
}

.c1 {
  margin: 10px 10px 0 10px;
  display: flex;
  gap: 0.5rem;
}

.c2 {
  border-radius: 5px;
  height: 100%;
  justify-content: center;
  gap: 0.5rem;
  background-color: #4f91e3;
  color: white;
  /* border: 1px solid rgba(59, 130, 246, 0.5); */
}

.c2:hover {
  background-color: #3d82d9;
  color: white;
}

.c3 {
  z-index: 51;
  display: none;
  position: absolute;
  margin-top: 0.5rem;
  transform-origin: top right;
  border-radius: 0.375rem;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  outline: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  max-height: 60vh;
}

.c4 {
  margin: 10px 10px 0 10px;
  border-color: rgb(153, 192, 225);
  border-radius: 5px;
  color: rgb(3, 109, 201);
}

.articleMetrics {
  width: 100%;
  padding-left: 1.45rem;
  padding-right: 2.88rem;
}

.articleMetrics .viewCounter {
  background: linear-gradient(90deg, rgb(255 255 255) 0%, hsl(0deg 0% 93.41%) 100%);
  border-radius: .5em;
  padding: .7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c6b72;
}

.articleMetrics .viewCounter .icon {
  padding-right: 0.125rem;
}

.articleMetrics .viewCounter .articleViews {
  display: flex;
}

.articleMetrics .viewCounter .articleDownload {
  display: flex;
}

/* Responsive logo sizing based on aspect ratio */
#sidebar-left .px-2 img,
#nav-mobile img,
#titlebar-mobile img {
  /* Default: constrain to 50% for square logos */
  width: auto;
  max-width: min(50%, 300px);
  height: auto;
  object-fit: contain;
}

/* Class applied via JavaScript for rectangular logos */
#sidebar-left .px-2 img.logo-rectangular,
#nav-mobile img.logo-rectangular,
#titlebar-mobile img.logo-rectangular {
  max-width: 100%;
}

/* Class applied via JavaScript for square logos */
#sidebar-left .px-2 img.logo-square,
#nav-mobile img.logo-square,
#titlebar-mobile img.logo-square {
  max-width: min(50%, 300px);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  #sidebar-left .px-2 img {
    max-width: min(60%, 200px);
  }
  
  #sidebar-left .px-2 img.logo-rectangular {
    max-width: min(90%, 280px);
  }
}
