@lilydesignsystem/themes 0.5.0 → 0.6.1

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 (66) hide show
  1. package/LICENSE.md +8 -8
  2. package/dist/abyss.css +967 -31
  3. package/dist/acid.css +966 -30
  4. package/dist/adobe-spectrum.css +968 -32
  5. package/dist/ant-design.css +966 -30
  6. package/dist/aqua.css +968 -32
  7. package/dist/atlassian.css +966 -30
  8. package/dist/australia-agriculture-design-system.css +4569 -0
  9. package/dist/autumn.css +968 -32
  10. package/dist/black.css +967 -31
  11. package/dist/brazil-padrao-digital-de-governo.css +4569 -0
  12. package/dist/bumblebee.css +969 -33
  13. package/dist/business.css +967 -31
  14. package/dist/canada-government-of-canada-design-system.css +4569 -0
  15. package/dist/cappuccino.css +966 -30
  16. package/dist/caramellatte.css +967 -31
  17. package/dist/cmyk.css +966 -30
  18. package/dist/coffee.css +966 -30
  19. package/dist/corporate.css +970 -34
  20. package/dist/cupcake.css +967 -31
  21. package/dist/cyberpunk.css +966 -30
  22. package/dist/dark.css +968 -32
  23. package/dist/dim.css +966 -30
  24. package/dist/dracula.css +966 -30
  25. package/dist/emerald.css +967 -31
  26. package/dist/european-union-europa-component-library.css +4569 -0
  27. package/dist/excel.css +966 -30
  28. package/dist/fantasy.css +967 -31
  29. package/dist/fluent.css +966 -30
  30. package/dist/forest.css +966 -30
  31. package/dist/garden.css +968 -32
  32. package/dist/github-primer.css +966 -30
  33. package/dist/halloween.css +967 -31
  34. package/dist/ibm-carbon.css +966 -30
  35. package/dist/japan-digital-agency-design-system.css +4569 -0
  36. package/dist/lemonade.css +966 -30
  37. package/dist/light.css +967 -31
  38. package/dist/linear.css +966 -30
  39. package/dist/lofi.css +966 -30
  40. package/dist/luxury.css +966 -30
  41. package/dist/mozilla-protocol.css +968 -32
  42. package/dist/night.css +966 -30
  43. package/dist/nord.css +966 -30
  44. package/dist/notion.css +966 -30
  45. package/dist/pastel.css +973 -37
  46. package/dist/retro.css +970 -34
  47. package/dist/salesforce.css +966 -30
  48. package/dist/sap-fiori.css +966 -30
  49. package/dist/silk.css +967 -31
  50. package/dist/singapore-government-design-system.css +4569 -0
  51. package/dist/sunset.css +966 -30
  52. package/dist/synthwave.css +966 -30
  53. package/dist/united-kingdom-government-digital-service.css +966 -30
  54. package/dist/united-kingdom-national-health-service-england-for-patients.css +990 -41
  55. package/dist/united-kingdom-national-health-service-england-for-practitioners.css +988 -39
  56. package/dist/united-kingdom-national-health-service-scotland-for-patients.css +1001 -49
  57. package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +996 -44
  58. package/dist/united-kingdom-national-health-service-wales-for-patients.css +1003 -49
  59. package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +996 -42
  60. package/dist/united-states-web-design-system.css +967 -31
  61. package/dist/valentine.css +970 -34
  62. package/dist/vercel.css +966 -30
  63. package/dist/winter.css +967 -31
  64. package/dist/wireframe.css +966 -30
  65. package/index.md +8 -4
  66. package/package.json +3 -3
@@ -118,6 +118,14 @@
118
118
  want to layer a subtle texture; the baseline rules do not
119
119
  consume it. */
120
120
  --noise: 0;
121
+ /* Fluid inline gutter for page containers and the main
122
+ region: grows with the viewport from a 1rem floor to a 2rem
123
+ ceiling. Spacing only, never text. */
124
+ --space-fluid-gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
125
+ /* Fluid gap between sections (stacks and grids): grows with
126
+ the viewport from a 1rem floor to a 2rem ceiling. Spacing
127
+ only, never text. */
128
+ --space-fluid-section: clamp(1rem, 0.75rem + 1vw, 2rem);
121
129
  }
122
130
 
123
131
  /* ----------------------------------------------------------------------------
@@ -216,7 +224,7 @@
216
224
  /* --- Typography ---------------------------------------------------- */
217
225
  /* Body font stack — system fonts first so consumers get a
218
226
  native-feeling baseline without shipping a web font. */
219
- --lily-font-body:
227
+ --lily-font-body-latin:
220
228
  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
221
229
  Arial, sans-serif;
222
230
  /* Monospaced font stack — used by code, kbd, identifiers, and
@@ -323,9 +331,12 @@
323
331
  }
324
332
 
325
333
  /* Invalid input — red border. The `aria-invalid="true"` attribute is the
326
- ARIA contract; pairing it with a colour change keeps WCAG 1.4.1
327
- (no colour-only meaning) honest because the ARIA state is also there. */
328
- :where([class$="-input"], .input)[aria-invalid="true"] {
334
+ ARIA contract (server-rendered errors); `:user-invalid` is the native
335
+ state that matches only after the user has interacted, so a required
336
+ field is not styled invalid on load. Pairing a colour change with the
337
+ ARIA state keeps WCAG 1.4.1 (no colour-only meaning) honest. */
338
+ :where([class$="-input"], .input)[aria-invalid="true"],
339
+ :where([class$="-input"], .input):user-invalid {
329
340
  border-color: var(--color-error);
330
341
  }
331
342
 
@@ -862,7 +873,7 @@
862
873
  color: var(--lily-text-muted);
863
874
  }
864
875
  /* Final crumb (the current page) — muted because it isn't a link. */
865
- :where(.breadcrumb-list-item[aria-current="page"]) {
876
+ :where(.breadcrumb-list-item[data-current], .breadcrumb-list-item[aria-current="page"]) {
866
877
  color: var(--lily-text-muted);
867
878
  }
868
879
 
@@ -1131,11 +1142,114 @@
1131
1142
  background-color: var(--color-primary);
1132
1143
  color: var(--color-primary-content);
1133
1144
  }
