/* ===========================================================
   Quest Tavern — shared design tokens & components
   Linked by every page so the look stays consistent.
   Page-specific layout still lives in each page's own <style>.
   All shared classes are namespaced with `bp-` to avoid
   colliding with existing page styles.
   =========================================================== */

:root {
  --bp-bg:        #111;
  --bp-surface:   #1f1f1f;
  --bp-surface-2: #171717;
  --bp-border:    #3a3a3a;
  --bp-text:      #eeeeee;
  --bp-muted:     #b9b3a6;
  --bp-accent:    #e0a200;        /* Quest Tavern gold */
  --bp-accent-hover: #f2b400;
  --bp-ok:        #7CFC98;
  --bp-err:       #ff6b6b;
  --bp-radius:    12px;
  --bp-radius-lg: 16px;
  --bp-shadow:    0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- Shared staff navigation bar ---------- */
.bp-nav {
  /* Pin the font so the nav looks identical on every page regardless of each
     page's own body font. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: rgba(20,16,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bp-border);
}
.bp-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--bp-text);
  margin-right: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.bp-nav__brand img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.bp-nav__links { display: flex; gap: 4px; flex-wrap: wrap; }
.bp-nav a.bp-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--bp-muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bp-nav a.bp-nav__link:hover { color: var(--bp-text); background: rgba(255,255,255,.05); }
.bp-nav a.bp-nav__link.is-active {
  color: #fff;
  background: rgba(224,162,0,.18);
  border-color: rgba(224,162,0,.55);
}

@media (max-width: 600px) {
  .bp-nav { padding: 8px 10px; }
  .bp-nav__brand span { display: none; }
  .bp-nav a.bp-nav__link { padding: 7px 10px; font-size: 12px; }
}

/* ---------- Small shared utilities (opt-in) ---------- */
.bp-fieldErr {
  color: var(--bp-err);
  font-size: 12px;
  line-height: 1.3;
  margin-top: 5px;
  display: none;
}
[aria-invalid="true"] { border-color: var(--bp-err) !important; }
