/* =====================================================================
   Navigation only.

   Split out of app.css so the map page can load the nav without pulling
   in the whole account-page stylesheet. app.css still contains these
   rules for layout pages, which load app.css alone.

   The tokens below are duplicated deliberately: this file must stand on
   its own when loaded next to map.css, which defines its own :root.
   ===================================================================== */
:root {
  --nav-surface: #ffffff;
  --nav-sunk:    #e6e8e5;
  --nav-line:    #cfd3ce;
  --nav-ink:     #14171a;
  --nav-ink-3:   #767f86;
  --nav-notice-bg:  #fdf1d8;
  --nav-notice-ink: #6d4c00;
  --tap: 44px;
}

/* =====================================================================
   Navigation — CSS-only hamburger.

   A checkbox toggle rather than JavaScript: the menu then works before
   any script loads, and on a bad rural connection that matters more than
   the tidiness of the markup.
   ===================================================================== */

.page-head { display: flex; align-items: center; gap: 12px; }

.nav { margin-left: auto; position: relative; }
.nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; }

.nav-button {
  display: flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  border: 1px solid var(--nav-line);
  border-radius: 10px;
  background: var(--nav-surface);
  cursor: pointer;
}
.nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--nav-ink); outline-offset: 2px; }

.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block; width: 18px; height: 2px;
  background: var(--nav-ink); border-radius: 1px;
}
.nav-bars { position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -6px; }
.nav-bars::after  { top: 6px; }

.nav-panel {
  display: none;
  position: absolute; right: 0; top: calc(var(--tap) + 8px);
  min-width: 220px; z-index: 30;
  flex-direction: column;
  background: var(--nav-surface);
  border: 1px solid var(--nav-line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(20,23,26,.16);
  overflow: hidden;
}
.nav-toggle:checked ~ .nav-panel { display: flex; }

.nav-link {
  display: flex; align-items: center;
  min-height: var(--tap);
  padding: 0 16px;
  font-size: 14.5px; font-weight: 600;
  color: var(--nav-ink); text-decoration: none;
  border-bottom: 1px solid var(--nav-line);
}
.nav-link:last-child { border-bottom: 0; }
.nav-link:hover { background: var(--nav-sunk); }
.nav-link-cta { background: var(--nav-ink); color: #fff; }
.nav-link-cta:hover { background: #000; }
.nav-link-staff { color: var(--nav-notice-ink); background: var(--nav-notice-bg); }
.nav-link-button {
  width: 100%; border: 0; background: none; font: inherit;
  font-weight: 600; text-align: left; cursor: pointer;
}
.nav-form { margin: 0; border-bottom: 1px solid var(--nav-line); }
.nav-who {
  padding: 10px 16px; font-size: 12px; color: var(--nav-ink-3);
  overflow-wrap: anywhere;
}

@media (min-width: 720px) {
  .nav-button { display: none; }
  .nav-panel {
    display: flex; flex-direction: row; position: static;
    border: 0; box-shadow: none; background: none; min-width: 0;
  }
  .nav-link { border-bottom: 0; border-radius: 9px; padding: 0 12px; }
  .nav-form { border-bottom: 0; }
  .nav-who { display: none; }
}