1134
- /* Today — outlined rather than filled, so a selected non-today date
1135
- still reads as the "selected" one. */
1145
+ /* Today — outlined and bold, never filled, so a selected non-today date still
1146
+ reads as "selected". The ring takes the cell's own text colour (currentColor),
1147
+ so it holds its contrast on a light page, a dark page and a selected cell
1148
+ alike, and the bold number says it without colour. */
1136
1149
  :where(.calendar-table-td[aria-current="date"]) {
1137
- outline: 2px solid var(--color-primary);
1138
- outline-offset: -2px;
1150
+ outline: 2px solid currentColor;
1151
+ outline-offset: -3px;
1152
+ font-weight: 700;
1153
+ }
1154
+ /* Fit a phone: day cells shrink and wrap instead of forcing the grid wider. */
1155
+ :where(.calendar-table) {
1156
+ table-layout: fixed;
1157
+ }
1158
+ :where(.calendar-table-td, .calendar-table-th) {
1159
+ min-width: 0;
1160
+ overflow-wrap: anywhere;
1161
+ }
1162
+
1163
+ /* --- Data grid: toolbar, sorting, pagination, column visibility, pinned columns ----- */
1164
+ :where(.data-grid-toolbar) {
1165
+ display: flex;
1166
+ flex-wrap: wrap;
1167
+ gap: var(--lily-space-sm);
1168
+ align-items: center;
1169
+ margin-block-end: var(--lily-space-sm);
1170
+ }
1171
+ :where(.data-grid-search, .data-grid-search-field) {
1172
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1173
+ border: var(--border) solid var(--lily-border);
1174
+ border-radius: var(--lily-radius-sm);
1175
+ background-color: var(--lily-surface);
1176
+ color: var(--lily-text);
1177
+ font: inherit;
1178
+ }
1179
+ /* A sortable header is a button that looks like its text; the arrow follows aria-sort,
1180
+ so the state is in the markup for assistive technology and on screen for everyone. */
1181
+ :where(.data-grid-sort-button) {
1182
+ padding: 0;
1183
+ border: 0;
1184
+ background: none;
1185
+ color: inherit;
1186
+ font: inherit;
1187
+ text-align: start;
1188
+ cursor: pointer;
1189
+ }
1190
+ :where(.data-grid-sort-button:focus-visible) {
1191
+ outline: 2px solid var(--color-accent);
1192
+ outline-offset: 2px;
1193
+ }
1194
+ :where([aria-sort="none"] .data-grid-sort-button)::after {
1195
+ content: " \21C5";
1196
+ opacity: 0.5;
1197
+ }
1198
+ :where([aria-sort="ascending"] .data-grid-sort-button)::after {
1199
+ content: " \25B2";
1200
+ }
1201
+ :where([aria-sort="descending"] .data-grid-sort-button)::after {
1202
+ content: " \25BC";
1203
+ }
1204
+ :where(.data-grid-pagination) {
1205
+ display: flex;
1206
+ flex-wrap: wrap;
1207
+ gap: var(--lily-space-sm);
1208
+ align-items: center;
1209
+ justify-content: flex-end;
1210
+ margin-block-start: var(--lily-space-sm);
1211
+ }
1212
+ :where(.data-grid-page-previous, .data-grid-page-next, .data-grid-export-button) {
1213
+ padding: var(--lily-space-xs) var(--lily-space-md);
1214
+ border: var(--border) solid var(--lily-border);
1215
+ border-radius: var(--lily-radius-sm);
1216
+ background-color: var(--lily-surface);
1217
+ color: var(--lily-text);
1218
+ font: inherit;
1219
+ cursor: pointer;
1220
+ }
1221
+ :where(.data-grid-page-previous:disabled, .data-grid-page-next:disabled, .data-grid-export-button:disabled) {
1222
+ opacity: 0.5;
1223
+ cursor: not-allowed;
1224
+ }
1225
+ :where(.data-grid-column-visibility) {
1226
+ display: flex;
1227
+ flex-wrap: wrap;
1228
+ gap: var(--lily-space-sm);
1229
+ margin: 0;
1230
+ padding: var(--lily-space-xs) var(--lily-space-sm);
1231
+ border: var(--border) solid var(--lily-border);
1232
+ border-radius: var(--lily-radius-sm);
1233
+ }
1234
+ /* Pinned columns stay put while the rest scroll; the offset is logical, so it flips in right-to-left. */
1235
+ :where([data-pinned="start"]) {
1236
+ position: sticky;
1237
+ inset-inline-start: 0;
1238
+ z-index: 1;
1239
+ background-color: var(--lily-surface);
1240
+ }
1241
+ :where([data-pinned="end"]) {
1242
+ position: sticky;
1243
+ inset-inline-end: 0;
1244
+ z-index: 1;
1245
+ background-color: var(--lily-surface);
1246
+ }
1247
+ :where(th[data-pinned]) {
1248
+ z-index: 2;
1249
+ }
1250
+ /* A missing value: dimmed, and the grid's emptyValue text (for example a dash) reads as absence. */
1251
+ :where(.data-table-td[data-empty]) {
1252
+ opacity: 0.7;
1139
1253
  }
1140
1254
 
1141
1255
  /* --- Kanban specifics --------------------------------------------------- */
@@ -1149,6 +1263,20 @@
1149
1263
  min-width: 14rem;
1150
1264
  }
1151
1265
 
1266
+ /* Dragging a card: the column it would land in is outlined; one that refuses it
1267
+ (canMove, allowedColumns, a full strict WIP limit) is striped and shows the
1268
+ not-allowed cursor, so "you can't drop here" is visible before the drop. */
1269
+ :where(.kanban-table-td[data-drop-target]) {
1270
+ outline: 2px dashed var(--color-accent);
1271
+ outline-offset: -3px;
1272
+ }
1273
+ :where(.kanban-table-td[data-drop-blocked]) {
1274
+ outline: 2px solid var(--color-error);
1275
+ outline-offset: -3px;
1276
+ cursor: not-allowed;
1277
+ background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--color-error) 18%, transparent) 6px 8px);
1278
+ }
1279
+
1152
1280
  /* --- Gantt specifics ---------------------------------------------------- */
1153
1281
  /* Cells marked as bars are filled with the primary colour to render the
1154
1282
  schedule bar inline within the grid. */
@@ -1156,6 +1284,20 @@
1156
1284
  background-color: var(--color-primary);
1157
1285
  }
1158
1286
 
1287
+ /* Weekend, holiday and time-off shading (Gantt chart and calendar). A weekend
1288
+ is tinted; a day marked as a holiday or time off (data-unavailable /
1289
+ data-range) is striped as well, so no day is told apart by colour alone;
1290
+ a column only partly unavailable gets a bar under its header. */
1291
+ :where(.gantt-table-th[data-weekend], .gantt-table-td[data-weekend], .calendar-table-th[data-weekend], .calendar-table-td[data-weekend]) {
1292
+ background-color: color-mix(in srgb, var(--lily-surface) 92%, var(--lily-text));
1293
+ }
1294
+ :where(.gantt-table-th[data-unavailable], .gantt-table-td[data-unavailable], .calendar-table-td[data-range]) {
1295
+ background-image: repeating-linear-gradient(135deg, transparent 0 4px, color-mix(in srgb, var(--lily-text) 14%, transparent) 4px 5px);
1296
+ }
1297
+ :where(.gantt-table-th[data-partly-unavailable]) {
1298
+ box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--lily-text) 45%, transparent);
1299
+ }
1300
+
1159
1301
  /* ==========================================================================
1160
1302
  * Cards, panels, surfaces
1161
1303
  * --------------------------------------------------------------------------
@@ -1338,13 +1480,17 @@
1338
1480
  padding: 0.75rem 1rem;
1339
1481
  }
1340
1482
 
1341
- /* Sticky promo — sits at the very top of the viewport on scroll. */
1483
+ /* Sticky promo — stays at one edge of the viewport on scroll. A bottom banner must not also pin its top edge: with
1484
+ the component's own bottom: 0 it would stretch over the whole page and take every click. */
1342
1485
  :where(.sticky-promo-banner) {
1343
1486
  position: sticky;
1344
- inset-block-start: 0;
1345
1487
  z-index: 10;
1346
1488
  }
1347
1489
 
1490
+ :where(.sticky-promo-banner:not([data-position="bottom"])) {
1491
+ inset-block-start: 0;
1492
+ }
1493
+
1348
1494
  /* Error message — inline form-validation message. */
1349
1495
  :where(.error-message) {
1350
1496
  color: var(--lily-error-text);
@@ -1424,7 +1570,7 @@
1424
1570
  display: block;
1425
1571
  width: 100%;
1426
1572
  margin-inline: auto;
1427
- padding-inline: 1rem;
1573
+ padding-inline: var(--space-fluid-gutter);
1428
1574
  box-sizing: border-box;
1429
1575
  }
1430
1576
  /* Fixed-width — caps at a comfortable reading width (~1152px). */
@@ -1444,11 +1590,11 @@
1444
1590
  :where(.flex-stack) {
1445
1591
  display: flex;
1446
1592
  flex-direction: column;
1447
- gap: 1rem;
1593
+ gap: var(--space-fluid-section);
1448
1594
  }
1449
1595
  :where(.grid) {
1450
1596
  display: grid;
1451
- gap: 1rem;
1597
+ gap: var(--space-fluid-section);
1452
1598
  }
