/* ==========================================================================
   The team band on a gym page — "Meet the South Austin team"

   Loaded only by templates/location.mjs.

   Amy, September 23, 2026: "I think the team should be more similar to this
   style, either at top or bottom", against the old site's MEET THE HUTTO, TX
   TEAM band. The group photograph used to sit in the right-hand column of
   About this gym, labelled nothing, which is a photograph of some people
   rather than an introduction to the team.

   THE CROP IS THE ONLY DECISION IN THIS FILE. The four supplied photographs
   are 1536x1152, 1536x1029, 1536x913 and 601x440 — aspect ratios of 1.33,
   1.49, 1.68 and 1.37. There is no frame that fits all four untouched, so
   3:2 is the middle of that range and the frame trims least across the set.

   object-position is 50% 25%, not 50% 50%, and that is the part that matters.
   A group of coaches standing on a gym floor has heads along the top and
   floor along the bottom; centring the crop takes equal bites out of both,
   and the bite off the top is the one anybody notices. Biasing upwards spends
   the crop on the floor. This is BugHerd #51 — Randy: the team photos "look
   like the tops of their heads are cut off" — arrived at from the other
   direction, and it cost a round trip the first time.
   ========================================================================== */

.shot--team{
  aspect-ratio:3/2;
  max-width:980px;
  margin:clamp(2rem,4vw,2.75rem) auto 0;
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--lift-1);
}

.shot--team img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:50% 25%;
  display:block;
}

/* The people who have no headshot yet, as one line rather than a grid of
   empty boxes. Each name carries its role in a lighter span after it. */
.team__lead{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:.5rem clamp(1rem,3vw,2.25rem);
  margin:1.25rem auto 0;
  max-width:52rem;
  text-align:center;
  font-family:var(--display);font-weight:800;
  font-size:var(--step-0);
  color:var(--navy);
}
.team__lead span{
  display:block;
  font-weight:600;
  font-size:var(--step--1);
  color:var(--text-soft);
  letter-spacing:.02em;
}

/* Headshots, for whenever they arrive. .team and .program are jump.css's, the
   same pair /about-us/ uses; only the spacing above and the crop bias are
   new here, and the crop bias is the #51 fix, which lives in prose-media.css
   for the About page and has to be restated because that file is not loaded
   on a gym page. */
.shot--team + .team,
.team__lead + .team{margin-top:clamp(2rem,4vw,2.5rem)}
.team .program__media img{object-position:50% 18%}

@media (max-width:560px){
  .shot--team{border-radius:20px}
}

/* ---- flip cards for coach bios (gym pages) ------------------------------- */
.flipcard{position:relative;perspective:1200px;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.flipcard__front,.flipcard__back{
  backface-visibility:hidden;-webkit-backface-visibility:hidden;
  border-radius:var(--card-radius);background:#fff;box-shadow:var(--lift-1);overflow:hidden;
  transition:transform .55s cubic-bezier(.2,.7,.2,1);
}
.flipcard__front{display:flex;flex-direction:column;height:100%}
.flipcard__back{
  position:absolute;inset:0;transform:rotateY(180deg);
  display:flex;flex-direction:column;gap:.6rem;padding:1.25rem 1.25rem 1rem;
  border-top:6px solid var(--c,var(--teal));
}
.flipcard__bio{margin:0;overflow:auto;flex:1;font-size:.92rem;line-height:1.55;color:var(--text);padding-right:.25rem}
.flipcard.is-flipped .flipcard__front{transform:rotateY(-180deg)}
.flipcard.is-flipped .flipcard__back{transform:rotateY(0)}
.flipcard__btn{
  align-self:flex-start;margin-top:.5rem;background:none;border:0;padding:0;cursor:pointer;
  font-family:var(--display);font-weight:800;font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;
  color:color-mix(in srgb,var(--c,var(--teal)) 75%,#000);
}
.flipcard__btn:focus-visible{outline:3px solid var(--pink);outline-offset:3px;border-radius:4px}
/* Phone tap target (11/13): 44px-tall hit area, same look and position. */
.flipcard__btn{min-height:44px;display:inline-flex;align-items:center;padding:0 .5rem;margin:-.25rem 0 -.5rem -.5rem}
@media (prefers-reduced-motion:reduce){.flipcard__front,.flipcard__back{transition:none}}

/* Program flip cards on the gym pages (Randy, BugHerd #215-218, 11/3/2026):
   photo on the front, description on the back. Reuses the flip mechanics
   above; the back is sized by the front so the row stays even. */
.progcard{min-height:0}
.progcard .flipcard__front{background:#fff;border-radius:var(--card-radius);overflow:hidden;box-shadow:var(--lift-1);border-top:6px solid var(--c)}
.progcard__media{aspect-ratio:4/3;overflow:hidden;background:var(--paper,#f3f3f3)}
.progcard__media img{width:100%;height:100%;object-fit:cover;display:block}
.progcard__body{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.9rem 1.1rem 1rem}
.progcard__body h3{margin:0;font-size:var(--step-1)}
.progcard .flipcard__back{border-radius:var(--card-radius);border-top:6px solid var(--c);background:#fff;box-shadow:var(--lift-1);display:flex;flex-direction:column;gap:.45rem;padding:.95rem 1.1rem .85rem}
.progcard .flipcard__back h3{margin:0;font-size:var(--step-1)}
.progcard .flipcard__back p{margin:0;font-size:.84rem;line-height:1.45;color:var(--text);overflow:auto;flex:1}
.progcard .progstrip__links{margin-top:0}

/* Team photo caption: the coaches' names (Randy, BugHerd #220, 11/3/2026). */
.shot__caption{margin-top:.75rem;text-align:center;font-family:var(--display);font-weight:700;color:var(--ink);font-size:.95rem}

/* Tuition prompt while no program is chosen (BugHerd #221). */
.fees__prompt{margin:1rem 0 0;color:var(--text-soft);font-style:italic}
.fees__prompt[hidden]{display:none}

/* Tadpoles / Pollywogs / Frogs (BugHerd #253). */
.groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,2.5vw,1.5rem);margin-top:2rem}
@media (max-width:860px){.groups{grid-template-columns:1fr;max-width:420px;margin-inline:auto}}
.groups__ages{margin:.15rem 0 0;color:var(--text-soft);font-size:.9rem}
.groups__list{margin:0;padding-left:1.1rem;overflow:auto;flex:1;font-size:.9rem;line-height:1.45;color:var(--text)}
.groups__list li{margin:.2rem 0}
