@brandlab-digital/site-next 3.7.0 → 3.9.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 (118) hide show
  1. package/dist/instrumentation-client.d.ts +23 -4
  2. package/dist/instrumentation-client.d.ts.map +1 -1
  3. package/dist/instrumentation-client.js +65 -3
  4. package/dist/instrumentation-client.js.map +1 -1
  5. package/dist/navigation/constants.d.ts +25 -0
  6. package/dist/navigation/constants.d.ts.map +1 -0
  7. package/dist/navigation/constants.js +30 -0
  8. package/dist/navigation/constants.js.map +1 -0
  9. package/dist/navigation/index.d.ts +11 -0
  10. package/dist/navigation/index.d.ts.map +1 -0
  11. package/dist/navigation/index.js +11 -0
  12. package/dist/navigation/index.js.map +1 -0
  13. package/dist/navigation/use-back-to-top.d.ts +5 -0
  14. package/dist/navigation/use-back-to-top.d.ts.map +1 -0
  15. package/dist/navigation/use-back-to-top.js +32 -0
  16. package/dist/navigation/use-back-to-top.js.map +1 -0
  17. package/dist/navigation/use-header-metrics.d.ts +17 -0
  18. package/dist/navigation/use-header-metrics.d.ts.map +1 -0
  19. package/dist/navigation/use-header-metrics.js +52 -0
  20. package/dist/navigation/use-header-metrics.js.map +1 -0
  21. package/dist/navigation/use-navigation-menu.d.ts +39 -0
  22. package/dist/navigation/use-navigation-menu.d.ts.map +1 -0
  23. package/dist/navigation/use-navigation-menu.js +206 -0
  24. package/dist/navigation/use-navigation-menu.js.map +1 -0
  25. package/dist/navigation/use-sticky-call-bar.d.ts +15 -0
  26. package/dist/navigation/use-sticky-call-bar.d.ts.map +1 -0
  27. package/dist/navigation/use-sticky-call-bar.js +110 -0
  28. package/dist/navigation/use-sticky-call-bar.js.map +1 -0
  29. package/dist/ui-kit/brandlab-skin.d.ts +27 -0
  30. package/dist/ui-kit/brandlab-skin.d.ts.map +1 -0
  31. package/dist/ui-kit/brandlab-skin.js +2 -0
  32. package/dist/ui-kit/brandlab-skin.js.map +1 -0
  33. package/dist/ui-kit/icons.d.ts +15 -0
  34. package/dist/ui-kit/icons.d.ts.map +1 -0
  35. package/dist/ui-kit/icons.js +72 -0
  36. package/dist/ui-kit/icons.js.map +1 -0
  37. package/dist/ui-kit/primitives/index.d.ts +6 -0
  38. package/dist/ui-kit/primitives/index.d.ts.map +1 -0
  39. package/dist/ui-kit/primitives/index.js +6 -0
  40. package/dist/ui-kit/primitives/index.js.map +1 -0
  41. package/dist/ui-kit/primitives/layout.d.ts +73 -0
  42. package/dist/ui-kit/primitives/layout.d.ts.map +1 -0
  43. package/dist/ui-kit/primitives/layout.js +34 -0
  44. package/dist/ui-kit/primitives/layout.js.map +1 -0
  45. package/dist/ui-kit/primitives/links.d.ts +48 -0
  46. package/dist/ui-kit/primitives/links.d.ts.map +1 -0
  47. package/dist/ui-kit/primitives/links.js +36 -0
  48. package/dist/ui-kit/primitives/links.js.map +1 -0
  49. package/dist/ui-kit/primitives/quote-button.d.ts +20 -0
  50. package/dist/ui-kit/primitives/quote-button.d.ts.map +1 -0
  51. package/dist/ui-kit/primitives/quote-button.js +15 -0
  52. package/dist/ui-kit/primitives/quote-button.js.map +1 -0
  53. package/dist/ui-kit/shell/back-to-top-client.d.ts +9 -0
  54. package/dist/ui-kit/shell/back-to-top-client.d.ts.map +1 -0
  55. package/dist/ui-kit/shell/back-to-top-client.js +8 -0
  56. package/dist/ui-kit/shell/back-to-top-client.js.map +1 -0
  57. package/dist/ui-kit/shell/back-to-top.d.ts +13 -0
  58. package/dist/ui-kit/shell/back-to-top.d.ts.map +1 -0
  59. package/dist/ui-kit/shell/back-to-top.js +14 -0
  60. package/dist/ui-kit/shell/back-to-top.js.map +1 -0
  61. package/dist/ui-kit/shell/call-bar-client.d.ts +7 -0
  62. package/dist/ui-kit/shell/call-bar-client.d.ts.map +1 -0
  63. package/dist/ui-kit/shell/call-bar-client.js +13 -0
  64. package/dist/ui-kit/shell/call-bar-client.js.map +1 -0
  65. package/dist/ui-kit/shell/current-link.d.ts +15 -0
  66. package/dist/ui-kit/shell/current-link.d.ts.map +1 -0
  67. package/dist/ui-kit/shell/current-link.js +34 -0
  68. package/dist/ui-kit/shell/current-link.js.map +1 -0
  69. package/dist/ui-kit/shell/drawer-client.d.ts +22 -0
  70. package/dist/ui-kit/shell/drawer-client.d.ts.map +1 -0
  71. package/dist/ui-kit/shell/drawer-client.js +70 -0
  72. package/dist/ui-kit/shell/drawer-client.js.map +1 -0
  73. package/dist/ui-kit/shell/header-client.d.ts +44 -0
  74. package/dist/ui-kit/shell/header-client.d.ts.map +1 -0
  75. package/dist/ui-kit/shell/header-client.js +59 -0
  76. package/dist/ui-kit/shell/header-client.js.map +1 -0
  77. package/dist/ui-kit/shell/index.d.ts +6 -0
  78. package/dist/ui-kit/shell/index.d.ts.map +1 -0
  79. package/dist/ui-kit/shell/index.js +6 -0
  80. package/dist/ui-kit/shell/index.js.map +1 -0
  81. package/dist/ui-kit/shell/mobile-call-bar.d.ts +16 -0
  82. package/dist/ui-kit/shell/mobile-call-bar.d.ts.map +1 -0
  83. package/dist/ui-kit/shell/mobile-call-bar.js +15 -0
  84. package/dist/ui-kit/shell/mobile-call-bar.js.map +1 -0
  85. package/dist/ui-kit/shell/mobile-drawer.d.ts +37 -0
  86. package/dist/ui-kit/shell/mobile-drawer.d.ts.map +1 -0
  87. package/dist/ui-kit/shell/mobile-drawer.js +25 -0
  88. package/dist/ui-kit/shell/mobile-drawer.js.map +1 -0
  89. package/dist/ui-kit/shell/shell-context.d.ts +3 -0
  90. package/dist/ui-kit/shell/shell-context.d.ts.map +1 -0
  91. package/dist/ui-kit/shell/shell-context.js +5 -0
  92. package/dist/ui-kit/shell/shell-context.js.map +1 -0
  93. package/dist/ui-kit/shell/site-header.d.ts +52 -0
  94. package/dist/ui-kit/shell/site-header.d.ts.map +1 -0
  95. package/dist/ui-kit/shell/site-header.js +36 -0
  96. package/dist/ui-kit/shell/site-header.js.map +1 -0
  97. package/dist/ui-kit/shell/social-links.d.ts +8 -0
  98. package/dist/ui-kit/shell/social-links.d.ts.map +1 -0
  99. package/dist/ui-kit/shell/social-links.js +9 -0
  100. package/dist/ui-kit/shell/social-links.js.map +1 -0
  101. package/dist/ui-kit/shell/utility-bar.d.ts +30 -0
  102. package/dist/ui-kit/shell/utility-bar.d.ts.map +1 -0
  103. package/dist/ui-kit/shell/utility-bar.js +15 -0
  104. package/dist/ui-kit/shell/utility-bar.js.map +1 -0
  105. package/dist/ui-kit/skin-index.d.ts +3 -0
  106. package/dist/ui-kit/skin-index.d.ts.map +1 -0
  107. package/dist/ui-kit/skin-index.js +2 -0
  108. package/dist/ui-kit/skin-index.js.map +1 -0
  109. package/dist/ui-kit/skin.d.ts +48 -0
  110. package/dist/ui-kit/skin.d.ts.map +1 -0
  111. package/dist/ui-kit/skin.js +47 -0
  112. package/dist/ui-kit/skin.js.map +1 -0
  113. package/dist/ui-kit/structure.css +717 -0
  114. package/dist/ui-kit/types.d.ts +27 -0
  115. package/dist/ui-kit/types.d.ts.map +1 -0
  116. package/dist/ui-kit/types.js +6 -0
  117. package/dist/ui-kit/types.js.map +1 -0
  118. package/package.json +25 -4
