/* Team page. Cards group by role; each opens a bio dialog. */
.team-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.team-filters button {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-70);
  transition: background .2s, color .2s, border-color .2s;
}
.team-filters button:hover { border-color: var(--ink-15); color: var(--ink-2); }
.team-filters button[aria-pressed="true"] { background: var(--oak); color: var(--cream); border-color: var(--oak); }

.team-group { padding-top: 56px; }
.team-group[hidden] { display: none; }
.team-group h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 28px; color: var(--ink-2); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 24px 24px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.team-card:hover, .team-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-float); border-color: var(--amber-tint); }
.team-photo {
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden; margin-bottom: 20px;
  border: 3px solid var(--amber); padding: 3px; background: var(--paper);
}
.team-photo img, .team-photo .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-photo .ph {
  display: grid; place-items: center; background: #F5F1E8; color: var(--ink-55);
  font-weight: 600; font-size: 34px; letter-spacing: -0.02em;
}
.team-name { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--ink-2); }
.team-role { margin: 4px 0 0; font-size: 14px; color: var(--amber-2); font-weight: 500; }
.team-actions { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.team-bio-btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2);
  background: none; border: 0; border-bottom: 2px solid var(--amber-tint); padding: 2px 0;
}
.team-bio-btn:hover { border-color: var(--amber); }
.team-in { color: var(--ink-55); display: inline-flex; }
.team-in:hover { color: var(--amber); }
.team-in svg { width: 20px; height: 20px; }

.team-draft { margin-top: 28px; padding: 12px 16px; border: 1px dashed var(--amber); border-radius: var(--radius); background: #FBF3E4; font-size: 14px; color: var(--ink-70); }

dialog.team-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 0; border-radius: 10px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow-image);
}
dialog.team-dialog::backdrop { background: rgba(31,26,18,.55); }
.team-dialog-body { padding: 40px 36px 36px; overflow-y: auto; max-height: calc(100vh - 48px); }
.team-dialog-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.team-dialog-head .team-photo { margin: 0; width: 96px; height: 96px; flex: none; }
.team-dialog-head .ph { font-size: 26px; }
.team-dialog h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.team-dialog p { margin: 0 0 14px; color: var(--ink-70); }
#team-dialog-text p { font-size: 13px; }
.team-dialog-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-70); cursor: pointer; display: grid; place-items: center;
}
.team-dialog-close:hover { background: var(--ink-08); color: var(--ink-2); }
.team-dialog-close svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .team-card { transition: none; } .team-card:hover { transform: none; } }
