/* Team. Tiles (homepage): 2 / 3 columns, then one row however many people at desktop. Cards (/about, T-606): one bordered card per person with the bio,
   1 / 2 columns; photo beside the text on phone and desktop, on top at tablet (two cards leave no room beside it).
   .ph is the placeholder box until a photo exists. Mockup: mockups/about-team-bios.html. */
.team .row{display:grid;gap:14px;grid-template-columns:repeat(2,1fr);margin-top:28px}
.team img{aspect-ratio:1/1;object-fit:cover;object-position:top;border-radius:var(--radius);width:100%}
.team b{display:block;margin-top:10px}
.team span{color:var(--ink-2);font-size:.88rem}
.team .ph{aspect-ratio:1/1;border-radius:var(--radius);border:1px dashed var(--line);background:var(--bg-2);display:grid;place-items:center;color:var(--ink-2);text-align:center;font-size:.85rem;padding:12px}

.team .row--cards{grid-template-columns:1fr;gap:20px}
.team .member{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:grid;grid-template-columns:120px 1fr;gap:18px;align-items:start;box-shadow:0 8px 24px rgba(var(--shadow-rgb),.06)}
.team .member img,.team .member .ph{width:120px}
.team .member .ph{font-size:.8rem;line-height:1.35;padding:6px}
.team .member b{margin-top:0;font-size:1.15rem}
.team .member span{display:block;margin-top:2px}
.team .member__bio{margin-top:10px;color:var(--ink-2);font-size:.95rem;line-height:1.6}

@media(min-width:600px){ /* breakpoint: large phone */
  .team .member{grid-template-columns:168px 1fr;padding:20px;gap:22px}
  .team .member img,.team .member .ph{width:168px}
}
@media(min-width:768px){ /* breakpoint: tablet */
  .team .row{grid-template-columns:repeat(3,1fr)}
  .team .row--cards{grid-template-columns:repeat(2,1fr);gap:24px}
  .team .member{grid-template-columns:1fr;padding:20px;gap:16px}
  .team .member img,.team .member .ph{width:100%;aspect-ratio:4/3;object-position:center 20%}
  .team .member .ph{font-size:.85rem;padding:12px}
}
@media(min-width:1024px){ /* breakpoint: desktop */
  .team .row:not(.row--cards){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)} /* everyone on one row: a fifth person must not drop alone to row two */
  .team .member{grid-template-columns:200px 1fr;padding:22px;gap:24px}
  .team .member img,.team .member .ph{width:200px;aspect-ratio:1/1;object-position:top}
}
