@codeforamerica/marcomms-design-system 1.18.2 → 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 (156) 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/package.json +9 -3
  68. package/src/components/accordion.js +0 -141
  69. package/src/components/accordion.stories.js +0 -56
  70. package/src/components/avatar.js +0 -62
  71. package/src/components/avatar.stories.js +0 -27
  72. package/src/components/bar.js +0 -102
  73. package/src/components/bar.stories.js +0 -22
  74. package/src/components/blob.js +0 -128
  75. package/src/components/blob.stories.js +0 -73
  76. package/src/components/box.js +0 -55
  77. package/src/components/box.stories.js +0 -24
  78. package/src/components/breadcrumbs.js +0 -80
  79. package/src/components/breadcrumbs.stories.js +0 -27
  80. package/src/components/button.js +0 -163
  81. package/src/components/button.scss +0 -157
  82. package/src/components/button.stories.js +0 -49
  83. package/src/components/callout.js +0 -62
  84. package/src/components/callout.stories.js +0 -20
  85. package/src/components/card.js +0 -456
  86. package/src/components/card.stories.js +0 -227
  87. package/src/components/carousel.js +0 -662
  88. package/src/components/carousel.stories.js +0 -165
  89. package/src/components/details.scss +0 -71
  90. package/src/components/details.stories.js +0 -27
  91. package/src/components/form-elements.scss +0 -304
  92. package/src/components/form-elements.stories.js +0 -134
  93. package/src/components/icon.js +0 -44
  94. package/src/components/icon.scss +0 -32
  95. package/src/components/icon.stories.js +0 -38
  96. package/src/components/label.js +0 -63
  97. package/src/components/label.stories.js +0 -29
  98. package/src/components/link-list.scss +0 -80
  99. package/src/components/link-list.stories.js +0 -52
  100. package/src/components/loader.scss +0 -24
  101. package/src/components/loader.stories.js +0 -12
  102. package/src/components/logo-card.js +0 -93
  103. package/src/components/logo-card.stories.js +0 -48
  104. package/src/components/nav.js +0 -98
  105. package/src/components/nav.stories.js +0 -40
  106. package/src/components/page-nav.js +0 -171
  107. package/src/components/page-nav.stories.js +0 -112
  108. package/src/components/pager.js +0 -98
  109. package/src/components/pager.stories.js +0 -30
  110. package/src/components/pagination.js +0 -116
  111. package/src/components/pagination.stories.js +0 -30
  112. package/src/components/person-card.js +0 -240
  113. package/src/components/person-card.stories.js +0 -58
  114. package/src/components/pill.js +0 -33
  115. package/src/components/pill.stories.js +0 -25
  116. package/src/components/placeholder.js +0 -25
  117. package/src/components/placeholder.stories.js +0 -10
  118. package/src/components/promo.js +0 -82
  119. package/src/components/promo.stories.js +0 -37
  120. package/src/components/pullquote.js +0 -42
  121. package/src/components/pullquote.stories.js +0 -16
  122. package/src/components/quote.js +0 -111
  123. package/src/components/quote.stories.js +0 -23
  124. package/src/components/reveal.js +0 -83
  125. package/src/components/reveal.stories.js +0 -40
  126. package/src/components/slide.js +0 -122
  127. package/src/components/slide.stories.js +0 -49
  128. package/src/components/social-icon.js +0 -236
  129. package/src/components/social-icon.stories.js +0 -36
  130. package/src/components/stat.js +0 -92
  131. package/src/components/stat.stories.js +0 -28
  132. package/src/components/tab-list.js +0 -114
  133. package/src/components/tab-list.stories.js +0 -18
  134. package/src/components/tab.js +0 -95
  135. package/src/components/tab.stories.js +0 -29
  136. package/src/components/tile.js +0 -149
  137. package/src/components/tile.stories.js +0 -41
  138. package/src/components/transcript.js +0 -44
  139. package/src/components/transcript.stories.js +0 -103
  140. package/src/core/base.scss +0 -86
  141. package/src/core/colors.mdx +0 -100
  142. package/src/core/grid.mdx +0 -244
  143. package/src/core/grid.scss +0 -394
  144. package/src/core/helpers.scss +0 -111
  145. package/src/core/layout.scss +0 -103
  146. package/src/core/layout.stories.js +0 -145
  147. package/src/core/reset.scss +0 -53
  148. package/src/core/shadows.mdx +0 -108
  149. package/src/core/tokens.scss +0 -261
  150. package/src/core/typography.mdx +0 -79
  151. package/src/core/typography.scss +0 -411
  152. package/src/index.js +0 -43
  153. package/src/shared/common.js +0 -65
  154. package/src/shared/layout.js +0 -14
  155. package/src/shared/typography.js +0 -397
  156. package/src/styles.scss +0 -15
