Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
/***********************************************************************************************************************************
Documentation Style
 
Every color is a token declared once and declared again for a dark page, so light and dark are one design rather than one being a
patch on the other. A rule that names a color directly steps outside that, since only the tokens are redeclared.
 
The page header and the menu run the full width of the window while their content stays in the reading column, and the menu sticks
to the top of the viewport so the way out of a long page is always in reach. A section is marked by a bar that thins as the level
drops, so depth is read from the bar rather than from the size of the type.
***********************************************************************************************************************************/
 
/***********************************************************************************************************************************
Tokens
***********************************************************************************************************************************/
:root
{
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
 
    /* The page is this wide and centered, until the window is too narrow for it and the gutter falls back to its minimum */
    --page-width: 69rem;
    --gutter: max(1.25rem, calc((100% - var(--page-width)) / 2));
    --radius: 6px;
    --radius-lg: 10px;
    --bar-height: 3rem;
 
    /* The contents beside the text. At the width of the page the column and the gap add up to the space the bar above them leaves
       over, and it gives the column back as the window narrows so the text keeps a reasonable measure. */
    --sidebar-width: clamp(13rem, 20vw, 17rem);
    --sidebar-gap: 1.5rem;
 
    /* The icon a button is drawn with, declared here rather than drawn in the page, which would carry one for every button it has.
       Each is drawn as a mask, so the color it is drawn in is the color of the button rather than a color of its own, and the color
       in it is only there to say what the mask covers. A linefeed inside one is escaped so that the file keeps its width, and what
       that leaves behind is space between attributes, which is nothing. */
    --icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'\
        stroke='black' stroke-width='2'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M6 15H5a2 2 0 0 1-2-2V5a2\
        2 0 0 1 2-2h8a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
    --icon-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'\
        stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5.5 5.5L20\
        7'/%3E%3C/svg%3E");
 
 
    --bg: #ffffff;
    --bg-surface: #f7f9fb;
    --bg-surface-2: #eef2f6;
    --bg-bar: #ffffff;
    --text: #0f172a;
    --text-muted: #55637a;
    --border: #e3e8ef;
    --border-strong: #cbd4e1;
 
    --keyword-weight: 500;
    --keyword-bg: var(--bg-surface);
    --keyword-border: #e9edf2;
 
    /* The end of a menu that carries on past the window: the color of the rules the bar is drawn with against a light bar, and a
       shade inside them against a dark bar, where the same step away from the bar reads harder. The band holds this color across a
       fifth of its width before it gives out, and that is what carries it, so a color picked to carry on its own is too much. */
    --menu-edge: var(--border);
 
    --accent: #0d5f9e;
    --accent-hover: #0a4a7c;
    --accent-soft: #e8f1f9;
 
    --code-bg: #1b2330;
    --code-text: #e2e8f0;
    --code-border: #2a3441;
    --code-output-bg: #263141;
    --code-prompt: #6aa9e0;
    --code-highlight-bg: #1d6b33;
    --code-error-bg: #9c3030;
 
    --note-accent: #2f74b5;
    --note-bg: #eef5fb;
    --tip-accent: #2f8f4e;
    --tip-bg: #edf7f0;
    --important-accent: #7c56b8;
    --important-bg: #f3effa;
    --caution-accent: #b07d16;
    --caution-bg: #fbf5e6;
    --warning-accent: #bf3d3d;
    --warning-bg: #fdeeee;
 
    --shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
 
@media (prefers-color-scheme: dark)
{
    :root
    {
        --bg: #0b0f15;
        --bg-surface: #121923;
        --bg-surface-2: #18212e;
        --bg-bar: #0e141c;
        --text: #e2e8f0;
        --text-muted: #94a3b8;
        --border: #1f2937;
        --border-strong: #334155;
 
        --keyword-weight: 600;
        --keyword-bg: var(--bg-surface-2);
        --keyword-border: var(--border);
        --menu-edge: #1d2634;
 
        --accent: #64a8ef;
        --accent-hover: #8fc3f5;
        --accent-soft: #12233a;
 
        --code-bg: #060a0f;
        --code-text: #e2e8f0;
        --code-border: #1c2531;
        --code-output-bg: #121a24;
        --code-prompt: #64a8ef;
        --code-highlight-bg: #1c5c2c;
        --code-error-bg: #8c2f2f;
 
        --note-accent: #64a8ef;
        --note-bg: #101c2b;
        --tip-accent: #4fb974;
        --tip-bg: #0f2216;
        --important-accent: #a98be0;
        --important-bg: #1c172c;
        --caution-accent: #d3a13c;
        --caution-bg: #241c10;
        --warning-accent: #e57676;
        --warning-bg: #291616;
 
        --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    }
}
 
/***********************************************************************************************************************************
Html and body
***********************************************************************************************************************************/
html
{
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
 
    /* Opening details does not scroll the page */
    overflow-anchor: none;
}
 
body
{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    overflow-wrap: break-word;
}
 
.page-header, .page-toc, .page-body, .page-footer, .menu-body
{
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
 
a:link, a:visited
{
    color: var(--accent);
    text-decoration: none;
}
 
a:hover, a:active
{
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}
 
.section-body-text a:link, .section-body-text a:visited, .section-intro a:link, .section-intro a:visited,
li.list-unordered a:link, li.list-unordered a:visited
{
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--border-strong);
}
 
.section-body-text a:hover, .section-intro a:hover, li.list-unordered a:hover
{
    text-decoration-color: var(--accent);
}
 
/* Leave room under the sticky bar when a link jumps to a section */
a[id]
{
    scroll-margin-top: calc(var(--bar-height) + 1rem);
}
 
/***********************************************************************************************************************************
Header
***********************************************************************************************************************************/
.page-header
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
 
    /* Only there when the title does not fit beside the name, and kept tight because a window that narrow has none to spare */
    row-gap: .425rem;
 
    padding-top: 1rem;
    padding-bottom: 1rem;
}
 
