body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  color: #1f2430;
  background: #ffffff;
}

footer {
  margin-top: auto;
  padding: 16px;
  position: fixed;
  bottom: 10px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
}

.team {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 32px;
}

/* One card per person: image, name and quiz box */
.team li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border: 1px solid #e3e6ee;
  border-radius: 16px;
}

.team img {
  display: block;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
}

.team span {
  font-weight: 600;
}

/* LinkedIn, GitHub and portfolio links under the name */
.team .links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.team .links a {
  display: inline-flex;
  color: #5a6175;
  font-size: 14px;
  text-decoration: none;
}

.team .links a:hover {
  color: #1f2430;
  text-decoration: underline;
}

.team .links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Based on, disclaimer, licence and third-party credits below the team */
.info {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid #e3e6ee;
  text-align: left;
  line-height: 1.6;
}

.info h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.info h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  color: #5a6175;
}

.info ul {
  margin: 0;
  padding-left: 20px;
}

.info li {
  margin-bottom: 4px;
}

.info a {
  color: #2f5fb3;
}

.info .cite {
  padding: 12px 16px;
  border-left: 3px solid #e3e6ee;
  background: #f6f7fa;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .team {
    grid-template-columns: 1fr;
  }
}

/* Section headings above the team cards */
main > section > h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.lead {
  margin: 0;
  color: #5a6175;
}

/* Contributors: a plain list, name followed by what they contributed */
.info .contributors {
  list-style: none;
  padding: 0;
}

.contributors li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f1f5;
}

.contributors .name {
  font-weight: 600;
}

.contributors .contribution {
  color: #5a6175;
}

.contributors .empty {
  color: #8b93a0;
  font-style: italic;
  border-bottom: none;
}

/* Role and years under the name on each card */
.team .meta {
  margin-top: 4px;
  color: #5a6175;
}

/* Original creators and former maintainers: smaller cards than the current maintainers */
.team-past {
  margin-top: 24px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.team-past li {
  padding: 16px;
}

.team-past img {
  max-width: 96px;
}

/* .info sets text-align: left, but cards should stay centred */
.info .team li {
  text-align: center;
}

[hidden] {
  display: none !important;
}
