/* Native horizontal team list; cards and biographies also work without JavaScript. */
#team .team-carousel { min-width: 0; }
#team .team-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
#team .team-toolbar > p { max-width: 580px; color: var(--muted); font-size: 14px; line-height: 1.65; }
#team .team-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
#team .team-controls[hidden] { display: none; }
#team .team-controls button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; font-size: 26px; line-height: 1; }
#team .team-controls button:disabled { opacity: .35; cursor: default; }
#team [data-team-counter] { min-width: 88px; color: var(--ink); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
#team .team-track { --team-visible: 1; --team-gap: 24px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--team-visible) - 1) * var(--team-gap)) / var(--team-visible)); grid-template-rows: auto; gap: var(--team-gap); align-items: stretch; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scroll-behavior: auto; padding: 4px 0 20px; scrollbar-width: auto; scrollbar-color: var(--red) var(--paper); -webkit-overflow-scrolling: touch; }
#team .team-track::-webkit-scrollbar { height: 12px; }
#team .team-track::-webkit-scrollbar-track { background: var(--paper); }
#team .team-track::-webkit-scrollbar-thumb { border: 3px solid var(--paper); background: var(--red); }
/* Override the inherited odd last-card layout at every breakpoint. */
#team .team-track > .team-card { display: flex; flex-direction: column; grid-column: auto; align-self: stretch; justify-self: stretch; width: auto; min-width: 0; max-width: none; margin: 0; scroll-snap-align: start; scroll-snap-stop: normal; }
#team .team-track > .team-card > img { order: 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 24%; }
#team .team-track > .team-card > .coach-tag { order: 1; margin-top: 20px; font-size: 12px; }
#team .team-track > .team-card > h3 { order: 2; margin-top: 12px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
#team .team-track > .team-card > .team-role { order: 3; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
#team .team-track > .team-card > .team-bio { order: 4; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
#team .team-bio summary { width: fit-content; max-width: 100%; min-height: 44px; padding: 8px 0; color: var(--red); font-size: 15px; font-weight: 700; line-height: 1.6; cursor: pointer; }
#team .team-bio dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 12px 0 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#team .team-bio dt { margin-top: 12px; color: var(--ink); font-weight: 700; }
#team .team-bio dt:first-child { margin-top: 0; }
#team .team-bio dd { margin: 0; color: var(--muted); }
#team .team-bio p { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
@media (min-width: 760px) { #team .team-track { --team-visible: 2; } }
@media (min-width: 1200px) { #team .team-track { --team-visible: 3; --team-gap: 28px; } }
@media (max-width: 599px) { #team .team-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; } #team .team-controls { align-self: flex-end; } }
@media (hover: hover) { #team .team-controls button:not(:disabled):hover { border-color: var(--red); color: var(--white); background: var(--red); } }
@media (prefers-reduced-motion: reduce) { #team .team-track { scroll-behavior: auto; } }