.site-header {
  position: relative;
  left: 50%;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 272px;
  align-items: center;
  gap: 16px;
  width: min(1120px, calc(100vw - 80px));
  height: 64px;
  min-height: 64px;
  margin: 18px 0 30px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  flex-wrap: nowrap;
  transform: translateX(-50%);
}

.site-header--flush {
  margin-top: 0;
}

.site-header > .brand,
.site-header > .wordmark,
.site-header > .privacy-brand,
.site-header > .site-brand {
  grid-column: 1;
  width: 128px;
  height: 20px;
  min-width: 0;
  white-space: nowrap;
}

.site-header > .site-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  font: 600 16px/20px 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: -.02em;
  text-decoration: none;
}

.site-header .site-brand-prompt {
  color: var(--accent);
  font: inherit;
}

.site-header > .site-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header > nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: auto;
  min-width: 0;
  height: 24px;
  line-height: 20px;
  margin: 0;
  padding-right: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.site-header > nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  color: var(--muted, var(--ink-600));
  font: 500 14px/20px 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.site-header > nav a:hover {
  color: var(--accent);
}

.site-header > nav a[aria-current="page"] {
  color: var(--accent);
}

.site-header > nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.site-header > .header-actions,
.site-header > .language-picker,
.site-header > .language,
.site-header > .lang,
.site-header > #authArea {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 104px;
  min-width: 0;
  margin: 0;
}

.site-header > .header-actions {
  width: 272px;
  flex-wrap: nowrap;
}

.site-header .header-actions #authArea {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 160px;
  min-width: 0;
  margin: 0;
  flex: 0 1 160px;
  flex-wrap: nowrap;
}

.site-header .header-actions .site-auth-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 160px;
  max-width: 160px;
  min-width: 0;
  margin: 0;
}

.site-header .site-auth-button,
.site-header .site-auth-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  overflow: hidden;
  padding: 8px 13px;
  border: 1px solid #1d2a22;
  border-radius: 5px;
  background: #1d2a22;
  color: #fff;
  font: 600 14px/20px 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header .site-auth-button:hover,
.site-header .site-auth-account:hover {
  border-color: #35483b;
  background: #35483b;
}

.site-header .site-auth-button:focus-visible,
.site-header .site-auth-account:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header .site-auth-compact {
  display: none;
}

.site-header .header-actions .language-picker {
  width: 104px;
  min-width: 104px;
  flex: 0 0 104px;
}

.site-header .language-picker {
  position: relative;
}

.site-header > .language-picker {
  width: 104px;
  min-width: 104px;
}

.site-header .language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 104px;
  min-width: 104px;
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14px/20px 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.site-header .language-trigger:focus-visible,
.site-header .language-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header .language-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}

.site-header .language-trigger[aria-expanded="true"] .language-caret {
  transform: translateY(2px) rotate(225deg);
}

.site-header .language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 100%;
  display: grid;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.site-header .language-option {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: 500 14px/20px 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.site-header .language-option:hover,
.site-header .language-option[aria-checked="true"] {
  background: var(--surface-2);
}

@media (max-width: 1148px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 40px 32px;
    gap: 8px 12px;
    height: 96px;
    min-height: 96px;
    margin-bottom: 24px;
    padding: 8px 0;
  }

  .site-header--flush {
    margin-top: 0;
  }

  .site-header > .brand,
  .site-header > .wordmark,
  .site-header > .privacy-brand {
    grid-column: 1;
    grid-row: 1;
    width: auto;
  }

  .site-header > .site-brand {
    grid-column: 1;
    grid-row: 1;
    width: 140px;
  }

  .site-header > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    height: 32px;
    min-height: 32px;
    gap: 16px;
    overflow-x: auto;
    padding-right: 4px;
    scrollbar-width: none;
  }

  .site-header > nav::-webkit-scrollbar {
    display: none;
  }

  .site-header > .header-actions,
  .site-header > .language-picker,
  .site-header > .language,
  .site-header > .lang,
  .site-header > #authArea {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
    margin: 0;
    flex-wrap: nowrap;
  }

  .site-header .header-actions #authArea {
    max-width: 160px;
    flex: 0 1 160px;
  }

  .site-header .header-actions .site-auth-area {
    max-width: 160px;
    flex-basis: 160px;
  }

  .site-header > .language-picker {
    width: 104px;
    min-width: 104px;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    left: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 40px 32px;
    gap: 8px 12px;
    width: 100%;
    height: 97px;
    min-height: 97px;
    margin: 0 auto 24px;
    padding: 8px 0;
    transform: none;
  }

  .site-header > .brand,
  .site-header > .wordmark,
  .site-header > .privacy-brand {
    grid-column: 1;
    grid-row: 1;
    width: auto;
  }

  .site-header > .site-brand {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    max-width: 100%;
  }

  .site-header > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    height: 32px;
    min-height: 32px;
    gap: 16px;
    overflow-x: auto;
    padding-right: 4px;
    scrollbar-width: none;
  }

  .site-header > nav::-webkit-scrollbar {
    display: none;
  }

  .site-header > .header-actions,
  .site-header > .language-picker,
  .site-header > .language,
  .site-header > .lang,
  .site-header > #authArea {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
    margin: 0;
    flex-wrap: nowrap;
  }

  .site-header > .language-picker {
    width: 104px;
    min-width: 104px;
  }

  .site-header > .header-actions {
    gap: 6px;
  }

  .site-header .header-actions #authArea {
    max-width: 120px;
    flex-basis: 120px;
  }

  .site-header .header-actions .site-auth-area {
    max-width: 120px;
    flex-basis: 120px;
  }

  .site-header .site-auth-button {
    padding: 8px 9px;
    font-size: 12px;
  }

  .site-header .site-auth-full {
    display: none;
  }

  .site-header .site-auth-compact {
    display: inline;
  }
}

@media (max-width: 360px) {
  .site-header .header-actions #authArea {
    max-width: 92px;
    flex-basis: 92px;
  }

  .site-header .header-actions .language-picker,
  .site-header .header-actions .language-trigger {
    width: 84px;
    min-width: 84px;
  }

  .site-header .header-actions .site-auth-area {
    max-width: 84px;
    flex-basis: 84px;
  }
}
