.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 3px solid var(--color-primary);
}

.header__inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-2) var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
}

.header__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
}

.header__badge img {
  display: block;
  height: 100%;
  width: auto;
}

.header__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .header {
    z-index: 70;
  }

  .header__inner {
    flex-wrap: nowrap;
  }

  .header__brand {
    position: relative;
    z-index: 80;
  }
}
