.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgb(29 40 35 / 8%);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

.site-header [hidden] { display: none !important; }

.site-header .header-inner {
  display: flex;
  width: min(1320px, calc(100% - 64px));
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .brand-mark { flex: none; color: var(--accent); }

.site-header .desktop-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  margin: 0;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #48534d;
  font-size: .88rem;
  font-weight: 550;
  white-space: nowrap;
  text-decoration: none;
}

.site-header nav a:hover { color: var(--accent); text-decoration: underline; }
.site-header a:focus-visible, .site-header summary:focus-visible {
  outline: 3px solid #8eaa78;
  outline-offset: 4px;
}

.site-header .account-nav-link { gap: 8px; }
.site-header .account-nav-link img {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.site-header .header-note {
  padding: 8px 12px;
  border: 1px solid #cdd4ca;
  color: var(--accent-deep, #304d39);
}

.site-header .account-navigation-error {
  margin: 0 auto;
  padding: 8px 24px;
  max-width: 1180px;
  font-size: .85rem;
  color: var(--muted);
}

.site-header .mobile-menu { display: none; }

@media (max-width: 1000px) {
  .site-header .header-inner { width: calc(100% - 48px); min-height: 74px; }
  .site-header .desktop-nav { display: none; }
  .site-header .mobile-menu { position: relative; display: block; }
  .site-header .mobile-menu summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .site-header .mobile-menu summary::-webkit-details-marker { display: none; }
  .site-header .menu-icon, .site-header .menu-icon::before, .site-header .menu-icon::after {
    display: block;
    width: 17px;
    height: 1.5px;
    background: currentColor;
  }
  .site-header .menu-icon { position: relative; }
  .site-header .menu-icon::before, .site-header .menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }
  .site-header .menu-icon::before { top: -5px; }
  .site-header .menu-icon::after { top: 5px; }
  .site-header .mobile-nav {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(280px, calc(100vw - 48px));
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    margin: 0;
    padding: 7px 18px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 36px rgb(34 44 37 / 12%);
  }
  .site-header .mobile-nav a { padding-block: 12px; }
  .site-header .mobile-nav .header-note { margin-block: 8px; justify-content: center; }
}

@media (max-width: 520px) {
  .site-header .header-inner { width: calc(100% - 40px); }
  .site-header .brand { font-size: 1.1rem; }
}
