/* ────────────────────────────
   SiteNest — Header / navbar
──────────────────────────── */

#topBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

.site-header {
  position: relative;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="dark"] .site-header {
  background: rgba(11, 18, 32, 0.6);
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; }
.logo-img {
  height: 30px;
  width: auto;
  max-width: 120px;
  max-height: 30px;
  object-fit: contain;
  display: block;
}

.main-nav { display: flex; gap: 8px; }
.nav-link {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover, .nav-link.active { background: var(--accent-soft); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { background: var(--accent-soft); transform: rotate(15deg); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.mobile-nav a { padding: 12px 10px; border-radius: var(--radius-sm); font-weight: 500; }
.mobile-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-nav.open { display: flex; }

/* ── Announcement bar ───────── */
#announcementBar {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.announcement-content { max-width: 900px; }
#announcementBar.info { background: #DBEAFE; color: #1E3A8A; }
#announcementBar.success { background: #DCFCE7; color: #14532D; }
#announcementBar.warning { background: #FEF3C7; color: #78350F; }
#announcementBar.other { background: #E2E8F0; color: #0F172A; }
.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}
.announcement-close:hover { opacity: 1; }

