/* HerdDeck final logo alignment + package copy fix */
header a:first-child,
.site-header a:first-child,
nav a:first-child,
.navbar a:first-child {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  line-height: 1 !important;
}

/* The round mark is visually lower than the wordmark; lift only the first logo image. */
header a:first-child img:first-of-type,
.site-header a:first-child img:first-of-type,
nav a:first-child img:first-of-type,
.navbar a:first-child img:first-of-type {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  transform: translateY(-7px) !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* Keep the wordmark block vertically stable next to the lifted mark. */
header a:first-child span,
header a:first-child div,
.site-header a:first-child span,
.site-header a:first-child div,
nav a:first-child span,
nav a:first-child div,
.navbar a:first-child span,
.navbar a:first-child div {
  line-height: 1 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  header a:first-child img:first-of-type,
  .site-header a:first-child img:first-of-type,
  nav a:first-child img:first-of-type,
  .navbar a:first-child img:first-of-type {
    height: 38px !important;
    max-height: 38px !important;
    transform: translateY(-6px) !important;
  }
}
