@spicainternational/forge-styles 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/forge.css ADDED
@@ -0,0 +1,3261 @@
1
+ /* ============================================================
2
+ FORGE DESIGN SYSTEM — COMPLETE CSS
3
+ Calm SaaS UI (Linear × Stripe × Intercom × Notion)
4
+ ============================================================ */
5
+
6
+ /* One important note on in oklch vs in srgb: use oklch for perceptually
7
+ uniform mixing (avoids the muddy gray you get when mixing complementary
8
+ colors in sRGB), but srgb for alpha/transparency blends since
9
+ color-mix(in oklch, blue 30%, transparent) can produce unexpected hue shifts.
10
+ color-mix(in srgb, #2589bf 30%, transparent) will produce a more intuitive result
11
+ when used for hover/active states.
12
+ */
13
+
14
+ @layer forge-reset, forge-tokens, forge-theme, forge-base, forge-layout, forge-components, forge-utilities, forge-dx-hacks;
15
+
16
+ /* ============================================================
17
+ FONTS
18
+ Inter (--forge-font, variable 300–700) and Roboto Mono (--forge-font-mono, 400), split by script so a browser
19
+ downloads only the ranges a page uses. The files sit in fonts/ next to this file (both SIL Open Font License),
20
+ taken from sds-core, which declares the same faces while it is loaded.
21
+ ============================================================ */
22
+
23
+ /* Inter: cyrillic-ext */
24
+ @font-face {
25
+ font-family: "Inter";
26
+ font-style: normal;
27
+ font-weight: 300 700;
28
+ font-display: swap;
29
+ src: url("fonts/inter-cyrillic-ext.woff2") format("woff2");
30
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
31
+ }
32
+
33
+ /* Inter: cyrillic */
34
+ @font-face {
35
+ font-family: "Inter";
36
+ font-style: normal;
37
+ font-weight: 300 700;
38
+ font-display: swap;
39
+ src: url("fonts/inter-cyrillic.woff2") format("woff2");
40
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
41
+ }
42
+
43
+ /* Inter: greek-ext */
44
+ @font-face {
45
+ font-family: "Inter";
46
+ font-style: normal;
47
+ font-weight: 300 700;
48
+ font-display: swap;
49
+ src: url("fonts/inter-greek-ext.woff2") format("woff2");
50
+ unicode-range: U+1F00-1FFF;
51
+ }
52
+
53
+ /* Inter: greek */
54
+ @font-face {
55
+ font-family: "Inter";
56
+ font-style: normal;
57
+ font-weight: 300 700;
58
+ font-display: swap;
59
+ src: url("fonts/inter-greek.woff2") format("woff2");
60
+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
61
+ }
62
+
63
+ /* Inter: vietnamese */
64
+ @font-face {
65
+ font-family: "Inter";
66
+ font-style: normal;
67
+ font-weight: 300 700;
68
+ font-display: swap;
69
+ src: url("fonts/inter-vietnamese.woff2") format("woff2");
70
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
71
+ }
72
+
73
+ /* Inter: latin-ext (č, š, ž, …) */
74
+ @font-face {
75
+ font-family: "Inter";
76
+ font-style: normal;
77
+ font-weight: 300 700;
78
+ font-display: swap;
79
+ src: url("fonts/inter-latin-ext.woff2") format("woff2");
80
+ unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
81
+ }
82
+
83
+ /* Inter: latin */
84
+ @font-face {
85
+ font-family: "Inter";
86
+ font-style: normal;
87
+ font-weight: 300 700;
88
+ font-display: swap;
89
+ src: url("fonts/inter-latin.woff2") format("woff2");
90
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
91
+ }
92
+
93
+ /* Roboto Mono: cyrillic-ext */
94
+ @font-face {
95
+ font-family: "Roboto Mono";
96
+ font-style: normal;
97
+ font-weight: 400;
98
+ font-display: swap;
99
+ src: url("fonts/roboto-mono-cyrillic-ext.woff2") format("woff2");
100
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
101
+ }
102
+
103
+ /* Roboto Mono: cyrillic */
104
+ @font-face {
105
+ font-family: "Roboto Mono";
106
+ font-style: normal;
107
+ font-weight: 400;
108
+ font-display: swap;
109
+ src: url("fonts/roboto-mono-cyrillic.woff2") format("woff2");
110
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
111
+ }
112
+
113
+ /* Roboto Mono: greek */
114
+ @font-face {
115
+ font-family: "Roboto Mono";
116
+ font-style: normal;
117
+ font-weight: 400;
118
+ font-display: swap;
119
+ src: url("fonts/roboto-mono-greek.woff2") format("woff2");
120
+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
121
+ }
122
+
123
+ /* Roboto Mono: vietnamese */
124
+ @font-face {
125
+ font-family: "Roboto Mono";
126
+ font-style: normal;
127
+ font-weight: 400;
128
+ font-display: swap;
129
+ src: url("fonts/roboto-mono-vietnamese.woff2") format("woff2");
130
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
131
+ }
132
+
133
+ /* Roboto Mono: latin-ext */
134
+ @font-face {
135
+ font-family: "Roboto Mono";
136
+ font-style: normal;
137
+ font-weight: 400;
138
+ font-display: swap;
139
+ src: url("fonts/roboto-mono-latin-ext.woff2") format("woff2");
140
+ unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
141
+ }
142
+
143
+ /* Roboto Mono: latin */
144
+ @font-face {
145
+ font-family: "Roboto Mono";
146
+ font-style: normal;
147
+ font-weight: 400;
148
+ font-display: swap;
149
+ src: url("fonts/roboto-mono-latin.woff2") format("woff2");
150
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
151
+ }
152
+
153
+ /* ============================================================
154
+ RESET LAYER
155
+ Rules:
156
+ - Normalize browser behavior
157
+ - Preserve semantics
158
+ - Everything an app needs from Bootstrap's reboot and sds-core's reboot, so neither has to be loaded. While
159
+ they are, their unlayered rules win and set the same values.
160
+ - Structure only (margins, lists, tables, form controls). Typography and color belong to forge-base; values
161
+ here come from tokens, never a fixed color.
162
+ ============================================================ */
163
+
164
+ @layer forge-reset {
165
+ /* -------------------- DOCUMENT -------------------- */
166
+ *,
167
+ *::before,
168
+ *::after {
169
+ box-sizing: border-box;
170
+ }
171
+
172
+ html {
173
+ -webkit-text-size-adjust: 100%;
174
+ }
175
+
176
+ @media (prefers-reduced-motion: no-preference) {
177
+ :root {
178
+ scroll-behavior: smooth;
179
+ }
180
+ }
181
+
182
+ body {
183
+ margin: 0;
184
+ -webkit-tap-highlight-color: transparent;
185
+ }
186
+
187
+ /* -------------------- TEXT -------------------- */
188
+ /* No top margins (no margin collapsing to think about), a bottom margin for running text. Components that lay
189
+ out their own text set margin: 0 */
190
+ h1,
191
+ h2,
192
+ h3,
193
+ h4,
194
+ h5,
195
+ h6 {
196
+ margin-top: 0;
197
+ margin-bottom: 0.5rem;
198
+ }
199
+
200
+ p {
201
+ margin-top: 0;
202
+ margin-bottom: 1rem;
203
+ }
204
+
205
+ address {
206
+ margin-bottom: 1rem;
207
+ font-style: normal;
208
+ line-height: inherit;
209
+ }
210
+
211
+ blockquote,
212
+ figure {
213
+ margin: 0 0 1rem;
214
+ }
215
+
216
+ b,
217
+ strong {
218
+ font-weight: bolder;
219
+ }
220
+
221
+ abbr[title] {
222
+ text-decoration: underline dotted;
223
+ text-decoration-skip-ink: none;
224
+ cursor: help;
225
+ }
226
+
227
+ mark {
228
+ padding: 0.1875em;
229
+ background-color: var(--forge-highlight-bg, color-mix(in oklab, var(--forge-brand) 28%, var(--forge-surface-container-lowest)));
230
+ color: inherit;
231
+ }
232
+
233
+ /* Don't change the line height of the line they sit on */
234
+ sub,
235
+ sup {
236
+ position: relative;
237
+ font-size: 0.75em;
238
+ line-height: 0;
239
+ vertical-align: baseline;
240
+ }
241
+
242
+ sub {
243
+ bottom: -0.25em;
244
+ }
245
+
246
+ sup {
247
+ top: -0.5em;
248
+ }
249
+
250
+ hr {
251
+ margin: 1rem 0;
252
+ border: 0;
253
+ border-top: 1px solid var(--forge-border);
254
+ color: inherit;
255
+ }
256
+
257
+ /* -------------------- LISTS -------------------- */
258
+ ol,
259
+ ul {
260
+ padding-inline-start: 2rem;
261
+ }
262
+
263
+ ol,
264
+ ul,
265
+ dl {
266
+ margin-top: 0;
267
+ margin-bottom: 1rem;
268
+ }
269
+
270
+ :is(ol, ul) :is(ol, ul) {
271
+ margin-bottom: 0;
272
+ }
273
+
274
+ dt {
275
+ font-weight: var(--forge-font-weight-bold);
276
+ }
277
+
278
+ dd {
279
+ margin-bottom: 0.5rem;
280
+ margin-inline-start: 0;
281
+ }
282
+
283
+ /* -------------------- LINKS -------------------- */
284
+ a {
285
+ color: var(--forge-primary);
286
+ text-decoration: none;
287
+ }
288
+
289
+ a:hover {
290
+ text-decoration: underline;
291
+ }
292
+
293
+ /* Placeholder links and named anchors (no href) are plain text */
294
+ a:not([href]):not([class]),
295
+ a:not([href]):not([class]):hover {
296
+ color: inherit;
297
+ text-decoration: none;
298
+ }
299
+
300
+ /* -------------------- CODE -------------------- */
301
+ pre,
302
+ code,
303
+ kbd,
304
+ samp {
305
+ font-family: var(--forge-font-mono);
306
+ font-size: 1em;
307
+ }
308
+
309
+ pre {
310
+ display: block;
311
+ margin-top: 0;
312
+ margin-bottom: 1rem;
313
+ overflow: auto;
314
+ font-size: 0.875em;
315
+ }
316
+
317
+ pre code {
318
+ font-size: inherit;
319
+ color: inherit;
320
+ word-break: normal;
321
+ }
322
+
323
+ code {
324
+ font-size: 0.875em;
325
+ overflow-wrap: break-word;
326
+ }
327
+
328
+ kbd {
329
+ padding: 0.1875rem 0.375rem;
330
+ border-radius: var(--forge-radius-sm);
331
+ background-color: var(--forge-text-primary);
332
+ color: var(--forge-surface);
333
+ font-size: 0.875em;
334
+ }
335
+
336
+ kbd kbd {
337
+ padding: 0;
338
+ font-size: 1em;
339
+ }
340
+
341
+ /* -------------------- MEDIA -------------------- */
342
+ img,
343
+ picture,
344
+ video,
345
+ canvas,
346
+ svg {
347
+ display: block;
348
+ max-width: 100%;
349
+ }
350
+
351
+ /* For an image a class makes inline again */
352
+ img,
353
+ svg {
354
+ vertical-align: middle;
355
+ }
356
+
357
+ iframe {
358
+ border: 0;
359
+ }
360
+
361
+ /* -------------------- TABLES -------------------- */
362
+ table {
363
+ caption-side: bottom;
364
+ border-collapse: collapse;
365
+ }
366
+
367
+ caption {
368
+ padding-block: 0.5rem;
369
+ color: var(--forge-text-secondary);
370
+ text-align: start;
371
+ }
372
+
373
+ th {
374
+ text-align: inherit;
375
+ text-align: -webkit-match-parent;
376
+ }
377
+
378
+ thead,
379
+ tbody,
380
+ tfoot,
381
+ tr,
382
+ td,
383
+ th {
384
+ border-color: inherit;
385
+ border-style: solid;
386
+ border-width: 0;
387
+ }
388
+
389
+ /* -------------------- FORMS -------------------- */
390
+ /* Labels take a margin */
391
+ label {
392
+ display: inline-block;
393
+ }
394
+
395
+ input,
396
+ button,
397
+ select,
398
+ optgroup,
399
+ textarea {
400
+ margin: 0;
401
+ font: inherit;
402
+ color: inherit;
403
+ }
404
+
405
+ button,
406
+ input,
407
+ select,
408
+ textarea {
409
+ border: none;
410
+ border-radius: 0;
411
+ background: none;
412
+ }
413
+
414
+ button,
415
+ select {
416
+ text-transform: none;
417
+ }
418
+
419
+ button,
420
+ [type="button"],
421
+ [type="reset"],
422
+ [type="submit"] {
423
+ -webkit-appearance: button;
424
+ appearance: button;
425
+ }
426
+
427
+ :is(button, [type="button"], [type="reset"], [type="submit"]):not(:disabled),
428
+ [role="button"] {
429
+ cursor: pointer;
430
+ }
431
+
432
+ :focus:not(:focus-visible) {
433
+ outline: none;
434
+ }
435
+
436
+ ::-moz-focus-inner {
437
+ padding: 0;
438
+ border-style: none;
439
+ }
440
+
441
+ select {
442
+ word-wrap: normal;
443
+ }
444
+
445
+ select:disabled {
446
+ opacity: 1;
447
+ }
448
+
449
+ textarea {
450
+ resize: vertical;
451
+ }
452
+
453
+ fieldset {
454
+ min-width: 0;
455
+ margin: 0;
456
+ padding: 0;
457
+ border: 0;
458
+ }
459
+
460
+ legend {
461
+ float: inline-start;
462
+ width: 100%;
463
+ margin-bottom: 0.5rem;
464
+ padding: 0;
465
+ line-height: inherit;
466
+ }
467
+
468
+ legend + * {
469
+ clear: inline-start;
470
+ }
471
+
472
+ /* Phone numbers, addresses and numbers read left to right in a right-to-left page too */
473
+ [type="tel"],
474
+ [type="url"],
475
+ [type="email"],
476
+ [type="number"] {
477
+ direction: ltr;
478
+ }
479
+
480
+ [type="search"] {
481
+ -webkit-appearance: textfield;
482
+ appearance: textfield;
483
+ outline-offset: -2px;
484
+ }
485
+
486
+ ::-webkit-search-decoration {
487
+ -webkit-appearance: none;
488
+ appearance: none;
489
+ }
490
+
491
+ ::-webkit-search-cancel-button {
492
+ cursor: pointer;
493
+ filter: grayscale(1);
494
+ }
495
+
496
+ /* Text inputs with a datalist: no dropdown arrow in Chrome */
497
+ [list]:not([type="date"], [type="datetime-local"], [type="month"], [type="week"], [type="time"])::-webkit-calendar-picker-indicator {
498
+ display: none;
499
+ }
500
+
501
+ ::-webkit-datetime-edit-fields-wrapper,
502
+ ::-webkit-datetime-edit-text,
503
+ ::-webkit-datetime-edit-minute,
504
+ ::-webkit-datetime-edit-hour-field,
505
+ ::-webkit-datetime-edit-day-field,
506
+ ::-webkit-datetime-edit-month-field,
507
+ ::-webkit-datetime-edit-year-field {
508
+ padding: 0;
509
+ }
510
+
511
+ ::-webkit-inner-spin-button {
512
+ height: auto;
513
+ }
514
+
515
+ ::-webkit-color-swatch-wrapper {
516
+ padding: 0;
517
+ }
518
+
519
+ ::file-selector-button {
520
+ font: inherit;
521
+ -webkit-appearance: button;
522
+ appearance: button;
523
+ }
524
+
525
+ output {
526
+ display: inline-block;
527
+ }
528
+
529
+ /* -------------------- INTERACTIVE -------------------- */
530
+ summary {
531
+ display: list-item;
532
+ cursor: pointer;
533
+ }
534
+
535
+ progress {
536
+ vertical-align: baseline;
537
+ }
538
+
539
+ /* The hidden attribute always hides, whatever display a class sets. Kept !important on purpose */
540
+ [hidden] {
541
+ display: none !important;
542
+ }
543
+ }
544
+
545
+ /* ============================================================
546
+ TOKENS LAYER
547
+ Rules:
548
+ - Variables only
549
+ - No styling
550
+ ============================================================ */
551
+
552
+ @layer forge-tokens {
553
+ :root {
554
+ /* -------------------- COLOR SEEDS -------------------- */
555
+ --forge-hue: 80;
556
+ --forge-chroma: 0.002;
557
+ /* The primary's blue: the portal blue (#3B8FC2) darkened to pass 4.5:1. Internal, not an app setting: the
558
+ primary's lightness only passes at this hue and chroma. A product's own color is --forge-brand-hue */
559
+ --forge-primary-hue: 239;
560
+ --forge-primary-chroma: 0.112;
561
+ --forge-brand-hue: 238;
562
+
563
+ /* -------------------- SURFACES (TONE-BASED) -------------------- */
564
+ /* As Material 3: the page ground and a 5-step container scale; components pick a step by use, the same step
565
+ in both themes, and the scale flips (lowest is the lightest tone in light, the darkest in dark).
566
+ - surface: the page, the modal
567
+ - container-lowest: cards, fields, lists, chips, secondary buttons
568
+ - container-low: panels, the pane
569
+ - container: insets, disabled fields
570
+ - container-high / -highest: the skeleton only, the primary as text drops below 4.5:1 there in light
571
+ - bright: anything floating (popups, menus, dropdowns, drawers, DevExtreme popups). As Material 3's
572
+ surface-bright it doesn't flip: light in light, lighter than the page and the cards in dark. White in light
573
+ (Material 3 uses the page tone) so a dropdown matches the card it opens from */
574
+ --forge-surface: oklch(0.975 var(--forge-chroma) var(--forge-hue));
575
+ --forge-surface-container-lowest: oklch(0.999 var(--forge-chroma) var(--forge-hue));
576
+ --forge-surface-container-low: oklch(0.965 var(--forge-chroma) var(--forge-hue));
577
+ --forge-surface-container: oklch(0.95 var(--forge-chroma) var(--forge-hue));
578
+ --forge-surface-container-high: oklch(0.932 var(--forge-chroma) var(--forge-hue));
579
+ --forge-surface-container-highest: oklch(0.915 var(--forge-chroma) var(--forge-hue));
580
+ --forge-surface-bright: oklch(0.999 var(--forge-chroma) var(--forge-hue));
581
+
582
+ /* -------------------- TEXT -------------------- */
583
+ --forge-text-primary: oklch(0.2 var(--forge-chroma) var(--forge-hue));
584
+ --forge-text-secondary: oklch(0.475 var(--forge-chroma) var(--forge-hue));
585
+ --forge-text-tertiary: oklch(0.595 var(--forge-chroma) var(--forge-hue));
586
+
587
+ /* -------------------- BORDERS & RADII -------------------- */
588
+ --forge-border: oklch(0.9 var(--forge-chroma) var(--forge-hue));
589
+ /* The outline of form fields: a step more solid than a divider */
590
+ --forge-border-strong: oklch(0.84 var(--forge-chroma) var(--forge-hue));
591
+ /* A scrollbar thumb: light at rest, darker while the pointer is over its scrolling area (both themes follow,
592
+ the dark theme redefines the tokens these point at) */
593
+ --forge-scrollbar-thumb: var(--forge-border-strong);
594
+ --forge-scrollbar-thumb-hover: var(--forge-text-tertiary);
595
+ --forge-radius-sm: 4px;
596
+ --forge-radius-md: 8px;
597
+ --forge-radius-lg: 12px;
598
+ --forge-radius-xl: 16px;
599
+ --forge-radius-full: 9999px;
600
+
601
+ /* -------------------- SHADOWS -------------------- */
602
+ --forge-shadow-rest:
603
+ 0 1px 2px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.04),
604
+ 0 0 0 1px oklch(0.9 var(--forge-chroma) var(--forge-hue));
605
+
606
+ /* No ring: the edge of a panel on the surface, softer than a card's border */
607
+ --forge-shadow-soft:
608
+ 0 1px 3px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.06),
609
+ 0 1px 2px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.04);
610
+
611
+ --forge-shadow-hover:
612
+ 0 4px 8px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.08),
613
+ 0 0 0 1px oklch(0.88 var(--forge-chroma) var(--forge-hue));
614
+
615
+ /* Floating surfaces (menus, popovers, the drawer, the navigation callout): the edge is a 1px border of
616
+ --forge-border-overlay, snapped to device pixels so it stays sharp at 125% / 150% display scales (a 1px
617
+ spread ring in the shadow isn't snapped and smears over two device pixels). The shadow only lifts */
618
+ --forge-border-overlay: oklch(0.85 var(--forge-chroma) var(--forge-hue));
619
+ --forge-shadow-overlay: 0 12px 24px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.12);
620
+
621
+ /* A modal sits on a scrim. Its edge is one hairline border (snapped to device pixels, so sharp at any display
622
+ scale; a 1px spread ring next to it smears into a halo), dark and translucent so it reads on the surface and
623
+ on the scrim alike. Its shadow only lifts it: deeper than an overlay's, it's a large surface */
624
+ --forge-border-modal: oklch(0 0 0 / 0.1);
625
+ --forge-shadow-modal: 0 24px 48px oklch(0.1 var(--forge-chroma) var(--forge-hue) / 0.16);
626
+
627
+ /* -------------------- TYPOGRAPHY -------------------- */
628
+ --forge-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
629
+ /* Code, keys, tabular IDs. Roboto Mono's @font-face rules are under FONTS at the top */
630
+ --forge-font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
631
+ --forge-font-weight-medium: 500;
632
+ --forge-font-weight-bold: 600;
633
+ --forge-letter-spacing-tight: -0.02em;
634
+
635
+ --forge-size-2xs: 0.6875rem; /* 11px at a 16px root */
636
+ --forge-size-xs: 0.75rem; /* 12px at a 16px root */
637
+ --forge-size-sm: 0.875rem; /* 14px at a 16px root */
638
+ --forge-size-base: 1rem; /* 16px at a 16px root */
639
+
640
+ /* Heading sizes, 4px apart; the default size of h1-h6, and of any element with .forge-heading-xl ... -xs */
641
+ --forge-h1: 1.75rem; /* 28px at a 16px root, .forge-heading-xl */
642
+ --forge-h2: 1.5rem; /* 24px, .forge-heading-lg */
643
+ --forge-h3: 1.25rem; /* 20px, .forge-heading-md */
644
+ --forge-h4: 1rem; /* 16px, .forge-heading-sm */
645
+ --forge-h5: 0.875rem; /* 14px (body size, bold), .forge-heading-xs; also h6 */
646
+ --forge-heading-line-height: 1.25;
647
+ /* Table cells and dense lists */
648
+ --forge-line-height-snug: 1.35;
649
+
650
+ /* -------------------- CONTENT TYPOGRAPHY -------------------- */
651
+ --forge-content-base: 1rem;
652
+ --forge-content-line-height: 1.6;
653
+
654
+ /* -------------------- SPACING -------------------- */
655
+ --forge-space-1: 0.25rem;
656
+ --forge-space-2: 0.5rem;
657
+ --forge-space-3: 0.75rem;
658
+ --forge-space-4: 1rem;
659
+ --forge-space-5: 1.5rem;
660
+ --forge-space-6: 2rem;
661
+
662
+ /* -------------------- PRIMARY -------------------- */
663
+ /* The system's own color, a blue. Fills with text (primary button, selected segment and day, primary badge),
664
+ focus rings and focus borders. The same in every product. White on it 5.4:1, as text on the surface 5:1.
665
+ Hover and active lower the chroma to stay in the sRGB gamut */
666
+ --forge-primary: oklch(0.52 var(--forge-primary-chroma) var(--forge-primary-hue));
667
+ --forge-primary-hover: oklch(0.47 0.106 var(--forge-primary-hue));
668
+ --forge-primary-active: oklch(0.43 0.097 var(--forge-primary-hue));
669
+ /* Text and icons on a --forge-primary background */
670
+ --forge-text-on-primary: oklch(0.995 var(--forge-chroma) var(--forge-hue));
671
+
672
+ /* -------------------- INTENT COLORS -------------------- */
673
+ /* The product's color, on --forge-brand-hue: only where the product shows itself (navigation, the pane, filters,
674
+ tabs), as a tint or mixed into the text color. Not behind text: white on it is 3.9:1 */
675
+ --forge-brand: oklch(0.6 0.12 var(--forge-brand-hue));
676
+ /* Text and icons on a --forge-brand background; the same in dark mode */
677
+ --forge-text-on-brand: oklch(1 0 0);
678
+ /* Brand as text on the page or side bar background (the current page in navigation): at least 4.5:1 on every
679
+ surface up to surface-container-high, also under the hover layer */
680
+ --forge-brand-text: oklch(0.45 0.13 var(--forge-brand-hue));
681
+ --forge-danger: oklch(0.66 0.15 31.05);
682
+ --forge-success: oklch(0.65 0.14 145);
683
+ /* Cyan, so it stays apart from the blue primary and brand */
684
+ --forge-info: oklch(0.6 0.11 215);
685
+ --forge-warning: oklch(0.85 0.16 81.95);
686
+
687
+ /* -------------------- INTERACTION COLORS -------------------- */
688
+ /* State layers, as Material 3: the text color laid over whatever is underneath, so hover and press show on
689
+ every surface in both themes. Translucent: an element with its own background stacks the layer on it,
690
+ background: linear-gradient(var(--forge-hover-bg) 0 0), <its background>. Dark mode doesn't redefine them,
691
+ they follow --forge-text-primary */
692
+ --forge-state-hover-opacity: 8%;
693
+ --forge-state-pressed-opacity: 12%;
694
+ --forge-hover-bg: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-hover-opacity), transparent);
695
+ --forge-active-bg: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-pressed-opacity), transparent);
696
+
697
+ --forge-brand-hover: oklch(0.56 0.13 var(--forge-brand-hue));
698
+ --forge-brand-active: oklch(0.52 0.14 var(--forge-brand-hue));
699
+
700
+ --forge-danger-hover: oklch(0.62 0.16 31.05);
701
+ --forge-danger-active: oklch(0.58 0.17 31.05);
702
+
703
+ /* The primary ink: at least 3:1 against every background, also the active one (WCAG 1.4.11). -strong is kept for
704
+ rings drawn inside an element; both are the same now */
705
+ --forge-focus-ring: var(--forge-primary);
706
+ --forge-focus-ring-strong: var(--forge-primary);
707
+
708
+ /* -------------------- MOTION -------------------- */
709
+ --forge-motion-fast: 120ms;
710
+ --forge-motion-base: 180ms;
711
+ --forge-motion-slow: 240ms;
712
+
713
+ --forge-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
714
+ --forge-ease-linear: linear;
715
+
716
+ --forge-motion-distance-sm: 4px;
717
+ --forge-motion-distance-md: 8px;
718
+
719
+ /* -------------------- STATES -------------------- */
720
+ --forge-opacity-disabled: 0.5;
721
+
722
+ /* -------------------- LAYERS -------------------- */
723
+ /* z-index inside the page. Overlay is the CDK overlay container's own value (not set by Forge); native
724
+ dialogs sit in the top layer above all of them */
725
+ --forge-z-raised: 1;
726
+ --forge-z-sticky: 10;
727
+ --forge-z-overlay: 1000;
728
+ --forge-z-drawer: 1040;
729
+
730
+ /* -------------------- SIZES -------------------- */
731
+ /* Heights of buttons and single-line fields, so they line up in a row (DS 2.0); icon buttons and icons take
732
+ theirs when they are reworked */
733
+ --forge-control-height-md: 2.25rem; /* 36px */
734
+ --forge-control-height-sm: 1.75rem; /* 28px */
735
+ --forge-icon-button-md: 1.75rem; /* 28px */
736
+ --forge-icon-button-sm: 1.375rem; /* 22px */
737
+ --forge-icon-sm: 0.875rem; /* 14px */
738
+ --forge-icon-md: 1rem; /* 16px */
739
+ --forge-icon-lg: 1.25rem; /* 20px */
740
+
741
+ /* -------------------- SKELETON TOKENS -------------------- */
742
+ --forge-skeleton-bg: var(--forge-surface-container-highest);
743
+ --forge-skeleton-fg: var(--forge-surface-container-high);
744
+ --forge-skeleton-radius: var(--forge-radius-sm);
745
+ --forge-skeleton-shimmer-duration: 1.2s;
746
+
747
+ /* -------------------- AVATAR TOKENS -------------------- */
748
+ /* Lightness and chroma of an avatar's identity color; the hue comes from the person (--forge-avatar-hue) */
749
+ --forge-avatar-bg-lightness: 0.96;
750
+ --forge-avatar-bg-chroma: 0.02;
751
+ --forge-avatar-fg-lightness: 0.55;
752
+ --forge-avatar-fg-chroma: 0.15;
753
+
754
+ /* -------------------- CATEGORY TOKENS -------------------- */
755
+ /* Categorical marks (tags, tag groups): eight bg / text pairs from the avatar's formula, blue first. Text
756
+ passes 4.5:1 on its bg in both themes; hues 239, 183.4, 210.8 and 130.5 use text lightness 0.53, and some
757
+ chroma is lowered to stay in the sRGB gamut. The avatar keeps its own ten hues */
758
+ --forge-cat-1-bg: oklch(0.96 0.02 239);
759
+ --forge-cat-1-text: oklch(0.53 0.115 239);
760
+ --forge-cat-2-bg: oklch(0.96 0.02 321.2);
761
+ --forge-cat-2-text: oklch(0.55 0.15 321.2);
762
+ --forge-cat-3-bg: oklch(0.96 0.02 294.8);
763
+ --forge-cat-3-text: oklch(0.55 0.15 294.8);
764
+ --forge-cat-4-bg: oklch(0.96 0.015 28.8);
765
+ --forge-cat-4-text: oklch(0.55 0.15 28.8);
766
+ --forge-cat-5-bg: oklch(0.96 0.02 183.4);
767
+ --forge-cat-5-text: oklch(0.53 0.09 183.4);
768
+ --forge-cat-6-bg: oklch(0.96 0.02 210.8);
769
+ --forge-cat-6-text: oklch(0.53 0.09 210.8);
770
+ --forge-cat-7-bg: oklch(0.96 0.02 130.5);
771
+ --forge-cat-7-text: oklch(0.53 0.14 130.5);
772
+ --forge-cat-8-bg: oklch(0.96 0.02 9.6);
773
+ --forge-cat-8-text: oklch(0.55 0.15 9.6);
774
+ }
775
+ }
776
+
777
+ /* ============================================================
778
+ DARK MODE (TOKEN OVERRIDES ONLY)
779
+ ============================================================ */
780
+
781
+ @layer forge-theme {
782
+ /* ---- Dark mode ---- */
783
+ :root[data-theme="dark"] {
784
+ color-scheme: dark;
785
+
786
+ /* -------------------- SURFACES (TONE-BASED) -------------------- */
787
+ --forge-surface: oklch(0.16 var(--forge-chroma) var(--forge-hue));
788
+ --forge-surface-container-lowest: oklch(0.135 var(--forge-chroma) var(--forge-hue));
789
+ --forge-surface-container-low: oklch(0.18 var(--forge-chroma) var(--forge-hue));
790
+ --forge-surface-container: oklch(0.205 var(--forge-chroma) var(--forge-hue));
791
+ --forge-surface-container-high: oklch(0.24 var(--forge-chroma) var(--forge-hue));
792
+ --forge-surface-container-highest: oklch(0.28 var(--forge-chroma) var(--forge-hue));
793
+ --forge-surface-bright: oklch(0.24 var(--forge-chroma) var(--forge-hue));
794
+
795
+ --forge-text-primary: oklch(0.92 var(--forge-chroma) var(--forge-hue));
796
+ --forge-text-secondary: oklch(0.72 var(--forge-chroma) var(--forge-hue));
797
+ --forge-text-tertiary: oklch(0.635 var(--forge-chroma) var(--forge-hue));
798
+
799
+ --forge-border: oklch(0.3 var(--forge-chroma) var(--forge-hue));
800
+ --forge-border-strong: oklch(0.36 var(--forge-chroma) var(--forge-hue));
801
+
802
+ /* -------------------- SHADOWS -------------------- */
803
+ /* Rings lighter than the surface, drop shadows black and stronger to show on the dark surface */
804
+ --forge-shadow-rest:
805
+ 0 1px 2px oklch(0 0 0 / 0.3),
806
+ 0 0 0 1px oklch(0.3 var(--forge-chroma) var(--forge-hue));
807
+
808
+ /* Barely shows on the dark surface: the panel's edge there is the lighter container tone itself */
809
+ --forge-shadow-soft:
810
+ 0 1px 3px oklch(0 0 0 / 0.3),
811
+ 0 1px 2px oklch(0 0 0 / 0.2);
812
+
813
+ --forge-shadow-hover:
814
+ 0 4px 8px oklch(0 0 0 / 0.4),
815
+ 0 0 0 1px oklch(0.34 var(--forge-chroma) var(--forge-hue));
816
+
817
+ --forge-border-overlay: oklch(0.38 var(--forge-chroma) var(--forge-hue));
818
+ --forge-shadow-overlay: 0 12px 24px oklch(0 0 0 / 0.5);
819
+
820
+ --forge-border-modal: oklch(0.38 var(--forge-chroma) var(--forge-hue));
821
+ --forge-shadow-modal: 0 24px 48px oklch(0 0 0 / 0.6);
822
+
823
+ /* -------------------- SKELETON TOKENS -------------------- */
824
+ --forge-skeleton-bg: var(--forge-surface-container-high);
825
+ --forge-skeleton-fg: var(--forge-surface-container-highest);
826
+
827
+ /* -------------------- AVATAR TOKENS -------------------- */
828
+ --forge-avatar-bg-lightness: 0.32;
829
+ --forge-avatar-bg-chroma: 0.05;
830
+ --forge-avatar-fg-lightness: 0.85;
831
+ --forge-avatar-fg-chroma: 0.1;
832
+
833
+ /* -------------------- CATEGORY TOKENS -------------------- */
834
+ --forge-cat-1-bg: oklch(0.32 0.05 239);
835
+ --forge-cat-1-text: oklch(0.85 0.08 239);
836
+ --forge-cat-2-bg: oklch(0.32 0.05 321.2);
837
+ --forge-cat-2-text: oklch(0.85 0.1 321.2);
838
+ --forge-cat-3-bg: oklch(0.32 0.05 294.8);
839
+ --forge-cat-3-text: oklch(0.85 0.08 294.8);
840
+ --forge-cat-4-bg: oklch(0.32 0.05 28.8);
841
+ --forge-cat-4-text: oklch(0.85 0.08 28.8);
842
+ --forge-cat-5-bg: oklch(0.32 0.05 183.4);
843
+ --forge-cat-5-text: oklch(0.85 0.1 183.4);
844
+ --forge-cat-6-bg: oklch(0.32 0.05 210.8);
845
+ --forge-cat-6-text: oklch(0.85 0.1 210.8);
846
+ --forge-cat-7-bg: oklch(0.32 0.05 130.5);
847
+ --forge-cat-7-text: oklch(0.85 0.1 130.5);
848
+ --forge-cat-8-bg: oklch(0.32 0.05 9.6);
849
+ --forge-cat-8-text: oklch(0.85 0.08 9.6);
850
+
851
+ /* A lighter blue with dark text on it (7.4:1); hover and active get lighter still */
852
+ --forge-primary: oklch(0.72 var(--forge-primary-chroma) var(--forge-primary-hue));
853
+ --forge-primary-hover: oklch(0.77 var(--forge-primary-chroma) var(--forge-primary-hue));
854
+ --forge-primary-active: oklch(0.82 0.101 var(--forge-primary-hue));
855
+ --forge-text-on-primary: oklch(0.2 var(--forge-chroma) var(--forge-hue));
856
+
857
+ --forge-brand-hover: oklch(0.66 0.13 var(--forge-brand-hue));
858
+ --forge-brand-active: oklch(0.72 0.14 var(--forge-brand-hue));
859
+ --forge-brand-text: oklch(0.74 0.11 var(--forge-brand-hue));
860
+
861
+ --forge-danger-hover: oklch(0.71 0.16 31.05);
862
+ --forge-danger-active: oklch(0.76 0.17 31.05);
863
+ }
864
+
865
+ :root[data-theme="light"],
866
+ :root:not([data-theme]) {
867
+ color-scheme: light;
868
+ }
869
+
870
+ /* ---- Density ---- */
871
+ [data-density="compact"] {
872
+ --forge-space-1: 0.125rem;
873
+ --forge-space-2: 0.375rem;
874
+ --forge-space-3: 0.5rem;
875
+ --forge-space-4: 0.75rem;
876
+ --forge-space-5: 1rem;
877
+ --forge-space-6: 1.5rem;
878
+ }
879
+ }
880
+
881
+ /* ============================================================
882
+ BASE LAYER
883
+ ============================================================ */
884
+
885
+ @layer forge-base {
886
+ html {
887
+ font-family: var(--forge-font);
888
+ }
889
+
890
+ body {
891
+ font-family: var(--forge-font) !important; /* bootstrap-override */
892
+ font-size: var(--forge-size-sm) !important; /* bootstrap-override */
893
+ color: var(--forge-text-primary) !important; /* bootstrap-override */
894
+ background-color: var(--forge-surface) !important; /* bootstrap-override */
895
+ line-height: 1.5 !important; /* bootstrap-override */
896
+ /* macOS only: grayscale antialiasing, thinner and crisper text (no effect on Windows / Linux) */
897
+ -webkit-font-smoothing: antialiased;
898
+ -moz-osx-font-smoothing: grayscale;
899
+ }
900
+
901
+ /* The level is for the outline, the size for the look: a heading of any level takes another size with a
902
+ .forge-heading-* class, or a component sets --forge-heading-size and --forge-heading-weight on the heading (the
903
+ !important here would beat its font-size, even an !important one). Tight tracking only from 20px up. */
904
+ h1,
905
+ h2,
906
+ h3,
907
+ h4,
908
+ h5,
909
+ h6 {
910
+ font-weight: var(--forge-heading-weight, var(--forge-font-weight-bold)) !important; /* bootstrap-override */
911
+ letter-spacing: var(--forge-heading-letter-spacing, var(--forge-letter-spacing-tight)) !important; /* bootstrap-override */
912
+ line-height: var(--forge-heading-line-height);
913
+ }
914
+
915
+ h4,
916
+ h5,
917
+ h6 {
918
+ --forge-heading-letter-spacing: normal;
919
+ }
920
+
921
+ h1 {
922
+ font-size: var(--forge-heading-size, var(--forge-h1)) !important; /* bootstrap-override */
923
+ }
924
+ h2 {
925
+ font-size: var(--forge-heading-size, var(--forge-h2)) !important; /* bootstrap-override */
926
+ }
927
+ h3 {
928
+ font-size: var(--forge-heading-size, var(--forge-h3)) !important; /* bootstrap-override */
929
+ }
930
+ h4 {
931
+ font-size: var(--forge-heading-size, var(--forge-h4)) !important; /* bootstrap-override */
932
+ }
933
+ h5,
934
+ h6 {
935
+ font-size: var(--forge-heading-size, var(--forge-h5)) !important; /* bootstrap-override */
936
+ }
937
+
938
+ /* Heading sizes for any element or heading level: <h2 class="forge-heading-sm">. On a heading they set the
939
+ custom property its rule reads; set them on the heading, not on a container (nested headings inherit it) */
940
+ .forge-heading-xl {
941
+ --forge-heading-size: var(--forge-h1);
942
+ }
943
+ .forge-heading-lg {
944
+ --forge-heading-size: var(--forge-h2);
945
+ }
946
+ .forge-heading-md {
947
+ --forge-heading-size: var(--forge-h3);
948
+ }
949
+ .forge-heading-sm {
950
+ --forge-heading-size: var(--forge-h4);
951
+ --forge-heading-letter-spacing: normal;
952
+ }
953
+ .forge-heading-xs {
954
+ --forge-heading-size: var(--forge-h5);
955
+ --forge-heading-letter-spacing: normal;
956
+ }
957
+ .forge-heading-xl,
958
+ .forge-heading-lg,
959
+ .forge-heading-md,
960
+ .forge-heading-sm,
961
+ .forge-heading-xs {
962
+ font-size: var(--forge-heading-size);
963
+ font-weight: var(--forge-heading-weight, var(--forge-font-weight-bold));
964
+ letter-spacing: var(--forge-heading-letter-spacing, var(--forge-letter-spacing-tight));
965
+ line-height: var(--forge-heading-line-height);
966
+ }
967
+
968
+ .forge-page-title,
969
+ .forge-section-title,
970
+ .forge-subsection-title {
971
+ font-weight: var(--forge-font-weight-bold) !important; /* bootstrap-override */
972
+ letter-spacing: var(--forge-letter-spacing-tight) !important; /* bootstrap-override */
973
+ margin: 0 !important; /* bootstrap-override */
974
+ }
975
+
976
+ .forge-page-title {
977
+ font-size: var(--forge-h1) !important; /* bootstrap-override */
978
+ }
979
+ .forge-section-title {
980
+ font-size: var(--forge-h2) !important; /* bootstrap-override */
981
+ }
982
+ .forge-subsection-title {
983
+ font-size: var(--forge-h3) !important; /* bootstrap-override */
984
+ }
985
+
986
+ /* A short label above a title ("Settings" above "Billing"): quieter than the title, not a heading */
987
+ .forge-eyebrow {
988
+ margin: 0 !important; /* bootstrap-override */
989
+ color: var(--forge-text-secondary);
990
+ font-size: var(--forge-size-xs);
991
+ font-weight: var(--forge-font-weight-medium);
992
+ line-height: 1.5;
993
+ }
994
+
995
+ p {
996
+ font-size: var(--forge-content-base);
997
+ line-height: var(--forge-content-line-height);
998
+ }
999
+
1000
+ label {
1001
+ font-size: var(--forge-size-sm);
1002
+ color: var(--forge-text-secondary);
1003
+ }
1004
+
1005
+ small {
1006
+ font-size: var(--forge-size-xs);
1007
+ color: var(--forge-text-secondary);
1008
+ }
1009
+
1010
+ button,
1011
+ a,
1012
+ input,
1013
+ select,
1014
+ textarea {
1015
+ /* transition:
1016
+ background-color var(--forge-motion-fast) var(--forge-ease-out),
1017
+ border-color var(--forge-motion-fast) var(--forge-ease-out),
1018
+ box-shadow var(--forge-motion-fast) var(--forge-ease-out),
1019
+ transform var(--forge-motion-fast) var(--forge-ease-out); */
1020
+ }
1021
+ }
1022
+
1023
+ /* LAYOUT */
1024
+ @layer forge-layout {
1025
+ /* The app shell: .forge-body > .forge-application > .forge-application-frame (side bar and page side by side) */
1026
+ /* The shell fills the window: its height comes from the root */
1027
+ html:has(> .forge-body) {
1028
+ height: 100%;
1029
+ }
1030
+
1031
+ .forge-body {
1032
+ height: 100%;
1033
+ width: 100%;
1034
+ display: flex;
1035
+ flex-direction: column;
1036
+ }
1037
+
1038
+ .forge-application {
1039
+ display: flex;
1040
+ flex-grow: 1;
1041
+ flex-shrink: 1;
1042
+ width: 100%;
1043
+ min-height: 0;
1044
+ }
1045
+
1046
+ .forge-application-frame {
1047
+ display: flex;
1048
+ flex-direction: row;
1049
+ width: 100%;
1050
+ height: 100%;
1051
+ }
1052
+
1053
+ /* A page: the frame next to the side bar. Put it on the page component's host,
1054
+ host: { class: 'forge-page' }, and compose it from blocks: .forge-page-top (one or more) and
1055
+ .forge-page-bottom stay put, .forge-page-body scrolls. The frame scrolls only as a fallback, when the top and
1056
+ bottom areas leave the body less than its 12rem floor (a very short window, high zoom), so every control stays
1057
+ reachable. A small gap at the top and bottom keeps the top and bottom areas and the body's scrollbar off the
1058
+ window edges (the side bar stays full height). data-appearance="card" lifts it off the base surface; the card
1059
+ has its own margins instead of the gap. */
1060
+ .forge-page {
1061
+ /* Private: the side padding that centers a 960px column in a block, shrinking below that with no
1062
+ breakpoints. The % resolves in the block's padding (the page's width; the gutter is inside the block). */
1063
+ --_forge-page-fixed-inline: max(var(--forge-space-4), (100% - 960px) / 2);
1064
+ /* Private: the gap at the page's top and bottom */
1065
+ --_forge-page-block-gap: var(--forge-space-2);
1066
+ display: flex;
1067
+ flex-direction: column;
1068
+ flex: 1 1 auto;
1069
+ min-height: 0;
1070
+ box-sizing: border-box;
1071
+ overflow-x: hidden;
1072
+ overflow-y: auto;
1073
+ padding-block: var(--_forge-page-block-gap);
1074
+
1075
+ &[data-appearance="flat"] {
1076
+ background-color: var(--forge-surface);
1077
+ }
1078
+
1079
+ &[data-appearance="card"] {
1080
+ background-color: var(--forge-surface-container-lowest);
1081
+ border-radius: var(--forge-radius-lg);
1082
+ box-shadow: var(--forge-shadow-rest);
1083
+ margin: var(--forge-space-4) var(--forge-space-2) var(--forge-space-2) var(--forge-space-4);
1084
+ padding-block: 0;
1085
+ }
1086
+
1087
+ /* A printout has its own page margins */
1088
+ @media print {
1089
+ padding-block: 0;
1090
+ }
1091
+ }
1092
+
1093
+ /* The page's only scrolling area, its scrollbar at the page's right edge; the gutter is always kept, so a
1094
+ centered column doesn't move between short and long pages. The system width (not thin), as wide as the
1095
+ sideways scrollbars of the content inside. Fixed by default (a centered 960px column), --fluid takes the full
1096
+ width. */
1097
+ .forge-page-body {
1098
+ display: flex;
1099
+ flex-direction: column;
1100
+ flex: 1 1 auto;
1101
+ min-height: 12rem; /* below this the frame scrolls instead */
1102
+ box-sizing: border-box;
1103
+ /* the box of absolute content inside (visually hidden labels…), so it scrolls here and never stretches the
1104
+ document */
1105
+ position: relative;
1106
+ overflow: auto;
1107
+ scrollbar-gutter: stable;
1108
+ scrollbar-width: auto;
1109
+ scrollbar-color: var(--forge-scrollbar-thumb) transparent;
1110
+ padding-block: var(--forge-space-4);
1111
+ padding-inline: var(--_forge-page-fixed-inline);
1112
+
1113
+ &:hover {
1114
+ scrollbar-color: var(--forge-scrollbar-thumb-hover) transparent;
1115
+ }
1116
+
1117
+ &.forge-page-body--fluid {
1118
+ padding-inline: var(--forge-space-4);
1119
+ }
1120
+ }
1121
+
1122
+ /* Areas above and below the body that stay put: a title bar, tabs and filters, a save bar. Fluid by default,
1123
+ --fixed lines them up with a fixed body (they keep the same gutter, so both are as wide). A page header inside
1124
+ gets no bottom margin, the block's padding spaces it. */
1125
+ .forge-page-top {
1126
+ flex: none;
1127
+ box-sizing: border-box;
1128
+ overflow: hidden;
1129
+ scrollbar-gutter: stable;
1130
+ scrollbar-width: auto; /* the body's gutter width, so a fixed one lines up exactly */
1131
+ padding-block: var(--forge-space-3);
1132
+ padding-inline: var(--forge-space-4);
1133
+ --forge-page-header-spacing: 0;
1134
+
1135
+ &.forge-page-top--fixed {
1136
+ padding-inline: var(--_forge-page-fixed-inline);
1137
+ }
1138
+ }
1139
+
1140
+ .forge-page-bottom {
1141
+ flex: none;
1142
+ box-sizing: border-box;
1143
+ overflow: hidden;
1144
+ scrollbar-gutter: stable;
1145
+ scrollbar-width: auto; /* the body's gutter width, so a fixed one lines up exactly */
1146
+ padding-block: var(--forge-space-3);
1147
+ padding-inline: var(--forge-space-4);
1148
+ --forge-page-header-spacing: 0;
1149
+
1150
+ &.forge-page-bottom--fixed {
1151
+ padding-inline: var(--_forge-page-fixed-inline);
1152
+ }
1153
+ }
1154
+ }
1155
+
1156
+ /* ============================================================
1157
+ COMPONENTS LAYER
1158
+ Some props are marked with !important to ensure they are not overridden by the bootstrap.
1159
+ This is a temporary solution until we can remove bootstrap from the projects.
1160
+ Each one is tagged with a bootstrap-override comment (DevExtreme ones with devextreme-override), so they can be
1161
+ found and removed together; see "After Bootstrap" in DESIGN.md.
1162
+ ============================================================ */
1163
+
1164
+ @layer forge-components {
1165
+ /* -------------------- BUTTON -------------------- */
1166
+ .forge-button {
1167
+ display: inline-flex;
1168
+ align-items: center;
1169
+ justify-content: center;
1170
+ gap: var(--forge-space-2);
1171
+
1172
+ /* At least the control height, and it grows when the label wraps */
1173
+ min-height: var(--forge-control-height-md);
1174
+ font-size: var(--forge-size-sm) !important; /* bootstrap-override */
1175
+ padding: 0 var(--forge-space-3) !important; /* bootstrap-override */
1176
+
1177
+ border-radius: var(--forge-radius-md) !important; /* bootstrap-override */
1178
+ border: 1px solid transparent !important; /* bootstrap-override */
1179
+
1180
+ cursor: pointer !important; /* bootstrap-override */
1181
+
1182
+ /* Press: shrinks by --forge-press-scale. The transition here runs on release (a slower settle), the
1183
+ :active rule sets the near-instant press-in. scale, not transform: it doesn't fight an app's transform */
1184
+ --forge-press-scale: 0.97;
1185
+ transition:
1186
+ background-color var(--forge-motion-fast) var(--forge-ease-out),
1187
+ border-color var(--forge-motion-fast) var(--forge-ease-out),
1188
+ color var(--forge-motion-fast) var(--forge-ease-out),
1189
+ scale var(--forge-motion-slow) var(--forge-ease-out);
1190
+ }
1191
+
1192
+ /* An icon-only button keeps its own size: not stretched to the control height */
1193
+ .forge-button--icon {
1194
+ min-height: 0;
1195
+ padding-block: calc(var(--forge-space-1) * 1.5) !important; /* bootstrap-override */
1196
+ }
1197
+
1198
+ /* Not when disabled or busy: a button that can't act doesn't react to a press */
1199
+ .forge-button:active:not(:disabled, [aria-busy="true"]) {
1200
+ scale: var(--forge-press-scale);
1201
+ transition-duration: 60ms;
1202
+ }
1203
+
1204
+ .forge-button:focus-visible {
1205
+ outline: 2px solid var(--forge-focus-ring) !important; /* bootstrap-override */
1206
+ outline-offset: 2px !important; /* bootstrap-override */
1207
+ }
1208
+
1209
+ .forge-button:disabled {
1210
+ opacity: var(--forge-opacity-disabled);
1211
+ cursor: not-allowed !important; /* bootstrap-override */
1212
+ }
1213
+
1214
+ .forge-button--primary {
1215
+ background: var(--forge-primary);
1216
+ color: var(--forge-text-on-primary);
1217
+ }
1218
+
1219
+ .forge-button--primary:hover:not(:disabled) {
1220
+ background: var(--forge-primary-hover) !important; /* bootstrap-override */
1221
+ }
1222
+
1223
+ .forge-button--primary:active:not(:disabled) {
1224
+ background: var(--forge-primary-active) !important; /* bootstrap-override */
1225
+ }
1226
+
1227
+ .forge-button--secondary {
1228
+ background: var(--forge-surface-container-lowest);
1229
+ border-color: var(--forge-border) !important; /* bootstrap-override */
1230
+ }
1231
+
1232
+ .forge-button--secondary:hover:not(:disabled) {
1233
+ background: linear-gradient(var(--forge-hover-bg) 0 0), var(--forge-surface-container-lowest) !important; /* bootstrap-override */
1234
+ }
1235
+
1236
+ .forge-button--ghost:hover:not(:disabled) {
1237
+ background: var(--forge-hover-bg) !important; /* bootstrap-override */
1238
+ }
1239
+
1240
+ /* Danger: destructive actions. The fill is the danger hue darkened until white passes (4.6:1) */
1241
+ .forge-button--danger {
1242
+ background: oklch(from var(--forge-danger) min(l, 0.58) c h);
1243
+ color: var(--forge-text-on-brand);
1244
+ }
1245
+
1246
+ .forge-button--danger:hover:not(:disabled) {
1247
+ background: oklch(from var(--forge-danger) min(l, 0.54) c h) !important; /* bootstrap-override */
1248
+ }
1249
+
1250
+ /* Link: a light action that reads as text (More …, Add level); not for navigation, that is an <a> */
1251
+ .forge-button--link {
1252
+ --forge-press-scale: 1; /* reads as text: no squish */
1253
+ min-height: 0;
1254
+ padding: 0 !important; /* bootstrap-override */
1255
+ background: none;
1256
+ color: var(--forge-primary);
1257
+ }
1258
+
1259
+ .forge-button--link:hover:not(:disabled) {
1260
+ text-decoration: underline;
1261
+ text-underline-offset: 2px;
1262
+ }
1263
+
1264
+ .forge-button--sm {
1265
+ --forge-press-scale: 0.95; /* a small target needs a stronger squish to show */
1266
+ min-height: var(--forge-control-height-sm);
1267
+ padding-inline: var(--forge-space-2) !important; /* bootstrap-override */
1268
+ font-size: var(--forge-size-xs) !important; /* bootstrap-override */
1269
+ gap: var(--forge-space-1);
1270
+ }
1271
+
1272
+ /* Busy: aria-busy="true" while the action runs; the button keeps its size, its icon spins */
1273
+ .forge-button[aria-busy="true"] {
1274
+ cursor: progress !important; /* bootstrap-override */
1275
+ }
1276
+
1277
+ .forge-button[aria-busy="true"] :is(svg, .forge-button-spinner) {
1278
+ animation: forge-spin 0.8s linear infinite;
1279
+ }
1280
+
1281
+ /* -------------------- INPUT -------------------- */
1282
+ .forge-input {
1283
+ width: 100%;
1284
+ height: var(--forge-control-height-md);
1285
+ font-size: var(--forge-size-sm) !important; /* bootstrap-override */
1286
+ padding: 0 var(--forge-space-3) !important; /* bootstrap-override */
1287
+
1288
+ background: var(--forge-surface-container-lowest) !important; /* bootstrap-override */
1289
+ border: 1px solid var(--forge-border-strong) !important; /* bootstrap-override */
1290
+ border-radius: var(--forge-radius-md) !important; /* bootstrap-override */
1291
+ }
1292
+
1293
+ /* Disabled: the container step, as the library's disabled number box, duration box and date picker */
1294
+ .forge-input:disabled {
1295
+ background: var(--forge-surface-container) !important; /* bootstrap-override */
1296
+ color: var(--forge-text-tertiary);
1297
+ }
1298
+
1299
+ /* Multi-line: grows with its rows */
1300
+ textarea.forge-input {
1301
+ height: auto;
1302
+ padding-block: var(--forge-space-2) !important; /* bootstrap-override */
1303
+ }
1304
+
1305
+ /* A multi-select or list box shows several rows */
1306
+ select.forge-input:is([multiple], [size]:not([size="1"])) {
1307
+ height: auto;
1308
+ padding-block: var(--forge-space-2) !important; /* bootstrap-override */
1309
+ }
1310
+
1311
+ .forge-input::placeholder {
1312
+ color: var(--forge-text-tertiary) !important; /* bootstrap-override */
1313
+ }
1314
+
1315
+ .forge-input:focus {
1316
+ border-color: var(--forge-primary) !important; /* bootstrap-override */
1317
+ box-shadow: 0 0 0 1px var(--forge-primary) !important; /* bootstrap-override */
1318
+ }
1319
+
1320
+ .forge-input:focus-visible {
1321
+ border-color: var(--forge-primary) !important; /* bootstrap-override */
1322
+ box-shadow: 0 0 0 1px var(--forge-primary) !important; /* bootstrap-override */
1323
+ outline: none !important; /* bootstrap-override */
1324
+ }
1325
+
1326
+ /* Forced colors drop the ring (a shadow) and take over the border color, so the focused field gets an outline in
1327
+ the system highlight, where the ring would be. !important: the rule above sets outline: none !important */
1328
+ @media (forced-colors: active) {
1329
+ .forge-input:focus,
1330
+ .forge-input:focus-visible {
1331
+ outline: 2px solid Highlight !important;
1332
+ outline-offset: 0 !important;
1333
+ }
1334
+ }
1335
+
1336
+ /* -------------------- CONTENT -------------------- */
1337
+
1338
+ .forge-content {
1339
+ font-size: var(--forge-size-base);
1340
+ line-height: 1.6;
1341
+ }
1342
+
1343
+ /* -------------------- SKELETON -------------------- */
1344
+ .forge-skeleton {
1345
+ display: block;
1346
+ background: linear-gradient(
1347
+ 90deg,
1348
+ var(--forge-skeleton-bg),
1349
+ var(--forge-skeleton-fg),
1350
+ var(--forge-skeleton-bg)
1351
+ );
1352
+ background-size: 200% 100%;
1353
+ border-radius: var(--forge-skeleton-radius);
1354
+ pointer-events: none;
1355
+ }
1356
+
1357
+ .forge-skeleton--animated {
1358
+ animation: forge-skeleton-shimmer var(--forge-skeleton-shimmer-duration)
1359
+ var(--forge-ease-linear) infinite;
1360
+ }
1361
+
1362
+ .forge-skeleton--text {
1363
+ height: 1em;
1364
+ width: 100%;
1365
+ }
1366
+
1367
+ .forge-skeleton--heading {
1368
+ height: 1.25em;
1369
+ width: 60%;
1370
+ }
1371
+
1372
+ .forge-skeleton--avatar {
1373
+ width: 32px;
1374
+ height: 32px;
1375
+ border-radius: var(--forge-radius-full);
1376
+ }
1377
+
1378
+ .forge-skeleton--button {
1379
+ width: 96px;
1380
+ height: 32px;
1381
+ border-radius: var(--forge-radius-md);
1382
+ }
1383
+
1384
+ /* -------------------- PANEL, CARD, INSET -------------------- */
1385
+ /* Named by job, for gray (surface) pages. A panel groups a section of the page, a card is one self-contained thing
1386
+ (on the surface or in a panel), an inset recesses a block inside either. A card goes in a panel, never a panel
1387
+ in a panel or a card in a card. Titles use the heading classes, there are no header parts. */
1388
+ .forge-panel {
1389
+ padding: var(--forge-space-4);
1390
+ border-radius: var(--forge-radius-lg);
1391
+ background-color: var(--forge-surface-container-low);
1392
+ color: var(--forge-text-primary);
1393
+ box-shadow: var(--forge-shadow-soft);
1394
+ /* Invisible, but drawn in forced colors (Windows high contrast), which drops the shadow */
1395
+ outline: 1px solid transparent;
1396
+ }
1397
+
1398
+ .forge-card {
1399
+ padding: var(--forge-space-4);
1400
+ border: 1px solid var(--forge-border);
1401
+ border-radius: var(--forge-radius-md);
1402
+ background-color: var(--forge-surface-container-lowest);
1403
+ color: var(--forge-text-primary);
1404
+ }
1405
+
1406
+ /* The whole card is the link or button (<a>, <button>): lifts on hover. Keep its content short, it is the
1407
+ accessible name. A card with several links stays a plain .forge-card. */
1408
+ .forge-card--interactive {
1409
+ display: block;
1410
+ width: 100%;
1411
+ font: inherit;
1412
+ text-align: start;
1413
+ color: var(--forge-text-primary) !important; /* bootstrap-override */
1414
+ text-decoration: none !important; /* bootstrap-override */
1415
+ cursor: pointer;
1416
+ transition:
1417
+ box-shadow var(--forge-motion-fast) var(--forge-ease-out),
1418
+ border-color var(--forge-motion-fast) var(--forge-ease-out);
1419
+
1420
+ &:hover {
1421
+ border-color: transparent;
1422
+ box-shadow: var(--forge-shadow-hover);
1423
+ }
1424
+
1425
+ &:focus-visible {
1426
+ outline: 2px solid var(--forge-focus-ring-strong);
1427
+ outline-offset: 2px;
1428
+ }
1429
+ }
1430
+
1431
+ /* Recessed block inside a card or panel */
1432
+ .forge-inset {
1433
+ padding: var(--forge-space-3) var(--forge-space-4);
1434
+ border-radius: var(--forge-radius-md);
1435
+ background-color: var(--forge-surface-container);
1436
+ }
1437
+
1438
+ /* ============================================================
1439
+ PATTERNS: classes on native HTML, no component. The app or Angular (Aria, CDK) supplies the behavior.
1440
+ Several properties fight Bootstrap's reboot (link color, list and dl margins, button radius) and are tagged.
1441
+ ============================================================ */
1442
+
1443
+ /* -------------------- ICON BUTTON -------------------- */
1444
+ /* <button class="forge-icon-button" aria-label="…">. Always named (aria-label and a tooltip). Pressed state from
1445
+ aria-pressed="true" or aria-expanded="true" */
1446
+ .forge-icon-button {
1447
+ display: inline-flex;
1448
+ flex: none;
1449
+ align-items: center;
1450
+ justify-content: center;
1451
+ width: var(--forge-icon-button-md);
1452
+ height: var(--forge-icon-button-md);
1453
+ padding: 0;
1454
+ border: 1px solid transparent;
1455
+ border-radius: var(--forge-radius-md) !important; /* bootstrap-override */
1456
+ background: none;
1457
+ color: var(--forge-text-primary);
1458
+ cursor: pointer;
1459
+ /* Press as .forge-button, stronger for the small target */
1460
+ --forge-press-scale: 0.92;
1461
+ transition:
1462
+ background-color var(--forge-motion-fast) var(--forge-ease-out),
1463
+ scale var(--forge-motion-slow) var(--forge-ease-out);
1464
+ }
1465
+
1466
+ .forge-icon-button > :is(svg, fa-icon) {
1467
+ width: var(--forge-icon-md);
1468
+ height: var(--forge-icon-md);
1469
+ }
1470
+
1471
+ .forge-icon-button:hover:not(:disabled),
1472
+ .forge-icon-button:is([aria-pressed="true"], [aria-expanded="true"]) {
1473
+ background-color: var(--forge-hover-bg);
1474
+ }
1475
+
1476
+ .forge-icon-button:active:not(:disabled) {
1477
+ background-color: var(--forge-active-bg);
1478
+ scale: var(--forge-press-scale);
1479
+ transition-duration: 60ms;
1480
+ }
1481
+
1482
+ .forge-icon-button:focus-visible {
1483
+ outline: 2px solid var(--forge-focus-ring);
1484
+ outline-offset: 2px;
1485
+ }
1486
+
1487
+ .forge-icon-button:disabled {
1488
+ opacity: var(--forge-opacity-disabled);
1489
+ cursor: not-allowed;
1490
+ }
1491
+
1492
+ .forge-icon-button--sm {
1493
+ width: var(--forge-icon-button-sm);
1494
+ height: var(--forge-icon-button-sm);
1495
+ }
1496
+
1497
+ .forge-icon-button--sm > :is(svg, fa-icon) {
1498
+ width: var(--forge-icon-sm);
1499
+ height: var(--forge-icon-sm);
1500
+ }
1501
+
1502
+ /* Next to 36px buttons and fields */
1503
+ .forge-icon-button--lg {
1504
+ width: var(--forge-control-height-md);
1505
+ height: var(--forge-control-height-md);
1506
+ }
1507
+
1508
+ .forge-icon-button--danger:hover:not(:disabled) {
1509
+ color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
1510
+ }
1511
+
1512
+ /* -------------------- CHIP (filter) -------------------- */
1513
+ /* <button class="forge-chip" aria-pressed="false">: a filter toggled on and off. Filters carry the product's brand */
1514
+ .forge-chip {
1515
+ display: inline-flex;
1516
+ align-items: center;
1517
+ gap: var(--forge-space-1);
1518
+ min-height: var(--forge-control-height-sm);
1519
+ padding: 0 var(--forge-space-3);
1520
+ border: 1px solid var(--forge-border-strong);
1521
+ border-radius: var(--forge-radius-full) !important; /* bootstrap-override */
1522
+ background: var(--forge-surface-container-lowest);
1523
+ color: var(--forge-text-primary);
1524
+ font-size: var(--forge-size-xs);
1525
+ font-weight: var(--forge-font-weight-medium);
1526
+ cursor: pointer;
1527
+ }
1528
+
1529
+ /* The state layer on top of the chip's own background */
1530
+ .forge-chip:hover {
1531
+ background-image: linear-gradient(var(--forge-hover-bg) 0 0);
1532
+ }
1533
+
1534
+ .forge-chip[aria-pressed="true"] {
1535
+ border-color: color-mix(in oklab, var(--forge-brand) 60%, var(--forge-surface-container-lowest));
1536
+ background-color: color-mix(in oklab, var(--forge-brand) 16%, var(--forge-surface-container-lowest));
1537
+ color: color-mix(in oklab, var(--forge-brand) 75%, var(--forge-text-primary));
1538
+ }
1539
+
1540
+ .forge-chip:focus-visible {
1541
+ outline: 2px solid var(--forge-focus-ring);
1542
+ outline-offset: 2px;
1543
+ }
1544
+
1545
+ /* -------------------- FILTER PILL (tokens) -------------------- */
1546
+ /* A filter that opens a choice (select, combobox, menu trigger) and shows its value. Only tokens: put
1547
+ .forge-filter-pill on the filter's outermost element, so its field, chevron and clear button all read the same
1548
+ values, and let each filter's own styles apply them (a DevExtreme select box and an Angular Aria combobox are
1549
+ built differently). The modifiers swap values: --active once the filter differs from its default, --disabled.
1550
+ Backgrounds are opaque, so a pill looks the same on any surface. Active follows the pressed .forge-chip */
1551
+ .forge-filter-pill {
1552
+ --forge-filter-border-radius: var(--forge-radius-full);
1553
+ --forge-filter-name-font-weight: var(--forge-font-weight-bold);
1554
+ --forge-filter-cursor: pointer;
1555
+
1556
+ --forge-filter-bg: var(--forge-surface-container-lowest);
1557
+ --forge-filter-bg-hover: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-hover-opacity), var(--forge-surface-container-lowest));
1558
+ --forge-filter-clear-bg-hover: color-mix(in srgb, var(--forge-text-primary) var(--forge-state-pressed-opacity), var(--forge-surface-container-lowest));
1559
+ --forge-filter-border: var(--forge-border-strong);
1560
+ --forge-filter-color: var(--forge-text-primary);
1561
+ --forge-filter-icon-color: var(--forge-text-secondary);
1562
+ /* Focus as on the form fields: the border takes the ring color, and a ring outside it */
1563
+ --forge-filter-focus-border: var(--forge-focus-ring);
1564
+ --forge-filter-focus-ring: 0 0 0 1px var(--forge-focus-ring);
1565
+ }
1566
+
1567
+ .forge-filter-pill--active {
1568
+ --forge-filter-bg: color-mix(in oklab, var(--forge-brand) 16%, var(--forge-surface-container-lowest));
1569
+ /* More brand in the same mix */
1570
+ --forge-filter-bg-hover: color-mix(in oklab, var(--forge-brand) 24%, var(--forge-surface-container-lowest));
1571
+ --forge-filter-clear-bg-hover: color-mix(in oklab, var(--forge-brand) 32%, var(--forge-surface-container-lowest));
1572
+ --forge-filter-border: color-mix(in oklab, var(--forge-brand) 60%, var(--forge-surface-container-lowest));
1573
+ --forge-filter-color: color-mix(in oklab, var(--forge-brand) 75%, var(--forge-text-primary));
1574
+ --forge-filter-icon-color: var(--forge-filter-color);
1575
+ }
1576
+
1577
+ /* After active, so an active filter that is disabled still looks disabled */
1578
+ .forge-filter-pill--disabled {
1579
+ --forge-filter-bg: var(--forge-surface-container);
1580
+ --forge-filter-bg-hover: var(--forge-filter-bg);
1581
+ --forge-filter-border: var(--forge-border);
1582
+ --forge-filter-color: var(--forge-text-tertiary);
1583
+ --forge-filter-icon-color: var(--forge-text-tertiary);
1584
+ --forge-filter-cursor: not-allowed;
1585
+ }
1586
+
1587
+ /* -------------------- TAG -------------------- */
1588
+ /* <span class="forge-tag forge-tag--cat-3">: a label people attach to classify an entry. The color comes from its
1589
+ category (the tag group), never from a meaning: states are a status, not a tag */
1590
+ .forge-tag {
1591
+ --forge-tag-bg: var(--forge-hover-bg);
1592
+ --forge-tag-text: var(--forge-text-secondary);
1593
+ display: inline-flex;
1594
+ align-items: center;
1595
+ gap: var(--forge-space-1);
1596
+ max-width: 100%;
1597
+ padding: calc(var(--forge-space-1) / 2) var(--forge-space-2);
1598
+ border-radius: var(--forge-radius-sm);
1599
+ background: var(--forge-tag-bg);
1600
+ color: var(--forge-tag-text);
1601
+ box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--forge-tag-text) 24%, transparent);
1602
+ font-size: var(--forge-size-xs);
1603
+ font-weight: var(--forge-font-weight-medium);
1604
+ line-height: var(--forge-line-height-snug);
1605
+ white-space: nowrap;
1606
+ vertical-align: middle;
1607
+ }
1608
+
1609
+ .forge-tag--cat-1 { --forge-tag-bg: var(--forge-cat-1-bg); --forge-tag-text: var(--forge-cat-1-text); }
1610
+ .forge-tag--cat-2 { --forge-tag-bg: var(--forge-cat-2-bg); --forge-tag-text: var(--forge-cat-2-text); }
1611
+ .forge-tag--cat-3 { --forge-tag-bg: var(--forge-cat-3-bg); --forge-tag-text: var(--forge-cat-3-text); }
1612
+ .forge-tag--cat-4 { --forge-tag-bg: var(--forge-cat-4-bg); --forge-tag-text: var(--forge-cat-4-text); }
1613
+ .forge-tag--cat-5 { --forge-tag-bg: var(--forge-cat-5-bg); --forge-tag-text: var(--forge-cat-5-text); }
1614
+ .forge-tag--cat-6 { --forge-tag-bg: var(--forge-cat-6-bg); --forge-tag-text: var(--forge-cat-6-text); }
1615
+ .forge-tag--cat-7 { --forge-tag-bg: var(--forge-cat-7-bg); --forge-tag-text: var(--forge-cat-7-text); }
1616
+ .forge-tag--cat-8 { --forge-tag-bg: var(--forge-cat-8-bg); --forge-tag-text: var(--forge-cat-8-text); }
1617
+
1618
+ /* +N when not all tags fit */
1619
+ .forge-tag--more {
1620
+ --forge-tag-bg: transparent;
1621
+ --forge-tag-text: var(--forge-text-secondary);
1622
+ box-shadow: inset 0 0 0 1px var(--forge-border-strong);
1623
+ }
1624
+
1625
+ .forge-tag-label {
1626
+ min-width: 0;
1627
+ overflow: hidden;
1628
+ text-overflow: ellipsis;
1629
+ }
1630
+
1631
+ /* <button class="forge-tag-remove" aria-label="Remove tag Downtown"> inside a tag */
1632
+ .forge-tag-remove {
1633
+ display: inline-flex;
1634
+ align-items: center;
1635
+ justify-content: center;
1636
+ width: var(--forge-icon-md);
1637
+ height: var(--forge-icon-md);
1638
+ margin-inline-end: calc(var(--forge-space-1) * -1);
1639
+ padding: 0;
1640
+ border: 0;
1641
+ border-radius: var(--forge-radius-sm) !important; /* bootstrap-override */
1642
+ background: none;
1643
+ color: inherit;
1644
+ cursor: pointer;
1645
+ }
1646
+
1647
+ .forge-tag-remove:hover {
1648
+ background: color-mix(in srgb, currentColor 16%, transparent);
1649
+ }
1650
+
1651
+ .forge-tag-remove:focus-visible {
1652
+ outline: 2px solid var(--forge-focus-ring);
1653
+ outline-offset: 0;
1654
+ }
1655
+
1656
+ .forge-tag-list {
1657
+ display: flex;
1658
+ flex-wrap: wrap;
1659
+ gap: var(--forge-space-1);
1660
+ }
1661
+
1662
+ /* -------------------- STATUS AND PILL -------------------- */
1663
+ /* The state of an entry, set by the system or the workflow. Dot by default (<span class="forge-status
1664
+ forge-status--success">Accepted</span>), a pill where the state is the point of the row or header. The word carries
1665
+ the meaning; the color only supports it. Text mixes per intent are the largest that pass 4.5:1 in both themes */
1666
+ .forge-status,
1667
+ .forge-pill {
1668
+ --forge-status-color: var(--forge-text-secondary);
1669
+ --forge-status-text-mix: 70%;
1670
+ display: inline-flex;
1671
+ align-items: center;
1672
+ gap: var(--forge-space-2);
1673
+ white-space: nowrap;
1674
+ }
1675
+
1676
+ .forge-status::before {
1677
+ content: "";
1678
+ flex: none;
1679
+ width: var(--forge-space-2);
1680
+ height: var(--forge-space-2);
1681
+ border-radius: var(--forge-radius-full);
1682
+ background: var(--forge-status-color);
1683
+ }
1684
+
1685
+ .forge-pill {
1686
+ gap: var(--forge-space-1);
1687
+ padding: calc(var(--forge-space-1) / 2) var(--forge-space-2);
1688
+ border-radius: var(--forge-radius-full);
1689
+ background: color-mix(in oklab, var(--forge-status-color) 16%, var(--forge-surface-container-lowest));
1690
+ color: color-mix(in oklab, var(--forge-status-color) var(--forge-status-text-mix), var(--forge-text-primary));
1691
+ font-size: var(--forge-size-xs);
1692
+ font-weight: var(--forge-font-weight-medium);
1693
+ line-height: var(--forge-line-height-snug);
1694
+ }
1695
+
1696
+ .forge-pill > :is(svg, fa-icon) {
1697
+ width: var(--forge-icon-sm);
1698
+ height: var(--forge-icon-sm);
1699
+ }
1700
+
1701
+ .forge-pill--neutral {
1702
+ background: var(--forge-hover-bg);
1703
+ color: var(--forge-text-secondary);
1704
+ }
1705
+
1706
+ :is(.forge-status, .forge-pill).forge-status--success { --forge-status-color: var(--forge-success); }
1707
+ :is(.forge-status, .forge-pill).forge-status--warning { --forge-status-color: var(--forge-warning); --forge-status-text-mix: 50%; }
1708
+ :is(.forge-status, .forge-pill).forge-status--danger { --forge-status-color: var(--forge-danger); }
1709
+ :is(.forge-status, .forge-pill).forge-status--info { --forge-status-color: var(--forge-info); --forge-status-text-mix: 75%; }
1710
+ :is(.forge-status, .forge-pill).forge-status--primary { --forge-status-color: var(--forge-primary); --forge-status-text-mix: 80%; }
1711
+
1712
+ /* A danger dot reads its word in the danger color too */
1713
+ .forge-status.forge-status--danger {
1714
+ color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
1715
+ }
1716
+
1717
+ /* -------------------- FORM FIELD -------------------- */
1718
+ /* <div class="forge-field"><label class="forge-field-label" for="x">…</label><input class="forge-input" id="x"
1719
+ aria-describedby="x-hint"><div class="forge-field-hint" id="x-hint">…</div></div>. The app wires for / id /
1720
+ aria-describedby; an error replaces the hint and the input gets aria-invalid="true" */
1721
+ .forge-field {
1722
+ display: flex;
1723
+ flex-direction: column;
1724
+ gap: var(--forge-space-1);
1725
+ min-width: 0;
1726
+ }
1727
+
1728
+ .forge-field-label {
1729
+ display: inline-flex !important; /* bootstrap-override */
1730
+ align-items: center;
1731
+ gap: var(--forge-space-1);
1732
+ margin: 0 !important; /* bootstrap-override */
1733
+ color: var(--forge-text-primary) !important; /* bootstrap-override: sds-bootstrap colors every label */
1734
+ font-size: var(--forge-size-sm);
1735
+ font-weight: var(--forge-font-weight-medium);
1736
+ }
1737
+
1738
+ /* <span class="forge-field-required" aria-hidden="true">*</span>; the input carries aria-required / required */
1739
+ .forge-field-required {
1740
+ color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
1741
+ }
1742
+
1743
+ .forge-field-hint {
1744
+ color: var(--forge-text-secondary);
1745
+ font-size: var(--forge-size-xs);
1746
+ }
1747
+
1748
+ .forge-field-error {
1749
+ color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
1750
+ font-size: var(--forge-size-xs);
1751
+ }
1752
+
1753
+ .forge-input[aria-invalid="true"] {
1754
+ border-color: var(--forge-danger) !important; /* bootstrap-override */
1755
+ }
1756
+
1757
+ /* Four columns: a field spans all, --half spans two, --quarter one */
1758
+ .forge-form-grid {
1759
+ display: grid;
1760
+ grid-template-columns: repeat(4, minmax(0, 1fr));
1761
+ gap: var(--forge-space-4);
1762
+ }
1763
+
1764
+ .forge-form-grid > * {
1765
+ grid-column: 1 / -1;
1766
+ }
1767
+
1768
+ .forge-form-grid > .forge-field--half {
1769
+ grid-column: span 2;
1770
+ }
1771
+
1772
+ .forge-form-grid > .forge-field--quarter {
1773
+ grid-column: span 1;
1774
+ }
1775
+
1776
+ /* Two fields read as one value (Od – Do) */
1777
+ .forge-field-pair {
1778
+ display: grid;
1779
+ grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
1780
+ align-items: center;
1781
+ gap: var(--forge-space-2);
1782
+ }
1783
+
1784
+ /* -------------------- CHECKBOX AND RADIO -------------------- */
1785
+ /* <label class="forge-check"><input type="checkbox"><span>Aktivna</span></label>: native inputs in the primary */
1786
+ .forge-check {
1787
+ display: inline-flex !important; /* bootstrap-override */
1788
+ align-items: center;
1789
+ gap: var(--forge-space-2);
1790
+ margin: 0 !important; /* bootstrap-override */
1791
+ color: var(--forge-text-primary) !important; /* bootstrap-override: sds-bootstrap colors every label */
1792
+ font-size: var(--forge-size-sm) !important; /* bootstrap-override: sds-bootstrap sizes every label; an option is body text */
1793
+ font-weight: normal !important; /* bootstrap-override: sds-bootstrap bolds every label */
1794
+ cursor: pointer;
1795
+ }
1796
+
1797
+ .forge-check > input {
1798
+ flex: none;
1799
+ width: var(--forge-icon-md);
1800
+ height: var(--forge-icon-md);
1801
+ margin: 0;
1802
+ accent-color: var(--forge-primary);
1803
+ cursor: pointer;
1804
+ }
1805
+
1806
+ .forge-check > input:focus-visible {
1807
+ outline: 2px solid var(--forge-focus-ring);
1808
+ outline-offset: 2px;
1809
+ }
1810
+
1811
+ /* A setting that applies at once: <label class="forge-check forge-check--switch">
1812
+ <input type="checkbox" role="switch"><span>Notifications</span></label>. The track is drawn on the native
1813
+ checkbox, so keyboard, form value and `checked` stay native. Off: a tertiary track (3:1 to the card), on: the
1814
+ primary with the thumb at the end. Everything is sized from the track height, --_switch-h */
1815
+ .forge-check--switch {
1816
+ --_switch-h: var(--forge-icon-md);
1817
+ }
1818
+
1819
+ /* In a filter toolbar, next to 36px controls: a 24px track, also a 24px target on its own */
1820
+ .forge-check--switch.forge-check--lg {
1821
+ --_switch-h: 1.5rem;
1822
+ }
1823
+
1824
+ .forge-check--switch > input {
1825
+ appearance: none;
1826
+ position: relative;
1827
+ width: calc(var(--_switch-h) * 1.75);
1828
+ height: var(--_switch-h);
1829
+ border-radius: var(--forge-radius-full);
1830
+ background: var(--forge-text-tertiary);
1831
+ transition: background-color var(--forge-motion-fast) var(--forge-ease-out);
1832
+ }
1833
+
1834
+ .forge-check--switch > input::before {
1835
+ content: '';
1836
+ position: absolute;
1837
+ inset-block-start: 2px;
1838
+ inset-inline-start: 2px;
1839
+ width: calc(var(--_switch-h) - 4px);
1840
+ height: calc(var(--_switch-h) - 4px);
1841
+ border-radius: var(--forge-radius-full);
1842
+ background: var(--forge-surface-container-lowest);
1843
+ transition: translate var(--forge-motion-fast) var(--forge-ease-out);
1844
+ }
1845
+
1846
+ .forge-check--switch > input:checked {
1847
+ background: var(--forge-primary);
1848
+ }
1849
+
1850
+ .forge-check--switch > input:checked::before {
1851
+ background: var(--forge-text-on-primary);
1852
+ translate: calc(var(--_switch-h) * 0.75) 0;
1853
+ }
1854
+
1855
+ [dir='rtl'] .forge-check--switch > input:checked::before {
1856
+ translate: calc(var(--_switch-h) * -0.75) 0;
1857
+ }
1858
+
1859
+ .forge-check--switch > input:disabled {
1860
+ background: var(--forge-border-strong);
1861
+ }
1862
+
1863
+ .forge-check--switch > input:disabled::before {
1864
+ background: var(--forge-surface-container);
1865
+ }
1866
+
1867
+ .forge-check:has(> input:disabled) {
1868
+ color: var(--forge-text-tertiary) !important; /* bootstrap-override */
1869
+ cursor: not-allowed;
1870
+ }
1871
+
1872
+ /* A parent and its options: <div class="forge-check-group"><label class="forge-check">…</label>
1873
+ <div class="forge-check-children">…</div></div> */
1874
+ .forge-check-group {
1875
+ display: flex;
1876
+ flex-direction: column;
1877
+ gap: var(--forge-space-2);
1878
+ }
1879
+
1880
+ .forge-check-children {
1881
+ display: flex;
1882
+ flex-direction: column;
1883
+ gap: var(--forge-space-2);
1884
+ padding-inline-start: calc(var(--forge-icon-md) + var(--forge-space-2));
1885
+ }
1886
+
1887
+ /* -------------------- LIST FRAME -------------------- */
1888
+ /* A list inside a popup: a frame on all sides, lines between the rows stop short of the edges, an action that adds
1889
+ a row sits in the frame's last row (.forge-list-frame-foot). Lists on a page have no frame, see .forge-list */
1890
+ .forge-list-frame {
1891
+ overflow: hidden;
1892
+ border: 1px solid var(--forge-border);
1893
+ border-radius: var(--forge-radius-md);
1894
+ background: var(--forge-surface-container-lowest);
1895
+ }
1896
+
1897
+ .forge-list-frame-rows > * + *,
1898
+ .forge-list-frame-foot {
1899
+ position: relative;
1900
+ }
1901
+
1902
+ .forge-list-frame-rows > * + *::before,
1903
+ .forge-list-frame-foot::before {
1904
+ content: "";
1905
+ position: absolute;
1906
+ top: 0;
1907
+ inset-inline: var(--forge-space-4);
1908
+ height: 1px;
1909
+ background: var(--forge-border);
1910
+ }
1911
+
1912
+ .forge-list-frame-foot {
1913
+ padding: var(--forge-space-2) var(--forge-space-4);
1914
+ }
1915
+
1916
+ /* -------------------- SCROLL FADE -------------------- */
1917
+ /* How a box shows there is more to scroll (the navigation container, the modal body): the content fades out at the
1918
+ edge it continues past. A mask, so any background works, nothing to set. No script: a scroll-driven animation
1919
+ (animation-timeline) grows the top fade over the first --forge-scroll-fade-size of scrolling and shrinks the
1920
+ bottom one over the last; a box that doesn't overflow has no timeline and no fade. Browsers without scroll-driven
1921
+ animations (Firefox for now) show no fade at all. The mask leaves out a strip for the thin scrollbar, so the
1922
+ scrollbar stays solid; scroll padding keeps a focused item clear of the fades. The box sets its own overflow */
1923
+ @supports (animation-timeline: scroll()) {
1924
+ .forge-scroll-fade,
1925
+ .forge-navigation-level-links,
1926
+ .forge-page-body--fade {
1927
+ --forge-scroll-fade-size: 32px;
1928
+ --forge-scroll-fade-bar: 12px; /* the thin scrollbar's strip, left solid; 0px for a box without a scrollbar */
1929
+
1930
+ scrollbar-width: thin;
1931
+ scroll-padding-block: var(--forge-scroll-fade-size);
1932
+ mask-image:
1933
+ linear-gradient(
1934
+ to bottom,
1935
+ transparent,
1936
+ #000 var(--forge-scroll-fade-top),
1937
+ #000 calc(100% - var(--forge-scroll-fade-bottom)),
1938
+ transparent
1939
+ ),
1940
+ linear-gradient(#000, #000);
1941
+ mask-size:
1942
+ calc(100% - var(--forge-scroll-fade-bar)) 100%,
1943
+ var(--forge-scroll-fade-bar) 100%;
1944
+ mask-position: 0 0, 100% 0;
1945
+ mask-repeat: no-repeat;
1946
+ /* Longhands: the animation shorthand would reset the timeline */
1947
+ animation-name: forge-scroll-fade-top, forge-scroll-fade-bottom;
1948
+ animation-duration: auto;
1949
+ animation-timing-function: linear;
1950
+ animation-fill-mode: both;
1951
+ animation-timeline: scroll(self block);
1952
+ animation-range:
1953
+ 0 var(--forge-scroll-fade-size),
1954
+ calc(100% - var(--forge-scroll-fade-size)) 100%;
1955
+ }
1956
+
1957
+ /* The scrollbar is on the left in right-to-left text */
1958
+ .forge-scroll-fade:dir(rtl),
1959
+ .forge-navigation-level-links:dir(rtl),
1960
+ .forge-page-body--fade:dir(rtl) {
1961
+ mask-position: 100% 0, 0 0;
1962
+ }
1963
+
1964
+ /* A page body that fades at the edges it scrolls past (the content fades under the page top). Not
1965
+ .forge-scroll-fade on the body: the page keeps its own scrollbar, the system width with a stable gutter (as
1966
+ every page), and the strip left solid is wide enough for it (15–17px); the body's inline padding beside it
1967
+ holds no content */
1968
+ .forge-page-body--fade {
1969
+ --forge-scroll-fade-bar: 24px;
1970
+
1971
+ scrollbar-width: auto;
1972
+ }
1973
+ }
1974
+
1975
+ /* -------------------- SECOND-LEVEL NAVIGATION LINKS -------------------- */
1976
+ /* In a forge-navigation-level, the div around the links: the rows before it (the way back, a find box) stay put and
1977
+ only the links scroll, with the scroll fade (below). The level fills the container when it has this div (its own
1978
+ styles). The div reaches over the level's inline padding, so its scrollbar sits at the side bar's edge. The
1979
+ collapsed rail shows no scrollbar and fades the full width; a level that leaves hides its scrollbar while it fades
1980
+ out, without removing it, so the links don't shift */
1981
+ .forge-navigation-level-links {
1982
+ display: flex;
1983
+ flex: 1 1 0;
1984
+ flex-direction: column;
1985
+ gap: 1px;
1986
+ min-height: 0;
1987
+ margin: var(--forge-space-1) calc(-1 * var(--forge-space-2)) 0;
1988
+ padding-inline: var(--forge-space-2);
1989
+ overflow-x: hidden;
1990
+ overflow-y: auto;
1991
+ scrollbar-width: thin;
1992
+ scrollbar-color: var(--forge-scrollbar-thumb) transparent;
1993
+
1994
+ &:hover {
1995
+ scrollbar-color: var(--forge-scrollbar-thumb-hover) transparent;
1996
+ }
1997
+ }
1998
+
1999
+ .forge-navigation-container[data-collapsed] .forge-navigation-level-links {
2000
+ --forge-scroll-fade-bar: 0px;
2001
+
2002
+ scrollbar-width: none;
2003
+ }
2004
+
2005
+ .forge-navigation-level[data-forge-leave] > .forge-navigation-level-links {
2006
+ scrollbar-color: transparent transparent;
2007
+ }
2008
+
2009
+ /* -------------------- CHOICE MATRIX -------------------- */
2010
+ /* <table class="forge-choice-matrix">: one choice per row from the same few levels; the levels are the column
2011
+ headers, each cell a radio with an aria-label naming row and level */
2012
+ .forge-choice-matrix {
2013
+ width: 100%;
2014
+ border-collapse: collapse;
2015
+ }
2016
+
2017
+ .forge-choice-matrix :is(th, td) {
2018
+ padding: var(--forge-space-2) var(--forge-space-4);
2019
+ line-height: var(--forge-line-height-snug);
2020
+ }
2021
+
2022
+ .forge-choice-matrix thead th {
2023
+ color: var(--forge-text-secondary);
2024
+ font-size: var(--forge-size-xs);
2025
+ font-weight: var(--forge-font-weight-medium);
2026
+ text-align: center;
2027
+ }
2028
+
2029
+ .forge-choice-matrix thead th:first-child,
2030
+ .forge-choice-matrix tbody th {
2031
+ text-align: start;
2032
+ font-weight: normal;
2033
+ }
2034
+
2035
+ .forge-choice-matrix td {
2036
+ width: 5rem;
2037
+ text-align: center;
2038
+ }
2039
+
2040
+ .forge-choice-matrix tbody tr {
2041
+ border-top: 1px solid var(--forge-border);
2042
+ }
2043
+
2044
+ .forge-choice-matrix tbody tr:hover {
2045
+ background: var(--forge-hover-bg);
2046
+ }
2047
+
2048
+ .forge-choice-matrix input {
2049
+ width: var(--forge-icon-md);
2050
+ height: var(--forge-icon-md);
2051
+ margin: 0;
2052
+ accent-color: var(--forge-primary);
2053
+ cursor: pointer;
2054
+ }
2055
+
2056
+ /* -------------------- EDITABLE ROWS -------------------- */
2057
+ /* <table class="forge-editable-rows"> inside a .forge-list-frame: a short list edited in place, a drag handle
2058
+ (Angular CDK drag-drop in the app), inputs, a delete icon button. All edits happen in a popup */
2059
+ .forge-editable-rows {
2060
+ width: 100%;
2061
+ border-collapse: collapse;
2062
+ }
2063
+
2064
+ .forge-editable-rows th {
2065
+ padding: var(--forge-space-2);
2066
+ color: var(--forge-text-secondary);
2067
+ font-size: var(--forge-size-xs);
2068
+ font-weight: var(--forge-font-weight-medium);
2069
+ text-align: start;
2070
+ }
2071
+
2072
+ .forge-editable-rows td {
2073
+ padding: var(--forge-space-2);
2074
+ border-top: 1px solid var(--forge-border);
2075
+ vertical-align: middle;
2076
+ }
2077
+
2078
+ .forge-editable-rows-grip {
2079
+ width: calc(var(--forge-icon-md) + var(--forge-space-4));
2080
+ color: var(--forge-text-tertiary);
2081
+ text-align: center;
2082
+ cursor: grab;
2083
+ }
2084
+
2085
+ .forge-editable-rows tr.cdk-drag-preview,
2086
+ .forge-editable-rows tr.cdk-drag-placeholder {
2087
+ background: color-mix(in oklab, var(--forge-primary) 12%, var(--forge-surface-container-lowest));
2088
+ }
2089
+
2090
+ /* -------------------- LINKED REFERENCE -------------------- */
2091
+ /* A value that is a live link to a shared item (a competence following a shared scale): icon, label, name, then
2092
+ actions (unlink, choose). Looks like a field */
2093
+ .forge-linkref {
2094
+ display: flex;
2095
+ align-items: center;
2096
+ gap: var(--forge-space-2);
2097
+ min-height: var(--forge-control-height-md);
2098
+ padding: var(--forge-space-1) var(--forge-space-2) var(--forge-space-1) var(--forge-space-3);
2099
+ border: 1px solid var(--forge-border-strong);
2100
+ border-radius: var(--forge-radius-md);
2101
+ background: var(--forge-surface-container-lowest);
2102
+ }
2103
+
2104
+ .forge-linkref > :is(svg, fa-icon):first-child {
2105
+ flex: none;
2106
+ color: var(--forge-primary);
2107
+ }
2108
+
2109
+ .forge-linkref-label {
2110
+ flex: none;
2111
+ color: var(--forge-text-secondary);
2112
+ }
2113
+
2114
+ .forge-linkref-name {
2115
+ min-width: 0;
2116
+ overflow: hidden;
2117
+ font-weight: var(--forge-font-weight-medium);
2118
+ text-overflow: ellipsis;
2119
+ white-space: nowrap;
2120
+ }
2121
+
2122
+ .forge-linkref--empty .forge-linkref-name {
2123
+ color: var(--forge-text-secondary);
2124
+ font-weight: normal;
2125
+ }
2126
+
2127
+ .forge-linkref-actions {
2128
+ display: flex;
2129
+ flex: none;
2130
+ align-items: center;
2131
+ gap: var(--forge-space-1);
2132
+ margin-inline-start: auto;
2133
+ }
2134
+
2135
+ /* -------------------- LIST AND LIST LINK -------------------- */
2136
+ /* <div class="forge-list"> of rows that lead one level deeper. Lists on a page have horizontal lines only. The
2137
+ row is a .forge-list-link whose <a class="forge-list-link-anchor"> covers it, so the whole row is the link
2138
+ and a star button can sit beside it (a button inside a link is invalid HTML) */
2139
+ .forge-list {
2140
+ border-block: 1px solid var(--forge-border);
2141
+ background: var(--forge-surface-container-lowest);
2142
+ }
2143
+
2144
+ .forge-list-link {
2145
+ position: relative;
2146
+ display: flex;
2147
+ align-items: center;
2148
+ gap: var(--forge-space-4);
2149
+ padding: var(--forge-space-4);
2150
+ transition: background-color var(--forge-motion-fast) var(--forge-ease-out);
2151
+ }
2152
+
2153
+ .forge-list-link + .forge-list-link {
2154
+ border-top: 1px solid var(--forge-border);
2155
+ }
2156
+
2157
+ .forge-list-link:hover {
2158
+ background: var(--forge-hover-bg);
2159
+ }
2160
+
2161
+ .forge-list-link:has(.forge-list-link-anchor:focus-visible) {
2162
+ outline: 2px solid var(--forge-focus-ring-strong);
2163
+ outline-offset: -2px;
2164
+ }
2165
+
2166
+ .forge-list-link-anchor {
2167
+ color: var(--forge-text-primary) !important; /* bootstrap-override */
2168
+ font-weight: var(--forge-font-weight-bold);
2169
+ text-decoration: none !important; /* bootstrap-override */
2170
+ outline: none;
2171
+ }
2172
+
2173
+ .forge-list-link-anchor::after {
2174
+ content: "";
2175
+ position: absolute;
2176
+ inset: 0;
2177
+ }
2178
+
2179
+ /* Controls beside the link (star, more) stay clickable above the covering link */
2180
+ .forge-list-link :is(button, .forge-icon-button) {
2181
+ position: relative;
2182
+ z-index: var(--forge-z-raised);
2183
+ }
2184
+
2185
+ .forge-list-link-icon {
2186
+ display: flex;
2187
+ flex: none;
2188
+ align-items: center;
2189
+ justify-content: center;
2190
+ width: var(--forge-control-height-md);
2191
+ height: var(--forge-control-height-md);
2192
+ border-radius: var(--forge-radius-md);
2193
+ background: color-mix(in oklab, var(--forge-primary) 12%, var(--forge-surface-container-lowest));
2194
+ color: var(--forge-primary);
2195
+ }
2196
+
2197
+ .forge-list-link-icon > :is(svg, fa-icon) {
2198
+ width: var(--forge-icon-lg);
2199
+ height: var(--forge-icon-lg);
2200
+ }
2201
+
2202
+ .forge-list-link-body {
2203
+ display: flex;
2204
+ flex: 1;
2205
+ flex-direction: column;
2206
+ gap: calc(var(--forge-space-1) / 2);
2207
+ min-width: 0;
2208
+ }
2209
+
2210
+ .forge-list-link-desc {
2211
+ overflow: hidden;
2212
+ color: var(--forge-text-secondary);
2213
+ font-size: var(--forge-size-xs);
2214
+ text-overflow: ellipsis;
2215
+ white-space: nowrap;
2216
+ }
2217
+
2218
+ .forge-list-link-meta {
2219
+ flex: none;
2220
+ color: var(--forge-text-secondary);
2221
+ font-size: var(--forge-size-xs);
2222
+ font-variant-numeric: tabular-nums;
2223
+ }
2224
+
2225
+ .forge-list-link-chevron {
2226
+ flex: none;
2227
+ color: var(--forge-text-secondary);
2228
+ }
2229
+
2230
+ /* -------------------- ATTRIBUTE BLOCK (key / value) -------------------- */
2231
+ /* <dl class="forge-kv"><div class="forge-kv-row"><dt>Valid until</dt><dd>Dec 31, 2027</dd></div></dl>: the data of
2232
+ one entry, read only. Values in a column as wide as the longest value, not at the far edge */
2233
+ .forge-kv {
2234
+ display: grid;
2235
+ grid-template-columns: minmax(0, 1fr) max-content;
2236
+ margin: 0 !important; /* bootstrap-override */
2237
+ border-block: 1px solid var(--forge-border);
2238
+ background: var(--forge-surface-container-lowest);
2239
+ }
2240
+
2241
+ .forge-kv-row {
2242
+ display: grid;
2243
+ grid-column: 1 / -1;
2244
+ grid-template-columns: subgrid;
2245
+ column-gap: var(--forge-space-4);
2246
+ align-items: center;
2247
+ padding: var(--forge-space-2) var(--forge-space-4);
2248
+ }
2249
+
2250
+ .forge-kv-row + .forge-kv-row {
2251
+ border-top: 1px solid var(--forge-border);
2252
+ }
2253
+
2254
+ .forge-kv dt {
2255
+ color: var(--forge-text-primary);
2256
+ font-weight: normal !important; /* bootstrap-override */
2257
+ }
2258
+
2259
+ .forge-kv dd {
2260
+ margin: 0 !important; /* bootstrap-override */
2261
+ color: var(--forge-text-secondary);
2262
+ }
2263
+
2264
+ /* -------------------- SECTION HEADER, TOOLBAR -------------------- */
2265
+ /* A second part of a page: a title (a heading with a size class), its actions, an optional description */
2266
+ .forge-section-header {
2267
+ display: flex;
2268
+ flex-wrap: wrap;
2269
+ align-items: center;
2270
+ justify-content: space-between;
2271
+ gap: var(--forge-space-2) var(--forge-space-4);
2272
+ min-height: var(--forge-control-height-md);
2273
+ }
2274
+
2275
+ .forge-section-header > :is(h1, h2, h3, h4, h5, h6) {
2276
+ margin: 0;
2277
+ }
2278
+
2279
+ .forge-section-header-desc {
2280
+ margin: var(--forge-space-1) 0 0 !important; /* bootstrap-override */
2281
+ color: var(--forge-text-secondary);
2282
+ }
2283
+
2284
+ /* The actions of a list or page: search, view settings, add, more */
2285
+ .forge-toolbar {
2286
+ display: flex;
2287
+ flex-wrap: wrap;
2288
+ align-items: center;
2289
+ gap: var(--forge-space-2);
2290
+ }
2291
+
2292
+ /* -------------------- BACK LINK -------------------- */
2293
+ /* <a class="forge-back-link"><svg…>Back to code lists</a>: one level up, above the page header */
2294
+ .forge-back-link {
2295
+ display: inline-flex;
2296
+ align-items: center;
2297
+ gap: var(--forge-space-2);
2298
+ color: var(--forge-text-primary) !important; /* bootstrap-override */
2299
+ text-decoration: none !important; /* bootstrap-override */
2300
+ }
2301
+
2302
+ .forge-back-link:hover {
2303
+ color: var(--forge-primary) !important; /* bootstrap-override */
2304
+ text-decoration: underline !important; /* bootstrap-override */
2305
+ text-underline-offset: 2px;
2306
+ }
2307
+
2308
+ .forge-back-link > :is(svg, fa-icon) {
2309
+ width: var(--forge-icon-sm);
2310
+ height: var(--forge-icon-sm);
2311
+ }
2312
+
2313
+ .forge-back-link:focus-visible {
2314
+ border-radius: var(--forge-radius-sm);
2315
+ outline: 2px solid var(--forge-focus-ring);
2316
+ outline-offset: 2px;
2317
+ }
2318
+
2319
+ /* -------------------- EMPTY STATE -------------------- */
2320
+ /* Shown in place of a list with no entries: what is missing and, if possible, the action that adds the first one */
2321
+ .forge-empty {
2322
+ display: flex;
2323
+ flex-direction: column;
2324
+ align-items: center;
2325
+ gap: var(--forge-space-2);
2326
+ padding: var(--forge-space-6) var(--forge-space-4);
2327
+ color: var(--forge-text-secondary);
2328
+ text-align: center;
2329
+ }
2330
+
2331
+ /* -------------------- LINK CARD PARTS -------------------- */
2332
+ /* Inside a .forge-card on an entry page: an icon tile and a title, a short description, a list of links */
2333
+ .forge-card-head {
2334
+ display: flex;
2335
+ align-items: center;
2336
+ gap: var(--forge-space-4);
2337
+ }
2338
+
2339
+ .forge-card-icon {
2340
+ display: flex;
2341
+ flex: none;
2342
+ align-items: center;
2343
+ justify-content: center;
2344
+ width: var(--forge-control-height-md);
2345
+ height: var(--forge-control-height-md);
2346
+ border-radius: var(--forge-radius-md);
2347
+ background: color-mix(in oklab, var(--forge-primary) 12%, var(--forge-surface-container-lowest));
2348
+ color: var(--forge-primary);
2349
+ }
2350
+
2351
+ .forge-card-links {
2352
+ display: flex;
2353
+ flex-direction: column;
2354
+ margin: 0 !important; /* bootstrap-override */
2355
+ padding: 0 !important; /* bootstrap-override */
2356
+ list-style: none;
2357
+ }
2358
+
2359
+ .forge-card-links--cols {
2360
+ display: grid;
2361
+ grid-template-columns: repeat(2, minmax(0, 1fr));
2362
+ column-gap: var(--forge-space-4);
2363
+ }
2364
+
2365
+ .forge-card-links a {
2366
+ display: inline-block;
2367
+ padding-block: var(--forge-space-1);
2368
+ color: var(--forge-text-primary) !important; /* bootstrap-override */
2369
+ text-decoration: underline !important; /* bootstrap-override */
2370
+ text-underline-offset: 2px;
2371
+ }
2372
+
2373
+ .forge-card-links a:hover {
2374
+ color: var(--forge-primary) !important; /* bootstrap-override */
2375
+ }
2376
+
2377
+ /* -------------------- STEPS -------------------- */
2378
+ /* <ol class="forge-steps"><li class="forge-step" data-done>…</li><li class="forge-step" aria-current="step">…</li>:
2379
+ where the user is in a wizard. The app runs the flow */
2380
+ .forge-steps {
2381
+ display: flex;
2382
+ flex-wrap: wrap;
2383
+ gap: var(--forge-space-2) var(--forge-space-6);
2384
+ margin: 0 !important; /* bootstrap-override */
2385
+ padding: 0 !important; /* bootstrap-override */
2386
+ list-style: none;
2387
+ counter-reset: forge-step;
2388
+ }
2389
+
2390
+ .forge-step {
2391
+ display: inline-flex;
2392
+ align-items: center;
2393
+ gap: var(--forge-space-2);
2394
+ color: var(--forge-text-secondary);
2395
+ counter-increment: forge-step;
2396
+ }
2397
+
2398
+ .forge-step::before {
2399
+ content: counter(forge-step);
2400
+ display: inline-flex;
2401
+ flex: none;
2402
+ align-items: center;
2403
+ justify-content: center;
2404
+ width: var(--forge-icon-button-sm);
2405
+ height: var(--forge-icon-button-sm);
2406
+ border: 1px solid var(--forge-border-strong);
2407
+ border-radius: var(--forge-radius-full);
2408
+ font-size: var(--forge-size-xs);
2409
+ font-weight: var(--forge-font-weight-medium);
2410
+ }
2411
+
2412
+ .forge-step[aria-current="step"] {
2413
+ color: var(--forge-text-primary);
2414
+ font-weight: var(--forge-font-weight-medium);
2415
+ }
2416
+
2417
+ .forge-step[aria-current="step"]::before {
2418
+ border-color: var(--forge-primary);
2419
+ background: var(--forge-primary);
2420
+ color: var(--forge-text-on-primary);
2421
+ }
2422
+
2423
+ .forge-step[data-done]::before {
2424
+ content: "✓";
2425
+ border-color: var(--forge-primary);
2426
+ color: var(--forge-primary);
2427
+ }
2428
+
2429
+ /* -------------------- TABS (Angular Aria) -------------------- */
2430
+ /* On Angular Aria's tabs, like the menu: .forge-tabs on the ngTabList, .forge-tab on each ngTab (Aria sets
2431
+ aria-selected), .forge-tab-panel on ngTabPanel. Tabs mark the selection with the product's brand */
2432
+ .forge-tabs {
2433
+ display: flex;
2434
+ gap: var(--forge-space-1);
2435
+ border-bottom: 1px solid var(--forge-border);
2436
+ }
2437
+
2438
+ .forge-tab {
2439
+ position: relative;
2440
+ padding: var(--forge-space-2) var(--forge-space-3);
2441
+ border: 0;
2442
+ border-radius: var(--forge-radius-md) var(--forge-radius-md) 0 0 !important; /* bootstrap-override */
2443
+ background: none;
2444
+ color: var(--forge-text-secondary);
2445
+ font: inherit;
2446
+ font-weight: var(--forge-font-weight-medium);
2447
+ cursor: pointer;
2448
+ }
2449
+
2450
+ .forge-tab:hover {
2451
+ background: var(--forge-hover-bg);
2452
+ color: var(--forge-text-primary);
2453
+ }
2454
+
2455
+ .forge-tab[aria-selected="true"] {
2456
+ color: color-mix(in oklab, var(--forge-brand) 75%, var(--forge-text-primary));
2457
+ }
2458
+
2459
+ .forge-tab[aria-selected="true"]::after {
2460
+ content: "";
2461
+ position: absolute;
2462
+ inset-inline: var(--forge-space-2);
2463
+ bottom: -1px;
2464
+ height: 2px;
2465
+ border-radius: var(--forge-radius-full);
2466
+ background: var(--forge-brand);
2467
+ }
2468
+
2469
+ .forge-tab:focus-visible {
2470
+ outline: 2px solid var(--forge-focus-ring-strong);
2471
+ outline-offset: -2px;
2472
+ }
2473
+
2474
+ /* Aria sets aria-disabled from the ngTab's [disabled] */
2475
+ .forge-tab[aria-disabled="true"] {
2476
+ background: none;
2477
+ color: var(--forge-text-tertiary);
2478
+ cursor: default;
2479
+ }
2480
+
2481
+ .forge-tab-panel {
2482
+ padding-block: var(--forge-space-4);
2483
+ }
2484
+
2485
+ /* Aria only makes the panels of other tabs inert, hiding them is up to the styles */
2486
+ .forge-tab-panel[inert] {
2487
+ display: none;
2488
+ }
2489
+
2490
+ /* -------------------- OVERLAY (popovers, dropdowns) -------------------- */
2491
+ /* Tight padding for lists (menus, dropdowns), --loose for content (text, pickers).
2492
+ The edge is a 1px border (snapped to device pixels, sharp at fractional display scales); the shadow only lifts. */
2493
+ .forge-overlay-content {
2494
+ background-color: var(--forge-surface-bright);
2495
+ color: var(--forge-text-primary);
2496
+ border: 1px solid var(--forge-border-overlay);
2497
+ border-radius: var(--forge-radius-lg);
2498
+ box-shadow: var(--forge-shadow-overlay);
2499
+ padding: var(--forge-space-1);
2500
+ /* Rows inside (menu items…) take the panel radius minus the border and the padding (their distance from the
2501
+ panel's outer edge), so their corners are concentric with the panel's. --loose keeps it: it holds content,
2502
+ not rows */
2503
+ --forge-overlay-item-radius: calc(var(--forge-radius-lg) - 1px - var(--forge-space-1));
2504
+ animation: forge-overlay-fade-in var(--forge-overlay-show-duration, var(--forge-motion-base)) var(--forge-ease-out);
2505
+ }
2506
+
2507
+ .forge-overlay-content--loose {
2508
+ padding: var(--forge-space-3) var(--forge-space-4);
2509
+ }
2510
+
2511
+ /* -------------------- MENU (Angular Aria ngMenu / ngMenuItem) -------------------- */
2512
+ /* Put .forge-menu next to .forge-overlay-content on the ngMenu. Aria sets data-active on the
2513
+ hovered or keyboard-focused item and aria-disabled on disabled ones, so the states are styled from them. */
2514
+ .forge-menu {
2515
+ min-width: 12rem;
2516
+ outline: none;
2517
+ }
2518
+
2519
+ .forge-menu-item {
2520
+ display: flex;
2521
+ align-items: center;
2522
+ gap: var(--forge-space-2);
2523
+ padding: var(--forge-space-2) var(--forge-space-3);
2524
+ /* concentric with the overlay panel; md in a static menu, outside an overlay */
2525
+ border-radius: var(--forge-overlay-item-radius, var(--forge-radius-md));
2526
+ color: var(--forge-text-primary);
2527
+ cursor: pointer;
2528
+ user-select: none;
2529
+ /* The focused item is the data-active one, its background marks it for mouse and keyboard alike.
2530
+ Opening a menu focuses an item from script, which browsers would otherwise outline. */
2531
+ outline: none;
2532
+ }
2533
+
2534
+ .forge-menu-item[data-active="true"] {
2535
+ background-color: var(--forge-hover-bg);
2536
+ }
2537
+
2538
+ /* A destructive item (delete): the danger color mixed into the text color reaches 4.5:1 in both themes, also
2539
+ on its danger tint when active. Disabled still wins (below). */
2540
+ .forge-menu-item--danger {
2541
+ color: color-mix(in oklab, var(--forge-danger) 70%, var(--forge-text-primary));
2542
+ }
2543
+
2544
+ .forge-menu-item--danger[data-active="true"] {
2545
+ background-color: color-mix(in oklab, var(--forge-danger) 12%, var(--forge-surface-bright));
2546
+ }
2547
+
2548
+ /* A menu that stays on screen instead of in a popover. Aria keeps an item active after the pointer or focus
2549
+ left (and activates the first one up front), so highlight it only while the menu has focus, and on hover. */
2550
+ .forge-menu--static .forge-menu-item[data-active="true"] {
2551
+ background-color: transparent;
2552
+ }
2553
+
2554
+ .forge-menu--static:focus-within .forge-menu-item[data-active="true"],
2555
+ .forge-menu--static .forge-menu-item:hover {
2556
+ background-color: var(--forge-hover-bg);
2557
+ }
2558
+
2559
+ .forge-menu-item[aria-disabled="true"] {
2560
+ background: none;
2561
+ color: var(--forge-text-tertiary);
2562
+ cursor: default;
2563
+ }
2564
+
2565
+ .forge-menu-separator {
2566
+ height: 0;
2567
+ margin: var(--forge-space-1) 0;
2568
+ border-top: 1px solid var(--forge-border);
2569
+ }
2570
+
2571
+ /* -------------------- HIGHLIGHT TEXT (<forge-highlight-text>) -------------------- */
2572
+ /* A matched part of the text: a light brand tint over the surface, readable in both themes */
2573
+ .forge-highlight-text-mark {
2574
+ /* Bootstrap's reboot styles every <mark> outside the layers; it reads these variables, set here on the mark */
2575
+ --bs-highlight-bg: var(--forge-highlight-bg, color-mix(in oklab, var(--forge-brand) 28%, var(--forge-surface-container-lowest)));
2576
+ --bs-highlight-color: currentColor;
2577
+
2578
+ padding: 0 !important; /* bootstrap-override */
2579
+ border-radius: 2px;
2580
+ background-color: var(--bs-highlight-bg);
2581
+ color: inherit;
2582
+ }
2583
+
2584
+ /* -------------------- ELLIPSIS ([forgeEllipsis]) -------------------- */
2585
+ /* One line, cut with "…" when it doesn't fit. Needs a constrained width; in a flex row also min-width: 0. */
2586
+ .forge-ellipsis {
2587
+ display: block;
2588
+ overflow: hidden;
2589
+ text-overflow: ellipsis;
2590
+ white-space: nowrap;
2591
+ }
2592
+
2593
+ /* -------------------- RIPPLE ([forgeRipple]) -------------------- */
2594
+ /* A circle growing from the pointer and fading out, in the element's text color unless --forge-ripple-color is
2595
+ set. In this layer, so an element positioned by the app (absolute, fixed, sticky) keeps its position. */
2596
+ .forge-ripple-container {
2597
+ position: relative;
2598
+ overflow: hidden;
2599
+ }
2600
+
2601
+ .forge-ripple {
2602
+ position: absolute;
2603
+ border-radius: var(--forge-radius-full);
2604
+ background-color: var(--forge-ripple-color, color-mix(in srgb, currentColor 20%, transparent));
2605
+ pointer-events: none;
2606
+ transform: scale(0);
2607
+ animation: forge-ripple var(--forge-ripple-duration, 600ms) var(--forge-ease-out);
2608
+ }
2609
+ }
2610
+
2611
+ /* ============================================================
2612
+ CALLOUT
2613
+ <div class="forge-callout forge-callout--caution" role="note">: a soft, rounded fill without a border. The intent
2614
+ is carried by the fill, the icon and the screen-reader prefix; the text stays in the normal text colors. Variants:
2615
+ none (neutral), --caution, --critical. Parts: .forge-callout-icon, .forge-callout-content (with an optional
2616
+ .forge-callout-heading), .forge-callout-link (action, learn more), .forge-callout-close.
2617
+
2618
+ One seed, --forge-callout-color, drives the fill tint and the icon. Caution and critical set it, an app can set it
2619
+ on the element. Neutral leaves it unset: the tint, mixed from an unset variable, is invalid at computed-value time,
2620
+ so the fill falls back to the surface and the icon to the secondary text color. Mixing into the surface token (not
2621
+ white) makes the same rule work in the light and the dark theme; the mix is in oklab, because the tokens carry a
2622
+ faint hue and an oklch mix would travel the hue wheel.
2623
+ ============================================================ */
2624
+
2625
+ @layer forge-components {
2626
+ .forge-callout {
2627
+ /* Not inherited from an ancestor (a wrapper, an outer caution callout): `initial` is the guaranteed-invalid
2628
+ value, so neutral keeps its fallbacks; the variant classes and an inline seed still win. */
2629
+ --forge-callout-color: initial;
2630
+ --forge-callout-background-mix: 12%;
2631
+ --forge-callout-tint: color-mix(in oklab, var(--forge-callout-color) var(--forge-callout-background-mix), var(--forge-surface-container-lowest, var(--forge-bg-surface)));
2632
+ --forge-callout-background: var(--forge-callout-tint, var(--forge-surface-container));
2633
+ /* The seed darkened (lightened in dark) toward the text: the plain warning yellow is 1.5:1 on its fill */
2634
+ --forge-callout-icon-mix: 60%;
2635
+ --forge-callout-icon-tint: color-mix(in oklab, var(--forge-callout-color) var(--forge-callout-icon-mix), var(--forge-text-primary));
2636
+ --forge-callout-icon-color: var(--forge-callout-icon-tint, var(--forge-text-secondary));
2637
+
2638
+ display: flex;
2639
+ align-items: baseline;
2640
+ gap: var(--forge-space-3);
2641
+ padding: var(--forge-space-3) var(--forge-space-4);
2642
+ border-radius: var(--forge-radius-md);
2643
+ background-color: var(--forge-callout-background);
2644
+ color: var(--forge-text-primary);
2645
+ }
2646
+
2647
+ .forge-callout--caution {
2648
+ --forge-callout-color: var(--forge-warning);
2649
+ }
2650
+
2651
+ .forge-callout--critical {
2652
+ --forge-callout-color: var(--forge-danger);
2653
+ }
2654
+
2655
+ .forge-callout-icon {
2656
+ flex: none;
2657
+ color: var(--forge-callout-icon-color);
2658
+ }
2659
+
2660
+ .forge-callout-content {
2661
+ flex: 1;
2662
+ min-width: 0;
2663
+
2664
+ > * + .forge-callout-link {
2665
+ margin-inline-start: var(--forge-space-1);
2666
+ }
2667
+ }
2668
+
2669
+ .forge-callout-heading {
2670
+ margin-bottom: var(--forge-space-1);
2671
+ color: var(--forge-text-primary);
2672
+ font-weight: var(--forge-font-weight-bold);
2673
+ }
2674
+
2675
+ /* The action and the learn more link: underlined, in the text color */
2676
+ .forge-callout-link {
2677
+ padding: 0;
2678
+ border: 0;
2679
+ background: none;
2680
+ color: inherit;
2681
+ font: inherit;
2682
+ font-weight: var(--forge-font-weight-medium);
2683
+ text-decoration: underline;
2684
+ text-underline-offset: 2px;
2685
+ cursor: pointer;
2686
+
2687
+ &:focus-visible {
2688
+ border-radius: 2px;
2689
+ outline: 2px solid var(--forge-focus-ring-strong);
2690
+ outline-offset: 2px;
2691
+ }
2692
+ }
2693
+
2694
+ .forge-callout-close {
2695
+ display: inline-flex;
2696
+ flex: none;
2697
+ align-self: flex-start;
2698
+ align-items: center;
2699
+ justify-content: center;
2700
+ width: 1.5rem;
2701
+ height: 1.5rem;
2702
+ margin-block: calc(var(--forge-space-1) * -1);
2703
+ padding: 0;
2704
+ border: 0;
2705
+ border-radius: var(--forge-radius-sm);
2706
+ background: transparent;
2707
+ color: inherit;
2708
+ cursor: pointer;
2709
+
2710
+ &:hover {
2711
+ background-color: color-mix(in oklab, currentColor 12%, transparent);
2712
+ }
2713
+
2714
+ &:focus-visible {
2715
+ outline: 2px solid var(--forge-focus-ring-strong);
2716
+ outline-offset: 1px;
2717
+ }
2718
+ }
2719
+ }
2720
+ /* ============================================================
2721
+ UTILITIES
2722
+ ============================================================ */
2723
+
2724
+ @layer forge-utilities {
2725
+ /* -------------------- SPACING -------------------- */
2726
+ /* Steps 0-6 on the spacing tokens. Order matters: the shorthand first, then an axis, then a side, so
2727
+ forge-p-4 forge-pt-0 keeps the top at 0. Sides are logical (s = start, e = end), as Bootstrap 5's. */
2728
+ .forge-m-0 {
2729
+ margin: 0;
2730
+ }
2731
+ .forge-m-1 {
2732
+ margin: var(--forge-space-1);
2733
+ }
2734
+ .forge-m-2 {
2735
+ margin: var(--forge-space-2);
2736
+ }
2737
+ .forge-m-3 {
2738
+ margin: var(--forge-space-3);
2739
+ }
2740
+ .forge-m-4 {
2741
+ margin: var(--forge-space-4);
2742
+ }
2743
+ .forge-m-5 {
2744
+ margin: var(--forge-space-5);
2745
+ }
2746
+ .forge-m-6 {
2747
+ margin: var(--forge-space-6);
2748
+ }
2749
+
2750
+ .forge-mx-0 {
2751
+ margin-inline: 0;
2752
+ }
2753
+ .forge-mx-1 {
2754
+ margin-inline: var(--forge-space-1);
2755
+ }
2756
+ .forge-mx-2 {
2757
+ margin-inline: var(--forge-space-2);
2758
+ }
2759
+ .forge-mx-3 {
2760
+ margin-inline: var(--forge-space-3);
2761
+ }
2762
+ .forge-mx-4 {
2763
+ margin-inline: var(--forge-space-4);
2764
+ }
2765
+ .forge-mx-5 {
2766
+ margin-inline: var(--forge-space-5);
2767
+ }
2768
+ .forge-mx-6 {
2769
+ margin-inline: var(--forge-space-6);
2770
+ }
2771
+
2772
+ .forge-my-0 {
2773
+ margin-block: 0;
2774
+ }
2775
+ .forge-my-1 {
2776
+ margin-block: var(--forge-space-1);
2777
+ }
2778
+ .forge-my-2 {
2779
+ margin-block: var(--forge-space-2);
2780
+ }
2781
+ .forge-my-3 {
2782
+ margin-block: var(--forge-space-3);
2783
+ }
2784
+ .forge-my-4 {
2785
+ margin-block: var(--forge-space-4);
2786
+ }
2787
+ .forge-my-5 {
2788
+ margin-block: var(--forge-space-5);
2789
+ }
2790
+ .forge-my-6 {
2791
+ margin-block: var(--forge-space-6);
2792
+ }
2793
+
2794
+ .forge-mt-0 {
2795
+ margin-top: 0;
2796
+ }
2797
+ .forge-mt-1 {
2798
+ margin-top: var(--forge-space-1);
2799
+ }
2800
+ .forge-mt-2 {
2801
+ margin-top: var(--forge-space-2);
2802
+ }
2803
+ .forge-mt-3 {
2804
+ margin-top: var(--forge-space-3);
2805
+ }
2806
+ .forge-mt-4 {
2807
+ margin-top: var(--forge-space-4);
2808
+ }
2809
+ .forge-mt-5 {
2810
+ margin-top: var(--forge-space-5);
2811
+ }
2812
+ .forge-mt-6 {
2813
+ margin-top: var(--forge-space-6);
2814
+ }
2815
+
2816
+ .forge-mb-0 {
2817
+ margin-bottom: 0;
2818
+ }
2819
+ .forge-mb-1 {
2820
+ margin-bottom: var(--forge-space-1);
2821
+ }
2822
+ .forge-mb-2 {
2823
+ margin-bottom: var(--forge-space-2);
2824
+ }
2825
+ .forge-mb-3 {
2826
+ margin-bottom: var(--forge-space-3);
2827
+ }
2828
+ .forge-mb-4 {
2829
+ margin-bottom: var(--forge-space-4);
2830
+ }
2831
+ .forge-mb-5 {
2832
+ margin-bottom: var(--forge-space-5);
2833
+ }
2834
+ .forge-mb-6 {
2835
+ margin-bottom: var(--forge-space-6);
2836
+ }
2837
+
2838
+ .forge-ms-0 {
2839
+ margin-inline-start: 0;
2840
+ }
2841
+ .forge-ms-1 {
2842
+ margin-inline-start: var(--forge-space-1);
2843
+ }
2844
+ .forge-ms-2 {
2845
+ margin-inline-start: var(--forge-space-2);
2846
+ }
2847
+ .forge-ms-3 {
2848
+ margin-inline-start: var(--forge-space-3);
2849
+ }
2850
+ .forge-ms-4 {
2851
+ margin-inline-start: var(--forge-space-4);
2852
+ }
2853
+ .forge-ms-5 {
2854
+ margin-inline-start: var(--forge-space-5);
2855
+ }
2856
+ .forge-ms-6 {
2857
+ margin-inline-start: var(--forge-space-6);
2858
+ }
2859
+
2860
+ .forge-me-0 {
2861
+ margin-inline-end: 0;
2862
+ }
2863
+ .forge-me-1 {
2864
+ margin-inline-end: var(--forge-space-1);
2865
+ }
2866
+ .forge-me-2 {
2867
+ margin-inline-end: var(--forge-space-2);
2868
+ }
2869
+ .forge-me-3 {
2870
+ margin-inline-end: var(--forge-space-3);
2871
+ }
2872
+ .forge-me-4 {
2873
+ margin-inline-end: var(--forge-space-4);
2874
+ }
2875
+ .forge-me-5 {
2876
+ margin-inline-end: var(--forge-space-5);
2877
+ }
2878
+ .forge-me-6 {
2879
+ margin-inline-end: var(--forge-space-6);
2880
+ }
2881
+
2882
+ /* Push to the end (forge-ms-auto), to the start (forge-me-auto) or centre a block (forge-mx-auto) */
2883
+ .forge-mx-auto {
2884
+ margin-inline: auto;
2885
+ }
2886
+ .forge-ms-auto {
2887
+ margin-inline-start: auto;
2888
+ }
2889
+ .forge-me-auto {
2890
+ margin-inline-end: auto;
2891
+ }
2892
+
2893
+ .forge-p-0 {
2894
+ padding: 0;
2895
+ }
2896
+ .forge-p-1 {
2897
+ padding: var(--forge-space-1);
2898
+ }
2899
+ .forge-p-2 {
2900
+ padding: var(--forge-space-2);
2901
+ }
2902
+ .forge-p-3 {
2903
+ padding: var(--forge-space-3);
2904
+ }
2905
+ .forge-p-4 {
2906
+ padding: var(--forge-space-4);
2907
+ }
2908
+ .forge-p-5 {
2909
+ padding: var(--forge-space-5);
2910
+ }
2911
+ .forge-p-6 {
2912
+ padding: var(--forge-space-6);
2913
+ }
2914
+
2915
+ .forge-px-0 {
2916
+ padding-inline: 0;
2917
+ }
2918
+ .forge-px-1 {
2919
+ padding-inline: var(--forge-space-1);
2920
+ }
2921
+ .forge-px-2 {
2922
+ padding-inline: var(--forge-space-2);
2923
+ }
2924
+ .forge-px-3 {
2925
+ padding-inline: var(--forge-space-3);
2926
+ }
2927
+ .forge-px-4 {
2928
+ padding-inline: var(--forge-space-4);
2929
+ }
2930
+ .forge-px-5 {
2931
+ padding-inline: var(--forge-space-5);
2932
+ }
2933
+ .forge-px-6 {
2934
+ padding-inline: var(--forge-space-6);
2935
+ }
2936
+
2937
+ .forge-py-0 {
2938
+ padding-block: 0;
2939
+ }
2940
+ .forge-py-1 {
2941
+ padding-block: var(--forge-space-1);
2942
+ }
2943
+ .forge-py-2 {
2944
+ padding-block: var(--forge-space-2);
2945
+ }
2946
+ .forge-py-3 {
2947
+ padding-block: var(--forge-space-3);
2948
+ }
2949
+ .forge-py-4 {
2950
+ padding-block: var(--forge-space-4);
2951
+ }
2952
+ .forge-py-5 {
2953
+ padding-block: var(--forge-space-5);
2954
+ }
2955
+ .forge-py-6 {
2956
+ padding-block: var(--forge-space-6);
2957
+ }
2958
+
2959
+ .forge-pt-0 {
2960
+ padding-top: 0;
2961
+ }
2962
+ .forge-pt-1 {
2963
+ padding-top: var(--forge-space-1);
2964
+ }
2965
+ .forge-pt-2 {
2966
+ padding-top: var(--forge-space-2);
2967
+ }
2968
+ .forge-pt-3 {
2969
+ padding-top: var(--forge-space-3);
2970
+ }
2971
+ .forge-pt-4 {
2972
+ padding-top: var(--forge-space-4);
2973
+ }
2974
+ .forge-pt-5 {
2975
+ padding-top: var(--forge-space-5);
2976
+ }
2977
+ .forge-pt-6 {
2978
+ padding-top: var(--forge-space-6);
2979
+ }
2980
+
2981
+ .forge-pb-0 {
2982
+ padding-bottom: 0;
2983
+ }
2984
+ .forge-pb-1 {
2985
+ padding-bottom: var(--forge-space-1);
2986
+ }
2987
+ .forge-pb-2 {
2988
+ padding-bottom: var(--forge-space-2);
2989
+ }
2990
+ .forge-pb-3 {
2991
+ padding-bottom: var(--forge-space-3);
2992
+ }
2993
+ .forge-pb-4 {
2994
+ padding-bottom: var(--forge-space-4);
2995
+ }
2996
+ .forge-pb-5 {
2997
+ padding-bottom: var(--forge-space-5);
2998
+ }
2999
+ .forge-pb-6 {
3000
+ padding-bottom: var(--forge-space-6);
3001
+ }
3002
+
3003
+ .forge-ps-0 {
3004
+ padding-inline-start: 0;
3005
+ }
3006
+ .forge-ps-1 {
3007
+ padding-inline-start: var(--forge-space-1);
3008
+ }
3009
+ .forge-ps-2 {
3010
+ padding-inline-start: var(--forge-space-2);
3011
+ }
3012
+ .forge-ps-3 {
3013
+ padding-inline-start: var(--forge-space-3);
3014
+ }
3015
+ .forge-ps-4 {
3016
+ padding-inline-start: var(--forge-space-4);
3017
+ }
3018
+ .forge-ps-5 {
3019
+ padding-inline-start: var(--forge-space-5);
3020
+ }
3021
+ .forge-ps-6 {
3022
+ padding-inline-start: var(--forge-space-6);
3023
+ }
3024
+
3025
+ .forge-pe-0 {
3026
+ padding-inline-end: 0;
3027
+ }
3028
+ .forge-pe-1 {
3029
+ padding-inline-end: var(--forge-space-1);
3030
+ }
3031
+ .forge-pe-2 {
3032
+ padding-inline-end: var(--forge-space-2);
3033
+ }
3034
+ .forge-pe-3 {
3035
+ padding-inline-end: var(--forge-space-3);
3036
+ }
3037
+ .forge-pe-4 {
3038
+ padding-inline-end: var(--forge-space-4);
3039
+ }
3040
+ .forge-pe-5 {
3041
+ padding-inline-end: var(--forge-space-5);
3042
+ }
3043
+ .forge-pe-6 {
3044
+ padding-inline-end: var(--forge-space-6);
3045
+ }
3046
+
3047
+ .forge-gap-1 {
3048
+ gap: var(--forge-space-1);
3049
+ }
3050
+ .forge-gap-2 {
3051
+ gap: var(--forge-space-2);
3052
+ }
3053
+ .forge-gap-3 {
3054
+ gap: var(--forge-space-3);
3055
+ }
3056
+ .forge-gap-4 {
3057
+ gap: var(--forge-space-4);
3058
+ }
3059
+ .forge-gap-5 {
3060
+ gap: var(--forge-space-5);
3061
+ }
3062
+ .forge-gap-6 {
3063
+ gap: var(--forge-space-6);
3064
+ }
3065
+ /* -------------------- FLEX -------------------- */
3066
+ .forge-flex {
3067
+ display: flex;
3068
+ }
3069
+ .forge-flex-col {
3070
+ flex-direction: column;
3071
+ }
3072
+ .forge-items-center {
3073
+ align-items: center;
3074
+ }
3075
+ .forge-items-start {
3076
+ align-items: flex-start;
3077
+ }
3078
+ .forge-justify-start {
3079
+ justify-content: flex-start;
3080
+ }
3081
+ .forge-justify-end {
3082
+ justify-content: flex-end;
3083
+ }
3084
+ .forge-justify-between {
3085
+ justify-content: space-between;
3086
+ }
3087
+ .forge-justify-center {
3088
+ justify-content: center;
3089
+ }
3090
+ .forge-flex-wrap {
3091
+ flex-wrap: wrap;
3092
+ }
3093
+ /* Grow into the free space and allow shrinking below the content width (e.g. for truncated text) */
3094
+ .forge-flex-1 {
3095
+ flex: 1 1 0%;
3096
+ min-width: 0;
3097
+ }
3098
+ /* Keeps its size in a full row (an icon, a button next to truncated text) */
3099
+ .forge-shrink-0 {
3100
+ flex-shrink: 0;
3101
+ }
3102
+
3103
+ /* -------------------- TEXT -------------------- */
3104
+ .forge-text-center {
3105
+ text-align: center;
3106
+ }
3107
+ .forge-text-start {
3108
+ text-align: start;
3109
+ }
3110
+ .forge-text-end {
3111
+ text-align: end;
3112
+ }
3113
+ .forge-text-nowrap {
3114
+ white-space: nowrap;
3115
+ }
3116
+ /* Supporting text (Bootstrap's text-muted), readable in both themes */
3117
+ .forge-text-secondary {
3118
+ color: var(--forge-text-secondary);
3119
+ }
3120
+ /* Single line, cut with an ellipsis; the element needs a width (block, or forge-flex-1 in a flex row) */
3121
+ .forge-text-truncate {
3122
+ overflow: hidden;
3123
+ text-overflow: ellipsis;
3124
+ white-space: nowrap;
3125
+ }
3126
+ .forge-select-none {
3127
+ user-select: none;
3128
+ }
3129
+
3130
+ /* -------------------- SIZING -------------------- */
3131
+ .forge-w-full {
3132
+ width: 100%;
3133
+ }
3134
+ .forge-h-full {
3135
+ height: 100%;
3136
+ }
3137
+
3138
+ /* -------------------- ACCESSIBILITY -------------------- */
3139
+ /* Hidden on screen, still read by screen readers */
3140
+ .forge-visually-hidden {
3141
+ position: absolute;
3142
+ width: 1px;
3143
+ height: 1px;
3144
+ padding: 0;
3145
+ margin: -1px;
3146
+ overflow: hidden;
3147
+ clip: rect(0, 0, 0, 0);
3148
+ white-space: nowrap;
3149
+ border: 0;
3150
+ }
3151
+
3152
+ /* -------------------- GRID -------------------- */
3153
+ .forge-grid {
3154
+ display: grid;
3155
+ gap: var(--forge-space-4);
3156
+ }
3157
+
3158
+ .forge-grid--2 {
3159
+ grid-template-columns: repeat(2, 1fr);
3160
+ }
3161
+ .forge-grid--3 {
3162
+ grid-template-columns: repeat(3, 1fr);
3163
+ }
3164
+ .forge-grid--auto {
3165
+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
3166
+ }
3167
+
3168
+ /* -------------------- PATTERNS -------------------- */
3169
+ .forge-stack {
3170
+ display: flex;
3171
+ flex-direction: column;
3172
+ gap: var(--forge-space-3);
3173
+ }
3174
+
3175
+ .forge-cluster {
3176
+ display: flex;
3177
+ gap: var(--forge-space-2);
3178
+ align-items: center;
3179
+ flex-wrap: wrap;
3180
+ }
3181
+
3182
+ .forge-center {
3183
+ display: grid;
3184
+ place-items: center;
3185
+ }
3186
+ }
3187
+
3188
+ /* ============================================================
3189
+ ACCESSIBILITY — REDUCED MOTION
3190
+ ============================================================ */
3191
+
3192
+ /* !important on purpose, it stays after Bootstrap: reduced motion has to win over every animation */
3193
+ @media (prefers-reduced-motion: reduce) {
3194
+ * {
3195
+ transition-duration: 0.01ms !important;
3196
+ animation-duration: 0.01ms !important;
3197
+ animation-iteration-count: 1 !important;
3198
+ }
3199
+ }
3200
+
3201
+ @keyframes forge-spin {
3202
+ to {
3203
+ transform: rotate(360deg);
3204
+ }
3205
+ }
3206
+
3207
+ @keyframes forge-skeleton-shimmer {
3208
+ from {
3209
+ background-position: 200% 0;
3210
+ }
3211
+ to {
3212
+ background-position: -200% 0;
3213
+ }
3214
+ }
3215
+
3216
+ @keyframes forge-overlay-fade-in {
3217
+ from {
3218
+ opacity: 0;
3219
+ }
3220
+ to {
3221
+ opacity: 1;
3222
+ }
3223
+ }
3224
+
3225
+ @keyframes forge-ripple {
3226
+ to {
3227
+ transform: scale(1);
3228
+ opacity: 0;
3229
+ }
3230
+ }
3231
+
3232
+ /* The scroll fade's two edges: registered lengths, so the scroll-driven animations can interpolate them */
3233
+ @property --forge-scroll-fade-top {
3234
+ syntax: '<length>';
3235
+ inherits: false;
3236
+ initial-value: 0px;
3237
+ }
3238
+
3239
+ @property --forge-scroll-fade-bottom {
3240
+ syntax: '<length>';
3241
+ inherits: false;
3242
+ initial-value: 0px;
3243
+ }
3244
+
3245
+ @keyframes forge-scroll-fade-top {
3246
+ from {
3247
+ --forge-scroll-fade-top: 0px;
3248
+ }
3249
+ to {
3250
+ --forge-scroll-fade-top: var(--forge-scroll-fade-size);
3251
+ }
3252
+ }
3253
+
3254
+ @keyframes forge-scroll-fade-bottom {
3255
+ from {
3256
+ --forge-scroll-fade-bottom: var(--forge-scroll-fade-size);
3257
+ }
3258
+ to {
3259
+ --forge-scroll-fade-bottom: 0px;
3260
+ }
3261
+ }