@charset "UTF-8";

/* SET FREE · Team directory. Load after styles.css and profiles.css.
   Account/contact visibility is controlled by markup, not by CSS.
   Cards intentionally remain a single vertical list at every viewport size. */
.team-directory {
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  color: var(--ink, #1f3933);
}

.team-directory .page-heading.team-directory-heading {
  align-items: flex-end;
  gap: 24px;
  margin: 0 0 28px;
}

.team-directory .team-directory-heading > div {
  flex: 1 1 auto;
  min-width: 0;
}

.team-directory .team-directory-heading .eyebrow {
  margin: 0 0 10px;
  color: var(--teal, #14695d);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
}

.team-directory .team-directory-heading h1 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

.team-directory .team-directory-heading .subhead {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--muted, #63756f);
  font-size: 16px;
  line-height: 1.65;
}

.team-directory .team-directory-heading > .button {
  flex: 0 0 auto;
  min-height: 48px;
}

.team-directory .team-directory-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.team-directory .team-member-card {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line, #dce6e1);
  border-radius: 18px;
  background: var(--white, #fff);
  box-shadow: none;
}

.team-directory .team-member-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

/* Keep the photo's geometry even when a full name needs several lines.
   The existing image, initials, hidden-image and screen-reader rules remain. */
.team-directory .team-member-header > .profile-photo {
  flex: 0 0 60px;
  width: 60px;
  min-width: 60px;
  height: 60px;
  margin: 0;
  border-radius: 50%;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: none;
}

.team-directory .team-member-identity {
  flex: 1 1 0%;
  min-width: 0;
}

/* User-provided names and contacts are readable in full, never clipped. */
.team-directory .team-member-card [data-user-content] {
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  letter-spacing: 0;
  text-transform: none;
}

.team-directory .team-member-name {
  margin: 0;
  color: var(--deep, #143d3a);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.team-directory .team-member-role {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--mint, #eaf3ed);
  color: var(--muted, #63756f);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.team-directory .team-member-access {
  margin-top: 18px;
  min-width: 0;
  border-radius: 10px;
  background: var(--paper, #f5f7f3);
}

.team-directory .team-member-access > summary {
  min-height: 48px;
  padding: 12px 16px;
  color: var(--teal, #14695d);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.team-directory .team-member-access[open] > summary {
  border-bottom: 1px solid var(--line, #dce6e1);
}

.team-directory .team-member-access .team-member-details {
  margin: 0;
  padding: 18px 16px;
}

/* Only rendered for Master. Both columns start at the card's own edge,
   not at the name's edge; mobile keeps that same full-width reading area. */
.team-directory .team-member-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  width: 100%;
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
}

.team-directory .team-member-details > div {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.team-directory .team-member-details dt {
  margin: 0 0 6px;
  color: var(--muted, #63756f);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}

.team-directory .team-member-details dd {
  display: block;
  min-width: 0;
  margin: 0;
  color: var(--ink, #1f3933);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.team-directory .team-member-details dd a {
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.team-directory .team-member-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  width: 100%;
  min-width: 0;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line, #dce6e1);
}

.team-directory .team-member-footer > .tag {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.team-directory .small-action.team-member-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--line, #dce6e1);
  border-radius: 11px;
  background: var(--white, #fff);
  color: var(--teal, #14695d);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background .16s ease, border-color .16s ease;
}

.team-directory .team-member-action:hover:not(:disabled) {
  border-color: #b5cfc0;
  background: var(--mint, #eaf3ed);
}

.team-directory .team-member-action .icon,
.team-directory .team-member-action svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.team-directory .team-member-action svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-directory .team-directory-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 40px 24px;
  border: 1px solid var(--line, #dce6e1);
  border-radius: 18px;
  background: var(--warm, #fbfaf5);
  text-align: center;
}

.team-directory .team-directory-empty > .icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 13px;
  background: var(--mint, #eaf3ed);
  color: var(--teal, #14695d);
}

.team-directory .team-directory-empty h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.team-directory .team-directory-empty p {
  max-width: 480px;
  margin: 0;
  color: var(--muted, #63756f);
  font-size: 16px;
  line-height: 1.65;
}

/* Retain the existing disclosure and role descriptions, separate from cards. */
.team-directory .quiet-details.team-role-guide {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  border-radius: 18px;
  background: var(--warm, #fbfaf5);
}

.team-directory .team-role-guide > summary {
  min-height: 64px;
  padding: 18px 24px;
  line-height: 1.5;
}

.team-directory .team-role-guide .simple-role-list {
  min-width: 0;
  padding: 20px 24px;
}

.team-directory .team-role-guide .simple-role-list p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
}

.team-directory .team-role-guide .simple-role-list p:last-child {
  margin-bottom: 0;
}

.team-directory :is(button, a, summary, [tabindex]):focus-visible {
  outline: 3px solid #68a995;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .team-directory .page-heading.team-directory-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
  }

  .team-directory .team-directory-heading > .button {
    align-self: flex-start;
  }

  .team-directory .team-directory-list {
    gap: 16px;
  }

  .team-directory .team-member-card {
    padding: 20px;
  }

  .team-directory .team-member-header > .profile-photo {
    flex-basis: 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .team-directory .team-member-name {
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .team-directory .team-member-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
  }

  .team-directory .team-member-footer {
    margin-top: 20px;
    padding-top: 18px;
  }

  .team-directory .team-directory-empty {
    padding: 32px 20px;
  }

  .team-directory .team-directory-empty h2 {
    font-size: 22px;
  }

  .team-directory .team-role-guide > summary {
    padding: 18px 20px;
  }

  .team-directory .team-role-guide .simple-role-list {
    padding: 20px;
  }
}

@media (max-width: 500px) {
  .team-directory .team-member-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .team-directory .team-member-footer > .tag {
    align-self: flex-start;
  }

  .team-directory .small-action.team-member-action {
    flex: none;
    width: 100%;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-directory,
  .team-directory *,
  .team-directory *::before,
  .team-directory *::after {
    scroll-behavior: auto;
    animation: none;
    transition: none;
  }
}
