/* All staff pages share a small desk index below the main navigation. */
#app .staff-section-bar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  padding: 12px 18px;
  border: 2px solid var(--poster-ink);
  border-bottom: 0;
  background: var(--poster-ink);
  color: var(--site-inverse);
}

#app .staff-section-label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 18px;
  border-right: 1px solid color-mix(in srgb, var(--site-inverse) 35%, transparent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#app .staff-section-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#app .staff-section-link {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--site-inverse) 35%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--site-inverse);
  font: 750 14px/1.1 var(--site-font);
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

#app .staff-section-link.active {
  border-color: var(--poster-red);
  color: var(--poster-ink);
  background: var(--poster-red);
}

#app .staff-section-link:focus-visible {
  outline: 2px solid var(--site-inverse);
  outline-offset: 3px;
}

#app .staff-hub-page .hub-heading {
  margin: 24px 0 26px;
  padding-bottom: 0;
  border: 0;
}

#app .staff-hub-page .hub-heading h1 {
  margin: 0;
  font-size: clamp(44px, 4.8vw, 70px);
  line-height: .98;
}

#app .staff-hub-page .hub-heading p {
  max-width: 54ch;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
}

#app .staff-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

#app .staff-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--poster-ink);
  background: var(--poster-paper-deep);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--poster-ink) 18%, transparent);
}

#app .staff-hub-card .staff-hub-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
}

#app .staff-hub-page .staff-hub-card h2 {
  max-width: 16ch;
  margin: 18px 0 14px;
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.05;
  text-transform: none;
}

#app .staff-hub-page .staff-hub-card p {
  max-width: 50ch;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--poster-muted);
}

#app .staff-hub-card .command {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin-top: auto;
  gap: 18px;
  font-size: 14px;
}

#app .staff-hub-board {
  grid-column: span 2;
  border: 2px solid var(--poster-ink);
  border-top: 6px solid var(--poster-ink);
  background: var(--poster-red);
}

#app .staff-hub-page .staff-hub-board h2 {
  max-width: 20ch;
  font-size: clamp(32px, 3.3vw, 46px);
}

#app .staff-hub-page .staff-hub-board p { color: var(--poster-ink); }

#app .staff-hub-review {
  color: var(--site-inverse);
  background: var(--poster-ink);
}

#app .staff-hub-page .staff-hub-review h2,
#app .staff-hub-page .staff-hub-review p { color: var(--site-inverse) !important; }
#app .staff-hub-review .staff-hub-tag { color: var(--poster-red); }
#app .staff-hub-page .staff-hub-review .command { color: var(--poster-ink) !important; background: var(--poster-red) !important; }
#app .staff-hub-handbook { border-top: 6px double var(--poster-ink); }
#app .staff-hub-applications { background: transparent; }
#app .staff-hub-applications .staff-hub-tag { color: var(--poster-muted); }
#app .staff-hub-appeals { border-left: 5px solid var(--poster-ink); }
#app .staff-hub-card:last-child:nth-child(3) { grid-column: 1 / -1; }

@media (hover: hover) and (pointer: fine) {
  #app .staff-section-link:hover:not(.active) {
    border-color: var(--site-inverse);
    color: var(--poster-ink);
    background: var(--site-inverse);
  }
}

@media (max-width: 900px) {
  #app .staff-section-bar { flex-direction: column; gap: 10px; padding: 14px; }
  #app .staff-section-label { padding: 0; border: 0; }
  #app .staff-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  #app .staff-hub-card { padding: 22px; }
  #app .staff-hub-board { grid-column: 1 / -1; }
  #app .staff-hub-card:last-child:nth-child(3) { grid-column: auto; }
}

@media (max-width: 560px) {
  #app .staff-section-bar { padding: 12px; }
  #app .staff-section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app .staff-section-link { min-height: 42px; padding: 10px 8px; font-size: 14px; }
  #app .staff-hub-grid { grid-template-columns: minmax(0, 1fr); }
  #app .staff-hub-card, #app .staff-hub-board, #app .staff-hub-card:last-child:nth-child(3) { grid-column: 1; }
  #app .staff-hub-page .hub-heading { margin: 22px 0; }
  #app .staff-hub-page .hub-heading h1 { font-size: 46px; }
  #app .staff-hub-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  #app .staff-section-link { transition: none; }
}
