/* __UB_LOGO_PATCH__
   Stabilizes UrbanBooks header logo sizing/alignment across pages. */
:root {
  --ub-header-h: 72px;
  --ub-logo-h: 30px;
}

.site-header {
  min-height: var(--ub-header-h);
}

.site-header .header-inner {
  min-height: var(--ub-header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-header .brand-logo {
  height: var(--ub-logo-h);
  width: auto;
  max-width: 100%;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center center;
  vertical-align: middle;
}

.site-header .brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  :root {
    --ub-header-h: 64px;
    --ub-logo-h: 26px;
  }
}

@media (max-width: 520px) {
  .site-header .brand-name {
    display: none;
  }
}
