| Organization (Details) - shares | Dec. 03, 2021 | Mar. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | 
|---|---|---|---|---|
| P3 Llc | ||||
| Organization | ||||
| Ownership in P3 LLC common units | 17.10% | |||
| Class A Common Stock | ||||
| Organization | ||||
| Number of shares issued | 8,700,000 | |||
| Number of shares no longer subject to redemption | 3,700,000 | |||
| Number of shares outstanding | 41,579,000 | 41,578,890 | 41,578,890 | |
| Class A Common Stock | Private Placement | ||||
| Organization | ||||
| Number of shares issued | 20,400,000 | |||
| Class A Common Stock | Founder Holders | ||||
| Organization | ||||
| Number of shares outstanding | 8,800,000 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Represents the number of number of shares no longer subject to redemption. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Percentage investment held by the managing member or general partner of the limited liability company (LLC) or limited partnership (LP). Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Number of new stock issued during the period. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |