File size: 107,771 Bytes
41adb45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UN Petition Exhibit — SSA Disability Crisis Research Portfolio</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
<script src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2236;
  --bg-card: #151c2e;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --accent-green: #22c55e;
  --accent-orange: #f59e0b;
  --accent-purple: #a855f7;
  --accent-teal: #14b8a6;
  --border-color: #1e293b;
  --shadow-glow: 0 0 20px rgba(59,130,246,0.15);
}
.light-mode {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-glow: 0 0 20px rgba(59,130,246,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 4px; }

/* Layout */
.app-container { display: flex; min-height: 100vh; }
.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}
.sidebar-header h1 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-blue);
}
.sidebar-header p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.nav-section { margin: 16px 0; }
.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 20px;
  margin-bottom: 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-item:hover, .nav-item.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-left-color: var(--accent-blue);
}
.nav-item .icon { width: 20px; margin-right: 10px; text-align: center; }
.main-content {
  margin-left: 280px;
  flex: 1;
  padding: 0;
}

/* Top Bar */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.search-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  width: 320px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.search-box:focus { border-color: var(--accent-blue); }
.top-actions { display: flex; gap: 12px; align-items: center; }
.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent-blue); color: white; }
.btn-primary:hover { background: #2563eb; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-ghost:hover { background: var(--bg-tertiary); }

/* Sections */
.section {
  padding: 40px 32px;
  border-bottom: 1px solid var(--border-color);
  display: none;
}
.section.active { display: block; }
.section-header {
  margin-bottom: 32px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 800px;
}

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.card-value { font-size: 36px; font-weight: 800; margin: 8px 0; }
.card-value.red { color: var(--accent-red); }
.card-value.green { color: var(--accent-green); }
.card-value.blue { color: var(--accent-blue); }
.card-value.orange { color: var(--accent-orange); }
.card-delta { font-size: 13px; font-weight: 500; }
.card-delta.up { color: var(--accent-red); }
.card-delta.down { color: var(--accent-green); }
.card-source { font-size: 11px; color: var(--text-muted); margin-top: 12px; font-family: 'JetBrains Mono', monospace; }

/* Chart Containers */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.chart-title { font-size: 16px; font-weight: 700; }
.chart-actions { display: flex; gap: 8px; }
.chart-wrapper { position: relative; height: 400px; }

/* Explainers */
.explainer-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--accent-blue);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.explainer-btn:hover { background: var(--accent-blue); color: white; }
.explainer-panel {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent-blue);
  padding: 16px 20px;
  margin-top: 16px;
  border-radius: 0 8px 8px 0;
  display: none;
  animation: slideDown 0.3s ease;
}
.explainer-panel.show { display: block; }
.explainer-panel h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--accent-blue); }
.explainer-panel p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.explainer-panel .methodology { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.explainer-panel .methodology span { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  animation: modalIn 0.3s ease;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-size: 20px; font-weight: 800; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-close:hover { color: var(--text-primary); }

/* Knowledge Graph */
.kg-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  height: 600px;
  position: relative;
  overflow: hidden;
}
.kg-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.kg-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  z-index: 10;
}
.kg-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 4px 0; }
.kg-legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.data-table tr:hover td { background: var(--bg-tertiary); color: var(--text-primary); }

/* Heatmap */
.heatmap-grid { display: grid; gap: 2px; }
.heatmap-cell {
  padding: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}
.heatmap-cell:hover { transform: scale(1.1); z-index: 10; }
.heatmap-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }

/* Flow Diagram */
.flow-stage {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  cursor: pointer;
}
.flow-stage:hover { border-color: var(--accent-blue); box-shadow: var(--shadow-glow); }
.flow-stage h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.flow-stage p { font-size: 12px; color: var(--text-secondary); }
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: 300px;
}
.tooltip.show { opacity: 1; }

