/* Layout for signed-in pages: the Camp top bar (hub links and the property picker) and, under it, a slim side menu
   with the property's pages. Both stay the same on every page; only the highlighted item moves. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root { --tbar-h: 112px; }
:root:has(.tbar.one) { --tbar-h: 66px; }

/* top bar */
.tbar { position: sticky; top: 0; z-index: 40; color: var(--t-ink, #fbf4e2); background: var(--t-bg, linear-gradient(180deg, #23412d, #1a3022));
  border-bottom: var(--t-edge, 4px solid #5e3819); }
.tbar-row { display: flex; align-items: center; gap: 20px; padding: 10px 22px; }
.tbar-pick { padding-top: 0; }
.tsign { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; text-decoration: none; white-space: nowrap; }
.tnav { display: flex; gap: 2px; flex-wrap: wrap; }
body .tbar .tnav a { padding: 8px 11px; border-radius: 8px; color: var(--t-soft, #d6dccb); text-decoration: none; font: 600 14.5px/1.2 "Public Sans", sans-serif; }
body .tbar .tnav a:hover { color: #fff; background: rgba(255,255,255,.07); }
body .tbar .tnav a.on { color: var(--t-strong, #fff); box-shadow: inset 0 -3px 0 var(--t-mark, #ffc340); border-radius: 0; }
.tprop { display: inline-flex; align-items: center; gap: 10px; font: 750 19px/1.2 "Bricolage Grotesque", "Public Sans", sans-serif; color: var(--t-strong, #fff); min-width: 0; }
.tlogo { height: 30px; width: auto; max-width: 140px; border-radius: 6px; background: #fff; padding: 2px 5px; }
.tright { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tright .lookswitch { margin: 0; }
.tright .who { margin: 0; width: auto; color: var(--t-muted, #c9d0bd); font-size: 13px; }
body .tbar .signout .btn { color: var(--t-strong, #fff) !important; background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.15) !important; box-shadow: none !important; }
.mbar-menu { display: none; }

/* the property picker */
.pp { position: relative; }
body .tbar .pp-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 360px; max-width: 520px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--t-strong, #fff); background: var(--t-field, rgba(0,0,0,.25)); border: 1px solid rgba(255,255,255,.16); cursor: pointer; }
.pp-btn:hover, .pp.open .pp-btn { border-color: var(--t-mark, #ffc340); }
.pp-btn small { font: 600 12.5px/1 "Public Sans", sans-serif; letter-spacing: 0; color: var(--t-muted, rgba(214,220,203,.7)); }
.pp-name { font: 650 15px/1.2 "Bricolage Grotesque", "Public Sans", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #3c8457; }
.pp-dot.down { background: #ff7a59; } .pp-dot.warn { background: #e0a51c; }
.pp-tag { font: 600 11.5px/1 "Public Sans", sans-serif; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--t-soft, #c9d4bf); }
.pp-btn kbd { margin-left: auto; font: 600 11px/1 "Public Sans", sans-serif; padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); color: var(--t-soft, #d6dccb); }
.pp-pop { position: absolute; left: 0; top: calc(100% + 8px); width: min(460px, calc(100vw - 32px)); z-index: 60; padding: 8px; border-radius: 14px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.pp-find { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 9px; border: 2px solid var(--sun, #c98a0b) !important; background: var(--bg) !important; color: var(--ink); font: 15px "Public Sans", sans-serif; outline: none; }
.pp-list { max-height: min(60vh, 460px); overflow-y: auto; margin-top: 4px; }
.pp-g { padding: 12px 10px 4px; font: 650 12.5px/1 "Public Sans", sans-serif; letter-spacing: 0; color: var(--muted); }
.pp-o { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; font: 500 14.5px/1.3 "Public Sans", sans-serif; cursor: pointer; text-decoration: none; }
.pp-o:hover, .pp-o.hi { background: var(--accent-soft); }
.pp-o.cur { font-weight: 700; }
.pp-o .pp-st { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--good, #3c8457); }
.pp-o .pp-st.down { background: var(--bad, #d9622b); } .pp-o .pp-st.warn { background: var(--warn, #c98a0b); }
.pp-o em { margin-left: auto; padding-left: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pp-o mark { background: color-mix(in srgb, var(--sun, #ffc340) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.pp-empty { padding: 14px 10px; color: var(--muted); margin: 0; }
.pp-foot { padding: 8px 10px 4px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* side menu */
.pwrap { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; }
.pmain { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - var(--tbar-h)); }
.pmain > main { flex: 1; width: 100%; }
.pmain > .foot { margin-top: 24px; }
.pside { position: sticky; top: var(--tbar-h); height: calc(100vh - var(--tbar-h)); overflow-y: auto; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px 0; color: var(--s-ink, #d6dccb); background: var(--s-bg, linear-gradient(180deg, #1f3a28, #162a1d)); border-right: var(--s-edge, 4px solid #5e3819); }
.side-h { display: flex; align-items: center; gap: 8px; padding: 0 10px 8px; font: 650 13px/1 "Public Sans", sans-serif; letter-spacing: 0; color: var(--s-muted, rgba(214,220,203,.6)); }
.pside nav { display: flex; flex-direction: column; gap: 1px; }
body .pside nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font: 500 14.5px/1.25 "Public Sans", sans-serif; }
body .pside nav a:hover { background: rgba(255,255,255,.07); color: var(--s-strong, #fff); }
body .pside nav a.on { color: var(--s-strong, #fff); font-weight: 650; background: var(--s-on, rgba(255,195,64,.12)); box-shadow: inset 3px 0 0 var(--s-mark, #ffc340); }
.pside .fixbadge { margin-left: auto; }
.pside-note { margin: 12px 10px 0; font-size: 12.5px; line-height: 1.4; color: var(--s-muted, rgba(214,220,203,.65)); }
.pside .pside-hub, .side-close { display: none; }
.side-trees { flex: 0 0 auto; margin: auto -12px 0; height: 60px; }
.side-scrim { display: none; }

/* Camp: ranger-station green, wood sign and wood trim, yellow trail blazes, contour lines, a treeline */
body.camp .tsign { padding: 8px 13px 8px 11px; border-radius: 6px; font: 400 18px/1 var(--slab) !important; letter-spacing: .01em; color: var(--wood-ink, #f6e7c8);
  background: repeating-linear-gradient(178deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px), linear-gradient(180deg, var(--wood, #7a4b26), var(--wood-2, #5e3819));
  box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
body.camp .tsign .mark-dot { width: 0; height: 0; border-radius: 0; transform: none; background: none; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid #ffc340; }
body.camp .tbar.brand { --t-bg: var(--hero-1); }
body.camp .pside { --s-tint: #1f3a28; --s-tint-2: #162a1d; background: url("topo.svg") center top / 900px auto repeat-y, linear-gradient(180deg, var(--s-tint), var(--s-tint-2)); box-shadow: inset -2px 0 0 var(--wood, #7a4b26); }
body.camp .pside.pt-marina { --s-tint: #173450; --s-tint-2: #0e2133; }
body.camp .pside.pt-residential { --s-tint: #2a3542; --s-tint-2: #1a222c; }
body.camp .pside.brand { --s-tint: var(--hero-2); --s-tint-2: var(--hero-1); }
body.camp .side-h::before { content: ""; width: 8px; height: 12px; border-radius: 2px; background: #ffc340; box-shadow: 0 1px 0 rgba(0,0,0,.3); }
body.camp .side-trees { background: url("pines.svg") bottom / 300% 60px no-repeat; }

/* Dark look: night sky over the lake. A few stars and a moonlit shoreline under the bar; lantern amber marks where you are. */
body.ops { --t-bg: radial-gradient(1px 1px at 18% 30%, rgba(255,255,255,.55) 50%, transparent 51%), radial-gradient(1px 1px at 41% 62%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 24%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1px 1px at 79% 70%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 36%, rgba(255,255,255,.45) 50%, transparent 51%), linear-gradient(180deg, #0a1520, #0f2230);
  --t-edge: 1px solid transparent; --t-ink: var(--ink); --t-strong: #fff; --t-soft: #a9bcc5; --t-muted: #7f98a4; --t-mark: var(--lantern); --t-field: rgba(4,12,18,.55);
  --s-bg: linear-gradient(180deg, #0c1a23, #0a151c); --s-edge: 1px solid var(--line); --s-ink: #a9bcc5; --s-strong: #fff; --s-muted: #6f8994;
  --s-on: rgba(244,181,68,.1); --s-mark: var(--lantern); }
body.ops .tbar { box-shadow: 0 1px 0 rgba(244,181,68,.0); }
body.ops .tbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--shore) 15%, rgba(244,181,68,.55) 62%, var(--shore) 85%, transparent); }
body.ops .tsign { font: 750 19px/1 "Bricolage Grotesque", sans-serif; color: #fff; letter-spacing: -.01em; }
body.ops .tsign .mark-dot { width: 10px; height: 10px; border-radius: 50%; transform: none; background: var(--lantern); box-shadow: 0 0 0 3px rgba(244,181,68,.18), 0 0 14px rgba(244,181,68,.75); }
body.ops .tbar .tnav a.on { box-shadow: inset 0 -2px 0 var(--lantern); text-shadow: 0 0 14px rgba(244,181,68,.55); }
body.ops .pp-btn { border-color: #24404f; }
body.ops .pp-btn:hover, body.ops .pp.open .pp-btn { border-color: var(--lantern); box-shadow: 0 0 0 3px rgba(244,181,68,.12); }
body.ops .pside nav a.on { color: #fff; box-shadow: inset 2px 0 0 var(--lantern), inset 0 0 24px rgba(244,181,68,.06); }
body.ops .side-h::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 8px rgba(244,181,68,.7); }
body.ops .side-trees { background: url("pines.svg") bottom / 300% 52px no-repeat; opacity: .55; }
body.ops .lookswitch button[aria-pressed="true"] { background: var(--lantern) !important; color: #1d1405 !important; }

/* phones and small tablets: the side menu (with the hub links) slides in from the menu button */
@media (max-width: 960px) {
  :root { --tbar-h: 0px; }
  .tbar-row { gap: 12px; padding: 10px 14px; }
  .tbar-pick { padding: 0 14px 10px; }
  .tnav, .tright .who, .tright .lookswitch { display: none; }
  .mbar-menu { display: grid; gap: 4px; padding: 8px; border: 0; border-radius: 8px; background: rgba(255,255,255,.1); color: inherit; cursor: pointer; }
  .mbar-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
  .pp, .pp-btn { width: 100%; min-width: 0; max-width: none; box-sizing: border-box; }
  .pwrap { grid-template-columns: 1fr; }
  .pmain { min-height: 0; }
  .pside { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; height: auto; width: min(300px, 86vw); transform: translateX(-104%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.35); padding-top: 12px; }
  body.side-open .pside { transform: none; }
  .side-close { display: block; align-self: flex-end; border: 0; background: none; color: inherit; font-size: 26px; line-height: 1; padding: 2px 8px; cursor: pointer; }
  .pside .pside-hub { display: flex; flex-direction: column; gap: 1px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .side-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.4); }
}
@media (max-width: 1180px) and (min-width: 961px) { body .tbar .tnav a { padding: 8px 8px; font-size: 13.5px; } .tright .who { display: none; } }
@media (prefers-reduced-motion: reduce) { .pside { transition: none; } }
body.tv .tbar, body.tv .pside { display: none; }
body.tv .pwrap { grid-template-columns: 1fr; }
.pp-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .pp-o { color: var(--ink); }
.pside .side-help { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 2px; }
.pside .side-help a { font-size: .94em; }
.tbar .treport { font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); white-space: nowrap; }
.tbar .treport:hover { background: rgba(255,255,255,.1); }
@media (max-width: 900px) { .tbar .treport { display: none; } }
.notice-band { display: flex; gap: 10px; align-items: baseline; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; text-decoration: none;
  color: #3d2a05; background: #fbe7b8; border: 1px solid #e9c56b; }
.notice-band.k-incident { color: #5a1414; background: #fbdede; border-color: #e7a1a1; }
.notice-band.k-info { color: #102a43; background: #e3eefa; border-color: #a9c6e8; }
.notice-band span { opacity: .8; }
.notice-band i { margin-left: auto; font-style: normal; }
