>>521662100yds downwind from sleeping area, 30ft up in a tree, out of paw/arm's reach from the trunk
ideally your camp setup in bear country looks like this 100yd triangle with your cook area and food stash both downwind from your sleep site.
a critter following the scent doesn't stumble onto your sleeping ass and no one gets embarrassed.