/* 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 { flex: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.sh-count { margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: var(--r-pill); background: #fcebec; color: #a3172a;
  font-size: 12px; font-weight: 650; line-height: 20px; text-align: center; }
.sh-nav a[aria-current="page"] .sh-count { background: var(--on-dark); }
.sh-div { flex: none; width: 1px; margin: 8px var(--s1); background: var(--line); }

/* Office and the tech's name: small menus (details/summary, no script needed to open) */
.sh-menu { position: relative; flex: none; }
.sh-menu:first-of-type { margin-left: auto; }
.sh-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s4);
  border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 560; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.sh-menu > summary::-webkit-details-marker { display: none; }
.sh-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); }
.sh-menu[open] > summary, .sh-menu.sh-on > summary { background: var(--canvas-2); color: var(--brand); }
.sh-me > summary { border: 1px solid var(--line); background: var(--paper); color: var(--ink); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.sh-missing > summary { border-color: #c8283d; color: #a3172a; }
.sh-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 20rem; padding: var(--s2); border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper); display: grid; gap: 2px; max-height: calc(100vh - 88px); overflow-y: auto; }
.sh-pop a { display: grid; gap: 1px; padding: var(--s2) var(--s3); border-radius: 10px; color: var(--ink); }
.sh-pop a b { font-size: var(--fs-sm); font-weight: 600; }
.sh-pop a span { font-size: 13px; color: var(--ink-2); }
.sh-pop a:hover, .sh-pop a[aria-current="page"] { background: var(--canvas-2); }
.sh-pop a[aria-current="page"] b { color: var(--brand); }
.sh-pop-h { margin: var(--s2) var(--s3) 2px; font-size: 12px; font-weight: 600; color: var(--ink-3, var(--ink-2)); }
.sh-pop-h:first-child { margin-top: 0; }
form.sh-pop { gap: var(--s2); padding: var(--s3); }
form.sh-pop label { font-size: 13px; color: var(--ink-2); }
form.sh-pop input { min-height: 40px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 10px; font: 500 var(--fs-sm) var(--font); }
form.sh-pop button { min-height: 40px; border: 0; border-radius: var(--r-pill); background: var(--brand); color: var(--on-dark);
  font: 600 var(--fs-sm) var(--font); cursor: pointer; }
.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-menu > summary, .sh-out { padding: 0 var(--s3); }
  .sh-me > summary { max-width: 9rem; }
  .sh-pop { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 6px; }
  .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); }
}
