.staff-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 72rem; margin: auto; padding: 1rem; }
.staff-header h1 { margin: 0; font-size: 1.25rem; }
/* Staff pages are narrower/denser than the candidate exam shell the base
   .brand-logo sizing (up to 18.625rem) was designed for -- oversized there. */
.staff-header .brand-logo { width: min(9rem, 40vw); }
.nav-toggle { display: none; min-height: 44px; padding: .5rem 1rem; color: var(--ink); background: #FFFFFF; border: 1px solid #5A5147; border-radius: .35rem; font: inherit; cursor: pointer; }
.staff-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; max-width: 72rem; margin: 0 auto 1rem; padding: .75rem 1rem; background: var(--surface); border-radius: .5rem; }
.staff-nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; color: #0A0B0A; background: #FFFFFF; border: 1px solid #B8A891; border-radius: 999px; text-decoration: none; font-weight: 600; transition: background .15s ease; }
.staff-nav-link:hover { background: #EFE1D2; }
.staff-nav-link:focus-visible { outline: 3px solid #B88900; outline-offset: 2px; }
.staff-user { display: flex; align-items: center; gap: .75rem; margin-left: auto; font-weight: 600; color: #0A0B0A; }
.staff-logout { color: #5D390A; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }
.staff-hub { max-width: 72rem; margin: auto; padding: 1rem; }
.role-summary { color: #5D390A; font-weight: 600; }
.module-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.module-card { border: 2px solid #5A5147; border-radius: .75rem; background: #FFFFFF; box-shadow: 0 1px 2px rgb(10 11 10 / 8%); transition: box-shadow .15s ease, transform .15s ease; }
.module-card:hover, .module-card:focus-within { box-shadow: 0 6px 16px rgb(10 11 10 / 14%); transform: translateY(-2px); }
.module-link { display: block; padding: 1rem; min-height: 44px; color: #0A0B0A; text-decoration: none; }
.module-link:focus-visible { outline: 3px solid #B88900; outline-offset: 2px; }
.module-link h3 { margin: 0 0 .35rem; }
.module-description { margin: 0 0 .5rem; color: #4A4540; }
.module-count { margin: 0; font-weight: 700; color: #5D390A; }
.staff-login {
  box-sizing: border-box; /* keep the border inside the calc() width below, not added on top of it */
  max-width: 22rem;
  width: calc(100% - 2rem); /* guarantees a gutter instead of touching screen edges below 26rem+2rem wide */
  margin: 2rem auto;
  padding: 1rem;
  gap: .75rem;
  border: 1px solid #B8A891;
  box-shadow: 0 6px 20px rgb(10 11 10 / 10%); /* visually separates the card from the page background */
}
.staff-login h2 { margin: 0; font-size: 1.15rem; }
.staff-login input { min-height: 44px; padding: .4rem .6rem; } /* 44px kept for the WCAG touch-target floor; only the padding shrinks */

.media-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
.media-tile { max-width: 14rem; }
.media-tile h4 { margin: 0 0 .25rem; font-size: .85rem; }
.media-tile video { width: 100%; aspect-ratio: 16 / 9; background: #0A0B0A; border-radius: .5rem; object-fit: cover; }

@media (max-width: 48rem) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .staff-nav { display: none; flex-direction: column; align-items: stretch; }
  .staff-nav.is-open { display: flex; }
  .staff-user { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .module-card { transition: none; }
}
