Investments | Investments a) The following tables summarize the Company's available-for-sale investments. Commercial and residential mortgage-backed securities include securities issued by U.S. government-sponsored enterprises and U.S. government agencies. December 31, 2016 (dollars in thousands) Amortized Cost Gross Unrealized Holding Gains Gross Unrealized Holding Losses Unrealized Other- Than-Temporary Impairment Losses Estimated Fair Value Fixed maturity securities: U.S. Treasury $ 259,379 $ 99 $ (894 ) $ — $ 258,584 U.S. government-sponsored enterprises 418,457 9,083 (4,328 ) — 423,212 Obligations of states, municipalities and political subdivisions 4,324,332 145,678 (41,805 ) — 4,428,205 Foreign governments 1,306,324 159,291 (2,153 ) — 1,463,462 Commercial mortgage-backed 1,055,947 3,953 (19,544 ) — 1,040,356 Residential mortgage-backed 779,503 18,749 (5,048 ) (2,258 ) 790,946 Asset-backed 27,494 2 (158 ) — 27,338 Corporate 1,420,298 49,146 (9,364 ) (673 ) 1,459,407 Total fixed maturity securities 9,591,734 386,001 (83,294 ) (2,931 ) 9,891,510 Equity securities: Insurance, banks and other financial institutions 846,343 857,063 (5,596 ) — 1,697,810 Industrial, consumer and all other 1,635,105 1,421,080 (8,154 ) — 3,048,031 Total equity securities 2,481,448 2,278,143 (13,750 ) — 4,745,841 Short-term investments 2,336,100 57 (6 ) — 2,336,151 Investments, available-for-sale $ 14,409,282 $ 2,664,201 $ (97,050 ) $ (2,931 ) $ 16,973,502 December 31, 2015 (dollars in thousands) Amortized Cost Gross Unrealized Holding Gains Gross Unrealized Holding Losses Unrealized Other- Than-Temporary Impairment Losses Estimated Fair Value Fixed maturity securities: U.S. Treasury $ 310,370 $ 95 $ (1,048 ) $ — $ 309,417 U.S. government-sponsored enterprises 385,282 9,741 (3,733 ) — 391,290 Obligations of states, municipalities and political subdivisions 3,817,136 204,302 (8,225 ) — 4,013,213 Foreign governments 1,302,329 115,809 (1,681 ) — 1,416,457 Commercial mortgage-backed 657,670 6,867 (4,999 ) — 659,538 Residential mortgage-backed 837,964 22,563 (4,022 ) (2,258 ) 854,247 Asset-backed 36,462 15 (406 ) — 36,071 Corporate 1,690,945 41,123 (16,209 ) (1,624 ) 1,714,235 Total fixed maturity securities 9,038,158 400,515 (40,323 ) (3,882 ) 9,394,468 Equity securities: Insurance, banks and other financial institutions 651,002 690,271 (6,551 ) — 1,334,722 Industrial, consumer and all other 1,557,832 1,227,052 (45,131 ) — 2,739,753 Total equity securities 2,208,834 1,917,323 (51,682 ) — 4,074,475 Short-term investments 1,642,103 167 (9 ) — 1,642,261 Investments, available-for-sale $ 12,889,095 $ 2,318,005 $ (92,014 ) $ (3,882 ) $ 15,111,204 b) The following tables summarize gross unrealized investment losses by the length of time that securities have continuously been in an unrealized loss position. December 31, 2016 Less than 12 months 12 months or longer Total (dollars in thousands) Estimated Fair Value Gross Unrealized Holding and Other-Than- Temporary Impairment Losses Estimated Fair Value Gross Unrealized Holding and Other-Than- Temporary Impairment Losses Estimated Fair Value Gross Unrealized Holding and Other-Than- Temporary Impairment Losses Fixed maturity securities: U.S. Treasury $ 122,950 $ (894 ) $ — $ — $ 122,950 $ (894 ) U.S. government-sponsored enterprises 220,333 (4,324 ) 7,618 (4 ) 227,951 (4,328 ) Obligations of states, municipalities and political subdivisions 1,004,947 (37,685 ) 31,723 (4,120 ) 1,036,670 (41,805 ) Foreign governments 68,887 (2,145 ) 5,005 (8 ) 73,892 (2,153 ) Commercial mortgage-backed 749,889 (19,091 ) 29,988 (453 ) 779,877 (19,544 ) Residential mortgage-backed 181,557 (4,987 ) 79,936 (2,319 ) 261,493 (7,306 ) Asset-backed 14,501 (106 ) 5,869 (52 ) 20,370 (158 ) Corporate 494,573 (8,357 ) 93,790 (1,680 ) 588,363 (10,037 ) Total fixed maturity securities 2,857,637 (77,589 ) 253,929 (8,636 ) 3,111,566 (86,225 ) Equity securities: Insurance, banks and other financial institutions 8,808 (410 ) 37,973 (5,186 ) 46,781 (5,596 ) Industrial, consumer and all other 98,406 (4,772 ) 29,650 (3,382 ) 128,056 (8,154 ) Total equity securities 107,214 (5,182 ) 67,623 (8,568 ) 174,837 (13,750 ) Short-term investments 504,211 (6 ) — — 504,211 (6 ) Total $ 3,469,062 $ (82,777 ) $ 321,552 $ (17,204 ) $ 3,790,614 $ (99,981 ) At December 31, 2016 , the Company held 654 securities with a total estimated fair value of $3.8 billion and gross unrealized losses of $100.0 million . Of these 654 securities, 109 securities had been in a continuous unrealized loss position for one year or longer and had a total estimated fair value of $321.6 million and gross unrealized losses of $17.2 million . Of these securities, 93 securities were fixed maturity securities and 16 were equity securities. The Company does not intend to sell or believe it will be required to sell these fixed maturity securities before recovery of their amortized cost. The Company has the ability and intent to hold these equity securities for a period of time sufficient to allow for the anticipated recovery of their fair value. December 31, 2015 Less than 12 months 12 months or longer Total (dollars in thousands) Estimated Fair Value Gross Unrealized Holding and Other-Than- Temporary Impairment Losses Estimated Fair Value Gross Unrealized Holding and Other-Than- Temporary Impairment Losses Estimated Fair Value Gross Unrealized Holding and Other-Than- Temporary Impairment Losses Fixed maturity securities: U.S. Treasury $ 301,300 $ (962 ) $ 7,426 $ (86 ) $ 308,726 $ (1,048 ) U.S. government-sponsored enterprises 125,703 (2,686 ) 85,126 (1,047 ) 210,829 (3,733 ) Obligations of states, municipalities and political subdivisions 169,362 (4,864 ) 70,101 (3,361 ) 239,463 (8,225 ) Foreign governments 51,328 (249 ) 40,345 (1,432 ) 91,673 (1,681 ) Commercial mortgage-backed 289,058 (3,600 ) 95,843 (1,399 ) 384,901 (4,999 ) Residential mortgage-backed 78,814 (2,858 ) 137,100 (3,422 ) 215,914 (6,280 ) Asset-backed 6,228 (54 ) 24,315 (352 ) 30,543 (406 ) Corporate 470,694 (9,509 ) 343,737 (8,324 ) 814,431 (17,833 ) Total fixed maturity securities 1,492,487 (24,782 ) 803,993 (19,423 ) 2,296,480 (44,205 ) Equity securities: Insurance, banks and other financial institutions 63,873 (6,384 ) 6,247 (167 ) 70,120 (6,551 ) Industrial, consumer and all other 344,857 (44,879 ) 2,907 (252 ) 347,764 (45,131 ) Total equity securities 408,730 (51,263 ) 9,154 (419 ) 417,884 (51,682 ) Short-term investments 129,473 (9 ) — — 129,473 (9 ) Total $ 2,030,690 $ (76,054 ) $ 813,147 $ (19,842 ) $ 2,843,837 $ (95,896 ) At December 31, 2015 , the Company held 659 securities with a total estimated fair value of $2.8 billion and gross unrealized losses of $95.9 million . Of these 659 securities, 271 securities had been in a continuous unrealized loss position for one year or longer and had a total estimated fair value of $813.1 million and gross unrealized losses of $19.8 million . Of these securities, 264 securities were fixed maturity securities and seven were equity securities. The Company completes a detailed analysis each quarter to assess whether the decline in the fair value of any investment below its cost basis is deemed other-than-temporary. All securities with unrealized losses are reviewed. The Company considers many factors in completing its quarterly review of securities with unrealized losses for other-than-temporary impairment, including the length of time and the extent to which fair value has been below cost and the financial condition and near-term prospects of the issuer. For equity securities, the ability and intent to hold the security for a period of time sufficient to allow for anticipated recovery is considered. For fixed maturity securities, the Company considers whether it intends to sell the security or if it is more likely than not that it will be required to sell the security before recovery, the implied yield-to-maturity, the credit quality of the issuer and the ability to recover all amounts outstanding when contractually due. For equity securities, a decline in fair value that is considered to be other-than-temporary is recognized in net income based on the fair value of the security at the time of assessment, resulting in a new cost basis for the security. For fixed maturity securities where the Company intends to sell the security or it is more likely than not that the Company will be required to sell the security before recovery of its amortized cost, a decline in fair value is considered to be other-than-temporary and is recognized in net income based on the fair value of the security at the time of assessment, resulting in a new cost basis for the security. If the decline in fair value of a fixed maturity below its amortized cost is considered to be other-than-temporary based upon other considerations, the Company compares the estimated present value of the cash flows expected to be collected to the amortized cost of the security. The extent to which the estimated present value of the cash flows expected to be collected is less than the amortized cost of the security represents the credit-related portion of the other-than-temporary impairment, which is recognized in net income, resulting in a new cost basis for the security. Any remaining decline in fair value represents the non-credit portion of the other-than-temporary impairment, which is recognized in other comprehensive income (loss). The discount rate used to calculate the estimated present value of the cash flows expected to be collected is the effective interest rate implicit for the security at the date of purchase. When assessing whether it intends to sell a fixed maturity or if it is likely to be required to sell a fixed maturity before recovery of its amortized cost, the Company evaluates facts and circumstances including decisions to reposition the investment portfolio, potential sales of investments to meet cash flow needs and, ultimately, current market prices. c) The amortized cost and estimated fair value of fixed maturity securities at December 31, 2016 are shown below by contractual maturity. (dollars in thousands) Amortized Cost Estimated Fair Value Due in one year or less $ 798,529 $ 800,733 Due after one year through five years 1,210,130 1,252,152 Due after five years through ten years 1,582,373 1,659,755 Due after ten years 4,137,758 4,320,230 7,728,790 8,032,870 Commercial mortgage-backed 1,055,947 1,040,356 Residential mortgage-backed 779,503 790,946 Asset-backed 27,494 27,338 Total fixed maturity securities $ 9,591,734 $ 9,891,510 Expected maturities may differ from contractual maturities because borrowers may have the right to call or prepay obligations with or without call or prepayment penalties, and the lenders may have the right to put the securities back to the borrower. Based on expected maturities, the estimated average duration of fixed maturity securities at December 31, 2016 was 6.3 years. d) The following table presents the components of net investment income. Years Ended December 31, (dollars in thousands) 2016 2015 2014 Interest: Municipal bonds (tax-exempt) $ 88,654 $ 93,580 $ 98,262 Municipal bonds (taxable) 65,749 57,550 49,345 Other taxable bonds 144,752 138,763 152,789 Short-term investments, including overnight deposits 11,177 5,223 5,959 Dividends on equity securities 70,577 74,705 65,031 Income (loss) from equity method investments 6,852 (262 ) 4,766 Other 2,676 651 2,338 390,437 370,210 378,490 Investment expenses (17,207 ) (16,997 ) (15,260 ) Net investment income $ 373,230 $ 353,213 $ 363,230 e) Cumulative credit losses recognized in net income on fixed maturities where other-than-temporary impairment was identified and a portion of the other-than-temporary impairment was included in other comprehensive income (loss) were $10.7 million at December 31, 2016 and 2015 and $12.7 million at December 31, 2014 . f) The following table presents net realized investment gains and the change in net unrealized gains on investments. Years Ended December 31, (dollars in thousands) 2016 2015 2014 Realized gains: Sales of fixed maturity securities $ 5,160 $ 3,073 $ 8,417 Sales of equity securities 70,177 156,987 51,356 Other 1,415 8,103 15,205 Total realized gains 76,752 168,163 74,978 Realized losses: Sales of fixed maturity securities (704 ) (4,598 ) (18,136 ) Sales of equity securities (6,988 ) (1,232 ) (802 ) Other-than-temporary impairments (18,355 ) (44,481 ) (4,784 ) Other (2,349 ) (486 ) (15,700 ) Total realized losses (28,396 ) (50,797 ) (39,422 ) Gains (losses) on securities measured at fair value through net income 16,791 (10,886 ) 10,444 Net realized investment gains $ 65,147 $ 106,480 $ 46,000 Change in net unrealized gains on investments included in other comprehensive income (loss): Fixed maturity securities $ (56,534 ) $ (137,435 ) $ 480,350 Equity securities 398,752 (320,277 ) 500,673 Short-term investments (107 ) 128 12 Net increase (decrease) $ 342,111 $ (457,584 ) $ 981,035 g) The following table presents other-than-temporary impairment losses recognized in net income and included in net realized investment gains by investment type. Years Ended December 31, (dollars in thousands) 2016 2015 2014 Fixed maturity securities: Commercial mortgage-backed $ — $ — $ (61 ) Asset-backed — — (197 ) Corporate — — (46 ) Total fixed maturity securities — — (304 ) Equity securities: Insurance, banks and other financial institutions (7,586 ) (9,835 ) (341 ) Industrial, consumer and all other (10,769 ) (34,646 ) (4,139 ) Total equity securities (18,355 ) (44,481 ) (4,480 ) Total $ (18,355 ) $ (44,481 ) $ (4,784 ) h) The following table presents the components of restricted assets. December 31, (dollars in thousands) 2016 2015 Restricted assets held in trust or on deposit to support underwriting activities $ 4,059,336 $ 4,037,458 Investments and cash and cash equivalents pledged as security for letters of credit 355,616 745,744 Total $ 4,414,952 $ 4,783,202 Total restricted assets are included on the Company's consolidated balance sheets as follows. December 31, (dollars in thousands) 2016 2015 Investments, available-for-sale $ 4,068,535 $ 4,343,070 Restricted cash and cash equivalents 346,417 440,132 Total $ 4,414,952 $ 4,783,202 i) At December 31, 2016 and 2015 , investments in securities issued by the U.S. Treasury, U.S. government agencies and U.S. government-sponsored enterprises were the only investments in any one issuer that exceeded 10% of shareholders' equity. At December 31, 2016 , the Company's ten largest equity holdings represented $2.1 billion , or 44% , of the equity portfolio. Investments in the property and casualty insurance industry represented $1.0 billion , or 22% , of the equity portfolio at December 31, 2016 . Investments in the property and casualty insurance industry included a $511.3 million investment in the common stock of Berkshire Hathaway Inc. |