.header-custom .header-name {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-custom .header-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(160px, 100%);
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
}

.menu-links a span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 800px) {
  .header-custom .header {
    grid-template-columns: minmax(90px, 18%) minmax(0, 1fr);
  }

  .header-custom .header-nav {
    justify-self: stretch;
    min-width: 0;
    gap: 12px;
  }

  .header-custom .header-links {
    position: static;
    transform: none;
    flex: 1;
    min-width: 0;
    justify-content: safe center;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .header-custom .header-nav a {
    flex-shrink: 0;
  }
}
