/* Navigation components and their responsive rules.
 * Keep ordered overrides intact; see web/static/styles/README.md. */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -1px;
  font-size: 0;
  line-height: 0;
  min-height: 44px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper);
}
.brand-mark svg {
  width: 18px;
  fill: currentColor;
}
.site-header {
  height: 78px;
  border-bottom: 1px solid rgba(29, 33, 29, 0.11);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
}
.desktop-nav a {
  transition: 0.2s opacity;
}
.desktop-nav a:hover {
  opacity: 0.55;
}
.nav-actions {
  display: flex;
  gap: 23px;
  align-items: center;
}
@media (max-width: 720px) {
  .desktop-nav {
    display: none;
  }
  .site-header {
    height: 65px;
  }
}
.brand img {
  width: 115px;
  height: 40px;
  object-fit: contain;
}
.site-header .brand img {
  width: 104px;
  height: 36px;
}
.mobile-menu,
.mobile-app-header {
  display: none;
}
.site-header .wrap {
  width: min(1180px, calc(100% - 48px));
}
.sign-out-form {
  margin: 0;
  flex-shrink: 0;
}
.sign-out-form .btn {
  gap: 0;
}
@media (max-width: 1000px) {
  .mobile-menu {
    display: block;
    position: relative;
    flex-shrink: 0;
    color: var(--ink);
  }
  .mobile-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu[open] summary {
    background: var(--cream);
  }
  .mobile-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    font-size: 15px;
  }
  .mobile-menu-panel > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 2px;
  }
  .mobile-menu-panel > a:hover {
    background: var(--cream);
  }
  .mobile-menu-panel .sign-out-form {
    padding: 12px 2px 2px;
  }
  .mobile-menu-panel .sign-out-form button {
    width: 100%;
    font-size: 14px;
  }
  .menu-account {
    display: grid;
    gap: 2px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding: 14px;
    overflow-wrap: anywhere;
  }
  .menu-account span {
    font-size: 13px;
    color: var(--muted);
  }
  .mobile-app-header {
    display: flex;
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 12px max(18px, env(safe-area-inset-left)) 12px max(18px, env(safe-area-inset-right));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 720px) {
  .site-header .wrap {
    width: calc(100% - 30px);
  }
}
