-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecondo.css
More file actions
1024 lines (864 loc) · 21.8 KB
/
Copy pathsecondo.css
File metadata and controls
1024 lines (864 loc) · 21.8 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
*, *::before, *::after{
box-sizing:border-box;
}
:root{
color-scheme: light;
/* brand */
/* the color rgb(184,0,0) the the rgb value from the secondo-logo */
--secondo-red-rgb: 184,0,0;
--secondo-red: rgb(var(--secondo-red-rgb));
--secondo-red-dark-rgb: 138,0,0;
--secondo-red-dark: rgb(var(--secondo-red-dark-rgb));
--secondo-red-hover: rgb(120,0,0);
--secondo-red-btn-hover: rgb(140,0,0);
--secondo-visited-rgb: 138,64,54;
--secondo-visited: rgb(var(--secondo-visited-rgb));
/* surfaces */
--surface-page: rgb(240,240,240);
--surface-raised: white;
--surface-code: rgb(228,228,228);
--surface-pre: rgb(245,245,245);
/* borders, light to dark */
--border-divider: rgb(222,222,222);
--border-subtle: rgb(224,224,224);
--border-strong: rgb(210,210,210);
--border-table: rgb(228,228,228);
/* text, strongest to faintest */
--text-body: black;
--text-muted: rgb(70,70,70);
--text-venue: rgb(110,110,110);
--text-footer: rgb(90,90,90);
--text-faint: rgb(140,140,140);
--text-caption: gray;
/* syntax highlighting (Rouge); see the .highlight rules further down */
--code-comment: rgb(106,115,125);
--code-keyword: rgb(0,92,197);
--code-string: rgb(3,106,60);
--code-number: rgb(0,92,197);
--code-builtin: rgb(111,66,193);
--code-operator: rgb(70,70,70);
/* type */
--font-ui: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
--font-heading: ui-serif,Georgia,"Times New Roman",serif;
--font-mono: ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
--line-height-body: 1.5;
/* heading scale; h1 and h2 grow with the viewport, the rest are fixed */
--step-h1: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
--step-h2: clamp(1.45rem, 1.25rem + 0.8vw, 1.75rem);
--step-h3: 1.2rem;
--step-h4: 1.02rem;
/* radii */
--radius-sm: 3px;
--radius-md: 6px;
--radius-lg: 8px;
--radius-xl: 10px;
/* the reading column shared by content blocks and the footer */
--content-max: 48rem;
}
/* page format */
body{
margin:0;
font-size:100%;
font-style:normal;
font-weight:normal;
font-family:var(--font-ui);
/* long-form documentation needs more leading than the browser default */
line-height:var(--line-height-body);
color:var(--text-body);
background-color:var(--surface-page);
text-align:left;
}
.secondo{
font-variant:small-caps;
}
/* headlines */
h1{ color:var(--secondo-red);
text-align:center;
line-height:1.25;
font-size:var(--step-h1);
font-style:normal;
font-weight:bold;
font-family:var(--font-heading); }
h2{ color:var(--secondo-red);
line-height:1.25;
font-size:var(--step-h2);
font-style:normal;
font-weight:bold;
font-family:var(--font-heading); }
h3{ color:var(--secondo-red);
line-height:1.25;
font-size:var(--step-h3);
font-style:italic;
font-weight:bold;
font-family:var(--font-heading); }
h4,h5,h6{
line-height:1.25;
font-size:var(--step-h4);
font-style:normal;
font-weight:bold;
font-family:var(--font-heading); }
/* keep headings off ragged one-word last lines, and keep in-page anchor
targets clear of the fixed mobile hamburger */
h1,h2,h3{
text-wrap:balance;
scroll-margin-top:24px;
}
/* keyboard focus must stay visible in both themes; currentColor adapts */
:focus-visible{
outline:2px solid currentColor;
outline-offset:2px;
}
/* navigation sidebar (_includes/nav.html) */
aside.sidebar{
position:fixed;
top:0;
left:0;
width:270px;
height:100vh;
/* dvh accounts for collapsing mobile browser chrome; vh above is the fallback */
height:100dvh;
overflow-y:auto;
font-family:var(--font-ui);
font-size:1rem;
line-height:normal;
text-align:left;
background:linear-gradient(180deg, var(--secondo-red) 0%, var(--secondo-red-dark) 100%);
}
/* main content area, offset by the fixed sidebar width */
main{
display:block;
margin-left:270px;
padding:20px;
overflow-x:auto;
}
.nav-toggle-btn{
display:none;
}
a.nav-logo,
a.nav-logo:link,
a.nav-logo:visited,
a.nav-logo:hover,
a.nav-logo:focus{
display:block;
margin:16px 14px 8px;
padding:12px 10px 10px;
background:var(--surface-raised);
border-radius:var(--radius-lg);
text-align:center;
box-shadow:0 2px 6px rgba(0,0,0,0.3);
}
.nav-logo img{
width:100%;
max-width:210px;
height:auto;
padding:0;
margin:0;
}
nav.navi{
padding:8px 8px 24px;
}
nav.navi ul{
list-style:none;
margin:0;
padding:0;
}
nav.navi li{
margin:1px 0;
}
nav.navi .navi-label{
display:block;
padding:12px 12px 4px;
color:white;
font-weight:bold;
font-size:0.85rem;
letter-spacing:0.3px;
}
nav.navi > ul > li > ul{
margin:2px 4px 8px 10px;
padding-left:10px;
border-left:1px solid rgba(255,255,255,0.3);
}
ul{
list-style-type:square;
list-style-position:outside;
}
ul.algebra{
list-style-type:none;
display:grid;
grid-template-columns:repeat(2, 1fr);
gap:16px;
margin:16px 0 0;
padding:0;
max-width:46rem;
}
ul.algebra li{
background:var(--surface-raised);
border:1px solid var(--border-subtle);
border-left:3px solid var(--secondo-red);
padding:14px 18px;
}
ul.algebra span.algebraname{
display:block;
margin-bottom:4px;
color:var(--secondo-red);
font-size:1.05rem;
}
/* navigation card grid (index.html "Where to go next") */
ul.cards{
list-style:none;
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:16px;
margin:18px 0 0;
padding:0;
max-width:48rem;
}
ul.cards li{
display:flex;
}
a.card,
a.card:link,
a.card:visited{
display:flex;
flex-direction:column;
width:100%;
padding:15px 18px;
background:var(--surface-raised);
border:1px solid var(--border-subtle);
border-left:3px solid var(--secondo-red);
text-decoration:none;
color:var(--text-body);
transition:box-shadow .15s ease, border-left-color .15s ease;
}
a.card:hover,
a.card:focus{
text-decoration:none;
color:var(--text-body);
box-shadow:0 2px 12px rgba(0,0,0,0.09);
border-left-color:var(--secondo-red-dark);
}
a.card .card-title{
font-weight:bold;
font-size:1.02rem;
color:var(--secondo-red);
margin-bottom:6px;
}
a.card .card-desc{
font-size:0.88rem;
color:var(--text-muted);
line-height:1.5;
}
/* Links don't change the order of this definitions */
/* not visited */
a:link{ color:var(--secondo-red);
font-style:normal;
text-decoration:underline;
text-decoration-color:rgba(var(--secondo-red-rgb),0.4);
text-underline-offset:2px;
transition:color .15s ease, text-decoration-color .15s ease;
}
nav.navi a.navi{
display:block;
padding:9px 12px;
font-family:var(--font-ui);
font-weight:600;
font-style:normal;
color:white;
font-size:0.9rem;
text-decoration:none;
border-left:3px solid transparent;
border-radius:0 5px 5px 0;
transition:background-color .15s ease, border-color .15s ease;
}
nav.navi > ul > li > ul a.navi{
font-weight:400;
font-size:0.82rem;
padding:6px 10px;
color:rgba(255,255,255,0.85);
}
/* visited*/
a:visited{color:var(--secondo-visited);
font-style:normal;
text-decoration:underline;
text-decoration-color:rgba(var(--secondo-visited-rgb),0.4);
text-underline-offset:2px;
}
nav.navi a.navi:visited{
color:white;
}
nav.navi > ul > li > ul a.navi:visited{
color:rgba(255,255,255,0.85);
}
/* activ */
a:hover,a:focus{ color:var(--secondo-red-hover);
font-style:normal;
text-decoration:underline;
text-decoration-color:var(--secondo-red-hover);
}
nav.navi a.navi:hover,
nav.navi a.navi:focus,
nav.navi a.navi.active{
background-color:rgba(255,255,255,0.16);
border-left-color:white;
color:white;
text-decoration:none;
}
nav.navi > ul > li > ul a.navi:hover,
nav.navi > ul > li > ul a.navi:focus,
nav.navi > ul > li > ul a.navi.active{
color:white;
}
img{ border-style:none;
padding:0;
margin:0;
max-width:100%;
height:auto;
}
span.algebraname{
color:var(--text-body);
font-weight:bolder;
}
section.section{
padding:28px 0;
max-width:48rem;
}
section.section + section.section{
border-top:1px solid var(--border-divider);
}
div.short{
margin-left:2rem;
text-align:left;
max-width:46rem;
}
/* screenshot + caption for query examples (index.html) */
figure.query-figure{
margin:18px 0 34px;
max-width:640px;
}
figure.query-figure img{
border:1px solid var(--border-strong);
}
/* caption styling is shared by the query figures on index.html and the
screenshot walkthrough on content_getting_started.html */
figcaption{
margin:8px 0 0;
font-size:0.8rem;
color:var(--text-caption);
line-height:1.5;
}
div.paper{
font-style:italic;
}
div.comment{
color:var(--text-caption);
}
div.footnote{
margin-top:15px;
border-top:1px;
border-top-style:solid;
padding-top:15px;
font-size:x-small;
}
/* shared site footer (_includes/footer.html) */
footer.site-footer{
margin-top:48px;
padding-top:16px;
border-top:1px solid var(--border-strong);
max-width:48rem;
font-size:0.8rem;
color:var(--text-footer);
line-height:1.7;
}
footer.site-footer .site-footer-date{
display:block;
margin-top:6px;
color:var(--text-faint);
}
/* content classes used by BerlinMOD/BerlinMOD.html */
div.normal{
margin-left:2rem;
text-align:left;
max-width:46rem;
}
div.deprecated{
color:var(--text-caption);
font-style:italic;
}
a.deprecated{
color:var(--text-caption);
}
div.indented{
margin-left:2rem;
}
span.object{
font-family:var(--font-mono);
font-size:0.9em;
}
/* publication list (content_papers.html) */
ol.pub-list{
list-style:none;
margin:20px 0 0;
padding:0;
max-width:52rem;
}
ol.pub-list li{
display:flex;
align-items:flex-start;
gap:16px;
padding:14px 4px;
border-top:1px solid var(--border-subtle);
border-left:3px solid transparent;
transition:background-color .15s ease, border-left-color .15s ease;
}
ol.pub-list li:first-child{
border-top:none;
}
ol.pub-list li:hover{
background-color:rgba(var(--secondo-red-rgb),0.035);
border-left-color:var(--secondo-red);
}
.pub-meta{
flex:1 1 auto;
min-width:0;
}
.pub-meta .authors{
display:block;
color:var(--text-muted);
}
.pub-meta .title{
display:block;
margin-top:2px;
font-weight:bold;
color:var(--text-body);
}
.pub-meta .venue{
display:block;
margin-top:2px;
font-style:italic;
color:var(--text-venue);
}
.pub-badge{
display:inline-block;
margin-top:6px;
padding:2px 8px;
font-style:normal;
font-size:small;
font-weight:bold;
color:white;
background:var(--secondo-red);
border-radius:var(--radius-xl);
}
.pub-links{
flex:0 0 auto;
display:flex;
flex-direction:column;
align-items:flex-end;
gap:4px;
padding-top:2px;
text-align:right;
}
.pub-links a{
font-size:0.85rem;
white-space:nowrap;
}
span.file{
font-family:var(--font-mono);
font-size:0.9em;
}
span.command{
font-family:var(--font-mono);
font-size:large;
}
/* inline code and code blocks (used by documentation pages)
The size is set explicitly here. Browsers shrink monospace text only when
the family is the bare `monospace` keyword; naming a real face first opts
out of that, which would otherwise render code noticeably larger than the
surrounding prose. */
code{
font-family:var(--font-mono);
font-size:0.9em;
background-color:var(--surface-code);
padding:1px 3px;
border-radius:var(--radius-sm);
}
pre{
font-family:var(--font-mono);
font-size:0.875rem;
line-height:1.45;
background-color:var(--surface-pre);
border:1px solid var(--border-strong);
border-left:3px solid var(--secondo-red);
padding:10px 12px;
overflow-x:auto;
max-width:52rem;
text-align:left;
}
pre code{
background-color:transparent;
font-size:inherit;
padding:0;
}
/* content data tables (content_sources.html and other download/overview pages) */
div.table-wrap{
overflow-x:auto;
max-width:52rem;
}
table.datatable{
border-collapse:collapse;
margin-top:10px;
text-align:left;
}
table.datatable th{
text-align:left;
padding:7px 18px 7px 0;
border-bottom:2px solid var(--secondo-red);
vertical-align:top;
}
table.datatable td{
padding:7px 18px 7px 0;
border-bottom:1px solid var(--border-table);
vertical-align:top;
}
table.datatable tr:last-child td{
border-bottom:none;
}
table.datatable th:last-child,
table.datatable td:last-child{
padding-right:0;
}
a.btn:link,
a.btn:visited{
display:inline-block;
font-family:var(--font-ui);
font-weight:600;
font-style:normal;
font-size:0.95rem;
color:white;
background:var(--secondo-red);
padding:8px 20px;
border-radius:var(--radius-md);
border:none;
text-decoration:none;
transition:background-color .15s ease;
}
a.btn:hover,
a.btn:focus {
color:white;
background:var(--secondo-red-btn-hover);
text-decoration:none;
}
a.btn.btn-outline:link,
a.btn.btn-outline:visited{
color:var(--secondo-red);
background:transparent;
border:2px solid var(--secondo-red);
padding:6px 18px;
}
a.btn.btn-outline:hover,
a.btn.btn-outline:focus {
color:white;
background:var(--secondo-red);
border-color:var(--secondo-red);
}
/* in-page table of contents for long single-page documents
(DSecondo/DSECONDO-Website/index.html) */
nav.page-toc{
max-width:48rem;
margin:20px 0 8px;
padding:14px 18px;
background:var(--surface-raised);
border:1px solid var(--border-subtle);
border-left:3px solid var(--secondo-red);
}
nav.page-toc ul{
list-style:none;
display:flex;
flex-wrap:wrap;
gap:8px 22px;
margin:0;
padding:0;
}
nav.page-toc a{
font-size:0.9rem;
font-weight:600;
}
/* ------------------------------------------------------------------
Syntax highlighting (Rouge, build-time)
Only blocks with a real lexer are highlighted -- shell, ini, diff.
SECONDO's own executable language has no Rouge lexer, so those blocks
stay plain <pre>. Both must look identical apart from colour, hence
the shared box styling below.
------------------------------------------------------------------ */
/* the inner <pre> picks up the shared pre rule above, so a highlighted
block and a plain one are the same box; the figure only carries the
vertical rhythm that <pre> would otherwise supply itself */
figure.highlight{
margin:1em 0;
max-width:52rem;
}
figure.highlight pre{
margin:0;
}
/* Rouge token classes. Anything not listed inherits the body colour,
which is the right default for identifiers. */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cp, .highlight .cs{
color:var(--code-comment);
font-style:italic;
}
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt{
color:var(--code-keyword);
}
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc,
.highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sx{
color:var(--code-string);
}
.highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .mo{
color:var(--code-number);
}
.highlight .nb, .highlight .nc, .highlight .nf, .highlight .nn, .highlight .nv, .highlight .vg{
color:var(--code-builtin);
}
.highlight .o, .highlight .ow, .highlight .p{
color:var(--code-operator);
}
/* SQL's lexer classes double-quoted text as a quoted identifier (.nv), but
in SECONDO's optimizer syntax those are string literals. Scoped to sql so
shell variables ($VAR, also .nv) keep the builtin colour. */
.language-sql .nv{
color:var(--code-string);
}
.highlight .gd{ color:var(--code-string); }
.highlight .gi{ color:var(--code-keyword); }
.highlight .err{ color:inherit; }
/* ------------------------------------------------------------------
Copy-to-clipboard button (assets/site.js wraps each code block)
------------------------------------------------------------------ */
div.code-block{
position:relative;
max-width:52rem;
}
button.copy-btn{
position:absolute;
top:6px;
right:6px;
padding:3px 9px;
font-family:var(--font-ui);
font-size:0.75rem;
font-weight:600;
color:var(--text-muted);
background:var(--surface-raised);
border:1px solid var(--border-strong);
border-radius:var(--radius-sm);
cursor:pointer;
/* stays out of the way on pages with dozens of code blocks */
opacity:0;
transition:opacity .15s ease, color .15s ease, border-color .15s ease;
}
div.code-block:hover button.copy-btn,
div.code-block:focus-within button.copy-btn{
opacity:1;
}
button.copy-btn:hover{
color:var(--secondo-red);
border-color:var(--secondo-red);
}
button.copy-btn.copied{
opacity:1;
color:var(--secondo-red);
border-color:var(--secondo-red);
}
/* keyboard users must be able to see it even without hover */
button.copy-btn:focus-visible{
opacity:1;
}
/* ------------------------------------------------------------------
Heading anchor links (assets/site.js)
------------------------------------------------------------------ */
a.heading-anchor,
a.heading-anchor:link,
a.heading-anchor:visited{
margin-left:0.4em;
color:var(--text-faint);
font-size:0.8em;
font-weight:normal;
text-decoration:none;
opacity:0;
transition:opacity .15s ease, color .15s ease;
}
h2:hover a.heading-anchor,
h3:hover a.heading-anchor,
a.heading-anchor:focus-visible{
opacity:1;
}
a.heading-anchor:hover{
color:var(--secondo-red);
text-decoration:none;
}
ol:not(.pub-list) > li{
margin-bottom:0.8em;
}
.guide-indent > h3{
margin-left:1rem;
margin-top:1.6em;
}
.guide-indent > h4{
margin-left:2rem;
margin-top:1.4em;
}
.guide-indent > p,
.guide-indent > ul,
.guide-indent > ol,
.guide-indent > pre,
.guide-indent > figure.highlight,
.guide-indent > div.code-block{
margin-left:2rem;
}
/* ------------------------------------------------------------------
Small utilities
Each of these replaces an inline style attribute that was repeated
across the content pages.
------------------------------------------------------------------ */
/* centred block, mostly diagrams and figure wrappers */
.center{
text-align:center;
margin:16px 0;
}
/* a small trailing aside under a section */
p.note{
margin-top:16px;
font-size:0.9rem;
}
/* the hero button pair on index.html */
.btn-row{
display:flex;
justify-content:center;
flex-wrap:wrap;
gap:12px;
margin:20px 0 8px;
}
/* multi-column name lists (content_team.html) */
ul.two-col,
ul.four-col{
column-gap:2rem;
}
ul.two-col{ column-count:2; }
ul.four-col{ column-count:4; column-gap:1.5rem; }
/* postal address block (content_contact.html) */
address.contact{
font-style:normal;
margin:12px 0;
}
address.contact .label{
display:block;
margin-top:1em;
font-weight:bold;
}
address.contact .line{
display:block;
padding-left:1em;
}
/* ------------------------------------------------------------------
Responsive breakpoints
1100px narrow desktop / landscape tablet -- shrink the sidebar
800px mobile -- sidebar becomes a hamburger overlay
640px small phone -- multi-column grids collapse to one column
------------------------------------------------------------------ */
@media (max-width:1100px){
aside.sidebar{
width:220px;
}
main{
margin-left:220px;
padding-left:16px;
padding-right:16px;
}
}
@media (max-width:800px){
.nav-toggle-btn{
display:flex;
align-items:center;
justify-content:center;
position:fixed;
top:12px;
left:12px;
z-index:1000;
width:44px;
height:44px;
background:var(--secondo-red);
color:white;
font-size:22px;
line-height:1;
font-family:inherit;
border:none;
border-radius:var(--radius-md);
cursor:pointer;
box-shadow:0 2px 6px rgba(0,0,0,0.3);
}
/* the outline is drawn on the light page background, so it needs a dark
colour rather than the button's own red */
.nav-toggle-btn:focus-visible{
outline:3px solid var(--text-muted);
outline-offset:2px;
}
aside.sidebar{
position:fixed;
top:0;
left:0;
width:100%;
max-width:320px;
height:100vh;
height:100dvh;
max-height:100dvh;
overflow-y:hidden;
transform:translateX(-100%);
/* visibility keeps the closed menu out of the tab order; transform alone
moves it off-screen but leaves its links focusable */
visibility:hidden;
transition:transform .25s ease, visibility .25s ease;
z-index:999;
}
aside.sidebar.nav-open{
transform:translateX(0);
visibility:visible;
overflow-y:auto;
}
main{
margin-left:0;
padding-top:68px;
}
/* drop the reading-column indent on small screens */
div.short,
div.normal,
div.indented,
.guide-indent > h3,
.guide-indent > h4,
.guide-indent > p,
.guide-indent > ul,
.guide-indent > ol,
.guide-indent > pre,
.guide-indent > figure.highlight,
.guide-indent > div.code-block{
margin-left:0;
}
/* the card grid collapses with the sidebar rather than at its own
breakpoint, so cards and navigation change together */
ul.cards{ grid-template-columns:1fr; }
}
@media (max-width:800px){