.site-header {
  position: relative;
  z-index: 40;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-canvas);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  gap: var(--space-5);
}

.site-header__brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  gap: var(--space-2);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__logo {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.site-header__brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: var(--space-4);
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__nav-list li,
.site-header__nav-list li + li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-header__nav-list a,
.site-header__mobile-extra a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__nav-list a:hover,
.site-header__mobile-extra a:hover {
  color: var(--color-coral);
}

.site-header__download {
  flex: 0 0 auto;
  white-space: nowrap;
}

.site-header__mobile-extra {
  display: none;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  gap: 5px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  background: var(--color-white);
}

.nav-toggle:hover {
  border-color: var(--color-tangerine);
  background: var(--color-blush-surface);
}

.nav-toggle__line {
  display: block;
  flex-shrink: 0;
  width: 1.25rem;
  height: 2px;
  border-radius: var(--radius-round);
  background: var(--color-ink);
  transform-origin: center;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 63.9375rem) {
  .site-header,
  .site-header__inner {
    min-height: 3.75rem;
  }

  .site-header__inner {
    justify-content: space-between;
    gap: var(--space-3);
  }

  .site-header__logo {
    width: 2.25rem;
    height: 2.25rem;
  }

  .site-header__brand {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    max-height: calc(100vh - 3.75rem);
    padding: var(--space-4) var(--container-gutter) var(--space-5);
    overflow-y: auto;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-canvas);
    box-shadow: var(--shadow-gentle);
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header__nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--color-line);
  }

  .site-header__nav-list a,
  .site-header__mobile-extra a {
    width: 100%;
    min-height: 2.75rem;
    padding: var(--space-2) 0;
    white-space: normal;
  }

  .site-header__mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .site-header__mobile-extra a {
    border-bottom: 1px solid var(--color-line);
  }

  .site-header__download {
    width: 100%;
    margin-top: var(--space-2);
  }
}

@media (max-width: 22rem) {
  .site-header__brand-name {
    font-size: 1.0625rem;
  }
}