/**
 * arifOS Constellation Rail
 * Top navigation shared across all federation sites.
 */

#constellation-rail {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--afs-rail-h);
  background: rgba(11,13,16,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--afs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 var(--afs-space-4);
  font-family: var(--afs-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#constellation-rail::-webkit-scrollbar { display: none; }

#constellation-rail a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--afs-space-3);
  color: var(--afs-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
  position: relative;
}
#constellation-rail a:hover {
  color: var(--afs-text);
  background: var(--afs-surface-2);
}
#constellation-rail a.active {
  color: var(--afs-accent);
  border-bottom-color: var(--afs-accent);
  background: var(--afs-surface);
}
#constellation-rail a .symbol {
  margin-right: var(--afs-space-1);
  opacity: 0.7;
}
#constellation-rail a.active .symbol { opacity: 1; }

@media (max-width: 768px) {
  #constellation-rail { justify-content: flex-start; gap: 0; font-size: 11px; }
  #constellation-rail a { padding: 0 var(--afs-space-2); }
}
