/* ============================================================
   "Meet the people behind your return" on /about/ (markup: teamSection
   in tools/lib/site.mjs, data: data/team.json, filters: /assets/team.js).
   Uses the tokens from /assets/site.css. In dark mode the section becomes
   a navy band, like the closing panel and footer.
   ============================================================ */
.team{
  --t-bg:transparent; --t-card:var(--surface); --t-feature:#FBF5E6; --t-feature-border:#E8D7AE;
  --t-head:var(--navy); --t-text:var(--charcoal-dark); --t-muted:var(--charcoal); --t-border:var(--border);
  --t-chip-fg:var(--navy); --t-chip-border:var(--border-strong); --t-chip-on-bg:var(--navy); --t-chip-on-fg:#fff;
  --t-avatar-bg:var(--navy); --t-avatar-fg:#fff; --t-ring-gap:var(--surface);
  background:var(--t-bg); padding-block:clamp(40px,6vw,72px);
}
@media (prefers-color-scheme:dark){
  .team{
    --t-bg:var(--navy); --t-card:#132B4C; --t-feature:#222F3C; --t-feature-border:#6B5A33;
    --t-head:#FFFFFF; --t-text:#E3E8EF; --t-muted:var(--on-dark-muted); --t-border:#2C4569;
    --t-chip-fg:#FFFFFF; --t-chip-border:#4A6288; --t-chip-on-bg:var(--gold); --t-chip-on-fg:var(--navy);
    --t-avatar-bg:#FFFFFF; --t-avatar-fg:var(--navy); --t-ring-gap:var(--navy);
    --focus:#FFFFFF; color-scheme:dark;
  }
}

.team-head{ max-width:760px; margin-bottom:28px; }
.team .eyebrow{ color:var(--t-muted); }
.team-head h2{ font-size:clamp(2.2rem,5vw,3.4rem); color:var(--t-head); margin-bottom:14px; }
.team-head .lead{ color:var(--t-text); margin:0; }

/* Filters (shown by team.js; without JavaScript every card is listed) */
.team-filters{ display:grid; gap:16px; margin-bottom:28px; padding:20px; border:1px solid var(--t-border); border-radius:var(--r); background:var(--t-card); }
.team-filter-row{ display:grid; gap:8px; }
@media (min-width:760px){ .team-filter-row{ grid-template-columns:110px 1fr; align-items:start; } .team-filter-label{ padding-top:10px; } }
.team-filter-label{ font-size:.875rem; font-weight:600; color:var(--t-text); }
.team-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.team-chip{
  min-height:44px; padding:8px 16px; border:1px solid var(--t-chip-border); border-radius:999px; background:transparent;
  color:var(--t-chip-fg); font:500 .95rem/1.2 var(--font-sans); cursor:pointer; transition:background-color .2s, color .2s, border-color .2s;
}
.team-chip:hover{ border-color:var(--t-chip-fg); }
.team-chip[aria-pressed="true"]{ background:var(--t-chip-on-bg); border-color:var(--t-chip-on-bg); color:var(--t-chip-on-fg); font-weight:600; }
.team-chip:focus-visible{ outline:3px solid var(--focus); outline-offset:2px; }
.team-count{ margin:0; font-size:.9rem; color:var(--t-muted); }

/* Cards */
.team-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap:16px; }
@media (min-width:1024px){ .team-grid{ gap:20px; } }
.team-card{
  display:flex; gap:16px; align-items:flex-start; min-width:0; padding:22px;
  background:var(--t-card); border:1px solid var(--t-border); border-radius:14px;
}
.team-card[hidden]{ display:none; }
.team-card.is-shown{ animation:team-in .25s var(--ease); }
@keyframes team-in{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:none; } }
.team-avatar{
  flex:none; display:grid; place-items:center; width:56px; height:56px; border-radius:50%;
  background:var(--t-avatar-bg); color:var(--t-avatar-fg); font:500 1.15rem/1 var(--font-serif); letter-spacing:.02em;
  box-shadow:0 0 0 2px var(--t-ring-gap), 0 0 0 4px var(--gold); margin:4px;
}
.team-body{ display:flex; flex-direction:column; min-width:0; flex:1; height:100%; }
.team-name{ margin:0 0 2px; font-size:1.25rem; font-weight:500; color:var(--t-head); overflow-wrap:anywhere; }
.team-role{ margin:0 0 10px; font-size:.95rem; font-weight:600; color:var(--t-text); text-transform:none; letter-spacing:0; }
.team-bio{ margin:0 0 14px; font-size:.975rem; line-height:1.6; color:var(--t-text); }
.team-offices{ display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; }
.team-offices li{
  display:inline-flex; align-items:center; gap:7px; padding:3px 10px; border:1px solid var(--t-border); border-radius:999px;
  font-size:.8125rem; font-weight:500; color:var(--t-text);
}
.team-offices li::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); }

/* Founder: full width, light gold tint */
.team-card-featured{ grid-column:1 / -1; background:var(--t-feature); border-color:var(--t-feature-border); }
.team-card-featured .team-avatar{ width:72px; height:72px; font-size:1.5rem; }
.team-card-featured .team-name{ font-size:clamp(1.4rem,2.4vw,1.75rem); }
.team-card-featured .team-bio{ max-width:70ch; font-size:1rem; }
@media (max-width:479px){ .team-card{ flex-direction:column; } }

.team-empty{ margin:8px 0 0; padding:20px; border:1px dashed var(--t-chip-border); border-radius:var(--r); color:var(--t-text); text-align:center; max-width:none; }

@media (prefers-reduced-motion:reduce){
  .team-card.is-shown{ animation:none; }
  .team-chip{ transition:none; }
}
