/* The shared staff header (templates/_staff_header.html), built from the landing page's bar:
   paper bar, line border, pill links, brand fill on the current page. Tokens: static/depot-tokens.css.
   Self-contained so it renders the same on Tailwind pages and style.css pages. */
.sh { position: sticky; top: 0; z-index: 40; background: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); font-family: var(--font); }
.sh a { text-decoration: none; }
.sh-row, .sh-sub { display: flex; align-items: center; gap: var(--s4); max-width: 80rem; margin: 0 auto; padding: 0 var(--pad-x); }
/* staff pages share this container: 80rem wide (Tailwind max-w-80) with the site side padding px-[var(--pad-x)] */
.sh-row { min-height: 64px; }
.sh-subwrap { border-top: 1px solid var(--line); }
.sh-sub { min-height: 48px; justify-content: space-between; }
.sh-logo { flex: none; display: block; border-radius: 8px; }
.sh-logo img { display: block; height: 40px; width: auto; }

.sh-nav { display: flex; gap: var(--s1); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sh-nav::-webkit-scrollbar { display: none; }
.sh-nav a, .sh-out { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 560; white-space: nowrap; color: var(--ink-2);
  transition: color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }
.sh-nav a[aria-current="page"] { background: var(--brand); color: var(--on-dark); }
.sh-nav-sub a { min-height: 36px; font-size: var(--fs-xs); padding: 0 var(--s3); }
.sh-nav-sub a[aria-current="page"] { background: var(--canvas-2); color: var(--brand); }
.sh-out { margin-left: auto; flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.sh-who { flex: none; font-size: var(--fs-xs); color: var(--ink-2); white-space: nowrap; }
.sh-who a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b9a9de; }
.sh a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sh-nav a:active, .sh-out:active { transform: scale(0.97); }
@media (hover: hover) {
  .sh-nav a:not([aria-current="page"]):hover { background: var(--canvas-2); color: var(--brand); }
  .sh-out:hover { border-color: #b9a9de; }
}

/* phone: logo and sign out on the first row, the page links as a swipeable pill row under them */
@media (max-width: 767px) {
  .sh-row { flex-wrap: wrap; gap: var(--s2) var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); }
  .sh-logo img { height: 34px; }
  .sh-row > .sh-nav { order: 3; flex: 1 1 100%; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); }
  .sh-sub { flex-wrap: wrap; gap: var(--s1); padding-top: var(--s2); padding-bottom: var(--s2); }
  .sh-sub .sh-nav { flex: 1 1 100%; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); }
}
