.projects-section {
  padding: 100px max(7vw, 28px);
  background: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  /* Sem isto o grid estica todos os cartoes da linha ate a altura do mais alto. */
  align-items: start;
}

.project-card,
.projects-empty {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.project-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card h3 {
  margin: 20px 0 4px;
  color: var(--navy);
  font-size: 22px;
}

.project-card p,
.project-card small,
.projects-empty {
  color: var(--muted);
}

.project-card p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.project-status {
  /* Item flex sem nowrap encolhe e quebra o texto dentro da pilula, virando um bloco alto. */
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #6a4b12;
  background: #fff2c7;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-status.submitted {
  color: #08714f;
  background: #dff7ed;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}

.project-actions .button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .projects-section {
    padding: 65px 28px;
  }

  .project-grid,
  .project-actions {
    grid-template-columns: 1fr;
  }
}
