/* The top menu bar. Its own file because the reports link report.css, not
   style.css, and show the bar on screen: one set of rules, two stylesheets
   that both link it. Both define the same :root colours, so var() resolves
   the same either side; the fallbacks are for a page that links neither. */
.topbar { --navy: #151D2E; --gold: #D9B36A; --red: #C8102E; }
/* top bar */
.topbar {
  background: var(--navy); color: #fff; display: flex; align-items: center;
  gap: 28px; padding: 0 24px; height: 56px;
  border-bottom: 3px solid var(--gold);
}
/* brand lockup: Archer mark, gold rule, then the app name */
.brand { display: flex; align-items: center; gap: 14px;
  color: #fff; text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-rule { width: 1px; height: 24px; background: rgba(217,179,106,.55); }
.brand-app { font-weight: 800; letter-spacing: .12em; font-size: 17px; }
.brand-app span { color: var(--gold); }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar a { color: #C9CFDA; text-decoration: none; padding: 6px 12px;
  border-radius: 4px; font-size: 14px; }
.topbar a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar a.dl { color: var(--gold); }

/* who is signed in ---------------------------------------------------------- */
.whoami { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.whoami a { color: #C9CFDA; text-decoration: none; font-size: 13px;
  padding: 6px 10px; border-radius: 4px; }
.whoami a:hover { color: #fff; background: rgba(255,255,255,.08); }
.whoami a[title] { background: rgba(217,179,106,.18); color: var(--gold);
  font-weight: 700; letter-spacing: .04em; }
.whoami form { display: inline; }
button.linkish { background: none; border: 0; color: #C9CFDA; font: inherit;
  font-size: 13px; cursor: pointer; padding: 6px 10px; }
button.linkish:hover { color: #fff; background: rgba(255,255,255,.08); }

/* sign-in / setup ----------------------------------------------------------- */
.auth-card { max-width: 380px; margin: 40px auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; padding: 26px 28px 20px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card button { width: 100%; }

/* bench photographs --------------------------------------------------------- */
.gallery { display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px; }
.shot img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px;
  display: block; background: var(--paper); }
.shot figcaption { display: flex; justify-content: space-between;
  align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.shot figcaption form { display: inline; }
.shot-meta { display: block; font-size: 11px; color: var(--muted);
  font-family: var(--mono); }

/* per-user actions in the users table */
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-actions form { display: flex; gap: 4px; align-items: center; }
.row-actions input { width: 130px; padding: 4px 7px; font-size: 13px; }

/* account page and inline user editing */
.account-grid { display: grid; gap: 16px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); max-width: 800px; }
.account-grid input[disabled] { background: var(--paper); color: var(--muted); }
.inline-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-edit input[type=text], .inline-edit input[name=name],
.inline-edit input[name=email] { width: 160px; padding: 4px 7px; font-size: 13px; }
.inline-edit .chk { display: flex; align-items: center; gap: 4px;
  font-size: 12px; text-transform: none; letter-spacing: 0; margin: 0;
  color: var(--muted); white-space: nowrap; }
.inline-edit .chk input { width: auto; }

/* which instance am I looking at */
.env-banner { background: var(--red); color: #fff; text-align: center;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; }
.env-banner a { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .topbar { height: auto; padding: 10px 14px; flex-wrap: wrap; }
}
@media print { .topbar, .env-banner { display: none !important; } }
