@taekwondo-db/web-app 0.0.0-stage → 0.1.2

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.
Files changed (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +297 -2
  3. package/assets/css/abstracts/base.css +54 -0
  4. package/assets/css/abstracts/variables.css +125 -0
  5. package/assets/css/components/breadcrumb.css +14 -0
  6. package/assets/css/components/card.css +35 -0
  7. package/assets/css/components/categories.css +200 -0
  8. package/assets/css/components/detail.css +591 -0
  9. package/assets/css/components/grade.css +79 -0
  10. package/assets/css/components/header.css +131 -0
  11. package/assets/css/components/language.css +38 -0
  12. package/assets/css/components/layout.css +151 -0
  13. package/assets/css/components/link.css +26 -0
  14. package/assets/css/components/result.css +123 -0
  15. package/assets/css/components/search.css +193 -0
  16. package/assets/css/components/tag.css +137 -0
  17. package/assets/css/style.css +17 -0
  18. package/assets/fonts/noto-serif-kr.css +28 -0
  19. package/assets/js/email.js +11 -0
  20. package/assets/js/gallery.js +30 -0
  21. package/assets/js/language.js +11 -0
  22. package/assets/js/main.js +17 -0
  23. package/assets/js/pwa.js +48 -0
  24. package/assets/js/search.js +276 -0
  25. package/assets/js/sorting.js +26 -0
  26. package/bin/taekwondo-db.js +145 -0
  27. package/content/_content.gotmpl +27 -0
  28. package/hugo.toml +32 -0
  29. package/i18n/de.json +107 -0
  30. package/i18n/en.json +107 -0
  31. package/i18n/ko.json +107 -0
  32. package/layouts/404.html +23 -0
  33. package/layouts/_partials/breadcrumb.html +11 -0
  34. package/layouts/_partials/categories.html +17 -0
  35. package/layouts/_partials/category-cards.html +36 -0
  36. package/layouts/_partials/category-group.html +7 -0
  37. package/layouts/_partials/category-section.html +15 -0
  38. package/layouts/_partials/category-tile.html +4 -0
  39. package/layouts/_partials/description.html +10 -0
  40. package/layouts/_partials/email.html +6 -0
  41. package/layouts/_partials/favicons.html +42 -0
  42. package/layouts/_partials/fonts.html +33 -0
  43. package/layouts/_partials/grade-badge.html +11 -0
  44. package/layouts/_partials/grade-name.html +14 -0
  45. package/layouts/_partials/head.html +17 -0
  46. package/layouts/_partials/header.html +38 -0
  47. package/layouts/_partials/historic.html +23 -0
  48. package/layouts/_partials/icon.html +13 -0
  49. package/layouts/_partials/language-label.html +3 -0
  50. package/layouts/_partials/language.html +13 -0
  51. package/layouts/_partials/page-title.html +13 -0
  52. package/layouts/_partials/scripts.html +25 -0
  53. package/layouts/_partials/search-form.html +11 -0
  54. package/layouts/_partials/search-index.html +40 -0
  55. package/layouts/_partials/source-entry.html +13 -0
  56. package/layouts/_partials/t.html +2 -0
  57. package/layouts/_partials/technique/photo.html +45 -0
  58. package/layouts/_partials/technique/word-meaning.html +33 -0
  59. package/layouts/_partials/technique-name.html +5 -0
  60. package/layouts/_partials/technique-row.html +17 -0
  61. package/layouts/_partials/term/list.html +24 -0
  62. package/layouts/_partials/term-name.html +4 -0
  63. package/layouts/_partials/url.html +11 -0
  64. package/layouts/_shortcodes/email.html +2 -0
  65. package/layouts/_shortcodes/operator.html +18 -0
  66. package/layouts/baseof.html +39 -0
  67. package/layouts/group/page.html +24 -0
  68. package/layouts/groups.html +48 -0
  69. package/layouts/home.html +19 -0
  70. package/layouts/page.html +17 -0
  71. package/layouts/source/page.html +67 -0
  72. package/layouts/technique/page.html +160 -0
  73. package/layouts/term/page.html +97 -0
  74. package/lib/database.js +33 -0
  75. package/lib/export.js +423 -0
  76. package/lib/service-worker.js +167 -0
  77. package/lib/validate.js +179 -0
  78. package/package.json +42 -5
@@ -0,0 +1,591 @@
1
+ /*
2
+ * Detail pages for techniques and terms. Photo on the left, content on the
3
+ * right; both wrap automatically once the room runs out. The photo only stays
4
+ * in view (sticky) while it is beside the content — see the media query below.
5
+ */
6
+
7
+ .detail {
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ align-items: flex-start;
11
+ gap: var(--space-10);
12
+ }
13
+
14
+ .detail__media {
15
+ display: flex;
16
+ flex: 1 1 380px;
17
+ flex-direction: column;
18
+ gap: var(--space-3);
19
+ max-width: 460px;
20
+ }
21
+
22
+ /*
23
+ * Sticky only while photo and content sit side by side. Once they wrap, the
24
+ * content is below the photo, and a sticky photo would slide over it while
25
+ * scrolling. Side by side needs 380px + 40px gap + 520px = 940px inside the
26
+ * main column, which has 2 × 32px padding — 1004px plus a scrollbar, so from
27
+ * 1024px on it always fits.
28
+ */
29
+ @media (min-width: 1024px) {
30
+ .detail__media {
31
+ position: sticky;
32
+ top: var(--space-6);
33
+ }
34
+ }
35
+
36
+ .detail__photo {
37
+ display: flex;
38
+ flex-direction: column;
39
+ gap: var(--space-3);
40
+ margin: 0;
41
+ }
42
+
43
+ .detail__frame {
44
+ position: relative;
45
+ background: var(--color-photo-bg);
46
+ border-radius: var(--radius-xl);
47
+ overflow: hidden;
48
+ }
49
+
50
+ /*
51
+ * Illustrations are delivered square (1000×1000), so `cover` fills the
52
+ * frame without cropping anything — the feet above all. Do not add a
53
+ * `max-height` here: it would change the frame's ratio and crop the image.
54
+ */
55
+ .detail__photo img {
56
+ display: block;
57
+ width: 100%;
58
+ aspect-ratio: 1;
59
+ object-fit: cover;
60
+ }
61
+
62
+ .detail__photo figcaption {
63
+ font-size: var(--text-sm);
64
+ line-height: 1.45;
65
+ color: var(--color-text-muted);
66
+ }
67
+
68
+ .detail__thumbs {
69
+ --thumb-size: 72px;
70
+
71
+ display: flex;
72
+ gap: var(--space-2);
73
+ padding: 5px;
74
+ margin: -5px;
75
+ overflow-x: auto;
76
+ scrollbar-width: thin;
77
+ }
78
+
79
+ .detail__thumb {
80
+ flex: 0 0 var(--thumb-size);
81
+ width: var(--thumb-size);
82
+ height: var(--thumb-size);
83
+ padding: 0;
84
+ border: 0;
85
+ border-radius: var(--radius-md);
86
+ background: var(--color-photo-bg);
87
+ overflow: hidden;
88
+ cursor: pointer;
89
+ opacity: 0.65;
90
+ transition:
91
+ opacity 0.15s ease,
92
+ box-shadow 0.15s ease;
93
+ }
94
+
95
+ .detail__thumb img {
96
+ display: block;
97
+ width: 100%;
98
+ height: 100%;
99
+ object-fit: cover;
100
+ }
101
+
102
+ .detail__thumb:hover {
103
+ opacity: 1;
104
+ }
105
+
106
+ /* box-shadow, not outline: Bootstrap drops the outline on a clicked button. */
107
+ .detail__thumb[aria-pressed="true"] {
108
+ opacity: 1;
109
+ box-shadow:
110
+ 0 0 0 2px var(--color-bg),
111
+ 0 0 0 4px var(--color-accent);
112
+ }
113
+
114
+ .detail__thumb:focus-visible {
115
+ opacity: 1;
116
+ outline: none;
117
+ box-shadow:
118
+ 0 0 0 2px var(--color-bg),
119
+ 0 0 0 4px var(--color-accent),
120
+ 0 0 0 7px rgba(var(--color-accent-rgb), 0.25);
121
+ }
122
+
123
+ .ai-badge {
124
+ position: absolute;
125
+ right: var(--space-3);
126
+ bottom: var(--space-3);
127
+ display: inline-flex;
128
+ align-items: center;
129
+ gap: 4px;
130
+ padding: 3px 9px 3px 7px;
131
+ border: 1px solid rgb(255 255 255 / 0.35);
132
+ border-radius: var(--radius-pill);
133
+ background: rgb(22 24 29 / 0.28);
134
+ box-shadow:
135
+ 0 1px 2px rgb(0 0 0 / 0.12),
136
+ inset 0 1px 0 rgb(255 255 255 / 0.25);
137
+ -webkit-backdrop-filter: blur(10px) saturate(160%);
138
+ backdrop-filter: blur(10px) saturate(160%);
139
+ color: #fff;
140
+ font-size: 11px;
141
+ font-weight: 600;
142
+ letter-spacing: 0.08em;
143
+ line-height: 1.4;
144
+ text-shadow: 0 1px 1px rgb(0 0 0 / 0.25);
145
+ cursor: help;
146
+ user-select: none;
147
+ }
148
+
149
+ .ai-badge__icon {
150
+ width: 11px;
151
+ height: 11px;
152
+ fill: currentColor;
153
+ opacity: 0.9;
154
+ }
155
+
156
+ .detail__body {
157
+ display: flex;
158
+ flex: 999 1 520px;
159
+ min-width: 0;
160
+ flex-direction: column;
161
+ gap: var(--space-7);
162
+ }
163
+
164
+ /* TitleBlock: category label, H1 and Hangeul on one baseline, translation. */
165
+ .title-block {
166
+ display: flex;
167
+ flex-direction: column;
168
+ gap: 10px;
169
+ }
170
+
171
+ .title-block__line {
172
+ display: flex;
173
+ flex-wrap: wrap;
174
+ align-items: baseline;
175
+ gap: var(--space-1) var(--space-5);
176
+ }
177
+
178
+ .title-block h1 {
179
+ margin: 0;
180
+ font-size: var(--text-h1);
181
+ line-height: 1.05;
182
+ }
183
+
184
+ /*
185
+ * Only the Hangeul on the title line is display sized. The category pill sits
186
+ * in the same block and must keep the pill's own, much smaller size.
187
+ */
188
+ .title-block__line > .hangeul {
189
+ font-size: var(--text-hangeul-title);
190
+ }
191
+
192
+ /* The reading, where the title itself is a translated label. */
193
+ .title-block__reading {
194
+ font-size: var(--text-lead);
195
+ color: var(--color-text-muted);
196
+ }
197
+
198
+ .title-block__translation {
199
+ margin: 0;
200
+ font-size: var(--text-lead);
201
+ color: var(--color-text-secondary);
202
+ }
203
+
204
+ /*
205
+ * The technique's explanation. No card: it is the main text of the page, not
206
+ * metadata. But it does need a measure — on a page without a photo the body
207
+ * column is the full 1200px, which would run prose out to 150 characters a
208
+ * line.
209
+ */
210
+ .technique-description {
211
+ max-width: 68ch;
212
+ margin: 0;
213
+ font-size: var(--text-lg);
214
+ line-height: 1.65;
215
+ white-space: pre-line;
216
+ }
217
+
218
+ /* SyllableBreakdown: one tile per syllable group, joined by a "+". */
219
+ .syllables {
220
+ display: flex;
221
+ flex-wrap: wrap;
222
+ align-items: stretch;
223
+ gap: var(--space-3);
224
+ }
225
+
226
+ .syllable {
227
+ display: flex;
228
+ flex-direction: column;
229
+ gap: 2px;
230
+ min-width: 120px;
231
+ padding: var(--space-3) var(--space-4);
232
+ border-radius: var(--radius-md);
233
+ background: var(--color-surface-muted);
234
+ }
235
+
236
+ .syllable .hangeul {
237
+ font-size: 28px;
238
+ font-weight: 700;
239
+ line-height: 1.2;
240
+ color: var(--color-text);
241
+ }
242
+
243
+ .syllable__meaning {
244
+ font-weight: 500;
245
+ }
246
+
247
+ .syllable-plus {
248
+ align-self: center;
249
+ font-size: 20px;
250
+ color: var(--color-icon-muted);
251
+ }
252
+
253
+ /* WeightBar */
254
+ .weight-bar {
255
+ display: flex;
256
+ height: 14px;
257
+ gap: 3px;
258
+ border-radius: var(--radius-pill);
259
+ overflow: hidden;
260
+ }
261
+
262
+ .weight-bar__front {
263
+ background: var(--color-accent);
264
+ }
265
+
266
+ .weight-bar__back {
267
+ background: var(--color-accent-light);
268
+ }
269
+
270
+ .weight-values {
271
+ display: flex;
272
+ justify-content: space-between;
273
+ gap: var(--space-3);
274
+ margin-top: 10px;
275
+ }
276
+
277
+ .weight-values b {
278
+ font-size: 28px;
279
+ font-weight: 700;
280
+ }
281
+
282
+ .weight-values span {
283
+ color: var(--color-text-muted);
284
+ }
285
+
286
+ /*
287
+ * LinkList innerhalb einer Karte.
288
+ *
289
+ * Rows are 48px touch targets around a 24px line. The negative margin pulls
290
+ * that extra 12px out past the list's edges, so the first and last line sit
291
+ * exactly where a plain paragraph would — list cards and text cards align.
292
+ */
293
+ .link-list,
294
+ .source-list {
295
+ list-style: none;
296
+ margin: calc(-1 * var(--space-3)) 0;
297
+ padding: 0;
298
+ }
299
+
300
+ .link-list li + li {
301
+ border-top: 1px solid var(--color-divider);
302
+ }
303
+
304
+ .link-list a {
305
+ display: flex;
306
+ align-items: center;
307
+ justify-content: space-between;
308
+ gap: var(--space-3);
309
+ min-height: 48px;
310
+ }
311
+
312
+ .link-list a:hover {
313
+ text-decoration: none;
314
+ }
315
+
316
+ .link-list a:hover > span:first-child {
317
+ text-decoration: underline;
318
+ }
319
+
320
+ /* PrevNextNav */
321
+ .prev-next {
322
+ display: flex;
323
+ justify-content: space-between;
324
+ gap: var(--space-4);
325
+ padding-top: var(--space-5);
326
+ border-top: 1px solid var(--color-border);
327
+ }
328
+
329
+ .prev-next a {
330
+ display: flex;
331
+ flex-direction: column;
332
+ min-height: var(--touch-target);
333
+ color: var(--color-text);
334
+ }
335
+
336
+ .prev-next a:hover {
337
+ text-decoration: none;
338
+ }
339
+
340
+ .prev-next a:last-child {
341
+ align-items: flex-end;
342
+ text-align: right;
343
+ }
344
+
345
+ .prev-next small {
346
+ font-size: var(--text-xs);
347
+ color: var(--color-text-muted);
348
+ }
349
+
350
+ .prev-next b {
351
+ font-weight: 600;
352
+ color: var(--color-accent);
353
+ }
354
+
355
+ /* The "look up" column on a term page. */
356
+ .detail__aside {
357
+ flex: 1 1 280px;
358
+ max-width: 360px;
359
+ margin-top: 44px;
360
+ }
361
+
362
+ @media (max-width: 767.98px) {
363
+ /*
364
+ * Syllable tiles side by side wrap into a ragged block as soon as a name
365
+ * has three parts. Full-width rows instead: Hangeul on the left, reading
366
+ * and meaning stacked next to it — one line per syllable, nothing ragged.
367
+ * The `+` separators go: the stacking already says "and then".
368
+ */
369
+ .syllables {
370
+ flex-direction: column;
371
+ gap: var(--space-2);
372
+ }
373
+
374
+ .syllable {
375
+ display: grid;
376
+ grid-template-columns: auto 1fr;
377
+ align-items: center;
378
+ gap: 0 var(--space-4);
379
+ min-width: 0;
380
+ padding: var(--space-3) var(--space-4);
381
+ }
382
+
383
+ .syllable .hangeul {
384
+ grid-row: 1 / 3;
385
+ }
386
+
387
+ .syllable__meaning {
388
+ grid-column: 2;
389
+ }
390
+
391
+ .syllable-plus {
392
+ display: none;
393
+ }
394
+
395
+ .title-block h1 {
396
+ font-size: 40px;
397
+ }
398
+
399
+ .title-block__line > .hangeul {
400
+ font-size: 26px;
401
+ }
402
+
403
+ /*
404
+ * On a phone the photo must not fill the first screen. Cap the width rather
405
+ * than the height so the square frame stays intact (320px at most).
406
+ */
407
+ .detail__media {
408
+ max-width: min(100%, 320px);
409
+ }
410
+
411
+ .detail__thumbs {
412
+ --thumb-size: 56px;
413
+ }
414
+
415
+ .detail__aside {
416
+ margin-top: 0;
417
+ }
418
+ }
419
+
420
+ /*
421
+ * Word meaning on a technique page: a lookup aid, so it stays folded away
422
+ * until asked for. The Hangeul in the summary is what most lookups are after,
423
+ * so it is readable without opening the card.
424
+ */
425
+ .word-meaning__summary {
426
+ display: flex;
427
+ align-items: baseline;
428
+ gap: var(--space-3);
429
+ padding: var(--space-4) var(--space-6);
430
+ cursor: pointer;
431
+ list-style: none;
432
+ }
433
+
434
+ .word-meaning__summary::-webkit-details-marker {
435
+ display: none;
436
+ }
437
+
438
+ /* Disclosure triangle, drawn so it can rotate when the card opens. */
439
+ .word-meaning__summary::after {
440
+ content: "";
441
+ width: 8px;
442
+ height: 8px;
443
+ margin-left: auto;
444
+ border-right: 2px solid var(--color-icon-muted);
445
+ border-bottom: 2px solid var(--color-icon-muted);
446
+ transform: rotate(45deg) translate(-2px, -2px);
447
+ transition: transform 0.15s ease;
448
+ }
449
+
450
+ .word-meaning[open] .word-meaning__summary::after {
451
+ transform: rotate(-135deg) translate(-2px, -2px);
452
+ }
453
+
454
+ .word-meaning__summary:hover .section-title {
455
+ color: var(--color-accent);
456
+ }
457
+
458
+ .word-meaning__summary:hover::after {
459
+ border-color: var(--color-accent);
460
+ }
461
+
462
+ .word-meaning[open] .word-meaning__summary {
463
+ border-bottom: 1px solid var(--color-divider);
464
+ }
465
+
466
+ .word-meaning__summary .hangeul {
467
+ font-size: var(--text-lg);
468
+ }
469
+
470
+ .word-meaning .card-body {
471
+ padding-top: var(--space-4);
472
+ }
473
+
474
+ /*
475
+ * A cited source: a short citation on one line, wrapping only if it must.
476
+ * Same 48px row as `.link-list`, so the video and source cards line up;
477
+ * `align-content` centres the (possibly wrapped) lines within that row.
478
+ */
479
+ .source-entry {
480
+ display: flex;
481
+ flex-wrap: wrap;
482
+ align-items: baseline;
483
+ align-content: center;
484
+ gap: 0 var(--space-2);
485
+ min-height: 48px;
486
+ padding: var(--space-1) 0;
487
+ color: var(--color-text);
488
+ }
489
+
490
+ .source-entry:hover {
491
+ text-decoration: none;
492
+ }
493
+
494
+ .source-entry b {
495
+ font-weight: 600;
496
+ color: var(--color-accent);
497
+ }
498
+
499
+ .source-entry:hover b {
500
+ text-decoration: underline;
501
+ }
502
+
503
+ .source-entry span {
504
+ font-size: var(--text-sm);
505
+ color: var(--color-text-muted);
506
+ }
507
+
508
+ /* Separator, drawn only when there actually is a page to separate. */
509
+ .source-entry span::before {
510
+ content: "· ";
511
+ }
512
+
513
+ /* Each entry sits in its own custom element, so siblings are the hosts. */
514
+ .source-list > * {
515
+ display: block;
516
+ }
517
+
518
+ .source-list > * + * .source-entry {
519
+ border-top: 1px solid var(--color-divider);
520
+ }
521
+
522
+ /*
523
+ * A historical name: Hangeul first, then each romanisation labelled with the
524
+ * system it follows, then where it is recorded.
525
+ */
526
+ .historic {
527
+ display: flex;
528
+ flex-direction: column;
529
+ gap: var(--space-2);
530
+ padding: var(--space-2) 0;
531
+ }
532
+
533
+ .historic + .historic {
534
+ border-top: 1px solid var(--color-divider);
535
+ margin-top: var(--space-2);
536
+ }
537
+
538
+ .historic__names {
539
+ display: flex;
540
+ flex-wrap: wrap;
541
+ align-items: baseline;
542
+ gap: var(--space-2) var(--space-7);
543
+ }
544
+
545
+ .historic__names .hangeul {
546
+ font-size: var(--text-base);
547
+ }
548
+
549
+ .historic__names b {
550
+ font-weight: 500;
551
+ }
552
+
553
+ .historic__names .romanization {
554
+ margin-left: var(--space-2);
555
+ }
556
+
557
+ /* Key–value rows, used by the source sidebar. */
558
+ .data-list {
559
+ margin: 0;
560
+ display: flex;
561
+ flex-direction: column;
562
+ }
563
+
564
+ .data-list > div {
565
+ display: flex;
566
+ justify-content: space-between;
567
+ align-items: baseline;
568
+ gap: var(--space-3);
569
+ padding: var(--space-2) 0;
570
+ }
571
+
572
+ .data-list > div + div {
573
+ border-top: 1px solid var(--color-divider);
574
+ }
575
+
576
+ .data-list dt {
577
+ font-weight: 400;
578
+ color: var(--color-text-muted);
579
+ }
580
+
581
+ .data-list dd {
582
+ margin: 0;
583
+ font-weight: 500;
584
+ text-align: right;
585
+ }
586
+
587
+ .link-external {
588
+ display: inline-flex;
589
+ align-items: center;
590
+ gap: var(--space-2);
591
+ }
@@ -0,0 +1,79 @@
1
+ /*
2
+ * "from 9th Kup" next to a technique. The belt colours are the same in every
3
+ * club, so they live here and not in the data; a site only says which
4
+ * technique belongs to which grade. Two-coloured belts show both colours side
5
+ * by side, divided vertically as on the belt. The colour is never the only
6
+ * information — the grade is always written next to it.
7
+ */
8
+
9
+ .grade-badge {
10
+ --belt-a: var(--belt-white);
11
+ --belt-b: var(--belt-a);
12
+ display: inline-flex;
13
+ flex: none;
14
+ align-items: center;
15
+ gap: 6px;
16
+ line-height: 1.4;
17
+ padding: 3px 10px 3px 8px;
18
+ border: 1px solid var(--color-border);
19
+ border-radius: var(--radius-pill);
20
+ background: var(--color-surface);
21
+ color: var(--color-text-secondary);
22
+ font-size: var(--text-xs);
23
+ font-weight: 600;
24
+ white-space: nowrap;
25
+ }
26
+
27
+ .grade-badge__belt {
28
+ flex: none;
29
+ width: 18px;
30
+ height: 8px;
31
+ border-radius: 2px;
32
+ /* Keeps a white belt visible on a white badge. */
33
+ box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.18);
34
+ background: linear-gradient(to right, var(--belt-a) 50%, var(--belt-b) 50%);
35
+ }
36
+
37
+ .grade-badge[data-grade="9-kup"] {
38
+ --belt-b: var(--belt-yellow);
39
+ }
40
+ .grade-badge[data-grade="8-kup"] {
41
+ --belt-a: var(--belt-yellow);
42
+ }
43
+ .grade-badge[data-grade="7-kup"] {
44
+ --belt-a: var(--belt-yellow);
45
+ --belt-b: var(--belt-green);
46
+ }
47
+ .grade-badge[data-grade="6-kup"] {
48
+ --belt-a: var(--belt-green);
49
+ }
50
+ .grade-badge[data-grade="5-kup"] {
51
+ --belt-a: var(--belt-green);
52
+ --belt-b: var(--belt-blue);
53
+ }
54
+ .grade-badge[data-grade="4-kup"] {
55
+ --belt-a: var(--belt-blue);
56
+ }
57
+ .grade-badge[data-grade="3-kup"] {
58
+ --belt-a: var(--belt-blue);
59
+ --belt-b: var(--belt-red);
60
+ }
61
+ .grade-badge[data-grade="2-kup"] {
62
+ --belt-a: var(--belt-red);
63
+ }
64
+ .grade-badge[data-grade="1-kup"],
65
+ .grade-badge[data-grade$="-poom"] {
66
+ --belt-a: var(--belt-red);
67
+ --belt-b: var(--belt-black);
68
+ }
69
+ .grade-badge[data-grade$="-dan"] {
70
+ --belt-a: var(--belt-black);
71
+ }
72
+
73
+ /* Next to the title of a technique, together with the "generic term" tag. */
74
+ .title-block__tags {
75
+ display: flex;
76
+ flex-wrap: wrap;
77
+ align-items: center;
78
+ gap: var(--space-2);
79
+ }