@@ -0,0 +1,717 @@
1
+ /* @brandlab-digital/site-next ui-kit structure.css: behaviour and layout only. Each site styles the components. */
2
+ @layer theme, base, bl-structure, components, utilities;
3
+
4
+ @layer bl-structure {
5
+ /* 00-base.css */
6
+ /* Base: scoped resets, focus, scroll padding, the visually-hidden utility and reduced motion. */
7
+
8
+ :where([data-bl], [data-bl-section]),
9
+ :where([data-bl], [data-bl-section]) *,
10
+ :where([data-bl], [data-bl-section]) *::before,
11
+ :where([data-bl], [data-bl-section]) *::after {
12
+ box-sizing: border-box;
13
+ }
14
+
15
+ :where([data-bl], [data-bl-section]) :where(svg) {
16
+ display: block;
17
+ flex-shrink: 0;
18
+ }
19
+
20
+ :where([data-bl], [data-bl-section]) :where([hidden]:not([hidden='until-found'])) {
21
+ display: none !important;
22
+ }
23
+
24
+ /* WCAG 2.4.11: a focused element is never hidden under the sticky header or the call bar. */
25
+ html {
26
+ scroll-padding-top: calc(var(--bl-header-height, 0px) + 0.5rem);
27
+ scroll-padding-bottom: calc(var(--bl-callbar-height, 0px) + 0.5rem);
28
+ }
29
+
30
+ :where([data-bl], [data-bl-section]) :focus-visible {
31
+ outline: 2px solid var(--bl-color-focus, currentColor);
32
+ outline-offset: 3px;
33
+ }
34
+
35
+ [data-bl-visually-hidden] {
36
+ position: absolute !important;
37
+ width: 1px !important;
38
+ height: 1px !important;
39
+ overflow: hidden !important;
40
+ clip-path: inset(50%) !important;
41
+ white-space: nowrap !important;
42
+ }
43
+
44
+ [data-bl='container'] {
45
+ width: 100%;
46
+ max-width: var(--bl-container, 80rem);
47
+ margin-inline: auto;
48
+ padding-inline: var(--bl-gutter, 1.25rem);
49
+ }
50
+ [data-bl='container'][data-width='narrow'] {
51
+ max-width: min(var(--bl-container, 80rem), 48rem);
52
+ }
53
+ [data-bl='container'][data-width='wide'] {
54
+ max-width: calc(var(--bl-container, 80rem) + 12rem);
55
+ }
56
+
57
+ [data-bl-section] {
58
+ position: relative;
59
+ padding-block: var(--bl-space-section, 4rem);
60
+ }
61
+ [data-bl-section] > [data-slot='inner'] {
62
+ position: relative;
63
+ max-width: var(--bl-container, 80rem);
64
+ margin-inline: auto;
65
+ padding-inline: var(--bl-gutter, 1.25rem);
66
+ }
67
+ [data-bl-section] > [data-slot='decoration'] {
68
+ position: absolute;
69
+ inset: 0;
70
+ pointer-events: none;
71
+ overflow: hidden;
72
+ }
73
+
74
+ /* WCAG 2.5.8 and the 44 px rule for primary actions. */
75
+ [data-bl='button'],
76
+ [data-bl='quote-button'] {
77
+ display: inline-flex;
78
+ align-items: center;
79
+ justify-content: center;
80
+ gap: 0.5rem;
81
+ min-height: 44px;
82
+ text-decoration: none;
83
+ }
84
+ [data-bl='phone-link'] {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ gap: 0.5rem;
88
+ min-height: 24px;
89
+ }
90
+ [data-bl='phone-link'][data-variant='button'] {
91
+ min-height: 44px;
92
+ }
93
+ :where([data-bl='button'], [data-bl='quote-button'], [data-bl='phone-link']) [data-slot='icon'] svg {
94
+ width: 1.25em;
95
+ height: 1.25em;
96
+ }
97
+
98
+ [data-bl='stars'] {
99
+ display: inline-flex;
100
+ gap: 0.125rem;
101
+ color: var(--bl-color-star, #f5b301);
102
+ }
103
+ [data-bl='stars'] [data-slot='star'] svg {
104
+ width: 1em;
105
+ height: 1em;
106
+ }
107
+ [data-bl='stars'] [data-slot='star'][data-state='off'] {
108
+ opacity: 0.3;
109
+ }
110
+
111
+ @media (prefers-reduced-motion: reduce) {
112
+ :where([data-bl], [data-bl-section]),
113
+ :where([data-bl], [data-bl-section]) *,
114
+ :where([data-bl], [data-bl-section]) *::before,
115
+ :where([data-bl], [data-bl-section]) *::after {
116
+ animation-duration: 0.01ms !important;
117
+ animation-iteration-count: 1 !important;
118
+ transition-duration: 0.01ms !important;
119
+ scroll-behavior: auto !important;
120
+ }
121
+ }
122
+
123
+ /* 10-header.css */
124
+ /*
125
+ * F2 header and F3 panels: sticky and solid, modes by the header's own width, panels always in the HTML. The drawer's
126
+ * dialog sits inside the header's actions, so header rules reach their parts by structure, never by a bare slot name.
127
+ */
128
+
129
+ :where([data-bl='header'], [data-bl='drawer'], [data-bl='utility']) :where(ul) {
130
+ list-style: none;
131
+ margin: 0;
132
+ padding: 0;
133
+ }
134
+ :where([data-bl='header'], [data-bl='drawer'], [data-bl='utility']) :where(p) {
135
+ margin: 0;
136
+ }
137
+ :where([data-bl='header'], [data-bl='drawer'], [data-bl='utility']) :where(a) {
138
+ color: inherit;
139
+ }
140
+ :where([data-bl='header'], [data-bl='drawer']) :where(button),
141
+ :where([data-bl='back-to-top']) {
142
+ font: inherit;
143
+ color: inherit;
144
+ letter-spacing: inherit;
145
+ text-transform: inherit;
146
+ background: none;
147
+ border: 0;
148
+ padding: 0;
149
+ cursor: pointer;
150
+ }
151
+
152
+ /* F12: the skip link is the first focusable element, visible on focus. */
153
+ [data-bl='skip'] {
154
+ position: absolute;
155
+ inset-inline-start: 1rem;
156
+ top: 0.75rem;
157
+ z-index: 100;
158
+ translate: 0 -200%;
159
+ padding: 0.75rem 1rem;
160
+ background: var(--bl-color-canvas, Canvas);
161
+ color: var(--bl-color-ink, CanvasText);
162
+ }
163
+ [data-bl='skip']:focus {
164
+ translate: 0 0;
165
+ }
166
+
167
+ /* The header never hides on scroll; its background is solid (a skin sets the colour, never transparency). */
168
+ [data-bl='header'] {
169
+ position: sticky;
170
+ top: 0;
171
+ z-index: 40;
172
+ container: bl-header / inline-size;
173
+ background: var(--bl-color-canvas, Canvas);
174
+ color: var(--bl-color-ink, CanvasText);
175
+ }
176
+ [data-bl='header'] > [data-slot='bar'] > [data-slot='inner'] {
177
+ display: flex;
178
+ align-items: center;
179
+ gap: 0.75rem;
180
+ max-width: var(--bl-container, 80rem);
181
+ min-height: var(--bl-header-bar-phone, 4rem);
182
+ margin-inline: auto;
183
+ padding-inline: var(--bl-gutter, 1.25rem);
184
+ }
185
+ [data-bl='header'] [data-slot='inner'] > [data-slot='logo'] {
186
+ display: inline-flex;
187
+ align-items: center;
188
+ flex-shrink: 0;
189
+ text-decoration: none;
190
+ }
191
+ [data-bl='header'] [data-slot='inner'] > [data-slot='logo'] :is(img, svg) {
192
+ display: block;
193
+ width: auto;
194
+ height: var(--bl-logo-h-phone, 40px);
195
+ }
196
+
197
+ /* The menu: hidden below 1280 px (the drawer takes over). */
198
+ [data-bl='header'] [data-slot='inner'] > [data-slot='nav'] {
199
+ display: none;
200
+ flex: 1;
201
+ min-width: 0;
202
+ }
203
+ [data-bl='header'] [data-slot='inner'] > [data-slot='nav'] > [data-slot='list'] {
204
+ display: flex;
205
+ align-items: center;
206
+ justify-content: center;
207
+ gap: 0.125rem;
208
+ }
209
+ [data-bl='header'][data-nav-align='end'] [data-slot='inner'] > [data-slot='nav'] > [data-slot='list'] {
210
+ justify-content: flex-end;
211
+ }
212
+ [data-bl='header'] [data-slot='item'] {
213
+ position: relative;
214
+ }
215
+ [data-bl='header'] [data-slot='itemRow'] {
216
+ display: flex;
217
+ align-items: center;
218
+ }
219
+ [data-bl='header'] [data-slot='item'] [data-slot='link'] {
220
+ display: inline-flex;
221
+ align-items: center;
222
+ min-height: 40px;
223
+ white-space: nowrap;
224
+ text-decoration: none;
225
+ }
226
+ [data-bl='header'] [data-slot='trigger'] {
227
+ display: inline-flex;
228
+ align-items: center;
229
+ justify-content: center;
230
+ min-width: 24px;
231
+ min-height: 40px;
232
+ }
233
+ [data-bl='header'] [data-slot='trigger'] svg {
234
+ width: 1rem;
235
+ height: 1rem;
236
+ transition: rotate 150ms ease;
237
+ }
238
+ [data-bl='header'] [data-slot='trigger'][aria-expanded='true'] svg {
239
+ rotate: 180deg;
240
+ }
241
+
242
+ /*
243
+ * F3 panels: always in the server HTML. Closed panels are visibility: hidden (and inert once scripts run); before
244
+ * hydration, :hover and :focus-within open them. The offset gap is padding inside the panel's hover box, never a
245
+ * margin, so the pointer never crosses a dead gap. The 150 ms fade never decides hoverability: visibility flips at once.
246
+ */
247
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'] {
248
+ position: absolute;
249
+ top: 100%;
250
+ left: 50%;
251
+ z-index: 50;
252
+ translate: -50% 0;
253
+ padding-top: var(--bl-panel-gap, 0.75rem);
254
+ visibility: hidden;
255
+ opacity: 0;
256
+ transition: opacity 150ms ease;
257
+ }
258
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-state='open'],
259
+ [data-bl='header']:not([data-hydrated='true']) [data-slot='item']:is(:hover, :focus-within) > [data-slot='panel'] {
260
+ visibility: visible;
261
+ opacity: 1;
262
+ }
263
+ [data-bl='header'] [data-slot='panelBody'] {
264
+ width: 22rem;
265
+ max-width: calc(100vw - 2 * var(--bl-gutter, 1.25rem));
266
+ background: var(--bl-color-canvas, Canvas);
267
+ color: var(--bl-color-ink, CanvasText);
268
+ }
269
+ [data-bl='header'] [data-slot='panelLink'] {
270
+ display: flex;
271
+ flex-wrap: wrap;
272
+ align-items: center;
273
+ justify-content: space-between;
274
+ gap: 0.15rem 0.75rem;
275
+ min-height: 40px;
276
+ text-decoration: none;
277
+ }
278
+ [data-bl='header'] [data-slot='panelLink'] svg {
279
+ width: 1rem;
280
+ height: 1rem;
281
+ }
282
+ [data-bl='header'] [data-slot='panelText'] {
283
+ flex-basis: 100%;
284
+ }
285
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns'] [data-slot='panelBody'] {
286
+ display: grid;
287
+ grid-template-columns: repeat(var(--bl-panel-columns, 2), minmax(0, 1fr));
288
+ gap: 0 1.5rem;
289
+ width: 34rem;
290
+ }
291
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns'][data-columns='3'] [data-slot='panelBody'] {
292
+ --bl-panel-columns: 3;
293
+ width: 46rem;
294
+ }
295
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns'] [data-slot='panelBody'] > [data-slot='panelList']:first-child {
296
+ grid-column: 1 / -1;
297
+ }
298
+ /* A columns panel without groups balances its one list. */
299
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns']:not([data-columns]) [data-slot='panelList'] {
300
+ columns: 2;
301
+ column-gap: 1.5rem;
302
+ }
303
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='columns']:not([data-columns]) [data-slot='panelList'] > li {
304
+ break-inside: avoid;
305
+ }
306
+ [data-bl='header'] [data-slot='item'] > [data-slot='panel'][data-variant='featured'] [data-slot='panelBody'] {
307
+ display: grid;
308
+ grid-template-columns: 15rem minmax(0, 1fr);
309
+ gap: 1.25rem;
310
+ width: 38rem;
311
+ }
312
+ [data-bl='header'] [data-slot='featured'] {
313
+ display: grid;
314
+ align-content: start;
315
+ gap: 0.4rem;
316
+ text-decoration: none;
317
+ }
318
+ [data-bl='header'] [data-slot='featuredMedia'] {
319
+ display: block;
320
+ overflow: hidden;
321
+ aspect-ratio: 4 / 3;
322
+ }
323
+ [data-bl='header'] [data-slot='featuredMedia'] img {
324
+ display: block;
325
+ width: 100%;
326
+ height: 100%;
327
+ object-fit: cover;
328
+ }
329
+
330
+ /* Actions: phone (icon left, its label above the number), quote, Menu. Below 1024 px a 44 px call button and Menu. */
331
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] {
332
+ display: flex;
333
+ align-items: center;
334
+ gap: 0.5rem;
335
+ margin-inline-start: auto;
336
+ }
337
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] {
338
+ justify-content: center;
339
+ min-width: 44px;
340
+ min-height: 44px;
341
+ white-space: nowrap;
342
+ text-decoration: none;
343
+ }
344
+ [data-bl='header'][data-variant='standard'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] :is([data-slot='label'], [data-slot='number']),
345
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='label'],
346
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] [data-slot='menuLabel'] {
347
+ position: absolute;
348
+ width: 1px;
349
+ height: 1px;
350
+ overflow: hidden;
351
+ clip-path: inset(50%);
352
+ white-space: nowrap;
353
+ }
354
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='quote-button'] {
355
+ display: none;
356
+ white-space: nowrap;
357
+ }
358
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] {
359
+ display: inline-flex;
360
+ align-items: center;
361
+ justify-content: center;
362
+ gap: 0.4rem;
363
+ min-width: 44px;
364
+ min-height: 44px;
365
+ }
366
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > :is([data-bl='phone-link'], [data-bl='quote-button'], [data-slot='menuButton']) svg {
367
+ width: 1.25rem;
368
+ height: 1.25rem;
369
+ }
370
+
371
+ /* 1024 to 1279 px: the compact band. Logo, phone with its number, quote and Menu. */
372
+ @container bl-header (min-width: 1024px) {
373
+ [data-bl='header'] > [data-slot='bar'] > [data-slot='inner'] {
374
+ min-height: var(--bl-header-bar, 5rem);
375
+ gap: 1rem;
376
+ }
377
+ [data-bl='header'] [data-slot='inner'] > [data-slot='logo'] :is(img, svg) {
378
+ height: var(--bl-logo-h, 52px);
379
+ }
380
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] {
381
+ display: inline-grid;
382
+ grid-template-columns: auto auto;
383
+ column-gap: 0.6rem;
384
+ align-items: center;
385
+ justify-content: start;
386
+ text-align: start;
387
+ }
388
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='icon'] {
389
+ grid-row: span 2;
390
+ }
391
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] :is([data-slot='label'], [data-slot='number']),
392
+ [data-bl='header'][data-variant='standard'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] :is([data-slot='label'], [data-slot='number']),
393
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] [data-slot='menuLabel'] {
394
+ position: static;
395
+ width: auto;
396
+ height: auto;
397
+ overflow: visible;
398
+ clip-path: none;
399
+ }
400
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='label'] {
401
+ grid-column: 2;
402
+ }
403
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='phone-link'] [data-slot='number'] {
404
+ grid-column: 2;
405
+ }
406
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-bl='quote-button'] {
407
+ display: inline-flex;
408
+ }
409
+ }
410
+
411
+ /* 1280 px and up: the full menu. */
412
+ @container bl-header (min-width: 1280px) {
413
+ [data-bl='header'] [data-slot='inner'] > [data-slot='nav'] {
414
+ display: block;
415
+ }
416
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] {
417
+ margin-inline-start: 0;
418
+ }
419
+ [data-bl='header'] [data-slot='inner'] > [data-slot='actions'] > [data-slot='menuButton'] {
420
+ display: none;
421
+ }
422
+ }
423
+
424
+ /* 11-utility.css */
425
+ /* F5 utility bar: optional, above the header, scrolls away with the page; hidden below 768 px of its own width. */
426
+
427
+ [data-bl='utility'] {
428
+ container: bl-utility / inline-size;
429
+ }
430
+ [data-bl='utility'] > [data-slot='inner'] {
431
+ display: none;
432
+ }
433
+ @container bl-utility (min-width: 768px) {
434
+ [data-bl='utility'] > [data-slot='inner'] {
435
+ display: flex;
436
+ align-items: center;
437
+ justify-content: space-between;
438
+ gap: 1.5rem;
439
+ max-width: var(--bl-container, 80rem);
440
+ min-height: 2.25rem;
441
+ margin-inline: auto;
442
+ padding-inline: var(--bl-gutter, 1.25rem);
443
+ }
444
+ }
445
+ [data-bl='utility'][data-reverse='true'] > [data-slot='inner'] {
446
+ flex-direction: row-reverse;
447
+ }
448
+ [data-bl='utility'] [data-slot='left'],
449
+ [data-bl='utility'] [data-slot='social'] {
450
+ display: flex;
451
+ flex-wrap: wrap;
452
+ align-items: center;
453
+ gap: 0.25rem 1.25rem;
454
+ }
455
+ [data-bl='utility'] :is([data-slot='rating'], [data-slot='licence']) {
456
+ display: inline-flex;
457
+ align-items: center;
458
+ gap: 0.4rem;
459
+ min-height: 24px;
460
+ text-decoration: none;
461
+ }
462
+ [data-bl='utility'] [data-slot='social'] {
463
+ gap: 0.25rem;
464
+ }
465
+ [data-bl='utility'] [data-slot='socialLink'] {
466
+ display: inline-flex;
467
+ align-items: center;
468
+ justify-content: center;
469
+ min-width: 24px;
470
+ min-height: 24px;
471
+ }
472
+ [data-bl='utility'] [data-slot='social'] svg {
473
+ width: 1rem;
474
+ height: 1rem;
475
+ }
476
+
477
+ /* 12-drawer.css */
478
+ /*
479
+ * F4 drawer: a modal dialog of min(100%, 420px) from the end side (or full screen), its own scroll container. The page
480
+ * behind it is inert (native modal) and doesn't scroll while it is open.
481
+ */
482
+
483
+ /* The gutter stays when the scrollbar goes, so the header's width (and its mode) never changes as the drawer opens. */
484
+ :root:has(dialog[data-bl='drawer'][open]) {
485
+ overflow: hidden;
486
+ scrollbar-gutter: stable;
487
+ }
488
+
489
+ dialog[data-bl='drawer'] {
490
+ inset-block: 0;
491
+ width: min(100%, 420px);
492
+ max-width: 100%;
493
+ height: 100dvh;
494
+ max-height: 100dvh;
495
+ margin: 0;
496
+ margin-inline-start: auto;
497
+ padding: 0;
498
+ border: 0;
499
+ overflow: hidden;
500
+ overscroll-behavior: contain;
501
+ background: var(--bl-color-canvas, Canvas);
502
+ color: var(--bl-color-ink, CanvasText);
503
+ }
504
+ dialog[data-bl='drawer'][data-side='start'] {
505
+ margin-inline: 0 auto;
506
+ }
507
+ dialog[data-bl='drawer'][data-variant='full'] {
508
+ width: 100%;
509
+ margin-inline: 0;
510
+ }
511
+ dialog[data-bl='drawer'] > [data-slot='panel'] {
512
+ display: flex;
513
+ flex-direction: column;
514
+ height: 100%;
515
+ padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
516
+ overflow-y: auto;
517
+ overscroll-behavior: contain;
518
+ }
519
+ dialog[data-bl='drawer'][open] > [data-slot='panel'] {
520
+ animation: bl-drawer-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
521
+ }
522
+ dialog[data-bl='drawer'][data-side='start'][open] > [data-slot='panel'] {
523
+ animation-name: bl-drawer-in-start;
524
+ }
525
+ @keyframes bl-drawer-in {
526
+ from {
527
+ translate: 2rem 0;
528
+ opacity: 0;
529
+ }
530
+ }
531
+ @keyframes bl-drawer-in-start {
532
+ from {
533
+ translate: -2rem 0;
534
+ opacity: 0;
535
+ }
536
+ }
537
+
538
+ /* The close button comes first in the DOM and focus order; the row shows it at the end. */
539
+ dialog[data-bl='drawer'] [data-slot='top'] {
540
+ display: flex;
541
+ flex-direction: row-reverse;
542
+ align-items: center;
543
+ gap: 1rem;
544
+ padding: 0.75rem var(--bl-gutter, 1.25rem);
545
+ }
546
+ dialog[data-bl='drawer'] [data-slot='close'] {
547
+ display: inline-flex;
548
+ align-items: center;
549
+ justify-content: center;
550
+ width: 44px;
551
+ height: 44px;
552
+ }
553
+ dialog[data-bl='drawer'] [data-slot='close'] svg {
554
+ width: 1.4rem;
555
+ height: 1.4rem;
556
+ }
557
+ dialog[data-bl='drawer'] [data-slot='title'] {
558
+ margin-inline-end: auto;
559
+ }
560
+ dialog[data-bl='drawer'] [data-slot='top'] > [data-slot='logo'] :is(img, svg) {
561
+ display: block;
562
+ width: auto;
563
+ height: 36px;
564
+ }
565
+ dialog[data-bl='drawer'] [data-slot='nav'] {
566
+ padding: 0.5rem var(--bl-gutter, 1.25rem) 1rem;
567
+ }
568
+ dialog[data-bl='drawer'] [data-slot='groupTrigger'] {
569
+ display: flex;
570
+ align-items: center;
571
+ justify-content: space-between;
572
+ gap: 1rem;
573
+ min-height: 52px;
574
+ list-style: none;
575
+ cursor: pointer;
576
+ }
577
+ dialog[data-bl='drawer'] [data-slot='groupTrigger']::-webkit-details-marker {
578
+ display: none;
579
+ }
580
+ dialog[data-bl='drawer'] [data-slot='groupTrigger'] svg {
581
+ width: 1.1rem;
582
+ height: 1.1rem;
583
+ transition: rotate 150ms ease;
584
+ }
585
+ dialog[data-bl='drawer'] [data-slot='group'][open] > [data-slot='groupTrigger'] svg {
586
+ rotate: 180deg;
587
+ }
588
+ dialog[data-bl='drawer'] :is([data-slot='link'], [data-slot='groupLink']) {
589
+ display: flex;
590
+ align-items: center;
591
+ min-height: 44px;
592
+ text-decoration: none;
593
+ }
594
+ dialog[data-bl='drawer'] [data-slot='actions'] {
595
+ display: grid;
596
+ gap: 0.75rem;
597
+ margin-top: auto;
598
+ padding: 0.5rem var(--bl-gutter, 1.25rem) 1.25rem;
599
+ }
600
+ dialog[data-bl='drawer'] [data-slot='actions'] > :is([data-bl='phone-link'], [data-bl='quote-button']) {
601
+ display: flex;
602
+ justify-content: center;
603
+ min-height: 52px;
604
+ text-decoration: none;
605
+ }
606
+ dialog[data-bl='drawer'] [data-slot='actions'] svg {
607
+ width: 1.15rem;
608
+ height: 1.15rem;
609
+ }
610
+ dialog[data-bl='drawer'] [data-slot='social'] {
611
+ display: flex;
612
+ flex-wrap: wrap;
613
+ gap: 0.5rem;
614
+ padding: 0 var(--bl-gutter, 1.25rem);
615
+ }
616
+ dialog[data-bl='drawer'] [data-slot='socialLink'] {
617
+ display: inline-flex;
618
+ align-items: center;
619
+ justify-content: center;
620
+ width: 44px;
621
+ height: 44px;
622
+ }
623
+ dialog[data-bl='drawer'] [data-slot='social'] svg {
624
+ width: 1.1rem;
625
+ height: 1.1rem;
626
+ }
627
+
628
+ /* 13-callbar.css */
629
+ /*
630
+ * F6 call bar: below 1024 px only, fixed to the bottom above the safe area. Hidden until the hero's call paths have
631
+ * scrolled out; the component sets --bl-callbar-height while it shows (scroll padding and back-to-top use it).
632
+ */
633
+
634
+ [data-bl='callbar'] {
635
+ position: fixed;
636
+ inset-inline: 0;
637
+ bottom: 0;
638
+ z-index: 30;
639
+ display: flex;
640
+ gap: 0.5rem;
641
+ padding: 0.5rem var(--bl-gutter, 1.25rem) max(0.5rem, env(safe-area-inset-bottom));
642
+ background: var(--bl-color-canvas, Canvas);
643
+ color: var(--bl-color-ink, CanvasText);
644
+ transition: translate 200ms ease, visibility 0s;
645
+ }
646
+ [data-bl='callbar'] > :is([data-bl='phone-link'], [data-bl='quote-button']) {
647
+ flex: 1 1 0;
648
+ justify-content: center;
649
+ min-width: 0;
650
+ min-height: 48px;
651
+ text-decoration: none;
652
+ }
653
+ [data-bl='callbar'][data-variant='float'] {
654
+ inset-inline: auto 0;
655
+ justify-content: flex-end;
656
+ background: none;
657
+ }
658
+ [data-bl='callbar'][data-variant='float'] > :is([data-bl='phone-link'], [data-bl='quote-button']) {
659
+ flex: none;
660
+ }
661
+ [data-bl='callbar'][data-state='hidden'] {
662
+ visibility: hidden;
663
+ translate: 0 100%;
664
+ transition: translate 200ms ease, visibility 0s linear 200ms;
665
+ }
666
+ @media (min-width: 1024px) {
667
+ [data-bl='callbar'] {
668
+ display: none;
669
+ }
670
+ }
671
+
672
+ /* 14-back-to-top.css */
673
+ /* F7 back-to-top: a 44 px button in a bottom corner, above the call bar while it shows. */
674
+
675
+ [data-bl='back-to-top'] {
676
+ --bl-back-to-top-offset: 1.25rem;
677
+ position: fixed;
678
+ inset-inline-end: var(--bl-back-to-top-offset);
679
+ bottom: max(
680
+ calc(var(--bl-callbar-height, 0px) + var(--bl-back-to-top-offset)),
681
+ calc(env(safe-area-inset-bottom) + var(--bl-back-to-top-offset))
682
+ );
683
+ z-index: 30;
684
+ display: inline-flex;
685
+ align-items: center;
686
+ justify-content: center;
687
+ min-width: 44px;
688
+ min-height: 44px;
689
+ background: var(--bl-color-canvas, Canvas);
690
+ color: var(--bl-color-ink, CanvasText);
691
+ transition: opacity 150ms ease, bottom 200ms ease, visibility 0s;
692
+ }
693
+ [data-bl='back-to-top'][data-corner='start'] {
694
+ inset-inline: var(--bl-back-to-top-offset) auto;
695
+ }
696
+ [data-bl='back-to-top'][data-offset='small'] {
697
+ --bl-back-to-top-offset: 0.75rem;
698
+ }
699
+ [data-bl='back-to-top'][data-offset='large'] {
700
+ --bl-back-to-top-offset: 2rem;
701
+ }
702
+ [data-bl='back-to-top'][data-state='hidden'] {
703
+ visibility: hidden;
704
+ opacity: 0;
705
+ transition: opacity 150ms ease, bottom 200ms ease, visibility 0s linear 150ms;
706
+ }
707
+ [data-bl='back-to-top'] svg {
708
+ width: 1.25rem;
709
+ height: 1.25rem;
710
+ }
711
+
712
+ /* The skip-link and back-to-top target takes focus without a ring: it is a landmark, not a control. */
713
+ #main[tabindex='-1']:focus {
714
+ outline: none;
715
+ }
716
+
717
+ }