/* A project on a member's public profile and Curriculum Opera, in the
   Projects page card's design (Arthur, 2026-10-17): cover, icon beside the
   name, role and visibility, italic description, then the people. Template
   templates/partials/public_project_card.html. */
.ppc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ppc {
  overflow: hidden;
  height: 100%;
  border-radius: 20px;
  background: var(--surface-1, #fffdf8);
  box-shadow: var(--shadow, 0 8px 24px rgba(38, 30, 24, 0.08));
  color: var(--ink, #26221f);
}

.ppc-cover {
  height: 120px;
  background: var(--surface-2, #f6eedf);
}

.ppc-cover--cv1 { background: linear-gradient(140deg, #8fae7c, #3f5836); }
.ppc-cover--cv2 { background: linear-gradient(140deg, #7fb0be, #35525e); }
.ppc-cover--cv3 { background: linear-gradient(140deg, #f0c869, #b98400); }

.ppc-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ppc-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 20px;
  text-align: center;
}

.ppc-name {
  margin: 0;
  font-family: var(--font-serif, 'EB Garamond', serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ppc-name a {
  color: inherit;
  text-decoration: none;
}

.ppc-name a:hover {
  text-decoration: underline;
}

.ppc-icon {
  margin-right: 6px;
  color: var(--gold-dark, #8a6400);
  font-size: 1rem;
}

.ppc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin: -4px 0 0;
  color: var(--soft-ink, #554f49);
  font-size: 0.82rem;
}

.ppc-chip {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2, #f6eedf);
  white-space: nowrap;
}

.ppc-desc {
  margin: 0;
  color: var(--soft-ink, #554f49);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* People: owner and co-admins side by side, a hairline, members overlapping. */
.ppc-faces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 6px;
}

.ppc-face {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -9px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface-1, #fffdf8);
  object-fit: cover;
  color: #fffdf8;
  font-size: 0.68rem;
  line-height: 1;
}

.ppc-faces > .ppc-face:first-child,
.ppc-faces-rule + .ppc-face,
.ppc-face--leader {
  margin-left: 0;
}

.ppc-face--leader {
  margin-right: 3px;
}

.ppc-face--m1 { background: #7a8f6b; }
.ppc-face--m2 { background: #6b8793; }
.ppc-face--m3 { background: #9a7a5a; }
.ppc-face--m4 { background: #85709e; }

.ppc-faces-rule {
  width: 1px;
  height: 20px;
  margin: 0 9px 0 4px;
  background: rgba(38, 34, 31, 0.18);
}

.ppc-faces-more {
  margin-left: 4px;
  color: var(--soft-ink, #554f49);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* The Opera's provenance line: since when, and its proof badges. */
.ppc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  color: var(--soft-ink, #554f49);
  font-size: 0.78rem;
}

/* On the public profile the card sits in the card row's tile; the tile
   gives up its own surface so the card's shows. */
.space-project-tile.space-project-tile--card {
  display: block;
  background: none;
  box-shadow: none;
  border-radius: 20px;
}

.space-project-tile.space-project-tile--card:hover {
  box-shadow: none;
}
