:root {
  --black: #111;
  --gray: #666;
  --line: #ddd;
  --white: #fff;
}

/* Custom @font-face removed; using Montserrat from Google Fonts */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  line-height: 1.5;
}

header h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--gray);
  margin: 0 0 40px;
  font-size: 15px;
}

/* ── Role sections ─────────────────────────────────────────────────────── */

.role-section {
  margin-bottom: 40px;
}

.role-heading {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

#list {
  margin-top: 24px;
}


/* ── Carousel ───────────────────────────────────────────────────────────── */

.carousel-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.carousel-viewport {
  overflow: hidden; /* clips sliding track without cutting off dots */
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  will-change: transform;
  /* transition set dynamically by JS */
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.dot:hover {
  background: #bbb;
}

.dot.active {
  background: var(--black);
  transform: scale(1.4);
}

.person {
  background: #f6f6f4;
  border-radius: 16px;
  display: flex;
  overflow: hidden;
}

.person-avatar {
  position: relative;
  flex-shrink: 0;
  width: 160px;
  align-self: stretch;
  background: #e8e8e5;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 500;
  overflow: hidden;
}

.person-avatar img {
  /* absolute so the photo's intrinsic size can't inflate the tile */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-body {
  flex: 1;
  padding: 26px 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.person-name {
  font-family: "Accent", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.person-type {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@media (max-width: 520px) {
  /* Absolute-positioned badge overlaps the name once it wraps on narrow
     screens — put it back in normal flow so it renders as its own line
     above the name instead. */
  .person-type {
    position: static;
    display: block;
    margin-bottom: 6px;
  }
}

.person-desc {
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  color: #444;
  margin: 0 0 18px;
}

.person-link a {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
}

.person-link a:hover {
  background: #333;
}

.empty {
  color: var(--gray);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

footer {
  margin-top: 48px;
  text-align: center;
}

/* ── Add-yourself button + signup modal ─────────────────────────────────── */

.add-btn {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
}

.add-btn:hover {
  background: #333;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.modal h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
}

.modal label,
.modal .field-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 14px;
}

.modal .field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.modal .field {
  margin-bottom: 14px;
}

.btn-mini {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--black);
  background: none;
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.btn-mini:hover {
  border-color: var(--gray);
}

.prompt-box {
  background: #f6f6f4;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 10px;
}

.prompt-box p {
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #444;
}

.modal .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #aaa;
}

.modal input,
.modal select,
.modal textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  resize: vertical;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-error {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--black);
  background: #f6f6f4;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.btn-solid,
.btn-ghost {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 20px;
  cursor: pointer;
}

.btn-solid {
  color: var(--white);
  background: var(--black);
  border: none;
}

.btn-solid:hover {
  background: #333;
}

.btn-solid:disabled {
  background: #999;
  cursor: default;
}

.btn-ghost {
  color: var(--black);
  background: none;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--gray);
}
