/* Logo, or the site name in the portal's gradient wordmark when there is no logo. */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  min-height: var(--tap);
  text-decoration: none;
}

/* Angled striped marker beside the brand, as in the portal header. Shown from 48rem up. */
.brand::after {
  content: "";
  display: none;
  flex: 0 0 34px;
  height: 10px;
  background: var(--hud-stripes);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.brand__logo {
  width: auto;
  max-width: 100%;
  height: 2.25rem;
  object-fit: contain;
}

.brand__name {
  min-width: 0;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: var(--text-xs);
  font-weight: var(--weight-headline);
  letter-spacing: var(--tracking-button);
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.brand--small .brand__logo {
  height: 2rem;
}

/* 48rem = 768px */
@media (min-width: 48rem) {
  .brand::after {
    display: flex;
  }

  .brand--small::after {
    display: none;
  }

  .brand__name {
    font-size: var(--text-base);
    letter-spacing: var(--tracking-brand);
  }

  .brand__logo {
    height: 2.5rem;
  }
}
