/* CANONICAL SOURCE for public/hub-nav.css in every Family Hub service. Edit
   here, then run `node scripts/sync-public-assets.mjs` from the repo root to
   copy it into hub-service/, events-service/, kitchen-service/ and
   chores-service/'s public/ dirs (also done automatically by
   scripts/deploy-service.sh before a deploy) — see docs/family-hub-plan.md
   (D-H16, Family Hub Phase 4).

   Deliberately self-contained (no host page's CSS variables) since the four
   services use different token names (theme.css's --accent/--line vs
   kitchen's --green/--paper) — this stays visually identical everywhere. */
.hub-nav { position: relative; display: inline-block; }

.hub-nav-btn {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid #d8d2c6;
  background: #fff;
  color: #23201c;
}
.hub-nav-btn:hover { border-color: #8a8371; }
.hub-nav-btn:active { transform: translateY(1px); }
.hub-nav-btn[aria-expanded="true"] { border-color: #8a8371; background: #f1efe9; }

.hub-nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 180px;
  background: #fff;
  border: 1px solid #d8d2c6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.hub-nav-menu a,
.hub-nav-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #23201c;
  text-decoration: none;
  white-space: nowrap;
}
.hub-nav-menu a:hover,
.hub-nav-menu a:focus-visible { background: #f1efe9; }
.hub-nav-current { color: #8f8471; cursor: default; }
.hub-nav-icon { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .hub-nav-btn { transition: none; }
}
