/* The Neuropedia ribbon: one header on every page, including the mounted viewer (/viewer). Atlas tokens, namespaced so
   page and studio styles cannot reach it. Rendered server-side by neuropedia_server.ribbon_html; ribbon.js fills sign-in. */
.np-ribbon { box-sizing: border-box; background: #222629; border-bottom: 2px solid #86c232; display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; flex-wrap: wrap; margin: 0; height: auto; min-height: 58px; color: #e9eeeb;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; position: relative; min-width: 0; max-width: 100vw; }
.np-ribbon * { box-sizing: border-box; }
.np-ribbon .np-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #e9eeeb; flex: none; }
.np-ribbon .np-brand img { width: 36px; height: 36px; display: block; flex: none; }
.np-ribbon .np-brand h1 { margin: 0; font: 700 18px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: #e9eeeb; white-space: nowrap; letter-spacing: 0; }
.np-ribbon .np-page { color: #86c232; font-weight: 700; font-size: 14px; white-space: nowrap; }
.np-ribbon .np-page:empty { display: none; }
.np-ribbon .stat { color: #9aa5a0; font-size: 13px; min-width: 0; }
.np-ribbon .stat:empty { display: none; }
.np-ribbon .np-who { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; }
.np-ribbon .np-who:empty { display: none; }
.np-ribbon .np-who .np-handle { color: #86c232; border: 1px solid #86c232; border-radius: 999px; padding: 1px 9px; font-weight: 700; }
.np-ribbon .np-who a { color: #9aa5a0; text-decoration: none; }
.np-ribbon .np-who a.np-signin { color: #1b1f21; background: #86c232; border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.np-ribbon .np-nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.np-ribbon .np-nav a { color: #9aa5a0; background: #24292c; border: 1px solid #363d40; border-radius: 999px; padding: 6px 14px; text-decoration: none;
  font: 600 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; white-space: nowrap; height: auto; display: inline-block; }
.np-ribbon .np-nav a:hover { color: #e9eeeb; border-color: #86c232; }
.np-ribbon .np-nav a.on { background: #86c232; color: #1b1f21; border-color: #86c232; }
.np-ribbon .np-nav a.np-local { border-style: dashed; }
.np-ribbon a:focus-visible { outline: 2px solid #86c232; outline-offset: 1px; }
@media (max-width: 760px) {
  .np-ribbon { gap: 8px 10px; padding: 8px 12px; }
  .np-ribbon .np-brand h1 { font-size: 16px; }
  .np-ribbon .stat { flex-basis: 100%; order: 3; font-size: 12px; }
  .np-ribbon .np-nav { order: 4; margin-left: 0; flex-basis: 100%; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
}
.np-ribbon .np-nav a .np-badge { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #d9a13b;
  color: #1b1f21; font: 700 11px/18px system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; text-align: center; vertical-align: 1px; }
/* a page's own section links (e.g. the atlas's Atlas / Library / Method), beside the page name */
.np-ribbon .np-sections { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.np-ribbon .np-sections a { color: #9aa5a0; text-decoration: none; font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.np-ribbon .np-sections a:hover { color: #e9eeeb; background: #2b3134; }
