.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 72px;
  padding: 8px 5vw;
  border-bottom: 1px solid var(--line, #dce2e5);
  background: rgba(255, 255, 255, .96);
  color: var(--ink, #30343a);
  backdrop-filter: blur(10px);
}

.site-brand {
  display: flex;
  flex: 0 0 250px;
  min-width: 0;
  flex-direction: column;
  color: inherit;
  line-height: 1.1;
  text-decoration: none;
}

.site-brand strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
}

.site-brand span {
  overflow: hidden;
  margin-top: .25rem;
  color: var(--muted, #68747d);
  font-size: .63rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-navigation {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: .15rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-navigation a {
  flex: 0 0 auto;
  padding: .7rem .55rem;
  border-radius: 4px;
  color: inherit;
  font-size: .86rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  background: #f0f1f2;
}

.site-header-action {
  flex: 0 0 auto;
}

.site-header-action form {
  margin: 0;
}

.site-header-action button,
.site-header-action .site-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .55rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--sage, #52665f);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.site-header-action button:hover,
.site-header-action .site-logout:hover {
  background: var(--ink, #30343a);
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    gap: .5rem 1rem;
    min-height: 72px;
  }

  .site-brand {
    flex: 1 1 55%;
  }

  .site-brand span {
    display: none;
  }

  .site-navigation {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    margin: 0 -.25rem;
  }

  .site-navigation a {
    padding: .6rem .5rem;
    font-size: .78rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-inline: 1rem;
  }

  .site-brand {
    min-width: 0;
  }

  .site-navigation {
    margin-inline: -.5rem;
  }
}

.site-mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .site-header {
        gap: .5rem;
    }

    .site-brand {
        flex: 1 1 0;
    }

    .site-header > .site-navigation {
        display: none;
    }

    .site-mobile-menu {
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-mobile-menu summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line, #dce2e5);
        border-radius: 4px;
        cursor: pointer;
        list-style: none;
    }

    .site-mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .site-mobile-menu summary:hover,
    .site-mobile-menu summary:focus-visible {
        background: #f0f1f2;
    }

    .site-menu-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 22px;
    }

    .site-menu-icon span {
        height: 2px;
        background: currentColor;
    }

    .site-mobile-menu .site-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 70vh;
        max-height: 70dvh;
        margin: 0;
        padding: .5rem 1rem;
        overflow-x: hidden;
        overflow-y: auto;
        border-bottom: 1px solid var(--line, #dce2e5);
        background: #fff;
        box-shadow: 0 8px 16px #00000014;
    }

    .site-mobile-menu .site-navigation a {
        display: flex;
        align-items: center;
        min-height: 44px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .site-header-action {
        order: 2;
    }
}
