@codeforamerica/marcomms-design-system 1.18.1 → 1.19.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.
Files changed (157) hide show
  1. package/README.md +20 -15
  2. package/dist/components/accordion.js +160 -0
  3. package/dist/components/accordion.js.LICENSE.txt +11 -0
  4. package/dist/components/avatar.js +103 -0
  5. package/dist/components/avatar.js.LICENSE.txt +11 -0
  6. package/dist/components/bar.js +122 -0
  7. package/dist/components/bar.js.LICENSE.txt +11 -0
  8. package/dist/components/blob.js +133 -0
  9. package/dist/components/blob.js.LICENSE.txt +11 -0
  10. package/dist/components/box.js +99 -0
  11. package/dist/components/box.js.LICENSE.txt +11 -0
  12. package/dist/components/breadcrumbs.js +112 -0
  13. package/dist/components/breadcrumbs.js.LICENSE.txt +11 -0
  14. package/dist/components/button.js +159 -0
  15. package/dist/components/button.js.LICENSE.txt +11 -0
  16. package/dist/components/callout.js +135 -0
  17. package/dist/components/callout.js.LICENSE.txt +11 -0
  18. package/dist/components/card.js +873 -0
  19. package/dist/components/card.js.LICENSE.txt +11 -0
  20. package/dist/components/carousel.js +291 -0
  21. package/dist/components/carousel.js.LICENSE.txt +11 -0
  22. package/dist/components/icon.js +91 -0
  23. package/dist/components/icon.js.LICENSE.txt +11 -0
  24. package/dist/components/label.js +498 -0
  25. package/dist/components/label.js.LICENSE.txt +11 -0
  26. package/dist/components/logo-card.js +514 -0
  27. package/dist/components/logo-card.js.LICENSE.txt +11 -0
  28. package/dist/components/nav.js +129 -0
  29. package/dist/components/nav.js.LICENSE.txt +11 -0
  30. package/dist/components/page-nav.js +163 -0
  31. package/dist/components/page-nav.js.LICENSE.txt +11 -0
  32. package/dist/components/pager.js +707 -0
  33. package/dist/components/pager.js.LICENSE.txt +11 -0
  34. package/dist/components/pagination.js +303 -0
  35. package/dist/components/pagination.js.LICENSE.txt +11 -0
  36. package/dist/components/person-card.js +864 -0
  37. package/dist/components/person-card.js.LICENSE.txt +11 -0
  38. package/dist/components/pill.js +80 -0
  39. package/dist/components/pill.js.LICENSE.txt +11 -0
  40. package/dist/components/placeholder.js +12 -0
  41. package/dist/components/placeholder.js.LICENSE.txt +11 -0
  42. package/dist/components/promo.js +536 -0
  43. package/dist/components/promo.js.LICENSE.txt +11 -0
  44. package/dist/components/pullquote.js +89 -0
  45. package/dist/components/pullquote.js.LICENSE.txt +11 -0
  46. package/dist/components/quote.js +155 -0
  47. package/dist/components/quote.js.LICENSE.txt +11 -0
  48. package/dist/components/reveal.js +142 -0
  49. package/dist/components/reveal.js.LICENSE.txt +11 -0
  50. package/dist/components/slide.js +157 -0
  51. package/dist/components/slide.js.LICENSE.txt +11 -0
  52. package/dist/components/social-icon.js +240 -0
  53. package/dist/components/social-icon.js.LICENSE.txt +11 -0
  54. package/dist/components/stat.js +507 -0
  55. package/dist/components/stat.js.LICENSE.txt +11 -0
  56. package/dist/components/tab-list.js +688 -0
  57. package/dist/components/tab-list.js.LICENSE.txt +11 -0
  58. package/dist/components/tab.js +494 -0
  59. package/dist/components/tab.js.LICENSE.txt +11 -0
  60. package/dist/components/tile.js +662 -0
  61. package/dist/components/tile.js.LICENSE.txt +11 -0
  62. package/dist/components/transcript.js +483 -0
  63. package/dist/components/transcript.js.LICENSE.txt +11 -0
  64. package/dist/core.css +7 -0
  65. package/dist/core.js +0 -0
  66. package/dist/index.js +2328 -2328
  67. package/dist/styles.css +1 -1
  68. package/package.json +9 -3
  69. package/src/components/accordion.js +0 -141
  70. package/src/components/accordion.stories.js +0 -56
  71. package/src/components/avatar.js +0 -62
  72. package/src/components/avatar.stories.js +0 -27
  73. package/src/components/bar.js +0 -102
  74. package/src/components/bar.stories.js +0 -22
  75. package/src/components/blob.js +0 -128
  76. package/src/components/blob.stories.js +0 -73
  77. package/src/components/box.js +0 -55
  78. package/src/components/box.stories.js +0 -24
  79. package/src/components/breadcrumbs.js +0 -80
  80. package/src/components/breadcrumbs.stories.js +0 -27
  81. package/src/components/button.js +0 -163
  82. package/src/components/button.scss +0 -157
  83. package/src/components/button.stories.js +0 -49
  84. package/src/components/callout.js +0 -62
  85. package/src/components/callout.stories.js +0 -20
  86. package/src/components/card.js +0 -456
  87. package/src/components/card.stories.js +0 -227
  88. package/src/components/carousel.js +0 -662
  89. package/src/components/carousel.stories.js +0 -165
  90. package/src/components/details.scss +0 -71
  91. package/src/components/details.stories.js +0 -27
  92. package/src/components/form-elements.scss +0 -304
  93. package/src/components/form-elements.stories.js +0 -134
  94. package/src/components/icon.js +0 -44
  95. package/src/components/icon.scss +0 -32
  96. package/src/components/icon.stories.js +0 -38
  97. package/src/components/label.js +0 -63
  98. package/src/components/label.stories.js +0 -29
  99. package/src/components/link-list.scss +0 -80
  100. package/src/components/link-list.stories.js +0 -52
  101. package/src/components/loader.scss +0 -24
  102. package/src/components/loader.stories.js +0 -12
  103. package/src/components/logo-card.js +0 -93
  104. package/src/components/logo-card.stories.js +0 -48
  105. package/src/components/nav.js +0 -98
  106. package/src/components/nav.stories.js +0 -40
  107. package/src/components/page-nav.js +0 -171
  108. package/src/components/page-nav.stories.js +0 -112
  109. package/src/components/pager.js +0 -98
  110. package/src/components/pager.stories.js +0 -30
  111. package/src/components/pagination.js +0 -116
  112. package/src/components/pagination.stories.js +0 -30
  113. package/src/components/person-card.js +0 -240
  114. package/src/components/person-card.stories.js +0 -58
  115. package/src/components/pill.js +0 -33
  116. package/src/components/pill.stories.js +0 -25
  117. package/src/components/placeholder.js +0 -25
  118. package/src/components/placeholder.stories.js +0 -10
  119. package/src/components/promo.js +0 -82
  120. package/src/components/promo.stories.js +0 -37
  121. package/src/components/pullquote.js +0 -42
  122. package/src/components/pullquote.stories.js +0 -16
  123. package/src/components/quote.js +0 -111
  124. package/src/components/quote.stories.js +0 -23
  125. package/src/components/reveal.js +0 -83
  126. package/src/components/reveal.stories.js +0 -40
  127. package/src/components/slide.js +0 -122
  128. package/src/components/slide.stories.js +0 -49
  129. package/src/components/social-icon.js +0 -236
  130. package/src/components/social-icon.stories.js +0 -36
  131. package/src/components/stat.js +0 -92
  132. package/src/components/stat.stories.js +0 -28
  133. package/src/components/tab-list.js +0 -114
  134. package/src/components/tab-list.stories.js +0 -18
  135. package/src/components/tab.js +0 -95
  136. package/src/components/tab.stories.js +0 -29
  137. package/src/components/tile.js +0 -149
  138. package/src/components/tile.stories.js +0 -41
  139. package/src/components/transcript.js +0 -44
  140. package/src/components/transcript.stories.js +0 -103
  141. package/src/core/base.scss +0 -86
  142. package/src/core/colors.mdx +0 -100
  143. package/src/core/grid.mdx +0 -244
  144. package/src/core/grid.scss +0 -394
  145. package/src/core/helpers.scss +0 -111
  146. package/src/core/layout.scss +0 -97
  147. package/src/core/layout.stories.js +0 -145
  148. package/src/core/reset.scss +0 -53
  149. package/src/core/shadows.mdx +0 -108
  150. package/src/core/tokens.scss +0 -261
  151. package/src/core/typography.mdx +0 -79
  152. package/src/core/typography.scss +0 -411
  153. package/src/index.js +0 -43
  154. package/src/shared/common.js +0 -65
  155. package/src/shared/layout.js +0 -14
  156. package/src/shared/typography.js +0 -397
  157. package/src/styles.scss +0 -15