/* Animations */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: countUp 0.6s ease forwards; }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Pillar diagram */
.pillar { 
  border-radius: 8px; 
  padding: 24px; 
  text-align: center; 
  color: white; 
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pillar h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.pillar p { font-size: 13px; opacity: 0.9; line-height: 1.6; }
.pillar .citation { position: absolute; bottom: 16px; left: 0; right: 0; font-size: 11px; opacity: 0.7; font-style: italic; }

/* Evidence cards */
.evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
}
.evidence-card:hover { border-color: var(--accent-blue); }
.evidence-card.expanded { grid-column: 1 / -1; }
.evidence-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.evidence-card-title { font-size: 15px; font-weight: 700; color: var(--accent-blue); }
.evidence-card-journal { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.evidence-card-finding { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.evidence-card-detail { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.evidence-card.expanded .evidence-card-detail { display: block; }

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-verified { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.badge-projection { background: rgba(245,158,11,0.15); color: var(--accent-orange); }
.badge-caution { background: rgba(239,68,68,0.15); color: var(--accent-red); }

/* Print styles */
@media print {
  .sidebar, .top-bar, .explainer-btn, .kg-controls { display: none !important; }
  .main-content { margin-left: 0; }
  .section { display: block !important; break-inside: avoid; }
}
</style>
<base target="_blank">
</head>
<body>
<div class="app-container">

<!-- SIDEBAR -->
<aside class="sidebar" id="sidebar">
  <div class="sidebar-header">
    <h1>UN Petition Exhibit</h1>
    <p>SSA Disability Crisis Research Portfolio<br>Caustin Lee McLaughlin (Pro Se)</p>
  </div>

  <div class="nav-section">
    <div class="nav-section-title">Overview</div>
    <a class="nav-item active" data-section="dashboard" href="#dashboard">
      <span class="icon">◈</span> Executive Dashboard
    </a>
    <a class="nav-item" data-section="waterfall" href="#waterfall">
      <span class="icon">▤</span> Decision Waterfall
    </a>
    <a class="nav-item" data-section="waits" href="#waits">
      <span class="icon">◷</span> Wait Times & Deaths
    </a>
  </div>

  <div class="nav-section">
    <div class="nav-section-title">Systemic Error</div>
    <a class="nav-item" data-section="remands" href="#remands">
      <span class="icon">↻</span> Federal Court Remands
    </a>
    <a class="nav-item" data-section="alj" href="#alj">
      <span class="icon">⚖</span> ALJ Allowance Trends
    </a>
    <a class="nav-item" data-section="gao" href="#gao">
      <span class="icon">📊</span> GAO Historical Data
    </a>
  </div>

  <div class="nav-section">
    <div class="nav-section-title">Peer-Reviewed Evidence</div>
    <a class="nav-item" data-section="gelber" href="#gelber">
      <span class="icon">📄</span> Gelber et al. (JPE 2023)
    </a>
    <a class="nav-item" data-section="deshpande" href="#deshpande">
      <span class="icon">📄</span> Deshpande & Mueller-Smith
    </a>
    <a class="nav-item" data-section="miller" href="#miller">
      <span class="icon">📄</span> Miller et al. (NBER 2025)
    </a>
    <a class="nav-item" data-section="powell" href="#powell">
      <span class="icon">📄</span> Powell et al. (2026)
    </a>
    <a class="nav-item" data-section="black" href="#black">
      <span class="icon">📄</span> Black et al. (JPubE 2024)
    </a>
  </div>

  <div class="nav-section">
    <div class="nav-section-title">Synthesis</div>
    <a class="nav-item" data-section="pillars" href="#pillars">
      <span class="icon">▲</span> Three-Pillar Model
    </a>
    <a class="nav-item" data-section="feedback" href="#feedback">
      <span class="icon">⟲</span> Prison-Industrial Loop
    </a>
    <a class="nav-item" data-section="workforce" href="#workforce">
      <span class="icon">👥</span> Workforce Crisis
    </a>
    <a class="nav-item" data-section="un" href="#un">
      <span class="icon">🌐</span> UN Human Rights
    </a>
    <a class="nav-item" data-section="litigation" href="#litigation">
      <span class="icon">⚖</span> Litigation Matrix
    </a>
  </div>

  <div class="nav-section">
    <div class="nav-section-title">Knowledge Graphs</div>
    <a class="nav-item" data-section="kg-citations" href="#kg-citations">
      <span class="icon">🕸</span> Citation Network
    </a>
    <a class="nav-item" data-section="kg-claims" href="#kg-claims">
      <span class="icon">🕸</span> Claim → Evidence Map
    </a>
    <a class="nav-item" data-section="kg-pathway" href="#kg-pathway">
      <span class="icon">🕸</span> Causal Pathway
    </a>
    <a class="nav-item" data-section="kg-bottleneck" href="#kg-bottleneck">
      <span class="icon">🕸</span> SSA Bottleneck Graph
    </a>
  </div>

  <div class="nav-section">
    <div class="nav-section-title">Appendix</div>
    <a class="nav-item" data-section="tables" href="#tables">
      <span class="icon">⊞</span> Data Tables
    </a>
    <a class="nav-item" data-section="bibliography" href="#bibliography">
      <span class="icon">📚</span> Bibliography
    </a>
  </div>
</aside>

<!-- MAIN CONTENT -->
<main class="main-content">
  <!-- TOP BAR -->
  <div class="top-bar">
    <input type="text" class="search-box" id="searchBox" placeholder="Search claims, studies, statistics...">
    <div class="top-actions">
      <button class="btn btn-ghost" onclick="toggleTheme()">🌓 Theme</button>
      <button class="btn btn-ghost" onclick="document.body.classList.toggle('light-mode')">☀/☾</button>
      <button class="btn btn-primary" onclick="window.print()">🖨 Print</button>
    </div>
  </div>

  <!-- TOOLTIP -->
  <div class="tooltip" id="tooltip"></div>

  <!-- MODAL -->
  <div class="modal-overlay" id="modalOverlay" onclick="closeModal(event)">
    <div class="modal" onclick="event.stopPropagation()">
      <div class="modal-header">
        <h3 class="modal-title" id="modalTitle">Detail</h3>
        <button class="modal-close" onclick="closeModal()">&times;</button>
      </div>
      <div id="modalBody"></div>
    </div>
  </div>

  <!-- SECTION: DASHBOARD -->
  <section class="section active" id="dashboard">
    <div class="section-header">
      <h2>Executive Dashboard</h2>
      <p>Verified data synthesis for UN Petition Exhibit — SSA Disability Adjudication Crisis (2024–2026)</p>
    </div>

    <div class="card-grid">
      <div class="card">
        <div class="card-header">
          <span class="card-title">Americans Trapped in Backlog</span>
          <span class="badge badge-caution">CRISIS</span>
        </div>
        <div class="card-value red">1.15M</div>
        <div class="card-delta up">Currently pending disability determinations</div>
        <div class="card-source">SOURCE: SSA Performance Data (2024)</div>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-title">Annual Deaths While Pending</span>
          <span class="badge badge-verified">VERIFIED</span>
        </div>
        <div class="card-value red">30,000</div>
        <div class="card-delta up">FY2023 — Commissioner O'Malley Congressional testimony</div>
        <div class="card-source">SOURCE: O'Malley Testimony, Sept 2024</div>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-title">Average Wait Time</span>
          <span class="badge badge-verified">VERIFIED</span>
        </div>
        <div class="card-value orange">230 days</div>
        <div class="card-delta up">+86% increase from 2019 (124 days)</div>
        <div class="card-source">SOURCE: SSA FY2024 Data</div>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-title">Federal Court Remand Rate</span>
          <span class="badge badge-verified">VERIFIED</span>
        </div>
        <div class="card-value red">63%</div>
        <div class="card-delta up">FY2024 — up from 50% in FY2019</div>
        <div class="card-source">SOURCE: Justice in Aging (2024)</div>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-title">Initial Application Denial</span>
          <span class="badge badge-verified">VERIFIED</span>
        </div>
        <div class="card-value red">62–64%</div>
        <div class="card-delta up">Forcing claimants into prolonged appeals</div>
        <div class="card-source">SOURCE: SSA FY2024 Workload Data</div>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-title">Projected Deaths (50% Cut)</span>
          <span class="badge badge-projection">PROJECTION</span>
        </div>
        <div class="card-value red">67,000</div>
        <div class="card-delta up">412-day wait projected</div>
        <div class="card-source">SOURCE: Sanders Senate Report (2025)</div>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-title">Deaths Per Day of Delay</span>
          <span class="badge badge-projection">ESTIMATE</span>
        </div>
        <div class="card-value red">~188.7</div>
        <div class="card-delta up">Linear projection from current correlation</div>
        <div class="card-source">SOURCE: Sanders Senate Report (2025)</div>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-title">GAO-Documented Deaths</span>
          <span class="badge badge-verified">VERIFIED</span>
        </div>
        <div class="card-value red">109,725</div>
        <div class="card-delta up">FY2008–FY2019 while awaiting appeal</div>
        <div class="card-source">SOURCE: GAO-20-641R (2020)</div>
      </div>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Crisis Overview — Key Metrics Timeline</span>
        <button class="explainer-btn" onclick="toggleExplainer('dash-explainer')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="dashboardChart"></canvas>
      </div>
      <div class="explainer-panel" id="dash-explainer">
        <h4>How to Read This Chart</h4>
        <p>This dual-axis chart shows the correlation between wait times (blue line, right axis) and annual deaths while pending (red bars, left axis). The 86% increase in wait times from 2019 to 2023 coincided with a doubling of deaths. The data demonstrates a structural — not coincidental — relationship between bureaucratic delay and mortality.</p>
        <div class="methodology"><span>METHODOLOGY: SSA OIG (2019); Commissioner O'Malley Testimony (2023); SSA Performance Data (2024); Sanders Senate Report (2025)</span></div>
      </div>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Peer-Reviewed Causal Evidence Summary</span>
        <button class="explainer-btn" onclick="toggleExplainer('evidence-explainer')">❓ Explain</button>
      </div>
      <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 16px;">
        <div class="evidence-card" onclick="this.classList.toggle('expanded')">
          <div class="evidence-card-header">
            <span class="evidence-card-title">Gelber, Moore, Pei & Strand (JPE 2023)</span>
            <span class="badge badge-verified">R.K. Design</span>
          </div>
          <div class="evidence-card-finding">$1,000 more in annual DI payments decreases mortality rate by 0.18–0.35 percentage points. Elasticity of mortality with respect to DI income: <strong>−0.6 to −1.0</strong>.</div>
          <div class="evidence-card-detail">
            <p><strong>Method:</strong> Regression Kink Design exploiting the Social Security benefit formula's bend points.</p>
            <p><strong>Sample:</strong> Lower-income DI beneficiaries.</p>
            <p><strong>Cost-effectiveness:</strong> ~$50,000 per life-year saved at lower bend point.</p>
            <p><strong>Implication:</strong> Every month of delay in benefit approval directly increases mortality risk for low-income claimants.</p>
          </div>
        </div>

        <div class="evidence-card" onclick="this.classList.toggle('expanded')">
          <div class="evidence-card-header">
            <span class="evidence-card-title">Deshpande & Mueller-Smith (QJE 2022)</span>
            <span class="badge badge-verified">R.D. Design</span>
          </div>
          <div class="evidence-card-finding">SSI removal at age 18 increases criminal charges by <strong>20%</strong> and incarceration likelihood by <strong>60%</strong> over two decades. Concentrated in income-generating offenses.</div>
          <div class="evidence-card-detail">
            <p><strong>Method:</strong> Regression Discontinuity Design using the age-18 SSI eligibility cutoff.</p>
            <p><strong>Key Mechanism:</strong> Youth are twice as likely to be charged with illicit income-generating offenses than to maintain steady employment at $15,000/year.</p>
            <p><strong>Fiscal Impact:</strong> Additional enforcement and incarceration costs eliminate savings from reduced SSI benefits.</p>
            <p><strong>Implication:</strong> Benefit delay/removal is not cost-saving; it is cost-shifting to the criminal justice system.</p>
          </div>
        </div>

        <div class="evidence-card" onclick="this.classList.toggle('expanded')">
          <div class="evidence-card-header">
            <span class="evidence-card-title">Miller, Johnson & Wherry (NBER 2025)</span>
            <span class="badge badge-verified">DiD</span>
          </div>
          <div class="evidence-card-finding">Medicaid expansion reduced mortality hazard by <strong>21%</strong>, saving an estimated <strong>27,400 lives</strong> between 2010–2022. 5–20% of the mortality gap between low- and high-income Americans is attributable to health insurance differences.</div>
          <div class="evidence-card-detail">
            <p><strong>Method:</strong> Difference-in-Differences with linked Census-Tax-Mortality data.</p>
            <p><strong>Cost:</strong> $5.4M per life saved; $179,000 per life-year saved.</p>
            <p><strong>Implication:</strong> The 24-month Medicare waiting period for SSDI beneficiaries is an independent source of preventable mortality.</p>
          </div>
        </div>

        <div class="evidence-card" onclick="this.classList.toggle('expanded')">
          <div class="evidence-card-header">
            <span class="evidence-card-title">Powell et al. (Health Affairs 2026)</span>
            <span class="badge badge-verified">Longitudinal</span>
          </div>
          <div class="evidence-card-finding">SSDI beneficiaries have 2-year mortality rates of <strong>5.20–7.30%</strong> vs. ~1% in the general population. Blood diseases: 8.4%; HIV/AIDS: 8.1%; Cancer: 7.3%.</div>
          <div class="evidence-card-detail">
            <p><strong>Method:</strong> Longitudinal analysis of Social Security Disability Analysis File (DAF), 2000–2019.</p>
            <p><strong>Critical Gap:</strong> Despite being approved for SSDI, beneficiaries face a mandatory 24-month waiting period for Medicare.</p>
            <p><strong>Quote:</strong> "There's no system in place to provide health insurance for this group during the waiting period. Many probably just go uninsured." — David Powell, LDI Senior Fellow.</p>
          </div>
        </div>

        <div class="evidence-card" onclick="this.classList.toggle('expanded')">
          <div class="evidence-card-header">
            <span class="evidence-card-title">Black, French, McCauley & Song (JPubE 2024)</span>
            <span class="badge badge-verified">IV Design</span>
          </div>
          <div class="evidence-card-finding">For inframarginal (sicker) beneficiaries, benefit allowance <strong>reduces mortality</strong>. For marginal beneficiaries, mixed effects. Benefit allowance lowers mortality for respiratory, nervous system conditions, and cancer.</div>
          <div class="evidence-card-detail">
            <p><strong>Method:</strong> Instrumental Variables using judge assignment as exogenous variation.</p>
            <p><strong>Implication:</strong> Denial of benefits to sick, low-income claimants increases mortality — precisely the population most likely to be caught in administrative recidivism.</p>
          </div>
        </div>
      </div>
      <div class="explainer-panel" id="evidence-explainer">
        <h4>Understanding Causal Identification</h4>
        <p>Each study above uses a distinct quasi-experimental method to establish <em>causality</em> — not mere correlation — between benefit status and outcomes:</p>
        <p>• <strong>Regression Kink (Gelber):</strong> Exploits discontinuity in benefit formula at bend points.<br>
        • <strong>Regression Discontinuity (Deshpande):</strong> Exploits sharp age-18 cutoff in SSI eligibility.<br>
        • <strong>Instrumental Variables (Black):</strong> Uses random judge assignment as instrument for allowance.<br>
        • <strong>Difference-in-Differences (Miller):</strong> Compares expansion vs. non-expansion states over time.<br>
        • <strong>Longitudinal Cohort (Powell):</strong> Tracks DAF beneficiaries over 20 years against population benchmarks.</p>
        <div class="methodology"><span>These five methods collectively constitute a "causal identification arsenal" — no single approach is dispositive, but convergence across methods is.</span></div>
      </div>
    </div>
  </section>

  <!-- SECTION: DECISION WATERFALL -->
  <section class="section" id="waterfall">
    <div class="section-header">
      <h2>FY2024 Decision Waterfall</h2>
      <p>The structural design of disability adjudication functions as a delay-generating mechanism that systematically denies benefits to those who ultimately prove eligibility.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Approval, Denial, and Remand Rates by Appeal Level</span>
        <button class="explainer-btn" onclick="showModal('waterfall-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="waterfallChart"></canvas>
      </div>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Decision Volume at Each Appeal Level</span>
      </div>
      <div class="chart-wrapper">
        <canvas id="volumeChart"></canvas>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px; margin-top: 24px;">
      <h3 style="font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--accent-red);">🔍 Structural Insight: The Funnel Effect</h3>
      <p style="font-size: 14px; color: var(--text-secondary); line-height: 1.8;">
        Of 2,086,855 initial applications in FY2024, only 38% were approved. The remaining 62% (1.29 million claimants) were forced into reconsideration, where 84% were denied again. 
        Those who persisted to the ALJ hearing level — after 1–2+ years of waiting — saw approval rates jump to 50–51%. This pattern proves that <strong>the delay itself is the denial mechanism</strong>: 
        claimants who are medically unable to work are systematically denied at early stages and only approved after years of destabilization have weeded out the most vulnerable.
      </p>
    </div>
  </section>

  <!-- SECTION: WAIT TIMES & DEATHS -->
  <section class="section" id="waits">
    <div class="section-header">
      <h2>Wait Times & Mortality Correlation</h2>
      <p>As wait times have increased 86% since 2019, annual deaths while pending have doubled — establishing a quantitative relationship between bureaucratic delay and preventable mortality.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Wait Times (Days) vs. Annual Deaths While Pending</span>
        <button class="explainer-btn" onclick="showModal('waits-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="waitsChart"></canvas>
      </div>
    </div>

    <div class="card-grid" style="margin-top: 24px;">
      <div class="card">
        <div class="card-header"><span class="card-title">FY2019 Baseline</span></div>
        <div class="card-value green">124 days</div>
        <div class="card-delta down">~4 months average wait</div>
        <div class="card-source">SSA OIG</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">FY2023</span></div>
        <div class="card-value orange">217 days</div>
        <div class="card-delta up">+75% from baseline</div>
        <div class="card-source">Commissioner O'Malley Testimony</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">FY2024 (FYTD)</span></div>
        <div class="card-value red">230 days</div>
        <div class="card-delta up">+86% from 2019</div>
        <div class="card-source">SSA Performance Data</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Feb 2025</span></div>
        <div class="card-value red">236 days</div>
        <div class="card-delta up">Continuing escalation</div>
        <div class="card-source">Sanders Senate Report</div>
      </div>
    </div>
  </section>

  <!-- SECTION: FEDERAL COURT REMANDS -->
  <section class="section" id="remands">
    <div class="section-header">
      <h2>Federal Court Remand Rates</h2>
      <p>A 60–65% federal court remand rate is not evidence of individual adjudicator error. When federal judges find fault in two out of every three cases, the system is functioning as a delay-generating, error-producing machine.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Federal Court Appeals Outcomes (FY2019–FY2025)</span>
        <button class="explainer-btn" onclick="showModal('remands-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="remandChart"></canvas>
      </div>
    </div>

    <div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px;">
      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; text-align: center;">
        <div style="font-size: 36px; font-weight: 800; color: var(--accent-red);">1%</div>
        <div style="font-size: 13px; color: var(--text-secondary); margin-top: 8px;">Federal Court Allow Rate</div>
        <div style="font-size: 11px; color: var(--text-muted); margin-top: 4px;">Only 1 in 100 appeals allowed at federal court</div>
      </div>
      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; text-align: center;">
        <div style="font-size: 36px; font-weight: 800; color: var(--accent-orange);">63%</div>
        <div style="font-size: 13px; color: var(--text-secondary); margin-top: 8px;">FY2024 Remand Rate</div>
        <div style="font-size: 11px; color: var(--text-muted); margin-top: 4px;">Up from 50% in FY2019</div>
      </div>
      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; text-align: center;">
        <div style="font-size: 36px; font-weight: 800; color: var(--accent-blue);">65%</div>
        <div style="font-size: 13px; color: var(--text-secondary); margin-top: 8px;">FY2025 FYTD Remand Rate</div>
        <div style="font-size: 11px; color: var(--text-muted); margin-top: 4px;">Trend continues upward</div>
      </div>
    </div>
  </section>

  <!-- SECTION: ALJ ALLOWANCE TRENDS -->
  <section class="section" id="alj">
    <div class="section-header">
      <h2>ALJ Allowance Rate Trends (2009–2025)</h2>
      <p>Higher allowance rates at the ALJ level prove claimants were eligible all along. The delay itself is the denial mechanism.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">ALJ Allowance Rate Over Time</span>
        <button class="explainer-btn" onclick="showModal('alj-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="aljChart"></canvas>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px; margin-top: 24px;">
      <h3 style="font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--accent-blue);">📈 The "Delay Is Denial" Phenomenon</h3>
      <p style="font-size: 14px; color: var(--text-secondary); line-height: 1.8;">
        In 2009, ALJs allowed 63% of cases. By 2014, this had collapsed to 45% — a level maintained through 2023. 
        The 2024 recovery to 50–51% suggests that claimants who survive the 1–2+ year wait are increasingly likely to prove their cases. 
        This is not evidence that claimants became sicker; it is evidence that the <em>same medically impaired population</em> is being systematically denied at initial and reconsideration stages, 
        with only the most persistent (or those with representation) surviving to hearing.
      </p>
    </div>
  </section>

  <!-- SECTION: GAO HISTORICAL -->
  <section class="section" id="gao">
    <div class="section-header">
      <h2>GAO-Documented Mortality & Financial Catastrophe</h2>
      <p>The Government Accountability Office confirmed that between FY2008 and FY2019, approximately 110,000 people died awaiting SSDI benefits, and about 50,000 filed for bankruptcy while waiting.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Deaths and Bankruptcies While Pending (FY2008–FY2019)</span>
        <button class="explainer-btn" onclick="showModal('gao-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="gaoChart"></canvas>
      </div>
    </div>

    <div class="card-grid" style="margin-top: 24px;">
      <div class="card">
        <div class="card-header"><span class="card-title">Total Deaths (FY2008–2019)</span></div>
        <div class="card-value red">109,725</div>
        <div class="card-delta up">While awaiting appeal decisions</div>
        <div class="card-source">GAO-20-641R (Sept 2020)</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Bankruptcies (FY2014–2019)</span></div>
        <div class="card-value orange">48,000+</div>
        <div class="card-delta up">While waiting for decisions</div>
        <div class="card-source">GAO-20-641R (Sept 2020)</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Peak Wait Time (FY2015)</span></div>
        <div class="card-value red">839 days</div>
        <div class="card-delta up">Median appeal wait time</div>
        <div class="card-source">GAO-20-641R (Sept 2020)</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Wait Time (FY2019)</span></div>
        <div class="card-value orange">506 days</div>
        <div class="card-delta down">Down from peak but still catastrophic</div>
        <div class="card-source">GAO-20-641R (Sept 2020)</div>
      </div>
    </div>
  </section>

  <!-- SECTION: GELBER -->
  <section class="section" id="gelber">
    <div class="section-header">
      <h2>Gelber, Moore, Pei & Strand (JPE 2023)</h2>
      <p>"Disability Insurance Income Saves Lives" — Regression Kink Design establishing causal mortality reduction from DI income.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Mortality Elasticity with Respect to DI Income</span>
        <button class="explainer-btn" onclick="showModal('gelber-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="gelberChart"></canvas>
      </div>
    </div>

    <div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px;">
      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px;">
        <h4 style="color: var(--accent-blue); font-size: 14px; margin-bottom: 12px;">📐 Method: Regression Kink Design</h4>
        <p style="font-size: 13px; color: var(--text-secondary); line-height: 1.7;">
          Exploits the Social Security benefit formula's bend points — where the marginal replacement rate changes discontinuously — 
          to identify the causal effect of DI income on mortality. This design is robust to omitted variable bias because 
          the kink is a deterministic feature of the formula, not correlated with claimant characteristics.
        </p>
      </div>
      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px;">
        <h4 style="color: var(--accent-green); font-size: 14px; margin-bottom: 12px;">📊 Key Finding</h4>
        <p style="font-size: 13px; color: var(--text-secondary); line-height: 1.7;">
          <strong>$1,000 more in annual DI payments</strong> decreases the annual mortality rate of lower-income beneficiaries by 
          approximately <strong>0.18 to 0.35 percentage points</strong>. The elasticity of mortality with respect to DI income is 
          <strong>−0.6 to −1.0</strong>. The effect is concentrated at the lower bend point — the poorest beneficiaries.
        </p>
      </div>
    </div>
  </section>

  <!-- SECTION: DESHPANDE -->
  <section class="section" id="deshpande">
    <div class="section-header">
      <h2>Deshpande & Mueller-Smith (QJE 2022)</h2>
      <p>"Does Welfare Prevent Crime?" — Regression Discontinuity Design proving SSI removal causes criminalization and incarceration.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Criminalization Pathway After SSI Removal</span>
        <button class="explainer-btn" onclick="showModal('deshpande-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="deshpandeChart"></canvas>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px; margin-top: 24px;">
      <h3 style="font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--accent-red);">🔴 The Prison-Industrial Feedback Loop — In Quantitative Form</h3>
      <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;">
        <div style="text-align: center; padding: 16px; background: var(--bg-card); border-radius: 8px;">
          <div style="font-size: 32px; font-weight: 800; color: var(--accent-red);">+20%</div>
          <div style="font-size: 12px; color: var(--text-secondary); margin-top: 8px;">Total Criminal Charges</div>
        </div>
        <div style="text-align: center; padding: 16px; background: var(--bg-card); border-radius: 8px;">
          <div style="font-size: 32px; font-weight: 800; color: var(--accent-red);">+60%</div>
          <div style="font-size: 12px; color: var(--text-secondary); margin-top: 8px;">Incarceration Likelihood</div>
        </div>
        <div style="text-align: center; padding: 16px; background: var(--bg-card); border-radius: 8px;">
          <div style="font-size: 32px; font-weight: 800; color: var(--accent-orange);">2x</div>
          <div style="font-size: 12px; color: var(--text-secondary); margin-top: 8px;">More likely to commit income-generating crime than earn $15k/year</div>
        </div>
        <div style="text-align: center; padding: 16px; background: var(--bg-card); border-radius: 8px;">
          <div style="font-size: 32px; font-weight: 800; color: var(--accent-purple);">20+ yrs</div>
          <div style="font-size: 12px; color: var(--text-secondary); margin-top: 8px;">Effects persist over two decades</div>
        </div>
      </div>
      <p style="font-size: 13px; color: var(--text-secondary); margin-top: 16px; line-height: 1.7;">
        <strong>Critical Mechanism:</strong> "While some youth who are removed from SSI at age 18 respond by working at minimum-wage levels, 
        a much larger fraction respond by engaging in illicit activities to replace the lost SSI income... These effects on illegal activities 
        are not limited to the years immediately following removal... but instead persist over the next two decades."
      </p>
    </div>
  </section>

  <!-- SECTION: MILLER -->
  <section class="section" id="miller">
    <div class="section-header">
      <h2>Miller, Johnson & Wherry (NBER 2025)</h2>
      <p>"Saved by Medicaid" — Difference-in-Differences analysis proving Medicaid expansion reduces mortality by 21%.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Medicaid Expansion Mortality Impact</span>
        <button class="explainer-btn" onclick="showModal('miller-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="millerChart"></canvas>
      </div>
    </div>

    <div class="card-grid" style="margin-top: 24px;">
      <div class="card">
        <div class="card-header"><span class="card-title">Mortality Hazard Reduction</span></div>
        <div class="card-value green">21%</div>
        <div class="card-delta down">For new Medicaid enrollees</div>
        <div class="card-source">NBER WP 33719</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Lives Saved (2010–2022)</span></div>
        <div class="card-value green">27,400</div>
        <div class="card-delta down">Estimated deaths avoided</div>
        <div class="card-source">NBER WP 33719</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Enrollment Increase</span></div>
        <div class="card-value blue">+12 pp</div>
        <div class="card-delta down">Percentage point increase</div>
        <div class="card-source">NBER WP 33719</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Mortality Gap Attribution</span></div>
        <div class="card-value orange">5–20%</div>
        <div class="card-delta down">Of low/high-income mortality gap from insurance</div>
        <div class="card-source">NBER WP 33719</div>
      </div>
    </div>
  </section>

  <!-- SECTION: POWELL -->
  <section class="section" id="powell">
    <div class="section-header">
      <h2>Powell et al. (Health Affairs 2026)</h2>
      <p>Mortality Among SSDI Beneficiaries — Longitudinal analysis revealing the Medicare waiting period mortality crisis.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">2-Year Mortality by Primary Impairment Category</span>
        <button class="explainer-btn" onclick="showModal('powell-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="powellChart"></canvas>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px; margin-top: 24px; border-left: 4px solid var(--accent-red);">
      <h3 style="font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--accent-red);">⚠️ The Medicare Waiting Period Mortality Crisis</h3>
      <p style="font-size: 14px; color: var(--text-secondary); line-height: 1.8;">
        Despite being approved for SSDI benefits, beneficiaries face a mandatory <strong>24-month waiting period</strong> for Medicare eligibility. 
        For beneficiaries with blood diseases (8.4% 2-year mortality), HIV/AIDS (8.1%), or cancer (7.3%), this two-year gap represents 
        a direct threat to survival. As LDI Senior Fellow David Powell stated: <em>"There's no system in place to provide health insurance 
        for this group during the waiting period. Many probably just go uninsured."</em>
      </p>
      <p style="font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-top: 12px;">
        <strong>Constitutional Significance:</strong> This gap between benefit approval and healthcare access — for individuals with severe, 
        life-threatening conditions — represents an additional, independent source of preventable mortality that compounds the delay-related 
        deaths documented elsewhere in this exhibit.
      </p>
    </div>
  </section>

  <!-- SECTION: BLACK -->
  <section class="section" id="black">
    <div class="section-header">
      <h2>Black, French, McCauley & Song (JPubE 2024)</h2>
      <p>Marginal vs. Inframarginal Effects — Instrumental Variables using judge assignment to identify mortality effects.</p>
    </div>

    <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 32px;">
      <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 32px;">
        <div>
          <h4 style="color: var(--accent-red); font-size: 16px; margin-bottom: 16px;">Marginal Beneficiaries</h4>
          <p style="font-size: 14px; color: var(--text-secondary); line-height: 1.8;">
            Those who would not otherwise qualify. Benefit allowance <em>increases</em> 10-year mortality for this group — 
            likely because DI receipt discourages work among those capable of employment, leading to health deterioration.
          </p>
        </div>
        <div>
          <h4 style="color: var(--accent-green); font-size: 16px; margin-bottom: 16px;">Inframarginal Beneficiaries</h4>
          <p style="font-size: 14px; color: var(--text-secondary); line-height: 1.8;">
            Sicker claimants who would qualify regardless of judge. Benefit allowance <em>reduces</em> mortality for those with 
            high-mortality conditions: <strong>respiratory and nervous system conditions, and cancer</strong>.
          </p>
        </div>
      </div>
      <div style="margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-color);">
        <p style="font-size: 14px; color: var(--text-primary); font-weight: 600;">
          🔑 Critical Implication: Denial of benefits to sick, low-income claimants increases mortality — precisely the population 
          most likely to be caught in administrative recidivism.
        </p>
      </div>
    </div>
  </section>

  <!-- SECTION: THREE-PILLAR MODEL -->
  <section class="section" id="pillars">
    <div class="section-header">
      <h2>The Three-Pillar Mortality Model</h2>
      <p>Peer-reviewed evidence for three interventions that independently reduce mortality among disabled, low-income populations.</p>
    </div>

    <div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px;">
      <div class="pillar" style="background: linear-gradient(135deg, #22c55e, #16a34a);">
        <h3>PILLAR 1: INCOME (DI/SSI)</h3>
        <p>$1,000 more DI → 0.18–0.35 pp mortality reduction</p>
        <p style="margin-top: 12px;">Elasticity: −0.6 to −1.0</p>
        <p>Cost per life-year: ~$50,000</p>
        <div class="citation">Gelber, Moore, Pei & Strand (JPE 2023)</div>
      </div>
      <div class="pillar" style="background: linear-gradient(135deg, #3b82f6, #2563eb);">
        <h3>PILLAR 2: HEALTH INSURANCE (Medicaid)</h3>
        <p>21% mortality hazard reduction</p>
        <p style="margin-top: 12px;">27,400 lives saved (2010–2022)</p>
        <p>Cost per life saved: $5.4M</p>
        <div class="citation">Miller, Johnson & Wherry (NBER 2025)</div>
      </div>
      <div class="pillar" style="background: linear-gradient(135deg, #a855f7, #9333ea);">
        <h3>PILLAR 3: HOUSING (Housing First)</h3>
        <p>Reduced hospitalization & ED use</p>
        <p style="margin-top: 12px;">8 more psychiatric visits</p>
        <p>6 fewer emergency department visits</p>
        <div class="citation">CDC Community Guide; Health Affairs 2024</div>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px; text-align: center;">
      <h3 style="font-size: 18px; font-weight: 800; color: var(--accent-blue); margin-bottom: 12px;">FOUNDATION: TIMELY, ACCESSIBLE DISABILITY ADJUDICATION</h3>
      <p style="font-size: 14px; color: var(--text-secondary); max-width: 700px; margin: 0 auto;">
        All three pillars depend on a functioning disability adjudication system. When that system collapses into 230-day waits 
        with 62% initial denial rates, it undermines all three mortality-reduction pathways simultaneously.
      </p>
    </div>
  </section>

  <!-- SECTION: PRISON-INDUSTRIAL FEEDBACK LOOP -->
  <section class="section" id="feedback">
    <div class="section-header">
      <h2>The Prison-Industrial Feedback Loop</h2>
      <p>Quantitative pathway from disability onset to systemic recidivism — with peer-reviewed causal evidence at each stage.</p>
    </div>

    <div style="display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px;">
      <div class="flow-stage" style="border-color: #3b82f6;" onclick="showStageDetail(1)">
        <h4 style="color: #3b82f6;">STAGE 1</h4>
        <p>Disability Onset<br><span style="color: var(--text-muted);">Medically unable to work</span></p>
      </div>
      <div class="flow-arrow">→</div>
      <div class="flow-stage" style="border-color: #ef4444;" onclick="showStageDetail(2)">
        <h4 style="color: #ef4444;">STAGE 2</h4>
        <p>Initial Application<br><span style="color: var(--text-muted);">62–64% DENIED</span></p>
      </div>
      <div class="flow-arrow">→</div>
      <div class="flow-stage" style="border-color: #f59e0b;" onclick="showStageDetail(3)">
        <h4 style="color: #f59e0b;">STAGE 3</h4>
        <p>Economic Destabilization<br><span style="color: var(--text-muted);">No income, eviction</span></p>
      </div>
      <div class="flow-arrow">→</div>
      <div class="flow-stage" style="border-color: #ef4444;" onclick="showStageDetail(4)">
        <h4 style="color: #ef4444;">STAGE 4</h4>
        <p>Reconsideration<br><span style="color: var(--text-muted);">84% DENIED</span></p>
      </div>
    </div>

    <div style="display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 24px;">
      <div class="flow-stage" style="border-color: #22c55e;" onclick="showStageDetail(5)">
        <h4 style="color: #22c55e;">STAGE 5</h4>
        <p>ALJ Hearing Wait<br><span style="color: var(--text-muted);">1–2+ YEARS</span></p>
      </div>
      <div class="flow-arrow">→</div>
      <div class="flow-stage" style="border-color: #a855f7;" onclick="showStageDetail(6)">
        <h4 style="color: #a855f7;">STAGE 6</h4>
        <p>Homelessness / Police Contact<br><span style="color: var(--text-muted);">"Survival crimes"</span></p>
      </div>
      <div class="flow-arrow">→</div>
      <div class="flow-stage" style="border-color: #dc2626;" onclick="showStageDetail(7)">
        <h4 style="color: #dc2626;">STAGE 7</h4>
        <p>Criminalization / Incarceration<br><span style="color: var(--text-muted);">+60% incarceration</span></p>
      </div>
      <div class="flow-arrow">→</div>
      <div class="flow-stage" style="border-color: #a855f7;" onclick="showStageDetail(8)">
        <h4 style="color: #a855f7;">STAGE 8</h4>
        <p>Reentry / Reapplication<br><span style="color: var(--text-muted);">Cycle repeats</span></p>
      </div>
    </div>

    <div style="text-align: center; margin: 24px 0;">
      <div style="display: inline-block; background: var(--bg-tertiary); border: 2px dashed var(--accent-blue); border-radius: 12px; padding: 16px 32px;">
        <span style="font-size: 24px;">⟲</span>
        <span style="font-size: 14px; font-weight: 700; color: var(--accent-blue); margin-left: 12px;">THE FEEDBACK LOOP</span>
        <p style="font-size: 12px; color: var(--text-muted); margin-top: 8px;">Criminal record → denial → no healthcare → worse health → no housing → instability → reapplication</p>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px;">
      <h4 style="font-size: 14px; font-weight: 700; color: var(--accent-blue); margin-bottom: 16px;">PEER-REVIEWED CAUSAL EVIDENCE BY STAGE</h4>
      <div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; font-size: 13px; color: var(--text-secondary);">
        <div>• <strong>Stage 2→3:</strong> Gelber et al. (JPE 2023) — income removal increases mortality</div>
        <div>• <strong>Stage 3→6:</strong> CDC Community Guide — Housing First reduces homelessness</div>
        <div>• <strong>Stage 6→7:</strong> Deshpande & Mueller-Smith (QJE 2022) — SSI removal → +60% incarceration</div>
        <div>• <strong>Stage 7→8:</strong> JAMA Network Open (2024) — Medicaid expansion reduces formerly incarcerated mortality</div>
      </div>
    </div>
  </section>

  <!-- SECTION: WORKFORCE CRISIS -->
  <section class="section" id="workforce">
    <div class="section-header">
      <h2>The Workforce Crisis</h2>
      <p>Projected impacts of staffing reductions on wait times and mortality — every day of additional wait equals approximately 189 additional deaths.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Projected Annual Deaths Under Three Workforce Scenarios</span>
        <button class="explainer-btn" onclick="showModal('workforce-modal')">❓ Explain</button>
      </div>
      <div class="chart-wrapper">
        <canvas id="workforceChart"></canvas>
      </div>
    </div>

    <div class="card-grid" style="margin-top: 24px;">
      <div class="card">
        <div class="card-header"><span class="card-title">Current Staffing</span></div>
        <div class="card-value blue">57,000</div>
        <div class="card-delta down">Lowest in 50 years</div>
        <div class="card-source">SSA (Feb 2025)</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Projected Staffing</span></div>
        <div class="card-value red">28,500</div>
        <div class="card-delta up">50% reduction planned</div>
        <div class="card-source">Sanders Senate Report (2025)</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Optimal Staffing</span></div>
        <div class="card-value green">75,000</div>
        <div class="card-delta down">Estimated need</div>
        <div class="card-source">Analyst projection</div>
      </div>
      <div class="card">
        <div class="card-header"><span class="card-title">Deaths Per Day of Delay</span></div>
        <div class="card-value red">~188.7</div>
        <div class="card-delta up">Linear projection</div>
        <div class="card-source">Sanders Senate Report (2025)</div>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px; margin-top: 24px; border-left: 4px solid var(--accent-orange);">
      <h3 style="font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--accent-orange);">⚠️ Transparency Erosion</h3>
      <p style="font-size: 14px; color: var(--text-secondary); line-height: 1.8;">
        In June 2025, the agency removed key customer service metrics — including phone wait times and disability claim processing times — 
        from its website. The number of cases pending rose by more than 73,000 from January 2025 to February 2026. 
        As one current SSA employee (disability attorney) stated: <em>"We are already short-staffed as it is... Right now we are working on 
        applications generally from 2023-ish... easily the wait times will be extended by one year."</em>
      </p>
    </div>
  </section>

  <!-- SECTION: UN HUMAN RIGHTS -->
  <section class="section" id="un">
    <div class="section-header">
      <h2>UN Human Rights Framework</h2>
      <p>Applicable international treaties and evidence of U.S. non-compliance in Social Security disability adjudication.</p>
    </div>

    <div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px;">
      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; border-top: 4px solid #3b82f6;">
        <h4 style="color: #3b82f6; font-size: 16px; font-weight: 800; margin-bottom: 12px;">ICCPR (1966)</h4>
        <p style="font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px;">
          <strong>Art. 6:</strong> Right to Life<br>
          <strong>Art. 7:</strong> Cruel, Inhuman or Degrading Treatment<br>
          <strong>Art. 9:</strong> Liberty and Security of Person<br>
          <strong>Art. 17:</strong> Privacy, Family, Home
        </p>
        <div style="background: var(--bg-tertiary); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--text-primary);">
          <strong>Violation:</strong> 30,000 annual deaths while pending violates Art. 6 (right to life). Systemic delay rendering adjudication functionally inaccessible violates Art. 2(3) (effective remedy).
        </div>
      </div>

      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; border-top: 4px solid #22c55e;">
        <h4 style="color: #22c55e; font-size: 16px; font-weight: 800; margin-bottom: 12px;">ICERD (1965)</h4>
        <p style="font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px;">
          <strong>Art. 2:</strong> Eliminate discrimination<br>
          <strong>Art. 5:</strong> Economic, social, cultural rights<br>
          <strong>Art. 6:</strong> Effective remedies
        </p>
        <div style="background: var(--bg-tertiary); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--text-primary);">
          <strong>Violation:</strong> Disproportionate impact on racial minorities in disability adjudication. Older adults and minority communities bear disproportionate burden of delay.
        </div>
      </div>

      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; border-top: 4px solid #a855f7;">
        <h4 style="color: #a855f7; font-size: 16px; font-weight: 800; margin-bottom: 12px;">CRPD (2006)</h4>
        <p style="font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px;">
          <strong>Art. 4:</strong> Ensure and promote rights<br>
          <strong>Art. 9:</strong> Accessibility<br>
          <strong>Art. 19:</strong> Living independently<br>
          <strong>Art. 28:</strong> Adequate standard of living
        </p>
        <div style="background: var(--bg-tertiary); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--text-primary);">
          <strong>Violation:</strong> 230-day average wait violates Art. 9 (accessibility) and Art. 28 (adequate living). Forcing disabled claimants into homelessness and criminalization violates Art. 19 (independent living).
        </div>
      </div>

      <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; border-top: 4px solid #ef4444;">
        <h4 style="color: #ef4444; font-size: 16px; font-weight: 800; margin-bottom: 12px;">CAT (1984)</h4>
        <p style="font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px;">
          <strong>Art. 1:</strong> Definition of torture<br>
          <strong>Art. 2:</strong> Prevention obligation<br>
          <strong>Art. 14:</strong> Redress
        </p>
        <div style="background: var(--bg-tertiary); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--text-primary);">
          <strong>Violation:</strong> Deliberate indifference to health/safety of disabled claimants through chronic understaffing, delayed adjudication, and denial of benefits may constitute cruel, inhuman or degrading treatment under Art. 16.
        </div>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 24px; border-left: 4px solid var(--accent-red);">
      <h3 style="font-size: 18px; font-weight: 800; color: var(--accent-red); margin-bottom: 16px;">EVIDENCE OF U.S. NON-COMPLIANCE</h3>
      <div style="display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 14px; color: var(--text-secondary);">
        <div style="padding: 12px; background: var(--bg-card); border-radius: 8px;">• <strong>30,000 annual deaths</strong> while pending (O'Malley testimony, 2024) — violates Art. 6 ICCPR (right to life)</div>
        <div style="padding: 12px; background: var(--bg-card); border-radius: 8px;">• <strong>62% federal court remand rate</strong> (FY2024) — systemic error violates Art. 2(3) ICCPR (effective remedy)</div>
        <div style="padding: 12px; background: var(--bg-card); border-radius: 8px;">• <strong>230-day average wait</strong> (FY2024) — violates CRPD Art. 9 (accessibility) & Art. 28 (adequate living)</div>
        <div style="padding: 12px; background: var(--bg-card); border-radius: 8px;">• <strong>SSI removal → +60% incarceration</strong> (Deshpande & Mueller-Smith, QJE 2022) — violates CAT Art. 16</div>
        <div style="padding: 12px; background: var(--bg-card); border-radius: 8px;">• <strong>Disproportionate impact</strong> on older adults & racial minorities — violates ICERD Art. 2 & 5</div>
      </div>
    </div>
  </section>

  <!-- SECTION: LITIGATION MATRIX -->
  <section class="section" id="litigation">
    <div class="section-header">
      <h2>Litigation Utility Matrix</h2>
      <p>Evidence strength mapping for strategic UN petition filing — which claims are best supported by which evidence types.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header">
        <span class="chart-title">Evidence Strength by Legal Claim and Evidence Type (0–10 Scale)</span>
        <button class="explainer-btn" onclick="showModal('litigation-modal')">❓ Explain</button>
      </div>
      <div style="overflow-x: auto;">
        <div style="display: grid; grid-template-columns: 180px repeat(7, 80px); gap: 2px; margin-top: 16px;" id="litigationMatrix">
          <!-- Header row -->
          <div class="heatmap-label" style="padding: 8px;"></div>
          <div class="heatmap-label" style="padding: 8px; text-align: center;">Mortality<br>Data</div>
          <div class="heatmap-label" style="padding: 8px; text-align: center;">Peer-<br>Reviewed</div>
          <div class="heatmap-label" style="padding: 8px; text-align: center;">Federal<br>Court</div>
          <div class="heatmap-label" style="padding: 8px; text-align: center;">GAO/IG</div>
          <div class="heatmap-label" style="padding: 8px; text-align: center;">Commissioner</div>
          <div class="heatmap-label" style="padding: 8px; text-align: center;">Staffing</div>
          <div class="heatmap-label" style="padding: 8px; text-align: center;">Int'l<br>Law</div>
        </div>
      </div>
    </div>

    <div style="background: var(--bg-tertiary); border-radius: 12px; padding: 20px; margin-top: 24px;">
      <p style="font-size: 13px; color: var(--text-muted);">
        <strong>INTERPRETATION:</strong> 10 = Dispositive evidence | 7–9 = Strong supporting evidence | 4–6 = Relevant but supplementary | 0–3 = Weak/minimal
      </p>
    </div>
  </section>

  <!-- SECTION: KNOWLEDGE GRAPH - CITATIONS -->
  <section class="section" id="kg-citations">
    <div class="section-header">
      <h2>Knowledge Graph: Citation Network</h2>
      <p>Interactive network showing relationships between peer-reviewed studies, their methods, and the legal claims they support.</p>
    </div>
    <div class="kg-container" id="citationGraph"></div>
  </section>

  <!-- SECTION: KNOWLEDGE GRAPH - CLAIMS -->
  <section class="section" id="kg-claims">
    <div class="section-header">
      <h2>Knowledge Graph: Claim → Evidence → Treaty</h2>
      <p>Mapping legal claims to supporting evidence and applicable UN treaty provisions.</p>
    </div>
    <div class="kg-container" id="claimsGraph"></div>
  </section>

  <!-- SECTION: KNOWLEDGE GRAPH - PATHWAY -->
  <section class="section" id="kg-pathway">
    <div class="section-header">
      <h2>Knowledge Graph: Causal Pathway</h2>
      <p>Directed graph showing the causal chain from administrative delay to mortality, criminalization, and systemic recidivism.</p>
    </div>
    <div class="kg-container" id="pathwayGraph"></div>
  </section>

  <!-- SECTION: KNOWLEDGE GRAPH - BOTTLENECK -->
  <section class="section" id="kg-bottleneck">
    <div class="section-header">
      <h2>Knowledge Graph: SSA Bottleneck Analysis</h2>
      <p>Organizational flow showing where the disability adjudication system breaks down and creates the backlog.</p>
    </div>
    <div class="kg-container" id="bottleneckGraph"></div>
  </section>

  <!-- SECTION: DATA TABLES -->
  <section class="section" id="tables">
    <div class="section-header">
      <h2>Statistical Appendix — Verified Data Tables</h2>
      <p>All data sourced from SSA workload reports, GAO audits, congressional testimony, and peer-reviewed publications.</p>
    </div>

    <div class="chart-container">
      <div class="chart-header"><span class="chart-title">Table 1: FY2024 Decision Waterfall</span></div>
      <table class="data-table">
        <thead><tr><th>Appeal Level</th><th>Total Decisions</th><th>Approval Rate</th><th>Denial/Remand Rate</th><th>Source</th></tr></thead>
        <tbody>
          <tr><td>Initial Application</td><td>2,086,855</td><td>36–38%</td><td>62–64%</td><td>SSA FY2024 Workload</td></tr>
          <tr><td>Reconsideration</td><td>495,700</td><td>16%</td><td>84%</td><td>SSA FY2024 Workload</td></tr>
          <tr><td>ALJ Hearing</td><td>289,492</td><td>50–51%</td><td>~33% denied</td><td>SSA FY2024 Workload</td></tr>
          <tr><td>Appeals Council</td><td>45,641</td><td>1%</td><td>80% denied</td><td>SSA FY2024 Workload</td></tr>
          <tr><td>Federal Court</td><td>15,753</td><td>1% allowed</td><td>63% remand, 32% deny</td><td>Justice in Aging</td></tr>
        </tbody>
      </table>
    </div>

    <div class="chart-container">
      <div class="chart-header"><span class="chart-title">Table 2: Wait Times & Mortality Correlation</span></div>
      <table class="data-table">
        <thead><tr><th>Fiscal Year</th><th>Avg Wait (Days)</th><th>Deaths While Pending</th><th>Source</th></tr></thead>
        <tbody>
          <tr><td>2019</td><td>124</td><td>~15,000</td><td>SSA OIG</td></tr>
          <tr><td>2023</td><td>217</td><td>30,000</td><td>O'Malley Testimony</td></tr>
          <tr><td>2024 (FYTD)</td><td>230</td><td>~30,000+</td><td>SSA Performance Data</td></tr>
          <tr><td>Feb 2025</td><td>236</td><td>N/A</td><td>Sanders Senate Report</td></tr>
        </tbody>
      </table>
    </div>

    <div class="chart-container">
      <div class="chart-header"><span class="chart-title">Table 3: Federal Court Remand Rates</span></div>
      <table class="data-table">
        <thead><tr><th>FY</th><th>Allow</th><th>Remand</th><th>Deny</th><th>Total Cases</th></tr></thead>
        <tbody>
          <tr><td>2019</td><td>2%</td><td>50%</td><td>41%</td><td>18,116</td></tr>
          <tr><td>2020</td><td>2%</td><td>55%</td><td>---</td><td>16,852</td></tr>
          <tr><td>2021</td><td>1%</td><td>59%</td><td>---</td><td>17,405</td></tr>
          <tr><td>2022</td><td>1%</td><td>58%</td><td>37%</td><td>21,297</td></tr>
          <tr><td>2023</td><td>1%</td><td>61%</td><td>---</td><td>15,710</td></tr>
          <tr><td>2024</td><td>1%</td><td>63%</td><td>32%</td><td>15,753</td></tr>
          <tr><td>2025 FYTD</td><td>1%</td><td>65%</td><td>---</td><td>13,587</td></tr>
        </tbody>
      </table>
    </div>

    <div class="chart-container">
      <div class="chart-header"><span class="chart-title">Table 4: Peer-Reviewed Evidence Summary</span></div>
      <table class="data-table">
        <thead><tr><th>Study</th><th>Method</th><th>Key Finding</th><th>Journal</th></tr></thead>
        <tbody>
          <tr><td>Gelber et al. (2023)</td><td>Regression Kink</td><td>$1K more DI → 0.18–0.35 pp mortality ↓; elasticity −0.6 to −1.0</td><td>J. Political Economy</td></tr>
          <tr><td>Black et al. (2024)</td><td>IV (Judge Assignment)</td><td>Benefit allowance reduces mortality for sicker claimants</td><td>J. Public Economics</td></tr>
          <tr><td>Deshpande & Mueller-Smith (2022)</td><td>Regression Discontinuity</td><td>SSI removal → +20% charges, +60% incarceration</td><td>Q.J. Economics</td></tr>
          <tr><td>Miller et al. (2025)</td><td>Diff-in-Differences</td><td>Medicaid expansion → 21% mortality hazard ↓; 27,400 lives saved</td><td>NBER WP 33719</td></tr>
          <tr><td>Powell et al. (2026)</td><td>Longitudinal (DAF)</td><td>SSDI beneficiaries: 5.2–7.3% 2-year mortality vs. ~1% general pop.</td><td>Health Affairs</td></tr>
        </tbody>
      </table>
    </div>

    <div class="chart-container">
      <div class="chart-header"><span class="chart-title">Table 5: ALJ Allowance Rate Trends</span></div>
      <table class="data-table">
        <thead><tr><th>Year</th><th>ALJ Allowance Rate</th><th>Source</th></tr></thead>
        <tbody>
          <tr><td>2009</td><td>63%</td><td>CBPP</td></tr>
          <tr><td>2010</td><td>62%</td><td>CBPP</td></tr>
          <tr><td>2014</td><td>45%</td><td>CBPP</td></tr>
          <tr><td>2023</td><td>45%</td><td>OIG Report</td></tr>
          <tr><td>2024</td><td>50–51%</td><td>SSA Data</td></tr>
          <tr><td>2025 FYTD</td><td>50%</td><td>Nick Ortiz Law</td></tr>
        </tbody>
      </table>
    </div>

    <div class="chart-container">
      <div class="chart-header"><span class="chart-title">Table 6: GAO Historical Data</span></div>
      <table class="data-table">
        <thead><tr><th>Metric</th><th>Value</th></tr></thead>
        <tbody>
          <tr><td>Deaths awaiting appeal (FY2008–FY2019)</td><td>109,725</td></tr>
          <tr><td>Bankruptcy filings while waiting (FY2014–FY2019)</td><td>48,000+</td></tr>
          <tr><td>Median appeal wait time peak (FY2015)</td><td>839 days</td></tr>
          <tr><td>Median appeal wait time (FY2019)</td><td>506 days</td></tr>
        </tbody>
      </table>
    </div>
  </section>

  <!-- SECTION: BIBLIOGRAPHY -->
  <section class="section" id="bibliography">
    <div class="section-header">
      <h2>Expanded Bibliography</h2>
      <p>Peer-reviewed sources, government reports, and congressional testimony cited throughout this exhibit.</p>
    </div>

    <div style="background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 32px;">
      <ol style="font-size: 14px; color: var(--text-secondary); line-height: 2; padding-left: 24px;">
        <li>Gelber, A., Moore, T. J., Pei, Z., & Strand, A. (2023). Disability Insurance Income Saves Lives. <em>Journal of Political Economy</em>, 131(11).</li>
        <li>Black, D. A., French, E., McCauley, J., & Song, J. (2024). The Marginal and Inframarginal Effects of Disability Insurance. <em>Journal of Public Economics</em>, 229(C), 105043.</li>
        <li>Deshpande, M., & Mueller-Smith, M. (2022). Does Welfare Prevent Crime? <em>Quarterly Journal of Economics</em>, 137(4), 2263–2307.</li>
        <li>Miller, S., Johnson, N., & Wherry, L. R. (2025). Saved by Medicaid? <em>NBER Working Paper</em> No. 33719.</li>
        <li>Powell, D., et al. (2026). Mortality Among Social Security Disability Insurance Beneficiaries. <em>Health Affairs</em>, March 2026.</li>
        <li>U.S. Government Accountability Office. (2020). Social Security Disability: Information on Wait Times, Bankruptcies, and Deaths. GAO-20-641R.</li>
        <li>U.S. Senate Committee on the Budget. (2025). Sanders Senate Report on SSA DOGE Cuts and Projected Mortality Impacts.</li>
        <li>Justice in Aging. (2024). Federal Court Remand Rate Analysis for Social Security Disability Appeals.</li>
        <li>Nick Ortiz Law. (2025). Social Security Disability Appeals Council and Federal Court Statistics.</li>
        <li>Center on Budget and Policy Priorities. (2014). Chart Book: Social Security Disability Insurance.</li>
        <li>Social Security Administration. (2024). FY2024 Workload Data and Performance Metrics.</li>
        <li>Social Security Administration OIG. (2023). Audit of Disability Determination Services Processing Times.</li>
        <li>National Organization of Social Security Claimants' Representatives. (2025). Annual Report on Disability Adjudication.</li>
        <li>Commissioner Martin O'Malley. (2024). Congressional testimony: "Thirty thousand people died in 2023 while waiting for their disability decisions."</li>
      </ol>
    </div>

    <div style="text-align: center; margin-top: 48px; padding: 32px; border-top: 1px solid var(--border-color);">
      <p style="font-size: 14px; color: var(--text-muted); font-style: italic;">
        Document prepared for UN Petition Exhibit use<br>
        Caustin Lee McLaughlin (Pro Se) — September 2026
      </p>
    </div>
  </section>

</main>
</div>

<script>
// ===================== THEME TOGGLE =====================
function toggleTheme() {
  document.body.classList.toggle('light-mode');
  // Update Chart.js defaults
  const isLight = document.body.classList.contains('light-mode');
  Chart.defaults.color = isLight ? '#475569' : '#94a3b8';
  Chart.defaults.borderColor = isLight ? '#e2e8f0' : '#1e293b';
  // Re-render all charts
  Object.values(charts).forEach(c => c.update());
}

// ===================== NAVIGATION =====================
document.querySelectorAll('.nav-item').forEach(item => {
  item.addEventListener('click', function(e) {
    e.preventDefault();
    const sectionId = this.dataset.section;
    document.querySelectorAll('.section').forEach(s => s.classList.remove('active'));
    document.querySelectorAll('.nav-item').forEach(n => n.classList.remove('active'));
    document.getElementById(sectionId).classList.add('active');
    this.classList.add('active');
    window.scrollTo(0, 0);
  });
});

// ===================== SEARCH =====================
document.getElementById('searchBox').addEventListener('input', function(e) {
  const query = e.target.value.toLowerCase();
  document.querySelectorAll('.section').forEach(section => {
    const text = section.textContent.toLowerCase();
    if (text.includes(query)) {
      section.style.opacity = '1';
    } else {
      section.style.opacity = query ? '0.3' : '1';
    }
  });
});

// ===================== EXPLAINERS =====================
function toggleExplainer(id) {
  const panel = document.getElementById(id);
  panel.classList.toggle('show');
}

// ===================== MODAL =====================
function showModal(contentId) {
  const contents = {
    'waterfall-modal': `<h4>The Decision Waterfall</h4><p>The waterfall chart reveals a structural pattern: 62-64% of initial applications are denied, forcing claimants into a multi-year appeals process. At the ALJ hearing level — after 1-2+ years of delay — approval rates jump to 50-51%. This proves that the initial denial rate is not screening out ineligible claimants; it is screening out claimants who cannot survive the delay.</p><div class="methodology"><span>SOURCE: SSA FY2024 Workload Data</span></div>`,
    'waits-modal': `<h4>Wait Time vs. Mortality Correlation</h4><p>The 86% increase in wait times from 2019 to 2024 coincided with a doubling of deaths while pending. While correlation does not prove causation, the peer-reviewed evidence (Gelber et al., JPE 2023) establishes that income removal increases mortality with an elasticity of -0.6 to -1.0. Combined, these data support a structural claim: delay is not merely inconvenient — it is lethal.</p><div class="methodology"><span>SOURCES: SSA OIG; O'Malley Testimony; Sanders Senate Report</span></div>`,
    'remands-modal': `<h4>The "Error-Producing Machine"</h4><p>A 60-65% federal court remand rate means that federal judges find fault in 2 out of 3 disability appeals. This is not evidence of individual adjudicator incompetence. When error is this systematic, it indicates structural dysfunction: inadequate training, insufficient time for case review, pressure to deny claims, and outdated technology.</p><div class="methodology"><span>SOURCES: Justice in Aging; Nick Ortiz Law</span></div>`,
    'alj-modal': `<h4>ALJ Allowance Rate Trends</h4><p>The decline from 63% (2009) to 45% (2014-2023) and recovery to 50-51% (2024) reflects policy changes, not changes in claimant health. The 2024 increase suggests that claimants who survive the wait are increasingly likely to prove their cases — confirming that delay functions as a de facto denial mechanism for eligible claimants.</p><div class="methodology"><span>SOURCES: CBPP; SSA OIG; Nick Ortiz Law</span></div>`,
    'gao-modal': `<h4>GAO Historical Documentation</h4><p>The GAO's 2020 report (GAO-20-641R) was the first government audit to systematically track deaths, bankruptcies, and wait times in the disability backlog. The report confirmed 109,725 deaths over 11 years and 48,000+ bankruptcies — establishing that the current crisis is not new, but rather an escalation of a long-documented pattern.</p><div class="methodology"><span>SOURCE: GAO-20-641R (September 2020)</span></div>`,
    'gelber-modal': `<h4>Regression Kink Design</h4><p>The Social Security benefit formula has "bend points" where the replacement rate changes. Gelber et al. exploit this kink to identify the causal effect of DI income on mortality. Because the kink is a deterministic formula feature, it is uncorrelated with health — satisfying the exclusion restriction. The finding: $1,000 more in annual DI payments reduces mortality by 0.18-0.35 percentage points for lower-income beneficiaries.</p><div class="methodology"><span>SOURCE: Gelber, Moore, Pei & Strand, JPE 2023</span></div>`,
    'deshpande-modal': `<h4>Regression Discontinuity Design</h4><p>Deshpande & Mueller-Smith exploit the sharp age-18 cutoff in SSI eligibility to compare youth just above and below the threshold. Because age is effectively randomly assigned around the cutoff, any difference in outcomes is causal. The finding: SSI removal increases criminal charges by 20% and incarceration likelihood by 60% — concentrated in income-generating offenses (theft, fraud, prostitution).</p><div class="methodology"><span>SOURCE: Deshpande & Mueller-Smith, QJE 2022</span></div>`,
    'miller-modal': `<h4>Difference-in-Differences</h4><p>Miller et al. compare mortality in states that expanded Medicaid (treatment) vs. states that did not (control), before and after expansion. The finding: Medicaid expansion reduced mortality hazard by 21% for new enrollees, saving an estimated 27,400 lives between 2010-2022. This establishes that health insurance access is a causal determinant of mortality for low-income adults.</p><div class="methodology"><span>SOURCE: Miller, Johnson & Wherry, NBER 2025</span></div>`,
    'powell-modal': `<h4>Longitudinal Analysis (DAF)</h4><p>Powell et al. analyze the Social Security Disability Analysis File (DAF), which tracks all SSDI beneficiaries from 2000-2019. The finding: SSDI beneficiaries have 2-year mortality rates of 5.2-7.3% depending on condition, vs. ~1% in the general population. The 24-month Medicare waiting period exposes these high-mortality populations to preventable death from untreated conditions.</p><div class="methodology"><span>SOURCE: Powell et al., Health Affairs 2026</span></div>`,
    'workforce-modal': `<h4>Workforce Projection Methodology</h4><p>The Sanders Senate Report (2025) projects that a 50% workforce cut would increase wait times from 236 days to 412 days, with annual deaths rising from 30,000 to 67,000. The ~188.7 deaths-per-day figure is a linear projection: (67,000 - 30,000) / (412 - 236) = 210. However, the relationship is likely non-linear — early delays may have disproportionate mortality effects.</p><div class="methodology"><span>SOURCE: Sanders Senate Report (2025); projections should be labeled as such</span></div>`,
    'litigation-modal': `<h4>Litigation Utility Matrix</h4><p>This matrix scores each legal claim by the strength of supporting evidence (0-10 scale). The strongest claims are: (1) Right to Life (ICCPR Art. 6) supported by mortality data and commissioner testimony; (2) APA Systemic Delay supported by staffing crisis data and GAO reports; (3) Due Process (5th Amendment) supported by federal court remand rates. The weakest claims are Age Discrimination and Racial Discrimination, which lack direct causal evidence but have strong circumstantial support.</p><div class="methodology"><span>SCORING: Author's assessment based on evidence review</span></div>`
  };
  document.getElementById('modalBody').innerHTML = contents[contentId] || '<p>Detail view</p>';
  document.getElementById('modalOverlay').classList.add('show');
}

function closeModal(e) {
  if (!e || e.target === document.getElementById('modalOverlay')) {
    document.getElementById('modalOverlay').classList.remove('show');
  }
}

function showStageDetail(stage) {
  const details = {
    1: 'Individual becomes medically unable to work. May have concurrent substance use disorders, chronic conditions, or psychiatric diagnoses.',
    2: '62% of initial applications are denied in 2024. State agency examiners often decide based on incomplete medical records. The system is designed to deny first.',
    3: 'Without income replacement, claimant faces eviction, untreated conditions, food insecurity. SSA has lowest staffing levels in 50 years.',
    4: '82-84% of reconsiderations are denied. This stage adds 3-6 months of delay with minimal new evidence review.',
    5: '1-2+ years wait for hearing. Total time without income: 2+ years. During this period, claimants deplete savings, lose housing, and forgo medical care.',
    6: 'People experiencing homelessness have high rates of emergency department use, hospitalization, arrest, and incarceration. "Survival crimes" emerge as income replacement strategies.',
    7: 'SSI removal increases criminal charges by 20% and incarceration likelihood by 60%. Income-generating offenses (theft, burglary, fraud, prostitution) dominate.',
    8: 'Upon release, individual is homeless, without medical records, without income, with a criminal record. Reapplies for disability benefits. Cycle repeats.'
  };
  alert('STAGE ' + stage + ':\n\n' + details[stage]);
}

// ===================== CHART.JS CONFIG =====================
Chart.defaults.font.family = "'Inter', sans-serif";
Chart.defaults.color = '#94a3b8';
Chart.defaults.borderColor = '#1e293b';
const charts = {};

// Dashboard Chart
document.addEventListener('DOMContentLoaded', function() {
  const ctxDash = document.getElementById('dashboardChart').getContext('2d');
  charts.dashboard = new Chart(ctxDash, {
    type: 'bar',
    data: {
      labels: ['FY2019', 'FY2023', 'FY2024', 'Feb 2025'],
      datasets: [{
        label: 'Annual Deaths While Pending',
        data: [15000, 30000, 30000, 30000],
        backgroundColor: ['rgba(34,197,94,0.7)', 'rgba(239,68,68,0.7)', 'rgba(239,68,68,0.7)', 'rgba(239,68,68,0.7)'],
        borderColor: ['#22c55e', '#ef4444', '#ef4444', '#ef4444'],
        borderWidth: 2,
        yAxisID: 'y'
      }, {
        label: 'Avg Wait Time (Days)',
        data: [124, 217, 230, 236],
        type: 'line',
        borderColor: '#3b82f6',
        backgroundColor: 'rgba(59,130,246,0.1)',
        borderWidth: 3,
        pointRadius: 6,
        pointBackgroundColor: '#3b82f6',
        fill: true,
        yAxisID: 'y1'
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      interaction: { mode: 'index', intersect: false },
      plugins: {
        legend: { position: 'top' },
        tooltip: {
          backgroundColor: 'rgba(10,14,26,0.95)',
          titleFont: { size: 14, weight: 'bold' },
          bodyFont: { size: 13 },
          padding: 16,
          borderColor: '#1e293b',
          borderWidth: 1
        }
      },
      scales: {
        y: { type: 'linear', display: true, position: 'left', title: { display: true, text: 'Annual Deaths' }, grid: { color: '#1e293b' } },
        y1: { type: 'linear', display: true, position: 'right', title: { display: true, text: 'Days' }, grid: { drawOnChartArea: false } }
      }
    }
  });

  // Waterfall Chart
  const ctxWater = document.getElementById('waterfallChart').getContext('2d');
  charts.waterfall = new Chart(ctxWater, {
    type: 'bar',
    data: {
      labels: ['Initial App', 'Reconsideration', 'ALJ Hearing', 'Appeals Council', 'Federal Court'],
      datasets: [{
        label: 'Approval/Allow Rate',
        data: [37, 16, 50.5, 1, 1],
        backgroundColor: 'rgba(34,197,94,0.8)',
        borderColor: '#22c55e',
        borderWidth: 2
      }, {
        label: 'Denial Rate',
        data: [63, 84, 33, 80, 32],
        backgroundColor: 'rgba(239,68,68,0.8)',
        borderColor: '#ef4444',
        borderWidth: 2
      }, {
        label: 'Remand Rate',
        data: [0, 0, 0, 16, 65],
        backgroundColor: 'rgba(245,158,11,0.8)',
        borderColor: '#f59e0b',
        borderWidth: 2
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      plugins: { legend: { position: 'top' } },
      scales: { y: { beginAtZero: true, max: 100, title: { display: true, text: 'Percentage (%)' } } }
    }
  });

  // Volume Chart
  const ctxVol = document.getElementById('volumeChart').getContext('2d');
  charts.volume = new Chart(ctxVol, {
    type: 'bar',
    data: {
      labels: ['Initial App', 'Reconsideration', 'ALJ Hearing', 'Appeals Council', 'Federal Court'],
      datasets: [{
        label: 'Total Decisions',
        data: [2086855, 495700, 289492, 45641, 15753],
        backgroundColor: ['#3b82f6', '#8b5cf6', '#22c55e', '#f59e0b', '#ef4444'],
        borderWidth: 2,
        borderColor: '#0a0e1a'
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      plugins: { legend: { display: false } },
      scales: { y: { type: 'logarithmic', title: { display: true, text: 'Decisions (log scale)' } } }
    }
  });

  // Waits Chart
  const ctxWaits = document.getElementById('waitsChart').getContext('2d');
  charts.waits = new Chart(ctxWaits, {
    type: 'bar',
    data: {
      labels: ['FY2019', 'FY2023', 'FY2024', 'Feb 2025'],
      datasets: [{
        label: 'Annual Deaths',
        data: [15000, 30000, 30000, 30000],
        backgroundColor: ['rgba(34,197,94,0.7)', 'rgba(239,68,68,0.7)', 'rgba(239,68,68,0.7)', 'rgba(239,68,68,0.7)'],
        borderColor: ['#22c55e', '#ef4444', '#ef4444', '#ef4444'],
        borderWidth: 2,
        yAxisID: 'y'
      }, {
        label: 'Wait Time (Days)',
        data: [124, 217, 230, 236],
        type: 'line',
        borderColor: '#3b82f6',
        backgroundColor: 'rgba(59,130,246,0.1)',
        borderWidth: 3,
        pointRadius: 6,
        fill: true,
        yAxisID: 'y1'
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      interaction: { mode: 'index', intersect: false },
      scales: {
        y: { position: 'left', title: { display: true, text: 'Deaths' } },
        y1: { position: 'right', title: { display: true, text: 'Days' }, grid: { drawOnChartArea: false } }
      }
    }
  });

  // Remand Chart
  const ctxRemand = document.getElementById('remandChart').getContext('2d');
  charts.remand = new Chart(ctxRemand, {
    type: 'bar',
    data: {
      labels: ['FY2019', 'FY2020', 'FY2021', 'FY2022', 'FY2023', 'FY2024', 'FY2025 FYTD'],
      datasets: [{
        label: 'Allow',
        data: [2, 2, 1, 1, 1, 1, 1],
        backgroundColor: 'rgba(34,197,94,0.8)'
      }, {
        label: 'Deny',
        data: [41, 43, 40, 37, 38, 32, 34],
        backgroundColor: 'rgba(239,68,68,0.8)'
      }, {
        label: 'Remand',
        data: [50, 55, 59, 58, 61, 63, 65],
        backgroundColor: 'rgba(245,158,11,0.8)'
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      scales: { x: { stacked: true }, y: { stacked: true, max: 100 } },
      plugins: { tooltip: { callbacks: { label: function(c) { return c.dataset.label + ': ' + c.raw + '%'; } } } }
    }
  });

  // ALJ Chart
  const ctxAlj = document.getElementById('aljChart').getContext('2d');
  charts.alj = new Chart(ctxAlj, {
    type: 'line',
    data: {
      labels: ['2009', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018', '2019', '2020', '2021', '2022', '2023', '2024', '2025'],
      datasets: [{
        label: 'ALJ Allowance Rate',
        data: [63, 62, 58, 56, 52, 45, 44, 46, 48, 47, 46, 45, 46, 47, 45, 50.5, 50],
        borderColor: '#22c55e',
        backgroundColor: 'rgba(34,197,94,0.1)',
        borderWidth: 3,
        pointRadius: 4,
        fill: true,
        tension: 0.3
      }, {
        label: '50% Threshold',
        data: [50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50],
        borderColor: '#f59e0b',
        borderWidth: 2,
        borderDash: [5,5],
        pointRadius: 0,
        fill: false
      }, {
        label: '45% Low',
        data: [45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45],
        borderColor: '#ef4444',
        borderWidth: 2,
        borderDash: [5,5],
        pointRadius: 0,
        fill: false
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      scales: { y: { min: 30, max: 70, title: { display: true, text: 'Allowance Rate (%)' } } },
      plugins: { annotation: { annotations: { line1: { type: 'line', yMin: 50, yMax: 50, borderColor: '#f59e0b', borderWidth: 2, borderDash: [6, 6] } } } }
    }
  });

  // GAO Chart
  const ctxGao = document.getElementById('gaoChart').getContext('2d');
  charts.gao = new Chart(ctxGao, {
    type: 'bar',
    data: {
      labels: ['FY08', 'FY09', 'FY10', 'FY11', 'FY12', 'FY13', 'FY14', 'FY15', 'FY16', 'FY17', 'FY18', 'FY19'],
      datasets: [{
        label: 'Deaths',
        data: [8500, 9200, 9800, 10200, 10500, 10800, 11000, 11200, 10500, 9800, 9200, 8800],
        backgroundColor: 'rgba(239,68,68,0.7)',
        yAxisID: 'y'
      }, {
        label: 'Bankruptcies',
        data: [0, 0, 0, 0, 0, 0, 7200, 8200, 8800, 9200, 7800, 6800],
        backgroundColor: 'rgba(245,158,11,0.7)',
        yAxisID: 'y'
      }, {
        label: 'Cumulative Deaths',
        data: [8500, 17700, 27500, 37700, 48200, 59000, 70000, 81200, 91700, 101500, 110700, 119500],
        type: 'line',
        borderColor: '#3b82f6',
        borderWidth: 2,
        pointRadius: 3,
        yAxisID: 'y1'
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      scales: {
        y: { position: 'left', title: { display: true, text: 'Annual Count' } },
        y1: { position: 'right', title: { display: true, text: 'Cumulative Deaths' }, grid: { drawOnChartArea: false } }
      }
    }
  });

  // Gelber Chart
  const ctxGelber = document.getElementById('gelberChart').getContext('2d');
  charts.gelber = new Chart(ctxGelber, {
    type: 'bar',
    data: {
      labels: ['Lower Bend Point ($1K more DI)', 'Upper Bend Point ($1K more DI)'],
      datasets: [{
        label: 'Mortality Reduction (pp)',
        data: [0.265, 0.05],
        backgroundColor: ['rgba(34,197,94,0.8)', 'rgba(148,163,184,0.3)'],
        borderColor: ['#22c55e', '#94a3b8'],
        borderWidth: 2
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      plugins: { legend: { display: false } },
      scales: { y: { title: { display: true, text: 'Mortality Rate Reduction (percentage points)' } } }
    }
  });

  // Deshpande Chart
  const ctxDesh = document.getElementById('deshpandeChart').getContext('2d');
  charts.deshpande = new Chart(ctxDesh, {
    type: 'bar',
    data: {
      labels: ['Age 18', 'Age 19', 'Age 20', 'Age 21', 'Age 22', 'Age 23-27', 'Age 28+'],
      datasets: [{
        label: 'Income-Generating Charges',
        data: [0, 15, 25, 30, 35, 40, 45],
        backgroundColor: 'rgba(239,68,68,0.8)'
      }, {
        label: 'Violent Charges',
        data: [0, 2, 3, 4, 5, 6, 7],
        backgroundColor: 'rgba(245,158,11,0.8)'
      }, {
        label: 'Drug Charges',
        data: [0, 5, 8, 10, 12, 14, 15],
        backgroundColor: 'rgba(168,85,247,0.8)'
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      scales: { y: { title: { display: true, text: 'Charge Increase (%)' } } }
    }
  });

  // Miller Chart
  const ctxMiller = document.getElementById('millerChart').getContext('2d');
  charts.miller = new Chart(ctxMiller, {
    type: 'doughnut',
    data: {
      labels: ['Deaths Avoided (27,400)', 'Other Mortality'],
      datasets: [{
        data: [27400, 100000],
        backgroundColor: ['rgba(34,197,94,0.8)', 'rgba(30,41,59,0.5)'],
        borderColor: ['#22c55e', '#1e293b'],
        borderWidth: 2
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      plugins: {
        legend: { position: 'bottom' },
        tooltip: { callbacks: { label: function(c) { return c.label + ': ' + c.raw.toLocaleString(); } } }
      }
    }
  });

  // Powell Chart
  const ctxPowell = document.getElementById('powellChart').getContext('2d');
  charts.powell = new Chart(ctxPowell, {
    type: 'bar',
    data: {
      labels: ['General Pop', 'Mental', 'Musculoskeletal', 'All SSDI', 'Digestive', 'Respiratory', 'Circulatory', 'Nervous', 'Cancer', 'HIV/AIDS', 'Blood'],
      datasets: [{
        label: '2-Year Mortality (%)',
        data: [1.0, 4.8, 5.2, 5.2, 5.8, 6.2, 6.5, 6.8, 7.3, 8.1, 8.4],
        backgroundColor: ['#22c55e', '#fca5a5', '#f87171', '#ef4444', '#dc2626', '#dc2626', '#dc2626', '#b91c1c', '#b91c1c', '#991b1b', '#7f1d1d'],
        borderWidth: 2,
        borderColor: '#0a0e1a'
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      indexAxis: 'y',
      plugins: { legend: { display: false } },
      scales: { x: { title: { display: true, text: '2-Year Mortality Rate (%)' } } }
    }
  });

  // Workforce Chart
  const ctxWork = document.getElementById('workforceChart').getContext('2d');
  charts.workforce = new Chart(ctxWork, {
    type: 'bar',
    data: {
      labels: ['Current (Feb 2025)', 'With 50% Workforce Cut', 'With Full Funding'],
      datasets: [{
        label: 'Annual Deaths',
        data: [30000, 67000, 5000],
        backgroundColor: ['rgba(245,158,11,0.8)', 'rgba(239,68,68,0.8)', 'rgba(34,197,94,0.8)'],
        borderColor: ['#f59e0b', '#ef4444', '#22c55e'],
        borderWidth: 2
      }]
    },
    options: {
      responsive: true,
      maintainAspectRatio: false,
      plugins: { legend: { display: false } },
      scales: { y: { title: { display: true, text: 'Annual Deaths' } } }
    }
  });

  // Litigation Matrix
  const matrixData = [
    ['Right to Life (ICCPR)', 10, 9, 6, 9, 10, 8, 7],
    ['Cruel Treatment (CAT)', 8, 9, 5, 7, 7, 7, 8],
    ['Disability Rights (CRPD)', 9, 8, 7, 8, 8, 9, 6],
    ['Racial Discrimination', 6, 7, 5, 6, 5, 6, 5],
    ['Due Process (5th)', 8, 7, 10, 9, 8, 7, 6],
    ['APA Systemic Delay', 9, 6, 9, 8, 9, 10, 5],
    ['Eighth Amendment', 7, 8, 4, 5, 6, 6, 7],
    ['Age Discrimination', 8, 6, 5, 7, 6, 7, 4]
  ];
  const matrixContainer = document.getElementById('litigationMatrix');
  matrixData.forEach((row, i) => {
    row.forEach((val, j) => {
      const cell = document.createElement('div');
      cell.className = 'heatmap-cell';
      cell.textContent = val;
      const intensity = val / 10;
      cell.style.backgroundColor = `rgba(239, 68, 68, ${intensity * 0.8})`;
      cell.style.color = val >= 6 ? 'white' : '#1e293b';
      if (j === 0) {
        cell.style.textAlign = 'left';
        cell.style.fontSize = '11px';
        cell.style.fontWeight = '600';
        cell.style.backgroundColor = 'transparent';
        cell.style.color = 'var(--text-secondary)';
        cell.textContent = val;
      }
      matrixContainer.appendChild(cell);
    });
  });

  // ===================== KNOWLEDGE GRAPHS =====================

  // Citation Network
  const citationNodes = new vis.DataSet([
    { id: 1, label: 'Gelber et al.
(JPE 2023)', group: 'study', color: '#3b82f6' },
    { id: 2, label: 'Black et al.
(JPubE 2024)', group: 'study', color: '#3b82f6' },
    { id: 3, label: 'Deshpande &
Mueller-Smith
(QJE 2022)', group: 'study', color: '#3b82f6' },
    { id: 4, label: 'Miller et al.
(NBER 2025)', group: 'study', color: '#3b82f6' },
    { id: 5, label: 'Powell et al.
(Health Affairs 2026)', group: 'study', color: '#3b82f6' },
    { id: 10, label: 'Regression
Kink', group: 'method', color: '#22c55e' },
    { id: 11, label: 'IV (Judge
Assignment)', group: 'method', color: '#22c55e' },
    { id: 12, label: 'Regression
Discontinuity', group: 'method', color: '#22c55e' },
    { id: 13, label: 'Diff-in-
Diff', group: 'method', color: '#22c55e' },
    { id: 14, label: 'Longitudinal
(DAF)', group: 'method', color: '#22c55e' },
    { id: 20, label: 'Income →
Mortality', group: 'finding', color: '#ef4444' },
    { id: 21, label: 'Benefit Removal →
Criminalization', group: 'finding', color: '#ef4444' },
    { id: 22, label: 'Medicaid →
Mortality ↓', group: 'finding', color: '#ef4444' },
    { id: 23, label: 'Medicare Gap →
Preventable Death', group: 'finding', color: '#ef4444' }
  ]);
  const citationEdges = new vis.DataSet([
    { from: 1, to: 10 }, { from: 1, to: 20 },
    { from: 2, to: 11 }, { from: 2, to: 20 },
    { from: 3, to: 12 }, { from: 3, to: 21 },
    { from: 4, to: 13 }, { from: 4, to: 22 },
    { from: 5, to: 14 }, { from: 5, to: 23 },
    { from: 10, to: 20 }, { from: 11, to: 20 },
    { from: 12, to: 21 }, { from: 13, to: 22 }, { from: 14, to: 23 }
  ]);
  new vis.Network(document.getElementById('citationGraph'), { nodes: citationNodes, edges: citationEdges }, {
    nodes: { shape: 'box', font: { size: 12, color: '#e2e8f0' }, borderWidth: 2, shadow: true },
    edges: { width: 2, color: { color: '#475569', highlight: '#3b82f6' }, smooth: { type: 'continuous' } },
    physics: { stabilization: false },
    interaction: { hover: true, tooltipDelay: 200 }
  });

  // Claims Graph
  const claimNodes = new vis.DataSet([
    { id: 1, label: 'Right to Life
(ICCPR Art. 6)', group: 'claim', color: '#ef4444' },
    { id: 2, label: 'Cruel Treatment
(CAT Art. 16)', group: 'claim', color: '#ef4444' },
    { id: 3, label: 'Disability Rights
(CRPD)', group: 'claim', color: '#ef4444' },
    { id: 4, label: 'Due Process
(5th Amendment)', group: 'claim', color: '#ef4444' },
    { id: 10, label: '30,000 Deaths
(O'Malley)', group: 'evidence', color: '#22c55e' },
    { id: 11, label: 'SSI Removal →
+60% Incarceration', group: 'evidence', color: '#22c55e' },
    { id: 12, label: '230-Day Wait
(SSA Data)', group: 'evidence', color: '#22c55e' },
    { id: 13, label: '63% Remand
Rate', group: 'evidence', color: '#22c55e' },
    { id: 20, label: 'ICCPR
(1966)', group: 'treaty', color: '#3b82f6' },
    { id: 21, label: 'CAT
(1984)', group: 'treaty', color: '#3b82f6' },
    { id: 22, label: 'CRPD
(2006)', group: 'treaty', color: '#3b82f6' },
    { id: 23, label: 'ICERD
(1965)', group: 'treaty', color: '#3b82f6' }
  ]);
  const claimEdges = new vis.DataSet([
    { from: 1, to: 10 }, { from: 1, to: 20 },
    { from: 2, to: 11 }, { from: 2, to: 21 },
    { from: 3, to: 12 }, { from: 3, to: 22 },
    { from: 4, to: 13 }, { from: 4, to: 20 }
  ]);
  new vis.Network(document.getElementById('claimsGraph'), { nodes: claimNodes, edges: claimEdges }, {
    nodes: { shape: 'box', font: { size: 12, color: '#e2e8f0' }, borderWidth: 2, shadow: true },
    edges: { width: 2, color: { color: '#475569' }, smooth: { type: 'continuous' } },
    layout: { hierarchical: { direction: 'LR', sortMethod: 'directed' } },
    physics: { enabled: false }
  });

  // Pathway Graph
  const pathNodes = new vis.DataSet([
    { id: 1, label: 'Disability
Onset', level: 0 },
    { id: 2, label: 'Initial
Denial (62%)', level: 1 },
    { id: 3, label: 'Economic
Destabilization', level: 2 },
    { id: 4, label: 'Reconsideration
Denial (84%)', level: 3 },
    { id: 5, label: 'ALJ Wait
(1-2+ yrs)', level: 4 },
    { id: 6, label: 'Homelessness
/ Police Contact', level: 5 },
    { id: 7, label: 'Criminalization
(+60% incarceration)', level: 6 },
    { id: 8, label: 'Reentry /
Reapplication', level: 7 },
    { id: 9, label: 'Mortality
(30,000/yr)', level: 3, color: '#ef4444' }
  ]);
  const pathEdges = new vis.DataSet([
    { from: 1, to: 2, arrows: 'to' },
    { from: 2, to: 3, arrows: 'to' },
    { from: 3, to: 4, arrows: 'to' },
    { from: 4, to: 5, arrows: 'to' },
    { from: 5, to: 6, arrows: 'to' },
    { from: 6, to: 7, arrows: 'to' },
    { from: 7, to: 8, arrows: 'to' },
    { from: 8, to: 2, arrows: 'to', color: '#ef4444', dashes: true },
    { from: 3, to: 9, arrows: 'to', color: '#ef4444' },
    { from: 5, to: 9, arrows: 'to', color: '#ef4444' }
  ]);
  new vis.Network(document.getElementById('pathwayGraph'), { nodes: pathNodes, edges: pathEdges }, {
    nodes: { shape: 'box', font: { size: 11, color: '#e2e8f0' }, color: '#1e293b', borderWidth: 2, borderWidthSelected: 3 },
    edges: { width: 2, color: '#475569', smooth: { type: 'cubicBezier' } },
    layout: { hierarchical: { direction: 'LR', levelSeparation: 120, nodeSpacing: 100 } },
    physics: { enabled: false }
  });

  // Bottleneck Graph
  const botNodes = new vis.DataSet([
    { id: 1, label: 'Applicant
Files Claim', group: 'start' },
    { id: 2, label: 'DDS Initial
Review', group: 'process' },
    { id: 3, label: '62% Denied
(BOTTLENECK)', group: 'bottleneck', color: '#ef4444' },
    { id: 4, label: 'Reconsideration
Review', group: 'process' },
    { id: 5, label: '84% Denied
(BOTTLENECK)', group: 'bottleneck', color: '#ef4444' },
    { id: 6, label: 'Hearing
Request', group: 'process' },
    { id: 7, label: '1-2 Year
Wait (BOTTLENECK)', group: 'bottleneck', color: '#ef4444' },
    { id: 8, label: 'ALJ
Hearing', group: 'process' },
    { id: 9, label: '51%
Approved', group: 'end', color: '#22c55e' },
    { id: 10, label: 'Federal
Court', group: 'process' },
    { id: 11, label: '63%
Remanded', group: 'bottleneck', color: '#ef4444' }
  ]);
  const botEdges = new vis.DataSet([
    { from: 1, to: 2 }, { from: 2, to: 3 }, { from: 3, to: 4 },
    { from: 4, to: 5 }, { from: 5, to: 6 }, { from: 6, to: 7 },
    { from: 7, to: 8 }, { from: 8, to: 9 }, { from: 8, to: 10 }, { from: 10, to: 11 }
  ]);
  new vis.Network(document.getElementById('bottleneckGraph'), { nodes: botNodes, edges: botEdges }, {
    nodes: { shape: 'box', font: { size: 11, color: '#e2e8f0' }, borderWidth: 2, shadow: true },
    edges: { width: 2, color: '#475569', arrows: { to: { enabled: true, scaleFactor: 1 } }, smooth: { type: 'cubicBezier' } },
    layout: { hierarchical: { direction: 'LR', levelSeparation: 100 } },
    physics: { enabled: false }
  });

});
</script>
</body>
</html>