/* Shared public-site navigation. Native details works without scripts. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
  padding-block: 24px;
  border-bottom: 1px solid var(--line, #163f321c);
  color: var(--text, #163f32);
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
  color: inherit;
}
.site-header .brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
}
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.site-header nav a:hover {
  text-decoration: none;
  color: var(--green, #287b54);
}
.site-header a:focus-visible,
.site-header summary:focus-visible {
  outline: 3px solid var(--green, #287b54);
  outline-offset: 5px;
  border-radius: 5px;
}
@media (max-width: 850px) {
  .site-header {
    width: calc(100% - 48px);
  }
}
@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 40px);
    padding-block: 15px;
  }
  .site-header .brand {
    font-size: 22px;
  }
  .site-header .brand img {
    width: 34px;
    height: 34px;
  }
}

.mobile-menu {
  display: none;
}
@media (max-width: 600px) {
  .site-header {
    position: relative;
  }
  .site-header > nav {
    display: none;
  }
  .site-header .mobile-menu {
    display: block;
    padding: 0;
    border: 0;
  }
  .mobile-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
  }
  .mobile-menu > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu > summary:hover {
    background: #163f320a;
  }
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
  }
  .menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
  }
  .mobile-menu[open] .menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu[open] .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu[open] .menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .site-header .mobile-menu nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(260px, 100%);
    background: var(--background, #f3f5ed);
    padding: 10px;
    border: 1px solid var(--line, #163f3226);
    border-radius: 14px;
    box-shadow: 0 12px 30px #163f321a;
  }
  .site-header .mobile-menu nav a {
    font-size: 16px;
    min-height: 48px;
    padding: 8px 14px;
    border-radius: 8px;
  }
  .site-header .mobile-menu nav a:hover {
    background: #163f320a;
  }
}
