/* 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; }
