Adjustments to reconcile net income to net cash provided by operating activities: Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract] Current year IBNR Current Year Claims and Claims Adjustment Expense, Incurred but Not Reported Current Year Claims and Claims Adjustment Expense, Incurred but Not Reported Statistical Measurement [Domain] Statistical Measurement [Domain] Remaining authorized repurchase amount Share Repurchase Program, Remaining Authorized, Amount Gross Unrealized, Losses Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Loss, before Tax Cover page. Cover [Abstract] 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 Schedule of Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits, by Title of Individual and by Type of Deferred Compensation [Table] Deferred Compensation Arrangement with Individual, Excluding Share-Based Payment and Postretirement Benefit [Table] Prior year, IBNR Prior Year Claims and Claims Adjustment Expense, Incurred but Not Reported Prior Year Claims and Claims Adjustment Expense, Incurred but Not Reported Trading Symbol Trading Symbol Segment Reporting Information [Line Items] Segment Reporting Information [Line Items] All Trading Arrangements All Trading Arrangements [Member] Debt Instrument, Redemption, Period [Axis] Debt Instrument, Redemption, Period [Axis] Compensation Actually Paid vs. Net Income Compensation Actually Paid vs. Net Income [Text Block] Non-NEOs Non-NEOs [Member] Schedule of Earnings Per Share, Basic and Diluted Schedule of Earnings Per Share, Basic and Diluted [Table Text Block] Rule 10b5-1 Arrangement Adopted Rule 10b5-1 Arrangement Adopted [Flag] Awards Close in Time to MNPI Disclosures Awards Close in Time to MNPI Disclosures [Table] Pay vs Performance Disclosure [Line Items] Peer Group Total Shareholder Return Amount Peer Group Total Shareholder Return Amount Short-term investments Short-Term Investments [Member] Debt Instrument, Redemption, Period [Domain] Debt Instrument, Redemption, Period [Domain] Earnings per Share (EPS) Earnings Per Share, Policy [Policy Text Block] Intangible assets and goodwill Intangible Assets, Net (Including Goodwill) Non-Rule 10b5-1 Arrangement Adopted Non-Rule 10b5-1 Arrangement Adopted [Flag] Number of covered claims included in number of claims paid | claim Liability for Paid Claims and Claims Adjustment Expense, Number of Covered Claims Included In Number of Paid Claims Liability for Paid Claims and Claims Adjustment Expense, Number of Covered Claims Included In Number of Paid Claims Due in one year or less Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling within One Year, Amortized Cost Fair Value of Financial Instruments Fair Value Disclosures [Text Block] Unrealized gains (losses) in accumulated other comprehensive loss, net of tax expense (benefit) of $8,186 and $(2,729) for the quarters ended March 31, 2025 and 2024, respectively OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, after Tax Award Timing Disclosures [Line Items] Other Performance Measure, Amount Other Performance Measure, Amount Total number of policies in-force Liability For Unpaid Claims And Claims Adjustment Expense, Incurred But Not Reported (IBNR) Claims, Total Policies In-Force Liability For Unpaid Claims And Claims Adjustment Expense, Incurred But Not Reported (IBNR) Claims, Total Policies In-Force Common stock, outstanding (in shares) Beginning balance (in shares) Ending balance (in shares) Common Stock, Shares, Outstanding Corporate debt securities as component of total (percent) Debt Securities, Corporate, Component Of Total, Percentage Debt Securities, Corporate, Component Of Total, Percentage Debt Securities By Industry [Domain] Industry Sector [Domain] Gross realized investment losses Debt Securities, Available-for-Sale, Realized Loss Dilutive effect of issuable shares (in shares) Weighted Average Number of Shares Outstanding, Diluted, Adjustment Entity Tax Identification Number Entity Tax Identification Number Liability for Claims and Claims Adjustment Expense [Table] Liability for Claims and Claims Adjustment Expense [Table] Repurchased shares (in shares) Treasury Stock, Shares, Acquired Debt Secured Debt Current First Layer Retained Loss Current First Layer Retained Loss Current First Layer Retained Loss Utilities Utilities, Industry Group [Member] Utilities, Industry Group [Member] Net cash provided by operating activities Net Cash Provided by (Used in) Operating Activities Deferred policy acquisition costs, net Deferred Policy Acquisition Cost Cash flows from operating activities Net Cash Provided by (Used in) Operating Activities [Abstract] Treasury Stock, At Cost Treasury Stock, Common [Member] Component of claims paid covered under QSR Transaction Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid Including Amounts Covered By Insurance, Amount Under QSR Transaction Component of total amount of payments to settle insured claims and pay costs incurred in the claims settlement process, including amount covered by insurance, covered under QSR transaction. Secured Debt Secured Debt [Member] Underwriting and operating expenses Other Cost and Expense, Operating Equity Components [Axis] Equity Components [Axis] Award Timing Method Award Timing Method [Text Block] Variable rate floor (in percent) Debt Instrument, Variable Interest Rate Floor Debt Instrument, Variable Interest Rate Floor Trading Arrangements, by Individual Trading Arrangements, by Individual [Table] Fixed maturities, available-for-sale, at fair value (amortized cost of $2,923,088 and $2,876,343 as of March 31, 2025 and December 31, 2024, respectively) Fair Value Fair Value Fair value of securities Debt Securities, Available-for-Sale Measurement Frequency [Axis] Measurement Frequency [Axis] Entity Common Stock, Shares Outstanding (in shares) Entity Common Stock, Shares Outstanding Insider Trading Policies and Procedures [Line Items] Municipal debt securities Municipal debt securities US States and Political Subdivisions Debt Securities [Member] Total expenses Costs and Expenses Reinsurance coverage amount Reinsurance Retention Policy, Ceded Aggregate Premiums Reinsurance Retention Policy, Ceded Aggregate Premiums Adjustment to Compensation, Amount Adjustment to Compensation Amount Direct Direct Premiums Earned Compensation Amount Outstanding Recovery Compensation Amount Number of states in which the entity operates Number of States in which Entity Operates Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member] Change in unrealized investment gains/losses, net of tax expense Other Comprehensive Income (Loss), Available-for-Sale Securities Adjustment, Net of Tax, Portion Attributable to Parent Entity Small Business Entity Small Business Company Selected Measure Amount Company Selected Measure Amount Premiums receivable, net Premiums Receivable, Net Tabular List, Table Tabular List [Table Text Block] Investment income Interest revenue Investment Income, Interest and Dividend Significant Unobservable Inputs (Level 3) Fair Value, Inputs, Level 3 [Member] Reinsurance recoverable Increase (Decrease) in Reinsurance Recoverable Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member] Debt Securities, Available-for-sale [Line Items] Debt Securities, Available-for-Sale [Line Items] Prior years Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Prior Years NMIC and Re One combined NMIC and Re One Combined [Member] NMIC and Re One Combined Fair Value Debt Securities, Available-for-Sale, Unrealized Loss Position Credit Facility [Domain] Credit Facility [Domain] Cash and cash equivalents (including restricted cash of $90 as of December 31, 2024) Cash, cash equivalents and restricted cash, beginning of period Cash, cash equivalents and restricted cash, end of period Cash, Cash Equivalents, Restricted Cash, and Restricted Cash Equivalents Net (accretion)/amortization of (discount)/premium on investment securities Accretion (Amortization) of Discounts and Premiums, Investments Reserve for insurance claims and claim expenses Total gross liability for unpaid claims and claim adjustment expenses Beginning balance Ending balance Liability for Claims and Claims Adjustment Expense Fair Value of Financial Instruments Fair Value of Financial Instruments, Policy [Policy Text Block] Taxes paid related to net share settlement of equity awards Payment, Tax Withholding, Share-Based Payment Arrangement Repurchase authorization Share Repurchase Program, Authorized, Amount Treasury stock, common shares (in shares) Treasury Stock, Common, Shares Forgone Recovery due to Disqualification of Tax Benefits, Amount Forgone Recovery due to Disqualification of Tax Benefits, Amount Employee Stock Option Share-Based Payment Arrangement, Option [Member] Debt Securities, Available-for-sale [Table] Debt Securities, Available-for-Sale [Table] Fair Value Disclosures [Abstract] Fair Value Disclosures [Abstract] Prior years Prior Year Claims and Claims Adjustment Expense Comprehensive income Comprehensive Income (Loss), Net of Tax, Attributable to Parent Direct Direct Premiums Written Security Exchange Name Security Exchange Name Basis spread on variable rate (in percent) Debt Instrument, Basis Spread on Variable Rate Schedule of Investments by Maturity Investments Classified by Contractual Maturity Date [Table Text Block] Award Type Award Type [Axis] Corporate debt securities Corporate debt securities Corporate Debt Securities [Member] Claims paid, including amounts covered by insurance Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid Including Amounts Covered By Insurance Amount of payments to settle insured claims and pay costs incurred in the claims settlement process, including amount covered by insurance. Ceded Credit Risk [Line Items] Ceded Credit Risk [Line Items] Software and equipment, net Property, Plant and Equipment, Net Total liabilities Liabilities Number of excess-of-loss reinsurance agreements Number of Excess-of-Loss Reinsurance Agreements Number of Excess-of-Loss Reinsurance Agreements Amortized Cost Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Amortized Cost [Abstract] Comprehensive income: Comprehensive Income (Loss), Net of Tax, Attributable to Parent [Abstract] Common stock, par value (in dollars per share) Common Stock, Par or Stated Value Per Share Forgone Recovery, Explanation of Impracticability Forgone Recovery, Explanation of Impracticability [Text Block] Schedule of Fair Values and Gross Unrealized Gains and Losses Debt Securities, Available-for-Sale [Table Text Block] Revolving Credit Facility Revolving Credit Facility [Member] Expiration Date Trading Arrangement Expiration Date Cash flows from investing activities Net Cash Provided by (Used in) Investing Activities [Abstract] Ceded Credit Risk, Reinsurer [Axis] Reinsurer, Name [Axis] Primary loans in default Liability For Unpaid Claims And Claims Adjustment Expense, Incurred But Not Reported (IBNR) Claims, Number Of Primary Loans In Default Liability For Unpaid Claims And Claims Adjustment Expense, Incurred But Not Reported (IBNR) Claims, Number Of Primary Loans In Default Total Shareholder Return Amount Total Shareholder Return Amount Common stock, issued (in shares) Common Stock, Shares, Issued Common stock: shares issued under stock plans, net of shares withheld for employee taxes Stock Issued During Period, Value, Employee Stock Purchase Plan, Net of Tax Withholdings Stock Issued During Period, Value, Employee Stock Purchase Plan, Net of Tax Withholdings Entity [Domain] Entity [Domain] Equity Awards Adjustments, Footnote Equity Awards Adjustments, Footnote [Text Block] Credit facility borrowing capacity Line of Credit Facility, Maximum Borrowing Capacity Ceding commission earned Reinsurance Ceding Commission Earned Reinsurance Ceding Commission Earned Gross realized investment gains Debt Securities, Available-for-Sale, Realized Gain Unrealized loss position, accumulated loss Unrealized Losses Debt Securities, Available-for-Sale, Unrealized Loss Position, Accumulated Loss Commitment fees in interest expense Line of Credit Facility, Commitment Fee Amount Insider Trading Policies and Procedures Adopted Insider Trading Policies and Procedures Adopted [Flag] Reserve for insurance claims and claim expenses Increase (Decrease) in Liability for Claims and Claims Adjustment Expense Reserve Debt Instrument [Line Items] Debt Instrument [Line Items] Named Executive Officers, Footnote Named Executive Officers, Footnote [Text Block] Other assets Other Assets Common stock, authorized (in shares) Common Stock, Shares Authorized Basis of Presentation Basis of Accounting, Policy [Policy Text Block] Insurance [Abstract] Insurance [Abstract] Diluted (in shares) Dilutive weighted average shares outstanding (in shares) Weighted Average Number of Shares Outstanding, Diluted Contingency reserve Statutory Accounting Practices, Contingency Reserve Contingency reserve recorded under Statutory Accounting Principles is a liability to protect against loss during periods of extreme contraction. Other comprehensive income (loss), net of tax: Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent [Abstract] Statutory Accounting Practices [Line Items] Statutory Accounting Practices [Line Items] Reinsurance coverage amount amortized (as a percent) Reinsurance Agreement, Optional Termination Right, Percent Of Reinsurance Coverage Threshold Reinsurance Agreement, Optional Termination Right, Percent Of Reinsurance Coverage Threshold Premium receivable, allowance for credit loss, uncollected Premium Receivable, Allowance for Credit Loss, Writeoff MNPI Disclosure Timed for Compensation Value MNPI Disclosure Timed for Compensation Value [Flag] Ceded Credit Risk [Table] Ceded Credit Risk [Table] Long-term Debt, Type [Axis] Long-Term Debt, Type [Axis] Total shareholders' equity Beginning balance Ending balance Equity, Attributable to Parent Interest expense Interest Expense, Nonoperating Net investment income Investment Income, Net Asset-backed securities Debt Securities, Available-for-Sale, Maturity, without Single Maturity Date, Amortized Cost Proceeds from maturities of short-term investments Proceeds from Sale of Short-Term Investments Other comprehensive income (loss), net of tax Other Comprehensive Income (Loss), Net of Tax, Portion Attributable to Parent Recurring Fair Value, Recurring [Member] Fair value, 12 months or greater Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer Carried cost Long-Term Debt Pension Adjustments Prior Service Cost Pension Adjustments Prior Service Cost [Member] Schedule of Fair Value Measurements of Financial Instruments Fair Value Measurements, Recurring and Nonrecurring [Table Text Block] Document Fiscal Period Focus Document Fiscal Period Focus All Executive Categories All Executive Categories [Member] Changed Peer Group, Footnote Changed Peer Group, Footnote [Text Block] Assets Assets [Abstract] Document Type Document Type Effective interest rate (in percent) Debt Instrument, Interest Rate, Effective Percentage Investment Income [Table] Investment Income [Table] Pension Benefits Adjustments, Footnote Pension Benefits Adjustments, Footnote [Text Block] Total Shareholder Return Vs Peer Group Total Shareholder Return Vs Peer Group [Text Block] Shares repurchased, average price per share (in dollars per share) Shares Acquired, Average Cost Per Share Investment expenses Investment Income, Investment Expense Beginning balance, net of reinsurance recoverables Reserve at end of period, net of reinsurance recoverables Liability for Unpaid Claims and Claims Adjustment Expense, Net Debt securities, amortized cost Amortized Cost Debt Securities, Available-for-Sale, Amortized Cost Depreciation and amortization Amortization and depreciation expense Depreciation, Amortization and Accretion, Net Maximum Maximum [Member] Schedule of XOL Transactions Schedule Of Respective Coverages And Retentions Of The XOL Transactions [Table Text Block] Schedule Of Respective Coverages And Retentions Of The XOL Transactions Equity Valuation Assumption Difference, Footnote Equity Valuation Assumption Difference, Footnote [Text Block] Reinsurance terminations Liability For Unpaid Claims And Claims Adjustment Expense, Claims Paid, Reinsurance Terminations Liability For Unpaid Claims And Claims Adjustment Expense, Claims Paid, Reinsurance Terminations 2021 Revolving Credit Facility Secured Revolving Credit Facility 2021 [Member] Secured Revolving Credit Facility 2021 Schedule of Reconciliation of Liability for Insurance Claims and Claim Expenses Schedule of Liability for Unpaid Claims and Claims Adjustment Expense [Table Text Block] Liabilities Liabilities [Abstract] Revenues Revenues [Abstract] Reinsurance Reinsurance [Text Block] Current Fiscal Year End Date Current Fiscal Year End Date Accrued investment income Accrued Investment Income Receivable Due in one year or less Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling within One Year, Fair Value Statistical Measurement [Axis] Statistical Measurement [Axis] PEO Name PEO Name Anticipated payment related to annual operating expenses Anticipated Operating Expense Payments, Annual Amount of anticipated payments related to operating expenses of counterparty. 2024 Revolving Credit Facility 2024 Revolving Credit Facility [Member] 2024 Revolving Credit Facility Non-Rule 10b5-1 Arrangement Terminated Non-Rule 10b5-1 Arrangement Terminated [Flag] Income before income taxes Income (Loss) from Continuing Operations before Income Taxes, Noncontrolling Interest Non-PEO NEO Average Total Compensation Amount Non-PEO NEO Average Total Compensation Amount All Award Types Award Type [Domain] Name Outstanding Recovery, Individual Name Compensation Actually Paid vs. Company Selected Measure Compensation Actually Paid vs. Company Selected Measure [Text Block] Non-PEO NEO Non-PEO NEO [Member] Claims and claim expenses paid: Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid [Abstract] Additional Paid-in Capital Additional Paid-in Capital [Member] Award Timing Predetermined Award Timing Predetermined [Flag] Class of Stock [Line Items] Class of Stock [Line Items] Redemption price (in percent) Debt Instrument, Redemption Price, Percentage Recent Accounting Pronouncements - Not Yet Adopted New Accounting Pronouncements, Policy [Policy Text Block] Forecast Forecast [Member] 2026 XOL Transaction 2026 XOL Transaction [Member] 2026 XOL Transaction Diluted (in dollars per share) Diluted earnings per share (in dollars per share) Earnings Per Share, Diluted Fair Value Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Fair Value [Abstract] Counterparty Name [Domain] Counterparty Name [Domain] Name Measure Name Entity Interactive Data Current Entity Interactive Data Current Reserves for Insurance Claims and Claim Expenses Liability for Future Policy Benefits and Unpaid Claims Disclosure [Text Block] Restatement does not require Recovery Restatement Does Not Require Recovery [Text Block] Cash and investments held with various state insurance departments Cash, Cash Equivalents, and Short-Term Investments Insurance claims and claim expenses Policyholder Benefits and Claims Incurred, Net Debt instrument covenant, maximum debt-to-total capitalization ratio Debt Instrument, Covenant Terms, Debt to Total Capitalization Ratio, Maximum Debt Instrument, Covenant Terms, Debt to Total Capitalization Ratio, Maximum Statement of Financial Position [Abstract] Statement of Financial Position [Abstract] Asset-backed securities Asset-backed securities Asset-Backed Securities [Member] Share-based compensation expense Share-Based Payment Arrangement, Noncash Expense Regulatory Information Insurance Disclosure [Text Block] Income tax expense Income Tax Expense (Benefit) Stated interest rate (in percent) Debt Instrument, Interest Rate, Stated Percentage Due after ten years Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling after 10 Years, Fair Value Changes in operating assets and liabilities: Increase (Decrease) in Other Operating Assets and Liabilities, Net [Abstract] Ceded Ceded Premiums Written Supplemental disclosures of cash flow information Supplemental Cash Flow Information [Abstract] Initial First Layer Retained Loss Initial First Layer Retained Loss Initial First Layer Retained Loss Consumer Consumer, Industry Group [Member] Consumer, Industry Group [Member] Net income - diluted Net Income (Loss) Available to Common Stockholders, Diluted Effective income tax rate on pre-tax income or loss Effective Income Tax Rate Reconciliation, Percent Net cash used in investing activities Net Cash Provided by (Used in) Investing Activities Net premiums written Premiums Written, Net [Abstract] Variable Rate [Domain] Variable Rate [Domain] Risk premiums paid Reinsurance Retention, Risk Premiums Paid Reinsurance Retention, Risk Premiums Paid Total liabilities and shareholders' equity Liabilities and Equity Rule 10b5-1 Arrangement Terminated Rule 10b5-1 Arrangement Terminated [Flag] All Adjustments to Compensation All Adjustments to Compensation [Member] Ceded Ceded premiums earned Ceded Premiums Earned Fair Value Hierarchy and NAV [Axis] Fair Value Hierarchy and NAV [Axis] Due after five through ten years Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling after 5 through 10 Years, Fair Value Other assets Increase (Decrease) in Prepaid Expense and Other Assets Additional paid-in capital Additional Paid in Capital Commitments and Contingencies Disclosure [Abstract] Legal Entity [Axis] Legal Entity [Axis] Unearned premiums Increase (Decrease) in Unearned Premiums Technology Technology, Industry Group [Member] Technology, Industry Group [Member] Debt Securities By Industry [Axis] Industry Sector [Axis] Underlying Security Market Price Change Underlying Security Market Price Change, Percent Scenario [Domain] Scenario [Domain] Prior year case reserves Prior Year Claims and Claims Adjustment Expense, Case Reserves Prior Year Claims and Claims Adjustment Expense, Case Reserves Individual: Individual [Axis] Common stock - $0.01 par value; 88,321,226 shares issued and 78,301,469 shares outstanding as of March 31, 2025 and 87,902,626 shares issued and 78,600,726 shares outstanding as of December 31, 2024 (250,000,000 shares authorized) Common Stock, Value, Outstanding Reinsurance Policy, Type [Axis] Reinsurance Contract [Axis] Accumulated Other Comprehensive Loss AOCI Attributable to Parent [Member] Restricted cash Restricted Cash Industrial Industrial, Industry Group [Member] Industrial, Industry Group [Member] Long-term Debt, Type [Domain] Long-Term Debt, Type [Domain] Entity Address, State or Province Entity Address, State or Province Statement [Line Items] Statement [Line Items] Change in unrealized investment gains/losses, tax expense (benefit) OCI, Debt Securities, Available-for-Sale, Gain (Loss), after Adjustment, Tax Erroneous Compensation Analysis Erroneous Compensation Analysis [Text Block] Percent of premiums earned under QSR transaction Premiums Earned, Percent Of Risk Premiums Earned, Percent Of Risk Investment Income, Net [Abstract] Investment Income, Net [Abstract] Compensation Actually Paid vs. Total Shareholder Return Compensation Actually Paid vs. Total Shareholder Return [Text Block] Financial Instruments [Domain] Financial Instruments [Domain] Basic EPS Net Income (Loss) Available to Common Stockholders, Basic, Operations [Abstract] Unamortized debt issuance costs and original issuance discount Original issuance discount Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net Minimum Minimum [Member] Restatement Determination Date Restatement Determination Date Net investment income Net Investment Income Adoption Date Trading Arrangement Adoption Date Pay vs Performance Disclosure Pay vs Performance Disclosure [Table] Erroneously Awarded Compensation Recovery Erroneously Awarded Compensation Recovery [Table] Reinsurance Disclosures [Abstract] Reinsurance Disclosures [Abstract] Segments [Axis] Segments [Axis] Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member] Senior 2024 Notes Senior 2024 Notes [Member] Senior 2024 Notes Exercise Price Award Exercise Price Earnings per Share (EPS) Earnings Per Share [Text Block] Premiums Receivable, Net Premiums Receivable Note [Text Block] Arrangement Duration Trading Arrangement Duration Expenses Costs and Expenses [Abstract] Shareholders' equity Equity, Attributable to Parent [Abstract] Fair value, less than 12 months Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months Net realized investment gains Gain (Loss) on Investments Current year Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid, Current Year Peer Group Issuers, Footnote Peer Group Issuers, Footnote [Text Block] Other revenues Other Income Risk-to-capital Risk To Capital Ratio Regulatory Actual This concept represents an entity's ratio of net risk in force (excludes risk ceded through reinsurance contracts and risk in force on defaulted loans) to the amount of statutory capital (defined as the sum of statutory policyholders' surplus plus statutory contingency reserves). Segments [Domain] Segments [Domain] Material Terms of Trading Arrangement Material Terms of Trading Arrangement [Text Block] Debt instrument term (years) Debt Instrument, Term All Individuals All Individuals [Member] Mortgage Insurance Segment Mortgage Insurance Segment [Member] Mortgage Insurance Segment PEO PEO [Member] Third-party Reinsurers Third-Party Reinsurers [Member] Third-Party Reinsurers [Member] Premiums receivable, net Increase (Decrease) in Premiums Receivable Variable Rate [Axis] Variable Rate [Axis] Income Tax Disclosure [Abstract] Income Tax Disclosure [Abstract] Name Trading Arrangement, Individual Name Statement of Stockholders' Equity [Abstract] Statement of Stockholders' Equity [Abstract] Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits [Line Items] Deferred Compensation Arrangement with Individual, Excluding Share-Based Payments and Postretirement Benefits [Line Items] Reclassification adjustment for realized gains included in net income, net of tax benefit Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax Liability for Claims and Claims Adjustment Expense [Line Items] Liability for Claims and Claims Adjustment Expense [Line Items] Debt issuance costs Debt Issuance Costs, Line of Credit Arrangements, Gross Gross Unrealized, Gains Debt Securities, Available-for-Sale, Accumulated Gross Unrealized Gain, before Tax Interest payable Interest Payable Proceeds from issuance of common stock related to employee equity plans Proceeds, Issuance of Shares, Share-Based Payment Arrangement, Including Option Exercised Current year case reserves Current Year Claims and Claims Adjustment Expense, Case Reserves Current Year Claims and Claims Adjustment Expense, Case Reserves Treasury Stock, at cost: 10,019,757 and 9,301,900 common shares as of March 31, 2025 and December 31, 2024, respectively Treasury Stock, Common, Value Commitment fee (in percent) Line of Credit Facility, Unused Capacity, Commitment Fee Percentage Awards Close in Time to MNPI Disclosures, Table Awards Close in Time to MNPI Disclosures [Table Text Block] Claims and claim expenses incurred: Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims [Abstract] Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member] Cash, cash equivalents and short-term investments Cash and Cash Equivalents, Fair Value Disclosure Due after one through five years Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling after One Through Five Years, Fair Value Statutory capital Statutory capital Statutory Accounting Practices, Statutory Capital and Surplus Including Contingency Reserve Statutory Accounting Practices, Statutory Capital and Surplus Including Contingency Reserve Aggregate Erroneous Compensation Amount Aggregate Erroneous Compensation Amount Local Phone Number Local Phone Number Aggregate Erroneous Compensation Not Yet Determined Aggregate Erroneous Compensation Not Yet Determined [Text Block] Deferred tax liability, net Deferred Income Tax Liabilities, Net Remaining deferred issuance costs, net of accumulated amortization Debt Issuance Costs, Line of Credit Arrangements, Net Number of securities, total Debt Securities, Available-for-Sale, Unrealized Loss Position, Number of Positions Reinsurance coverage, term of underlying mortgage amortization (in years) Reinsurance Retention Policy, Term Of Underlying Mortgage Amortization Reinsurance Retention Policy, Term Of Underlying Mortgage Amortization Secured Overnight Financing Rate (SOFR) Secured Overnight Financing Rate (SOFR) [Member] Earnings per share Earnings Per Share, Basic And Diluted EPS [Abstract] Earnings Per Share, Basic And Diluted EPS PEO Total Compensation Amount PEO Total Compensation Amount Senior notes Senior Notes Reinsurance recoverable Reinsurance Recoverables, Gross Share Repurchase Program [Domain] Share Repurchase Program [Domain] Proceeds from maturities and redemptions of fixed-maturity investments, available-for-sale Proceeds from Sale and Maturity of Debt Securities, Available-for-Sale Litigation Commitments and Contingencies Disclosure [Text Block] Debt Disclosure [Abstract] Debt Disclosure [Abstract] Common Stock Common Stock [Member] Prepaid federal income taxes Prepaid Federal Income Taxes Prepaid Federal Income Taxes Measure: Measure [Axis] Accrued investment income Increase (Decrease) in Accrued Investment Income Receivable Unearned premiums Unearned Premiums Forgone Recovery due to Expense of Enforcement, Amount Forgone Recovery due to Expense of Enforcement, Amount Aggregate dividend capacity Statutory Accounting Practices, Statutory Amount Available for Dividend Payments Schedule of Effect of Reinsurance Agreements on Premiums Written and Earned Effects of Reinsurance [Table Text Block] Net premiums earned Premiums Earned, Net [Abstract] Number of securities,12 months or greater Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer, Number of Positions Entity Emerging Growth Company Entity Emerging Growth Company Schedule of ILN Transactions Schedule Of Respective Coverages And Retentions Of The ILN Transactions [Table Text Block] Schedule of respective coverages and retentions of the ILN transactions [Table Text Block] Segment Reporting [Abstract] Entity Central Index Key Entity Central Index Key Scenario [Axis] Scenario [Axis] Non-GAAP Measure Description Non-GAAP Measure Description [Text Block] Total claims and claim expenses incurred Liability for Unpaid Claims and Claims Adjustment Expense, Incurred Claims Schedule of Statutory Net Income (loss), Surplus, Contingency Reserve and Risk-to-Capital Ratio Statutory Accounting Practices Disclosure [Table Text Block] Non-PEO NEO Average Compensation Actually Paid Amount Non-PEO NEO Average Compensation Actually Paid Amount Ceded Credit Risk, Reinsurer [Domain] Reinsurer, Name [Domain] Stockholders' Equity Equity [Text Block] Accounts payable and accrued expenses Increase (Decrease) in Accounts Payable and Accrued Liabilities Award Timing, How MNPI Considered Award Timing, How MNPI Considered [Text Block] Equity Component [Domain] Equity Component [Domain] Financial Instrument [Axis] Financial Instrument [Axis] Segment Reporting Segment Reporting Disclosure [Text Block] Reinsurance recoverable on unpaid claims Less reinsurance recoverables Add reinsurance recoverables Reinsurance Recoverable for Paid and Unpaid Claims and Claims Adjustments Additional 402(v) Disclosure Additional 402(v) Disclosure [Text Block] Share-based compensation expense APIC, Share-Based Payment Arrangement, Increase for Cost Recognition Entity Shell Company Entity Shell Company Entity Incorporation, State or Country Code Entity Incorporation, State or Country Code Percentage of ceding commission received Ceded Credit Risk, Commission Earned, Percentage Ceded Credit Risk, Commission Earned, Percentage Title Trading Arrangement, Individual Title Unsecured Debt Unsecured Debt [Member] Statement [Table] Statement [Table] Accounts payable and accrued expenses Accounts Payable and Accrued Liabilities Counterparty Name [Axis] Counterparty Name [Axis] Measurement Frequency [Domain] Measurement Frequency [Domain] City Area Code City Area Code Total bonds Bonds [Member] Interest paid Interest Paid, Excluding Capitalized Interest, Operating Activities Insider Trading Policies and Procedures Not Adopted Insider Trading Policies and Procedures Not Adopted [Text Block] Purchase of short-term investments Payments to Acquire Short-Term Investments Quoted Prices in Active Markets for Identical Assets (Level 1) Fair Value, Inputs, Level 1 [Member] Threshold for loss ratio on loans to qualify for profit commission Ceded Credit Risk, Profit Commission, Loss Ratio On Loans Threshold Ceded Credit Risk, Profit Commission, Loss Ratio On Loans Threshold Statement of Cash Flows [Abstract] Statement of Cash Flows [Abstract] Senior Notes Senior Notes [Member] Repurchases of common stock Payments for Repurchase of Common Stock Schedule of Net Investment Income Investment Income [Table Text Block] Schedule of Long-term Debt Instruments [Table] Schedule of Long-Term Debt Instruments [Table] Net income amount Statutory Accounting Practices, Statutory Net Income Amount Schedule of Segment Reporting Information, by Segment [Table] Schedule of Segment Reporting Information, by Segment [Table] Favorable development on prior year defaults Prior Year Claims and Claims Adjustment Expense, Favorable Development on Prior Year Defaults Prior Year Claims and Claims Adjustment Expense, Favorable Development on Prior Year Defaults Total claims and claim expenses paid Liability for Unpaid Claims and Claims Adjustment Expense, Claims Paid Income Taxes Income Tax Disclosure [Text Block] Earnings Per Share [Abstract] Earnings Per Share [Abstract] Equity [Abstract] Deferred policy acquisition costs, net Increase (Decrease) in Deferred Policy Acquisition Costs Retained earnings Retained Earnings (Accumulated Deficit) Re One Re One [Member] Re One Ceded risk-in-force Risk In Force, Ceded Risk In Force, Ceded Repurchase of common stock (in shares) Stock Repurchased and Retired During Period, Shares Premiums Receivable Premiums Receivable, Basis of Accounting, Policy [Policy Text Block] Net Investment Income [Line Items] Net Investment Income [Line Items] Deferred income taxes Deferred Income Taxes and Tax Credits Organization, Consolidation and Presentation of Financial Statements [Abstract] Organization, Consolidation and Presentation of Financial Statements [Abstract] Aggregate Available Trading Arrangement, Securities Aggregate Available Amount Equity Awards Adjustments Equity Awards Adjustments [Member] Net cash used in financing activities Net Cash Provided by (Used in) Financing Activities Underlying Securities Award Underlying Securities Amount Investments Investments in Debt and Marketable Equity Securities (and Certain Trading Assets) Disclosure [Text Block] Percentage of population with production prior to period start date Reinsurance Coverage, Percentage Of Population With Production Prior to Period Start Date Reinsurance Coverage, Percentage Of Population With Production Prior to Period Start Date Credit Facility [Axis] Credit Facility [Axis] Amendment Flag Amendment Flag Fair value of long term debt Long-Term Debt, Fair Value Entity Registrant Name Entity Registrant Name Common stock: shares issued under stock plans, net of shares withheld for employee taxes (in shares) Stock Issued During Period, Shares, Employee Stock Purchase Plans, Net of Shares For Tax Withholdings Stock Issued During Period, Shares, Employee Stock Purchase Plans, Net of Shares For Tax Withholdings Adjustment to Non-PEO NEO Compensation Footnote Adjustment to Non-PEO NEO Compensation Footnote [Text Block] Stock Appreciation Rights (SARs) Stock Appreciation Rights (SARs) [Member] Number of securities, less than 12 months Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months, Number of Positions Fair Value as of Grant Date Award Grant Date Fair Value Unamortized debt issuance cost Debt Issuance Costs, Net Significant Other Observable Inputs (Level 2) Fair Value, Inputs, Level 2 [Member] Debt Debt Disclosure [Text Block] Fair Value Hierarchy and NAV [Domain] Fair Value Hierarchy and NAV [Domain] Schedule of Corporate Debt Securities by Industry Group Investments Classified By Issuer Industry Group [Table Text Block] Investments Classified By Issuer Industry Group [Table Text Block] Recovery of Erroneously Awarded Compensation Disclosure [Line Items] Debt instrument face amount Debt Instrument, Face Amount Due after ten years Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling after 10 Years, Amortized Cost Entity Address, Postal Zip Code Entity Address, Postal Zip Code Restatement Determination Date: Restatement Determination Date [Axis] Title of 12(b) Security Title of 12(b) Security Primary insured portfolio, loan default rate Liability For Unpaid Claims And Claims Adjustment Expense, Incurred But Not Reported (IBNR) Claims, Number Of Primary Loans In Default, Percent Of Total Policies In-Force Liability For Unpaid Claims And Claims Adjustment Expense, Incurred But Not Reported (IBNR) Claims, Number Of Primary Loans In Default, Percent Of Total Policies In-Force Number of claims paid Liability for Paid Claims and Claims Adjustment Expense, Number of Paid Claims Liability for Paid Claims and Claims Adjustment Expense, Number of Paid Claims Due after one through five years Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling after One Through Five Years, Amortized Cost Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward] Liability for Unpaid Claims and Claims Adjustment Expense [Roll Forward] Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member] Cash flows from financing activities Net Cash Provided by (Used in) Financing Activities [Abstract] Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member] Cash and Cash Equivalents [Domain] Cash and Cash Equivalents [Domain] Statutory Accounting Practices [Table] Statutory Accounting Practices [Table] Basic (in dollars per share) Basic earnings per share (in dollars per share) Earnings Per Share, Basic Cash and Cash Equivalents Cash and Cash Equivalents [Member] Adjustment To PEO Compensation, Footnote Adjustment To PEO Compensation, Footnote [Text Block] Award Timing MNPI Disclosure Award Timing MNPI Disclosure [Text Block] Aggregate Pension Adjustments Service Cost Aggregate Pension Adjustments Service Cost [Member] Communications Communications, Industry Group [Member] Communications, Industry Group [Member] Net income - basic Net Income (Loss) Available to Common Stockholders, Basic Compensation Actually Paid vs. Other Measure Compensation Actually Paid vs. Other Measure [Text Block] Schedule of Aging Unrealized Losses Debt Securities, Available-for-Sale, Unrealized Loss Position, Fair Value [Table Text Block] Schedule of Stock by Class [Table] Stock, Class of Stock [Table] Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member] Share Repurchase Program [Axis] Share Repurchase Program [Axis] Total assets Assets Borrowings outstanding Long-Term Line of Credit U.S. Treasury securities and obligations of U.S. government agencies U.S. Treasury securities and obligations of U.S. government agencies U.S. Treasury securities and obligations of U.S. government agencies US Treasury and Government [Member] Additions to software and equipment Payments to Acquire Property, Plant, and Equipment Forgone Recovery due to Violation of Home Country Law, Amount Forgone Recovery due to Violation of Home Country Law, Amount Commitments and contingencies Commitments and Contingencies Statutory surplus Statutory Accounting Practices, Statutory Capital and Surplus, Balance Reclassification adjustment for realized gains included in net income, net of tax expense of $5 for the quarter ended March 31, 2025 Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Net of Tax Termination Date Trading Arrangement Termination Date Due after five through ten years Debt Securities, Available-for-Sale, Maturity, Allocated and Single Maturity Date, Rolling after 5 through 10 Years, Amortized Cost Organization, Basis of Presentation and Summary of Accounting Principles Business Description and Basis of Presentation [Text Block] Number of quota share reinsurance treaties Number of Quota Share Reinsurance Treaties Number of Quota Share Reinsurance Treaties Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] Total revenues Revenues On or After July 15, 2029 On or After July 15, 2029 [Member] On or After July 15, 2029 Other liabilities Other Liabilities Entity Address, City or Town Entity Address, City or Town Debt Instrument [Axis] Debt Instrument [Axis] Net income Net income Net income Net Income (Loss) Attributable to Parent Trading Arrangement: Trading Arrangement [Axis] Investments, Debt and Equity Securities [Abstract] Investments, Debt and Equity Securities [Abstract] Pay vs Performance Disclosure, Table Pay vs Performance [Table Text Block] Net premiums written Premiums Written, Net Equity Awards Adjustments, Excluding Value Reported in Compensation Table Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member] July 2023 Repurchase Program July 2023 Repurchase Program [Member] July 2023 Repurchase Program Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member] Entity File Number Entity File Number Reserve for prior year insurance claims and claim expenses Liability for Prior Year Claims and Claims Adjustment Expense Liability for Prior Year Claims and Claims Adjustment Expense Cash and Cash Equivalents [Axis] Cash and Cash Equivalents [Axis] Schedule of Net Realized Investment Gains (Losses) Realized Gain (Loss) on Investments [Table Text Block] Document Fiscal Year Focus Document Fiscal Year Focus Service expenses Other Nonoperating Expense Income Statement [Abstract] Income Statement [Abstract] Entity Address, Address Line One Entity Address, Address Line One Current Reinsurance Coverage Current Reinsurance Coverage Current Reinsurance Coverage Repurchase of common stock Treasury Stock, Value, Acquired, Cost Method Weighted average common shares outstanding Weighted Average Number of Shares Outstanding Reconciliation [Abstract] Debt Instrument, Name [Domain] Debt Instrument, Name [Domain] Total assets Assets, Fair Value Disclosure Name Forgone Recovery, Individual Name Document Period End Date Document Period End Date Reinsurance retention policy excess of loss reinsurance coverages Reinsurance Retention Policy Excess Of Loss Reinsurance Coverages Reinsurance Retention Policy Excess Of Loss Reinsurance Coverages Award Timing MNPI Considered Award Timing MNPI Considered [Flag] Base rate Base Rate [Member] Asset-backed securities Debt Securities, Available-for-Sale, Maturity, without Single Maturity Date, Fair Value Insider Trading Arrangements [Line Items] Outstanding Aggregate Erroneous Compensation Amount Outstanding Aggregate Erroneous Compensation Amount Premium receivable, number of days to be written off Premium Receivable, Number of Days to be Written Off Premium Receivable, Number of Days to be Written Off PEO Actually Paid Compensation Amount PEO Actually Paid Compensation Amount Reinsurance balances, net Increase (Decrease) in Reinsurance Assets and Liabilities Increase (Decrease) in Reinsurance Assets and Liabilities February 2025 Share Repurchase Program February 2025 Share Repurchase Program [Member] February 2025 Share Repurchase Program Adjustment to Compensation: Adjustment to Compensation [Axis] Document Transition Report Document Transition Report Document Quarterly Report Document Quarterly Report Current year Current Year Claims and Claims Adjustment Expense Ceded claims and claim expenses Reinsurance Ceded Claims and Claims (Benefits) Expenses Reinsurance Ceded Claims and Claims (Benefits) Expenses Fair Value, Recurring and Nonrecurring [Table] Fair Value, Recurring and Nonrecurring [Table] Accumulated other comprehensive loss, net of tax Accumulated Other Comprehensive Income (Loss), Net of Tax Entity Current Reporting Status Entity Current Reporting Status Initial Reinsurance Coverage Initial Reinsurance Coverage Initial Reinsurance Coverage Financial Financial, Industry Group [Member] Financial, Industry Group [Member] Retained Earnings Retained Earnings [Member] Pension Adjustments Service Cost Pension Adjustments Service Cost [Member] Profit commission Reinsurance Profit Commission Reinsurance Profit Commission Basic (in shares) Basic weighted average shares outstanding (in shares) Weighted Average Number of Shares Outstanding, Basic Stock Price or TSR Estimation Method Stock Price or TSR Estimation Method [Text Block] Unrealized gains (losses) in accumulated other comprehensive loss , net of tax (expense ) benefit OCI, Debt Securities, Available-for-Sale, Unrealized Holding Gain (Loss), before Adjustment, Tax Net premiums earned Net premiums earned Premiums Earned, Net Unrealized loss position, 12 months or greater Unrealized loss position, 12 months or greater Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, 12 Months or Longer, Accumulated Loss Amortization of debt discount and debt issuance costs Amortization of Debt Issuance Costs and Discounts Net realized investment gains Net realized investment gains Debt Securities, Available-for-Sale, Realized Gain (Loss) Increase (Decrease) in Stockholders' Equity [Roll Forward] Increase (Decrease) in Stockholders' Equity [Roll Forward] Executive Category: Executive Category [Axis] Name Awards Close in Time to MNPI Disclosures, Individual Name Unrealized losses, less than 12 months Debt Securities, Available-for-Sale, Continuous Unrealized Loss Position, Less than 12 Months, Accumulated Loss Entity Filer Category Entity Filer Category Purchase of fixed-maturity investments, available-for-sale Payments to Acquire Debt Securities, Available-for-Sale Company Selected Measure Name Company Selected Measure Name