1453
1599
  :where(.masonry) {
1454
1600
  column-count: 3;
@@ -1503,7 +1649,7 @@
1503
1649
  :where(.content-block) {
1504
1650
  max-width: var(--content-width-normal);
1505
1651
  margin-inline: auto;
1506
- padding-inline: 1rem;
1652
+ padding-inline: var(--space-fluid-gutter);
1507
1653
  box-sizing: border-box;
1508
1654
  }
1509
1655
  :where(.content-block[data-width="narrower"]) {
@@ -1521,7 +1667,8 @@
1521
1667
 
1522
1668
  /* --- Grail layout (5-region responsive page shell) --------------------- */
1523
1669
  /* Header spans the top; left-aside / main / right-aside fill the middle;
1524
- footer spans the bottom. At ≤768px the asides drop below the main. */
1670
+ footer spans the bottom. The collapse as the window narrows is in the shared
1671
+ container section at the end of this file. */
1525
1672
  :where(.grail-layout) {
1526
1673
  display: grid;
1527
1674
  min-height: 100vh;
@@ -1561,15 +1708,7 @@
1561
1708
  }
1562
1709
  /* Main content area — primary surface, more generous padding. */
1563
1710
  :where(.grail-layout-center-main) {
1564
- padding: 1.5rem;
1565
- }
1566
- /* Mobile breakpoint — collapse to a single column, stacking the regions. */
1567
- @media (max-width: 48rem) {
1568
- :where(.grail-layout) {
1569
- grid-template-areas: "header" "main" "left" "right" "footer";
1570
- grid-template-columns: 1fr;
1571
- grid-template-rows: auto auto auto auto auto;
1572
- }
1711
+ padding: var(--space-fluid-gutter);
1573
1712
  }
1574
1713
 
1575
1714
  /* Standalone semantic header / footer landmarks. */
@@ -1660,6 +1799,15 @@
1660
1799
  /* Drawers — side panels (right edge by default; RTL-aware via logical
1661
1800
  properties). Sit above the overlay container (z-index 101). */
1662
1801
  :where(.drawer, .slide-out-drawer, .sheet) {
1802
+ /* These are <dialog> elements opened with showModal() (P18-T6): undo the
1803
+ browser's centred-box defaults so the panel docks to the edge. */
1804
+ margin: 0;
1805
+ border: 0;
1806
+ inset-inline-start: auto;
1807
+ max-block-size: none;
1808
+ max-inline-size: none;
1809
+ block-size: 100%;
1810
+ box-sizing: border-box;
1663
1811
  position: fixed;
1664
1812
  inset-block: 0;
1665
1813
  inset-inline-end: 0;
@@ -1672,6 +1820,10 @@
1672
1820
  z-index: 101;
1673
1821
  }
1674
1822
 
1823
+ :where(.drawer, .slide-out-drawer, .sheet)::backdrop {
1824
+ background-color: color-mix(in oklch, black 50%, transparent);
1825
+ }
1826
+
1675
1827
  /* ==========================================================================
1676
1828
  * Menus
1677
1829
  * ====================================================================== */
@@ -1724,7 +1876,7 @@
1724
1876
  gap: 0.25rem;
1725
1877
  }
1726
1878
  /* Hamburger — bordered icon-button. */
1727
- :where(.hamburger-menu) {
1879
+ :where(.hamburger-menu > button) {
1728
1880
  display: inline-flex;
1729
1881
  align-items: center;
1730
1882
  justify-content: center;
@@ -2082,6 +2234,7 @@
2082
2234
  .theme-picker,
2083
2235
  .locale-picker,
2084
2236
  .text-size-picker,
2237
+ .time-zone-picker,
2085
2238
  .search-picker,
2086
2239
  .link-picker,
2087
2240
  .menu-picker,
@@ -2097,6 +2250,7 @@
2097
2250
  .theme-picker-button,
2098
2251
  .locale-picker-button,
2099
2252
  .text-size-picker-button,
2253
+ .time-zone-picker-button,
2100
2254
  .search-picker-button,
2101
2255
  .link-picker-button,
2102
2256
  .menu-picker-button,
@@ -2135,6 +2289,7 @@
2135
2289
  .theme-picker-icon,
2136
2290
  .locale-picker-icon,
2137
2291
  .text-size-picker-icon,
2292
+ .time-zone-picker-icon,
2138
2293
  .motion-picker-icon,
2139
2294
  .link-picker-icon,
2140
2295
  .menu-picker-icon,
@@ -2502,6 +2657,7 @@
2502
2657
  .theme-picker-tooltip,
2503
2658
  .locale-picker-tooltip,
2504
2659
  .text-size-picker-tooltip,
2660
+ .time-zone-picker-tooltip,
2505
2661
  .motion-picker-tooltip,
2506
2662
  .link-picker-tooltip,
2507
2663
  .menu-picker-tooltip,
@@ -2529,6 +2685,7 @@
2529
2685
  .theme-picker-tooltip,
2530
2686
  .locale-picker-tooltip,
2531
2687
  .text-size-picker-tooltip,
2688
+ .time-zone-picker-tooltip,
2532
2689
  .motion-picker-tooltip,
2533
2690
  .link-picker-tooltip,
2534
2691
  .menu-picker-tooltip,
@@ -2548,6 +2705,7 @@
2548
2705
  .theme-picker-tooltip,
2549
2706
  .locale-picker-tooltip,
2550
2707
  .text-size-picker-tooltip,
2708
+ .time-zone-picker-tooltip,
2551
2709
  .motion-picker-tooltip,
2552
2710
  .link-picker-tooltip,
2553
2711
  .menu-picker-tooltip,
@@ -2604,6 +2762,7 @@
2604
2762
  .theme-picker-list,
2605
2763
  .locale-picker-list,
2606
2764
  .text-size-picker-list,
2765
+ .time-zone-picker-list,
2607
2766
  .motion-picker-list,
2608
2767
  .link-picker-list,
2609
2768
  .menu-picker-panel,
@@ -2633,6 +2792,7 @@
2633
2792
  .theme-picker-list,
2634
2793
  .locale-picker-list,
2635
2794
  .text-size-picker-list,
2795
+ .time-zone-picker-list,
2636
2796
  .motion-picker-list,
2637
2797
  .link-picker-list,
2638
2798
  .menu-picker-panel,
@@ -2653,6 +2813,7 @@
2653
2813
  :where(.theme-picker) { anchor-name: --lily-theme-picker; }
2654
2814
  :where(.locale-picker) { anchor-name: --lily-locale-picker; }
2655
2815
  :where(.text-size-picker) { anchor-name: --lily-text-size-picker; }
2816
+ :where(.time-zone-picker) { anchor-name: --lily-time-zone-picker; }
2656
2817
  :where(.motion-picker) { anchor-name: --lily-motion-picker; }
2657
2818
  :where(.link-picker) { anchor-name: --lily-link-picker; }
2658
2819
  :where(.menu-picker) { anchor-name: --lily-menu-picker; }
@@ -2662,6 +2823,7 @@
2662
2823
  :where(.theme-picker-list) { position-anchor: --lily-theme-picker; }
2663
2824
  :where(.locale-picker-list) { position-anchor: --lily-locale-picker; }
2664
2825
  :where(.text-size-picker-list) { position-anchor: --lily-text-size-picker; }
2826
+ :where(.time-zone-picker-list) { position-anchor: --lily-time-zone-picker; }
2665
2827
  :where(.motion-picker-list) { position-anchor: --lily-motion-picker; }
2666
2828
  :where(.link-picker-list) { position-anchor: --lily-link-picker; }
2667
2829
  :where(.menu-picker-panel) { position-anchor: --lily-menu-picker; }
@@ -2672,6 +2834,7 @@
2672
2834
  .theme-picker-list,
2673
2835
  .locale-picker-list,
2674
2836
  .text-size-picker-list,
2837
+ .time-zone-picker-list,
2675
2838
  .motion-picker-list,
2676
2839
  .link-picker-list,
2677
2840
  .menu-picker-panel,
@@ -2689,11 +2852,56 @@
2689
2852
  }
2690
2853
  }
2691
2854
 
2692
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2855
+ /* Anchored popups (P16-T4). These nine render `popover="manual"`, which puts them in the top layer; the
2856
+ browser's own popover style would centre them in the viewport. Closed, they are display: none (or `hidden`
2857
+ where the Popover API is missing). Where anchor positioning exists, the four that live inside a component
2858
+ open under that component's trigger or input, as wide as it at least; the five that stand alone (tooltip,
2859
+ hover card, floating panel, coachmark, popconfirm) open under the element the consumer names with
2860
+ `position-anchor`, or the invoker of a `popovertarget`. Those five use anchor() with a fallback, not
2861
+ position-area: with no anchor, position-area does nothing and a static position can be off screen. */
2862
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[hidden] {
2863
+ display: none;
2864
+ }
2865
+
2866
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover]:not(:popover-open) {
2867
+ display: none;
2868
+ }
2869
+
2870
+ @supports (position-area: block-end) {
2871
+ :where(.cascader-trigger) { anchor-name: --lily-cascader; }
2872
+ :where(.tree-select-trigger) { anchor-name: --lily-tree-select; }
2873
+ :where(.mentions-input-control) { anchor-name: --lily-mentions-input; }
2874
+ :where(.combobox > input) { anchor-name: --lily-combobox; }
2875
+ :where(.cascader-panel) { position-anchor: --lily-cascader; }
2876
+ :where(.tree-select-panel) { position-anchor: --lily-tree-select; }
2877
+ :where(.mentions-input-suggestions) { position-anchor: --lily-mentions-input; }
2878
+ :where(.combobox > [role="listbox"]) { position-anchor: --lily-combobox; }
2879
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"], .tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2880
+ position: fixed;
2881
+ inset: auto;
2882
+ margin: 0;
2883
+ position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
2884
+ width: max-content;
2885
+ max-width: calc(100vw - 1rem);
2886
+ }
2887
+ :where(.tooltip, .hover-card, .floating-panel, .coachmark, .popconfirm-dialog)[popover] {
2888
+ inset-block-start: anchor(end, 25%);
2889
+ inset-inline-start: anchor(start, 25%);
2890
+ }
2891
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2892
+ position-area: block-end span-inline-end;
2893
+ }
2894
+ :where(.cascader-panel, .tree-select-panel, .mentions-input-suggestions, .combobox > [role="listbox"])[popover] {
2895
+ min-inline-size: anchor-size(inline);
2896
+ }
2897
+ }
2898
+
2899
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2693
2900
  > :where(
2694
2901
  .theme-picker-option,
2695
2902
  .locale-picker-option,
2696
2903
  .text-size-picker-option,
2904
+ .time-zone-picker-option,
2697
2905
  .motion-picker-option
2698
2906
  ) {
2699
2907
  padding: var(--lily-space-xs) var(--lily-space-sm);
@@ -2703,7 +2911,7 @@
2703
2911
 
2704
2912
  /* data-active is the keyboard cursor (aria-activedescendant); focus
2705
2913
  stays on the listbox, so this is the only visible cue for it. */
2706
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2914
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2707
2915
  > :where([data-active]) {
2708
2916
  background-color: var(--lily-surface-alt);
2709
2917
  outline: var(--lily-focus-ring);
@@ -2712,7 +2920,7 @@
2712
2920
 
2713
2921
  /* aria-selected marks the applied theme/locale, which is not the
2714
2922
  same thing as the keyboard cursor. Both can be visible at once. */
2715
- :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .motion-picker-list)
2923
+ :where(.theme-picker-list, .locale-picker-list, .text-size-picker-list, .time-zone-picker-list, .motion-picker-list)
2716
2924
  > :where([aria-selected="true"]) {
2717
2925
  font-weight: 600;
2718
2926
  background-color: var(--lily-surface-sunken);
@@ -3065,7 +3273,7 @@
3065
3273
  }
3066
3274
  /* Screen-reader-only — visually hidden but available to AT. The
3067
3275
  classic clip-rect pattern (works in every screen reader). */
3068
- :where(.screen-reader-span) {
3276
+ :where(.screen-reader-span, .middle-truncation-full) {
3069
3277
  position: absolute;
3070
3278
  width: 1px;
3071
3279
  height: 1px;
@@ -3076,6 +3284,42 @@
3076
3284
  white-space: nowrap;
3077
3285
  border: 0;
3078
3286
  }
3287
+ /* Middle truncation — a bounded one-line block; the shortened string is aria-hidden and the full
3288
+ text (hidden above) stays in the accessibility tree. */
3289
+ :where(.middle-truncation) {
3290
+ display: block;
3291
+ position: relative;
3292
+ overflow: hidden;
3293
+ white-space: nowrap;
3294
+ }
3295
+ /* Wheel picker — a scrolling listbox that snaps the chosen option to the centre. The selected option is filled with the
3296
+ primary colour (aria-selected, not colour alone: it is also the activedescendant and gets a bold weight). */
3297
+ :where(.wheel-picker-list) {
3298
+ max-block-size: 10em;
3299
+ overflow-y: auto;
3300
+ overscroll-behavior: contain;
3301
+ scroll-snap-type: y mandatory;
3302
+ border: 1px solid var(--color-base-300);
3303
+ border-radius: var(--lily-radius-md);
3304
+ }
3305
+ :where(.wheel-picker-list:focus-visible) {
3306
+ outline: 2px solid var(--lily-focus-ring);
3307
+ outline-offset: 2px;
3308
+ }
3309
+ :where(.wheel-picker-option) {
3310
+ padding: 0.5rem 1rem;
3311
+ scroll-snap-align: center;
3312
+ cursor: pointer;
3313
+ }
3314
+ :where(.wheel-picker-option[aria-selected="true"]) {
3315
+ background-color: var(--color-primary);
3316
+ color: var(--color-primary-content);
3317
+ font-weight: 600;
3318
+ }
3319
+ :where(.wheel-picker-option[aria-disabled="true"]) {
3320
+ opacity: 0.5;
3321
+ cursor: not-allowed;
3322
+ }
3079
3323
 
3080
3324
  /* ==========================================================================
3081
3325
  * Hero, figure, photo, media
@@ -3608,6 +3852,81 @@
3608
3852
  min-block-size: 24px;
3609
3853
  }
3610
3854
 
3855
+ /* ============================================================================
3856
+ * Coarse pointer targets — WCAG 2.2 2.5.5 (AAA), shared verbatim by all themes.
3857
+ *
3858
+ * Where the primary pointer is coarse (a finger), interactive hooks are at least
3859
+ * 44x44 CSS pixels: buttons, tabs, options, menu items, the page-header picker
3860
+ * buttons, form fields, checkboxes and radios, and the link-shaped navigation
3861
+ * hooks. Links inside running text are exempt, so bare `a` is not listed. The
3862
+ * query is the capability, never a viewport width. :where() keeps specificity
3863
+ * at zero, so any consumer rule still wins.
3864
+ * ========================================================================= */
3865
+
3866
+ @media (pointer: coarse) {
3867
+ :where(button,
3868
+ [role="button"],
3869
+ [role="tab"],
3870
+ [role="option"],
3871
+ [role="menuitem"],
3872
+ [class*="-picker-button"],
3873
+ summary,
3874
+ input:not([type="hidden"]),
3875
+ select,
3876
+ textarea,
3877
+ .action-link,
3878
+ .back-link,
3879
+ .breadcrumb-list-item > a,
3880
+ .pagination-list-item > a,
3881
+ .contents-list-item > a,
3882
+ .section-list-item > a) {
3883
+ min-inline-size: 44px;
3884
+ min-block-size: 44px;
3885
+ }
3886
+ }
3887
+
3888
+ /* ============================================================================
3889
+ * Brand colour — shared verbatim by all themes (spec/visual-identity, P21-T3).
3890
+ *
3891
+ * --lily-brand is the identity's decorative colour: a header band, a rule, a
3892
+ * logo background. It is NEVER a text colour or a control's boundary, because a
3893
+ * brand colour need not reach 4.5:1 (WCAG 1.4.3, 1.4.11). --lily-on-brand is the
3894
+ * text drawn on it. By default they follow the theme's primary pair, which every
3895
+ * theme keeps readable; an adopter whose brand colour is lighter or darker sets
3896
+ * both in their own CSS, with a pair of at least 4.5:1, and text keeps using the
3897
+ * content pairs (--color-base-content, --lily-error-text and so on).
3898
+ * ========================================================================== */
3899
+
3900
+ :where(:root) {
3901
+ --lily-brand: var(--color-primary);
3902
+ --lily-on-brand: var(--color-primary-content);
3903
+ }
3904
+
3905
+ /* ============================================================================
3906
+ * Logo slot — shared verbatim by all themes (spec/visual-identity, P21-T4).
3907
+ *
3908
+ * The adopter's logo link carries data-lily-logo: an <a href="/"> holding the
3909
+ * adopter's own <img alt> or <svg role="img" aria-label>. Lily ships no logo
3910
+ * and no clear-space rule, because national and local guidelines disagree: a
3911
+ * theme or the adopter sets --lily-logo-clear-space (padding around the mark)
3912
+ * and --lily-logo-min-size (its smallest inline size). Both are unset by
3913
+ * default, so nothing changes until one is set.
3914
+ * ========================================================================== */
3915
+
3916
+ @layer lily {
3917
+ :where([data-lily-logo]) {
3918
+ display: inline-block;
3919
+ padding: var(--lily-logo-clear-space, 0);
3920
+ }
3921
+
3922
+ :where([data-lily-logo] > img, [data-lily-logo] > svg) {
3923
+ display: block;
3924
+ min-inline-size: var(--lily-logo-min-size, 0);
3925
+ max-inline-size: 100%;
3926
+ block-size: auto;
3927
+ }
3928
+ }
3929
+
3611
3930
  /* ============================================================================
3612
3931
  * Overflow guards — narrow-viewport safety, shared verbatim by all themes.
3613
3932
  *
@@ -3635,3 +3954,620 @@
3635
3954
  :where(a, code) {
3636
3955
  overflow-wrap: anywhere;
3637
3956
  }
3957
+
3958
+ /* ============================================================================
3959
+ * Scoped overflow — shared verbatim by all themes.
3960
+ *
3961
+ * Long unbroken strings (a national identifier, an email address, a URL) and
3962
+ * grid/flex tracks that refuse to shrink are the usual causes of horizontal
3963
+ * page scroll (WCAG 1.4.10). Both fixes are scoped, never put on `body` or `*`:
3964
+ * `overflow-wrap: anywhere` on the places a long value lands (table cells are
3965
+ * covered by Overflow guards above), and `min-inline-size: 0` on the direct
3966
+ * children of Lily's grid and flex containers so a child can shrink below its
3967
+ * content. The identifier `-view` list below is the catalog's 70 national
3968
+ * identifier views (components-categories.tsv); bin/check-theme fails when it
3969
+ * drifts from the catalog. :where() keeps specificity at zero.
3970
+ * ========================================================================= */
3971
+
3972
+ :where(
3973
+ .alba-community-health-index-view,
3974
+ .australia-individual-healthcare-identifier-view,
3975
+ .belgique-numero-de-registre-national-view,
3976
+ .bulgaria-edinen-grazhdanski-nomer-view,
3977
+ .cesko-cestovni-pas-view,
3978
+ .cesko-rodne-cislo-view,
3979
+ .cymru-rhif-y-gwasanaeth-iechyd-gwladol-view,
3980
+ .kypros-national-passport-number-view,
3981
+ .danmark-personnummer-view,
3982
+ .deutschland-krankenversichertennummer-view,
3983
+ .eesti-isikukood-view,
3984
+ .ellada-dematerialised-securities-system-view,
3985
+ .england-national-health-service-number-view,
3986
+ .espana-codigo-de-identificacion-fiscal-view,
3987
+ .espana-tarjeta-sanitaria-individual-view,
3988
+ .france-numero-d-identification-au-repertoire-view,
3989
+ .hrvatska-osobni-identifikacijski-broj-view,
3990
+ .eire-individual-health-identifier-view,
3991
+ .island-kennitala-view,
3992
+ .italia-codice-fiscale-view,
3993
+ .latvija-personas-kods-view,
3994
+ .liechtenstein-national-identity-card-number-view,
3995
+ .liechtenstein-passport-number-view,
3996
+ .lietuva-asmens-kodas-view,
3997
+ .lietuva-pasas-view,
3998
+ .malta-national-identification-number-view,
3999
+ .malta-passport-number-view,
4000
+ .nederland-burgerservice-nummer-view,
4001
+ .nederland-identiteitskaart-nummer-view,
4002
+ .nederland-paspoort-nummer-view,
4003
+ .norge-fodselsnummer-view,
4004
+ .tuaisceart-eireann-health-and-care-number-view,
4005
+ .polska-numer-identyfikacji-podatkowej-view,
4006
+ .polska-pesel-view,
4007
+ .portugal-numero-de-identificacao-fiscal-view,
4008
+ .portugal-passaporte-view,
4009
+ .romania-cod-numeric-personal-view,
4010
+ .romania-pasaport-view,
4011
+ .slovenija-emso-view,
4012
+ .slovensko-pas-view,
4013
+ .slovensko-rodne-cislo-view,
4014
+ .suomi-henkilotunnus-view,
4015
+ .sverige-personnummer-view,
4016
+ .iban-view,
4017
+ .united-kingdom-national-health-service-number-view,
4018
+ .united-kingdom-national-insurance-number-view,
4019
+ .united-states-social-security-number-view,
4020
+ .aotearoa-national-health-index-view,
4021
+ .pilipinas-philhealth-identification-number-view,
4022
+ .brasil-cartao-nacional-de-saude-view,
4023
+ .schweiz-ahv-nummer-view,
4024
+ .canada-social-insurance-number-view,
4025
+ .hanguk-jumin-deungnok-beonho-view,
4026
+ .nihon-kojin-bango-view,
4027
+ .bharat-aadhaar-view,
4028
+ .yisrael-teudat-zehut-view,
4029
+ .south-africa-identity-number-view,
4030
+ .mexico-clave-unica-de-registro-de-poblacion-view,
4031
+ .singapore-national-registration-identity-card-view,
4032
+ .osterreich-sozialversicherungsnummer-view,
4033
+ .magyarorszag-taj-szam-view,
4034
+ .luxembourg-matricule-view,
4035
+ .zhongguo-jumin-shenfenzheng-haoma-view,
4036
+ .rossiya-snils-view,
4037
+ .turkiye-tc-kimlik-numarasi-view,
4038
+ .argentina-codigo-unico-de-identificacion-laboral-view,
4039
+ .ukrayina-reyestratsiyniy-nomer-oblikovoyi-kartky-platnyka-podatkiv-view,
4040
+ .indonesia-nomor-induk-kependudukan-view,
4041
+ .prathet-thai-lek-prajam-tua-prachachon-view,
4042
+ .chile-rol-unico-nacional-view,
4043
+ .taiwan-guomin-shenfenzheng-tongyi-bianhao-view,
4044
+ .hong-kong-identity-card-view,
4045
+ .iran-kod-e-melli-view,
4046
+ .as-saudiyah-raqm-al-huwiyah-al-wataniyah-view,
4047
+ .malaysia-kad-pengenalan-view,
4048
+ .viet-nam-can-cuoc-cong-dan-view,
4049
+ .pakistan-computerized-national-identity-card-view,
4050
+ .uruguay-cedula-de-identidad-view,
4051
+ .ecuador-cedula-de-identidad-view,
4052
+ .colombia-cedula-de-ciudadania-view,
4053
+ .australia-tax-file-number-view,
4054
+ .nigeria-national-identification-number-view,
4055
+ .misr-al-raqm-al-qawmi-view
4056
+ ) {
4057
+ overflow-wrap: anywhere;
4058
+ }
4059
+
4060
+ /* overflow-wrap is inherited, so this reaches whatever the consumer puts in an item (dd, span, strong). */
4061
+ :where(.summary-list, .summary-list-item, .description-list) {
4062
+ overflow-wrap: anywhere;
4063
+ }
4064
+
4065
+ :where(
4066
+ .grid,
4067
+ .flex-stack,
4068
+ .grail-layout,
4069
+ .summary-list,
4070
+ .summary-list-item,
4071
+ .description-list,
4072
+ .form,
4073
+ .editable-form,
4074
+ .field,
4075
+ .input-group,
4076
+ .button-group,
4077
+ .radio-group,
4078
+ .checkbox-group,
4079
+ .toggle-group,
4080
+ .tag-group,
4081
+ .split-view,
4082
+ .photo-pack,
4083
+ .data-filter-form,
4084
+ .action-bar,
4085
+ .tool-bar,
4086
+ .menu-bar,
4087
+ .tab-bar
4088
+ ) > :where(*) {
4089
+ min-inline-size: 0;
4090
+ }
4091
+
4092
+ /* ============================================================================
4093
+ * Helper packages — layout and look, shared verbatim by all themes.
4094
+ *
4095
+ * The data grid, kanban board, Gantt chart and calendar view are wide by nature.
4096
+ * Each root scrolls sideways inside its own box and its table sizes to its content,
4097
+ * so a narrow screen scrolls the table instead of wrapping every cell to a letter
4098
+ * (the overflow guard above lets cells break anywhere, which is right for prose and
4099
+ * wrong for a table that has a scroller). The toolbar controls of all four helpers
4100
+ * share the data grid's look, every button has a >=24px target (WCAG 2.2 2.5.8), and
4101
+ * the Gantt chart draws its bars from `data-in-range`, a milestone as a diamond and
4102
+ * today as a rule. :where() keeps specificity at zero, so any consumer rule wins.
4103
+ * ========================================================================= */
4104
+
4105
+ :where(.data-grid, .kanban-board, .gantt-chart, .calendar-view) {
4106
+ max-inline-size: 100%;
4107
+ overflow-x: auto;
4108
+ }
4109
+
4110
+ :where(.data-grid table, .kanban-board table, .gantt-chart table, .calendar-view table) {
4111
+ inline-size: max-content;
4112
+ min-inline-size: 100%;
4113
+ }
4114
+
4115
+ :where(.kanban-board-export, .gantt-chart-export, .gantt-chart-zoom, .calendar-view-export,
4116
+ .calendar-view-toolbar, .calendar-view-nav, .calendar-view-switcher) {
4117
+ display: flex;
4118
+ flex-wrap: wrap;
4119
+ gap: var(--lily-space-sm);
4120
+ align-items: center;
4121
+ margin-block-end: var(--lily-space-sm);
4122
+ }
4123
+
4124
+ :where(.kanban-board-search, .gantt-chart-search, .calendar-view-search) {
4125
+ padding: var(--lily-space-xs) var(--lily-space-sm);
4126
+ border: var(--border) solid var(--lily-border);
4127
+ border-radius: var(--lily-radius-sm);
4128
+ background-color: var(--lily-surface);
4129
+ color: var(--lily-text);
4130
+ font: inherit;
4131
+ min-block-size: 24px;
4132
+ }
4133
+
4134
+ :where(.kanban-board-export-button,
4135
+ .kanban-board-add-button,
4136
+ .kanban-board-undo-button,
4137
+ .kanban-board-collapse-button,
4138
+ .kanban-board-lane-toggle,
4139
+ .kanban-board-move-button,
4140
+ .gantt-chart-export-button,
4141
+ .gantt-chart-zoom-in-button,
4142
+ .gantt-chart-zoom-out-button,
4143
+ .gantt-chart-collapse-button,
4144
+ .gantt-chart-collapse-all-button,
4145
+ .gantt-chart-expand-all-button,
4146
+ .gantt-chart-save-button,
4147
+ .gantt-chart-cancel-button,
4148
+ .calendar-view-export-button,
4149
+ .calendar-view-previous-button,
4150
+ .calendar-view-next-button,
4151
+ .calendar-view-today-button,
4152
+ .calendar-view-switcher-button) {
4153
+ padding: var(--lily-space-xs) var(--lily-space-md);
4154
+ border: var(--border) solid var(--lily-border);
4155
+ border-radius: var(--lily-radius-sm);
4156
+ background-color: var(--lily-surface);
4157
+ color: var(--lily-text);
4158
+ font: inherit;
4159
+ cursor: pointer;
4160
+ min-inline-size: 24px;
4161
+ min-block-size: 24px;
4162
+ }
4163
+
4164
+ :where(.kanban-board-export-button:disabled,
4165
+ .kanban-board-add-button:disabled,
4166
+ .kanban-board-undo-button:disabled,
4167
+ .gantt-chart-export-button:disabled,
4168
+ .gantt-chart-zoom-in-button:disabled,
4169
+ .gantt-chart-zoom-out-button:disabled,
4170
+ .calendar-view-export-button:disabled,
4171
+ .calendar-view-previous-button[aria-disabled="true"],
4172
+ .calendar-view-next-button[aria-disabled="true"]) {
4173
+ opacity: 0.5;
4174
+ cursor: not-allowed;
4175
+ }
4176
+
4177
+ :where(.calendar-view-switcher-button[aria-pressed="true"]) {
4178
+ background-color: var(--color-base-300);
4179
+ font-weight: 600;
4180
+ }
4181
+
4182
+ :where(.kanban-board-status, .gantt-chart-status, .calendar-view-status) {
4183
+ margin-block-start: var(--lily-space-sm);
4184
+ font-size: 0.875em;
4185
+ opacity: 0.8;
4186
+ }
4187
+
4188
+ :where(.calendar-view-event) {
4189
+ display: block;
4190
+ padding: 0 var(--lily-space-xs);
4191
+ border-radius: var(--lily-radius-sm);
4192
+ background-color: color-mix(in srgb, var(--color-primary) 18%, transparent);
4193
+ font-size: 0.75rem;
4194
+ }
4195
+
4196
+ :where(.gantt-table-th) {
4197
+ min-inline-size: 2rem;
4198
+ padding-inline: 0.25rem;
4199
+ font-size: 0.75rem;
4200
+ text-align: center;
4201
+ white-space: nowrap;
4202
+ }
4203
+
4204
+ :where(.gantt-table-th[scope="row"], .gantt-table-th:first-child) {
4205
+ min-inline-size: 10rem;
4206
+ padding-inline: var(--lily-space-sm);
4207
+ font-size: inherit;
4208
+ text-align: start;
4209
+ white-space: normal;
4210
+ }
4211
+
4212
+ :where(.gantt-table-td) {
4213
+ min-block-size: 1.7rem;
4214
+ padding: 0;
4215
+ }
4216
+
4217
+ :where(.gantt-table-td[data-in-range]) {
4218
+ background-color: var(--color-primary);
4219
+ /* Text inside a bar (the Alpine port's milestone label, say) sits on the primary fill. */
4220
+ color: var(--color-primary-content);
4221
+ }
4222
+
4223
+ :where(.gantt-table-td[data-in-range][data-milestone]) {
4224
+ clip-path: polygon(50% 8%, 92% 50%, 50% 92%, 8% 50%);
4225
+ }
4226
+
4227
+ :where(.gantt-table-td[data-today]) {
4228
+ border-inline-start: 2px solid var(--color-accent);
4229
+ }
4230
+
4231
+ /* The time zone picker's options are long ("UTC+10:30 – Lord Howe Daylight Time"): size the list to its widest
4232
+ option up to a cap, then wrap, rather than clipping the name or running off a phone. */
4233
+ :where(.time-zone-picker-list) {
4234
+ inline-size: max-content;
4235
+ max-inline-size: min(26rem, 90vw);
4236
+ max-block-size: min(24rem, 70vh);
4237
+ overflow-y: auto;
4238
+ }
4239
+
4240
+ :where(.time-zone-picker-option) {
4241
+ overflow-wrap: anywhere;
4242
+ }
4243
+
4244
+ /* ============================================================================
4245
+ * Overflow navigation — shared verbatim by all themes.
4246
+ *
4247
+ * The `overflow` mode of `navigation-menu` (contract: components/navigation-menu/index.md).
4248
+ * With no script the list simply wraps, so every link stays reachable at 320 CSS pixels
4249
+ * (WCAG 1.4.10) and the "More" item stays `hidden`. With the script a ResizeObserver moves
4250
+ * the links that do not fit into the More list. That list is in normal flow (position
4251
+ * static, never absolute), so opening it pushes the content below down and never covers it
4252
+ * (WCAG 2.4.11). Every target is at least 24 x 24 CSS pixels (WCAG 2.5.8). :where() keeps
4253
+ * specificity at zero, so any consumer rule wins.
4254
+ * ========================================================================= */
4255
+
4256
+ :where(.navigation-menu-list) {
4257
+ display: flex;
4258
+ flex: 1 1 auto;
4259
+ flex-wrap: wrap;
4260
+ align-items: flex-start;
4261
+ gap: 0.25rem 0.5rem;
4262
+ min-inline-size: 0;
4263
+ margin: 0;
4264
+ padding: 0;
4265
+ list-style: none;
4266
+ }
4267
+
4268
+ :where(.navigation-menu-list > li > a, .navigation-menu-more-list > li > a) {
4269
+ display: inline-block;
4270
+ min-inline-size: 24px;
4271
+ min-block-size: 24px;
4272
+ }
4273
+
4274
+ :where(.navigation-menu-more) {
4275
+ position: static;
4276
+ }
4277
+
4278
+ :where(.navigation-menu-more[hidden], .navigation-menu-more-list[hidden]) {
4279
+ display: none;
4280
+ }
4281
+
4282
+ :where(.navigation-menu-more-button) {
4283
+ min-inline-size: 24px;
4284
+ min-block-size: 24px;
4285
+ padding: 0.25rem 0.5rem;
4286
+ font: inherit;
4287
+ color: inherit;
4288
+ background: transparent;
4289
+ border: 1px solid currentcolor;
4290
+ cursor: pointer;
4291
+ }
4292
+
4293
+ :where(.navigation-menu-more-list) {
4294
+ position: static;
4295
+ margin: 0.25rem 0 0;
4296
+ padding: 0;
4297
+ list-style: none;
4298
+ }
4299
+
4300
+ /* ============================================================================
4301
+ * Container queries — shared verbatim by all themes.
4302
+ *
4303
+ * A component answers to the space it is given, not to the window: a summary
4304
+ * list in a narrow aside on a wide screen needs the narrow layout, which the
4305
+ * viewport query above cannot know. The three grail-layout regions are the
4306
+ * containers because their width comes from a grid track (`minmax(0, 1fr)`), so
4307
+ * inline-size containment cannot collapse them. `.card` is deliberately not a
4308
+ * container: in a shrink-to-fit parent (a flex row, an inline grid) containment
4309
+ * would collapse it to nothing. A component outside a grail region has no
4310
+ * container and keeps its wide layout. :where() keeps specificity at zero, so
4311
+ * any consumer rule wins.
4312
+ * ========================================================================= */
4313
+
4314
+ :where(.grail-layout-left-aside, .grail-layout-center-main, .grail-layout-right-aside) {
4315
+ container-type: inline-size;
4316
+ }
4317
+
4318
+ /* grail-layout collapse (contract: components/grail-layout/AGENTS.md). The page shell answers to the
4319
+ window, so these are viewport queries: the grail-layout root is not a container, only its regions are.
4320
+ Priority: the right aside collapses first (at lg it drops below main, full width), then the left aside
4321
+ (at md everything is one column). Every step keeps DOM order = visual order (header, left aside, main,
4322
+ right aside, footer), so reading and tab order match what is seen (WCAG 1.3.2, 2.4.3); nothing is
4323
+ hidden, so all content stays reachable. */
4324
+ @media (max-width: 64rem) {
4325
+ :where(.grail-layout) {
4326
+ grid-template-areas:
4327
+ "header header"
4328
+ "left main"
4329
+ "right right"
4330
+ "footer footer";
4331
+ grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
4332
+ grid-template-rows: auto auto auto auto;
4333
+ }
4334
+ }
4335
+
4336
+ @media (max-width: 48rem) {
4337
+ :where(.grail-layout) {
4338
+ grid-template-areas:
4339
+ "header"
4340
+ "left"
4341
+ "main"
4342
+ "right"
4343
+ "footer";
4344
+ grid-template-columns: minmax(0, 1fr);
4345
+ grid-template-rows: auto auto auto auto auto;
4346
+ }
4347
+ }
4348
+
4349
+ @container (max-width: 30rem) {
4350
+ :where(.summary-list) {
4351
+ grid-template-columns: minmax(0, 1fr);
4352
+ row-gap: 0.25rem;
4353
+ }
4354
+
4355
+ :where(.kanban-table-td) {
4356
+ min-width: 10rem;
4357
+ }
4358
+
4359
+ :where(.data-table, .calendar-table, .kanban-table, .gantt-table) :where(th, td) {
4360
+ padding-inline: 0.5rem;
4361
+ }
4362
+ }
4363
+
4364
+ /* ============================================================================
4365
+ * Focus not obscured — shared verbatim by all themes.
4366
+ *
4367
+ * WCAG 2.2 SC 2.4.11 (Focus Not Obscured, Minimum): a focused control is never
4368
+ * entirely hidden by author-created content, such as a bar fixed to the top or
4369
+ * bottom of the viewport. The browser scrolls a focused control into view, but
4370
+ * only as far as the edge of the viewport, which is where a fixed bar sits.
4371
+ * `scroll-padding` moves that edge in by the bar's height.
4372
+ *
4373
+ * Contract: whatever fixes a bar to the viewport (sticky-promo-banner, a
4374
+ * theme's or an app's own fixed header, a mobile bottom navigation) sets the
4375
+ * bar's height on the root element:
4376
+ *
4377
+ * --lily-fixed-bar-block-start: 4rem; (a bar fixed at the top)
4378
+ * --lily-fixed-bar-block-end: 3rem; (a bar fixed at the bottom)
4379
+ *
4380
+ * With both bars, set both. The defaults are 0px, so a page without a fixed bar
4381
+ * is unchanged. Specificity is zero (`:where`), so an app's own
4382
+ * `scroll-padding` wins.
4383
+ * ========================================================================= */
4384
+
4385
+ :where(html) {
4386
+ scroll-padding-block: var(--lily-fixed-bar-block-start, 0px) var(--lily-fixed-bar-block-end, 0px);
4387
+ }
4388
+
4389
+ /* ============================================================================
4390
+ * Text size and motion preferences — shared verbatim by all themes.
4391
+ *
4392
+ * The text-size-picker sets `data-text-size` on the root and the motion-picker
4393
+ * sets `data-motion`; neither styles anything itself. These rules are what make
4394
+ * the choice visible.
4395
+ *
4396
+ * Text size: the seven steps scale the root font size, and every theme sizes in
4397
+ * `rem`, so the whole page follows (WCAG 1.4.4). `normal` is 100% (the viewer's
4398
+ * own browser setting), and the scale is percentages of that, never pixels, so
4399
+ * a viewer who raised their browser font size keeps it. The steps below
4400
+ * `normal` are the viewer's explicit choice.
4401
+ *
4402
+ * Motion: `data-motion="reduce"` shortens every animation and transition to
4403
+ * 0.01ms instead of removing it. The end state still arrives and `animationend`
4404
+ * / `transitionend` still fire, so nothing that depends on them breaks and no
4405
+ * information is lost: a spinner's `role="status"` text, a disclosure's open
4406
+ * state and a toast's content are untouched. Scrolling is instant.
4407
+ * ========================================================================= */
4408
+
4409
+ :where(html[data-text-size="smallest"]) { font-size: 80%; }
4410
+ :where(html[data-text-size="smaller"]) { font-size: 90%; }
4411
+ :where(html[data-text-size="small"]) { font-size: 95%; }
4412
+ :where(html[data-text-size="normal"]) { font-size: 100%; }
4413
+ :where(html[data-text-size="large"]) { font-size: 110%; }
4414
+ :where(html[data-text-size="larger"]) { font-size: 125%; }
4415
+ :where(html[data-text-size="largest"]) { font-size: 150%; }
4416
+
4417
+ :where(html[data-motion="reduce"]) {
4418
+ scroll-behavior: auto;
4419
+ }
4420
+ :where(html[data-motion="reduce"], html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after) {
4421
+ animation-duration: 0.01ms !important;
4422
+ animation-iteration-count: 1 !important;
4423
+ animation-delay: 0s !important;
4424
+ transition-duration: 0.01ms !important;
4425
+ transition-delay: 0s !important;
4426
+ scroll-behavior: auto !important;
4427
+ }
4428
+
4429
+ /* ============================================================================
4430
+ * Forced colours and contrast preference — shared verbatim by all themes.
4431
+ *
4432
+ * Forced colours (Windows High Contrast, `forced-colors: active`): the browser
4433
+ * replaces every colour with a system colour, which erases anything a control
4434
+ * told apart by background alone. These rules give such controls a border,
4435
+ * keep the focus ring, and mark selected and current items with `Highlight`
4436
+ * and `SelectedItem` rather than a tint (WCAG 1.4.1, 2.4.7, 1.4.11).
4437
+ *
4438
+ * Contrast preference (`prefers-contrast: more`): a heavier border on controls
4439
+ * and a thicker focus ring. Colours are not changed here; a theme's colours are
4440
+ * its author's decision.
4441
+ * ========================================================================= */
4442
+
4443
+ @media (forced-colors: active) {
4444
+ :where(button, input, select, textarea, summary, [role="button"], [role="option"], [role="tab"], [role="menuitem"], [role="switch"], [role="checkbox"], [role="radio"], [class$="-button"]) {
4445
+ border: 1px solid ButtonBorder;
4446
+ }
4447
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4448
+ outline: 3px solid Highlight;
4449
+ outline-offset: 2px;
4450
+ }
4451
+ :where([aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-active]) {
4452
+ background: SelectedItem;
4453
+ color: SelectedItemText;
4454
+ forced-color-adjust: none;
4455
+ }
4456
+ :where([aria-current]:not([aria-current="false"])) {
4457
+ outline: 2px solid Highlight;
4458
+ outline-offset: -2px;
4459
+ }
4460
+ :where(:disabled, [aria-disabled="true"]) {
4461
+ border-color: GrayText;
4462
+ color: GrayText;
4463
+ }
4464
+ }
4465
+
4466
+ @media (prefers-contrast: more) {
4467
+ :where(button, input, select, textarea, [role="button"], [class$="-button"]) {
4468
+ border-width: 2px;
4469
+ border-style: solid;
4470
+ border-color: currentColor;
4471
+ }
4472
+ :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="option"], [role="tab"], [class$="-button"]):focus-visible {
4473
+ outline-width: 3px;
4474
+ outline-offset: 2px;
4475
+ }
4476
+ }
4477
+
4478
+ /* ============================================================================
4479
+ * Writing systems — shared verbatim by all themes.
4480
+ *
4481
+ * A theme names its Latin font stack (`--lily-font-body-latin`). This section
4482
+ * builds `--lily-font-body` from it, with the system fonts of the element's
4483
+ * script in front: Chinese (Simplified, Traditional, Hong Kong), Japanese,
4484
+ * Korean, Arabic script (Arabic, Persian, Urdu in Nastaliq), Hebrew, the Indic
4485
+ * scripts the site's locales use (Devanagari, Bengali, Gujarati, Gurmukhi,
4486
+ * Kannada, Tamil, Telugu), Thai, Lao and Khmer. Han characters are shared by
4487
+ * Chinese and Japanese but drawn differently, so the language picks the font,
4488
+ * not the script.
4489
+ *
4490
+ * `--lily-font-body` is re-declared on every element with a `lang`, so a
4491
+ * `<p lang="ja">` inside an English page gets Japanese fonts and a
4492
+ * `<span lang="en">` inside it gets none. A language not listed here keeps the
4493
+ * Latin stack, whose final generic family the browser resolves per language.
4494
+ *
4495
+ * `--lily-line-height-body` is 1.5, and 1.75 for scripts with tall marks above
4496
+ * and below the line (Arabic script, the Indic scripts, Thai, Lao, Khmer).
4497
+ * Elements with a `lang` use it; the app's body text should too.
4498
+ *
4499
+ * To change a theme's font, set `--lily-font-body-latin`; to change a script's,
4500
+ * set `--lily-font-script` under `:lang(...)`. Overriding `--lily-font-body`
4501
+ * itself still works on the element you set it on.
4502
+ * ========================================================================= */
4503
+
4504
+ :where(:root, [lang]) {
4505
+ --lily-font-body: var(--lily-font-script,) var(--lily-font-body-latin);
4506
+ --lily-line-height-body: 1.5;
4507
+ }
4508
+
4509
+ :where([lang]) {
4510
+ --lily-font-script: initial;
4511
+ line-height: var(--lily-line-height-body);
4512
+ }
4513
+
4514
+ :where([lang|="zh"], [lang|="wuu"]) {
4515
+ --lily-font-script: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",;
4516
+ }
4517
+ :where([lang|="zh-Hant"], [lang="zh-TW"], [lang|="zh-Hant-TW"]) {
4518
+ --lily-font-script: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC",;
4519
+ }
4520
+ :where([lang="zh-HK"], [lang="zh-MO"], [lang|="zh-Hant-HK"], [lang|="yue"]) {
4521
+ --lily-font-script: "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", "Noto Sans CJK HK", "Source Han Sans HC",;
4522
+ }
4523
+ :where([lang|="ja"]) {
4524
+ --lily-font-script: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP",;
4525
+ }
4526
+ :where([lang|="ko"]) {
4527
+ --lily-font-script: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR",;
4528
+ }
4529
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"]) {
4530
+ --lily-font-script: "Segoe UI", "Geeza Pro", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma,;
4531
+ }
4532
+ :where([lang|="ur"]) {
4533
+ --lily-font-script: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma,;
4534
+ }
4535
+ :where([lang|="he"], [lang|="yi"]) {
4536
+ --lily-font-script: "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew",;
4537
+ }
4538
+ :where([lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"]) {
4539
+ --lily-font-script: "Nirmala UI", "Kohinoor Devanagari", "Devanagari Sangam MN", "Noto Sans Devanagari",;
4540
+ }
4541
+ :where([lang|="bn"], [lang|="as"]) {
4542
+ --lily-font-script: "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Noto Sans Bengali",;
4543
+ }
4544
+ :where([lang|="gu"]) {
4545
+ --lily-font-script: "Nirmala UI", "Kohinoor Gujarati", "Gujarati Sangam MN", "Noto Sans Gujarati",;
4546
+ }
4547
+ :where([lang|="pa"]) {
4548
+ --lily-font-script: "Nirmala UI", "Gurmukhi Sangam MN", "Gurmukhi MN", "Noto Sans Gurmukhi",;
4549
+ }
4550
+ :where([lang|="kn"]) {
4551
+ --lily-font-script: "Nirmala UI", "Kannada Sangam MN", "Noto Sans Kannada",;
4552
+ }
4553
+ :where([lang|="ta"]) {
4554
+ --lily-font-script: "Nirmala UI", "Tamil Sangam MN", "Noto Sans Tamil",;
4555
+ }
4556
+ :where([lang|="te"]) {
4557
+ --lily-font-script: "Nirmala UI", "Kohinoor Telugu", "Telugu Sangam MN", "Noto Sans Telugu",;
4558
+ }
4559
+ :where([lang|="th"]) {
4560
+ --lily-font-script: "Leelawadee UI", Thonburi, "Noto Sans Thai",;
4561
+ }
4562
+ :where([lang|="lo"]) {
4563
+ --lily-font-script: "Leelawadee UI", "Lao Sangam MN", "Noto Sans Lao",;
4564
+ }
4565
+ :where([lang|="km"]) {
4566
+ --lily-font-script: "Khmer UI", "Khmer Sangam MN", "Noto Sans Khmer",;
4567
+ }
4568
+ :where([lang|="ar"], [lang|="fa"], [lang|="ps"], [lang|="ku"], [lang|="sd"], [lang|="ug"], [lang|="ur"],
4569
+ [lang|="hi"], [lang|="mr"], [lang|="ne"], [lang|="bh"], [lang|="sa"], [lang|="mai"], [lang|="bn"],
4570
+ [lang|="as"], [lang|="gu"], [lang|="pa"], [lang|="kn"], [lang|="ta"], [lang|="te"], [lang|="th"],
4571
+ [lang|="lo"], [lang|="km"]) {
4572
+ --lily-line-height-body: 1.75;
4573
+ }