/* =========================================================================
   Members — directory list, filters, A-Z groups and the profile card.
   Owns only .member-* (plus .member-list on the shared .list component).
   ========================================================================= */

.member-head { margin-bottom: var(--s-3); }

/* ------------------------------------------------------------- toolbar */

.member-toolbar { margin-bottom: var(--s-2); }

.member-search-wrap {
  position: relative;
  margin-bottom: var(--s-3);
}

.member-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  line-height: 1;
  opacity: .65;
  pointer-events: none;
}

input.member-search {
  width: 100%;
  min-height: 46px;
  padding-left: 38px;
  border-radius: var(--r-pill);
  background: var(--surface);
}
input.member-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.member-chips { margin-bottom: var(--s-2); }
.member-chips:last-child { margin-bottom: var(--s-3); }

.member-count {
  margin: 0 0 var(--s-3);
  padding-left: 2px;
  font-weight: 600;
}

/* ---------------------------------------------------------- A-Z groups */

.member-group {
  position: sticky;
  top: calc(var(--banner-h) + var(--appbar-h));
  z-index: 3;
  margin: var(--s-4) 0 var(--s-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: inline-block;
}
.member-group:first-child { margin-top: 0; }

@media (prefers-color-scheme: dark) {
  .member-group { color: var(--blue); }
}

.member-list { margin-bottom: var(--s-2); }

/* ------------------------------------------------------------- rows */

.member-row {
  gap: var(--s-3);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
  cursor: pointer;
}

.member-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-nameline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.member-name {
  font-weight: 600;
  font-size: .97rem;
  color: var(--ink);
}

.member-flag {
  font-size: 10px;
  height: 17px;
  min-width: 0;
  letter-spacing: .02em;
}

.member-place {
  font-size: .8rem;
  color: var(--muted);
}

.member-chevron {
  flex: 0 0 auto;
  color: var(--line-strong);
  font-size: 20px;
  line-height: 1;
}

.member-row:hover .member-chevron { color: var(--blue); }

/* ----------------------------------------------------------- profile */

.member-back {
  display: inline-block;
  margin-bottom: var(--s-3);
  font-size: .9rem;
}

.member-profile { padding: var(--s-5); }

.member-profile-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

.member-profile-id { min-width: 0; }

.member-profile-name {
  margin: 0 0 2px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.member-profile-role {
  margin: 0;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 500;
}

.member-profile-place {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.member-tags .badge { height: 22px; font-size: 11px; }

.member-airport {
  background: var(--blue-soft);
  color: var(--navy);
  letter-spacing: .03em;
}

.member-bio {
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
  line-height: 1.55;
}

.member-sub {
  margin: 0 0 var(--s-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.member-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.member-contact {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.member-contact-icon { display: inline-flex; line-height: 1; color: #ec4899; }
.member-contact-icon svg { width: 20px; height: 20px; stroke-width: 2; }
.member-search-icon svg { width: 18px; height: 18px; }
.member-airport svg { width: 14px; height: 14px; vertical-align: -2px; }
.member-contact-body { display: flex; flex-direction: column; min-width: 0; }

.member-contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.member-contact-value {
  font-size: .92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-private { margin-bottom: var(--s-4); }
.member-since { margin: 0 0 var(--s-4); }

.member-actions { margin-top: var(--s-2); }
.member-actions .btn { flex: 1 1 140px; }

@media (min-width: 620px) {
  .member-profile-head { gap: var(--s-5); }
  .member-actions .btn { flex: 0 0 auto; min-width: 150px; }
}
