/* The shared site header (src/site/header.tsx): marketing pages and the app's login page. */
.sh {
  --sh-h: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e6e6e1;
  background: #ffffff;
  color: #0b0b0c;
  font: 500 15px/1.2 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.sh *,
.sh *::before,
.sh *::after {
  box-sizing: border-box;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

.sh__in {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  height: var(--sh-h);
  margin: 0 auto;
  padding: 0 16px;
}

.sh__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  border-radius: 8px;
}

.sh__logo img {
  display: block;
  width: auto;
  height: 28px;
}

.sh a {
  color: #0b0b0c;
  text-decoration: none;
}

.sh a:focus-visible,
.sh button:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 2px;
}

.sh ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh [hidden] {
  display: none !important;
}

.sh__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

/* Lime always carries dark ink, in every link state. */
.sh .sh__btn--primary,
.sh .sh__btn--primary:link,
.sh .sh__btn--primary:visited,
.sh .sh__btn--primary:hover,
.sh .sh__btn--primary:active {
  background: #d4ff3a;
  border-color: #d4ff3a;
  color: #0b0b0c;
}

.sh .sh__btn--primary:hover {
  background: #c6f21f;
  border-color: #c6f21f;
}

.sh .sh__btn--ghost {
  border-color: #d6d6cf;
  background: #ffffff;
  color: #0b0b0c;
}

.sh .sh__btn--ghost:hover {
  border-color: #0b0b0c;
}

.sh__quick {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.sh__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e6e6e1;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.sh__burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #0b0b0c;
  transition: transform 0.2s;
}

.sh.is-open .sh__burger span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.sh.is-open .sh__burger span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.sh__nav {
  display: none;
}

.sh.is-open .sh__nav {
  position: fixed;
  inset: var(--sh-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px 16px 40px;
  overflow-y: auto;
  background: #ffffff;
}

.sh__list {
  display: flex;
  flex-direction: column;
}

.sh__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid #e6e6e1;
  font-size: 20px;
  font-weight: 600;
}

.sh__link[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.sh__actions {
  display: grid;
  gap: 10px;
}

.sh__actions .sh__btn {
  min-height: 52px;
  font-size: 16px;
}

@media (min-width: 1080px) {
  .sh__in {
    gap: 24px;
    padding: 0 24px;
  }
  .sh__logo {
    margin-right: 8px;
  }
  .sh__quick,
  .sh__burger {
    display: none !important;
  }
  .sh__nav,
  .sh.is-open .sh__nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    overflow: visible;
  }
  .sh__list {
    flex-direction: row;
    gap: 2px;
  }
  .sh .sh__link {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #3b3b42;
    font-size: 15px;
    font-weight: 500;
  }
  .sh .sh__link:hover {
    background: #f6f6f3;
    color: #0b0b0c;
  }
  .sh .sh__link[aria-current='page'] {
    background: #f6f6f3;
    color: #0b0b0c;
    text-decoration: none;
  }
  .sh__actions {
    display: flex;
    gap: 8px;
  }
  .sh__actions .sh__btn {
    min-height: 44px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh__burger span,
  .sh__btn {
    transition: none;
  }
}
