/* S3r4phNet shared navigation - loaded by every page.
   Source of truth for the nav look. Do not paste these rules back into
   pages: tools/unify_nav.py flags any inline .s3r4ph-nav rules. */
.s3r4ph-nav {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(6, 8, 14, 0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1a1a2e;
  font-family: "Fira Code", "Cascadia Code", "Consolas", monospace;
}
.s3r4ph-nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 0.65rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; line-height: 1;
}
.s3r4ph-brand {
  font-size: 1.1rem; font-weight: 700; color: #00f0ff;
  text-decoration: none; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; line-height: 1;
}
.s3r4ph-brand:hover { color: #66f7ff; }
.s3r4ph-links { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.s3r4ph-links a {
  color: #7a7a8e; font-size: 0.75rem; letter-spacing: 0.8px;
  text-transform: uppercase; text-decoration: none;
  white-space: nowrap; transition: color 0.2s; padding: 0.15rem 0; line-height: 1;
}
.s3r4ph-links a:hover { color: #00f0ff; }
.s3r4ph-links a[aria-current="page"] { color: #c8d4e8; }
#global-search-btn {
  background: none; border: none; color: #ffcc00; cursor: pointer;
  font-family: inherit; font-size: 0.85rem; text-transform: uppercase;
  margin-right: 0; font-weight: bold; padding: 0.15rem 0; line-height: 1;
}
#global-search-btn:hover { color: #ffe066; }
.s3r4ph-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 2px; flex-shrink: 0;
}
.s3r4ph-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #00f0ff; border-radius: 1px; transition: 0.3s;
}
.s3r4ph-nav a:focus-visible,
.s3r4ph-nav button:focus-visible { outline: 2px solid #00f0ff; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 640px) {
  .s3r4ph-hamburger { display: flex; }
  .s3r4ph-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6, 8, 14, 0.98); border-bottom: 1px solid #1a1a2e;
    flex-direction: column; align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem; gap: 0.7rem;
  }
  .s3r4ph-links.open { display: flex; }
  .s3r4ph-links a { font-size: 0.9rem; }
}