/* About Us staff directory (lib/render.mjs renderStaff): leadership cards, department heads, filterable photo grid. */
.acs-staff {
  --navy: #071a36; --blue: #1f8fd6; --green: #8dc63f; --muted: #5d6b82; --line: #e6edf5; --ease: cubic-bezier(.22, 1, .36, 1);
  padding: 90px 0 100px; font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; color: var(--navy); -webkit-font-smoothing: antialiased;
  background: radial-gradient(800px 400px at 90% 0%, rgba(31, 143, 214, .08), transparent 70%), radial-gradient(700px 400px at 0% 60%, rgba(141, 198, 63, .08), transparent 70%), #fff;
}
.acs-staff *, .acs-staff *::before, .acs-staff *::after { box-sizing: border-box; }
.acs-staff ul { list-style: none; margin: 0; padding: 0; }
.acs-staff figure, .acs-staff blockquote { margin: 0; }
.acs-staff .acs-staff__inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.acs-staff .acs-staff__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.acs-staff .acs-staff__eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--blue-ink, #1670b0); }
.acs-staff .acs-staff__h { margin: 0; font-family: inherit; font-size: clamp(30px, 4vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--navy); text-transform: none; }
.acs-staff .acs-staff__h span { background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acs-staff .acs-staff__lead { margin: 16px auto 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* jump links to each group */
.acs-staff .acs-staff__jump { position: sticky; top: 96px; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 34px -24px rgba(7, 26, 54, .5); }
.acs-staff .acs-staff__jump button { border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: 0; text-transform: none; box-shadow: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--navy); text-decoration: none; transition: background-color .25s, color .25s; }
.acs-staff .acs-staff__jump button span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: #eef3f9; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; transition: inherit; }
.acs-staff .acs-staff__jump button:hover, .acs-staff .acs-staff__jump button.is-on { background: var(--navy); color: #fff; }
.acs-staff .acs-staff__jump button:hover span, .acs-staff .acs-staff__jump button.is-on span { background: var(--green); color: var(--navy); }

/* one block per group: a centred heading, then round portraits */
.acs-staff .acs-staff__group { scroll-margin-top: 170px; }
.acs-staff .acs-staff__group + .acs-staff__group { margin-top: 72px; }
.acs-staff .acs-staff__gh { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 34px; font-family: inherit; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); text-transform: none; }
.acs-staff .acs-staff__gh::before, .acs-staff .acs-staff__gh::after { content: ""; flex: 1; max-width: 260px; height: 2px; border-radius: 2px; }
.acs-staff .acs-staff__gh::before { background: linear-gradient(90deg, transparent, var(--blue)); }
.acs-staff .acs-staff__gh::after { background: linear-gradient(90deg, var(--green), transparent); }
.acs-staff .acs-staff__gh span { padding: 3px 11px; border-radius: 999px; background: rgba(141, 198, 63, .18); color: #4a7a14; font-size: 13px; font-weight: 800; letter-spacing: 0; }

.acs-staff .acs-staff__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 26px; }
.acs-staff .acs-staff__card { position: relative; width: 168px; animation: acs-staff-in .6s var(--ease) both; animation-delay: calc(min(var(--n, 0), 16) * 35ms); }
@keyframes acs-staff-in { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: none; } }
.acs-staff .acs-staff__card figure { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* portrait in a gradient ring that spins on hover */
.acs-staff .acs-staff__pic { position: relative; display: block; width: 144px; height: 144px; padding: 5px; border-radius: 50%; isolation: isolate; transition: transform .45s var(--ease); }
.acs-staff .acs-staff__pic::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, var(--blue), var(--green), #6cc4ff, var(--blue)); transition: transform 1.2s var(--ease); }
.acs-staff .acs-staff__pic img, .acs-staff .acs-staff__pic .acs-initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; border: 4px solid #fff; background: #eef3f9; }
.acs-staff .acs-staff__card:hover .acs-staff__pic { transform: translateY(-6px) scale(1.04); }
.acs-staff .acs-staff__card:hover .acs-staff__pic::before { transform: rotate(180deg); }
.acs-staff .acs-staff__card figcaption { margin-top: 14px; }
.acs-staff .acs-staff__card figcaption b { display: block; font-size: 15.5px; line-height: 1.3; color: var(--navy); }
.acs-staff .acs-staff__card figcaption span { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #eef5fc; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: #12689f; }

/* quote: a speech bubble above the portrait */
.acs-staff .acs-staff__q { position: absolute; left: 50%; bottom: calc(100% - 20px); z-index: 3; width: 250px; padding: 14px 16px; border-radius: 18px; background: var(--navy); color: #fff;
  font-size: 13.5px; line-height: 1.5; font-style: italic; text-align: center; box-shadow: 0 24px 50px -20px rgba(7, 26, 54, .7);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .25s, transform .4s var(--ease), visibility 0s .4s; pointer-events: none; }
.acs-staff .acs-staff__q::after { content: ""; position: absolute; left: 50%; top: 100%; border: 9px solid transparent; border-top-color: var(--navy); transform: translateX(-50%); }
.acs-staff .acs-staff__card:hover .acs-staff__q { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* Administration: larger portraits */
.acs-staff .acs-staff__group--leadership .acs-staff__card { width: 200px; }
.acs-staff .acs-staff__group--leadership .acs-staff__pic { width: 180px; height: 180px; padding: 6px; }
.acs-staff .acs-staff__group--leadership figcaption b { font-size: 17px; }
.acs-staff .acs-staff__group--leadership figcaption span { background: var(--navy); color: #fff; }

/* no photo yet: initials on a gradient */
.acs-staff .acs-initials { place-items: center; font-size: 40px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 55%), linear-gradient(135deg, #1f8fd6, #0b2a55 60%, #4d8a1c) !important; }

@media (max-width: 600px) {
  .acs-staff { padding: 64px 0 72px; }
  .acs-staff .acs-staff__inner { padding: 0 16px; }
  .acs-staff .acs-staff__jump { top: 84px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: auto; margin: 0 -16px 32px; border-radius: 0; border-width: 1px 0; scrollbar-width: none; }
  .acs-staff .acs-staff__jump button { flex: none; }
  .acs-staff .acs-staff__group + .acs-staff__group { margin-top: 44px; }
  .acs-staff .acs-staff__grid { gap: 26px 10px; }
  .acs-staff .acs-staff__card, .acs-staff .acs-staff__group--leadership .acs-staff__card { width: calc(50% - 10px); }
  .acs-staff .acs-staff__pic { width: 118px; height: 118px; }
  .acs-staff .acs-staff__group--leadership .acs-staff__pic { width: 136px; height: 136px; }
  .acs-staff .acs-initials { font-size: 32px; }
  .acs-staff .acs-staff__q { display: none; }
  .acs-staff .acs-staff__card figcaption b { font-size: 14.5px; }
  .acs-staff .acs-staff__card figcaption span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .acs-staff * { animation: none !important; transition: none !important; } }

/* larger groups open folded: the first six people, then "Show all" */
.acs-staff .acs-staff__group.is-folded .acs-staff__card:nth-child(n+7) { display: none; }
.acs-staff .acs-staff__more { display: flex; align-items: center; gap: 8px; margin: 30px auto 0; padding: 12px 22px; border: 1.5px solid #c9d6e6; border-radius: 999px; background: #fff; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--navy); box-shadow: none; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.acs-staff .acs-staff__more::after { content: ""; width: 8px; height: 8px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s; }
.acs-staff .acs-staff__more[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.acs-staff .acs-staff__more:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
/* one department at a time */
.acs-staff .acs-staff__group[hidden] { display: none; }
.acs-staff .acs-staff__group + .acs-staff__group { margin-top: 0; }

/* ---------- staff ID badges on lanyards (renderStaff): the lanyard, the band and the department label take the department's
   colour; the badge swings when pointed at ---------- */
.acs-staff .acs-staff__group--leadership { --tone: #0b2a55; --ink: #fff; }
.acs-staff .acs-staff__group--coordinators { --tone: #2490d8; --ink: #071a36; }
.acs-staff .acs-staff__group--supervisors { --tone: #1a6fa8; --ink: #fff; }
.acs-staff .acs-staff__group--specialed { --tone: #f7b733; --ink: #071a36; }
.acs-staff .acs-staff__group--teachers { --tone: #90c03c; --ink: #071a36; }
.acs-staff .acs-staff__group--staff { --tone: #6cc4ff; --ink: #071a36; }

.acs-staff .acs-staff__grid { gap: 36px 24px; }
.acs-staff .acs-staff__card { display: flex; flex-direction: column; width: 232px; }
.acs-staff .acs-staff__group--leadership .acs-staff__card { width: 252px; }
/* the badge swings from its clip (the card itself keeps its entrance animation) */
.acs-staff .acs-staff__card:hover .acs-staff__badge { animation: acs-staff-swing 1.1s var(--ease) both; }
.acs-staff .acs-staff__badge { transform-origin: 50% -6px; }
@keyframes acs-staff-swing { 0% { transform: rotate(0); } 25% { transform: rotate(3deg); } 50% { transform: rotate(-2deg); } 75% { transform: rotate(1deg); } 100% { transform: rotate(0); } }

/* the lanyard, woven, with its metal clip */
.acs-staff .acs-staff__strap { position: relative; display: block; width: 22px; height: 54px; margin: 0 auto -6px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 55%), repeating-linear-gradient(180deg, rgba(255, 255, 255, .2) 0 2px, transparent 2px 6px), var(--tone, #2490d8);
  box-shadow: inset 2px 0 0 rgba(0, 0, 0, .12), inset -2px 0 0 rgba(0, 0, 0, .12); }
.acs-staff .acs-staff__strap::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 30px; height: 16px; margin-left: -15px; border-radius: 5px;
  background: linear-gradient(180deg, #f2f5f9, #aab8c7); box-shadow: 0 3px 5px rgba(7, 26, 54, .25); }

/* the badge */
.acs-staff .acs-staff__card figure.acs-staff__badge { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px 16px; border-radius: 20px; overflow: visible;
  flex: 1 1 auto; background: #fff; border: 1px solid #e3ebf4; box-shadow: 0 26px 44px -30px rgba(7, 26, 54, .55); text-align: center; transition: box-shadow .4s var(--ease); }
/* a sheen of light crosses the badge when it is pointed at */
.acs-staff .acs-staff__badge::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 20px; pointer-events: none; clip-path: inset(0 round 20px);
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .6) 46%, transparent 60%) no-repeat; background-size: 250% 100%; background-position: 130% 0; transition: background-position 1.1s var(--ease); }
.acs-staff .acs-staff__card:hover .acs-staff__badge::after { background-position: -40% 0; }
.acs-staff .acs-staff__card:hover figure.acs-staff__badge { box-shadow: 0 34px 54px -30px rgba(7, 26, 54, .6); }
.acs-staff .acs-staff__band { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 7px; align-self: stretch; height: 70px; margin: 0 -16px; padding: 0 12px 12px;
  border-radius: 19px 19px 0 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 8px, transparent 8px 16px), var(--tone, #2490d8); color: var(--ink, #fff); }
.acs-staff .acs-staff__slot { position: absolute; top: 12px; left: 50%; width: 46px; height: 9px; margin-left: -23px; border-radius: 5px; background: #fff; box-shadow: inset 0 2px 3px rgba(7, 26, 54, .35); }
.acs-staff .acs-staff__band img { width: 22px; height: 22px; padding: 2px; border-radius: 50%; background: #fff; box-sizing: border-box; }
.acs-staff .acs-staff__band b { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 22px; white-space: nowrap; }

/* the photo, a rounded square framed in white */
.acs-staff .acs-staff__badge .acs-staff__pic { width: 132px; height: 132px; margin-top: 14px; padding: 0; border-radius: 26px; }
.acs-staff .acs-staff__badge .acs-staff__pic::before { inset: -5px; border-radius: 30px; background: color-mix(in srgb, var(--tone, #2490d8) 30%, #fff); }
.acs-staff .acs-staff__card:hover .acs-staff__badge .acs-staff__pic::before { transform: none; }
.acs-staff .acs-staff__badge .acs-staff__pic img, .acs-staff .acs-staff__badge .acs-staff__pic .acs-initials { border-radius: 24px; border: 4px solid #fff; }
.acs-staff .acs-staff__card:hover .acs-staff__badge .acs-staff__pic { transform: none; }
.acs-staff .acs-staff__group--leadership .acs-staff__badge .acs-staff__pic { width: 150px; height: 150px; }

.acs-staff .acs-staff__badge figcaption { margin-top: 14px; }
.acs-staff .acs-staff__badge figcaption b { font-size: 16px; line-height: 1.3; }
.acs-staff .acs-staff__badge figcaption span { display: block; margin-top: 4px; padding: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 600; line-height: 1.45; color: #5d6b82; }
.acs-staff .acs-staff__group--leadership .acs-staff__badge figcaption span { background: none; color: #5d6b82; }
.acs-staff .acs-staff__dept { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--tone, #2490d8) 14%, #fff); color: #071a36; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.acs-staff .acs-staff__dept::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, #2490d8); }
/* a barcode along the bottom */
.acs-staff .acs-staff__code { display: block; box-sizing: border-box; width: 62%; height: 34px; margin-top: auto; padding-top: 14px; background-clip: content-box; opacity: .8;
  background: repeating-linear-gradient(90deg, #071a36 0 2px, transparent 2px 4px, #071a36 4px 5px, transparent 5px 8px, #071a36 8px 11px, transparent 11px 13px, #071a36 13px 14px, transparent 14px 17px); }
/* the quote floats above the badge */
.acs-staff .acs-staff__badge .acs-staff__q { bottom: calc(100% + 8px); }
/* a long quote gets a wider, slightly smaller bubble */
.acs-staff .acs-staff__q--long { width: 330px; font-size: 12.5px; }

/* department tabs carry the lanyard colours */
.acs-staff .acs-staff__jump button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9fb0c3; }
.acs-staff .acs-staff__jump #team-tab-leadership::before { background: #0b2a55; }
.acs-staff .acs-staff__jump #team-tab-coordinators::before { background: #2490d8; }
.acs-staff .acs-staff__jump #team-tab-supervisors::before { background: #1a6fa8; }
.acs-staff .acs-staff__jump #team-tab-specialed::before { background: #f7b733; }
.acs-staff .acs-staff__jump #team-tab-teachers::before { background: #90c03c; }
.acs-staff .acs-staff__jump #team-tab-staff::before { background: #6cc4ff; }
.acs-staff .acs-staff__jump button.is-on::before, .acs-staff .acs-staff__jump button:hover::before { box-shadow: 0 0 0 2px #fff; }

@media (max-width: 600px) {
  .acs-staff .acs-staff__grid { gap: 30px 12px; }
  .acs-staff .acs-staff__card, .acs-staff .acs-staff__group--leadership .acs-staff__card { width: calc(50% - 6px); }
  .acs-staff .acs-staff__strap { height: 40px; width: 18px; }
  .acs-staff .acs-staff__card figure.acs-staff__badge { padding: 0 10px 12px; border-radius: 16px; }
  .acs-staff .acs-staff__band { height: 56px; margin: 0 -10px; padding-bottom: 9px; border-radius: 15px 15px 0 0; }
  .acs-staff .acs-staff__band b { display: none; }
  .acs-staff .acs-staff__badge .acs-staff__pic, .acs-staff .acs-staff__group--leadership .acs-staff__badge .acs-staff__pic { width: 100px; height: 100px; border-radius: 20px; }
  .acs-staff .acs-staff__badge .acs-staff__pic img, .acs-staff .acs-staff__badge .acs-staff__pic .acs-initials { border-radius: 18px; }
  .acs-staff .acs-staff__dept { font-size: 10px; padding: 3px 8px; }
  .acs-staff .acs-staff__code { height: 30px; padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { .acs-staff .acs-staff__card:hover .acs-staff__badge { animation: none; } }