@@ -0,0 +1,688 @@
1
+ /*! For license information please see tab-list.js.LICENSE.txt */
2
+ (()=>{"use strict";var t={227(t,e,i){i.d(e,{V:()=>n});const n=i(161).AH`
3
+ .cfa-button,
4
+ a.cfa-button,
5
+ .cfa-button > a,
6
+ .wp-block-button > * {
7
+ --bg-color: var(--white);
8
+ --border-color: transparent;
9
+ --font-family: var(--font-family-sans-serif);
10
+ --font-size: var(--font-size-base);
11
+ --hover-bg-color: var(--blue-20);
12
+ --hover-border-color: var(--border-color);
13
+ --line-height: var(--line-height-base);
14
+ --text-color: var(--purple-80);
15
+
16
+ background-color: var(--bg-color);
17
+ border: var(--hairline) solid var(--border-color);
18
+ border-radius: var(--rounded-corners);
19
+ box-shadow: var(--shadow-small);
20
+ color: var(--text-color);
21
+ cursor: pointer;
22
+ display: block;
23
+ font-family: var(--font-family);
24
+ font-size: var(--font-size);
25
+ font-weight: bold;
26
+ padding: var(--spacing-component-2) var(--spacing-component-3);
27
+ text-align: center;
28
+ text-decoration: none;
29
+ transition: background-color 0.5s, box-shadow 0.5s;
30
+
31
+ &:hover {
32
+ background-color: var(--hover-bg-color);
33
+ border-color: var(--hover-border-color);
34
+ box-shadow: var(--shadow-medium);
35
+ color: var(--text-color);
36
+ }
37
+ }
38
+
39
+ @media (max-width: 768px) {
40
+ .cfa-button,
41
+ a.cfa-button,
42
+ .cfa-button > a,
43
+ .wp-block-button > * {
44
+ width: 100%;
45
+
46
+ & + & {
47
+ margin-block-start: var(--spacing-layout-half);
48
+ }
49
+ }
50
+
51
+ .wp-block-button {
52
+ width: 100%;
53
+ }
54
+ }
55
+
56
+ @media (min-width: 768px) {
57
+ .cfa-button,
58
+ a.cfa-button,
59
+ .cfa-button > a,
60
+ .wp-block-button > * {
61
+ display: inline-block;
62
+
63
+ & {
64
+ margin-block: var(--spacing-component-2);
65
+ margin-inline-end: var(--spacing-component-2);
66
+ }
67
+ }
68
+ }
69
+
70
+ // Themes / variants
71
+
72
+ .cfa-button--primary,
73
+ a.cfa-button--primary,
74
+ .cfa-button--primary > a,
75
+ .wp-block-button.is-style-primary > * {
76
+ --bg-color: var(--red-60);
77
+ --hover-bg-color: var(--red-80);
78
+ --text-color: var(--white,);
79
+ }
80
+
81
+ .cfa-button--outline,
82
+ a.cfa-button--outline,
83
+ .cfa-button--outline > a,
84
+ .wp-block-button.is-style-outline > * {
85
+ --border-color: var(--black-20);
86
+ --bg-color: transparent;
87
+ }
88
+
89
+ .cfa-button--outline-white,
90
+ a.cfa-button--outline-white,
91
+ .cfa-button--outline-white > a,
92
+ .wp-block-button.is-style-outline-white > * {
93
+ --border-color: var(--white);
94
+ --bg-color: transparent;
95
+ --hover-bg-color: var(--black-20);
96
+ --shadow-color: var(--white-20);
97
+ --text-color: var(--white);
98
+ }
99
+
100
+ .cfa-button--prominent-link,
101
+ a.cfa-button--prominent-link,
102
+ .cfa-button--prominent-link > a,
103
+ .wp-block-button.is-style-prominent-link > * {
104
+ --accent-color: var(--purple-60);
105
+
106
+ background: unset;
107
+ box-shadow: unset;
108
+ color: inherit;
109
+ font-weight: bold;
110
+ padding: 0;
111
+ text-decoration: underline;
112
+ text-decoration-color: var(--accent-color);
113
+ text-decoration-thickness: var(--medium);
114
+ text-underline-offset: 0.4em;
115
+ transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
116
+
117
+ &:hover {
118
+ --accent-color: var(--red-60);
119
+
120
+ background: unset;
121
+ box-shadow: unset;
122
+ }
123
+
124
+ &::after {
125
+ @include icon.icon;
126
+
127
+ content: "arrow_right_alt";
128
+ display: inline-block;
129
+ padding-inline-start: 0.1em;
130
+ text-decoration: none;
131
+ transition: transform 0.2s ease-in-out;
132
+ width: 1em;
133
+ }
134
+
135
+ &:hover::after {
136
+ transform: translateX(0.3em);
137
+ }
138
+
139
+ cfa-icon {
140
+ text-decoration: none;
141
+ }
142
+ }
143
+
144
+ // Sizes
145
+
146
+ .cfa-button--sm,
147
+ a.cfa-button--sm,
148
+ .cfa-button--sm > a {
149
+ --font-size: var(--font-size-small);
150
+ --line-height: var(--line-height-small);
151
+ }
152
+
153
+ .cfa-button--md,
154
+ a.cfa-button--md,
155
+ .cfa-button--md > a {
156
+ --font-size: var(--font-size-base);
157
+ --line-height: var(--line-height-base);
158
+ }
159
+ `},36(t,e,i){var n=i(161),o=i(601),r=i(205);class s extends n.WF{static properties=(()=>({active:{type:Boolean},panelId:{type:String}}))();static styles=(()=>[o.s,r.g,n.AH`
160
+ button {
161
+ background: none;
162
+ border: 0;
163
+ box-shadow: inset 0 calc(-1 * var(--hairline)) 0 0 var(--gray-40);
164
+ color: var(--gray-80);
165
+ cursor: pointer;
166
+ font-family: var(--font-family-sans-serif);
167
+ font-size: var(--font-size-small);
168
+ font-weight: normal;
169
+ padding: var(--spacing-component-2) var(--spacing-component-3)
170
+ calc(var(--spacing-component-2) + var(--medium));
171
+ }
172
+ button:focus {
173
+ background-color: var(--focus-color);
174
+ outline: none;
175
+ }
176
+ button:not(.active):hover {
177
+ box-shadow: inset 0 calc(-1 * var(--medium)) 0 0 var(--purple-40);
178
+ color: var(--black);
179
+ }
180
+ button.active {
181
+ box-shadow: inset 0 calc(-1 * var(--medium)) 0 0 var(--purple-60);
182
+ color: var(--black);
183
+ font-weight: bold;
184
+ }
185
+ `])();constructor(){super(),this.active=!1,this.panelId=""}firstUpdated(){this.addEventListener("keydown",this._onKeyDown)}_onKeyDown(t){const e=Array.from(this.parentElement.querySelectorAll("cfa-tab")),i=e.indexOf(this);let n;switch(t.key){case"ArrowLeft":n=(i-1+e.length)%e.length,e[n].shadowRoot.querySelector("button").focus();break;case"ArrowRight":n=(i+1)%e.length,e[n].shadowRoot.querySelector("button").focus();break;case"Home":e[0].shadowRoot.querySelector("button").focus();break;case"End":e[e.length-1].shadowRoot.querySelector("button").focus()}}render(){return n.qy`
186
+ <button
187
+ role="tab"
188
+ aria-selected="${this.active?"true":"false"}"
189
+ aria-controls="${this.panelId}"
190
+ class="${this.active?"active":""}"
191
+ tabindex="${this.active?"0":"-1"}"
192
+ >
193
+ <slot></slot>
194
+ </button>
195
+ `}}customElements.get("cfa-tab")||customElements.define("cfa-tab",s)},601(t,e,i){i.d(e,{s:()=>n});const n=i(161).AH`
196
+ *:focus-visible,
197
+ *:target {
198
+ outline: var(--focus-outline);
199
+ position: relative;
200
+ }
201
+
202
+ // RESET
203
+
204
+ // Use a more-intuitive box-sizing model.
205
+ *, *::before, *::after {
206
+ box-sizing: border-box;
207
+ }
208
+
209
+ // Remove default margin
210
+ * {
211
+ margin: 0;
212
+ }
213
+
214
+ // Set default text-wrap of 'pretty'
215
+ * {
216
+ text-wrap: pretty;
217
+ }
218
+
219
+ // Wrap overly long words
220
+ * {
221
+ overflow-wrap: break-word;
222
+ text-overflow: ellipsis;
223
+ word-break: break-word;
224
+ }
225
+
226
+ // Fix Safari antialiasing for variable fonts
227
+ * {
228
+ font-synthesis: none !important;
229
+ }
230
+
231
+ // Improve text rendering
232
+ body {
233
+ -webkit-font-smoothing: antialiased;
234
+ }
235
+
236
+ // Reasonable media defaults
237
+ img, picture, video, canvas, svg {
238
+ display: block;
239
+ height: auto;
240
+ max-width: 100%;
241
+ }
242
+
243
+ // Remove built-in form typography styles
244
+ input, button, textarea, select {
245
+ font: inherit;
246
+ }
247
+
248
+ // Avoid text overflows
249
+ p, h1, h2, h3, h4, h5, h6 {
250
+ overflow-wrap: break-word;
251
+ }
252
+
253
+ // Create a root stacking context
254
+ #root, #__next {
255
+ isolation: isolate;
256
+ }
257
+ `},205(t,e,i){i.d(e,{g:()=>n});const n=i(161).AH`
258
+ // =====
259
+
260
+ // Typography spacing
261
+
262
+ // Add a single space around paragraphs, blockquotes, and lists
263
+ p, ul, ol, blockquote {
264
+ & + * {
265
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
266
+ }
267
+ * + & {
268
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
269
+ }
270
+ }
271
+
272
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2 {
273
+ // Add a single line space after headings
274
+ & + * {
275
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
276
+ }
277
+
278
+ // Add two line spaces before headings
279
+ * + & {
280
+ --spacing: var(--spacing-layout-2);
281
+
282
+ margin-block-start: --spacing;
283
+ }
284
+
285
+ // Only add a single space between headings and other headings
286
+ & + & {
287
+ --spacing: var(--spacing-layout-1);
288
+ }
289
+
290
+ // Reduce space after breadcrumbs and eyebrows
291
+ cfa-breadcrumbs + & {
292
+ margin-block-start: var(--spacing-layout-half) !important;
293
+ }
294
+
295
+ .eyebrow + & {
296
+ margin-block-start: 0 !important;
297
+ }
298
+ }
299
+
300
+ h1, .h1, .display-1, .display-2 {
301
+ text-wrap: balance;
302
+ }
303
+
304
+ // =====
305
+
306
+ // Font styles
307
+
308
+ .regular {
309
+ font-family: var(--font-family-base);
310
+ font-size: var(--font-size-base);
311
+ line-height: var(--line-height-base);
312
+ }
313
+
314
+ .display-1 {
315
+ font-family: var(--font-family-heading);
316
+ font-size: var(--font-size-display-1);
317
+ font-weight: bold;
318
+ line-height: var(--line-height-display-1);
319
+ letter-spacing: var(--letter-spacing-display-1);
320
+ }
321
+
322
+ .display-2 {
323
+ font-family: var(--font-family-heading);
324
+ font-size: var(--font-size-display-2);
325
+ font-weight: bold;
326
+ line-height: var(--line-height-display-2);
327
+ letter-spacing: var(--letter-spacing-display-2);
328
+ }
329
+
330
+ h1,
331
+ .h1 {
332
+ font-family: var(--font-family-heading);
333
+ font-size: var(--font-size-h1);
334
+ font-weight: bold;
335
+ line-height: var(--line-height-h1);
336
+ letter-spacing: var(--letter-spacing-h1);
337
+ }
338
+
339
+ h2,
340
+ .h2 {
341
+ font-family: var(--font-family-heading);
342
+ font-size: var(--font-size-h2);
343
+ font-weight: bold;
344
+ line-height: var(--line-height-h2);
345
+ letter-spacing: var(--letter-spacing-h2);
346
+ }
347
+
348
+ h3,
349
+ .h3 {
350
+ font-family: var(--font-family-heading);
351
+ font-size: var(--font-size-h3);
352
+ font-weight: bold;
353
+ line-height: var(--line-height-h3);
354
+ letter-spacing: var(--letter-spacing-h3);
355
+ }
356
+
357
+ h4,
358
+ .h4 {
359
+ font-family: var(--font-family-heading);
360
+ font-size: var(--font-size-h4);
361
+ font-weight: bold;
362
+ line-height: var(--line-height-h4);
363
+ letter-spacing: var(--letter-spacing-h4);
364
+ }
365
+
366
+ .extra-large {
367
+ font-size: var(--font-size-extra-large);
368
+ line-height: var(--line-height-extra-large);
369
+ letter-spacing: var(--letter-spacing-extra-large);
370
+ }
371
+
372
+ .large {
373
+ font-size: var(--font-size-large);
374
+ line-height: var(--line-height-large);
375
+ letter-spacing: var(--letter-spacing-large);
376
+ }
377
+
378
+ .small {
379
+ font-size: var(--font-size-small);
380
+ line-height: var(--line-height-small);
381
+ letter-spacing: var(--letter-spacing-small);
382
+ }
383
+
384
+ .eyebrow {
385
+ font-family: var(--font-family-sans-serif);
386
+ font-size: var(--font-size-eyebrow);
387
+ font-weight: var(--font-weight-eyebrow);
388
+ letter-spacing: var(--letter-spacing-eyebrow);
389
+ line-height: var(--line-height-eyebrow);
390
+ text-transform: uppercase;
391
+ }
392
+
393
+ .eyebrow-with-line {
394
+ align-items: center;
395
+ color: var(--text-color);
396
+ display: flex;
397
+ font-family: var(--font-family-eyebrow);
398
+ font-size: var(--font-size-eyebrow);
399
+ font-weight: var(--font-weight-eyebrow);
400
+ letter-spacing: var(--letter-spacing-eyebrow);
401
+ line-height: var(--line-height-eyebrow);
402
+ margin-block-end: var(--spacing-layout-half);
403
+ position: relative;
404
+ text-transform: uppercase;
405
+
406
+ &::after {
407
+ border-block-end: var(--hairline) solid currentColor;
408
+ content: "";
409
+ flex-grow: 1;
410
+ margin-left: var(--spacing-component-3);
411
+ }
412
+ }
413
+
414
+ .subtle {
415
+ opacity: 0.6;
416
+ }
417
+
418
+ .serif {
419
+ font-family: var(--font-family-serif);
420
+ }
421
+
422
+ .sans-serif {
423
+ font-family: var(--font-family-sans-serif);
424
+ }
425
+
426
+ i,
427
+ em,
428
+ .italic {
429
+ font-style: italic;
430
+ }
431
+
432
+ b,
433
+ strong,
434
+ .strong {
435
+ font-weight: bold;
436
+ }
437
+
438
+ .normal {
439
+ font-weight: normal;
440
+ }
441
+
442
+ .prominent-link,
443
+ a.prominent-link {
444
+ --accent-color: var(--purple-60);
445
+
446
+ font-weight: bold;
447
+ text-decoration: underline;
448
+ text-decoration-color: var(--accent-color);
449
+ text-decoration-thickness: var(--medium);
450
+ text-underline-offset: 0.4em;
451
+ transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
452
+
453
+ &:hover {
454
+ --accent-color: var(--red-60);
455
+ }
456
+
457
+ &:not(:has(cfa-icon))::after {
458
+ @include icon.icon;
459
+
460
+ content: "arrow_right_alt";
461
+ display: inline-block;
462
+ padding-inline-start: 0.1em;
463
+ text-decoration: none;
464
+ transition: padding 0.2s ease-in-out;
465
+ width: 1em;
466
+ }
467
+
468
+ &:not(:has(cfa-icon)):hover::after {
469
+ padding-inline-start: 0.3em;
470
+ }
471
+
472
+ cfa-icon {
473
+ text-decoration: none;
474
+ }
475
+ }
476
+
477
+ .white-text,
478
+ .text-light /* fallback */ {
479
+ -moz-osx-font-smoothing: grayscale; // Sharper antialising for white text on a dark background
480
+ -webkit-font-smoothing: antialiased; // Sharper antialising for white text on a dark background
481
+ color: var(--white);
482
+ --link-color: var(--white);
483
+ --link-hover-color: var(--white);
484
+ }
485
+
486
+ // =====
487
+
488
+ // Highlights
489
+
490
+ .highlight {
491
+ --highlight-offset: 0.2em;
492
+
493
+ box-decoration-break: clone;
494
+ display: inline;
495
+ background: linear-gradient(to top, transparent 0%, transparent var(--highlight-offset), var(--highlight-color) var(--highlight-offset), var(--highlight-color) calc(var(--highlight-offset) + var(--highlight-thickness)), transparent calc(var(--highlight-offset) + var(--highlight-thickness)), transparent 100%);
496
+ padding-inline: 0.1em;
497
+ -webkit-box-decoration-break: clone;
498
+ margin-inline-start: -0.1em;
499
+ margin-inline-end: -0.1em;
500
+ word-wrap: break-word;
501
+ }
502
+
503
+ // ======
504
+
505
+ // Lists
506
+
507
+ .ul {
508
+ list-style-type: disc;
509
+ padding-left: var(--spacing-layout-1);
510
+ }
511
+
512
+ .ul > li {
513
+ margin-inline-start: 0;
514
+ padding-left: var(--spacing-component-2);
515
+ }
516
+
517
+ .ul > li + li {
518
+ margin-block-start: var(--spacing-layout-half);
519
+ }
520
+
521
+ .ul > li > ul {
522
+ margin-block-start: var(--spacing-layout-half);
523
+ }
524
+
525
+ .ol {
526
+ list-style-type: decimal;
527
+ padding-left: var(--spacing-layout-1);
528
+ }
529
+
530
+ .ol > li {
531
+ margin-inline-start: 0;
532
+ padding-inline-start: var(--spacing-component-2);
533
+ }
534
+
535
+ .ol > li + li {
536
+ margin-block-start: var(--spacing-layout-half);
537
+ }
538
+
539
+ .ol > li > ul {
540
+ margin-block-start: var(--spacing-layout-half);
541
+ }
542
+
543
+ .ul--unstyled {
544
+ list-style: none;
545
+ padding: 0;
546
+ }
547
+
548
+ .ul--unstyled > li {
549
+ margin-inline: 0;
550
+ padding: 0;
551
+ }
552
+
553
+ .ul--line-separators > li + li::before {
554
+ border-block-start: 1px solid var(--gray-20);
555
+ content: "";
556
+ display: block;
557
+ margin-block: var(--spacing-layout-half);
558
+ width: 100%;
559
+ }
560
+
561
+ .ul--inline,
562
+ .ul--inline-with-separators,
563
+ .ul--inline-with-line-separators {
564
+ display: inline;
565
+ list-style: none;
566
+ padding-inline: 0 !important;
567
+ padding-left: 0 !important;
568
+ }
569
+
570
+ .ul--inline > li,
571
+ .ul--inline-with-separators > li,
572
+ .ul--inline-with-line-separators > li {
573
+ display: inline-block;
574
+ margin-inline-end: var(--spacing-component-3);
575
+ padding: 0 !important;
576
+ }
577
+
578
+ .ul--inline li:last-child,
579
+ .ul--inline-with-separators li:last-child,
580
+ .ul--inline-with-line-separators li:last-child {
581
+ margin-inline-end: 0;
582
+ }
583
+
584
+ .ul--inline > li + li,
585
+ .ul--inline-with-separators > li + li,
586
+ .ul--inline-with-line-separators > li + li {
587
+ margin-block-start: 0;
588
+ }
589
+
590
+ .ul--inline-with-separators li,
591
+ .ul--inline-with-line-separators li {
592
+ margin-inline-end: 0;
593
+ }
594
+
595
+ .ul--inline-with-separators > li::after {
596
+ content: "•";
597
+ margin-inline: var(--spacing-component-2);
598
+ opacity: 0.5;
599
+ }
600
+
601
+ .ul--inline-with-separators > li:last-child::after {
602
+ content: "";
603
+ }
604
+
605
+ .ul--inline-with-line-separators > li::after {
606
+ content: "|";
607
+ margin-inline: var(--spacing-component-2);
608
+ opacity: 0.5;
609
+ }
610
+
611
+ .ul--inline-with-line-separators > li:last-child::after {
612
+ content: "";
613
+ }
614
+
615
+ // ===
616
+
617
+ // Horizontal rule
618
+
619
+ hr {
620
+ --color: currentColor;
621
+
622
+ background-color: var(--color);
623
+ border: 0;
624
+ color: var(--color);
625
+ display: block;
626
+ font-size: 0;
627
+ height: var(--hairline);
628
+ margin-block: var(--spacing-layout-1);
629
+ opacity: 0.4;
630
+ }
631
+
632
+ // ===
633
+
634
+ // Icons
635
+
636
+ .icon {
637
+ -webkit-font-feature-settings: 'liga';
638
+ direction: ltr;
639
+ display: inline-block;
640
+ font-family: 'Material Symbols Rounded';
641
+ font-feature-settings: 'liga';
642
+ font-size: 1.4em;
643
+ font-style: normal;
644
+ font-weight: normal;
645
+ letter-spacing: normal;
646
+ text-transform: none;
647
+ vertical-align: middle;
648
+ white-space: nowrap;
649
+ word-wrap: normal;
650
+ }
651
+ `},826(t,e,i){i.d(e,{AH:()=>l,Rf:()=>h,sk:()=>c});const n=globalThis,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new WeakMap;class a{constructor(t,e,i){if(this._$cssResult$=!0,i!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&s.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1],t[0]);return new a(i,t,r)},h=(t,e)=>{if(o)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const i of e){const e=document.createElement("style"),o=n.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}},c=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,r))(e)})(t):t},760(t,e,i){i.d(e,{AH:()=>n.AH,mN:()=>m});var n=i(826);const{is:o,defineProperty:r,getOwnPropertyDescriptor:s,getOwnPropertyNames:a,getOwnPropertySymbols:l,getPrototypeOf:h}=Object,c=globalThis,d=c.trustedTypes,p=d?d.emptyScript:"",u=c.reactiveElementPolyfillSupport,f=(t,e)=>t,g={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},b=(t,e)=>!o(t,e),v={attribute:!0,type:String,converter:g,reflect:!1,useDefault:!1,hasChanged:b};Symbol.metadata??=Symbol("metadata"),c.litPropertyMetadata??=new WeakMap;class m extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),n=this.getPropertyDescriptor(t,i,e);void 0!==n&&r(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){const{get:n,set:o}=s(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:n,set(e){const r=n?.call(this);o?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const t=this.properties,e=[...a(t),...l(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift((0,n.sk)(t))}else void 0!==t&&e.push((0,n.sk)(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return(0,n.Rf)(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(void 0!==n&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:g).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,n=i._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=i.getPropertyOptions(n),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:g;this._$Em=n;const r=o.fromAttribute(e,t.type);this[n]=r??this._$Ej?.get(n)??r,this._$Em=null}}requestUpdate(t,e,i,n=!1,o){if(void 0!==t){const r=this.constructor;if(!1===n&&(o=this[t]),i??=r.getPropertyOptions(t),!((i.hasChanged??b)(o,e)||i.useDefault&&i.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:n,wrapped:o},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,i,n)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}m.elementStyles=[],m.shadowRootOptions={mode:"open"},m[f("elementProperties")]=new Map,m[f("finalized")]=new Map,u?.({ReactiveElement:m}),(c.reactiveElementVersions??=[]).push("2.1.2")},228(t,e,i){i.d(e,{AH:()=>n.AH,WF:()=>s,qy:()=>o.qy});var n=i(760),o=i(752);const r=globalThis;class s extends n.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,o.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return o.c0}}s._$litElement$=!0,s.finalized=!0,r.litElementHydrateSupport?.({LitElement:s});const a=r.litElementPolyfillSupport;a?.({LitElement:s}),(r.litElementVersions??=[]).push("4.2.2")},752(t,e,i){i.d(e,{XX:()=>L,c0:()=>k,qy:()=>x});const n=globalThis,o=t=>t,r=n.trustedTypes,s=r?r.createPolicy("lit-html",{createHTML:t=>t}):void 0,a="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+l,c=`<${h}>`,d=document,p=()=>d.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,f=Array.isArray,g="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,m=/>/g,y=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$=/'/g,w=/"/g,_=/^(?:script|style|textarea|title)$/i,A=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),x=A(1),k=(A(2),A(3),Symbol.for("lit-noChange")),E=Symbol.for("lit-nothing"),S=new WeakMap,C=d.createTreeWalker(d,129);function z(t,e){if(!f(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(e):e}const P=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":3===e?"<math>":"",s=b;for(let e=0;e<i;e++){const i=t[e];let h,d,p=-1,u=0;for(;u<i.length&&(s.lastIndex=u,d=s.exec(i),null!==d);)u=s.lastIndex,s===b?"!--"===d[1]?s=v:void 0!==d[1]?s=m:void 0!==d[2]?(_.test(d[2])&&(o=RegExp("</"+d[2],"g")),s=y):void 0!==d[3]&&(s=y):s===y?">"===d[0]?(s=o??b,p=-1):void 0===d[1]?p=-2:(p=s.lastIndex-d[2].length,h=d[1],s=void 0===d[3]?y:'"'===d[3]?w:$):s===w||s===$?s=y:s===v||s===m?s=b:(s=y,o=void 0);const f=s===y&&t[e+1].startsWith("/>")?" ":"";r+=s===b?i+c:p>=0?(n.push(h),i.slice(0,p)+a+i.slice(p)+l+f):i+l+(-2===p?e:f)}return[z(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]};class H{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,s=0;const c=t.length-1,d=this.parts,[u,f]=P(t,e);if(this.el=H.createElement(u,i),C.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=C.nextNode())&&d.length<c;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(a)){const e=f[s++],i=n.getAttribute(t).split(l),r=/([.?@])?(.*)/.exec(e);d.push({type:1,index:o,name:r[2],strings:i,ctor:"."===r[1]?M:"?"===r[1]?N:"@"===r[1]?q:T}),n.removeAttribute(t)}else t.startsWith(l)&&(d.push({type:6,index:o}),n.removeAttribute(t));if(_.test(n.tagName)){const t=n.textContent.split(l),e=t.length-1;if(e>0){n.textContent=r?r.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],p()),C.nextNode(),d.push({type:2,index:++o});n.append(t[e],p())}}}else if(8===n.nodeType)if(n.data===h)d.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(l,t+1));)d.push({type:7,index:o}),t+=l.length-1}o++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function U(t,e,i=t,n){if(e===k)return e;let o=void 0!==n?i._$Co?.[n]:i._$Cl;const r=u(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,i,n)),void 0!==n?(i._$Co??=[])[n]=o:i._$Cl=o),void 0!==o&&(e=U(t,o._$AS(t,e.values),o,n)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??d).importNode(e,!0);C.currentNode=n;let o=C.nextNode(),r=0,s=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new O(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new I(o,this,t)),this._$AV.push(e),a=i[++s]}r!==a?.index&&(o=C.nextNode(),r++)}return C.currentNode=d,n}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class O{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),u(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==k&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>f(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==E&&u(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=H.createElement(z(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{const t=new R(n,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=S.get(t.strings);return void 0===e&&S.set(t.strings,e=new H(t)),e}k(t){f(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new O(this.O(p()),this.O(p()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=o(t).nextSibling;o(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class T{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,o){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=U(this,t,e,0),r=!u(t)||t!==this._$AH&&t!==k,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=U(this,n[i+s],e,s),a===k&&(a=this._$AH[s]),r||=!u(a)||a!==this._$AH[s],a===E?t=E:t!==E&&(t+=(a??"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class M extends T{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}class N extends T{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class q extends T{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??E)===k)return;const i=this._$AH,n=t===E&&i!==E||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==E&&(i===E||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class I{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const D=n.litHtmlPolyfillSupport;D?.(H,O),(n.litHtmlVersions??=[]).push("3.3.2");const L=(t,e,i)=>{const n=i?.renderBefore??e;let o=n._$litPart$;if(void 0===o){const t=i?.renderBefore??null;n._$litPart$=o=new O(e.insertBefore(p(),t),t,void 0,i??{})}return o._$AI(t),o}},161(t,e,i){i.d(e,{AH:()=>n.AH,WF:()=>n.WF,qy:()=>n.qy}),i(760),i(752);var n=i(228)}},e={};function i(n){var o=e[n];if(void 0!==o)return o.exports;var r=e[n]={exports:{}};return t[n](r,r.exports,i),r.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n=i(161),o=i(601),r=i(227);i(36);class s extends n.WF{static properties={};static styles=(()=>[o.s,r.V,n.AH`
652
+ :host {
653
+ display: block;
654
+ width: calc(100% + var(--outer-margin));
655
+ }
656
+
657
+ .tab-list {
658
+ display: flex;
659
+ flex-direction: row;
660
+ line-height: 1;
661
+ margin-inline-start: calc(-1 * var(--outer-margin));
662
+ overflow-x: auto;
663
+ overflow-y: hidden;
664
+ scrollbar-width: none;
665
+ white-space: nowrap;
666
+ }
667
+
668
+ .tab-list::before {
669
+ content: "";
670
+ min-width: var(--outer-margin);
671
+ }
672
+
673
+ .tab-list::after {
674
+ border-bottom: var(--hairline) solid var(--gray-40);
675
+ content: "";
676
+ flex-grow: 1;
677
+ margin-right: var(--outer-margin);
678
+ }
679
+
680
+ ::slotted(*) {
681
+ max-width: none !important;
682
+ white-space: nowrap !important;
683
+ }
684
+ `])();constructor(){super()}firstUpdated(){this.addEventListener("click",this._onTabClick),this.setAttribute("role","tablist"),this._setInitialAriaAttributes()}_setInitialAriaAttributes(){this.querySelectorAll("cfa-tab").forEach((t,e)=>{t.setAttribute("role","tab"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),0===e&&(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"))})}_onTabClick(t){const e=t.target.closest("cfa-tab");e&&this._setActiveTab(e)}_setActiveTab(t){this.querySelectorAll("cfa-tab").forEach(t=>{t.removeAttribute("active"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")}),t.setAttribute("active",""),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0");let e=t.id;e&&e.startsWith("tab-")&&(e=e.substring(4)),console.log("Tab changed event dispatched with ID:",e),this.dispatchEvent(new CustomEvent("tab-changed",{detail:{id:e},bubbles:!0,composed:!0}))}render(){return n.qy`
685
+ <div class="tab-list" role="tablist">
686
+ <slot></slot>
687
+ </div>
688
+ `}}customElements.get("cfa-tab-list")||customElements.define("cfa-tab-list",s)})();