.community-global-header {
  position: relative;
  z-index: auto;
  padding-top: 80px;
}

.community-global-header__top {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
}

.community-global-header__inner {
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.community-global-header__account {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--spacing-base);
  margin-left: auto;
}

.community-global-header__location,
.community-global-header__profile,
.community-global-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--neutral-tx2-title);
  background: transparent;
  font: inherit;
  text-decoration: none;
}

.community-global-header__location {
  gap: var(--spacing-micro);
  padding: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-16);
}

.community-global-header__location-icon {
  display: inline-flex;
  width: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
}

.community-global-header__location-icon img {
  display: block;
}

.community-global-header__location-arrow {
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  align-items: center;
  justify-content: center;
}

.community-global-header__location-arrow img {
  display: block;
}

.community-global-header__profile {
  width: 36px;
  aspect-ratio: 1;
  flex: 0 0 36px;
  overflow: hidden;
  border-radius: var(--radius-full);
}

.community-global-header__profile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-global-header__subnav-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.community-global-header__subnav-list {
  flex: 1 1 auto;
}

.community-global-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-2xs);
}

.community-global-header__action {
  min-height: 40px;
  gap: var(--spacing-3xs);
  padding: var(--spacing-3xs);
  color: var(--neutral-tx3-sub);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-16);
  white-space: nowrap;
}

.community-global-header__action-icon {
  display: inline-flex;
  width: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
}

.community-global-header__action-icon img {
  display: block;
}

.community-global-header__location:focus-visible,
.community-global-header__profile:focus-visible,
.community-global-header__action:focus-visible {
  outline: var(--stroke-2) solid var(--brand-primary-dark);
  outline-offset: var(--stroke-2);
}

.community-global-header__inner > :not(.community-global-header__title):not(.community-global-header__account),
.community-main .community-tools {
  display: none;
}

@media (max-width: 767px) {
  body.community-page .community-global-header {
    padding-top: 64px;
  }

  body.community-page .community-global-header__top {
    height: 64px;
  }

  body.community-page .community-global-header__inner {
    min-height: 0;
    padding: 12px 20px;
  }

  body.community-page .community-global-header .community-global-header__subnav {
    display: flex;
    height: 60px;
  }

  body.community-page .community-global-header .community-global-header__subnav-inner {
    padding: 12px 20px;
  }

  body.community-page .community-global-header .community-global-header__subnav-list {
    min-width: 0;
  }

  .community-global-header__inner {
    gap: var(--spacing-sm);
  }

  .community-global-header__account {
    gap: var(--spacing-sm);
  }

  .community-global-header__subnav-inner {
    gap: var(--spacing-sm);
    padding: 12px 20px;
    overflow: hidden;
  }

  .community-global-header__subnav-list {
    min-width: 0;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .community-global-header__subnav-list::-webkit-scrollbar {
    display: none;
  }

  .community-global-header__subnav-list li {
    flex: 0 0 auto;
  }

  .community-global-header__actions {
    gap: 0;
  }

  .community-global-header__action {
    width: 36px;
    padding: var(--spacing-3xs);
  }

  .community-global-header__action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
