File size: 49,720 Bytes
c37e27a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161e046
c37e27a
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Infographic: The Case for Genetically-Informed Disability Adjudication</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Inter', sans-serif;
            background-color: #f0f4f8;
        }
        .brand-dark { color: #073B4C; }
        .brand-blue { color: #118AB2; }
        .brand-green { color: #06D6A0; }
        .brand-yellow { color: #FFD166; }
        .brand-red { color: #EF476F; }
        .bg-brand-dark { background-color: #073B4C; }
        .bg-brand-blue { background-color: #118AB2; }
        .bg-brand-green { background-color: #06D6A0; }
        .bg-brand-yellow { background-color: #FFD166; }
        .bg-brand-red { background-color: #EF476F; }

        .chart-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            height: 350px;
            max-height: 400px;
        }
        @media (min-width: 768px) {
            .chart-container {
                height: 400px;
                max-height: 500px;
            }
        }
        .stat-card {
            background-color: white;
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            text-align: center;
            border-left: 5px solid;
        }
        .gene-card {
            background-color: white;
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            height: 100%;
        }
        .model-card {
            background-color: #ffffff;
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        }
        .gemini-feature-card {
            background-color: white;
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .gemini-button {
            background-color: #073B4C;
            color: white;
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            transition: background-color 0.3s;
        }
        .gemini-button:hover {
            background-color: #118AB2;
        }
        .loader {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #118AB2;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
            margin: 1rem auto;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
</head>
<body class="bg-gray-50 text-gray-800">

    <div class="container mx-auto p-4 md:p-8 max-w-7xl">

        <header class="text-center mb-12">
            <h1 class="text-4xl md:text-5xl font-black brand-dark mb-2">An Unjust Process: The Case for Modernizing Disability Adjudication</h1>
            <p class="text-lg md:text-xl text-gray-600 max-w-3xl mx-auto">Visualizing the systemic hurdles and scientific evidence in Case No. 25-1224, McLaughlin v. Commissioner of Social Security.</p>
        </header>

        <main class="space-y-16">
            
            <section id="national-impact">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">The National Impact</h2>
                    <p class="mt-2 text-gray-600 max-w-2xl mx-auto">This case highlights a systemic issue that extends far beyond a single claimant, affecting a significant portion of the U.S. population with neurodevelopmental disorders.</p>
                </div>
                <div class="bg-white rounded-lg shadow-xl p-8 text-center">
                    <p class="text-7xl md:text-8xl font-black brand-blue">16.8 Million</p>
                    <p class="text-2xl font-bold brand-dark mt-2">Americans with ADHD Potentially Affected</p>
                    <p class="text-md text-gray-600 mt-4 max-w-3xl mx-auto">Approximately 5% of the U.S. population has ADHD. The SSA's failure to incorporate modern genetic and neurobiological evidence into its disability assessments means millions of Americans with legitimate, scientifically-validated impairments face an unjust barrier to receiving benefits. Between 2010 and 2024, over <span class="font-bold brand-dark">1.2 million</span> similarly situated individuals were denied SSDI or SSI benefits under these flawed standards.</p>
                </div>
                <div class="mt-12">
                    <h3 class="text-2xl font-bold brand-dark text-center mb-6">The Lifelong Consequences of Unaccommodated ADHD</h3>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div class="stat-card border-brand-yellow">
                            <p class="text-5xl font-black brand-yellow">3-5x</p>
                            <p class="text-lg font-semibold brand-dark mt-2">Higher Incarceration Rate</p>
                            <p class="text-sm text-gray-500">Adults with ADHD are significantly overrepresented in the prison population, often due to challenges with impulse control.</p>
                        </div>
                        <div class="stat-card border-brand-red">
                            <p class="text-5xl font-black brand-red">50%</p>
                            <p class="text-lg font-semibold brand-dark mt-2">Less Likely to Graduate College</p>
                            <p class="text-sm text-gray-500">Challenges with executive function create significant barriers to completing higher education without proper support.</p>
                        </div>
                        <div class="stat-card border-brand-blue">
                            <p class="text-5xl font-black brand-blue">Higher</p>
                            <p class="text-lg font-semibold brand-dark mt-2">Unemployment & Lower Income</p>
                            <p class="text-sm text-gray-500">Difficulties with workplace demands often lead to job instability and reduced lifetime earnings.</p>
                        </div>
                    </div>
                </div>
            </section>

            <hr class="border-gray-300">

            <section id="denial-rates">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">A Systemic Hurdle: The Funnel of Denial</h2>
                    <p class="mt-2 text-gray-600 max-w-2xl mx-auto">The Social Security disability process is marked by overwhelmingly high denial rates at early stages, creating what some call a "postcode lottery" where outcomes depend more on geography and adjudicator bias than on medical evidence.</p>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-12">
                    <div class="stat-card border-brand-red">
                        <p class="text-6xl font-black brand-red">62%</p>
                        <p class="text-lg font-semibold brand-dark mt-2">Initial Denial Rate</p>
                        <p class="text-sm text-gray-500">The majority of claims are denied at the first step.</p>
                    </div>
                    <div class="stat-card border-brand-yellow">
                        <p class="text-6xl font-black brand-yellow">84%</p>
                        <p class="text-lg font-semibold brand-dark mt-2">Reconsideration Denial Rate</p>
                        <p class="text-sm text-gray-500">The second review offers little hope for reversal.</p>
                    </div>
                    <div class="stat-card border-brand-green">
                        <p class="text-6xl font-black brand-green">~51%</p>
                        <p class="text-lg font-semibold brand-dark mt-2">ALJ Hearing Approval Rate</p>
                        <p class="text-sm text-gray-500">A significant jump in approvals suggests initial errors.</p>
                    </div>
                    <div class="stat-card border-brand-blue">
                        <p class="text-6xl font-black brand-blue">63%</p>
                        <p class="text-lg font-semibold brand-dark mt-2">Federal Court Remand Rate</p>
                        <p class="text-sm text-gray-500">Courts frequently find legal errors requiring review.</p>
                    </div>
                </div>
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h3 class="text-xl font-bold text-center brand-dark mb-4">Disability Adjudication Outcomes by Stage</h3>
                    <div class="chart-container h-96 md:h-[500px]">
                        <canvas id="denialRatesChart"></canvas>
                    </div>
                    <p class="text-sm text-gray-500 mt-4 text-center">This chart illustrates the stark contrast in outcomes as a claim progresses. The high initial denial rates are often reversed at later stages, pointing to systemic flaws in the SSA's early evaluation processes which fail to properly weigh complex medical evidence.</p>
                </div>
            </section>
            
            <hr class="border-gray-300">

            <section id="genetics">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">The Genetic Blueprint of Cognitive Impairment</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">Modern science shows that cognitive function is heavily influenced by genetic factors. The petitioner's case is supported by objective genetic evidence showing variants in key neurotransmitter pathways. The SSA's current framework largely ignores this type of evidence.</p>
                </div>

                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 items-stretch">
                    <div class="gene-card">
                        <p class="text-xl font-bold brand-red">COMT (rs4680)</p>
                        <p class="font-semibold text-gray-700">Function: Dopamine Clearance</p>
                        <p class="text-gray-600"><span class="font-bold">Val/Val Genotype:</span> Leads to ~4x higher enzyme activity, resulting in lower dopamine levels in the prefrontal cortex.</p>
                        <p class="text-gray-600"><span class="font-bold">Impact:</span> 🧠 Reduced executive function, cognitive flexibility, and stress tolerance.</p>
                    </div>
                    <div class="gene-card">
                        <p class="text-xl font-bold brand-yellow">DRD2/ANKK1 (rs1800497)</p>
                        <p class="font-semibold text-gray-700">Function: D2 Receptor Density</p>
                        <p class="text-gray-600"><span class="font-bold">A1/T Allele:</span> Associated with significantly reduced D2 dopamine receptor density in the striatum.</p>
                        <p class="text-gray-600"><span class="font-bold">Impact:</span> 📉 Impaired psychomotor performance and reduced cognitive stamina.</p>
                    </div>
                    <div class="gene-card">
                        <p class="text-xl font-bold brand-green">DRD4 (7-Repeat Allele)</p>
                        <p class="font-semibold text-gray-700">Function: D4 Receptor Sensitivity</p>
                        <p class="text-gray-600"><span class="font-bold">7R Variant:</span> A prominent risk allele for ADHD, producing a blunted response to dopamine.</p>
                        <p class="text-gray-600"><span class="font-bold">Impact:</span> 🎯 Difficulties with sustained attention, impulse control, and self-regulation.</p>
                    </div>
                     <div class="gene-card">
                        <p class="text-xl font-bold brand-blue">DAT1/SLC6A3</p>
                        <p class="font-semibold text-gray-700">Function: Dopamine Reuptake</p>
                        <p class="text-gray-600"><span class="font-bold">10R Allele:</span> Associated with faster dopamine removal from synapses, leading to a hypodopaminergic state.</p>
                        <p class="text-gray-600"><span class="font-bold">Impact:</span> ⚙️ Impaired cognitive flexibility and hypoactivation in prefrontal brain regions.</p>
                    </div>
                </div>
            </section>
            
            <hr class="border-gray-300">
            
            <section id="neuroimaging">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">The Neurobiological Signature of ADHD</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">Neuroimaging makes the "invisible" aspects of ADHD visible. It reveals consistent, measurable differences in brain structure and function, providing objective evidence that links genetic predispositions to real-world impairments. The petitioner's own MRI scans show reduced cortical thickness in the prefrontal cortex.</p>
                </div>
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                    <div class="bg-white rounded-lg shadow-md p-6">
                        <h3 class="text-xl font-bold text-center brand-dark mb-4">Neuroanatomical Differences in ADHD</h3>
                        <div class="chart-container h-96">
                            <canvas id="neuroanatomyChart"></canvas>
                        </div>
                        <p class="text-sm text-gray-500 mt-4 text-center">This chart shows relative differences in key brain metrics for individuals with ADHD compared to neurotypical controls. Notably, ADHD is associated with lower overall cortical volume and surface area, and reduced prefrontal gyrification (cortical folding), especially in carriers of the DRD4 7R allele.</p>
                    </div>
                    <div class="bg-white rounded-lg shadow-md p-6 flex flex-col justify-center items-center">
                         <h3 class="text-xl font-bold text-center brand-dark mb-4">Key Brain Regions Implicated in ADHD</h3>
                         <div class="relative w-64 h-64">
                            <div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-56 h-64 bg-gray-200 rounded-[50%_50%_45%_55%/60%_70%_30%_40%]"></div>
                            <div class="absolute top-8 left-10 w-2 h-2 bg-brand-red rounded-full"></div>
                            <p class="absolute top-0 left-12 text-sm brand-dark font-semibold">Prefrontal Cortex <span class="block font-normal text-xs text-gray-500">(Executive Function)</span></p>
                            <div class="absolute top-28 left-24 w-2 h-2 bg-brand-yellow rounded-full"></div>
                             <p class="absolute top-32 left-28 text-sm brand-dark font-semibold">Basal Ganglia <span class="block font-normal text-xs text-gray-500">(Inhibitory Control)</span></p>
                            <div class="absolute bottom-12 left-20 w-2 h-2 bg-brand-green rounded-full"></div>
                            <p class="absolute bottom-4 left-24 text-sm brand-dark font-semibold">Cerebellum <span class="block font-normal text-xs text-gray-500">(Cognitive Regulation)</span></p>
                         </div>
                         <p class="text-sm text-gray-500 mt-4 text-center">Functional MRI (fMRI) studies reveal aberrant activation patterns in neural networks governing attention, working memory, and cognitive control in individuals with ADHD.</p>
                    </div>
                </div>
            </section>
            
            <hr class="border-gray-300">
            
            <section id="neurodiversity-spectrum">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">The Spectrum of Neurodiversity & Comorbidity</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">Neurodevelopmental disorders are not isolated conditions. They exist on a spectrum and frequently co-occur, creating complex clinical presentations. Approximately 50% of children with a developmental disability have at least one comorbid condition, complicating diagnosis and treatment.</p>
                </div>
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                    <div class="bg-white rounded-lg shadow-md p-6">
                        <h3 class="text-xl font-bold text-center brand-dark mb-4">Prevalence of Developmental Issues (Ages 3-5)</h3>
                        <div class="chart-container h-96">
                            <canvas id="prevalenceChart"></canvas>
                        </div>
                    </div>
                     <div class="bg-white rounded-lg shadow-md p-6 flex flex-col justify-center items-center">
                        <h3 class="text-xl font-bold text-center brand-dark mb-4">High Comorbidity Between Disorders</h3>
                        <div class="relative w-72 h-48 flex justify-center items-center">
                            <div class="absolute w-36 h-36 bg-brand-red/50 rounded-full top-0 left-8"></div>
                            <div class="absolute w-36 h-36 bg-brand-green/50 rounded-full top-0 right-8"></div>
                            <div class="absolute w-36 h-36 bg-brand-blue/50 rounded-full bottom-0"></div>
                            <p class="absolute top-14 left-12 font-bold text-white text-shadow">ADHD</p>
                            <p class="absolute top-14 right-12 font-bold text-white text-shadow">ASD</p>
                            <p class="absolute bottom-14 font-bold text-white text-shadow">DCD</p>
                        </div>
                        <p class="text-sm text-gray-500 mt-4 text-center">ADHD, Autism Spectrum Disorder (ASD), and Developmental Coordination Disorder (DCD) show significant overlap. When these conditions co-occur, individuals often experience more severe outcomes and poorer psychosocial functioning.</p>
                    </div>
                </div>
            </section>
            
            <hr class="border-gray-300">

            <section id="functional-impact">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">Synergistic Effects on Functional Capacity</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">These genetic variants and neurobiological differences do not act in isolation. Their combined effects create a complex profile that significantly impairs the functional capacities required for sustained work, such as attention, executive control, and working memory.</p>
                </div>
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h3 class="text-xl font-bold text-center brand-dark mb-4">Profile of Genetically-Mediated Cognitive Deficits</h3>
                    <div class="chart-container">
                        <canvas id="cognitiveProfileChart"></canvas>
                    </div>
                    <p class="text-sm text-gray-500 mt-4 text-center">This radar chart compares a typical neurocognitive profile (in green) with the petitioner's estimated functional capacity (in red), based on the cumulative impact of the identified genetic variants. The profile highlights significant deficits across key executive function domains.</p>
                </div>
            </section>

            <hr class="border-gray-300">
            
            <section id="gemini-features">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">Explore the Data with AI</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">Use the Gemini API to dynamically generate summaries and practical strategies based on the case data, making the information more accessible and actionable.</p>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
                    <div class="gemini-feature-card">
                        <h3 class="text-xl font-bold brand-dark mb-4">✨ AI-Powered Evidence Summarizer</h3>
                        <p class="text-gray-600 mb-4">Select a gene to generate a concise summary of its functional impact and relevance to this case.</p>
                        <div class="flex flex-col sm:flex-row gap-4">
                            <select id="gene-selector" class="flex-grow p-2 border border-gray-300 rounded-md">
                                <option value="COMT">COMT (rs4680)</option>
                                <option value="DRD2">DRD2/ANKK1 (rs1800497)</option>
                                <option value="DRD4">DRD4 (7-Repeat Allele)</option>
                                <option value="DAT1">DAT1/SLC6A3</option>
                            </select>
                            <button id="summarize-btn" class="gemini-button">Generate AI Summary</button>
                        </div>
                        <div id="summary-loader" class="hidden loader"></div>
                        <div id="summary-output" class="mt-4 p-4 bg-gray-100 rounded-md text-gray-700"></div>
                    </div>
                    <div class="gemini-feature-card">
                        <h3 class="text-xl font-bold brand-dark mb-4">✨ AI-Powered Accommodation Suggester</h3>
                        <p class="text-gray-600 mb-4">Describe a challenge to get AI-generated suggestions for reasonable accommodations.</p>
                        <div class="flex flex-col sm:flex-row gap-4">
                            <input type="text" id="challenge-input" placeholder="e.g., Difficulty meeting deadlines" class="flex-grow p-2 border border-gray-300 rounded-md">
                            <button id="accommodate-btn" class="gemini-button">Suggest Accommodations</button>
                        </div>
                        <div id="accommodation-loader" class="hidden loader"></div>
                        <div id="accommodation-output" class="mt-4 p-4 bg-gray-100 rounded-md text-gray-700"></div>
                    </div>
                </div>
            </section>

            <hr class="border-gray-300">
            
            <section id="legal-barriers">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">Legal Protections vs. Practical Barriers</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">While laws like the Americans with Disabilities Act (ADA) guarantee rights, the burden of enforcement often falls on the individual with a disability, creating a significant gap between legal promise and lived reality.</p>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-8 items-start">
                    <div class="bg-white p-6 rounded-lg shadow-md">
                        <h3 class="text-xl font-bold brand-green mb-3 text-center">The Promise of the Law</h3>
                        <div class="space-y-4">
                            <div class="p-4 bg-green-50 rounded-lg border-l-4 border-brand-green">
                                <p class="font-bold brand-dark">Rehabilitation Act (1973)</p>
                                <p class="text-sm text-gray-600">Mandates equal access in all federally funded programs.</p>
                            </div>
                            <div class="text-2xl text-center text-gray-400"></div>
                            <div class="p-4 bg-green-50 rounded-lg border-l-4 border-brand-green">
                                <p class="font-bold brand-dark">Americans with Disabilities Act (1990)</p>
                                <p class="text-sm text-gray-600">Prohibits discrimination by public entities and mandates accommodations.</p>
                            </div>
                        </div>
                    </div>
                    <div class="bg-white p-6 rounded-lg shadow-md">
                        <h3 class="text-xl font-bold brand-red mb-3 text-center">The Reality for Claimants</h3>
                        <div class="space-y-4">
                            <div class="p-4 bg-red-50 rounded-lg border-l-4 border-brand-red">
                                <p class="font-bold brand-dark">Individual Experiences Discrimination</p>
                                <p class="text-sm text-gray-600">Denied benefits or accommodations by a government agency.</p>
                            </div>
                            <div class="text-2xl text-center text-gray-400"></div>
                            <div class="p-4 bg-red-50 rounded-lg border-l-4 border-brand-red">
                                <p class="font-bold brand-dark">Burden of Proof Shifts</p>
                                <p class="text-sm text-gray-600">Claimant must navigate complex systems to file a complaint and prove the violation.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </section>

            <hr class="border-gray-300">

            <section id="disability-models">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">The Legal-Scientific Divide: Two Models of Disability</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">A core conflict exists between outdated legal frameworks and modern scientific understanding. The SSA's "Medical Model" focuses narrowly on impairment, while the UN CRPD's "Human Rights Model" sees disability as an interaction between impairment and societal barriers, demanding a more holistic, evidence-based approach.</p>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-12">
                    <div class="model-card border-l-4 border-brand-red">
                        <h3 class="text-2xl font-bold brand-dark mb-3">📄 Medical Model (SSA Approach)</h3>
                        <ul class="space-y-2 text-gray-700 list-disc list-inside">
                            <li>Focuses on individual impairment and diagnosis.</li>
                            <li>Relies on standardized, often outdated, criteria ("grid rules").</li>
                            <li>Tends to disregard novel scientific evidence like genomics.</li>
                            <li>Results in a rigid, "one-size-fits-all" assessment.</li>
                        </ul>
                    </div>
                    <div class="model-card border-l-4 border-brand-green">
                        <h3 class="text-2xl font-bold brand-dark mb-3">🌐 Human Rights Model (UN CRPD)</h3>
                        <ul class="space-y-2 text-gray-700 list-disc list-inside">
                            <li>Defines disability as impairment + societal barriers.</li>
                            <li>Advocates for individualized, evidence-based assessments.</li>
                            <li>Incorporates objective data like neuroanatomy and genetics.</li>
                            <li>Demands participation of disabled individuals in system design.</li>
                        </ul>
                    </div>
                </div>
                 <div class="bg-white rounded-lg shadow-md p-6">
                    <h3 class="text-xl font-bold text-center brand-dark mb-4">Comparing Assessment Frameworks</h3>
                    <div class="chart-container h-80">
                        <canvas id="disabilityModelsChart"></canvas>
                    </div>
                     <p class="text-sm text-gray-500 mt-4 text-center">This chart contrasts the two models. The Human Rights Model scores higher on using objective, scientific evidence and providing individualized assessments, highlighting the shortcomings of the current medical-model approach used in disability determinations.</p>
                </div>
            </section>

            <hr class="border-gray-300">
            
            <section id="relief-request">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">Legal Grounds & The $5 Billion Request for Relief</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">The lawsuit seeks substantial relief based on violations of the ADA, Rehabilitation Act, and the Fifth Amendment. The requested damages aim to compensate affected individuals and fund systemic reforms to the SSA's adjudication process.</p>
                </div>
                <div class="bg-white rounded-lg shadow-md p-6">
                    <h3 class="text-xl font-bold text-center brand-dark mb-4">Breakdown of Requested $5 Billion Relief</h3>
                    <div class="chart-container h-96">
                        <canvas id="reliefChart"></canvas>
                    </div>
                </div>
            </section>

            <hr class="border-gray-300">

            <section id="hedonic-damages">
                <div class="text-center mb-8">
                    <h2 class="text-3xl font-bold brand-dark">Quantifying the Loss: Hedonic Damages</h2>
                    <p class="mt-2 text-gray-600 max-w-3xl mx-auto">Hedonic damages aim to compensate for the intangible loss of life enjoyment. In this case, the damages are calculated based on the severe, lifelong impact of the petitioner's impairments on core life domains, with a total base valuation of $59.4 million.</p>
                </div>
                <div class="grid grid-cols-1 md:grid-cols-2 gap-8 items-center">
                    <div class="bg-white rounded-lg shadow-md p-6">
                        <h3 class="text-xl font-bold text-center brand-dark mb-4">Contribution to Total Hedonic Loss</h3>
                        <div class="chart-container h-80 md:h-96">
                            <canvas id="hedonicDamagesChart"></canvas>
                        </div>
                    </div>
                    <div class="space-y-4">
                        <div class="bg-white p-4 rounded-lg shadow-sm">
                            <p class="text-2xl font-black brand-blue">$16.2M</p>
                            <p class="font-semibold brand-dark">Cognitive Function</p>
                            <p class="text-sm text-gray-600">Impaired planning, memory, and daily independence.</p>
                        </div>
                         <div class="bg-white p-4 rounded-lg shadow-sm">
                            <p class="text-2xl font-black brand-red">$13.5M</p>
                            <p class="font-semibold brand-dark">Physical Health</p>
                            <p class="text-sm text-gray-600">Chronic pain, fatigue, and neurodegenerative decline.</p>
                        </div>
                        <div class="bg-white p-4 rounded-lg shadow-sm">
                            <p class="text-2xl font-black brand-yellow">$10.8M</p>
                            <p class="font-semibold brand-dark">Mental Health</p>
                            <p class="text-sm text-gray-600">Severe anxiety and depression from the prolonged appeals process.</p>
                        </div>
                    </div>
                </div>
            </section>

        </main>

        <footer class="text-center mt-16 pt-8 border-t border-gray-200">
            <p class="text-sm text-gray-500">This infographic presents data synthesized from legal filings and scientific reports related to Case No. 25-1224. All data points are derived from the provided source material. Chart visualizations are for illustrative purposes.</p>
        </footer>

    </div>

    <script>
        const wrapLabel = (label, maxWidth) => {
            const words = label.split(' ');
            const lines = [];
            let currentLine = '';

            words.forEach(word => {
                if ((currentLine + word).length < maxWidth) {
                    currentLine += (currentLine === '' ? '' : ' ') + word;
                } else {
                    lines.push(currentLine);
                    currentLine = word;
                }
            });
            lines.push(currentLine);
            return lines;
        };

        const tooltipTitleCallback = (tooltipItems) => {
            const item = tooltipItems[0];
            let label = item.chart.data.labels[item.dataIndex];
            if (Array.isArray(label)) {
              return label.join(' ');
            } else {
              return label;
            }
        };

        const energeticPlayfulPalette = {
            red: '#EF476F',
            yellow: '#FFD166',
            green: '#06D6A0',
            blue: '#118AB2',
            dark: '#073B4C'
        };
        
        const denialRatesData = {
            labels: ['Initial Application', 'Reconsideration', 'ALJ Hearing', 'Federal Court'],
            datasets: [{
                label: 'Denial/Remand Rate (%)',
                data: [62, 84, 49, 63],
                backgroundColor: [
                    energeticPlayfulPalette.red,
                    energeticPlayfulPalette.yellow,
                    energeticPlayfulPalette.blue,
                    energeticPlayfulPalette.green
                ],
                borderColor: 'rgba(255, 255, 255, 0.8)',
                borderWidth: 1
            }]
        };

        const denialRatesChartCtx = document.getElementById('denialRatesChart').getContext('2d');
        new Chart(denialRatesChartCtx, {
            type: 'bar',
            data: denialRatesData,
            options: {
                responsive: true,
                maintainAspectRatio: false,
                indexAxis: 'y',
                scales: {
                    x: {
                        beginAtZero: true,
                        max: 100,
                        title: { display: true, text: 'Percentage Rate (%)', color: energeticPlayfulPalette.dark }
                    },
                    y: { ticks: { color: energeticPlayfulPalette.dark } }
                },
                plugins: {
                    legend: { display: false },
                    tooltip: { callbacks: { title: tooltipTitleCallback } }
                }
            }
        });

        const cognitiveProfileData = {
            labels: ['Sustained Attention', 'Working Memory', 'Cognitive Flexibility', 'Impulse Control', 'Executive Function'],
            datasets: [{
                label: 'Typical Neuro-Profile',
                data: [85, 80, 75, 80, 82],
                backgroundColor: 'rgba(6, 214, 160, 0.2)',
                borderColor: energeticPlayfulPalette.green,
                pointBackgroundColor: energeticPlayfulPalette.green,
            }, {
                label: 'Petitioner\'s Genetic Profile',
                data: [35, 45, 40, 30, 42],
                backgroundColor: 'rgba(239, 71, 111, 0.2)',
                borderColor: energeticPlayfulPalette.red,
                pointBackgroundColor: energeticPlayfulPalette.red,
            }]
        };

        const cognitiveProfileChartCtx = document.getElementById('cognitiveProfileChart').getContext('2d');
        new Chart(cognitiveProfileChartCtx, {
            type: 'radar',
            data: cognitiveProfileData,
            options: {
                responsive: true,
                maintainAspectRatio: false,
                scales: {
                    r: {
                        angleLines: { color: 'rgba(0,0,0,0.1)' },
                        grid: { color: 'rgba(0,0,0,0.1)' },
                        pointLabels: { font: { size: 12 }, color: energeticPlayfulPalette.dark },
                        ticks: { backdropColor: 'rgba(255, 255, 255, 0.75)', color: energeticPlayfulPalette.dark },
                        suggestedMin: 0,
                        suggestedMax: 100
                    }
                },
                plugins: {
                    legend: { position: 'top' },
                    tooltip: { callbacks: { title: tooltipTitleCallback } }
                }
            }
        });
        
        const hedonicDamagesData = {
            labels: ['Cognitive Function', 'Physical Health', 'Mental Health', 'Social Relationships', 'Employment Fulfillment', 'Recreational Activities'],
            datasets: [{
                label: 'Hedonic Loss Value ($M)',
                data: [16.2, 13.5, 10.8, 6.75, 8.1, 4.05],
                backgroundColor: [
                    energeticPlayfulPalette.blue,
                    energeticPlayfulPalette.red,
                    energeticPlayfulPalette.yellow,
                    energeticPlayfulPalette.green,
                    '#F78C6B', 
                    '#1B9AAA' 
                ],
                hoverOffset: 4
            }]
        };

        const hedonicDamagesChartCtx = document.getElementById('hedonicDamagesChart').getContext('2d');
        new Chart(hedonicDamagesChartCtx, {
            type: 'doughnut',
            data: hedonicDamagesData,
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: { position: 'bottom', labels: { color: energeticPlayfulPalette.dark } },
                    tooltip: { callbacks: { title: tooltipTitleCallback } }
                }
            }
        });
        
        const disabilityModelsData = {
            labels: ['Assessment Focus', 'Evidence Type', 'Level of Individuality'],
            datasets: [
                {
                    label: 'Medical Model (SSA)',
                    data: [30, 40, 20],
                    backgroundColor: energeticPlayfulPalette.red,
                },
                {
                    label: 'Human Rights Model (UN CRPD)',
                    data: [80, 90, 85],
                    backgroundColor: energeticPlayfulPalette.green,
                }
            ]
        };

        const disabilityModelsChartCtx = document.getElementById('disabilityModelsChart').getContext('2d');
        new Chart(disabilityModelsChartCtx, {
            type: 'bar',
            data: disabilityModelsData,
            options: {
                responsive: true,
                maintainAspectRatio: false,
                indexAxis: 'y',
                scales: {
                    x: {
                        beginAtZero: true,
                        max: 100,
                        title: { display: true, text: 'Alignment Score', color: energeticPlayfulPalette.dark }
                    },
                    y: { ticks: { color: energeticPlayfulPalette.dark } }
                },
                plugins: {
                    legend: { position: 'top', labels: { color: energeticPlayfulPalette.dark } },
                    tooltip: { callbacks: { title: tooltipTitleCallback } }
                }
            }
        });

        const neuroanatomyData = {
            labels: ['Cortical Volume', 'Surface Area', 'Gyrification (DRD4 7R)', 'Cortical Thickness'],
            datasets: [
                {
                    label: 'ADHD Profile',
                    data: [-15, -12, -10, 5], 
                    backgroundColor: energeticPlayfulPalette.red,
                    borderColor: energeticPlayfulPalette.red,
                    borderWidth: 1
                },
                {
                    label: 'Neurotypical Control',
                    data: [0, 0, 0, 0],
                    backgroundColor: energeticPlayfulPalette.green,
                    borderColor: energeticPlayfulPalette.green,
                    borderWidth: 1
                }
            ]
        };

        const neuroanatomyChartCtx = document.getElementById('neuroanatomyChart').getContext('2d');
        new Chart(neuroanatomyChartCtx, {
            type: 'bar',
            data: neuroanatomyData,
            options: {
                responsive: true,
                maintainAspectRatio: false,
                indexAxis: 'y',
                scales: {
                    x: {
                        title: { display: true, text: 'Relative Difference from Control (%)', color: energeticPlayfulPalette.dark },
                        ticks: {
                            callback: function(value) { return value + '%' }
                        }
                    },
                    y: { ticks: { color: energeticPlayfulPalette.dark } }
                },
                plugins: {
                    legend: { position: 'bottom', labels: { color: energeticPlayfulPalette.dark } },
                    tooltip: {
                        callbacks: { 
                            title: tooltipTitleCallback,
                            label: function(context) {
                                let label = context.dataset.label || '';
                                if (label) {
                                    label += ': ';
                                }
                                if (context.parsed.x !== null) {
                                    label += context.parsed.x + '%';
                                }
                                return label;
                            }
                        }
                    }
                }
            }
        });

        const prevalenceData = {
            labels: ['Other Dev. Delays', 'Learning Disabilities', 'Stuttering', 'ADHD'],
            datasets: [{
                label: 'Prevalence (%)',
                data: [4.67, 3.30, 2.73, 2.13],
                backgroundColor: [
                    energeticPlayfulPalette.blue,
                    energeticPlayfulPalette.green,
                    energeticPlayfulPalette.yellow,
                    energeticPlayfulPalette.red
                ],
                borderColor: 'rgba(255, 255, 255, 0.8)',
                borderWidth: 1
            }]
        };

        const prevalenceChartCtx = document.getElementById('prevalenceChart').getContext('2d');
        new Chart(prevalenceChartCtx, {
            type: 'bar',
            data: prevalenceData,
            options: {
                responsive: true,
                maintainAspectRatio: false,
                scales: {
                    y: {
                        beginAtZero: true,
                        title: { display: true, text: 'Prevalence (%)', color: energeticPlayfulPalette.dark }
                    },
                    x: { ticks: { color: energeticPlayfulPalette.dark } }
                },
                plugins: {
                    legend: { display: false },
                    tooltip: { callbacks: { title: tooltipTitleCallback } }
                }
            }
        });

        const reliefData = {
            labels: [wrapLabel('Structural Reform Fund', 20), wrapLabel('Class Compensation Pool', 20), wrapLabel('Health & Housing Restitution', 20), wrapLabel('Employment Rehabilitation', 20), wrapLabel('Individual Plaintiff Damages', 20)],
            datasets: [{
                label: 'Amount ($ Billions)',
                data: [2, 1.5, 0.75, 0.5, 0.25],
                 backgroundColor: [
                    energeticPlayfulPalette.dark,
                    energeticPlayfulPalette.blue,
                    energeticPlayfulPalette.green,
                    energeticPlayfulPalette.yellow,
                    energeticPlayfulPalette.red
                ],
                borderColor: 'rgba(255, 255, 255, 0.8)',
                borderWidth: 1
            }]
        };

        const reliefChartCtx = document.getElementById('reliefChart').getContext('2d');
        new Chart(reliefChartCtx, {
            type: 'bar',
            data: reliefData,
            options: {
                responsive: true,
                maintainAspectRatio: false,
                indexAxis: 'y',
                 scales: {
                    x: {
                        beginAtZero: true,
                        title: { display: true, text: 'Amount in Billions (USD)', color: energeticPlayfulPalette.dark }
                    },
                    y: { ticks: { color: energeticPlayfulPalette.dark, font: { size: 10 } } }
                },
                plugins: {
                    legend: { display: false },
                    tooltip: { callbacks: { title: tooltipTitleCallback } }
                }
            }
        });
        
        const summaryBtn = document.getElementById('summarize-btn');
        const geneSelector = document.getElementById('gene-selector');
        const summaryLoader = document.getElementById('summary-loader');
        const summaryOutput = document.getElementById('summary-output');

        summaryBtn.addEventListener('click', async () => {
            const selectedGene = geneSelector.value;
            const prompt = `Based on the data presented in the infographic about McLaughlin v. Commissioner, briefly summarize the functional impact of the ${selectedGene} polymorphism on cognitive abilities and its relevance to ADHD. Keep the summary to 2-3 sentences.`;
            
            summaryOutput.innerHTML = '';
            summaryLoader.classList.remove('hidden');

            try {
                let chatHistory = [{ role: "user", parts: [{ text: prompt }] }];
                const payload = { contents: chatHistory };
                const apiKey = "";
                const apiUrl = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${apiKey}`;
                
                const response = await fetch(apiUrl, {
                    method: 'POST',
                    headers: { 'Content-Type': 'application/json' },
                    body: JSON.stringify(payload)
                });
                
                const result = await response.json();
                
                if (result.candidates && result.candidates[0].content && result.candidates[0].content.parts[0]) {
                    const text = result.candidates[0].content.parts[0].text;
                    summaryOutput.innerText = text;
                } else {
                    summaryOutput.innerText = 'Error: Could not generate summary.';
                }
            } catch (error) {
                console.error('Error calling Gemini API:', error);
                summaryOutput.innerText = 'An error occurred while fetching the summary.';
            } finally {
                summaryLoader.classList.add('hidden');
            }
        });

        const accommodateBtn = document.getElementById('accommodate-btn');
        const challengeInput = document.getElementById('challenge-input');
        const accommodationLoader = document.getElementById('accommodation-loader');
        const accommodationOutput = document.getElementById('accommodation-output');

        accommodateBtn.addEventListener('click', async () => {
            const challenge = challengeInput.value;
            if (!challenge) {
                accommodationOutput.innerText = 'Please enter a challenge.';
                return;
            }
            const prompt = `Given a person with a neurobiological profile consistent with ADHD, characterized by deficits in executive function, working memory, and attention regulation, suggest 3-4 practical and reasonable accommodations for the following challenge: "${challenge}". Frame these as a bulleted list for a workplace or educational setting.`;

            accommodationOutput.innerHTML = '';
            accommodationLoader.classList.remove('hidden');

            try {
                let chatHistory = [{ role: "user", parts: [{ text: prompt }] }];
                const payload = { contents: chatHistory };
                const apiKey = "";
                const apiUrl = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=${apiKey}`;

                const response = await fetch(apiUrl, {
                    method: 'POST',
                    headers: { 'Content-Type': 'application/json' },
                    body: JSON.stringify(payload)
                });

                const result = await response.json();
                
                if (result.candidates && result.candidates[0].content && result.candidates[0].content.parts[0]) {
                    const text = result.candidates[0].content.parts[0].text;
                    accommodationOutput.innerHTML = text.replace(/\* /g, '<p class="mb-2"> • ');
                } else {
                    accommodationOutput.innerText = 'Error: Could not generate suggestions.';
                }
            } catch (error) {
                console.error('Error calling Gemini API:', error);
                accommodationOutput.innerText = 'An error occurred while fetching suggestions.';
            } finally {
                accommodationLoader.classList.add('hidden');
            }
        });

    </script>
</body>
</html>