@@ -0,0 +1,873 @@
1
+ /*! For license information please see card.js.LICENSE.txt */
2
+ (()=>{"use strict";var t={953(t,e,i){var r=i(161),s=i(601),a=i(205);class n extends r.WF{static properties={color:""};static styles=(()=>[s.s,a.g,r.AH`
3
+ .label {
4
+ --background-color: var(--gray-20);
5
+ --text-color: var(--black, #000);
6
+
7
+ background-color: var(--background-color);
8
+ color: var(--text-color);
9
+ display: inline-block;
10
+ line-height: 1em;
11
+ padding: var(--spacing-component-2) var(--spacing-component-3);
12
+ }
13
+
14
+ .label[color="white"] {
15
+ --background-color: var(--white, #fff);
16
+ box-shadow: var(--shadow-small);
17
+ }
18
+
19
+ .label[color="purple"] {
20
+ --background-color: var(--purple-20);
21
+ }
22
+
23
+ .label[color="red"] {
24
+ --background-color: var(--red-20);
25
+ }
26
+
27
+ .label[color="blue"] {
28
+ --background-color: var(--blue-20);
29
+ }
30
+
31
+ .label[color="green"] {
32
+ --background-color: var(--green-20);
33
+ }
34
+
35
+ .label[color="yellow"] {
36
+ --background-color: var(--yellow-20);
37
+ }
38
+ `])();render(){return r.qy`
39
+ <div class="label small strong" color="${this.color}">
40
+ <slot />
41
+ </div>
42
+ `}}customElements.get("cfa-label")||customElements.define("cfa-label",n)},601(t,e,i){i.d(e,{s:()=>r});const r=i(161).AH`
43
+ *:focus-visible,
44
+ *:target {
45
+ outline: var(--focus-outline);
46
+ position: relative;
47
+ }
48
+
49
+ // RESET
50
+
51
+ // Use a more-intuitive box-sizing model.
52
+ *, *::before, *::after {
53
+ box-sizing: border-box;
54
+ }
55
+
56
+ // Remove default margin
57
+ * {
58
+ margin: 0;
59
+ }
60
+
61
+ // Set default text-wrap of 'pretty'
62
+ * {
63
+ text-wrap: pretty;
64
+ }
65
+
66
+ // Wrap overly long words
67
+ * {
68
+ overflow-wrap: break-word;
69
+ text-overflow: ellipsis;
70
+ word-break: break-word;
71
+ }
72
+
73
+ // Fix Safari antialiasing for variable fonts
74
+ * {
75
+ font-synthesis: none !important;
76
+ }
77
+
78
+ // Improve text rendering
79
+ body {
80
+ -webkit-font-smoothing: antialiased;
81
+ }
82
+
83
+ // Reasonable media defaults
84
+ img, picture, video, canvas, svg {
85
+ display: block;
86
+ height: auto;
87
+ max-width: 100%;
88
+ }
89
+
90
+ // Remove built-in form typography styles
91
+ input, button, textarea, select {
92
+ font: inherit;
93
+ }
94
+
95
+ // Avoid text overflows
96
+ p, h1, h2, h3, h4, h5, h6 {
97
+ overflow-wrap: break-word;
98
+ }
99
+
100
+ // Create a root stacking context
101
+ #root, #__next {
102
+ isolation: isolate;
103
+ }
104
+ `},205(t,e,i){i.d(e,{g:()=>r});const r=i(161).AH`
105
+ // =====
106
+
107
+ // Typography spacing
108
+
109
+ // Add a single space around paragraphs, blockquotes, and lists
110
+ p, ul, ol, blockquote {
111
+ & + * {
112
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
113
+ }
114
+ * + & {
115
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
116
+ }
117
+ }
118
+
119
+ h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-1, .display-2 {
120
+ // Add a single line space after headings
121
+ & + * {
122
+ margin-block-start: var(--spacing, var(--spacing-layout-1, 1.5rem));
123
+ }
124
+
125
+ // Add two line spaces before headings
126
+ * + & {
127
+ --spacing: var(--spacing-layout-2);
128
+
129
+ margin-block-start: --spacing;
130
+ }
131
+
132
+ // Only add a single space between headings and other headings
133
+ & + & {
134
+ --spacing: var(--spacing-layout-1);
135
+ }
136
+
137
+ // Reduce space after breadcrumbs and eyebrows
138
+ cfa-breadcrumbs + & {
139
+ margin-block-start: var(--spacing-layout-half) !important;
140
+ }
141
+
142
+ .eyebrow + & {
143
+ margin-block-start: 0 !important;
144
+ }
145
+ }
146
+
147
+ h1, .h1, .display-1, .display-2 {
148
+ text-wrap: balance;
149
+ }
150
+
151
+ // =====
152
+
153
+ // Font styles
154
+
155
+ .regular {
156
+ font-family: var(--font-family-base);
157
+ font-size: var(--font-size-base);
158
+ line-height: var(--line-height-base);
159
+ }
160
+
161
+ .display-1 {
162
+ font-family: var(--font-family-heading);
163
+ font-size: var(--font-size-display-1);
164
+ font-weight: bold;
165
+ line-height: var(--line-height-display-1);
166
+ letter-spacing: var(--letter-spacing-display-1);
167
+ }
168
+
169
+ .display-2 {
170
+ font-family: var(--font-family-heading);
171
+ font-size: var(--font-size-display-2);
172
+ font-weight: bold;
173
+ line-height: var(--line-height-display-2);
174
+ letter-spacing: var(--letter-spacing-display-2);
175
+ }
176
+
177
+ h1,
178
+ .h1 {
179
+ font-family: var(--font-family-heading);
180
+ font-size: var(--font-size-h1);
181
+ font-weight: bold;
182
+ line-height: var(--line-height-h1);
183
+ letter-spacing: var(--letter-spacing-h1);
184
+ }
185
+
186
+ h2,
187
+ .h2 {
188
+ font-family: var(--font-family-heading);
189
+ font-size: var(--font-size-h2);
190
+ font-weight: bold;
191
+ line-height: var(--line-height-h2);
192
+ letter-spacing: var(--letter-spacing-h2);
193
+ }
194
+
195
+ h3,
196
+ .h3 {
197
+ font-family: var(--font-family-heading);
198
+ font-size: var(--font-size-h3);
199
+ font-weight: bold;
200
+ line-height: var(--line-height-h3);
201
+ letter-spacing: var(--letter-spacing-h3);
202
+ }
203
+
204
+ h4,
205
+ .h4 {
206
+ font-family: var(--font-family-heading);
207
+ font-size: var(--font-size-h4);
208
+ font-weight: bold;
209
+ line-height: var(--line-height-h4);
210
+ letter-spacing: var(--letter-spacing-h4);
211
+ }
212
+
213
+ .extra-large {
214
+ font-size: var(--font-size-extra-large);
215
+ line-height: var(--line-height-extra-large);
216
+ letter-spacing: var(--letter-spacing-extra-large);
217
+ }
218
+
219
+ .large {
220
+ font-size: var(--font-size-large);
221
+ line-height: var(--line-height-large);
222
+ letter-spacing: var(--letter-spacing-large);
223
+ }
224
+
225
+ .small {
226
+ font-size: var(--font-size-small);
227
+ line-height: var(--line-height-small);
228
+ letter-spacing: var(--letter-spacing-small);
229
+ }
230
+
231
+ .eyebrow {
232
+ font-family: var(--font-family-sans-serif);
233
+ font-size: var(--font-size-eyebrow);
234
+ font-weight: var(--font-weight-eyebrow);
235
+ letter-spacing: var(--letter-spacing-eyebrow);
236
+ line-height: var(--line-height-eyebrow);
237
+ text-transform: uppercase;
238
+ }
239
+
240
+ .eyebrow-with-line {
241
+ align-items: center;
242
+ color: var(--text-color);
243
+ display: flex;
244
+ font-family: var(--font-family-eyebrow);
245
+ font-size: var(--font-size-eyebrow);
246
+ font-weight: var(--font-weight-eyebrow);
247
+ letter-spacing: var(--letter-spacing-eyebrow);
248
+ line-height: var(--line-height-eyebrow);
249
+ margin-block-end: var(--spacing-layout-half);
250
+ position: relative;
251
+ text-transform: uppercase;
252
+
253
+ &::after {
254
+ border-block-end: var(--hairline) solid currentColor;
255
+ content: "";
256
+ flex-grow: 1;
257
+ margin-left: var(--spacing-component-3);
258
+ }
259
+ }
260
+
261
+ .subtle {
262
+ opacity: 0.6;
263
+ }
264
+
265
+ .serif {
266
+ font-family: var(--font-family-serif);
267
+ }
268
+
269
+ .sans-serif {
270
+ font-family: var(--font-family-sans-serif);
271
+ }
272
+
273
+ i,
274
+ em,
275
+ .italic {
276
+ font-style: italic;
277
+ }
278
+
279
+ b,
280
+ strong,
281
+ .strong {
282
+ font-weight: bold;
283
+ }
284
+
285
+ .normal {
286
+ font-weight: normal;
287
+ }
288
+
289
+ .prominent-link,
290
+ a.prominent-link {
291
+ --accent-color: var(--purple-60);
292
+
293
+ font-weight: bold;
294
+ text-decoration: underline;
295
+ text-decoration-color: var(--accent-color);
296
+ text-decoration-thickness: var(--medium);
297
+ text-underline-offset: 0.4em;
298
+ transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
299
+
300
+ &:hover {
301
+ --accent-color: var(--red-60);
302
+ }
303
+
304
+ &:not(:has(cfa-icon))::after {
305
+ @include icon.icon;
306
+
307
+ content: "arrow_right_alt";
308
+ display: inline-block;
309
+ padding-inline-start: 0.1em;
310
+ text-decoration: none;
311
+ transition: padding 0.2s ease-in-out;
312
+ width: 1em;
313
+ }
314
+
315
+ &:not(:has(cfa-icon)):hover::after {
316
+ padding-inline-start: 0.3em;
317
+ }
318
+
319
+ cfa-icon {
320
+ text-decoration: none;
321
+ }
322
+ }
323
+
324
+ .white-text,
325
+ .text-light /* fallback */ {
326
+ -moz-osx-font-smoothing: grayscale; // Sharper antialising for white text on a dark background
327
+ -webkit-font-smoothing: antialiased; // Sharper antialising for white text on a dark background
328
+ color: var(--white);
329
+ --link-color: var(--white);
330
+ --link-hover-color: var(--white);
331
+ }
332
+
333
+ // =====
334
+
335
+ // Highlights
336
+
337
+ .highlight {
338
+ --highlight-offset: 0.2em;
339
+
340
+ box-decoration-break: clone;
341
+ display: inline;
342
+ 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%);
343
+ padding-inline: 0.1em;
344
+ -webkit-box-decoration-break: clone;
345
+ margin-inline-start: -0.1em;
346
+ margin-inline-end: -0.1em;
347
+ word-wrap: break-word;
348
+ }
349
+
350
+ // ======
351
+
352
+ // Lists
353
+
354
+ .ul {
355
+ list-style-type: disc;
356
+ padding-left: var(--spacing-layout-1);
357
+ }
358
+
359
+ .ul > li {
360
+ margin-inline-start: 0;
361
+ padding-left: var(--spacing-component-2);
362
+ }
363
+
364
+ .ul > li + li {
365
+ margin-block-start: var(--spacing-layout-half);
366
+ }
367
+
368
+ .ul > li > ul {
369
+ margin-block-start: var(--spacing-layout-half);
370
+ }
371
+
372
+ .ol {
373
+ list-style-type: decimal;
374
+ padding-left: var(--spacing-layout-1);
375
+ }
376
+
377
+ .ol > li {
378
+ margin-inline-start: 0;
379
+ padding-inline-start: var(--spacing-component-2);
380
+ }
381
+
382
+ .ol > li + li {
383
+ margin-block-start: var(--spacing-layout-half);
384
+ }
385
+
386
+ .ol > li > ul {
387
+ margin-block-start: var(--spacing-layout-half);
388
+ }
389
+
390
+ .ul--unstyled {
391
+ list-style: none;
392
+ padding: 0;
393
+ }
394
+
395
+ .ul--unstyled > li {
396
+ margin-inline: 0;
397
+ padding: 0;
398
+ }
399
+
400
+ .ul--line-separators > li + li::before {
401
+ border-block-start: 1px solid var(--gray-20);
402
+ content: "";
403
+ display: block;
404
+ margin-block: var(--spacing-layout-half);
405
+ width: 100%;
406
+ }
407
+
408
+ .ul--inline,
409
+ .ul--inline-with-separators,
410
+ .ul--inline-with-line-separators {
411
+ display: inline;
412
+ list-style: none;
413
+ padding-inline: 0 !important;
414
+ padding-left: 0 !important;
415
+ }
416
+
417
+ .ul--inline > li,
418
+ .ul--inline-with-separators > li,
419
+ .ul--inline-with-line-separators > li {
420
+ display: inline-block;
421
+ margin-inline-end: var(--spacing-component-3);
422
+ padding: 0 !important;
423
+ }
424
+
425
+ .ul--inline li:last-child,
426
+ .ul--inline-with-separators li:last-child,
427
+ .ul--inline-with-line-separators li:last-child {
428
+ margin-inline-end: 0;
429
+ }
430
+
431
+ .ul--inline > li + li,
432
+ .ul--inline-with-separators > li + li,
433
+ .ul--inline-with-line-separators > li + li {
434
+ margin-block-start: 0;
435
+ }
436
+
437
+ .ul--inline-with-separators li,
438
+ .ul--inline-with-line-separators li {
439
+ margin-inline-end: 0;
440
+ }
441
+
442
+ .ul--inline-with-separators > li::after {
443
+ content: "•";
444
+ margin-inline: var(--spacing-component-2);
445
+ opacity: 0.5;
446
+ }
447
+
448
+ .ul--inline-with-separators > li:last-child::after {
449
+ content: "";
450
+ }
451
+
452
+ .ul--inline-with-line-separators > li::after {
453
+ content: "|";
454
+ margin-inline: var(--spacing-component-2);
455
+ opacity: 0.5;
456
+ }
457
+
458
+ .ul--inline-with-line-separators > li:last-child::after {
459
+ content: "";
460
+ }
461
+
462
+ // ===
463
+
464
+ // Horizontal rule
465
+
466
+ hr {
467
+ --color: currentColor;
468
+
469
+ background-color: var(--color);
470
+ border: 0;
471
+ color: var(--color);
472
+ display: block;
473
+ font-size: 0;
474
+ height: var(--hairline);
475
+ margin-block: var(--spacing-layout-1);
476
+ opacity: 0.4;
477
+ }
478
+
479
+ // ===
480
+
481
+ // Icons
482
+
483
+ .icon {
484
+ -webkit-font-feature-settings: 'liga';
485
+ direction: ltr;
486
+ display: inline-block;
487
+ font-family: 'Material Symbols Rounded';
488
+ font-feature-settings: 'liga';
489
+ font-size: 1.4em;
490
+ font-style: normal;
491
+ font-weight: normal;
492
+ letter-spacing: normal;
493
+ text-transform: none;
494
+ vertical-align: middle;
495
+ white-space: nowrap;
496
+ word-wrap: normal;
497
+ }
498
+ `},826(t,e,i){i.d(e,{AH:()=>l,Rf:()=>h,sk:()=>c});const r=globalThis,s=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),n=new WeakMap;class o{constructor(t,e,i){if(this._$cssResult$=!0,i!==a)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(s&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&n.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const i=1===t.length?t[0]:e.reduce((e,i,r)=>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[r+1],t[0]);return new o(i,t,a)},h=(t,e)=>{if(s)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const i of e){const e=document.createElement("style"),s=r.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=i.cssText,t.appendChild(e)}},c=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,a))(e)})(t):t},760(t,e,i){i.d(e,{AH:()=>r.AH,mN:()=>y});var r=i(826);const{is:s,defineProperty:a,getOwnPropertyDescriptor:n,getOwnPropertyNames:o,getOwnPropertySymbols:l,getPrototypeOf:h}=Object,c=globalThis,d=c.trustedTypes,p=d?d.emptyScript:"",g=c.reactiveElementPolyfillSupport,u=(t,e)=>t,f={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}},v=(t,e)=>!s(t,e),m={attribute:!0,type:String,converter:f,reflect:!1,useDefault:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),c.litPropertyMetadata??=new WeakMap;class y 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=m){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(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&a(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:s}=n(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:r,set(e){const a=r?.call(this);s?.call(this,e),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??m}static _$Ei(){if(this.hasOwnProperty(u("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(u("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(u("properties"))){const t=this.properties,e=[...o(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,r.sk)(t))}else void 0!==t&&e.push((0,r.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,r.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),r=this.constructor._$Eu(t,i);if(void 0!==r&&!0===i.reflect){const s=(void 0!==i.converter?.toAttribute?i.converter:f).toAttribute(e,i.type);this._$Em=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Em=null}}_$AK(t,e){const i=this.constructor,r=i._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=i.getPropertyOptions(r),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:f;this._$Em=r;const a=s.fromAttribute(e,t.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,i,r=!1,s){if(void 0!==t){const a=this.constructor;if(!1===r&&(s=this[t]),i??=a.getPropertyOptions(t),!((i.hasChanged??v)(s,e)||i.useDefault&&i.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:s},a){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==s||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===r&&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,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,i,r)}}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){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[u("elementProperties")]=new Map,y[u("finalized")]=new Map,g?.({ReactiveElement:y}),(c.reactiveElementVersions??=[]).push("2.1.2")},228(t,e,i){i.d(e,{AH:()=>r.AH,JW:()=>s.JW,WF:()=>n,qy:()=>s.qy,s6:()=>s.s6});var r=i(760),s=i(752);const a=globalThis;class n extends r.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,s.XX)(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return s.c0}}n._$litElement$=!0,n.finalized=!0,a.litElementHydrateSupport?.({LitElement:n});const o=a.litElementPolyfillSupport;o?.({LitElement:n}),(a.litElementVersions??=[]).push("4.2.2")},752(t,e,i){i.d(e,{JW:()=>k,XX:()=>B,c0:()=>E,qy:()=>A,s6:()=>S});const r=globalThis,s=t=>t,a=r.trustedTypes,n=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,o="$lit$",l=`lit$${Math.random().toFixed(9).slice(2)}$`,h="?"+l,c=`<${h}>`,d=document,p=()=>d.createComment(""),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,u=Array.isArray,f="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,y=/>/g,b=RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$=/'/g,w=/"/g,_=/^(?:script|style|textarea|title)$/i,x=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),A=x(1),k=x(2),E=(x(3),Symbol.for("lit-noChange")),S=Symbol.for("lit-nothing"),C=new WeakMap,T=d.createTreeWalker(d,129);function z(t,e){if(!u(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==n?n.createHTML(e):e}const P=(t,e)=>{const i=t.length-1,r=[];let s,a=2===e?"<svg>":3===e?"<math>":"",n=v;for(let e=0;e<i;e++){const i=t[e];let h,d,p=-1,g=0;for(;g<i.length&&(n.lastIndex=g,d=n.exec(i),null!==d);)g=n.lastIndex,n===v?"!--"===d[1]?n=m:void 0!==d[1]?n=y:void 0!==d[2]?(_.test(d[2])&&(s=RegExp("</"+d[2],"g")),n=b):void 0!==d[3]&&(n=b):n===b?">"===d[0]?(n=s??v,p=-1):void 0===d[1]?p=-2:(p=n.lastIndex-d[2].length,h=d[1],n=void 0===d[3]?b:'"'===d[3]?w:$):n===w||n===$?n=b:n===m||n===y?n=v:(n=b,s=void 0);const u=n===b&&t[e+1].startsWith("/>")?" ":"";a+=n===v?i+c:p>=0?(r.push(h),i.slice(0,p)+o+i.slice(p)+l+u):i+l+(-2===p?e:u)}return[z(t,a+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class U{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let s=0,n=0;const c=t.length-1,d=this.parts,[g,u]=P(t,e);if(this.el=U.createElement(g,i),T.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=T.nextNode())&&d.length<c;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(o)){const e=u[n++],i=r.getAttribute(t).split(l),a=/([.?@])?(.*)/.exec(e);d.push({type:1,index:s,name:a[2],strings:i,ctor:"."===a[1]?N:"?"===a[1]?q:"@"===a[1]?L:R}),r.removeAttribute(t)}else t.startsWith(l)&&(d.push({type:6,index:s}),r.removeAttribute(t));if(_.test(r.tagName)){const t=r.textContent.split(l),e=t.length-1;if(e>0){r.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],p()),T.nextNode(),d.push({type:2,index:++s});r.append(t[e],p())}}}else if(8===r.nodeType)if(r.data===h)d.push({type:2,index:s});else{let t=-1;for(;-1!==(t=r.data.indexOf(l,t+1));)d.push({type:7,index:s}),t+=l.length-1}s++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function H(t,e,i=t,r){if(e===E)return e;let s=void 0!==r?i._$Co?.[r]:i._$Cl;const a=g(e)?void 0:e._$litDirective$;return s?.constructor!==a&&(s?._$AO?.(!1),void 0===a?s=void 0:(s=new a(t),s._$AT(t,i,r)),void 0!==r?(i._$Co??=[])[r]=s:i._$Cl=s),void 0!==s&&(e=H(t,s._$AS(t,e.values),s,r)),e}class O{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,r=(t?.creationScope??d).importNode(e,!0);T.currentNode=r;let s=T.nextNode(),a=0,n=0,o=i[0];for(;void 0!==o;){if(a===o.index){let e;2===o.type?e=new M(s,s.nextSibling,this,t):1===o.type?e=new o.ctor(s,o.name,o.strings,this,t):6===o.type&&(e=new W(s,this,t)),this._$AV.push(e),o=i[++n]}a!==o?.index&&(s=T.nextNode(),a++)}return T.currentNode=d,r}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 M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.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=H(this,t,e),g(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>u(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!==S&&g(this._$AH)?this._$AA.nextSibling.data=t:this.T(d.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=U.createElement(z(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new O(r,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new U(t)),e}k(t){u(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const s of t)r===e.length?e.push(i=new M(this.O(p()),this.O(p()),this,this.options)):i=e[r],i._$AI(s),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=s(t).nextSibling;s(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,s){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=S}_$AI(t,e=this,i,r){const s=this.strings;let a=!1;if(void 0===s)t=H(this,t,e,0),a=!g(t)||t!==this._$AH&&t!==E,a&&(this._$AH=t);else{const r=t;let n,o;for(t=s[0],n=0;n<s.length-1;n++)o=H(this,r[i+n],e,n),o===E&&(o=this._$AH[n]),a||=!g(o)||o!==this._$AH[n],o===S?t=S:t!==S&&(t+=(o??"")+s[n+1]),this._$AH[n]=o}a&&!r&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class N extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}class q extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}}class L extends R{constructor(t,e,i,r,s){super(t,e,i,r,s),this.type=5}_$AI(t,e=this){if((t=H(this,t,e,0)??S)===E)return;const i=this._$AH,r=t===S&&i!==S||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==S&&(i===S||r);r&&this.element.removeEventListener(this.name,this,i),s&&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 W{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){H(this,t)}}const j=r.litHtmlPolyfillSupport;j?.(U,M),(r.litHtmlVersions??=[]).push("3.3.2");const B=(t,e,i)=>{const r=i?.renderBefore??e;let s=r._$litPart$;if(void 0===s){const t=i?.renderBefore??null;r._$litPart$=s=new M(e.insertBefore(p(),t),t,void 0,i??{})}return s._$AI(t),s}},161(t,e,i){i.d(e,{AH:()=>r.AH,JW:()=>r.JW,WF:()=>r.WF,qy:()=>r.qy,s6:()=>r.s6}),i(760),i(752);var r=i(228)}},e={};function i(r){var s=e[r];if(void 0!==s)return s.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,i),a.exports}i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=i(161),s=i(601),a=i(205);i(953);class n extends r.WF{static properties={theme:{},linkUrl:{},linkTarget:{},visualType:{},visualUrl:{},visualThumbnailUrl:{},visualAltText:{},eyebrow:{},label:{},title:{},text:{},metaText:{},actionLabel:{}};static styles=(()=>[s.s,a.g,r.AH`
499
+ :host {
500
+ --action-border-color: var(--purple-20);
501
+ --action-border-hover-color: var(--red-60);
502
+ --action-text-color: var(--purple-60);
503
+ --action-text-hover-color: var(--red-60);
504
+ --bg-color: var(--white);
505
+ --padding: var(--spacing-component-4);
506
+ --text-color: var(--black);
507
+
508
+ display: flex;
509
+ flex-direction: column;
510
+ margin-inline: auto;
511
+ max-width: 100%;
512
+ width: 100%;
513
+ }
514
+
515
+ .card,
516
+ a.card {
517
+ box-shadow: var(--shadow-small);
518
+ border: var(--hairline) solid var(--gray-20);
519
+ color: var(--text-color);
520
+ display: flex;
521
+ flex-direction: column;
522
+ flex: 1;
523
+ height: 100%;
524
+ text-decoration: none;
525
+ transition: 500ms;
526
+ }
527
+
528
+ a.card:hover {
529
+ --action-color: var(--action-hover-color);
530
+
531
+ box-shadow: var(--shadow-medium);
532
+ }
533
+
534
+ .content {
535
+ background-color: var(--bg-color);
536
+ display: flex;
537
+ flex-direction: column;
538
+ flex-grow: 1;
539
+ gap: var(--spacing-layout-half);
540
+ padding: var(--padding);
541
+ }
542
+
543
+ .header {
544
+ align-items: start;
545
+ display: flex;
546
+ flex-direction: column;
547
+ gap: var(--spacing-layout-half);
548
+ }
549
+
550
+ .body {
551
+ display: flex;
552
+ flex-flow: column nowrap;
553
+ flex-grow: 1;
554
+ gap: var(--spacing-layout-half);
555
+ height: 100%;
556
+ text-align: var(--text-alignment, start);
557
+ }
558
+
559
+ .footer {
560
+ display: flex;
561
+ flex-direction: column;
562
+ gap: var(--spacing-layout-half);
563
+ }
564
+
565
+ .eyebrow {
566
+ color: var(--purple-60);
567
+ }
568
+
569
+ .eyebrow + * {
570
+ margin-block-start: var(--spacing-component-2);
571
+ }
572
+
573
+ .meta-text {
574
+ color: var(--gray-60);
575
+ border-block-start: var(--hairline) solid var(--gray-40);
576
+ padding-block-start: var(--spacing-component-2);
577
+ }
578
+
579
+ .card:has(.action-label) .meta-text {
580
+ border-block-end: var(--hairline) solid var(--gray-40);
581
+ padding-block-end: var(--spacing-component-2);
582
+ }
583
+
584
+ .action-label {
585
+ align-self: flex-start;
586
+ color: var(--action-text-color);
587
+ display: inline-block;
588
+ font-size: var(--font-size-small);
589
+ font-weight: bold;
590
+ }
591
+
592
+ a:hover .action-label {
593
+ color: var(--action-text-hover-color);
594
+ }
595
+
596
+ .action-label::after {
597
+ background: linear-gradient(
598
+ to top,
599
+ var(--action-border-hover-color) 0% 50%,
600
+ var(--action-border-color) 50% 100%
601
+ );
602
+ background-position: 0% 0%;
603
+ background-size: 100% 200%;
604
+ content: "";
605
+ display: block;
606
+ height: var(--spacing-component-2);
607
+ transition: background-position 0.3s;
608
+ }
609
+
610
+ a:hover .action-label::after {
611
+ background-position: 0% 100%;
612
+ }
613
+
614
+ .visual {
615
+ box-sizing: border-box;
616
+ display: flex;
617
+ height: auto;
618
+ height: var(--spacing-layout-7);
619
+ position: relative;
620
+ width: 100%;
621
+ }
622
+
623
+ img {
624
+ height: 100%;
625
+ object-fit: cover;
626
+ width: 100%;
627
+ }
628
+
629
+ .fallback-image {
630
+ background-color: var(--purple-80);
631
+ position: absolute;
632
+ inline-start: 0;
633
+ block-start: 0;
634
+ width: 100%;
635
+ height: 100%;
636
+ z-index: 0;
637
+ }
638
+
639
+ .fallback-image svg {
640
+ height: 100%;
641
+ width: 100%;
642
+ }
643
+
644
+ .visual picture {
645
+ position: relative;
646
+ z-index: 1;
647
+ width: 100%;
648
+ }
649
+
650
+ .image::after {
651
+ block-end: 0;
652
+ block-start: 0;
653
+ bottom: 0;
654
+ box-shadow: inset 0 -50px 50px -50px var(--black-60);
655
+ content: "";
656
+ inline-end: 0;
657
+ inline-start: 0;
658
+ position: absolute;
659
+ z-index: 2;
660
+ }
661
+
662
+ .logo {
663
+ background-color: var(--white, #fff);
664
+ box-sizing: border-box;
665
+ border-block-end: 1px solid var(--gray-20);
666
+ padding: var(--spacing-component-5);
667
+ }
668
+
669
+ .logo img {
670
+ object-fit: contain;
671
+ }
672
+ `])();visualTemplate(){let t;return"image"===this.visualType?t=r.qy`
673
+ <div class="visual image">
674
+ <div class="fallback-image">
675
+ ${r.JW`
676
+ <svg
677
+ width="1600"
678
+ height="900"
679
+ viewBox="0 0 1600 900"
680
+ fill="none"
681
+ preserveAspectRatio="xMinYMin slice"
682
+ xmlns="http://www.w3.org/2000/svg"
683
+ >
684
+ <g clip-path="url(#clip0)">
685
+ <rect width="1600" height="900" fill="#2B1A78"/>
686
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1218.12 -444.87C1375.54 -448.403 1528.96 -379.695 1624.93 -254.874C1718.97 -132.569 1729.75 28.0324 1697.74 178.942C1664.98 333.396 1596.67 491.622 1452.8 556.721C1311.8 620.52 1155.18 556.724 1017.04 486.944C883.26 419.362 752.204 329.485 715.393 184.213C677.697 35.4535 737.759 -117.225 833.568 -237.116C929.253 -356.852 1064.86 -441.431 1218.12 -444.87Z" fill="#5650BE"/>
687
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M372.893 247.378C457.708 243.989 548.299 262.758 600.503 329.652C652.21 395.908 640.741 485.984 623.238 568.169C605.287 652.459 579.269 741.096 503.945 783.041C424.143 827.479 324.366 822.072 243.48 779.638C165.755 738.862 118.175 659.045 102.906 572.65C88.5877 491.632 114.457 410.294 167.015 346.974C218.23 285.272 292.743 250.581 372.893 247.378Z" fill="#5650BE"/>
688
+ </g>
689
+ <defs>
690
+ <clipPath id="clip0">
691
+ <rect width="1600" height="900" fill="white"/>
692
+ </clipPath>
693
+ </defs>
694
+ </svg>
695
+ `}
696
+ </div>
697
+ ${this.visualUrl?r.qy`
698
+ <picture>
699
+ <source srcset="${this.visualUrl}" />
700
+ <img
701
+ src="${this.visualThumbnailUrl}"
702
+ alt="${this.visualAltText}"
703
+ loading="lazy"
704
+ onerror="this.style.display='none'"
705
+ />
706
+ </picture>
707
+ `:r.s6}
708
+ </div>
709
+ `:"logo"===this.visualType&&(t=r.qy`
710
+ <div class="visual logo">
711
+ <picture>
712
+ <source srcset="${this.visualUrl}" />
713
+ <img
714
+ src="${this.visualThumbnailUrl}"
715
+ alt="${this.visualAltText}"
716
+ loading="lazy"
717
+ />
718
+ </picture>
719
+ </div>
720
+ `),t}cardContentTemplate(){return r.qy`
721
+ ${this.visualTemplate()}
722
+ <div class="content">
723
+ <div class="header">
724
+ <div>
725
+ ${this.eyebrow?r.qy` <div class="eyebrow">${this.eyebrow}</div> `:r.s6}
726
+ ${this.title?r.qy` <div class="h3 title">${this.title}</div> `:r.s6}
727
+ </div>
728
+ ${this.label?r.qy`
729
+ <div>
730
+ <cfa-label color="green">${this.label}</cfa-label>
731
+ </div>
732
+ `:r.s6}
733
+ </div>
734
+ <div class="body">
735
+ ${this.text?r.qy` <div class="small" .innerHTML=${this.text}></div> `:r.s6}
736
+ </div>
737
+ ${this.metaText||this.actionLabel?r.qy`
738
+ <div class="footer">
739
+ ${this.metaText?r.qy`
740
+ <div
741
+ class="meta-text small"
742
+ .innerHTML=${this.metaText}
743
+ ></div>
744
+ `:r.s6}
745
+ ${this.actionLabel?r.qy` <div class="action-label">${this.actionLabel}</div> `:r.s6}
746
+ </div>
747
+ `:r.s6}
748
+ </div>
749
+ `}render(){return r.qy`
750
+ ${this.linkUrl?r.qy`
751
+ <a
752
+ href="${this.linkUrl}"
753
+ target="${this.linkTarget}"
754
+ rel="${"_blank"==this.linkTarget?"noopener":r.s6}"
755
+ class="card ${this.theme?"card--"+this.theme:""}"
756
+ >
757
+ ${this.cardContentTemplate()}
758
+ </a>
759
+ `:r.qy`
760
+ <div class="card ${this.theme?"card--"+this.theme:""}">
761
+ ${this.cardContentTemplate()}
762
+ </div>
763
+ `}
764
+ `}}class o extends r.WF{static styles=(()=>[s.s,a.g,r.AH`
765
+ :host {
766
+ display: flex;
767
+ flex-direction: column;
768
+ margin-inline: auto;
769
+ max-width: 100%;
770
+ width: 100%;
771
+ }
772
+
773
+ .card-skeleton {
774
+ background-color: var(--white);
775
+ border: var(--hairline) solid var(--gray-20);
776
+ box-shadow: var(--shadow-small);
777
+ color: var(--black);
778
+ display: flex;
779
+ flex: 1;
780
+ flex-direction: column;
781
+ height: 100%;
782
+ }
783
+
784
+ .visual-skeleton {
785
+ background-color: var(--gray-20);
786
+ height: var(--spacing-layout-7);
787
+ overflow: hidden;
788
+ position: relative;
789
+ width: 100%;
790
+ }
791
+
792
+ .content {
793
+ background-color: var(--white);
794
+ display: flex;
795
+ flex: 1;
796
+ flex-direction: column;
797
+ gap: var(--spacing-layout-half);
798
+ padding: var(--spacing-component-4);
799
+ }
800
+
801
+ .body {
802
+ display: flex;
803
+ flex: 1;
804
+ flex-direction: column;
805
+ gap: var(--spacing-layout-half);
806
+ }
807
+
808
+ .line {
809
+ background-color: var(--gray-20);
810
+ border-radius: var(--spacing-component-1);
811
+ display: block;
812
+ overflow: hidden;
813
+ position: relative;
814
+ width: 100%;
815
+ }
816
+
817
+ .line::after {
818
+ animation: shimmer 1.5s linear infinite;
819
+ background: linear-gradient(
820
+ 90deg,
821
+ transparent 0%,
822
+ var(--white-50, rgba(255, 255, 255, 0.45)) 50%,
823
+ transparent 100%
824
+ );
825
+ content: "";
826
+ inset: 0;
827
+ position: absolute;
828
+ transform: translateX(-100%);
829
+ }
830
+
831
+ .line--eyebrow {
832
+ height: var(--line-height-small);
833
+ max-width: 28%;
834
+ }
835
+
836
+ .line--title {
837
+ height: var(--line-height-h3);
838
+ max-width: 76%;
839
+ }
840
+
841
+ .line--body {
842
+ height: var(--line-height-base);
843
+ }
844
+
845
+ .line--body-short {
846
+ max-width: 86%;
847
+ }
848
+
849
+ .line--action {
850
+ height: var(--line-height-small);
851
+ margin-block-start: auto;
852
+ max-width: 36%;
853
+ }
854
+
855
+ @keyframes shimmer {
856
+ 100% {
857
+ transform: translateX(100%);
858
+ }
859
+ }
860
+ `])();render(){return r.qy`
861
+ <div class="card-skeleton" role="status" aria-busy="true" aria-label="Loading card">
862
+ <div class="visual-skeleton line" aria-hidden="true"></div>
863
+ <div class="content">
864
+ <div class="line line--eyebrow" aria-hidden="true"></div>
865
+ <div class="line line--title" aria-hidden="true"></div>
866
+ <div class="body" aria-hidden="true">
867
+ <div class="line line--body"></div>
868
+ <div class="line line--body line--body-short"></div>
869
+ <div class="line line--action"></div>
870
+ </div>
871
+ </div>
872
+ </div>
873
+ `}}customElements.get("cfa-card")||customElements.define("cfa-card",n),customElements.get("cfa-card-skeleton")||customElements.define("cfa-card-skeleton",o)})();