/* The mark and the name together, drawn as itself rather than masked, so it keeps the colors it was drawn with and the ones it
   was drawn with for a dark page. Only the height is set, and the ratio below is the viewBox of the file it draws. */
.page-header-logo
{
    flex: none;
    height: 3.5rem;
    aspect-ratio: 383.2 / 101.3;
    background-image: url("slogo.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
}
 
/* The logo says the name, so the heading is left for what reads the page rather than what looks at it, and so is the name the logo
   holds, which is what the logo says to a reader who cannot see it */
.page-header-title, .page-header-logo-name
{
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
 
/* What the page is sits in what the name leaves over, centered there by the space either side of it. The space before it is also
   what holds it off the name, and the space after it asks for no room of its own, so a line too narrow to hold the title beside
   the name breaks before the title rather than after it, which leaves the title at the start of a line rather than centered on
   one. */
.page-header::before, .page-header::after
{
    content: "";
    flex: 1 0 0;
}
 
.page-header::before
{
    order: 1;
    flex-basis: .85rem;
}
 
.page-header-subtitle
{
    order: 2;
    color: var(--text-muted);
    font-size: 1.25rem;
}
 
.page-header::after
{
    order: 3;
}
 
/***********************************************************************************************************************************
Menu
***********************************************************************************************************************************/
.page-menu
{
    position: sticky;
    top: 0;
    z-index: 20;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-bar);
    box-shadow: var(--shadow);
}
 
/* The bar keeps its height however many pages are in the menu, so a menu wider than the window scrolls sideways rather than
   wrapping into rows the height would cut off. It is centered by the margins at its ends rather than by the bar, since a centered
   row that overflows hangs out both ends and the start of it is past where the scroll can reach. */
.menu-body
{
    display: flex;
    align-items: center;
    gap: 1.75rem;
    height: var(--bar-height);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
 
/* An end the menu carries on past fades out rather than stopping flat, since a phone draws the scrollbar only while a finger is on
   it and at rest nothing else says there is more menu than the window is showing. Drawn over the bar rather than cut out of the
   menu, since a cutout is measured against everything the menu can be scrolled to rather than against the part of it the window is
   showing, which lands the fade somewhere off the side of the window. Drawn in a color of its own rather than in the color of the
   bar, since where the menu breaks between one page and the next there is no text beneath the fade for it to take, and a fade in
   the color of the bar would be a fade over nothing. It holds that color across the near third of its width before it gives out,
   since a fade at full color in nothing but its last pixel is hardly a fade at all. Drawn inside the rules the bar is drawn with,
   so those run the full width whichever end is fading. Which ends fade only a measurement can say, so the script says it. */
.page-menu::before, .page-menu::after
{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2rem;
    opacity: 0;
    pointer-events: none;
}
 
.page-menu::before
{
    left: 0;
    background: linear-gradient(to right, var(--menu-edge) 20%, transparent);
}
 
.page-menu::after
{
    right: 0;
    background: linear-gradient(to left, var(--menu-edge) 20%, transparent);
}
 
.page-menu-fade-left::before, .page-menu-fade-right::after
{
    opacity: 1;
}
 
.menu:first-child
{
    margin-left: auto;
}
 
.menu:last-child
{
    margin-right: auto;
}
 
.menu
{
    white-space: nowrap;
}
 
a.menu-link:link, a.menu-link:visited, .menu-current
{
    display: block;
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 550;
    letter-spacing: -.005em;
    text-decoration: none;
}
 
a.menu-link:hover, a.menu-link:active
{
    color: var(--accent);
    text-decoration: none;
}
 
/* The page a reader is on, marked by full-strength text and a rule in the accent color so it reads as where they are rather than
   as somewhere to go */
.menu-current
{
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: .5em;
}
 
/***********************************************************************************************************************************
Table of Contents
***********************************************************************************************************************************/
.page-toc
{
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}
 
.page-toc-header
{
    margin-bottom: .75rem;
    color: var(--text-muted);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
 
.page-toc-body
{
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    padding: 1.25rem 1.5rem;
}
 
.section1-toc
{
    margin-top: .9rem;
}
 
.section1-toc:first-of-type
{
    margin-top: 0;
}
 
.section1-toc-title
{
    font-size: 1.0625rem;
    font-weight: 650;
}
 
.section2-toc
{
    margin-top: .1rem;
    margin-left: 1.1rem;
}
 
.section3-toc
{
    margin-left: 1.1rem;
}
 
.page-toc a:link, .page-toc a:visited
{
    color: var(--text);
    text-decoration: none;
}
 
.page-toc a.toc-active:link, .page-toc a.toc-active:visited
{
    color: var(--accent);
    font-weight: 700;
}
 
.page-toc a.toc-active-parent:link, .page-toc a.toc-active-parent:visited
{
    color: var(--text);
    font-weight: 700;
}
 
.page-toc a:hover, .page-toc a:active
{
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
 
/***********************************************************************************************************************************
Contents Beside the Text
 
Given a window wide enough for a column of its own, the contents leave the flow and sit beside the text, where they stay in view
while the page scrolls. Narrower than that they stay above the text, which is the only place a small screen has room for them.
 
The width that decides this is the narrowest one that still leaves the text a readable measure once the contents have taken their
column, which is well under a full screen: a window at three quarters of a laptop screen is a normal way to read a page.
***********************************************************************************************************************************/
@media (min-width: 56rem)
{
    body.page-sidebar
    {
        display: grid;
        grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
        column-gap: var(--sidebar-gap);
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }
 
    body.page-sidebar > .page-header, body.page-sidebar > .page-menu, body.page-sidebar > .page-footer
    {
        grid-column: 1 / -1;
    }
 
    /* The bar is drawn across the window, so it reaches back out through the padding the grid is inset by */
    body.page-sidebar > .page-menu
    {
        margin-left: calc(var(--gutter) * -1);
        margin-right: calc(var(--gutter) * -1);
    }
 
    /* The grid holds the page off the edge of the window now, so nothing inside it holds itself off as well */
    body.page-sidebar > .page-header, body.page-sidebar > .page-toc, body.page-sidebar > .page-body,
    body.page-sidebar > .page-footer
    {
        padding-left: 0;
        padding-right: 0;
    }
 
    /* The column is as tall as the text beside it, which is what stops what sticks inside it short of the footer, so it ends
       where the text ends rather than short of it */
    body.page-sidebar > .page-toc
    {
        grid-column: 1;
        margin-top: 1rem;
        margin-bottom: 0;
        font-size: .875rem;
    }
 
    /* A column of section links beside the text says what it is by sitting there, so it is not told as well */
    .page-toc-header
    {
        display: none;
    }
 
    body.page-sidebar > .page-toc > .page-toc-inner
    {
        position: sticky;
        top: var(--bar-height);
        max-height: calc(100vh - var(--bar-height));
        padding-right: .5rem;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
 
    body.page-sidebar > .page-body
    {
        grid-column: 2;
    }
 
    /* A column this narrow has no room for a card, so the contents are set apart by the space around them instead */
    body.page-sidebar .page-toc-body
    {
        border: none;
        border-radius: 0;
        background: none;
        padding: 0;
    }
 
    .page-toc .section1-toc, .page-toc .section2-toc, .page-toc .section3-toc
    {
        line-height: 1.45;
    }
 
    .page-toc .section1-toc
    {
        margin-top: .7rem;
    }
 
    .page-toc .section1-toc:first-of-type
    {
        margin-top: 0;
    }
 
    .page-toc .section2-toc, .page-toc .section3-toc
    {
        margin-top: .25rem;
        margin-left: .9rem;
    }
 
    .page-toc .section1-toc-title
    {
        font-size: .9375rem;
    }
 
    /* A keyword in a title is set in the same box as one in the text, which is more furniture than a column this narrow can hold */
    .page-toc .path, .page-toc .br-option, .page-toc .br-setting, .page-toc .pg-option, .page-toc .pg-setting, .page-toc .id,
    .page-toc .user, .page-toc .file
    {
        border: none;
        background: none;
        padding: 0;
        white-space: normal;
    }
}
 
/***********************************************************************************************************************************
Section
***********************************************************************************************************************************/
.section1
{
    margin-top: 1.75rem;
}
 
.section1:first-of-type
{
    margin-top: 1rem;
}
 
/* Each level is marked by a bar that thins as the level drops, so depth is read from the bar rather than from type size */
.section1-header
{
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--bg-surface-2);
    padding: .45rem .85rem;
    margin-bottom: .9rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.022em;
    line-height: 1.25;
}
 
.section2
{
    margin-top: 1.25rem;
}
 
/* The accent that marks the left edge of the bar above laid under the title, so the header is closed off by a rule of its own
   rather than by an edge it shares with the level above. The rule runs the width of the title and no further, and a title too long
   for the column wraps and takes the rule out to the full width, which is as far as it can go. */
.section2-header
{
    width: fit-content;
    border-bottom: 1.5px solid var(--accent);
    padding: 0 0 .35rem 0;
    margin-bottom: .7rem;
    font-size: 1.3125rem;
    font-weight: 650;
    letter-spacing: -.015em;
    line-height: 1.35;
}
 
.section3
{
    margin-top: 1rem;
}
 
.section3-header
{
    border-left: 2px solid var(--border-strong);
    padding: 0 0 0 .7rem;
    margin-bottom: .35rem;
    font-size: 1.0625rem;
    font-weight: 650;
}
 
.section1-subtitle, .section2-subtitle, .section3-subtitle
{
    margin-top: 1.5rem;
    font-size: 1.0625rem;
    font-weight: 650;
}
 
/* The date sits right under the title of the release so the two read as one block rather than as separate lines */
.section1-subsubtitle, .section2-subsubtitle, .section3-subsubtitle
{
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}
 
.section-intro
{
    margin-top: .85rem;
}
 
/***********************************************************************************************************************************
Section Set Aside
 
A section set aside runs down the side of the page with the text beside it, and the text returns to the full width of the page once
the aside ends rather than being held narrow the whole way down. Only a float does that, which is why one is worth its trouble
here: a block with a background of its own runs under a float rather than beside it unless it is told to lay itself out.
***********************************************************************************************************************************/
/* Too narrow to sit beside the text, so it goes back to where the document had it. The page is written with the aside first,
   since that is the only way the text can run beside it, and the order here undoes that: what came before it stays put, then the
   aside, then what came after. */
.page-body:has(> .section-aside)
{
    display: flex;
    flex-direction: column;
}
 
.section-aside
{
    order: 1;
}
 
.section-after-aside
{
    order: 2;
}
 
@media (min-width: 56rem)
{
    .section-aside
    {
        float: right;
        width: 17rem;
        margin-left: 2.5rem;
        margin-bottom: 1.5rem;
    }
 
    /* Set to the size of a column rather than the size of the page. Below this width the aside is a section like any other and
       reads as one, so it keeps the type every other section has. */
    .section-aside .section1-header
    {
        border-left-width: 3px;
        padding: .3rem .7rem;
        margin-bottom: .5rem;
        font-size: 1.1875rem;
    }
 
    .section-aside .section-body-text
    {
        margin-top: .6rem;
        font-size: .875rem;
        line-height: 1.55;
    }
 
    /* The text beside the aside starts level with it rather than where a second section would start */
    .section-aside + .section1
    {
        margin-top: 1rem;
    }
 
    /* A column this narrow has room for one at a time */
    .section-aside .sponsor-list
    {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1.25rem 1rem;
        margin: .75rem 0;
    }
 
    /* These carry a background or a rule, so they lay themselves out beside the aside instead of running under it. A table, a
       grid, a flex container and a pre that scrolls all do this already and are left alone. */
    .section1-header, .section2-header, .section3-header, .execute-title, .execute-body, .config-title, .config-body
    {
        display: flow-root;
    }
 
    /* Back in the run of the page, which also holds its own floats so a tall aside cannot reach past the text into the footer */
    .page-body:has(> .section-aside)
    {
        display: flow-root;
    }
}
 
/***********************************************************************************************************************************
Body text and lists
***********************************************************************************************************************************/
.section-body-text
{
    margin-top: 1rem;
}
 
.section-body-text:first-of-type
{
    margin-top: .85rem;
}
 
ul.list-unordered
{
    margin: .85rem 0 0 0;
    padding-left: 1.4rem;
}
 
li.list-unordered
{
    margin-top: .45rem;
    padding-left: .25rem;
}
 
li.list-unordered::marker
{
    color: var(--accent);
}
 
/***********************************************************************************************************************************
List Details
 
An item with details has a toggle in place of the bullet. The toggle is a plus when the details have text and a chevron when they
have only links.
***********************************************************************************************************************************/
li.list-unordered:has(> .list-detail)
{
    position: relative;
    list-style-type: none;
}
 
/* The toggle fills the space the bullet is drawn in, level with the first line of the item */
.list-detail-toggle
{
    position: absolute;
    top: 0;
    left: -1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.7em;
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    list-style: none;
}
 
.list-detail-toggle::-webkit-details-marker
{
    display: none;
}
 
.list-detail-toggle:hover
{
    background-color: var(--accent-soft);
    color: var(--accent-hover);
}
 
.list-detail-toggle:focus-visible
{
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
 
/* A chevron that points right when closed and down when open */
.list-detail-toggle::before
{
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateX(-1px) rotate(-45deg);
}
 
.list-detail[open] > .list-detail-toggle::before
{
    transform: translateY(-2px) rotate(45deg);
}
 
/* A plus that is a minus when open */
.list-detail:has(> .list-detail-text) > .list-detail-toggle
{
    color: var(--accent);
}
 
.list-detail:has(> .list-detail-text) > .list-detail-toggle::before
{
    width: 10px;
    height: 10px;
    border: none;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transform: none;
}
 
.list-detail[open]:has(> .list-detail-text) > .list-detail-toggle::before
{
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
 
.list-detail[open]
{
    margin: .35rem 0 .25rem 0;
    border-left: 2px solid var(--border);
    padding-left: .75rem;
}
 
.list-detail-text + .list-detail-text
{
    margin-top: .5rem;
}
 
.list-detail-text + .list-detail-ref
{
    margin-top: .4rem;
}
 
.list-detail-ref
{
    color: var(--text-muted);
    font-size: .875rem;
    line-height: 1.6;
}
 
/* A dot between the links on a line */
.list-detail-ref-item + .list-detail-ref-item::before
{
    content: "\00b7";
    margin: 0 .45em;
}
 
/* The hash of a commit is drawn in the code font without the box of a keyword */
.list-detail-ref .id
{
    border: none;
    background: none;
    padding: 0;
    font-size: .9375em;
}
 
/* The button that opens or closes every details of a section, which the script adds */
.list-detail-all
{
    display: block;
    margin-top: .5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-surface);
    padding: .1rem .65rem;
    color: var(--text-muted);
    font-family: inherit;
    font-size: .8125rem;
    line-height: 1.6;
    cursor: pointer;
}
 
.list-detail-all:hover
{
    border-color: var(--border-strong);
    color: var(--text);
}
 
.list-detail-all:focus-visible
{
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
 
/***********************************************************************************************************************************
Table Elements
***********************************************************************************************************************************/
.table
{
    width: 100%;
    margin-top: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    border-spacing: 0;
    overflow: hidden;
    font-size: .9375rem;
}
 
.table-caption
{
    margin-bottom: .5rem;
    color: var(--text-muted);
    text-align: left;
    font-weight: 650;
}
 
.table-header-row
{
    background: var(--bg-surface-2);
}
 
.table-header-left, .table-header-center, .table-header-right
{
    border-bottom: 1px solid var(--border);
    padding: .5rem .85rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
 
.table-header-left
{
    text-align: left;
}
 
.table-header-center
{
    text-align: center;
}
 
.table-header-right
{
    text-align: right;
}
 
.table-header-fill
{
    width: 100%;
}
 
.table-row:nth-child(even)
{
    background: var(--bg-surface);
}
 
.table-data-left, .table-data-center, .table-data-right
{
    padding: .4rem .85rem;
    white-space: nowrap;
}
 
.table-data-left
{
    text-align: left;
}
 
.table-data-center
{
    text-align: center;
}
 
.table-data-right
{
    text-align: right;
    font-variant-numeric: tabular-nums;
}
 
/***********************************************************************************************************************************
Config, Execute, Code Block
***********************************************************************************************************************************/
.execute, .config, .code-block
{
    margin: 1.25rem 0 1.5rem 0;
}
 
/* Not a flex container: the title mixes text and spans, and flex would make an item of every text run and space them apart */
.execute-title, .config-title
{
    border: 1px solid var(--code-border);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--code-output-bg);
    padding: .4rem .9rem;
    color: var(--code-text);
    font-size: .8125rem;
}
 
.execute-title .host, .config-title .host, .config-title .file
{
    color: var(--code-prompt);
}
 
/* The button that hands over what a block is showing. It is hidden until the script that makes it work has run, and it sits at the
   end of what it copies rather than over it, so it covers nothing a reader is reading. */
.code-copy
{
    display: none;
    flex: none;
    margin-left: .6rem;
    border: 1px solid var(--code-border);
    border-radius: var(--radius);
    background-color: var(--code-bg);
    padding: .15rem .3rem;
    color: var(--code-text);
    cursor: pointer;
}
 
/* A button shown wherever one could be used would be a column of buttons down a page of commands, so it is shown where the reader
   is: over the block it copies, or under the focus of a reader working the page from the keyboard. It is faded rather than hidden
   so that showing it moves nothing, and it is always shown where there is no pointer to hover with. */
.code-copy-ready
{
    display: block;
    opacity: 0;
    transition: opacity .15s ease;
}
 
.execute-body-cmd:hover .code-copy-ready, .config:hover .code-copy-ready, .code-copy-ready:focus-visible
{
    opacity: 1;
}
 
@media (hover: none)
{
    .code-copy-ready
    {
        opacity: 1;
    }
}
 
.code-copy:hover
{
    border-color: var(--border-strong);
    background-color: var(--code-border);
}
 
.code-copy:before
{
    content: "";
    display: block;
    width: .9rem;
    height: .9rem;
    background-color: currentColor;
    -webkit-mask: var(--icon-copy) no-repeat center / contain;
    mask: var(--icon-copy) no-repeat center / contain;
}
 
/* What the button says it did, which is a tick where what it copied was copied and the color of a warning where a browser refused.
   A button saying either stays in view for as long as it says it, so a reader who has moved the pointer on still sees it. */
.code-copy-done
{
    opacity: 1;
    color: var(--tip-accent);
}
 
.code-copy-done:before
{
    -webkit-mask-image: var(--icon-tick);
    mask-image: var(--icon-tick);
}
 
.code-copy-fail
{
    opacity: 1;
    border-color: var(--warning-accent);
    color: var(--warning-accent);
}
 
/* The title of a config file holds the button that copies the file, which floats to the end of it so that the title wraps around
   the button rather than under it */
.config-title
{
    display: flow-root;
}
 
.config-title .code-copy
{
    float: right;
}
 
.execute-body, .config-body, .code-block
{
    border: 1px solid var(--code-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background-color: var(--code-bg);
    padding: .7rem 0;
    color: var(--code-text);
    font-family: var(--font-mono);
    font-size: .8125rem;
    line-height: 1.6;
    unicode-bidi: embed;
}
 
.code-block
{
    border-radius: var(--radius-lg);
    padding: .7rem .9rem;
}
 
/* A command, its output, and a config file are shown as they were written and scroll sideways when they do not fit, since a line
   broken to fit is harder to read and copies back as something that was never typed. What a command wrote and what is in a config
   file each scroll as one block rather than a line at a time, so that a line stays with the lines it is read against. */
pre, .execute-body-output, .config-body-output
{
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--code-border) transparent;
}
 
/* Would rather not use pre at all, but Firefox won't copy code samples correctly without it */
pre
{
    margin: 0;
    padding: 0;
    white-space: pre;
}
 
/* A command and the button that copies it sit on one row, so a command too wide to fit scrolls in what the button leaves rather
   than under it */
.execute-body-cmd
{
    display: flex;
    align-items: flex-start;
    padding-right: .9rem;
}
 
.execute-cmd
{
    flex: 1;
    min-width: 0;
    padding: .1rem .9rem;
}
 
.execute-cmd:before
{
    content: "$ ";
    color: var(--code-prompt);
}
 
.execute-body-output, .config-body-output
{
    margin: .4rem .9rem;
    border-radius: var(--radius);
    background-color: var(--code-output-bg);
    padding: .35rem .7rem;
}
 
/* The lines of a block are as wide as the widest of them, so that a line that is marked is marked across the whole block rather
   than across the part of it that is in view, and as wide as the block when every line fits in it */
.execute-line-list, .config-line-list
{
    width: max-content;
    min-width: 100%;
}
 
.execute-line, .execute-line-highlight, .execute-line-highlight-error, .config-line, .config-line-add, .config-line-remove
{
    /* A line scrolls with the block rather than on its own, since the block is read down the lines and a line that carried its own
       scroll would take the reader across one line at a time */
    overflow-x: visible;
 
    /* The line reaches into the padding of the block so that a line that is marked is marked to the edge of it */
    margin: 0 -.7rem;
    padding: 0 .7rem;
}
 
/* What a command wrote is marked where it is what the documentation is pointing at, and marked as an error where the command was
   expected to fail */
.execute-line-highlight
{
    background-color: var(--code-highlight-bg);
}
 
.execute-line-highlight-error
{
    background-color: var(--code-error-bg);
}
 
/* A config file is shown in full every time it changes, so each line says what the change did to it, marked the way the output of a
   command is marked. The mark is written by the style rather than into the line so that what a reader copies out of the file is the
   file. */
.config-line:before
{
    content: "  ";
}
 
.config-line-add
{
    background-color: var(--code-highlight-bg);
}
 
.config-line-add:before
{
    content: "+ ";
}
 
.config-line-remove
{
    background-color: var(--code-error-bg);
}
 
.config-line-remove:before
{
    content: "- ";
}
 
/***********************************************************************************************************************************
Admonition
***********************************************************************************************************************************/
.admonition
{
    display: flex;
    flex-direction: column;
    gap: .15rem;
    border: 1px solid var(--note-accent);
    border-left-width: 4px;
    border-radius: var(--radius);
    background-color: var(--note-bg);
    padding: .75rem 1rem;
    margin: 1.25rem 0;
}
 
.admonition > .note, .admonition > .warning, .admonition > .caution, .admonition > .important, .admonition > .tip
{
    float: none;
    color: var(--note-accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.4;
}
 
.admonition > .note-text, .admonition > .warning-text, .admonition > .caution-text, .admonition > .important-text,
.admonition > .tip-text
{
    overflow: visible;
    min-width: 0;
}
 
.admonition:has(> .tip)
{
    border-color: var(--tip-accent);
    background-color: var(--tip-bg);
}
 
.admonition:has(> .tip) > .tip
{
    color: var(--tip-accent);
}
 
.admonition:has(> .important)
{
    border-color: var(--important-accent);
    background-color: var(--important-bg);
}
 
.admonition:has(> .important) > .important
{
    color: var(--important-accent);
}
 
.admonition:has(> .caution)
{
    border-color: var(--caution-accent);
    background-color: var(--caution-bg);
}
 
.admonition:has(> .caution) > .caution
{
    color: var(--caution-accent);
}
 
.admonition:has(> .warning)
{
    border-color: var(--warning-accent);
    background-color: var(--warning-bg);
}
 
.admonition:has(> .warning) > .warning
{
    color: var(--warning-accent);
}
 
/***********************************************************************************************************************************
Sponsor
***********************************************************************************************************************************/
.sponsor-list
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    justify-items: center;
    align-items: center;
    gap: 1.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    padding: 2rem 1.5rem;
    margin: 1.75rem 0;
}
 
.sponsor
{
    text-align: center;
}
 
.sponsor a
{
    display: inline-block;
    opacity: .78;
    transition: opacity .15s ease;
}
 
.sponsor a:hover
{
    opacity: 1;
}
 
.sponsor-img
{
    max-width: 100%;
    height: auto;
}
 
.sponsor-img-dark
{
    display: none;
}
 
@media (prefers-color-scheme: dark)
{
    .sponsor-img-light
    {
        display: none;
    }
 
    .sponsor-img-dark
    {
        display: inline;
    }
}
 
/***********************************************************************************************************************************
Keywords
***********************************************************************************************************************************/
.backrest, .cmd, .postgres, .host, .proper
{
    font-weight: var(--keyword-weight);
}
 
.path, .br-option, .br-setting, .pg-option, .pg-setting, .id, .user, .file
{
    border: 1px solid var(--keyword-border);
    border-radius: 4px;
    background-color: var(--keyword-bg);
    padding: .05em .35em;
    font-family: var(--font-mono);
    font-size: .9em;
    unicode-bidi: embed;
}
 
.path, .br-option, .br-setting, .pg-option, .pg-setting, .user, .file
{
    white-space: nowrap;
}
 
.execute-title .path, .execute-title .file, .execute-title .id, .execute-title .br-option,
.config-title .path, .config-title .file, .config-title .id, .config-title .br-option
{
    border: none;
    background: none;
    padding: 0;
    font-size: 1em;
}
 
/***********************************************************************************************************************************
Footer
***********************************************************************************************************************************/
.page-footer
{
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
    padding-top: .75rem;
    padding-bottom: 1.125rem;
    color: var(--text-muted);
    text-align: center;
    font-size: .8125rem;
}
 
/***********************************************************************************************************************************
Narrow screens
***********************************************************************************************************************************/
@media (max-width: 40rem)
{
    body
    {
        font-size: .9375rem;
        line-height: 1.65;
    }
 
    /* The title is on a row of its own here, so the space under it is halved to give back some of what that row takes */
    .page-header
    {
        padding-top: 1.5rem;
        padding-bottom: .5rem;
    }
 
    .page-header-title
    {
        font-size: 1.625rem;
    }
 
    /* Too narrow to sit opposite the name, so it goes back under it */
    .page-header-subtitle
    {
        flex-basis: 100%;
    }
 
    .section2-header
    {
        font-size: 1.1875rem;
    }
 
    .page-toc-body
    {
        padding: 1rem;
    }
 
    .table
    {
        display: block;
        overflow-x: auto;
    }
}