/* Desktop Layout */

#layout {
  display: flex;
  height: 100vh;
  padding-top: var(--header-h);
}

/* ── Nav Toggle (Hamburger) ──────────────────────── */
#nav-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  cursor: pointer;
  padding: 0 16px 0 0;
  line-height: 1;
  letter-spacing: 0;
  transition: color 0.1s;
}
#nav-toggle:hover { color: var(--text); border: none; }

/* ── Sidebar Overlay ─────────────────────────────── */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(0,0,0,0.55);
  z-index: 149;
}
#sidebar-overlay.open { display: block; }

/* ── Sidebar ─────────────────────────────────────── */
#sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.18s ease;
  z-index: 150;
}
#sidebar.open { transform: translateX(0); }

.nav-item {
  display: block;
  padding: 9px 14px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.1s, background 0.1s;
  cursor: pointer;
}
.nav-item:hover  { color: var(--text); background: var(--surface2); }
.nav-item.active { color: var(--green); border-left-color: var(--green); background: #001a08; }

.nav-spacer { flex: 1; }

/* ── Content ─────────────────────────────────────── */
#content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}

#bottom-nav { display: none; }
