/* Event attendees modal (components/events/attendees-modal.html). Same shell language as the
   app's other dialogs — blurred backdrop, 20px corners like the feedback modal, a header with a
   round close button — with a scrollable people list underneath. */

.gf-event-attendees__backdrop {
  position: fixed;
  z-index: 200010;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 20px;
  background: rgba(16, 24, 40, 0.56);
  backdrop-filter: blur(3px);
}

.gf-event-attendees__dialog {
  display: flex;
  flex-direction: column;
  width: min(100%, 460px);
  min-width: 0;
  box-sizing: border-box;
  max-height: min(680px, calc(100dvh - 40px));
  overflow: hidden;
  color: #101828;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.24);
}

/* Plain divs, not <header>/<footer>: main.css paints every <footer> with the site gradient. */
.gf-event-attendees__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 18px 56px 18px 24px;
  background: #fff;
  border-bottom: 1px solid #eaecf0;
}

.gf-event-attendees__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gf-event-attendees__heading h2 {
  margin: 0;
  font-family: var(--gf-font);
  font-size: var(--gf-text-card);
  font-weight: var(--gf-weight-semibold);
  line-height: var(--gf-leading-card);
}

.gf-event-attendees__count {
  margin: 0;
  color: #667085;
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
}

.gf-event-attendees__close {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  color: #475467;
  background: #f2f4f7;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.gf-event-attendees__close:hover {
  background: #eaecf0;
}

.gf-event-attendees__close svg {
  width: 18px;
  height: 18px;
}

.gf-event-attendees__note {
  margin: 0;
  padding: 12px 24px 0;
  color: #667085;
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
}

.gf-event-attendees__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 12px 16px;
}

.gf-event-attendees__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gf-event-attendees__row:hover {
  background: #f8f9fb;
}

.gf-event-attendees__row:focus-visible {
  outline: 2px solid #2966f4;
  outline-offset: -2px;
}

.gf-event-attendees__avatar {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  background: #eff4ff;
  border-radius: 50%;
}

.gf-event-attendees__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gf-event-attendees__initials {
  color: #2966f4;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  text-transform: uppercase;
}

.gf-event-attendees__identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gf-event-attendees__name {
  overflow: hidden;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-medium);
  line-height: var(--gf-leading-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gf-event-attendees__handle {
  overflow: hidden;
  color: #667085;
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gf-event-attendees__tag {
  margin-left: auto;
  padding: 4px 10px;
  color: #2966f4;
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-medium);
  background: #eff4ff;
  border-radius: 999px;
}

.gf-event-attendees__empty {
  margin: 0;
  padding: 8px 24px 24px;
  color: #667085;
  font-size: var(--gf-text-body);
  line-height: var(--gf-leading-body);
}

.gf-event-attendees__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid #eaecf0;
}

.gf-event-attendees__footer p {
  margin: 0;
  color: #667085;
  font-size: var(--gf-text-caption);
  line-height: var(--gf-leading-caption);
}

.gf-event-attendees__primary {
  flex: none;
  padding: 10px 20px;
  color: #fff;
  font-family: var(--gf-font);
  font-size: var(--gf-text-body);
  font-weight: var(--gf-weight-semibold);
  background: #2966f4;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.gf-event-attendees__primary:hover {
  background: #1f55d6;
}

/* The stack's +N chip: a button, because it opens this dialog. */
.founders_dashboard_event_details_attendee.is-more {
  padding: 0;
  color: #fff;
  font-family: var(--gf-font);
  font-size: var(--gf-text-caption);
  font-weight: var(--gf-weight-semibold);
  background: #2966f4;
  border: 0;
  cursor: pointer;
}

.founders_dashboard_event_details_attendee.is-more:hover {
  background: #1f55d6;
}

@media (max-width: 560px) {
  .gf-event-attendees__backdrop {
    align-items: end;
    padding: 0;
  }

  .gf-event-attendees__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 20px 20px 0 0;
  }
}
