/* ==========================================================================
   Blok „Karty osób z filtrem” (.team): białe karty 18px z jedną linią, zdjęcie 4:5 na navy-50
   (bez zdjęcia – inicjały), działy i oddział jako małe etykiety, kontakt Rubik. Filtr: .seg.
   ========================================================================== */

.team__filter { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.team__filter[hidden] { display: none; }
.team__branch {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: 0 1rem 0 .9rem; height: 44px;
  border-radius: var(--radius-pill); background: var(--navy-50); color: var(--navy);
}
.team__branch .icon { width: 1rem; height: 1rem; flex: none; }
.team__branch select {
  appearance: none; border: 0; background: transparent; padding: 0 1.25rem 0 0; cursor: pointer;
  font-family: var(--font-ui); font-weight: 500; font-size: .875rem; color: var(--navy-900);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23234269' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 1rem;
}
.team__branch:focus-within { outline: 2px solid var(--navy-900); outline-offset: 2px; }
.team__branch select:focus { outline: none; }
.team__count { margin: 0 0 0 auto; font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); }

.team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.team__card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.team__card[hidden] { display: none; }
.team__card:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float); transform: translateY(-3px); }
.team__photo { position: relative; aspect-ratio: 4 / 5; background: var(--navy-50); overflow: hidden; }
.team__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 300; font-size: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); letter-spacing: -.03em; color: var(--navy);
}
.team__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.2rem 1.25rem; }
.team__name { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.25; color: var(--navy-900); }
.team__role { margin: .2rem 0 0; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
.team__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; }
.team__meta span {
  padding: .25rem .55rem; border-radius: var(--radius-pill); background: var(--navy-50);
  font-family: var(--font-ui); font-weight: 500; font-size: .75rem; line-height: 1.2; color: var(--navy-900);
}
.team__quote { margin: .8rem 0 0; font-weight: 300; font-size: 1rem; line-height: 1.45; color: var(--navy-900); }
.team__contact { display: flex; flex-direction: column; gap: .25rem; margin-top: auto; padding-top: .9rem; }
.team__contact a, .team__contact span { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.team__contact .icon { width: 1rem; height: 1rem; flex: none; color: var(--muted-2); }
.team__tel { font-family: var(--font-ui); font-weight: 600; font-size: .9375rem !important; color: var(--navy-900) !important; font-variant-numeric: tabular-nums; }
.team__contact a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .22em; }
.team__since { margin: .7rem 0 0; font-family: var(--font-ui); font-size: .75rem; color: var(--muted-2); }
.team__empty { margin: 1.5rem 0 0; color: var(--muted); }

/* edytor: szablon do uzupełnienia */
.team__todo { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border-radius: 12px; background: var(--orange-50); box-shadow: inset 0 0 0 1.5px var(--orange-100); }
.team__todo p { margin: 0; font-size: .9375rem; color: var(--navy-900); }
.team__grid--ghost .team__card { box-shadow: none; outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; background: transparent; }
.team__grid--ghost .team__card > * { opacity: .75; }
.team__grid--ghost .team__photo { background: var(--paper-2); }

@media (max-width: 1100px) {
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .team__filter .seg { width: 100%; display: flex; flex-wrap: wrap; border-radius: 18px; }
  .team__filter .seg label { flex: 1 1 auto; }
  .team__count { margin-left: 0; }
}
@media (max-width: 480px) {
  .team__grid { grid-template-columns: minmax(0, 1fr); }
  .team__card { flex-direction: row; }
  .team__photo { flex: none; width: 38%; aspect-ratio: auto; min-height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .team__card { transition: none; }
  .team__card:hover { transform: none; }
}
