Short-term investments Other Short-Term Investments Stock Appreciation Rights (SARs) Stock Appreciation Rights (SARs) [Member] Pay vs Performance Disclosure [Line Items] Financial asset or liabilities transfer in and out Financial Assets Or Liabilities Transferred, Level 3 Financial asset or liabilities transfer in and out. Statistical Measurement Statistical Measurement [Domain] Aggregate amount Line of Credit Facility, Maximum Borrowing Capacity Net realized losses on investment securities Realized Investment (Losses) Gains Realized Investment (Losses) Gains Changes in operating assets and liabilities: Increase (Decrease) in Operating Capital [Abstract] Underlying Security Market Price Change Underlying Security Market Price Change, Percent Related Party Transaction [Line Items] Related Party Transaction [Line Items] Expiration period (in years) Share-Based Compensation Arrangement by Share-Based Payment Award, Expiration Period Issuance of common stock, net of early exercise liability Proceeds From Issuance Of Common Stock, Net Of Early Exercise Liability Proceeds From Issuance Of Common Stock, Net Of Early Exercise Liability Medical Records Exchange, LLC Medical Records Exchange, LLC [Member] Medical Records Exchange, LLC Award Type Award Type [Domain] Fair Value as of Grant Date Award Grant Date Fair Value Investment, Name [Domain] Investment, Name [Domain] Beginning balance (in shares) Ending balance (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number Due within one year Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, Year One Statement of Stockholders' Equity [Abstract] Statement of Stockholders' Equity [Abstract] Investments, Debt and Equity Securities [Abstract] Investments, Debt and Equity Securities [Abstract] Non-Insurance Non-Insurance [Member] Non-Insurance Employer discretionary contribution amount Defined Contribution Plan, Employer Discretionary Contribution Amount Equity Method Investments and Joint Ventures [Abstract] MNPI Disclosure Timed for Compensation Value MNPI Disclosure Timed for Compensation Value [Flag] Penalties accrued Income Tax Examination, Penalties Accrued Segment Reporting [Abstract] Stock options, exercisable, weighted average remaining contractual term (in years) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Weighted Average Remaining Contractual Term Restatement Determination Date: Restatement Determination Date [Axis] Investment, Name [Axis] Investment, Name [Axis] Corporate debt securities Corporate Debt Securities [Member] Purchases of short-term investments, available-for-sale, and held-to-maturity securities Payments to Acquire Investments Other liabilities Increase (Decrease) in Other Noncurrent Liabilities Charter Bioscience Inc. Character Biosciences Inc [Member] Character Biosciences Inc Commitments and Contingencies (Note 14) Commitments and Contingencies Previously reported Previously Reported [Member] Insider Trading Policies and Procedures [Line Items] Stock options, exercisable, number (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Number Rule 10b5-1 Arrangement Terminated Rule 10b5-1 Arrangement Terminated [Flag] Liability for Unpaid Claims and Claims Adjustment Expense, Activity in Liability [Abstract] Liability for Unpaid Claims and Claims Adjustment Expense, Activity in Liability [Abstract] Restatement does not require Recovery Restatement Does Not Require Recovery [Text Block] Line of Credit Facility [Line Items] Line of Credit Facility [Line Items] Proceeds from maturities of short-term investments, available-for-sale, and held-to-maturity securities Proceeds from maturities of investment securities Proceeds From Maturity Of Short-Term Investments And Debt Securities, Available-for-sale and Held-to-Maturity Proceeds From Maturity Of Short-Term Investments And Debt Securities, Available-for-Sale and Held-to-Maturity Income Taxes Income Tax Disclosure [Text Block] Deferred revenue Increase (Decrease) in Contract with Customer, Liability Schedule of Revenue by Major Customers, by Reporting Segments [Table] Schedule of Revenue by Major Customers, by Reporting Segments [Table] Dividend yield Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Dividend Rate Exercise price, percentage of fair value of common stock Share-based Compensation Arrangement by Share-based Payment Award, Exercise Price Cap, Percentage Of Fair Value Share-based Compensation Arrangement by Share-based Payment Award, Exercise Price Cap, Percentage Of Fair Value Insurance Operations Insurance Operations [Member] Insurance Operations Greater than 12 months, Fair Value Debt Securities Available for Sale and Held to Maturity Continuous Unrealized Loss Position 12 Months or Longer, Fair Value Debt Securities Available for Sale and Held to Maturity Continuous Unrealized Loss Position 12 Months or Longer, Fair Value Beginning balance Ending balance Financial Liabilities Fair Value Disclosure Accrued retrospective premiums Increase (Decrease) in Unearned Premiums Current liabilities Liabilities, Current [Abstract] Preferred stock par value, (in dollars per share) Preferred Stock, Par or Stated Value Per Share Debt Securities, Available-for-sale, Amortized Cost [Abstract] Debt Securities, Available-for-Sale, Amortized Cost [Abstract] Intersegment revenues Intersegment Eliminations [Member] Weighted-average grant date fair value per share Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract] Restructuring Activities Restructuring Activities [Policy Text Block] Restructuring Activities Net loss per share attributable to Class A and Class B common stockholders - diluted (in dollars per share) Net loss per share attributable to Common Stockholders—diluted (in dollars per share) Earnings Per Share, Diluted PEO Total Compensation Amount PEO Total Compensation Amount Investment securities Securities Investment [Member] Unpaid claims Assumed Liability for Unpaid Claims and Claims Adjustment Expense Trading Arrangements, by Individual Trading Arrangements, by Individual [Table] CarePoint Health Contract Care Point Health Contract [Member] CarePoint Health Contract Level 3 Fair Value, Inputs, Level 3 [Member] Treasury stock, shares held (in shares) Beginning balance (in shares) Ending balance (in shares) Treasury Stock, Common, Shares Claims Development [Line Items] Claims Development [Line Items] Insurance proceeds Litigation Settlement, Insurance Proceeds Litigation Settlement, Insurance Proceeds Outstanding at beginning of period (in shares) Outstanding at end of period (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Number 2014 Plan Two Thousand Fourteen Equity Incentive Plan [Member] 2014 Equity Incentive Plan member. Due after five years through ten years Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10 Stock issuance for exercise of stock options, net of early exercise liability Stock Issued During Period, Value, Stock Options Exercised Trading Symbol Trading Symbol U.S. government and government agencies and authorities US Government Agencies Debt Securities [Member] Insurance Insurance [Member] Insurance Non-PEO NEO Average Compensation Actually Paid Amount Non-PEO NEO Average Compensation Actually Paid Amount Granted (in dollars per share) Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Grants in Period, Weighted Average Exercise Price Fair value Investments, Fair Value Disclosure Net loss Net loss Net Income (Loss) Net Income (Loss) Total current liabilities Liabilities, Current Fair Value Disclosures [Abstract] Fair Value Disclosures [Abstract] Changed Peer Group, Footnote Changed Peer Group, Footnote [Text Block] Company Selected Measure Name Company Selected Measure Name Due after one year through five years Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year One Through Five Accounting Policies [Table] Accounting Standards Update and Change in Accounting Principle [Table] Greater than 12 months, Unrealized loss Debt Securities Available for Sale and Held to Maturity Continuous Unrealized Loss Position 12 Months or Longer Accumulated Loss Debt securities available for sale and held to maturity continuous unrealized loss position 12 months or longer accumulated loss. Number of derivative actions Number Of Derivative Actions Number Of Derivative Actions Liabilities and Stockholders' Equity Liabilities and Equity [Abstract] ESPP Employee Stock [Member] Investment securities, available-for sale, amortized cost current Debt Securities, Available-for-Sale, Amortized Cost, Current Right-of-use assets obtained in exchange for lease liabilities Lease Obligation Incurred Investment Securities Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block] Accumulated unrealized losses Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Loss, before Tax Stock issuance for exercise of stock options, net of early exercise liability (in shares) Exercised (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercises in Period Schedule of Basic and Diluted Net Loss Per Share Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Vesting period (in years) Share-Based Compensation Arrangement by Share-Based Payment Award, Award Vesting Period Executive Category: Executive Category [Axis] Common Class B Common Class B [Member] Accounting Policies [Line Items] New Accounting Pronouncements or Change in Accounting Principle [Line Items] Number of shares Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Number of Shares [Roll Forward] Summary of Significant Accounting Policies Significant Accounting Policies [Text Block] Exercised (in dollars per share) Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Exercises in Period, Weighted Average Exercise Price Level 1 Fair Value, Inputs, Level 1 [Member] Name Measure Name Name Forgone Recovery, Individual Name Non-Insurance payable Non-Insurance Payable, Current Non-Insurance Payable, Current Equity Components Equity Components [Axis] Financial Instruments Financial Instruments [Domain] Additional 402(v) Disclosure Additional 402(v) Disclosure [Text Block] Fair Value, Separate Account Investment [Line Items] Fair Value, Separate Account Investment [Line Items] Number of shares available for issuance (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Available for Grant Investment Type Investment Type [Axis] Current year Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Current Year Due after five years through ten years Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year 5 through 10 Performance year receivable Performance Year Receivable Performance Year Receivable Granted (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross Schedule of Reconciliation of Revenue from Segments to Consolidated Reconciliation of Revenue from Segments to Consolidated [Table Text Block] PRSUs Performance Restricted Stock Units [Member] Performance restricted stock units. Underlying Securities Award Underlying Securities Amount Debt Securities, Held-to-maturity, Maturity, Fair Value [Abstract] Debt Securities, Held-to-Maturity, Fair Value, Maturity [Abstract] Entity Small Business Entity Small Business Investments Investments [Domain] Prior years Incurred claims paid Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Prior Years Local Phone Number Local Phone Number Healthcare receivables Increase (Decrease) in Accounts Receivable Recovery of Erroneously Awarded Compensation Disclosure [Line Items] Letter of Credit Agreement Letter of Credit [Member] 2020 Employee Stock Purchase Plan 2020 Employee Stock Purchase Plan [Member] 2020 Employee Stock Purchase Plan Settlements Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements Long-term operating lease liabilities Operating Lease, Liability, Noncurrent Incurred related to: Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims [Abstract] Schedule of Amortized Cost and Fair Value of Debt Securities Investments Classified by Contractual Maturity Date [Table Text Block] RSUs Restricted Stock Units (RSUs) [Member] Forgone Recovery due to Violation of Home Country Law, Amount Forgone Recovery due to Violation of Home Country Law, Amount Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward] Line of Credit Facility [Table] Line of Credit Facility [Table] Income Statement Location [Axis] Income Statement Location [Axis] Outstanding stock, percentage Share-Based Compensation Arrangement by Share-Based Payment Award, Percentage of Outstanding Stock Share-Based Compensation Arrangement by Share-Based Payment Award, Percentage of Outstanding Stock Amortization of the Non-Insurance performance year receivable Non-Insurance, Performance Year Receivable, Amortization Non-Insurance, Performance Year Receivable, Amortization Due after one year through five years Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, after Year One Through Five Dividend Restrictions Restrictions on Dividends, Loans and Advances [Text Block] Second Private Capital Transaction Second Private Capital Transaction [Member] Second Private Capital Transaction Goodwill and other intangible assets Intangible Assets, Net (Including Goodwill) Due after five years through ten years Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10 Number of shares purchased (in shares) Sale of stock, number of shares issued in transaction (in shares) Sale of Stock, Number of Shares Issued in Transaction Due after ten years Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, after Year 10 Total revenues Intersegment revenues Revenues Accounting Policies [Line Items] Accounting Policies [Line Items] Accounting Policies [Line Items] Fair Value by Liability Class Fair Value by Liability Class [Domain] Product and Service [Domain] Product and Service [Domain] Schedule of Antidilutive Securities Excluded from Diluted Net Loss Per Share Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block] Beginning balance Ending balance Temporary Equity, Carrying Amount, Attributable to Parent Other Performance Measure, Amount Other Performance Measure, Amount Gross and net balance, beginning of period Gross and net balance, end of period Unpaid claims Liability for Unpaid Claims and Claims Adjustment Expense, Net Aggregate Available Trading Arrangement, Securities Aggregate Available Amount Investment securities, held-to-maturity, fair value noncurrent Debt Securities, Held-to-Maturity, Fair Value, Noncurrent Cash flows from investing activities: Net Cash Provided by (Used in) Investing Activities [Abstract] Insider Trading Policies and Procedures Not Adopted Insider Trading Policies and Procedures Not Adopted [Text Block] Liability as of December 31, 2022 Liability as of September 30, 2023 Restructuring Reserve Total anti-dilutive shares excluded from computation of net loss per share (in shares) Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount Award Type Award Type [Axis] Granted (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period Plan Name Plan Name [Domain] Non-Insurance performance year receivable Non-Insurance, Performance Year Receivable, Current Non-Insurance, Performance Year Receivable, Current Document Quarterly Report Document Quarterly Report Supplemental disclosure of non-cash activities Noncash Investing and Financing Items [Abstract] Interest expense Interest Expense Total paid Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid Fair Value Hierarchy and NAV Fair Value Hierarchy and NAV [Domain] Shares authorized under plans (in shares) Shares Authorized Under Plans Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized General and Administrative Expense General and Administrative Expense [Member] Stock options, outstanding, weighted average remaining contractual term (in years) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term Trading Arrangement: Trading Arrangement [Axis] Related Party Transactions Related Party Transactions Disclosure [Text Block] Schedule of Weighted Average Grant Date Fair Value of Performance Restricted Stock Units Share-Based Payment Arrangement, Performance Shares, Outstanding Activity [Table Text Block] Use of estimates Use of Estimates, Policy [Policy Text Block] PEO Actually Paid Compensation Amount PEO Actually Paid Compensation Amount Contingent liabilities Loss Contingency, Loss in Period Investment securities, available-for-sale Debt Securities, Available-for-Sale [Abstract] Entity File Number Entity File Number Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table] Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table] Non-Insurance performance year obligation, current Non-Insurance, performance year obligation Non-Insurance, Performance Year Obligation, Current Non-Insurance, Performance Year Obligation, Current Schedule of Total RSU Activity Share-Based Payment Arrangement, Restricted Stock Unit, Activity [Table Text Block] Operating lease liabilities Operating Lease, Liability, Current Prepaid expenses Prepaid Expense, Current Receipts Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Receipts Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Receipts Available-for-sale debt securities, allowance for credit loss Debt Securities, Available-for-Sale, Allowance for Credit Loss Common stock, number of voting rights per share (in votes) Common Stock, Number Of Voting Rights Common Stock, Number Of Voting Rights Entity Shell Company Entity Shell Company Recent accounting pronouncements New Accounting Pronouncements, Policy [Policy Text Block] Restatement Determination Date Restatement Determination Date Non-Insurance revenue Revenue Not from Contract with Customer Thyme Care, Inc. Thyme Care, Inc. [Member] Thyme Care, Inc. Private Warrants Private Warrants [Member] Private Warrants Prepaid expenses Increase (Decrease) in Prepaid Expense Initial offering period (in month) Share-Based Compensation Arrangement By Share-Based Payment Award, Initial Offering Period Share-Based Compensation Arrangement By Share-Based Payment Award, Initial Offering Period Counterparty Name [Domain] Counterparty Name [Domain] Rule 10b5-1 Arrangement Adopted Rule 10b5-1 Arrangement Adopted [Flag] Schedule of Restructuring and Related Costs [Table] Schedule of Restructuring and Related Costs [Table] Cash, cash equivalents, and restricted cash, beginning of period Cash, cash equivalents, and restricted cash, end of period Total cash, cash equivalents, and restricted cash Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents Released (in shares) Share-Based Compensation Arrangement By Share-Based Payment Award, Equity Instruments Other Than Options, Released In Period Share-Based Compensation Arrangement By Share-Based Payment Award, Equity Instruments Other Than Options, Released In Period Amortization expense due to recognition of premium deficiency reserve Deferred Policy Acquisition Costs, Amortization Expense, Premium Deficiency Reserve Deferred Policy Acquisition Costs, Amortization Expense, Premium Deficiency Reserve Stock Price or TSR Estimation Method Stock Price or TSR Estimation Method [Text Block] Common stock, shares, issued (in shares) Common Stock, Shares, Issued Gross profit (loss) Gross profit Gross Profit Vested (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period Amortized cost Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Amortized Cost Deferred revenue Contract with Customer, Liability, Current Accumulated unrealized losses Debt Securities, Held-to-Maturity, Accumulated Unrecognized Loss Less: Treasury stock, at cost; 7,096,160 and 2,072,752 shares held at September 30, 2023 and December 31, 2022, respectively Treasury Stock, Common, Value Security Exchange Name Security Exchange Name Total assets at fair value Assets, Fair Value Disclosure Net proceeds from sale of stock Sale of Stock, Consideration Received on Transaction Accumulated other comprehensive loss Accumulated Other Comprehensive Income (Loss), Net of Tax Stock options Employee Stock Option [Member] Employer matching contribution, percent of match Defined Contribution Plan, Employer Matching Contribution, Percent of Match Proceeds from sales of short-term investments and available-for-sale securities Proceeds from sales of investment securities Proceeds From Sale Of Short-Term Investments And Available-For-Sale Securities Proceeds From Sale Of Short-Term Investments And Available-For-Sale Securities Common Class A Common Class A [Member] Cost not yet recognized, period for recognition (in years) Share-Based Payment Arrangement, Nonvested Award, Cost Not yet Recognized, Period for Recognition Total cumulative costs incurred as of September 30, 2023 Restructuring and Related Cost, Cost Incurred to Date Maximum Maximum [Member] Comprehensive loss Comprehensive Income (Loss), Net of Tax, Attributable to Parent Schedule of Restructuring Charges Restructuring and Related Costs [Table Text Block] Accretion, net of amortization Depreciation, Amortization and Accretion, Net Document Type Document Type Interest rate (as percent) Line of Credit Facility, Interest Rate During Period Tabular List, Table Tabular List [Table Text Block] Healthcare receivables Receivables from Customers Entity Address, Address Line One Entity Address, Address Line One Treasury stock acquired Treasury Stock, Value, Acquired, Cost Method Entity Address, Address Line Two Entity Address, Address Line Two Accumulated unrealized gains Debt Securities, Held-to-Maturity, Accumulated Unrecognized Gain Less than 12 months, Number of positions Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position Number of Positions Year One Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position Number of Positions Year One Inducement Plan Inducement Plan [Member] Inducement Plan Schedule of Realized Gain (Loss) on Investment Securities Realized Gain (Loss) on Investments [Table Text Block] Total, Fair value Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position, Fair Value Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position, Fair Value Basis of presentation Basis of Accounting, Policy [Policy Text Block] Weighted-average exercise price Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price [Abstract] Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] Due to related parties, net Other liabilities, current Other Liabilities, Current Accounts payable and accrued expenses Increase (Decrease) in Accounts Payable and Accrued Liabilities Income Statement [Abstract] Income Statement [Abstract] Surety bonds and deposits Deposits Assets, Current Forfeited (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Forfeitures in Period Investment income, net Net Investment Income Restructuring Cost and Reserve [Line Items] Restructuring Cost and Reserve [Line Items] Litigation settlement, amount awarded from other party Litigation Settlement, Amount Awarded from Other Party Insider Trading Policies and Procedures Adopted Insider Trading Policies and Procedures Adopted [Flag] Related Party Related Party, Type [Domain] Reconciliation of cash and cash equivalents and restricted cash Reconciliation to condensed consolidated balance sheets [Abstract] Reconciliation to condensed consolidated balance sheets Aggregate Erroneous Compensation Not Yet Determined Aggregate Erroneous Compensation Not Yet Determined [Text Block] Operating Segments Operating Segments [Member] Outstanding at beginning of period (in dollars per share) Outstanding at end of period (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value Other assets, current Other Assets, Current Class of Stock [Line Items] Class of Stock [Line Items] Income Tax Disclosure [Abstract] Income Tax Disclosure [Abstract] Forgone Recovery due to Expense of Enforcement, Amount Forgone Recovery due to Expense of Enforcement, Amount Schedule of Activity in the Liability for Unpaid Claims and Claims Adjustment Expense Schedule of Liability for Unpaid Claims and Claims Adjustment Expense [Table Text Block] Share-based Payment Arrangement [Abstract] Share-Based Payment Arrangement [Abstract] Entity Tax Identification Number Entity Tax Identification Number Equity method investment Equity Method Investments Derecognition of noncontrolling interest Derecognition of noncontrolling interest Noncontrolling Interest, Decrease from Deconsolidation 2020 Plan 2020 Equity Incentive Plan [Member] 2020 Equity Incentive Plan [Member] Statistical Measurement Statistical Measurement [Axis] Private Capital Transaction Private Capital Transaction [Member] Private Capital Transaction Balance Sheet Location [Domain] Balance Sheet Location [Domain] Financial Instrument Financial Instrument [Axis] Entity Interactive Data Current Entity Interactive Data Current Debt Securities, Available-for-Sale [Table] Debt Securities, Available-for-Sale [Table] Total Shareholder Return Amount Total Shareholder Return Amount Treasury stock acquired Payments for Repurchase of Common Stock Entity Common Stock, Shares Outstanding Entity Common Stock, Shares Outstanding Adjustment To PEO Compensation, Footnote Adjustment To PEO Compensation, Footnote [Text Block] Transfers in Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers Into Level 3 Released (in dollars per share) Share-Based Compensation Arrangement By Share-Based Payment Award, Equity Instruments Other Than Options, Released In Period, Weighted Average Grant Date Fair Value Share-Based Compensation Arrangement By Share-Based Payment Award, Equity Instruments Other Than Options, Released In Period, Weighted Average Grant Date Fair Value Other Assets Other Assets [Member] Non-Insurance Non-Insurance Disclosure [Text Block] Non-Insurance Disclosure Segments [Domain] Segments [Domain] Share-based Compensation Arrangement by Share-based Payment Award [Line Items] Summary of Stock Option Activity Share-Based Compensation Arrangement by Share-Based Payment Award [Line Items] Fair Value Hierarchy and NAV Fair Value Hierarchy and NAV [Axis] Performance guarantees Minimum Guarantees, Policy [Policy Text Block] Conversion from Class B Common Stock to Class A Common Stock Conversion From Class B To Class A Common Stock, Amount Conversion From Class B To Class A Common Stock, Amount Consolidation Items [Domain] Consolidation Items [Domain] Accumulated deficit Accumulated deficit Retained Earnings (Accumulated Deficit) Measure: Measure [Axis] Commitments and Contingencies Disclosure [Abstract] Commitments and Contingencies Disclosure [Abstract] Vested restricted stock units and performance stock units (in shares) Stock Issued During Period, Shares, Restricted Stock Award, Gross Name Outstanding Recovery, Individual Name Total realized losses (gains) Fair Value, Asset (Liability), Recurring Basis, Still Held, Unrealized Gain (Loss) Entity Incorporation, State or Country Code Entity Incorporation, State or Country Code Accrued salaries and benefits Increase (Decrease) in Accrued Salaries Short-duration Insurance Contracts, Claims Development [Table] Short-Duration Insurance Contracts, Claims Development [Table] Current assets Assets, Current [Abstract] Prior years Unfavorable (favorable) development Prior Year Claims and Claims Adjustment Expense Schedule of Other Restructuring and Related Costs Other Restructuring And Related Costs [Table Text Block] Other Restructuring And Related Costs Deferred acquisition costs Deferred Policy Acquisition Costs, Policy [Policy Text Block] Equity interest at fair value Equity Securities, FV-NI Entity Address, State or Province Entity Address, State or Province Compensation Actually Paid vs. Total Shareholder Return Compensation Actually Paid vs. Total Shareholder Return [Text Block] Counterparty Name [Axis] Counterparty Name [Axis] Cash flows from operating activities: Net Cash Provided by (Used in) Operating Activities [Abstract] Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] Schedule of Performance Guarantees Schedule Of Performance Guarantees [Table Text Block] Schedule Of Performance Guarantees Schedule of Related Party Transactions, by Related Party [Table] Schedule of Related Party Transactions, by Related Party [Table] Class of Warrant or Right [Domain] Class of Warrant or Right [Domain] Schedule of Stock-Based Compensation Cost Share-Based Payment Arrangement, Cost by Plan [Table Text Block] Net unrealized gain (loss) on available-for-sale investments Unrealized holdings gain on investment securities, available for sale OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment and Tax Common stock, shares, outstanding (in shares) Beginning balance (in shares) Ending balance (in shares) Common Stock, Shares, Outstanding Transfers out Fair Value, Measurement with Unobservable Inputs Reconciliation, Liability, Transfers out of Level 3 PEO PEO [Member] Vendor related costs Vendor related costs Vendor Related Costs [Member] Vendor Related Costs Other receivables Other Receivables Premium deficiency reserve Premium deficiency reserve Liability for Future Policy Benefit, before Reinsurance Non-Insurance payable Increase (Decrease) In Non-Insurance Payable Increase (Decrease) In Non-Insurance Payable Gross realized gains Short-Term Investments And Available-for-sale Securities, Gross Realized Gains Short-Term Investments And Available-for-sale Securities, Gross Realized Gains Increase (Decrease) in Temporary Equity [Roll Forward] Increase (Decrease) in Temporary Equity [Roll Forward] Common stock, par value, (in dollars per share) Common Stock, Par or Stated Value Per Share Employer maximum annual contributions per employee, percent Defined Contribution Plan, Maximum Annual Contributions Per Employee, Percent Sale of Stock Sale of Stock [Axis] Net cash provided by investing activities Net Cash Provided by (Used in) Investing Activities Unpaid claims Increase (Decrease) In Unpaid Claims Increase decrease in unpaid claims. Class of Stock Class of Stock [Domain] Net loss attributable to Common Stockholders Net Income (Loss) Available to Common Stockholders, Basic Conversion of Character Biosciences, Inc. convertible note to preferred stock Conversion of Convertible Note to Preferred Stock Conversion of Convertible Note to Preferred Stock Number of stock options Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding [Roll Forward] Performance year obligation Increase (Decrease) In Performance Year Obligation Increase (Decrease) In Performance Year Obligation Schedule of Company's Condensed Consolidated Statement of Comprehensive Income and Cash Flows Schedule of Error Corrections and Prior Period Adjustments [Table Text Block] Outstanding Aggregate Erroneous Compensation Amount Outstanding Aggregate Erroneous Compensation Amount Effective tax rate (as percent) Effective Income Tax Rate Reconciliation, Percent Total liabilities Liabilities Schedule of Share-Based Payment Arrangement, Activity Share-Based Payment Arrangement, Activity [Table Text Block] 2020 MIP 2020 Management Incentive Plan [Member] 2020 management incentive plan member Disclosure of Restrictions on Dividends, Loans and Advances Disclosure [Abstract] Disclosure of Restrictions on Dividends, Loans and Advances Disclosure [Abstract] Expected volatility Expected volatility Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Volatility Rate Organization and Operations Organization, Consolidation and Presentation of Financial Statements Disclosure [Text Block] Total Shareholder Return Vs Peer Group Total Shareholder Return Vs Peer Group [Text Block] Volume-weighted average stock closing price (in dollars per share) Share-based Compensation Arrangement by Share-based Payment Award, Volume-weighted Average Stock Closing price Share-based Compensation Arrangement by Share-based Payment Award, Volume-weighted Average Stock Closing price Vesting [Domain] Vesting [Domain] Accumulated other comprehensive income (loss) AOCI Attributable to Parent [Member] Aggregate Erroneous Compensation Amount Aggregate Erroneous Compensation Amount Maximum number of shares that may be purchased (in shares) Shares Remaining Under Plans Common Stock, Capital Shares Reserved for Future Issuance All Executive Categories All Executive Categories [Member] Non-Rule 10b5-1 Arrangement Adopted Non-Rule 10b5-1 Arrangement Adopted [Flag] Short-duration Insurance Contracts, Discounted Liabilities [Line Items] Short-Duration Insurance Contracts, Discounted Liabilities [Line Items] Plan Name Plan Name [Axis] Investment securities, available-for sale, amortized cost noncurrent Debt Securities, Available-for-Sale, Amortized Cost, Noncurrent Debt Disclosure [Abstract] Debt Disclosure [Abstract] Number of reporting segments (in segments) Number of Reportable Segments Per share data: Per share data: Earnings Per Share [Abstract] Capitalized software development costs - cloud computing arrangements Research, Development, and Computer Software, Policy [Policy Text Block] Common stock, value Common Stock, Value, Issued General and administrative expenses General and administrative expenses General and Administrative Expense Due after one year through five years Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year One Through Five Organization, Consolidation and Presentation of Financial Statements [Abstract] Organization, Consolidation and Presentation of Financial Statements [Abstract] Unused lines of Credit Unused lines of Credit [Member] Awards Close in Time to MNPI Disclosures, Table Awards Close in Time to MNPI Disclosures [Table Text Block] Segment information Segment Reporting, Policy [Policy Text Block] Total current assets Assets, Current Preferred Stock Preferred Stock [Member] All Individuals All Individuals [Member] Fair value Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Fair Value Entity Filer Category Entity Filer Category Restructuring Type [Axis] Restructuring Type [Axis] Non-PEO NEO Average Total Compensation Amount Non-PEO NEO Average Total Compensation Amount Short-term Debt, Type Short-Term Debt, Type [Domain] Other liabilities Other Liabilities Statement [Table] Statement [Table] Current Fiscal Year End Date Current Fiscal Year End Date Fair value Fair value Debt Securities, Held-to-Maturity, Fair Value Unrecognized tax position Unrecognized Tax Benefits PEO Name PEO Name Fair Value, by Balance Sheet Grouping [Table] Fair Value, by Balance Sheet Grouping [Table] Preferred stock, shares authorized (in shares) Preferred Stock, Shares Authorized Amortized cost Investments Granted (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value U.S. government and government agencies US Treasury and Government [Member] Restricted cash Restricted Cash, Current Preferred stock, shares outstanding (in shares) Preferred Stock, Shares Outstanding Non-Insurance receivable Non-Insurance Receivable Non-Insurance Receivable Net cash provided by (used in) operating activities Net Cash Provided by (Used in) Operating Activities Stock options, exercisable, intrinsic value (less than) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Intrinsic Value Class of Stock Class of Stock [Axis] Variable Interest Entity and Equity Method of Accounting Equity Method Investments and Joint Ventures Disclosure [Text Block] Erroneously Awarded Compensation Recovery Erroneously Awarded Compensation Recovery [Table] Investment securities, available-for-sale (Amortized cost: 2023: $197,766; 2022: $193,300) Debt Securities, Available-for-Sale, Current Investment securities, held-to-maturity, fair value current Debt Securities, Held-to-Maturity, Fair Value, Current Title of 12(g) Security Title of 12(g) Security Corporate/Other Corporate, Non-Segment [Member] Total, Unrealized Loss Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position Accumulated Loss Debt securities available for sale and held to maturity unrealized loss position accumulated loss. Performance year obligation Performance Year Obligation, Non-Cash Activities Performance Year Obligation, Non-Cash Activities Direct Contracting, shared savings and losses, percent Direct Contracting, Shared Savings and Losses, Percent Direct Contracting, Shared Savings and Losses, Percent Warrants receivable Warrants Receivable [Member] Warrants Receivable Accounts payable and accrued expenses Accounts Payable and Accrued Liabilities, Current Award Timing, How MNPI Considered Award Timing, How MNPI Considered [Text Block] Amortized cost Debt Securities, Held-to-Maturity, Amortized Cost, before Allowance for Credit Loss Statement of Financial Position [Abstract] Statement of Financial Position [Abstract] Escrow deposit, remaining amount Escrow Deposit, Remaining Amount Escrow Deposit, Remaining Amount Consolidation Items [Axis] Consolidation Items [Axis] Net medical claims incurred Policyholder Benefits and Claims Incurred, Net Premiums earned, net (Net of ceded premiums of $106 and $116, for the three months ended September 30, 2023 and 2022, respectively; net of ceded premiums of $341 and $354 for the nine months ended September 30, 2023 and 2022, respectively) Premiums earned, net (Net of ceded premiums) Premiums Earned, Net Shares Outstanding Under Plans Share-Based Compensation Arrangement By Share-Based Payment Award, Number Of Shares Outstanding Share-Based Compensation Arrangement By Share-Based Payment Award, Number Of Shares Outstanding Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table] Schedule of Share-Based Compensation Arrangements by Share-Based Payment Award [Table] Due within one year Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, Year One Schedule of Stock by Class [Table] Schedule of Stock by Class [Table] Expected term (in years) Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Expected Term Subsequent Events [Abstract] Revision of Prior Period [Domain] Revision of Prior Period [Domain] Restructuring costs Restructuring and Related Activities Disclosure [Text Block] Weighted average number of common shares outstanding Earnings Per Share Reconciliation [Abstract] Equity And Temporary Equity [Abstract] Equity And Temporary Equity Depreciation and amortization Depreciation and amortization expense Depreciation, Depletion and Amortization, Nonproduction Preferred stock, shares issued (in shares) Preferred Stock, Shares Issued Level 2 Fair Value, Inputs, Level 2 [Member] Current year Current Year Claims and Claims Adjustment Expense Entity Emerging Growth Company Entity Emerging Growth Company Investment securities, held-to-maturity Debt Securities, Held-to-Maturity, Amortized Cost, before Allowance for Credit Loss [Abstract] Debt Securities, Available-for-sale, Fair Value, Fiscal Year Maturity [Abstract] Debt Securities, Available-for-Sale, Fair Value, Fiscal Year Maturity [Abstract] Increase (Decrease) in Stockholders' Equity [Roll Forward] Increase (Decrease) in Stockholders' Equity [Roll Forward] Named Executive Officers, Footnote Named Executive Officers, Footnote [Text Block] Due after ten years Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year 10 Effects of DCE Reinsurance [Abstract] Non-Insurance [Abstract] Non-Insurance [Abstract] Document Fiscal Period Focus Document Fiscal Period Focus Debt Securities, Held-to-maturity, Allowance for Credit Loss [Line Items] Debt Securities, Held-to-Maturity, Allowance for Credit Loss [Line Items] Unused balance Line of Credit Facility, Remaining Borrowing Capacity Percentage of current year medical claims paid as a percent of current year net medical claims Ratio Of Current Year Medical Claims Paid As A Percent Of Current Year Net Medical Claims Ratio of current year medical claims paid as a percent of current year net medical claims. Pay vs Performance Disclosure, Table Pay vs Performance [Table Text Block] Discount rate (as percent) Share-Based Compensation Arrangement by Share-Based Payment Award, Discount from Market Price, Purchase Date Title Trading Arrangement, Individual Title Outstanding at beginning of period (in dollars per share) Outstanding at end of period (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Weighted Average Exercise Price Stock-based compensation expense Share-Based Payment Arrangement, Noncash Expense Weighted Average Weighted Average [Member] Total, Number of positions Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position Number of Positions Debt securities available for sale and held to maturity unrealized loss position number of positions. Common Stock Common Stock [Member] Investment securities, available-for-sale (Amortized cost: 2023: $105,087; 2022: $142,940) Debt Securities, Available-for-Sale, Noncurrent Individual: Individual [Axis] Schedule of Investment Securities Reconciliation Schedule Of Investment Securities Reconciliation [Table Text Block] Schedule Of Investment Securities Reconciliation City Area Code City Area Code Entity Address, Postal Zip Code Entity Address, Postal Zip Code Product and Service [Axis] Product and Service [Axis] Net Loss per Share Earnings Per Share [Text Block] Income Statement Location [Domain] Income Statement Location [Domain] Unpaid Claims Liability for Future Policy Benefits and Unpaid Claims Disclosure [Text Block] Operating lease right-of-use assets Increase (Decrease) In Operating Lease Right Of Use Assets Increase decrease in operating lease right of use assets. Ownership percentage Equity Method Investment, Ownership Percentage Schedule of Changes in Balances of Level 3 Financial Liabilities Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block] Document Fiscal Year Focus Document Fiscal Year Focus RSUs and PSUs Restricted Stock Units And Performance Stock Units [Member] Restricted Stock Units And Performance Stock Units Total stockholders' equity Beginning balance Ending balance Equity, Including Portion Attributable to Noncontrolling Interest Conversion from Class A Common Stock to Class B Common Stock (in shares) Conversion From Class A To Class B Common Stock, Shares Conversion From Class A To Class B Common Stock, Shares Deposits with various states and regulatory bodies Deposits Total held-to-maturity and available-for-sale investment securities Investments [Abstract] Non-Insurance receivable Increase (Decrease) In Non-Insurance Receivable Increase (Decrease) In Non-Insurance Receivable Minimum Minimum [Member] Property and equipment, net Property, Plant and Equipment, Net Receivables [Abstract] Receivables [Abstract] Schedule of Stock Option Activity Share-Based Payment Arrangement, Option, Activity [Table Text Block] Exercise Price Award Exercise Price Statement of Cash Flows [Abstract] Statement of Cash Flows [Abstract] Gross realized losses Short-Term Investments And Available-for-sale Securities, Gross Realized Losses Short-Term Investments And Available-for-sale Securities, Gross Realized Losses Assets Assets [Abstract] Award Timing MNPI Disclosure Award Timing MNPI Disclosure [Text Block] Total incurred Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims Due after ten years Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 10 Operating lease liabilities Increase (Decrease) in Operating Lease Liability Nonrelated Party Nonrelated Party [Member] Net loss Net Income (Loss), Including Portion Attributable to Noncontrolling Interest Accounting Policies [Table] Accounting Policies [Table] Accounting Policies [Table] Net cash used in financing activities Net Cash Provided by (Used in) Financing Activities Less than 12 months, Unrealized loss Debt Securities Available for Sale and Held to Maturity Continuous Unrealized Loss Position Year One Accumulated Loss Debt Securities Available for Sale and Held to Maturity Continuous Unrealized Loss Position Year One Accumulated Loss Commitments and Contingencies Commitments and Contingencies Disclosure [Text Block] Acquisition of Character Biosciences, Inc. Series A preferred shares Payments to Acquire Interest in Subsidiaries and Affiliates Accumulated deficit Retained Earnings [Member] Adjustment to Non-PEO NEO Compensation Footnote Adjustment to Non-PEO NEO Compensation Footnote [Text Block] Total liabilities and stockholders' equity Liabilities and Equity Amortized cost Debt Securities, Available-for-Sale, Amortized Cost Other assets, non-current Other Assets, Noncurrent Peer Group Total Shareholder Return Amount Peer Group Total Shareholder Return Amount Risk-free interest rate Weighted-average risk-free interest rate Share-Based Compensation Arrangement by Share-Based Payment Award, Fair Value Assumptions, Risk Free Interest Rate Net loss per share attributable to Class A and Class B common stockholders - basic (in dollars per share) Net loss per share attributable to Common Stockholders—basic (in dollars per share) Earnings Per Share, Basic Operating lease right-of-use assets Operating Lease, Right-of-Use Asset Unvested stock options, unrecognized stock-based compensation Share-Based Payment Arrangement, Nonvested Award, Option, Cost Not yet Recognized, Amount Accounting Policies [Abstract] Accounting Policies [Abstract] Number of positions eliminated as a percent Restructuring and Related Cost, Number of Positions Eliminated, Period Percent Equity Valuation Assumption Difference, Footnote Equity Valuation Assumption Difference, Footnote [Text Block] Sale of Stock Sale of Stock [Domain] Change in accounting policy Revision of Prior Period, Accounting Standards Update, Adjustment [Member] Restructuring costs Restructuring costs Restructuring Costs Erroneous Compensation Analysis Erroneous Compensation Analysis [Text Block] Decrease In accumulated deficit Decrease In Accumulated Deficit Decrease In Accumulated Deficit Deferred tax assets, net Deferred Tax Assets, Net Stock options Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercises in Period, Intrinsic Value Conversion from Class B Common Stock to Class A Common Stock (in shares) Conversion From Class B To Class A Common Stock, Shares Conversion From Class B To Class A Common Stock, Shares Accrued salaries and benefits Accrued Salaries Arrangement Duration Trading Arrangement Duration Schedule of Gross Unrealized Losses and Fair Value for Fixed Maturities in a Continuous Unrealized Loss Position Debt Securities, Available-for-Sale, Unrealized Loss Position, Fair Value [Table Text Block] Depreciation and Amortization Depreciation and Amortization [Member] Depreciation and Amortization Entity Address, City or Town Entity Address, City or Town Award Timing MNPI Considered Award Timing MNPI Considered [Flag] Schedule of Segment Reporting Information, by Segment Schedule of Segment Reporting Information, by Segment [Table Text Block] Related party Related Party [Member] Investment securities, held-to-maturity (Fair value: 2023: $673; 2022: $636) Debt Securities, Held-to-Maturity, Amortized Cost, before Allowance for Credit Loss, Noncurrent Total Restructuring costs Charges Restructuring Charges Non-Insurance Non-Insurance Operations [Member] Non-Insurance Operations Document Transition Report Document Transition Report Award Timing Predetermined Award Timing Predetermined [Flag] Termination Date Trading Arrangement Termination Date Common stock, shares authorized (in shares) Common Stock, Shares Authorized Fair value Debt securities Debt Securities, Available-for-Sale Paid related to: Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid [Abstract] Document Information [Table] Document Information [Table] Schedule of Net Investment Income Investment Income [Table Text Block] Accumulated unrealized gains Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Gain, before Tax Short-term investments Short-Term Investments [Member] Accumulated unrealized gains Available for Sale Securities and Held to Maturity Securities Accumulated Gross Unrealized Gain Before Tax Available for sale securities and held to maturity securities accumulated gross unrealized gain before tax. Adjustments to reconcile net loss to net cash used in operating activities: Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract] Liability Class Liability Class [Axis] Related Party Transactions [Abstract] Related Party Transactions [Abstract] All Trading Arrangements All Trading Arrangements [Member] Debt Securities, Held-to-maturity, Maturity, Amortized Cost, Net [Abstract] Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity [Abstract] Due within one year Debt Securities, Available-for-Sale, Amortized Cost, Maturity, Allocated and Single Maturity Date, Year One All Adjustments to Compensation All Adjustments to Compensation [Member] Restructuring Reserve [Roll Forward] Restructuring Reserve [Roll Forward] Award Timing Disclosures [Line Items] Expense (more than) Share-based Compensation Arrangement by Share-based Payment Award, Expense More Than Stock-based Compensation Plans Share-based Compensation Arrangement by Share-based Payment Award, Expense More Than Stock-based Compensation Plans Compensation Amount Outstanding Recovery Compensation Amount Accrued retrospective premiums Accrued Retrospective Premiums Current Accrued retrospective premiums. Loss (gain) on investment Gain on investment Loss on Investments Gain (Loss) on Investments Escrow deposit Escrow Deposit Additional paid-in capital Additional Paid in Capital Letter of Credit Short-Term Debt [Text Block] Due after five years through ten years Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 5 Through 10 Forfeited (in dollars per share) Forfeited (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeitures, Weighted Average Grant Date Fair Value Vested restricted stock units Stock Issued During Period, Value, Restricted Stock Award, Gross Document Information [Line Items] Document Information [Line Items] Eliminations Consolidation, Eliminations [Member] Proceeds from stock options exercised Proceeds from Stock Options Exercised Other receivables Increase (Decrease) in Other Receivables Short-term Debt, Type Short-Term Debt, Type [Axis] Forfeited (in dollars per share) Share-Based Compensation Arrangements by Share-Based Payment Award, Options, Forfeitures in Period, Weighted Average Exercise Price Forfeited (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Forfeited in Period Equity method of accounting and variable interest entities Equity Method Investments [Policy Text Block] Employer matching contribution, percent of employees' gross pay Defined Contribution Plan, Employer Matching Contribution, Percent of Employees' Gross Pay Insider Trading Arrangements [Line Items] Fair Value, Separate Account Investment [Table] Fair Value, Separate Account Investment [Table] Related Party Related Party, Type [Axis] Stock options, outstanding, intrinsic value (less than) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Outstanding, Intrinsic Value Revenue, Major Customer [Line Items] Revenue, Major Customer [Line Items] Entity Registrant Name Entity Registrant Name Material Terms of Trading Arrangement Material Terms of Trading Arrangement [Text Block] Award Timing Method Award Timing Method [Text Block] Other assets Increase (Decrease) in Other Operating Assets Warrants receivable Warrants and Rights Outstanding Adjustment to Compensation, Amount Adjustment to Compensation Amount Tranche Two Share-Based Payment Arrangement, Tranche Two [Member] Employee termination benefits Employee Termination Benefits Employee Severance [Member] Cash payments Payments for Restructuring Issuance of common stock under Employee Stock Purchase Plan (in shares) Stock Issued During Period, Shares, Employee Stock Ownership Plan Document Period End Date Document Period End Date Eligibility for vesting period (in days) Share-based Compensation Arrangement by Share-based Payment Award, Eligibility For Vesting Period Share-based Compensation Arrangement by Share-based Payment Award, Eligibility For Vesting Period Compensation Actually Paid vs. Net Income Compensation Actually Paid vs. Net Income [Text Block] Adoption Date Trading Arrangement Adoption Date Peer Group Issuers, Footnote Peer Group Issuers, Footnote [Text Block] Schedule of Fair Value Measurements for Items Schedule of Fair Value, Assets and Liabilities Measured on Recurring Basis [Table Text Block] Stock options, exercisable, weighted average exercise price (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Exercisable, Weighted Average Exercise Price Premium deficiency reserve expense (benefit) Premium deficiency reserve expense (benefit) Premium deficiency reserve expense (benefit) Premium Deficiency Testing Benefit, Long-Duration Contract, Amount Premium Deficiency Testing Benefit, Long-Duration Contract, Amount Treasury Stock Treasury Stock, Common [Member] Other income Revenue Not from Contract with Customer, Other Entity Central Index Key Entity Central Index Key Amortization of notes and securities discounts Amortization of notes and securities discounts and debt issuance costs Amortization of Debt Issuance Costs and Discounts Due after one year through five years Debt Securities, Held-to-Maturity, Amortized Cost, after Allowance for Credit Loss, Maturity, Allocated and Single Maturity Date, after Year One through Five Class of Warrant or Right [Axis] Class of Warrant or Right [Axis] Total compensation cost recognized for stock-based compensation plans Share-Based Payment Arrangement, Expense Non-Rule 10b5-1 Arrangement Terminated Non-Rule 10b5-1 Arrangement Terminated [Flag] Amortization of the Non-Insurance performance year obligation Non-Insurance, Performance Year Obligation, Amortization Non-Insurance, Performance Year Obligation, Amortization Vesting [Axis] Vesting [Axis] Fair Value Measurements Fair Value Disclosures [Text Block] 2020 Equity and Management Incentive Plan Two Thousand Twenty Equity And Management Incentive Plan [Member] Two thousand twenty equity and management incentive plan. Other Other Other Restructuring [Member] Equity interest percentage (less than) Equity Ownership Interest, Percentage Equity Ownership Interest, Percentage Name Trading Arrangement, Individual Name Maximum common stock reserved, threshold percentage Common Stock, Capital Shares Reserved For Future Issuance, Threshold Percentage Common Stock, Capital Shares Reserved For Future Issuance, Threshold Percentage Stockholders' equity Equity [Abstract] Debt Securities, Available-for-Sale [Line Items] Debt Securities, Available-for-Sale [Line Items] Compensation Actually Paid vs. Company Selected Measure Compensation Actually Paid vs. Company Selected Measure [Text Block] Amendment Flag Amendment Flag Beginning balance (in shares) Ending balance (in shares) Temporary Equity, Shares Outstanding Schedule of Assumptions Used in ESPP Fair Value Determination Schedule of Share-Based Payment Award, Employee Stock Purchase Plan, Valuation Assumptions [Table Text Block] Schedule of Total Performance Restricted Stock Units Share-Based Payment Arrangement, Performance Shares, Activity [Table Text Block] Cash and cash equivalents Cash and cash equivalents Cash and Cash Equivalents, at Carrying Value Maximum number of shares that may be purchased by any one participant (in shares) Share-Based Compensation Arrangement by Share-Based Payment Award, Maximum Number of Shares Per Employee Debt Securities, Held-to-maturity, Allowance for Credit Loss [Table] Debt Securities, Held-to-Maturity, Allowance for Credit Loss [Table] Due within one year Debt Securities, Available-for-Sale, Fair Value, Maturity, Allocated and Single Maturity Date, Year One Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward] Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward] Treasury stock acquired (in shares) Treasury Stock, Shares, Acquired Stockholders' Equity and Convertible Preferred Stock Stockholders' Equity And Temporary Equity [Text Block] Stockholders' Equity And Temporary Equity Compensation Actually Paid vs. Other Measure Compensation Actually Paid vs. Other Measure [Text Block] Held-to-maturity debt securities, allowance for credit loss Debt Securities, Held-to-Maturity, Allowance for Credit Loss Diluted weighted average number of Class A and Class B common shares and common share equivalents outstanding (in shares) Weighted shares outstanding - diluted (in shares) Weighted Average Number of Shares Outstanding, Diluted Employers matching contribution, vesting percentage Defined Contribution Plan, Employers Matching Contribution, Annual Vesting Percentage Options to purchase common stock Options To Purchase Common Stock [Member] Options To Purchase Common Stock. Forgone Recovery, Explanation of Impracticability Forgone Recovery, Explanation of Impracticability [Text Block] Amortization expense of deferred acquisition costs Deferred Policy Acquisition Costs, Amortization Expense Effect of Change Revision of Prior Period, Change in Accounting Principle, Adjustment [Member] Operating expenses: Operating Expenses [Abstract] Purchases of property and equipment Payments to Acquire Property, Plant, and Equipment Company Selected Measure Amount Company Selected Measure Amount Additional paid-in capital Additional Paid-in Capital [Member] Balance Sheet Location [Axis] Balance Sheet Location [Axis] Total assets Total assets Assets Name Awards Close in Time to MNPI Disclosures, Individual Name Due after ten years Debt Securities, Held-to-Maturity, Fair Value, Maturity, Allocated and Single Maturity Date, after Year 10 Revision of Prior Period [Axis] Revision of Prior Period [Axis] Cover [Abstract] Cover [Abstract] Investment securities, held-to-maturity (Fair value: 2023: $6,692; 2022: $15) Debt Securities, Held-to-Maturity, Amortized Cost, before Allowance for Credit Loss, Current Subsequent Events Subsequent Events [Text Block] Stock-based compensation APIC, Share-Based Payment Arrangement, Increase for Cost Recognition Ceded premiums Ceded Premiums Earned Salaries and benefits Salaries and benefits Labor and Related Expense Restructuring and Related Activities [Abstract] Other liabilities, non-current Other Liabilities, Noncurrent Vested (in dollars per share) Share-Based Compensation Arrangement by Share-Based Payment Award, Equity Instruments Other than Options, Vested in Period, Weighted Average Grant Date Fair Value Non-NEOs Non-NEOs [Member] Healthcare Receivables Account Receivables [Text Block] Account Receivables Employee Benefit Plans Compensation and Employee Benefit Plans [Text Block] Total operating expenses Operating Expenses Operating Expenses Operating Segments Segment Reporting Disclosure [Text Block] Net increase in cash, cash equivalents, and restricted cash Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents, Period Increase (Decrease), Including Exchange Rate Effect Cash flows from financing activities: Net Cash Provided by (Used in) Financing Activities [Abstract] Greater than 12 months, Number of positions Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position Number of Positions 12 Months Or Longer Debt Securities Available for Sale and Held to Maturity Unrealized Loss Position Number of Positions 12 Months Or Longer Non-PEO NEO Non-PEO NEO [Member] Equity Component Equity Component [Domain] Adjustment to Compensation: Adjustment to Compensation [Axis] Less than 12 months, Fair value Debt Securities Available for Sale and Held to Maturity Continuous Unrealized Loss Position Year One, Fair Value Debt Securities Available for Sale and Held to Maturity Continuous Unrealized Loss Position Year One, Fair Value Non-GAAP Measure Description Non-GAAP Measure Description [Text Block] Basic weighted average number of Class A and Class B common shares and common share equivalents outstanding (in shares) Weighted shares outstanding - basic (in shares) Weighted Average Number of Shares Outstanding, Basic Accumulated unrealized losses Available for sale Securities and Held to Maturity Securities Accumulated Gross Unrealized Loss before Tax Available for sale securities and held to maturity securities accumulated gross unrealized loss before tax. Entity Current Reporting Status Entity Current Reporting Status Loss from operations Operating Income (Loss) Operating Income (Loss) Net realized losses Realized Investment Gains (Losses) Reclassifications Reclassification, Comparability Adjustment [Policy Text Block] Revenues: Revenues [Abstract] Cash and cash equivalents Cash and Cash Equivalents [Member] Short-duration Insurance Contracts, Discounted Liabilities [Table] Short-Duration Insurance Contracts, Discounted Liabilities [Table] Pay vs Performance Disclosure Pay vs Performance Disclosure [Table] Segments [Axis] Segments [Axis] Statement [Line Items] Statement [Line Items] Forgone Recovery due to Disqualification of Tax Benefits, Amount Forgone Recovery due to Disqualification of Tax Benefits, Amount Awards Close in Time to MNPI Disclosures Awards Close in Time to MNPI Disclosures [Table] Recognition of equity method investments and preferred stock Transfer to Investments Surety bonds and deposits Increase (Decrease) in Deposit Assets Type of Restructuring [Domain] Type of Restructuring [Domain] Tranche One Share-Based Payment Arrangement, Tranche One [Member] Noncontrolling interest Noncontrolling Interest [Member]