-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
1676 lines (1514 loc) · 44.9 KB
/
Copy pathstyles.css
File metadata and controls
1676 lines (1514 loc) · 44.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
/* roughlogic.com - dark "encryptalotta" theme.
Visual contract intentionally mirrors encryptalotta.com:
- near-black/charcoal/graphite layered surfaces
- white-on-dark text with two muted secondary tints
- rounded cards with arrow-on-hover affordance
- pill buttons, sticky topbar, gentle entry animations
Spec.md section 8 (no emoji, no em-dash) and section 11 (live-render,
48 px touch targets, single-h1 per view, aria-live output region) all
continue to hold.
*/
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* The HTML `hidden` attribute should always hide an element, even when
author CSS gives that element a more specific `display` rule (e.g.,
the `.copy-all-btn` rule below sets `display: inline-flex`, which by
specificity outranks the user-agent `[hidden] { display: none }`).
This rule restores the expected behavior so `el.hidden = true` always
visually hides the element. */
[hidden] { display: none !important; }
:root {
--bg-primary: #0a0a0a;
--bg-secondary: #1a1a1a;
--bg-tertiary: #2a2a2a;
--fg: #ffffff;
--fg-muted: #c8c8c8; /* 8.5:1 on bg-secondary */
--fg-dim: #9a9a9a; /* 5.5:1 on bg-secondary */
--border: #333333;
--border-light: #404040;
--accent-hover: #e0e0e0;
--focus-ring: #4d90fe;
--heart: #ff5d6c;
/* Single brand accent (the only chromatic hue in the otherwise
monochrome palette). Used for links, the shell "Run the calculator"
CTA, input focus, and the copy-success pulse. Theme-specific so it
clears WCAG AA as link text on each surface: #5aa9ff is 7.1:1 on
bg-secondary in dark; the light override (#0a66c2) is 5.2:1 on
bg-secondary in light. --bg aliases the primary surface so CTA text
(color:var(--bg)) inverts cleanly against the accent fill in both
themes (8.1:1 dark, 5.7:1 light). Previously both tokens were
referenced by the prerendered shells but never defined, so shell
links and the CTA fell back to plain body text. */
--accent: #5aa9ff;
--accent-strong: #7dbcff;
--bg: var(--bg-primary);
/* Validity / error tokens. The dark-mode pair (border + reason) keeps
readable contrast on bg-secondary; the light-mode override below
swaps to deeper red shades that meet WCAG AA on white (>= 4.5:1). */
--error-border: #ff5d6c;
--error-text: #ff8c95;
--header-bg: rgba(10, 10, 10, 0.85);
--radius-sm: 6px;
--radius: 8px;
--radius-lg: 14px;
--radius-pill: 999px;
--space-1: 4px;
--space-2: 8px;
--space-3: 16px;
--space-4: 24px;
--space-5: 32px;
--space-6: 48px;
--space-7: 64px;
--touch-min: 48px;
--shell-max: 1100px;
--font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Cascadia Mono',
'Roboto Mono', Consolas, 'Liberation Mono', monospace;
}
body {
font-family: var(--font-stack);
background: var(--bg-primary);
color: var(--fg);
line-height: 1.6;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
color: var(--fg);
text-decoration: underline;
text-decoration-color: var(--border-light);
text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--fg); }
a:focus, button:focus, select:focus, input:focus, textarea:focus,
[tabindex]:focus {
outline: 2px solid var(--focus-ring);
outline-offset: 2px;
}
button {
font-family: inherit;
}
main {
max-width: var(--shell-max);
margin: 0 auto;
padding: 0 var(--space-4) var(--space-5);
}
/* Skip link */
.skip-link {
position: absolute;
left: -9999px;
top: var(--space-2);
background: var(--bg-secondary);
color: var(--fg);
padding: 10px 14px;
border: 1px solid var(--border-light);
border-radius: var(--radius);
text-decoration: none;
z-index: 100;
}
.skip-link:focus {
left: var(--space-3);
}
/* Visually hidden (accessible) */
.visually-hidden {
position: absolute !important;
width: 1px; height: 1px;
margin: -1px; padding: 0; overflow: hidden;
clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* ============================================================
Sticky topbar / site header (encryptalotta visual mirror)
============================================================ */
.site-header {
position: sticky;
top: 0;
z-index: 50;
background: var(--header-bg);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
animation: rl-fade-down 0.5s ease-out;
}
.header-inner {
max-width: var(--shell-max);
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-3);
padding: var(--space-3) var(--space-4);
}
.brand {
display: flex;
align-items: baseline;
gap: 10px;
text-decoration: none;
color: var(--fg);
flex: 0 0 auto;
border-radius: var(--radius);
padding: 4px 6px;
margin: -4px -6px;
transition: opacity 0.18s ease;
}
.brand:hover { opacity: 0.85; }
.wordmark {
font-size: 1.4rem;
font-weight: 800;
letter-spacing: -0.01em;
color: var(--fg);
}
.tagline {
font-size: 0.9375rem;
color: var(--fg-muted);
}
.primary-nav {
flex: 0 0 auto;
}
.primary-nav a {
color: var(--fg-muted);
text-decoration: none;
font-weight: 600;
font-size: 1rem;
padding: 8px 12px;
border-radius: var(--radius);
}
.primary-nav a:hover {
color: var(--fg);
background: var(--bg-secondary);
}
/* ============================================================
Search input - shared visual rules (hero search box).
============================================================ */
.search-input {
width: 100%;
background: var(--bg-tertiary);
color: var(--fg);
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 1rem;
font-family: inherit;
transition: border-color 0.18s ease, background 0.18s ease;
}
.search-input::placeholder { color: var(--fg-dim); }
.search-input:focus {
border-color: var(--fg);
background: var(--bg-secondary);
}
/* ============================================================
Home view - centered elevator pitch + one search combobox.
The home tile grid was retired; the catalog is reachable through the
search dropdown, the per-tile shells, and the per-group shells.
============================================================ */
.home {
max-width: 760px;
margin: 0 auto;
padding: clamp(72px, 14vh, 180px) var(--space-4) var(--space-7);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.home-h1 {
margin: 0 auto var(--space-4);
max-width: 16ch;
font-size: clamp(2.1rem, 5.5vw, 3rem);
font-weight: 800;
line-height: 1.1;
letter-spacing: -0.02em;
color: var(--fg);
}
.home-lede {
margin: 0 auto var(--space-6);
max-width: 54ch;
font-size: 1.18rem;
line-height: 1.65;
color: var(--fg-muted);
}
.home-note {
margin: 0 auto var(--space-6);
max-width: 54ch;
font-size: 1rem;
line-height: 1.6;
color: var(--fg-muted);
}
.home-note abbr {
text-decoration: none;
font-weight: 600;
}
/* One search bar with a results dropdown (combobox). Centered in the hero
and sized large so it reads as the primary entry point. */
.hero-search {
position: relative;
width: 100%;
max-width: 720px;
margin: 0 auto;
text-align: left;
}
.hero-label {
display: block;
margin-bottom: 12px;
font-size: 1.15rem;
font-weight: 700;
letter-spacing: -0.01em;
color: var(--fg);
text-align: center;
}
.hero-search .search-input {
padding: 20px 26px;
font-size: 1.25rem;
border-radius: var(--radius-pill);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
/* The hero search is the front door: on focus, the border picks up the
brand accent and a soft accent halo so it feels alive without breaking
the monochrome restraint elsewhere. */
.hero-search .search-input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(90, 169, 255, 0.18);
}
/* Static "browse by trade" index under the hero. Links to the 24
prerendered group hubs: a crawlable content + internal-link surface
on the home document, kept visually quiet so the search bar stays
the primary entry point. */
.home-trades {
width: 100%;
max-width: 720px;
margin: var(--space-6) auto 0;
text-align: center;
}
.home-trades-h2 {
margin: 0 0 var(--space-3);
font-size: 0.9375rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--fg-dim);
}
.home-trades-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: var(--space-2);
}
.home-trades-list a {
display: inline-block;
padding: 8px 14px;
font-size: 1rem;
color: var(--fg-muted);
text-decoration: none;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-pill);
}
.home-trades-list a:hover,
.home-trades-list a:focus-visible {
color: var(--fg);
border-color: var(--accent);
}
.search-results {
position: absolute;
top: calc(100% + 8px);
left: 0;
right: 0;
list-style: none;
margin: 0;
padding: 6px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
max-height: min(60vh, 460px);
overflow-y: auto;
z-index: 40;
text-align: left;
}
.search-results[hidden] { display: none; }
.search-result {
display: flex;
flex-direction: column;
gap: 2px;
padding: 10px 14px;
border-radius: var(--radius);
cursor: pointer;
color: var(--fg);
user-select: none;
}
.search-result .sr-name { font-weight: 600; font-size: 1rem; }
.search-result .sr-group { font-size: 0.9375rem; color: var(--fg-dim); }
.search-result:hover,
.search-result.is-active {
background: var(--bg-tertiary);
}
.search-empty {
padding: 16px 14px;
color: var(--fg-muted);
font-size: 1rem;
text-align: center;
}
/* spec-v592: computed answer preview on the top-ranked result row. */
.search-result .sr-preview {
font-size: 1rem;
color: var(--accent);
font-variant-numeric: tabular-nums;
}
/* spec-v592: did-you-mean note + no-match browse fallback rows. */
.search-didyoumean {
padding: 8px 14px 0;
font-style: italic;
text-align: left;
}
.search-browse {
padding-top: 0;
}
.search-browse a {
color: var(--accent);
text-decoration: underline;
}
/* ============================================================
Tool view (content panel)
============================================================ */
.view-region {
max-width: var(--shell-max);
margin: 0 auto;
padding: 0 var(--space-4);
margin-top: var(--space-4);
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: var(--space-5) var(--space-4);
animation: rl-fade-up 0.4s ease-out;
}
.view-header-row {
display: flex;
align-items: center;
justify-content: flex-start;
gap: var(--space-2);
flex-wrap: wrap;
margin-bottom: var(--space-4);
}
.back-link {
display: inline-flex;
align-items: center;
min-height: var(--touch-min);
padding: 0 14px;
background: transparent;
color: var(--fg-muted);
border: 1px solid var(--border);
border-radius: var(--radius);
text-decoration: none;
font-size: 1rem;
font-weight: 500;
transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.back-link:hover {
color: var(--fg);
border-color: var(--border-light);
background: var(--bg-tertiary);
}
.view-title {
font-size: 2.4rem;
font-weight: 800;
letter-spacing: -0.015em;
margin: 0 0 var(--space-2);
color: var(--fg);
/* A tile title may carry a long unbreakable slash-joined token (e.g.
"(Goodman/Soderberg/Gerber)") whose intrinsic width sets the block's
min-content size and pushes the view-region past a 320 px viewport on
CI's wider-metric Linux WebKit; let it break anywhere, same as .view-desc. */
overflow-wrap: anywhere;
}
.view-desc {
font-size: 1.15rem;
color: var(--fg-muted);
margin: 0 0 var(--space-4);
/* A tile description may carry a long unbreakable formula token (e.g.
log10((sigma'0+d_sigma)/sigma'p)) whose intrinsic width sets the block's
min-content size. On a wider-metric font (CI's Linux WebKit) that token
pushes the view-region past a 320 px viewport; let it break anywhere. */
overflow-wrap: anywhere;
}
/* The rest of the description, inside the collapsed "More about this
calculator" disclosure below the answer. Same role as the shell's
.shell-detail: real reference prose the reader reaches after the result,
one click away rather than in front of it. */
.view-detail {
font-size: 1.02rem;
line-height: 1.6;
color: var(--fg-muted);
margin: 0 0 var(--space-3);
overflow-wrap: anywhere;
}
.inline-notice {
background: var(--bg-tertiary);
border: 1px solid var(--border-light);
border-left: 3px solid var(--fg);
border-radius: var(--radius);
padding: 14px 18px;
margin-bottom: var(--space-4);
font-size: 1rem;
color: var(--fg-muted);
}
/* The governs-the-work notice that every tile carries. It sits below the
answer, next to .view-detail, and it is the same sentence on all 1,709
pages -- so it reads as a quiet footnote rather than a card. The boxed
.inline-notice treatment is reserved for the tile-specific limitation
banner, which actually says something the reader has not seen before. */
.view-notice {
margin: var(--space-3) 0 0;
font-size: 1rem;
line-height: 1.5;
color: var(--fg-dim);
overflow-wrap: anywhere;
}
/* v10 §B.1 limitation-banner: visually distinct from the citation
footer and the result-area context band. Reuses .inline-notice as a
base and thickens the left rule so the "what this is NOT" message
reads at a glance. Color follows the High-Contrast palette through
the existing inline-notice hook. */
.limitation-banner {
border-left-width: 5px;
}
.limitation-banner .limitation-headline {
display: block;
font-size: 1rem;
margin-bottom: 6px;
color: var(--fg);
}
.limitation-banner .limitation-replacement,
.limitation-banner .limitation-governs,
.limitation-banner .limitation-link {
margin: 6px 0 0;
}
.limitation-banner .limitation-link a {
color: var(--fg);
text-decoration: underline;
}
.citation {
font-size: 1rem;
color: var(--fg-dim);
font-style: italic;
margin-bottom: var(--space-3);
}
/* Source links read in the brand accent so a tradesperson can see at a
glance that a citation's free-access pointer is tappable. Scoped to the
citation / reference / sources surfaces; body prose links stay
monochrome per the visual contract. citations.js fillCitationText emits
.citation-link anchors around bare domains. */
.citation-link,
.citation a,
.v6-reference-block a,
.sources-region a,
.limitation-banner a {
color: var(--accent);
text-decoration-color: var(--accent);
overflow-wrap: anywhere;
word-break: break-word;
}
.citation-link:hover,
.citation a:hover,
.v6-reference-block a:hover,
.sources-region a:hover,
.limitation-banner a:hover {
color: var(--accent-strong);
text-decoration-color: var(--accent-strong);
}
.input-region, .output-region {
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: var(--space-4);
margin-bottom: var(--space-3);
}
/* Hide an empty input-region. Group H reference utilities (color codes,
knot reference, etc.) render their content into the output region and
leave the input region empty; without this rule the empty bordered
box reads as a layout glitch. */
.input-region:empty { display: none; }
.input-region .field {
margin-bottom: var(--space-3);
}
.input-region .field:last-child { margin-bottom: 0; }
label {
display: block;
font-weight: 600;
margin-bottom: 6px;
color: var(--fg);
font-size: 1.02rem;
/* A multiline-input label carries a format hint with no natural break
point ("Cables: count,diameter(in),large|small per line"); commas and
pipes are not break opportunities, so the token's intrinsic width sets
the field's min-content size and pushes the view past a 320px viewport
on a wider-metric font (CI's Linux WebKit). Break anywhere, same as
.view-title / .view-desc and the shell prose classes. */
overflow-wrap: anywhere;
}
input[type="number"],
input[type="text"],
select,
textarea {
width: 100%;
padding: 12px 14px;
background: var(--bg-primary);
color: var(--fg);
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 1.05rem;
font-family: inherit;
transition: border-color 0.18s ease, background 0.18s ease;
}
input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
border-color: var(--fg);
background: var(--bg-secondary);
}
input[type="checkbox"] {
width: 22px;
height: 22px;
accent-color: var(--fg);
vertical-align: middle;
margin-right: 8px;
flex: none;
}
/* A repeated-row field (ui-fields.makeRowField). Same label-over-input
shape as .field, one step down in weight and spacing, because a
five-day timesheet stacks twenty of them and the row caption should
not compete with the tile's own field labels. */
.input-region .row-field { margin-bottom: var(--space-2); }
.input-region .row-field:last-child { margin-bottom: 0; }
.input-region .row-field label {
/* Full reading size: a row caption is read at arm's length on a bright
site like everything else. The step down from a tile's own field label
is carried by weight and color, not by shrinking the text. */
font-size: 1rem;
font-weight: 500;
margin-bottom: 4px;
color: var(--fg-muted);
}
/* A checkbox field (ui-fields.makeCheckbox -> .field-check). A bare 20px
checkbox is well below the 48px touch-target floor every other control
carries. Lay the box and its htmlFor-linked label in one row whose label
fills a 48px-tall, full-width hit area, so tapping anywhere on the row
toggles the box -- the effective target meets the floor (WCAG 2.2 SC 2.5.8)
without resizing the native box past a legible 22px. */
.input-region .field-check {
display: flex;
align-items: center;
gap: var(--space-2);
}
.input-region .field-check label {
display: flex;
align-items: center;
flex: 1;
min-height: var(--touch-min);
margin-bottom: 0;
cursor: pointer;
}
input::placeholder, textarea::placeholder { color: var(--fg-dim); }
input[aria-invalid="true"] {
border-color: var(--error-border);
}
.validity-reason {
display: block;
margin-top: 6px;
font-size: 1rem;
color: var(--error-text);
}
.output-region {
background: var(--bg-primary);
}
.output-region p {
margin: 0 0 var(--space-2);
font-size: 1.1rem;
color: var(--fg);
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--space-2);
}
.output-region strong {
color: var(--fg-muted);
font-weight: 600;
min-width: 0;
}
.out-value {
color: var(--fg);
font-family: var(--font-mono);
font-size: 1.15rem;
font-weight: 600;
/* A long unbreakable result token (a binary base-conversion string, a
long hex pin, a multi-segment code) must wrap inside the flex output
line rather than push the view-region wider than the viewport. The
flex item needs min-width:0 for the break to take effect. */
min-width: 0;
overflow-wrap: anywhere;
}
.output-region.output-stale .out-value,
.output-region.output-stale span {
text-decoration: line-through;
color: var(--fg-dim);
}
.output-region dl {
margin: 0;
}
.output-region dt {
margin-top: var(--space-3);
font-weight: 700;
color: var(--fg);
}
.output-region dt:first-child { margin-top: 0; }
.output-region dd {
margin: 4px 0 var(--space-2) 0;
color: var(--fg-muted);
}
.output-region ul, .output-region ol {
margin: 0 0 var(--space-2) var(--space-3);
padding: 0;
color: var(--fg-muted);
}
.output-region li {
margin-bottom: 6px;
}
/* "Test with example" button (ui-fields.attachExampleButton), prepended to
each calculator's input region as the primary "show me a worked case" CTA.
The bare <button> default renders ~22 px tall, below the 48 px touch-target
floor every other control carries (and below WCAG 2.2 SC 2.5.8); this gives
it the floor plus the site's secondary-button language. */
.example-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: var(--touch-min);
margin-bottom: var(--space-3);
padding: 0 var(--space-4);
background: var(--bg-tertiary);
color: var(--fg);
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 1rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: background 0.18s ease, border-color 0.18s ease;
}
.example-btn:hover {
background: var(--bg-secondary);
border-color: var(--border-light);
}
/* Per-output Copy and Copy-all. Min 48 px touch target per spec.md
section 11.6 / spec-v2.md section 1. */
.copy-btn,
.copy-all-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: var(--touch-min);
background: transparent;
color: var(--fg-muted);
border: 1px solid var(--border-light);
border-radius: var(--radius-sm);
padding: 0 14px;
font-size: 1rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.copy-btn:hover,
.copy-all-btn:hover {
color: var(--bg-primary);
background: var(--fg);
border-color: var(--fg);
}
.copy-all-btn {
margin-top: var(--space-3);
}
/* Copy-success pulse. When a copy button reports success (clipboard.js
flashCopied) it swaps its label to "Copied!" and adds .is-copied; the
accent fill confirms the action visually for the ~1.3s before it
restores. The accent uses --bg for text so it stays AA in both themes.
The lift is transform-only and is neutralized by the global
prefers-reduced-motion rule. */
.copy-btn.is-copied,
.copy-all-btn.is-copied,
.view-copy-reference.is-copied {
color: var(--bg);
background: var(--accent);
border-color: var(--accent);
transform: translateY(-1px);
}
/* The proof block. Every citation, reference row, and source stamp lives
inside it, collapsed by default, so a tile reads as title -> inputs ->
answer and the receipts are one click away instead of a wall of prose
above the calculator. */
/* A prose "Note" output row (ui-fields.makeNoteLine): collapsed inside the
answer area so the numbers stay on one screen. Same disclosure affordance as
.proof, one size down. */
.note-row {
margin: var(--space-2) 0 0;
}
.note-row > summary {
cursor: pointer;
font-size: 1rem;
font-weight: 600;
color: var(--fg-muted);
display: list-item;
list-style-position: inside;
min-height: var(--touch-min);
line-height: var(--touch-min);
}
.note-row > summary:hover { color: var(--fg); }
.note-row .note-value {
display: block;
font-family: inherit;
font-size: 1rem;
font-weight: 400;
line-height: 1.6;
color: var(--fg-muted);
padding-bottom: var(--space-2);
}
.proof {
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: var(--space-4);
background: var(--bg-tertiary);
}
/* `display: list-item` (not flex) so the browser keeps drawing the
disclosure triangle: a summary styled as a flex container loses its
marker in Chromium, and the block then reads as an inert heading. */
.proof > summary {
cursor: pointer;
padding: 16px 18px;
font-size: 1rem;
font-weight: 600;
color: var(--fg-muted);
display: list-item;
list-style-position: inside;
}
.proof > summary:hover { color: var(--fg); }
.proof[open] > summary { border-bottom: 1px solid var(--border); }
.proof > *:not(summary) {
padding-left: 18px;
padding-right: 18px;
}
.proof > .citation { margin-top: var(--space-3); }
.proof > .sources-region:last-child { padding-bottom: var(--space-3); }
.sources-region {
margin-top: var(--space-4);
padding-top: var(--space-3);
border-top: 1px solid var(--border);
}
/* An empty sources-region (tile with no structured citation entry and no
data-source stamp) would otherwise draw a stray rule inside the proof
block. */
.sources-region:empty {
margin-top: 0;
padding-top: 0;
border-top: 0;
}
.data-source-stamp {
font-size: 0.9375rem;
color: var(--fg-dim);
font-family: var(--font-mono);
margin: 0;
}
/* v6 §3 reference block. Mounts in the sources-region beneath the result,
above the legacy data-source-stamp. Sized at the same scale as the answer
per spec §8 (the reference is part of the answer). */
.v6-reference-block {
margin-top: var(--space-3);
padding-top: var(--space-3);
border-top: 1px dashed var(--border);
}
.v6-reference-heading {
font-size: 1rem;
margin: 0 0 var(--space-2) 0;
}
.v6-reference-subheading {
font-size: 1rem;
margin: var(--space-2) 0 var(--space-1) 0;
}
.v6-reference-list,
.v6-assumption-list {
margin: 0;
display: grid;
grid-template-columns: max-content 1fr;
gap: 4px var(--space-2);
}
.v6-reference-list dt,
.v6-assumption-list dt {
font-weight: 600;
white-space: nowrap;
}
.v6-reference-list dd,
.v6-assumption-list dd {
margin: 0;
}
.v6-assumption-note {
margin: var(--space-1) 0 0 0;
font-size: 1rem;
color: var(--fg-dim);
}
.view-copy-reference {
margin-top: var(--space-3);
min-height: var(--touch-min);
}
/* ============================================================
Footer (encryptalotta credit-pill mirror)
============================================================ */
.site-footer {
margin: var(--space-6) auto var(--space-5);
max-width: var(--shell-max);
padding: 0 var(--space-4);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-4);
text-align: center;
}
.site-footer .disclaimer {
font-size: 0.9375rem;
color: var(--fg-dim);
max-width: 720px;
line-height: 1.6;
margin: 0;
}