/**
 * developments/css/user.css — YOUR-HALIFAX Stream 2 (signed-in user features).
 * Loaded only by the user/* modules; everything here is namespaced .dev-user-*
 * / .dev-me-* / the me rail icon, so it can't bleed into the public map.
 * All styling is additive — no existing selector is overridden.
 */

/* ── Topbar: Sign in / user chip (sits before the Contact link) ───────────── */
.dev-user-slot { position: relative; display: inline-flex; align-items: center; }

.dev-user-signin,
.dev-user-chip {
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 75, 0.55);
  background: transparent;
  /* VL.P2.P5 — gold-as-text was ~1.6:1 on the warm-paper topbar (fails AA).
     Ink text clears AA; the Helio gold stays on the border + hover wash +
     avatar circle, so the chip still reads as gold. */
  color: var(--ink-2, #374151);
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  transition: background 120ms ease, border-color 120ms ease;
}
.dev-user-signin:hover,
.dev-user-chip:hover { background: rgba(212, 168, 75, 0.12); border-color: var(--gold, #d4a84b); }
.dev-user-signin:focus-visible,
.dev-user-chip:focus-visible { outline: 2px solid var(--gold, #d4a84b); outline-offset: 2px; }

.dev-user-ava {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold, #d4a84b); color: #1f1f1f;
  font-size: 11px; font-weight: 700;
}
.dev-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-user-caret { font-size: 10px; opacity: 0.7; }

.dev-user-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--charcoal-800, #1f1f1f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px; padding: 4px;
  min-width: 140px; z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.dev-user-menu[hidden] { display: none; }
.dev-user-signout {
  font: inherit; font-size: 13px; cursor: pointer;
  width: 100%; text-align: left;
  background: transparent; border: 0; color: #e8e8e8;
  padding: 8px 10px; border-radius: 6px;
}
.dev-user-signout:hover { background: rgba(255, 255, 255, 0.08); }

/* ── Rail: the "Your Halifax" tab unread dot (inherits .dev-rail-icon) ─────── */
.dev-rail-icon--me { position: relative; }
.dev-rail-unread {
  position: absolute; top: 8px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold, #d4a84b);
}
.dev-rail-unread[hidden] { display: none; }

/* ── Your Halifax panel (reuses .dev-brief / .dev-update card styles) ──────── */
.dev-me-meta {
  font-size: 12px; color: var(--pp-ink-2, #6a6a6a);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.dev-me-empty { padding: 8px 2px; }
.dev-me-browse {
  margin-top: 10px; font: inherit; font-size: 13px; cursor: pointer;
  background: var(--gold, #d4a84b); color: #1f1f1f;
  border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600;
}
.dev-me-browse:hover { background: var(--gold-600, #b8923f); }
.dev-me-browse:focus-visible { outline: 2px solid var(--gold, #d4a84b); outline-offset: 2px; }

/* ── Follow ★ on the project panel ─────────────────────────────────────────
   Injected by follow-ui.js into the panel's .pv5-card__band (the stage-colour
   header). Self-contained so it reads on ANY stage colour: a translucent dark
   pill normally, solid gold when following. Pushed to the right of the band. */
.dev-follow-btn--panel {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: center;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  transition: background 120ms ease, border-color 120ms ease;
}
.dev-follow-btn--panel:hover { background: rgba(0, 0, 0, 0.42); border-color: #fff; }
.dev-follow-btn--panel:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dev-follow-btn--panel.is-following {
  background: var(--gold, #d4a84b);
  border-color: var(--gold, #d4a84b);
  color: #1f1f1f;
  font-weight: 700;
}
