/* nav.css — the shared header bar (camp v5.0). Loaded by EVERY page, on its
   own so that index.html / login.html (self-contained styles) and the map pages
   (own wrappers) all get exactly the same bar without inheriting style.css. */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --bg: #F2EFE7; --paper: #FBF9F4; --ink: #1F2420; --ink-soft: #5B5F54;
  --line: #D8D2C0; --cycling: #3F5B4E;
}

/* The header bar from the Serra Flow app, drawn by js/nav.js on every page:
   brand left, the full menu right, the current page marked. Thin 2px-radius
   chips, paper strip, hairline underneath — the same rules as over there so
   moving between the two apps feels like moving between pages of one. */
header.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}
header.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
header.top .brand-logo { height: 26px; width: auto; border-radius: 6px; display: inline-block; }
header.top nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
header.top nav a {
  color: var(--ink-soft);
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}
header.top nav a:hover { color: var(--ink); text-decoration: none; border-color: var(--line); }
header.top nav a.active {
  color: var(--ink);
  border-color: var(--line);
  background: var(--bg);
}
/* The cross-link to the other app — set apart by a hairline so it reads as
   "leave this app", not as another page of it. */
header.top nav a.ext {
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  border-radius: 0 2px 2px 0;
}
header.top nav a.ext:hover { color: var(--cycling); border-left-color: var(--line); }
header.top nav a[hidden] { display: none; }
/* Phone: the menu folds behind a ≡ button; open, it stacks under the brand. */
header.top .nav-toggle {
  display: none;
  margin-left: auto;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
}
@media (max-width: 720px) {
  header.top { padding: 12px 16px; }
  header.top .nav-toggle { display: inline-block; }
  header.top nav { display: none; flex-basis: 100%; flex-direction: column; gap: 2px; margin: 8px 0 0; }
  header.top.is-open nav { display: flex; }
  header.top nav a { padding: 9px 10px; }
  header.top nav a.ext { margin: 4px 0 0; padding-left: 10px; border-left: 0; border-top: 1px solid var(--line); border-radius: 2px; }
}
@media print { header.top { display: none !important; } }

/* --- a step that failed (NAV.problem), shared by every page (v5.2) --------- */
.nav-problem { margin: 8px 0; color: var(--ink-soft, #5B5F54); }
.nav-problem p { margin: 0 0 12px; }
.nav-problem .np-btn {
  font: inherit; font-size: 13px; cursor: pointer; margin: 0 8px 0 0;
  padding: 8px 14px; border-radius: 2px;
  background: var(--accent, #3F5B4E); border: 1px solid var(--accent, #3F5B4E);
  color: var(--paper, #FBF9F4);
}
.nav-problem .np-btn.ghost {
  background: var(--paper, #FBF9F4); border-color: var(--line, #D8D2C0); color: var(--ink, #1F2420);
}
.nav-problem .np-btn:hover { opacity: .9; }
