/* Shared navigation. Explicit styles isolate it from legacy article CSS. */
#site-header {
  background: #fff;
  border-top: 2px solid #286046;
  border-bottom: 1px solid #dce2dc;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #334155;
}

#site-header .nav-inner {
  max-width: 1160px;
  height: 64px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#site-header .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

#site-header .logo-text { color: #202b27; font-size: 1.25rem; font-weight: 700; }
#site-header .nav-badge { color: #505c56; font-size: 0.75rem; font-weight: 400; }

#site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-header .nav-links li { margin: 0; padding: 0; line-height: 1.6; }
#site-header .nav-links a { color: #334155; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
#site-header .nav-links a:hover { color: #286046; }

#site-header .nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #334155;
  padding: 0.25rem;
}

#site-header .mobile-menu { display: none; background: #fff; border-top: 1px solid #dce2dc; padding: 1rem 1.5rem; max-height: calc(100vh - 67px); max-height: calc(100dvh - 67px); overflow-y: auto; }
#site-header .mobile-menu a { display: block; padding: 0.6rem 0; font-size: 0.9rem; font-weight: 500; color: #334155; border-bottom: 1px solid #f1f5f9; text-decoration: none; }
#site-header a:focus-visible, #site-header button:focus-visible { outline: 2px solid #286046; outline-offset: 4px; }

@media (max-width: 1000px) {
  #site-header .nav-links { gap: 1.1rem; }
  #site-header .nav-badge { display: none; }
}

@media (max-width: 768px) {
  #site-header .nav-links { display: none; }
  #site-header .nav-toggle { display: block; }
  #site-header .mobile-menu.open { display: block; }
}

@media (max-width: 480px) {
  #site-header .nav-inner { padding-inline: 1.25rem; }
}
