/* One header for the marketing site and the blog.
   Loaded by both so a click cannot move the labels. */

html {
  scrollbar-gutter: stable;
}

html.bv-locale-pending body {
  visibility: hidden;
}

html.bv-lang-chosen #bv-lang-prompt {
  display: none;
}

.bv-lang-prompt {
  position: fixed;
  z-index: 60;
  left: 1rem;
  bottom: 1rem;
  max-width: 22rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #14161a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

html[dir="rtl"] .bv-lang-prompt {
  left: auto;
  right: 1rem;
}

.bv-lang-prompt p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #e5e7eb;
}

.bv-lang-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bv-lang-prompt-change,
.bv-lang-prompt-keep {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.bv-lang-prompt-change {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bv-lang-prompt-keep {
  background: #e88628;
  color: #fff;
}

.site-header-bar {
  min-height: 4rem;
}

.site-header-links,
.site-header-links a,
.site-header-actions,
.site-header-actions a,
.lang-menu > summary,
.lang-menu > button {
  white-space: nowrap;
}

.lang-menu {
  display: inline-block;
  width: max-content;
  position: relative;
  flex-shrink: 0;
}

.lang-menu > summary,
.lang-menu > button {
  display: inline-flex;
  list-style: none;
}

.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.lang-menu-up > div[role="menu"] {
  top: auto;
  bottom: calc(100% + 0.5rem);
}

.site-header-login,
.site-header-start {
  display: none;
}

@media (min-width: 768px) {
  .site-header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0;
    align-items: center;
  }

  .site-header-links {
    display: flex;
    justify-content: center;
    justify-self: center;
  }

  .site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 0.75rem;
  }

  .site-header-login,
  .site-header-start {
    display: inline-flex;
    align-items: center;
  }
}
