/* The top bar (templates/_nav.html), on every page that includes it. Loaded
   by the partial itself, so the chat page gets the bar without shared.css. */

/* ── Top navigation ──────────────────────────────────────────── */
.top-nav {
  height: var(--nav-h, 54px);
  background: var(--chrome-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
  flex-shrink: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  flex-shrink: 0;
}
/* Square app mark fills the circle */
.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-brand-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--chrome-text-strong);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--chrome-muted);
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.nav-link:hover  { background: var(--chrome-hover); color: var(--chrome-text); }
.nav-link.active { background: rgba(var(--brand-rgb),.15); color: var(--chrome-active-text); }
.nav-link i      { font-size: 12px; }

/* Signed out on the chat page: the other pages need an account. */
.nav-link.disabled { opacity: .45; cursor: not-allowed; }
