-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhecvat.css
More file actions
1983 lines (1834 loc) · 76.9 KB
/
Copy pathhecvat.css
File metadata and controls
1983 lines (1834 loc) · 76.9 KB
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
/* ============================================================
HECVAT 4.1.6 — Web Form Stylesheet
============================================================ */
:root {
/* ── Brand colours ── */
--navy: #002855;
--navy2: #1a5490;
--gold: #B8860B;
--gold2: #d4a017;
--gold-pale: #fef9ec;
--r: 6px;
--font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
/* ── Font scale ── (JS adjusts --fz-base; all sizes derive from it) */
--fz-base: 15px;
/* ── Light theme (default) ── */
--bg: #f6f6f4;
--white: #ffffff;
--g1: #f2f2f0;
--g2: #e4e4e0;
--g3: #c0c0b8;
--g4: #57574f; /* was #80807a — boosted for legibility */
--text: #1a1a18;
--text2: #3a3a34; /* was #484842 — darkened for legibility */
--green: #15803d;
--green-bg: #f0fdf4;
--red: #b91c1c;
--red-bg: #fef2f2;
--amber: #92400e;
--amber-bg: #fffbeb;
--navy-hd-bg: var(--navy);
--navy-hd-txt: #ffffff;
--panel-bg: #ffffff;
--aside-bg: #ffffff;
--input-bg: #ffffff;
--input-bdr: #d1d1cc;
--shadow: rgba(0,0,0,.07);
}
/* ── Dark theme ── */
[data-theme="dark"] {
--bg: #111110;
--white: #1e1e1c;
--g1: #252523;
--g2: #323230;
--g3: #4a4a46;
--g4: #c0bfb8; /* light for dark bg */
--text: #f0f0ec;
--text2: #d4d4cc;
--gold-pale: #2a2310;
--green: #34d473;
--green-bg: #0d2a1a;
--red: #f87171;
--red-bg: #2d1010;
--amber: #fbbf24;
--amber-bg: #2a1e08;
--navy-hd-bg: #162d4a;
--navy-hd-txt: #f0f0ec;
--panel-bg: #1e1e1c;
--aside-bg: #161614;
--input-bg: #252523;
--input-bdr: #44443e;
--shadow: rgba(0,0,0,.35);
--navy2: #4a8fd4;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
scroll-behavior: smooth;
font-size: var(--fz-base); /* ALL rem units scale from here */
}
body {
font-family: var(--font);
font-size: 1rem;
line-height: 1.6;
color: var(--text);
background: var(--bg);
transition: background .2s, color .2s;
}
/* ── Accessibility helpers ── */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
.skip {
position: absolute;
top: -999px;
left: 1rem;
padding: .4rem 1rem;
background: var(--navy);
color: #fff;
border-radius: 0 0 4px 4px;
font-weight: 700;
z-index: 9999;
text-decoration: none;
}
.skip:focus { top: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* ── Header ── */
header {
background: var(--navy);
color: #fff;
position: sticky;
top: 0;
z-index: 200;
box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.hdr {
/* Content width = 70% of viewport (15% gutter each side). max-width:none
unlocks the old 1180px cap. Narrow-screen fallback is in a media
query near the bottom of the file. */
width: 70%;
max-width: none;
margin: 0 auto;
padding: .9rem 1.5rem;
display: flex;
align-items: center;
gap: 1.25rem;
}
.logo { border-right: 1px solid rgba(255,255,255,.2); padding-right: 1.25rem; flex-shrink: 0; }
.logo-name { font-size: 1.9rem; font-weight: 800; color: var(--gold2); letter-spacing: -.03em; line-height: 1; font-family: Georgia, serif; }
.logo-ver { font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ffffff; margin-top: .2rem; }
.hdr-title h1 { font-size: .9rem; font-weight: 700; }
.hdr-title p { font-size: .72rem; color: #ffffff; }
/* Evaluator block: date stacked above the initials field, right-aligned */
.hdr-eval { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; margin-left: auto; flex-shrink: 0; }
.hdr-date { font-size: .72rem; color: #ffffff; white-space: nowrap; }
/* ── Header evaluator initials ── */
.hdr-initials {
display: flex;
align-items: center;
gap: .4rem;
flex-shrink: 0;
}
.hdr-initials-lbl {
font-size: .65rem;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
color: #ffffff;
white-space: nowrap;
}
.hdr-initials-in {
width: 4.5rem;
height: 2rem;
padding: 0 .5rem;
border: 1.5px solid rgba(255,255,255,.25);
border-radius: var(--r);
background: rgba(255,255,255,.08);
color: #ffffff;
font-family: var(--font);
font-size: .78rem;
font-weight: 700;
letter-spacing: .06em;
text-transform: uppercase;
}
.hdr-initials-in::placeholder { color: rgba(255,255,255,.45); font-weight: 400; letter-spacing: normal; }
.hdr-initials-in:focus { outline: 2px solid var(--gold2); outline-offset: 2px; border-color: var(--gold2); }
/* ── Header display controls (theme + font size) ── */
.hdr-controls {
display: flex;
align-items: center;
gap: .3rem;
flex-shrink: 0;
}
.hdr-ctrl-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2rem;
height: 2rem;
padding: 0 .45rem;
border: 1.5px solid rgba(255,255,255,.25);
border-radius: var(--r);
background: rgba(255,255,255,.08);
color: rgba(255,255,255,.85);
font-family: var(--font);
font-size: .72rem;
font-weight: 700;
cursor: pointer;
white-space: nowrap;
transition: background .12s, border-color .12s;
line-height: 1;
}
.hdr-ctrl-btn:hover { background: rgba(255,255,255,.18); border-color: #ffffff; }
.hdr-ctrl-btn:focus { outline: 2px solid var(--gold2); outline-offset: 2px; }
.hdr-ctrl-btn.active { background: var(--gold2); border-color: var(--gold2); color: #002855; }
.hdr-ctrl-btn:disabled { opacity: .35; cursor: not-allowed; }
.hdr-ctrl-sep {
width: 1px;
height: 1.2rem;
background: rgba(255,255,255,.2);
margin: 0 .1rem;
}
.hdr-fz-display {
font-size: .65rem;
font-weight: 700;
color: #ffffff;
min-width: 2.4rem;
text-align: center;
white-space: nowrap;
}
/* Responsive: collapse date on small screens, keep controls */
@media (max-width: 700px) {
.hdr-date { display: none; }
/* Visually hide the label but keep it in the a11y tree so the input
retains its accessible name (do NOT use display:none here). */
.hdr-initials-lbl {
position: absolute;
width: 1px; height: 1px;
padding: 0; margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
.hdr-eval { margin-left: auto; }
}
@media (max-width: 480px) {
.hdr-fz-display { display: none; }
.hdr-ctrl-sep { display: none; }
}
/* ── Score banner ── */
#sbar {
background: #011e40;
border-bottom: 2px solid var(--gold);
padding: .45rem 1.5rem;
overflow-x: auto;
}
.sbar-in {
width: 70%;
max-width: none;
margin: 0 auto;
display: flex;
align-items: center;
gap: 1.5rem;
flex-wrap: wrap;
}
.si { display: flex; flex-direction: column; line-height: 1.2; }
.si-l { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ffffff; }
.si-v { font-size: .95rem; font-weight: 700; color: var(--gold2); }
.si-compliant { color: #86efac; }
.si-noncompliant { color: #fca5a5; }
.si-critical { color: #fca5a5; }
.btn-sum-action { margin-left: auto; padding: .28rem .75rem; font-size: .72rem; width: auto; }
.storage-alert {
width: 70%;
max-width: none;
margin: .75rem auto 0;
padding: .85rem 1rem;
border: 2px solid var(--amber);
border-left-width: 6px;
border-radius: var(--r);
background: var(--amber-bg);
color: var(--text);
font-size: .82rem;
line-height: 1.45;
display: grid;
grid-template-columns: 1fr auto;
gap: .3rem .9rem;
align-items: start;
}
.storage-alert:empty { display: none; } /* collapses when unused */
.storage-alert-error { border-color: var(--red); background: var(--red-bg); }
.storage-alert-h { grid-column: 1; font-size: .88rem; }
.storage-alert-error .storage-alert-h { color: var(--red); }
.storage-alert-p { grid-column: 1; margin: 0; }
.storage-alert-x {
grid-column: 2; grid-row: 1 / span 2;
align-self: start;
font: inherit; font-size: .75rem; font-weight: 700;
padding: .3rem .8rem; min-height: 24px;
border: 1.5px solid var(--g3); border-radius: var(--r);
background: var(--white); color: var(--text2); cursor: pointer;
}
.storage-alert-go {
grid-column: 2; grid-row: 1;
align-self: start; justify-self: end;
font: inherit; font-size: .75rem; font-weight: 700;
padding: .3rem .9rem; min-height: 24px; white-space: nowrap;
border: 1.5px solid var(--navy); border-radius: var(--r);
background: var(--navy); color: #fff; cursor: pointer;
}
.storage-alert-go:hover { background: var(--navy2); border-color: var(--navy2); }
.storage-alert-go:focus-visible { outline: 3px solid var(--navy2); outline-offset: 2px; }
/* With an action present, Dismiss drops to the second row of the side column */
.storage-alert:has(.storage-alert-go) .storage-alert-x { grid-row: 2; grid-column: 2; justify-self: end; }
.storage-alert-x:hover { border-color: var(--navy2); color: var(--text); }
.storage-alert-x:focus-visible { outline: 3px solid var(--navy2); outline-offset: 2px; }
[data-theme="dark"] .storage-alert { color: var(--text); } /* --amber-bg/--red-bg already flip per theme */
[data-theme="dark"] .storage-alert-x { background: var(--input-bg); border-color: var(--input-bdr); color: var(--text); }
@media (max-width: 900px) { .storage-alert { width: auto; margin-left: 1rem; margin-right: 1rem; } }
@media print { .storage-alert { display: none; } }
.storage-status { margin-top: .5rem; font-size: .68rem; color: var(--g4); text-align: center; padding: 0 .5rem; }
.storage-status.status-ok { color: var(--green); }
.storage-status.status-warn { color: var(--amber); }
.storage-status.status-error { color: var(--red); font-weight: 600; }
.storage-status.status-pending { color: var(--gold2); }
/* Colour modifier classes — used by summary cards and section scores */
.col-green { color: var(--green); }
.col-red { color: var(--red); }
.col-amber { color: #d97706; }
.col-muted { color: var(--g4); }
/* .hidden hides general elements. File inputs need their own class —
display:none prevents .click() from opening the picker in Safari/Chrome. */
.hidden { display: none; }
.file-input-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
opacity: 0;
}
.notes-ta { font-size: .73rem; min-height: 48px; }
/* Summary export row */
.exp-copy { font-size: .68rem; color: var(--g4); margin-left: auto; }
.exp-row .btn { width: auto; }
.pct { display: inline-block; padding: .12rem .45rem; border-radius: 9px; font-size: .7rem; font-weight: 700; background: rgba(255,255,255,.1); color: #fff; margin-left: .3rem; }
.pct.g { background: var(--green); }
.pct.o { background: var(--amber); }
.pct.r { background: var(--red); }
/* ── Layout ── */
.wrap {
width: 70%;
max-width: none;
margin: 0 auto;
padding: 1.25rem 1.5rem 4rem;
display: grid;
/* 360px fits "Privacy Analyst Evaluation" + count badge on one line
at the 147% font-size (A+ max), since all nav paddings use rem
and scale with the root font-size. */
grid-template-columns: 360px 1fr;
gap: 1.5rem;
}
/* ── Sidebar ── */
aside {
position: sticky;
top: 98px;
height: fit-content;
max-height: calc(100vh - 110px);
overflow-y: auto;
}
/* Sidebar collapse / expand toggle */
.sidebar-toggle {
width: 100%;
display: flex;
align-items: center;
justify-content: flex-end;
gap: .4rem;
padding: .4rem .7rem;
margin-bottom: .55rem;
background: var(--white);
border: 1px solid var(--g2);
border-radius: var(--r);
font-family: var(--font);
font-size: .7rem;
font-weight: 600;
color: var(--text2);
cursor: pointer;
transition: background .12s, color .12s;
}
.sidebar-toggle:hover { background: var(--g1); color: var(--navy); }
.sidebar-toggle:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 2px;
}
.sb-tog-icon {
display: inline-block;
width: 14px;
text-align: center;
font-weight: 700;
}
[data-theme="dark"] .sidebar-toggle {
background: var(--aside-bg);
color: var(--text2);
border-color: var(--g3);
}
[data-theme="dark"] .sidebar-toggle:hover { background: var(--g2); color: #fff; }
/* ── Collapsed sidebar (icon-only rail) ──
Sidebar shrinks to ~64px; nav-button labels stay in the DOM (so the
accessible name still reads correctly via aria-label / title) but are
visually hidden. Status dots enlarge so the at-a-glance state is still
readable. The save/load/export action group is hidden in this mode —
users expand to access it. */
body.sb-collapsed .wrap {
grid-template-columns: 64px 1fr;
}
body.sb-collapsed .sidebar-toggle {
justify-content: center;
padding: .4rem .3rem;
}
body.sb-collapsed .sb-tog-lbl {
position: absolute;
width: 1px; height: 1px;
margin: -1px; padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
body.sb-collapsed .nb-l {
position: absolute;
width: 1px; height: 1px;
margin: -1px; padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
body.sb-collapsed .nb {
justify-content: center;
padding: .6rem .25rem;
gap: 0;
}
body.sb-collapsed .nb.active {
border-left-width: 0;
border-bottom: 1px solid var(--g1);
background: var(--gold-pale);
}
body.sb-collapsed .nd {
/* Larger ring with the section icon inside — main visual cue
when text labels are hidden */
width: 32px; height: 32px;
font-size: 16px;
border-width: 2px;
}
body.sb-collapsed .nc {
position: absolute;
top: 4px; right: 4px;
margin: 0;
font-size: .55rem;
padding: 0 .25rem;
min-width: 14px;
text-align: center;
line-height: 1.4;
}
body.sb-collapsed .nb-tag { display: none; }
body.sb-collapsed .snav-bar { display: none; }
body.sb-collapsed .snav-hd {
/* keep a thin colored separator so the Vendor / Analyst grouping is
still visible, but hide the heading text */
font-size: 0;
letter-spacing: 0;
padding: .25rem 0;
height: 4px;
overflow: hidden;
}
body.sb-collapsed #storage-status { display: none; }
/* Action buttons (Save / Load / Export / Import / Print / Clear) stay
in the rail when collapsed — same capabilities as the expanded
sidebar, just icon-only. Each button keeps its full aria-label and
title for screen readers and hover tooltips. */
.btn-i {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-weight: 600;
letter-spacing: .02em;
}
body.sb-collapsed .side-btns {
margin-top: .55rem;
gap: .3rem;
}
body.sb-collapsed .side-btns .btn {
padding: .5rem .25rem;
gap: 0;
min-height: 36px;
justify-content: center;
}
body.sb-collapsed .side-btns .btn-i {
font-size: 1rem;
line-height: 1;
}
body.sb-collapsed .side-btns .btn-l {
position: absolute;
width: 1px; height: 1px;
margin: -1px; padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.snav {
background: var(--white);
border: 1px solid var(--g2);
border-radius: var(--r);
overflow: hidden;
box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.snav-hd { background: var(--navy); color: #ffffff; font-size: .58rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; padding: .55rem 1rem .4rem; }
.snav-bar { height: 3px; background: var(--g2); }
.snav-fill { height: 100%; background: var(--gold); transition: width .3s; width: 0%; }
.nb {
display: flex;
align-items: center;
gap: .45rem;
padding: .55rem 1rem;
border: none;
background: none;
width: 100%;
text-align: left;
cursor: pointer;
font-family: var(--font);
font-size: .8rem;
color: var(--text2);
border-bottom: 1px solid var(--g1);
transition: background .1s;
position: relative;
}
.nb:hover { background: var(--g1); }
.nb.active { background: var(--gold-pale); color: var(--navy); font-weight: 700; border-left: 3px solid var(--gold); }
.nb.dimmed { opacity: .38; }
.nb.not-req { color: var(--g4); }
/* Status / icon ring next to each nav button label.
The ring colour encodes state (default, active, done, not-required);
the glyph inside is the section icon — adds visual scanning in expanded
mode and is the only readable cue in collapsed (icon-only) mode. */
.nd {
width: 22px; height: 22px;
border-radius: 50%;
background: var(--g1);
border: 1.5px solid var(--g3);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 11px;
line-height: 1;
flex-shrink: 0;
transition: background .2s, border-color .2s;
}
.nb.active .nd { background: var(--gold-pale); border-color: var(--gold); }
.nb.done .nd { background: rgba(16,185,129,0.15); border-color: var(--green); }
.nb.not-req .nd { opacity: .55; }
.nc {
margin-left: auto;
font-size: .65rem;
background: var(--g1);
color: var(--g4);
padding: .08rem .32rem;
border-radius: 8px;
}
.nb-tag {
font-size: .56rem;
font-weight: 700;
padding: .05rem .3rem;
border-radius: 3px;
background: var(--g2);
color: var(--g4);
}
.nb-tag.nr { background: var(--amber-bg); color: var(--amber); }
/* Sidebar action buttons */
.side-btns { margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .3rem;
padding: .5rem .85rem;
border-radius: var(--r);
font-family: var(--font);
font-size: .8rem;
font-weight: 600;
cursor: pointer;
border: none;
transition: all .12s;
width: 100%;
}
.btn-nv { background: var(--navy); color: #fff; }
.btn-nv:hover { background: var(--navy2); }
.btn-ol { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ol:hover { background: var(--g1); }
.btn-gd { background: var(--gold); color: #fff; }
.btn-gd:hover { background: var(--gold2); }
.btn-danger { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-danger:hover { background: var(--red-bg); }
/* ── Main panels ── */
main { min-width: 0; }
.panel { display: none; }
.panel.active { display: block; animation: fi .18s ease; }
@keyframes fi { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
/* ── Section header ── */
.sec-hdr {
background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
border-radius: var(--r) var(--r) 0 0;
padding: 1.15rem 1.5rem;
color: #fff;
}
.sec-hdr h2 { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; margin-bottom: .2rem; }
.sec-hdr p { font-size: .78rem; color: #ffffff; }
.chips { display: flex; gap: .5rem; margin-top: .55rem; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: .15rem .6rem; font-size: .65rem; font-weight: 600; color: rgba(255,255,255,.8); }
.chip.gold { background: rgba(184,134,11,.3); border-color: var(--gold); color: var(--gold2); }
.chip.grey { background: rgba(255,255,255,.05); color: #ffffff; }
/* ── Section body ── */
.sec-body {
background: var(--white);
border: 1px solid var(--g2);
border-top: none;
border-radius: 0 0 var(--r) var(--r);
box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
/* ── Gated section banner ── */
.gate-banner {
display: none;
margin: .75rem 1.5rem;
padding: .85rem 1.1rem;
background: var(--amber-bg);
border: 1px solid #fde68a;
border-radius: var(--r);
font-size: .8rem;
color: var(--amber);
gap: .6rem;
align-items: flex-start;
}
.gate-banner.visible { display: flex; }
.gate-banner strong { display: block; font-size: .83rem; margin-bottom: .2rem; }
.gate-banner .gate-icon { font-size: 1.1rem; flex-shrink: 0; }
/* ── Collapsible category sections (H3) ─────────────────────────
Used in both vendor response sections and all eval panels.
cat-hdr kept as alias for legacy compatibility during transition. */
.cat-sec { border-top: 2px solid var(--g2); }
.cat-sec + .cat-sec { border-top: 1px solid var(--g2); }
.cat-h3 { margin: 0; }
.cat-tog {
display: flex;
align-items: center;
gap: .5rem;
width: 100%;
padding: .5rem 1.5rem;
background: var(--g1);
border: none;
border-left: 3px solid var(--navy2);
cursor: pointer;
font-family: var(--font);
font-size: .63rem;
font-weight: 700;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--navy);
text-align: left;
transition: background .12s;
}
.cat-tog:hover { background: #e8edf5; }
.cat-tog:focus { outline: 3px solid var(--navy2); outline-offset: -2px; }
.cat-tog[aria-expanded="false"] { border-left-color: var(--g3); color: var(--text2); }
.cat-tog-lbl { flex: 1; }
.cat-tog-icon { font-size: .7rem; color: var(--g4); flex-shrink: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cat-body { }
.cat-body.cat-collapsed { display: none; }
/* Section-list headings in the High-Risk panel (e.g. "Critical
Importance Questions", "Non-Negotiable Questions"). Rendered as <h3>
for correct document outline, but styled flat. */
.cat-hdr {
background: var(--g1);
padding: .5rem 1.5rem;
font-size: .63rem;
font-weight: 700;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--navy);
border-bottom: 1px solid var(--g2);
border-top: 1px solid var(--g2);
display: flex;
align-items: center;
gap: .35rem;
/* Zero out UA heading margins so the h3 fits the flat badge-row look */
margin: 0;
line-height: 1.3;
}
.cat-ct { font-size: .6rem; background: var(--navy); color: #fff; padding: .07rem .32rem; border-radius: 7px; }
/* ── Question rows ── */
.qrow {
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--g1);
display: grid;
grid-template-columns: 1fr 268px;
gap: 1.25rem;
align-items: start;
}
.qrow:last-child { border-bottom: none; }
.qrow.crit { border-left: 3px solid #9a3412; }
/* Cross-reference rows */
.qrow-ref {
background: var(--g1);
opacity: .85;
}
.qrow-ref:hover { opacity: 1; }
.ref-answer {
font-size: .82rem;
font-weight: 700;
padding: .35rem .6rem;
border-radius: var(--r);
border: 1.5px solid var(--g2);
background: var(--white);
margin-bottom: .35rem;
}
.ref-answer.ref-yes { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.ref-answer.ref-no { color: var(--red); border-color: var(--red); background: var(--red-bg); }
.ref-answer.ref-na { color: var(--g4); border-color: var(--g3); background: var(--g1); }
.ref-answer.ref-txt { color: var(--text2); font-weight: 400; font-size: .78rem; }
.ref-answer.ref-empty { color: var(--g4); font-weight: 400; font-style: italic; }
.ref-goto {
font-size: .72rem;
color: var(--navy);
background: none;
border: none;
cursor: pointer;
font-family: var(--font);
padding: 0;
text-decoration: underline;
text-underline-offset: 2px;
}
.ref-goto:hover { color: var(--navy2); }
.ref-src-tag {
font-size: .6rem;
font-weight: 700;
padding: .05rem .3rem;
border-radius: 3px;
background: var(--navy);
color: #fff;
letter-spacing: 0;
text-transform: none;
}
/* Question metadata */
.qmeta {
font-size: .62rem;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
color: var(--g4);
display: flex;
align-items: center;
gap: .3rem;
flex-wrap: wrap;
margin-bottom: .2rem;
}
.bdg { border-radius: 3px; font-size: .57rem; padding: .03rem .26rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.bdg-c { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.bdg-s { background: var(--gold-pale); color: var(--amber); border: 1px solid #fde68a; }
.bdg-m { background: var(--g1); color: var(--g4); border: 1px solid var(--g2); }
.qtext { font-size: .86rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.qguide {
font-size: .74rem;
color: var(--text2);
background: var(--g1);
border-left: 3px solid var(--g3);
border-radius: 3px;
padding: .38rem .6rem;
margin-top: .3rem;
line-height: 1.45;
}
/* Conditional guidance */
.cg { font-size: .72rem; padding: .32rem .58rem; border-radius: 3px; margin-top: .28rem; display: none; line-height: 1.4; }
.cg.yg { background: var(--green-bg); border-left: 3px solid var(--green); color: var(--green); }
.cg.ng { background: var(--red-bg); border-left: 3px solid var(--red); color: var(--red); }
.cg.nag { background: #eef2f6; border-left: 3px solid #64748b; color: #334155; }
.cg.on { display: block; }
.cg-icon {
display: inline-flex;
align-items: center;
justify-content: center;
margin-right: .35rem;
font-size: .85em;
font-style: normal;
flex-shrink: 0;
}
.cg.yg .cg-icon { color: var(--green); }
.cg.ng .cg-icon { color: var(--red); }
.cg.nag .cg-icon { color: #64748b; }
.qguide .cg-icon { color: var(--navy2); }
/* ── Inputs ── */
.flbl { display: block; font-size: .67rem; font-weight: 600; color: var(--text2); margin-bottom: .18rem; }
input[type=text],
input[type=email],
input[type=tel],
input[type=url],
textarea {
width: 100%;
padding: .48rem .68rem;
border: 1.5px solid var(--input-bdr);
border-radius: var(--r);
font-family: var(--font);
font-size: .82rem;
color: var(--text);
background: var(--input-bg);
transition: border-color .12s, box-shadow .12s;
}
input:focus, textarea:focus {
outline: none;
border-color: var(--navy2);
box-shadow: 0 0 0 3px rgba(0,40,85,.08);
}
textarea { resize: vertical; min-height: 70px; }
/* ── Yes / No / N/A button group ── */
.yng-wrap {
position: relative;
}
/* Focus tooltip — shows question text when keyboard navigating */
.yng-tooltip {
position: absolute;
bottom: calc(100% + 8px);
left: 0;
right: 0;
background: var(--navy);
color: #fff;
font-size: .7rem;
line-height: 1.35;
padding: .4rem .65rem;
border-radius: 4px;
pointer-events: none;
opacity: 0;
transform: translateY(4px);
transition: opacity .15s, transform .15s;
z-index: 10;
/* screen reader always has the label via aria-label on each button */
}
.yng-tooltip::after {
content: '';
position: absolute;
top: 100%;
left: 14px;
border: 5px solid transparent;
border-top-color: var(--navy);
}
.yng-wrap:focus-within .yng-tooltip {
opacity: 1;
transform: translateY(0);
}
.yng { display: flex; gap: .38rem; }
.ynb {
flex: 1;
padding: .48rem .3rem;
border-radius: 4px;
font-family: var(--font);
font-size: .78rem;
font-weight: 700;
cursor: pointer;
transition: all .12s;
display: flex;
align-items: center;
justify-content: center;
gap: .22rem;
position: relative;
border-width: 2px;
border-style: solid;
/* Question label is in aria-label — visually we show only icon+word */
}
/* Unselected Yes and No share the same yellow "pending / awaiting answer"
look so the user's eye is drawn to them but no implied commitment
is shown until they pick one. Selection switches to green / red. */
.ynb-yes,
.ynb-no {
background: #fef3c7; /* amber-100 — warm yellow fill */
border-color: #d97706; /* amber-600 — strong border */
color: #78350f; /* amber-900 — readable dark amber text */
}
.ynb-yes:hover,
.ynb-no:hover { background: #fde68a; } /* amber-200 */
/* N/A — neutral slate so it reads as "not applicable", visually distinct
from the amber "awaiting answer" Yes/No pair. */
.ynb-na { background: #eef2f6; border-color: #64748b; color: #334155; } /* slate-100 / 500 / 700 */
.ynb-na:hover { background: #e2e8f0; } /* slate-200 */
/* Selected state — solid saturated box, bold white text, heavy ring.
!important ensures no theme or override specificity dulls the state. */
.ynb.sel-y,
.ynb.sel-n,
.ynb.sel-na {
color: #ffffff !important;
font-weight: 800 !important;
border-width: 3px !important;
box-shadow: 0 0 0 3px rgba(0,0,0,.22) inset, 0 3px 6px rgba(0,0,0,.28) !important;
transform: translateY(-1px);
}
.ynb.sel-y { background: #15803d !important; border-color: #0b5a2a !important; }
.ynb.sel-n { background: #b91c1c !important; border-color: #7f1414 !important; }
.ynb.sel-na { background: #475569 !important; border-color: #334155 !important; } /* slate-600 / 700 */
/* Inner icon span — make sure it picks up white too */
.ynb.sel-y > *,
.ynb.sel-n > *,
.ynb.sel-na > * { color: #ffffff !important; }
/* Selected marker pip in the top-right corner for extra clarity */
.ynb.sel-y::after,
.ynb.sel-n::after,
.ynb.sel-na::after {
content: "\2713";
position: absolute;
top: 2px;
right: 4px;
font-size: .7rem;
line-height: 1;
color: #ffffff;
opacity: .95;
pointer-events: none;
}
/* ── Compliance indicator — solid filled pop-ups that match the selected
Yes/No button styling so users can associate the two visually. ── */
.cind {
font-size: .72rem;
font-weight: 800;
padding: .3rem .55rem;
border-radius: 3px;
margin-top: .35rem;
display: none;
border: 2px solid transparent;
box-shadow: 0 0 0 2px rgba(0,0,0,.18) inset, 0 2px 4px rgba(0,0,0,.2);
letter-spacing: .01em;
}
.cind.on { display: block; }
.cind.ok { background: #15803d !important; color: #ffffff !important; border-color: #0b5a2a !important; }
.cind.bad { background: #b91c1c !important; color: #ffffff !important; border-color: #7f1414 !important; }
/* ── Notes toggle ── */
.ntog {
font-size: .68rem;
color: var(--text2);
background: none;
border: none;
cursor: pointer;
font-family: var(--font);
padding: 0;
margin-top: .38rem;
display: flex;
align-items: center;
gap: .22rem;
}
.ntog:hover { color: var(--navy); }
.narea { display: none; margin-top: .32rem; }
.narea.on { display: block; }
/* ── Info / conditional notices ── */
.notice {
display: flex;
gap: .55rem;
align-items: flex-start;
padding: .7rem 1.2rem;
border-radius: var(--r);
margin: .7rem 1.5rem;
font-size: .77rem;
}
.ninfo { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }