@beehexa/design-rules 2611.5.4 → 2611.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 (190) hide show
  1. package/README.md +1 -1
  2. package/dist/catalog.json +908 -208
  3. package/dist/docs/public/_redirects +2 -2
  4. package/dist/docs/scripts/color-pairs.mjs +4 -0
  5. package/dist/docs/src/components/ChildPages.astro +8 -1
  6. package/dist/docs/src/components/ColorDemo.astro +12 -9
  7. package/dist/docs/src/components/DocsFooter.astro +1 -1
  8. package/dist/docs/src/components/HelpOptions.astro +8 -6
  9. package/dist/docs/src/components/IconBrowser.astro +2 -2
  10. package/dist/docs/src/components/LayoutDemo.astro +178 -99
  11. package/dist/docs/src/components/NativeControlsDemo.astro +165 -40
  12. package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
  13. package/dist/docs/src/components/PhaseTable.astro +9 -5
  14. package/dist/docs/src/components/RoleGuides.astro +30 -22
  15. package/dist/docs/src/components/RuleDemo.astro +111 -0
  16. package/dist/docs/src/components/ShapeDemo.astro +24 -36
  17. package/dist/docs/src/components/SiteHeader.astro +1 -1
  18. package/dist/docs/src/components/SpacingDemo.astro +2 -0
  19. package/dist/docs/src/components/SwitchToggle.astro +13 -0
  20. package/dist/docs/src/components/SystemAreas.astro +9 -6
  21. package/dist/docs/src/components/TableOfContents.astro +1 -1
  22. package/dist/docs/src/components/TokenSearch.astro +64 -0
  23. package/dist/docs/src/components/TokenTable.astro +14 -9
  24. package/dist/docs/src/components/TypeDemo.astro +1 -1
  25. package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
  26. package/dist/docs/src/content/components/button/accessibility.mdx +3 -3
  27. package/dist/docs/src/content/components/button/changelog.mdx +1 -1
  28. package/dist/docs/src/content/components/button/examples.mdx +10 -23
  29. package/dist/docs/src/content/components/button/meta.json +5 -1
  30. package/dist/docs/src/content/components/button/usage.mdx +13 -26
  31. package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
  32. package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
  33. package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
  34. package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
  35. package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
  36. package/dist/docs/src/content/components/switch/examples.mdx +35 -0
  37. package/dist/docs/src/content/components/switch/meta.json +9 -0
  38. package/dist/docs/src/content/components/switch/usage.mdx +44 -0
  39. package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
  40. package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
  41. package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +1 -1
  42. package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
  43. package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
  44. package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
  45. package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
  46. package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  47. package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
  48. package/dist/docs/src/content/foundations/styles/border.mdx +5 -6
  49. package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +31 -7
  50. package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
  51. package/dist/docs/src/content/foundations/styles/color/palette.mdx +2 -2
  52. package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
  53. package/dist/docs/src/content/foundations/styles/data-visualization.mdx +33 -78
  54. package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
  55. package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
  56. package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
  57. package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
  58. package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
  59. package/dist/docs/src/content/foundations/styles/interaction-states.mdx +40 -14
  60. package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
  61. package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
  62. package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
  63. package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
  64. package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
  65. package/dist/docs/src/content/foundations/styles/motion.mdx +2 -0
  66. package/dist/docs/src/content/foundations/styles/radius.mdx +38 -27
  67. package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
  68. package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
  69. package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
  70. package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
  71. package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
  72. package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
  73. package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
  74. package/dist/docs/src/content/get-started/content.mdx +25 -3
  75. package/dist/docs/src/content/get-started/design.mdx +34 -15
  76. package/dist/docs/src/content/get-started/develop.mdx +83 -28
  77. package/dist/docs/src/content/get-started/get-help.mdx +21 -5
  78. package/dist/docs/src/content/get-started/index.mdx +11 -12
  79. package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
  80. package/dist/docs/src/content/tools/application-content.mdx +52 -13
  81. package/dist/docs/src/content/tools/editors.mdx +36 -28
  82. package/dist/docs/src/content/tools/mermaid.mdx +42 -9
  83. package/dist/docs/src/content/tools/vueflow.mdx +66 -7
  84. package/dist/docs/src/content-vi/components/button/accessibility.mdx +51 -0
  85. package/dist/docs/src/content-vi/components/button/changelog.mdx +6 -0
  86. package/dist/docs/src/content-vi/components/button/examples.mdx +27 -0
  87. package/dist/docs/src/content-vi/components/button/usage.mdx +31 -0
  88. package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
  89. package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
  90. package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
  91. package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
  92. package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
  93. package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
  94. package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
  95. package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
  96. package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
  97. package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
  98. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
  99. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
  100. package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +1 -1
  101. package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
  102. package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
  103. package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
  104. package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
  105. package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  106. package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
  107. package/dist/docs/src/content-vi/foundations/styles/border.mdx +5 -5
  108. package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +30 -7
  109. package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
  110. package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +2 -2
  111. package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +5 -5
  112. package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +31 -1
  113. package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +2 -2
  114. package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
  115. package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
  116. package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
  117. package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +0 -3
  118. package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +54 -12
  119. package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
  120. package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
  121. package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
  122. package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +3 -3
  123. package/dist/docs/src/content-vi/foundations/styles/motion.mdx +2 -0
  124. package/dist/docs/src/content-vi/foundations/styles/radius.mdx +38 -27
  125. package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
  126. package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
  127. package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
  128. package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
  129. package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
  130. package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
  131. package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
  132. package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
  133. package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
  134. package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
  135. package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
  136. package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
  137. package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
  138. package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
  139. package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
  140. package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
  141. package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
  142. package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
  143. package/dist/docs/src/content-vi/tools/index.mdx +7 -0
  144. package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
  145. package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
  146. package/dist/docs/src/content-vi/tools/vueflow.mdx +189 -0
  147. package/dist/docs/src/content.config.ts +12 -1
  148. package/dist/docs/src/lib/dates.ts +8 -0
  149. package/dist/docs/src/lib/i18n.ts +1 -0
  150. package/dist/docs/src/lib/navigation.ts +6 -4
  151. package/dist/docs/src/lib/token-descriptions-vi.ts +247 -11
  152. package/dist/docs/src/lib/tokens.ts +3 -0
  153. package/dist/docs/src/styles/chrome.css +8 -8
  154. package/dist/docs/src/styles/color.css +31 -31
  155. package/dist/docs/src/styles/docs.css +55 -40
  156. package/dist/docs/src/styles/elevation.css +1 -1
  157. package/dist/docs/src/styles/global.css +13 -4
  158. package/dist/docs/src/styles/icons.css +16 -16
  159. package/dist/docs/src/styles/kit.css +29 -10
  160. package/dist/docs/src/styles/layout.css +16 -11
  161. package/dist/docs/src/styles/logos.css +24 -24
  162. package/dist/docs/src/styles/opacity.css +3 -3
  163. package/dist/docs/src/styles/rules.css +24 -0
  164. package/dist/docs/src/styles/shapes.css +2 -2
  165. package/dist/docs/src/styles/tokens.css +228 -147
  166. package/dist/docs/src/styles/tokens.js +88 -62
  167. package/dist/docs/src/styles/typography.css +9 -9
  168. package/dist/docs/src/styles/zindex.css +6 -5
  169. package/dist/docs/tokens/color.json +24 -14
  170. package/dist/docs/tokens/components.json +39 -0
  171. package/dist/docs/tokens/content.json +103 -10
  172. package/dist/docs/tokens/diagram.json +490 -49
  173. package/dist/docs/tokens/editor.json +128 -22
  174. package/dist/docs/tokens/flow.json +412 -80
  175. package/dist/docs/tokens/layout.json +13 -4
  176. package/dist/docs/tokens/motion.json +11 -0
  177. package/dist/docs/tokens/radius.json +9 -9
  178. package/dist/docs/tokens/renderer.json +8 -0
  179. package/dist/docs/tokens/resize.json +84 -15
  180. package/dist/docs/tokens/scrollbar.json +42 -7
  181. package/dist/docs/tokens/size.json +6 -6
  182. package/dist/docs/tokens/spacing.json +1 -1
  183. package/dist/docs/tokens/switch.json +314 -59
  184. package/dist/docs/tokens/typography.json +1 -1
  185. package/dist/docs/tokens/visualization.json +465 -53
  186. package/dist/docs/tokens/z-index.json +0 -10
  187. package/dist/index.js +908 -208
  188. package/package.json +1 -1
  189. package/dist/docs/src/brand/structure-proposal.md +0 -227
  190. package/dist/docs/src/content/components/button/code.mdx +0 -34
@@ -1,5 +1,3 @@
1
- @import './scrollbars.css';
2
-
3
1
  /* Docs pages: sidebar, content, table of contents. Colour roles come from chrome.css, sizes
4
2
  from the tokens. The page follows the app frame (Foundations › Layout): CSS starts from the
5
3
  smallest window and adds to it at the md (768 px), lg (1024 px) and xl (1440 px) breakpoints. */
@@ -23,12 +21,12 @@
23
21
  /* Sidebar: sections, groups, pages, sub-pages. Items are 32 px high, 4 px apart and 8 px
24
22
  from the sidebar edges, so the icons and labels start 20 px from the window edge, in line
25
23
  with the logo (App frame). */
26
- .sidebar { position: sticky; top: var(--header-bottom); align-self: start; height: calc(100vh - var(--header-bottom)); padding: var(--bh-space-100) var(--bh-space-100) var(--bh-space-400); overflow-y: auto; border-right: 1px solid var(--c-line); background: var(--c-bg); }
24
+ .sidebar { position: sticky; top: var(--header-bottom); align-self: start; height: calc(100vh - var(--header-bottom)); padding: var(--bh-space-100) var(--bh-space-100) var(--bh-space-400); overflow-y: auto; border-right: var(--bh-border-width-default) solid var(--c-line); background: var(--c-bg); }
27
25
  .sidebar ul { margin: 0; padding: 0; list-style: none; }
28
26
  .sidebar li + li { margin-top: var(--bh-space-050); }
29
27
  .sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--bh-space-100); padding-left: var(--bh-space-150); }
30
28
  .sidebar-title { color: var(--c-ink); text-decoration: none; font: var(--bh-font-heading-small); }
31
- .sidebar-close { display: inline-grid; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); padding: 0; border: 0; border-radius: var(--bh-radius-control); color: var(--c-muted); background: none; cursor: pointer; }
29
+ .sidebar-close { display: inline-grid; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); padding: 0; border: 0; border-radius: var(--bh-radius-075); color: var(--c-muted); background: none; cursor: pointer; }
32
30
  .sidebar-label { margin: 0 0 var(--bh-space-050); padding-inline: var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-label-small); }
33
31
  .sidebar-item, .sidebar-child { position: relative; overflow: hidden; display: flex; align-items: center; gap: var(--bh-space-100); min-height: var(--bh-size-control-default); border-radius: var(--bh-radius-075); color: var(--c-ink); text-decoration: none; font: var(--bh-font-label-default); }
34
32
  .sidebar-item { padding: 0 var(--bh-space-150); }
@@ -38,7 +36,7 @@
38
36
  /* The gold bar is a straight strip; the item's rounded corners clip its ends. */
39
37
  :is(.sidebar-item[aria-current='page'], .sidebar-child[aria-current='page'], .sidebar-branch .sidebar-item[data-has-current][aria-expanded='false'])::before { content: ""; position: absolute; inset: 0 auto 0 var(--bar-x, 0); width: var(--bh-border-width-selected); background: var(--c-gold); }
40
38
  .sidebar-item[aria-current='page']:hover, .sidebar-child[aria-current='page']:hover { background: var(--c-selected-hover); }
41
- .sidebar-chevron { flex: none; color: var(--c-muted); transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
39
+ .sidebar-chevron { flex: none; color: var(--c-muted); transition: transform var(--bh-motion-expand); }
42
40
  .sidebar-item[aria-expanded='true'] .sidebar-chevron { transform: rotate(90deg); }
43
41
 
44
42
  .sidebar-item:focus-visible, .sidebar-child:focus-visible, .sidebar-section-toggle:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: calc(var(--bh-border-width-focused) * -1); }
@@ -52,10 +50,10 @@
52
50
  .sidebar-section-toggle:hover { background: var(--c-hover); }
53
51
  .sidebar-section-toggle .sidebar-chevron { margin-left: auto; }
54
52
  .sidebar-section-toggle[aria-expanded='true'] .sidebar-chevron { transform: rotate(90deg); }
55
- .sidebar-branch { margin: var(--bh-space-050) 0 var(--bh-space-200) var(--bh-space-250); box-shadow: inset 1px 0 0 var(--c-line); }
53
+ .sidebar-branch { margin: var(--bh-space-050) 0 var(--bh-space-200) var(--bh-space-250); box-shadow: inset var(--bh-border-width-default) 0 0 var(--c-line); }
56
54
  /* Group names are not links: smaller, lighter, no hover, and a rule above each group after the
57
55
  first, so they read as headings of the list below and never as one more page. */
58
- .sidebar-branch .sidebar-group + .sidebar-group { margin-top: var(--bh-space-150); padding-top: var(--bh-space-150); border-top: 1px solid var(--c-line); }
56
+ .sidebar-branch .sidebar-group + .sidebar-group { margin-top: var(--bh-space-150); padding-top: var(--bh-space-150); border-top: var(--bh-border-width-default) solid var(--c-line); }
59
57
  .sidebar-branch .sidebar-label { margin: 0 0 var(--bh-space-050); padding: var(--bh-space-050) var(--bh-space-150) 0 var(--bh-space-200); color: var(--c-muted); cursor: default; user-select: none; font: var(--bh-font-label-small); }
60
58
  /* On the tree, the item's box stands 4 px off the guide line and keeps all four corners; the gold
61
59
  bar sits on the guide line itself, outside the box, so the corners never cut it. Text stays 16 px
@@ -64,16 +62,23 @@
64
62
  .sidebar-branch .sidebar-item { padding: 0 var(--bh-space-150); }
65
63
  /* A closed folder that holds the current page keeps the gold bar, so the place is never lost. */
66
64
  .sidebar-branch[hidden], .sidebar-children[hidden] { display: none; }
67
- .sidebar-children { margin: var(--bh-space-050) 0 var(--bh-space-050) var(--bh-space-200) !important; box-shadow: inset 1px 0 0 var(--c-line); }
65
+ .sidebar-children { margin: var(--bh-space-050) 0 var(--bh-space-050) var(--bh-space-200) !important; box-shadow: inset var(--bh-border-width-default) 0 0 var(--c-line); }
68
66
  .sidebar-child { padding: 0 var(--bh-space-100); }
69
67
  .sidebar-child[aria-current='page'] { background: var(--c-selected); }
70
68
 
69
+ /* Scroll bars inside the sidebar and table of contents stay hidden until the pointer is over
70
+ them, then show as a thin line. The page's own scroll bar is left to the browser. */
71
+ .sidebar, .toc, .toc-menu nav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
72
+ .sidebar:hover, .toc:hover, .toc-menu nav:hover { scrollbar-color: var(--c-line) transparent; }
73
+ .sidebar::-webkit-scrollbar, .toc::-webkit-scrollbar { width: 6px; }
74
+ .sidebar::-webkit-scrollbar-thumb, .toc::-webkit-scrollbar-thumb { border-radius: var(--bh-radius-050); background: transparent; }
75
+ .sidebar:hover::-webkit-scrollbar-thumb, .toc:hover::-webkit-scrollbar-thumb { background: var(--c-line); }
71
76
 
72
77
  /* Table of contents. */
73
78
  .toc { position: sticky; top: var(--header-bottom); align-self: start; display: none; max-height: calc(100vh - var(--header-bottom)); padding: var(--page-margin) 0; overflow-y: auto; }
74
79
  .toc ul, .toc-menu ul { margin: 0; padding: 0; list-style: none; }
75
80
  .toc-title { margin: 0 0 var(--bh-space-100); color: var(--c-muted); font: var(--bh-font-heading-xsmall); }
76
- .toc a { display: block; padding: var(--bh-space-050) 0 var(--bh-space-050) calc(var(--bh-space-150) - var(--bh-space-025)); border-left: 2px solid var(--c-line); color: var(--c-muted); text-decoration: none; font: var(--bh-font-label-default); }
81
+ .toc a { display: block; padding: var(--bh-space-050) 0 var(--bh-space-050) calc(var(--bh-space-150) - var(--bh-space-025)); border-left: var(--bh-border-width-selected) solid var(--c-line); color: var(--c-muted); text-decoration: none; font: var(--bh-font-label-default); }
77
82
  .toc .toc-depth-3 a { padding-left: calc(var(--bh-space-300) - var(--bh-space-025)); }
78
83
  .toc a:hover { color: var(--c-ink); }
79
84
  .toc a[aria-current] { border-left-color: var(--c-gold); color: var(--c-ink); }
@@ -81,19 +86,19 @@
81
86
  /* Main column. The page header and the text run the full column. */
82
87
  .docs-main { min-width: 0; padding: var(--page-margin) 0 var(--bh-space-800); }
83
88
  .docs-main p { color: inherit; }
84
- .docs-header { padding-bottom: var(--bh-space-300); border-bottom: 1px solid var(--c-line); }
89
+ .docs-header { padding-bottom: var(--bh-space-300); border-bottom: var(--bh-border-width-default) solid var(--c-line); }
85
90
  .docs-header:has(.component-tabs) { padding-bottom: 0; }
86
91
  .breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0 0 var(--bh-space-100); padding: 0; list-style: none; color: var(--c-muted); font: var(--bh-font-body-small); }
87
92
  .breadcrumb li + li::before { content: '/'; margin: 0 var(--bh-space-100); }
88
93
  .breadcrumb a { color: var(--c-muted); text-decoration: none; }
89
- .breadcrumb a:hover { color: var(--c-ink); text-decoration: underline; }
94
+ .breadcrumb a:is(:hover, :focus-visible) { color: var(--c-ink); }
90
95
  .breadcrumb [aria-current] { color: var(--c-ink); }
91
96
  .docs-header h1 { margin: 0 0 var(--bh-space-050); font: var(--bh-font-heading-xlarge); }
92
97
  .docs-lede { margin: 0 0 var(--bh-space-200); color: var(--c-muted) !important; font: var(--bh-font-body-large); }
93
98
  .docs-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100) var(--bh-space-150); margin: 0; color: var(--c-muted) !important; font: var(--bh-font-body-small); }
94
99
 
95
100
  /* Release phase chip. */
96
- /* Release phase label, learned from GitHub Primer's Label: a pill with a 1 px border in the role
101
+ /* Release phase label: a pill with a 1 px border in the role
97
102
  colour, text in the role's fg colour and no fill, 20 px tall. The words carry the meaning;
98
103
  the colour only helps scanning. */
99
104
  .status-badge { display: inline-flex; align-items: center; height: var(--bh-space-250); padding: 0 var(--bh-space-075); border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-050); color: var(--bh-color-text); background: transparent; text-decoration: none; white-space: nowrap; font: var(--bh-font-label-small); }
@@ -102,7 +107,7 @@
102
107
  .status-beta { border-color: var(--bh-color-border-info); color: var(--bh-color-text-info); }
103
108
  .status-ga { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
104
109
  .status-deprecated { border-color: var(--bh-color-border-warning); color: var(--bh-color-text-warning); }
105
- a.status-badge:hover { text-decoration: underline; }
110
+ a.status-badge:is(:hover, :focus-visible) { background: var(--bh-color-background-neutral-hover); }
106
111
 
107
112
  /* Component tabs: the only in-page tabs on the site. */
108
113
  .component-tabs { display: flex; gap: var(--bh-space-300); margin: var(--bh-space-300) 0 0; padding: 0; border-top: 0; color: inherit; overflow-x: auto; }
@@ -120,17 +125,20 @@ a.status-badge:hover { text-decoration: underline; }
120
125
  .prose h2 { margin: var(--bh-space-600) 0 var(--bh-space-250); font: var(--bh-font-heading-large); } /* 20 px between a section heading and its content */
121
126
  .prose h3 { margin: var(--bh-space-400) 0 var(--bh-space-150); font: var(--bh-font-heading-medium); }
122
127
  .prose h4 { margin: var(--bh-space-300) 0 var(--bh-space-100); font: var(--bh-font-heading-small); }
123
- .prose a { color: var(--c-link); text-underline-offset: 2px; }
128
+ .prose a { color: var(--c-link); }
129
+ /* Persistent non-colour distinction without restoring implicit underlines. */
130
+ .prose :is(p, li, td, th, figcaption) a:not(.ant-btn) { font-weight: var(--bh-font-weight-semibold); }
131
+ .prose a:is(:hover, :focus-visible) { color: var(--bh-color-link-hover); }
124
132
  .prose :not(pre) > code { overflow-wrap: anywhere; padding: 0 var(--bh-space-050); border-radius: var(--bh-radius-050); background: var(--c-surf); font-family: var(--bh-font-family-mono); }
125
133
  .prose pre { margin: 0 0 var(--bh-space-200); padding: var(--bh-space-200); border-radius: var(--bh-radius-100); overflow-x: auto; font: var(--bh-font-code-default); }
126
134
  .prose pre.astro-code { background-color: var(--c-code-bg) !important; } /* Shiki writes its own background inline */
127
135
  .prose pre code { font: inherit; } /* the browser sets code to its own monospace */
128
- .prose kbd { padding: 0 var(--bh-space-050); border: 1px solid var(--c-line); border-radius: var(--bh-radius-025); background: var(--c-surf); font: var(--bh-font-label-small); }
136
+ .prose kbd { padding: 0 var(--bh-space-050); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-025); background: var(--c-surf); font: var(--bh-font-label-small); }
129
137
  .prose table { width: 100%; margin: 0 0 var(--bh-space-200); border-collapse: collapse; font: var(--bh-font-body-default); }
130
- .prose th, .prose td { padding: var(--bh-space-100) var(--bh-space-150); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: baseline; } /* first lines share a baseline, even when code sits next to text */
138
+ .prose th, .prose td { padding: var(--bh-space-100) var(--bh-space-150); border-bottom: var(--bh-border-width-default) solid var(--c-line); text-align: left; vertical-align: baseline; } /* first lines share a baseline, even when code sits next to text */
131
139
  .prose th { color: var(--c-muted); font: var(--bh-font-label-small); }
132
140
  .prose td code { overflow-wrap: anywhere; } /* long token names wrap instead of widening the page */
133
- .prose blockquote, .callout { margin: 0 0 var(--bh-space-300); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: 1px solid var(--c-note-line); border-radius: var(--bh-radius-100); background: var(--c-note-bg); }
141
+ .prose blockquote, .callout { margin: 0 0 var(--bh-space-300); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-note-line); border-radius: var(--bh-radius-100); background: var(--c-note-bg); }
134
142
  .prose blockquote p, .callout p { margin: 0; }
135
143
  .callout-title { margin-bottom: var(--bh-space-050) !important; font: var(--bh-font-heading-xsmall); }
136
144
 
@@ -139,33 +147,33 @@ a.status-badge:hover { text-decoration: underline; }
139
147
  .token-value > code { align-self: baseline; } /* the value, not the swatch, sets the baseline of the row */
140
148
  .token-table td:nth-child(2) { min-width: 6.5rem; } /* short values such as 2.75rem stay on one line */
141
149
  .token-resolved { display: block; color: var(--c-muted); font: var(--bh-font-body-small); }
142
- .swatch { flex: none; width: 1rem; height: 1rem; border: 1px solid var(--c-line); border-radius: var(--bh-radius-050); }
150
+ .swatch { flex: none; width: 1rem; height: 1rem; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-050); }
143
151
  .swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--bh-space-200); margin: var(--bh-space-300) 0; padding: 0 !important; list-style: none; font: var(--bh-font-body-small); }
144
152
  .swatch-grid li { display: grid; gap: var(--bh-space-050); margin: 0 !important; }
145
- .swatch-large { height: var(--bh-space-800); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); }
153
+ .swatch-large { height: var(--bh-space-800); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
146
154
 
147
155
  /* Cards. */
148
156
  .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-200); padding: 0 !important; list-style: none; }
149
157
  .card-grid > li { margin: 0 !important; }
150
- .card { display: block; height: 100%; padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink) !important; background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); text-decoration: none; transition: border-color 150ms ease; font: var(--bh-font-heading-small); }
158
+ .card { display: block; height: 100%; padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink) !important; background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); text-decoration: none; transition: border-color var(--bh-motion-control); font: var(--bh-font-heading-small); }
151
159
  .card:hover { border-color: var(--bh-color-border-bold); }
152
160
  .card p { margin: var(--bh-space-050) 0 var(--bh-space-150); color: var(--c-muted) !important; font: var(--bh-font-body-default); }
153
161
  .child-pages h2 { margin-top: var(--bh-space-500); }
154
162
 
155
163
  /* Previous / next and page meta. */
156
164
  .pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin-top: var(--bh-space-600); }
157
- .pager-link { display: grid; gap: var(--bh-space-050); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink); text-decoration: none; }
165
+ .pager-link { display: grid; gap: var(--bh-space-050); padding: calc(var(--bh-space-200) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-ink); text-decoration: none; }
158
166
  .pager-link:hover { border-color: var(--c-muted); }
159
167
  .pager-link span { color: var(--c-muted); font: var(--bh-font-body-small); }
160
168
  .pager-link b { font: var(--bh-font-heading-small); }
161
169
  .pager-next { text-align: right; }
162
- .page-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--bh-space-100) var(--bh-space-300); margin-top: var(--bh-space-300); padding-top: var(--bh-space-200); border-top: 1px solid var(--c-line); color: var(--c-muted); font: var(--bh-font-body-small); }
170
+ .page-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--bh-space-100) var(--bh-space-300); margin-top: var(--bh-space-300); padding-top: var(--bh-space-200); border-top: var(--bh-border-width-default) solid var(--c-line); color: var(--c-muted); font: var(--bh-font-body-small); }
163
171
  .page-meta a { color: var(--c-muted); }
164
172
  .page-meta a:hover { color: var(--c-ink); }
165
173
 
166
174
  /* Pages listed before their content is written. */
167
- .in-development { display: flex; gap: var(--bh-space-200); padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: 1px dashed var(--c-muted); border-radius: var(--bh-radius-100); background: var(--c-surf); }
168
- .in-development-icon { flex: none; display: grid; place-items: center; width: var(--bh-space-500); height: var(--bh-space-500); border-radius: var(--bh-radius-100); color: var(--bh-color-text-on-brand); background: var(--bh-color-background-brand-subtle); box-shadow: inset 0 0 0 1px var(--bh-color-border-brand-subtle); }
175
+ .in-development { display: flex; gap: var(--bh-space-200); padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: var(--bh-border-width-default) dashed var(--c-muted); border-radius: var(--bh-radius-100); background: var(--c-surf); }
176
+ .in-development-icon { flex: none; display: grid; place-items: center; width: var(--bh-space-500); height: var(--bh-space-500); border-radius: var(--bh-radius-100); color: var(--bh-color-text-on-brand); background: var(--bh-color-background-brand-subtle); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-brand-subtle); }
169
177
  .in-development p { margin: 0 0 var(--bh-space-100); }
170
178
  .in-development p:last-child { margin-bottom: 0; }
171
179
  .in-development-title { font: var(--bh-font-heading-small); }
@@ -173,14 +181,14 @@ a.status-badge:hover { text-decoration: underline; }
173
181
  .in-development ul { margin: 0 0 var(--bh-space-150); }
174
182
 
175
183
  /* Component examples. The preview follows the page theme, so it shows the component in both. */
176
- .code-example { margin: var(--bh-space-300) 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
177
- .code-example figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 1px solid var(--c-line); font: var(--bh-font-heading-xsmall); }
184
+ .code-example { margin: var(--bh-space-300) 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
185
+ .code-example figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: var(--bh-border-width-default) solid var(--c-line); font: var(--bh-font-heading-xsmall); }
178
186
  .code-preview { display: flex; flex-wrap: wrap; gap: var(--bh-space-150); align-items: center; padding: var(--bh-space-400) var(--bh-space-300); background: var(--bh-color-surface-subtle); }
179
187
  .prose .code-example pre { margin: 0; border-radius: var(--bh-radius-0); }
180
188
 
181
189
  /* Demo styles for component examples, until the component library ships. */
182
190
 
183
- /* Label and state label, learned from GitHub Primer (@primer/react Label and StateLabel).
191
+ /* Label and state label.
184
192
  Label: outlined pill, 1 px border in the role's emphasis colour, text in its fg colour, no
185
193
  fill; 20 px tall with 6 px padding (large: 24 px, 8 px). State label: solid emphasis fill,
186
194
  white text and an icon. */
@@ -199,7 +207,7 @@ a.status-badge:hover { text-decoration: underline; }
199
207
 
200
208
  /* Below lg (1024 px) the side navigation is a drawer and a bar under the header opens it and
201
209
  the folded table of contents. */
202
- .docs-mobilebar { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom); box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); height: var(--header-h); padding: 0 var(--page-margin); border-bottom: 1px solid var(--c-line); background: var(--c-bg); font: var(--bh-font-label-default); }
210
+ .docs-mobilebar { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom); box-sizing: content-box; display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-150); height: var(--header-h); padding: 0 var(--page-margin); border-bottom: var(--bh-border-width-default) solid var(--c-line); background: var(--c-bg); font: var(--bh-font-label-default); }
203
211
  .drawer-open { display: flex; align-items: center; gap: var(--bh-space-050); min-width: 0; height: var(--bh-size-control-default); padding: 0; border: 0; color: var(--c-ink); background: none; font: inherit; cursor: pointer; }
204
212
  .drawer-open-label { overflow: hidden; color: var(--c-muted); text-overflow: ellipsis; white-space: nowrap; }
205
213
  .drawer-open-label b { color: var(--c-ink); }
@@ -207,12 +215,12 @@ a.status-badge:hover { text-decoration: underline; }
207
215
  .toc-menu summary { display: flex; align-items: center; height: var(--bh-size-control-default); color: var(--c-muted); cursor: pointer; list-style: none; }
208
216
  .toc-menu summary::-webkit-details-marker { display: none; }
209
217
  .toc-menu summary::after { content: ' ▾'; }
210
- .toc-menu nav { position: absolute; top: calc(100% + var(--bh-space-050)); right: 0; width: min(300px, calc(100vw - 2 * var(--page-margin))); max-height: 60vh; padding: var(--bh-space-050); overflow-y: auto; border-radius: var(--bh-radius-050); background: var(--bh-color-surface-overlay); box-shadow: var(--c-shadow); }
218
+ .toc-menu nav { position: absolute; top: calc(100% + var(--bh-space-050)); right: 0; width: min(300px, calc(100vw - 2 * var(--page-margin))); max-height: 60vh; padding: var(--bh-space-050); overflow-y: auto; border-radius: var(--bh-radius-100); background: var(--bh-color-surface-overlay); box-shadow: var(--c-shadow); }
211
219
  .toc-menu a { display: flex; align-items: center; min-height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-050); color: var(--c-ink); text-decoration: none; font: var(--bh-font-label-default); }
212
220
  .toc-menu .toc-depth-3 a { padding-left: var(--bh-space-300); color: var(--c-muted); }
213
221
  .toc-menu a:hover { background: var(--bh-color-surface-overlay-hover); }
214
222
 
215
- .sidebar { --c-hover: var(--bh-color-surface-overlay-hover); --c-selected: var(--bh-color-surface-overlay-selected); --c-selected-hover: var(--bh-color-surface-overlay-selected-hover); position: fixed; z-index: var(--bh-z-index-modal); top: 0; bottom: 0; left: 0; width: min(var(--sidebar-w), 86vw); height: auto; border-right: 0; background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); transform: translateX(-105%); transition: transform 200ms ease; visibility: hidden; }
223
+ .sidebar { --c-hover: var(--bh-color-surface-overlay-hover); --c-selected: var(--bh-color-surface-overlay-selected); --c-selected-hover: var(--bh-color-surface-overlay-selected-hover); position: fixed; z-index: var(--bh-z-index-modal); top: 0; bottom: 0; left: 0; width: min(var(--sidebar-w), 86vw); height: auto; border-right: 0; background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); transform: translateX(-105%); transition: transform var(--bh-motion-modal-enter); visibility: hidden; }
216
224
  body[data-drawer] .sidebar { transform: none; visibility: visible; }
217
225
  .drawer-backdrop { display: none; }
218
226
  .drawer-backdrop:not([hidden]) { position: fixed; z-index: var(--bh-z-index-modal); inset: 0; display: block; background: var(--bh-color-surface-scrim); }
@@ -220,7 +228,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
220
228
  /* Tables marked stackable are one card per row in a narrow column, and a table once the column is 720 px wide. */
221
229
  .prose table.stackable, .prose table.stackable tbody, .prose table.stackable tr, .prose table.stackable td { display: block; width: 100%; }
222
230
  .prose table.stackable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
223
- .prose table.stackable tr { margin-bottom: var(--bh-space-150); padding: var(--bh-space-050) 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); }
231
+ .prose table.stackable tr { margin-bottom: var(--bh-space-150); padding: var(--bh-space-050) 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); }
224
232
  /* The cell stays one block, so text, code and links inside it flow as one line of text; the label sits in the left column. */
225
233
  .prose table.stackable td { position: relative; display: block; min-height: var(--bh-space-500); --label-w: 7rem; padding: var(--bh-space-100) var(--bh-space-150) var(--bh-space-100) calc(var(--label-w) + 2 * var(--bh-space-150)); border: 0; }
226
234
  .prose table.stackable td::before { content: attr(data-label); position: absolute; top: var(--bh-space-100); left: var(--bh-space-150); width: 7rem; color: var(--c-muted); font: var(--bh-font-label-small); }
@@ -229,7 +237,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
229
237
  .prose table.stackable thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: table-header-group; }
230
238
  .prose table.stackable tbody { display: table-row-group; width: auto; }
231
239
  .prose table.stackable tr { display: table-row; width: auto; margin: 0; padding: 0; border: 0; border-radius: var(--bh-radius-0); }
232
- .prose table.stackable td { display: table-cell; width: auto; min-height: 0; padding: var(--bh-space-100) var(--bh-space-150); border-bottom: 1px solid var(--c-line); }
240
+ .prose table.stackable td { display: table-cell; width: auto; min-height: 0; padding: var(--bh-space-100) var(--bh-space-150); border-bottom: var(--bh-border-width-default) solid var(--c-line); }
233
241
  .prose table.stackable td::before { content: none; }
234
242
  }
235
243
 
@@ -262,24 +270,24 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
262
270
 
263
271
  /* Get started. */
264
272
  .role-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin-bottom: var(--bh-space-200); }
265
- .role-card { padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); }
273
+ .role-card { padding: calc(var(--bh-space-300) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); background: var(--bh-color-surface); box-shadow: var(--bh-elevation-shadow-raised); }
266
274
  .prose .role-card h3 { margin: 0 0 var(--bh-space-050); font: var(--bh-font-heading-small); }
267
275
  .prose .role-card h3 a { color: var(--c-ink); text-decoration: none; }
268
- .prose .role-card h3 a:hover { text-decoration: underline; }
276
+ .prose .role-card h3 a:is(:hover, :focus-visible) { color: var(--bh-color-link-hover); }
269
277
  .prose .role-card p { margin: 0 0 var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-body-default); }
270
- .prose .role-card ul { margin: 0; padding: var(--bh-space-150) 0 0; border-top: 1px solid var(--c-line); list-style: none; }
278
+ .prose .role-card ul { margin: 0; padding: var(--bh-space-150) 0 0; border-top: var(--bh-border-width-default) solid var(--c-line); list-style: none; }
271
279
  .prose .role-card li { margin: 0; font: var(--bh-font-body-default); }
272
280
  .prose .role-card li + li { margin-top: var(--bh-space-050); }
273
281
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
274
282
  .card-meta { color: var(--c-muted); font: var(--bh-font-label-small); }
275
- .prose .help-list { display: grid; gap: 0; margin: 0 0 var(--bh-space-200); padding: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); list-style: none; }
283
+ .prose .help-list { display: grid; gap: 0; margin: 0 0 var(--bh-space-200); padding: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); list-style: none; }
276
284
  .prose .help-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-050); margin: 0; padding: var(--bh-space-150) var(--bh-space-200); }
277
- .prose .help-list li + li { border-top: 1px solid var(--c-line); }
285
+ .prose .help-list li + li { border-top: var(--bh-border-width-default) solid var(--c-line); }
278
286
  .help-list b { }
279
287
  .help-list span { color: var(--c-muted); }
280
288
 
281
289
  /* Dark button, used for downloads. */
282
- .prose .button-dark { display: inline-flex; flex: none; align-items: center; justify-content: center; height: var(--bh-size-control-large); padding: 0 var(--bh-space-200); border-radius: var(--bh-radius-control); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); text-decoration: none; font: var(--bh-font-label-default); }
290
+ .prose .button-dark { display: inline-flex; flex: none; align-items: center; justify-content: center; height: var(--bh-size-control-large); padding: 0 var(--bh-space-200); border-radius: var(--bh-radius-075); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); text-decoration: none; font: var(--bh-font-label-default); }
283
291
  .prose .button-dark:hover { background: var(--bh-color-background-neutral-bold-hover); }
284
292
 
285
293
  /* Inside the content column: these follow the column's width (container queries). */
@@ -291,7 +299,7 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
291
299
  /* A 40 px button on small screens, the default 32 px from md. */
292
300
  @media (min-width: 768px) { .prose .button-dark { justify-content: flex-start; height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); } }
293
301
  /* Under /vi/, a page shown in English says so above its title. */
294
- .lang-notice { margin: 0 0 var(--bh-space-150); padding: calc(var(--bh-space-100) - var(--bh-border-width-default)) calc(var(--bh-space-150) - var(--bh-border-width-default)); border: 1px solid var(--c-note-line); border-radius: var(--bh-radius-100); color: var(--c-ink); background: var(--c-note-bg); font: var(--bh-font-body-default); }
302
+ .lang-notice { margin: 0 0 var(--bh-space-150); padding: calc(var(--bh-space-100) - var(--bh-border-width-default)) calc(var(--bh-space-150) - var(--bh-border-width-default)); border: var(--bh-border-width-default) solid var(--c-note-line); border-radius: var(--bh-radius-100); color: var(--c-ink); background: var(--c-note-bg); font: var(--bh-font-body-default); }
295
303
 
296
304
  /* Moving between pages: the page fades across instead of flashing white, while the header and
297
305
  the sidebar stay put (cross-document view transitions; browsers without them load as before). */
@@ -301,5 +309,12 @@ body[data-drawer] .sidebar { transform: none; visibility: visible; }
301
309
  ::view-transition-group(site-header), ::view-transition-group(docs-sidebar) { animation: none; }
302
310
  ::view-transition-old(site-header), ::view-transition-old(docs-sidebar) { display: none; }
303
311
  ::view-transition-new(site-header), ::view-transition-new(docs-sidebar) { animation: none; }
304
- ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
312
+ ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--bh-motion-duration-fast); }
305
313
  @media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
314
+ .child-pages .card p { margin-bottom: 0; }
315
+ /* All design tokens: filter box above the tables. */
316
+ .token-search { margin: var(--bh-space-300) 0 0; }
317
+ .token-search .kit-input { width: 100%; max-width: 32rem; }
318
+ /* Rows the filter hides; stackable tables set display on every row. */
319
+ .prose tr[hidden], .prose table.stackable tr[hidden] { display: none; }
320
+ .token-search-status { min-height: 1.25rem; margin: var(--bh-space-100) 0 0; color: var(--c-muted); font: var(--bh-font-body-small); }
@@ -1,7 +1,7 @@
1
1
  /* Illustrations for the Elevation page. Surfaces, shadows, edges and sizes are tokens only. */
2
2
  .bh-scope-light, .bh-scope-dark { color: var(--bh-color-text); background: var(--bh-color-surface-page); }
3
3
 
4
- /* Hero: the three levels from the front and from the side (as on Material's elevation page). */
4
+ /* Hero: the three levels from the front and from the side. */
5
5
  .el-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: var(--bh-space-300) 0; }
6
6
  @container prose (min-width: 640px) { .el-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
7
7
  .el-view { display: grid; grid-template-rows: 1fr auto; margin: 0; overflow: hidden; border: var(--bh-border-width-default) solid var(--bh-color-border); border-radius: var(--bh-radius-100); }
@@ -34,15 +34,24 @@ html { scroll-behavior: smooth; scroll-padding-top: var(--bh-space-1000); scroll
34
34
  (16 px by default), because every size token is in rem. */
35
35
  body { margin: 0; min-width: 320px; overflow-x: hidden; font: var(--bh-font-body-default); }
36
36
  /* Bold inside text is semibold: 700 belongs to the display styles only. */
37
+ /* Inter character variants, on everywhere (decided 27/10/2026): cv05 gives lowercase l a tail and
38
+ cv08 gives uppercase I serifs, so l, I and 1 never look alike in names, IDs and keys.
39
+ Every text style is applied with the `font` shorthand, and the shorthand resets
40
+ font-feature-settings to normal, so inheritance alone can't carry the features. The token
41
+ font.features holds them, and tokens.css (generated, imported before this file) sets them on
42
+ every element from that one variable. Change the variable, not the property:
43
+ `--bh-font-features: "cv05", "cv08", "zero"` adds the slashed zero to a code value.
44
+ JetBrains Mono has no cv05 or cv08, so code is not affected. */
37
45
  b, strong { font-weight: var(--bh-font-weight-semibold); }
38
46
  h1, h2, h3, h4, h5, h6 { font-weight: var(--bh-font-weight-semibold); }
39
47
  code, kbd, pre, samp { font-family: var(--bh-font-family-mono); }
40
48
  button, input { font: inherit; }
41
49
  button, a { -webkit-tap-highlight-color: transparent; }
42
- a { color: inherit; }
50
+ a { color: inherit; text-decoration: none; }
51
+ :root a.bh-link-underline { text-decoration: underline; text-underline-offset: var(--bh-space-025); }
43
52
  svg { display: block; }
44
53
 
45
- .skip-link { position: fixed; z-index: var(--bh-z-index-toast); top: -5rem; left: 1rem; display: inline-flex; align-items: center; height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-control); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); font: var(--bh-font-label-default); }
54
+ .skip-link { position: fixed; z-index: var(--bh-z-index-toast); top: -5rem; left: 1rem; display: inline-flex; align-items: center; height: var(--bh-size-control-default); padding: 0 var(--bh-space-150); border-radius: var(--bh-radius-075); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); font: var(--bh-font-label-default); }
46
55
  .skip-link:focus { top: 1rem; }
47
56
  h1, h2, h3, p { margin-top: 0; }
48
57
  h1, h2, h3 { text-wrap: balance; }
@@ -67,8 +76,8 @@ h1, h2, h3 { text-wrap: balance; }
67
76
  - Rows in lists and menus sit next to each other, so they grow to 44 px instead. */
68
77
  @media (pointer: coarse) {
69
78
  /* :root raises these rules above the components' own sizes, whichever file loads last. */
70
- :root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button) { position: relative; }
71
- :root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button)::before { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, var(--bh-size-target-touch)); height: max(100%, var(--bh-size-target-touch)); transform: translate(-50%, -50%); }
79
+ :root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button, .bh-switch) { position: relative; }
80
+ :root :is(.icon-button, .sidebar-close, .drawer-open, .header-brand, .toc-menu summary, .bh-button, .bh-switch)::before { content: ''; position: absolute; top: 50%; left: 50%; width: max(100%, var(--bh-size-target-touch)); height: max(100%, var(--bh-size-target-touch)); transform: translate(-50%, -50%); }
72
81
  /* 32 px buttons 12 px apart: their 44 px tap areas meet without overlapping. */
73
82
  :root .header-tools { gap: var(--bh-space-150); }
74
83
  :root :is(.sidebar-item, .sidebar-child, .sidebar-section-toggle, .toc-menu a, .header-menu nav a) { min-height: var(--bh-size-target-touch); }
@@ -5,7 +5,7 @@
5
5
 
6
6
  /* ---------- Library ---------- */
7
7
  .ib { margin: 0 0 var(--bh-space-400); }
8
- .ib-controls { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom, 49px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--bh-space-150) var(--bh-space-200); padding: var(--bh-space-150) 0; border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
8
+ .ib-controls { position: sticky; z-index: var(--bh-z-index-sticky); top: var(--header-bottom, 49px); display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--bh-space-150) var(--bh-space-200); padding: var(--bh-space-150) 0; border-bottom: var(--bh-border-width-default) solid var(--c-line); background: var(--c-bg); }
9
9
  .ib-search { position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 0; }
10
10
  .ib-search-icon { position: absolute; left: var(--bh-space-150); color: var(--bh-color-icon-subtle); pointer-events: none; }
11
11
  .ib-search input { width: 100%; padding: 0 var(--bh-space-150) 0 var(--bh-space-400); }
@@ -20,8 +20,8 @@
20
20
  .ib-size input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
21
21
  .ib-size span { display: grid; place-items: center; min-width: 44px; height: var(--bh-size-control-default); padding: 0 var(--bh-space-100); border: var(--bh-border-width-default) solid var(--bh-color-border-bold); color: var(--c-muted); background: var(--bh-color-surface); font: var(--bh-font-label-default); font-variant-numeric: tabular-nums; }
22
22
  .ib-size + .ib-size span { margin-left: -1px; }
23
- .ib-size:first-of-type span { border-radius: var(--bh-radius-050) 0 0 var(--bh-radius-050); }
24
- .ib-size:last-of-type span { border-radius: 0 var(--bh-radius-050) var(--bh-radius-050) 0; }
23
+ .ib-size:first-of-type span { border-radius: var(--bh-radius-100) 0 0 var(--bh-radius-100); }
24
+ .ib-size:last-of-type span { border-radius: 0 var(--bh-radius-100) var(--bh-radius-100) 0; }
25
25
  .ib-size input:checked + span { position: relative; color: var(--bh-color-text-inverse); border-color: var(--bh-color-background-neutral-bold); background: var(--bh-color-background-neutral-bold); }
26
26
  .ib-size input:focus-visible + span { position: relative; z-index: 1; outline: var(--bh-border-width-focused) solid var(--bh-color-border-focus); outline-offset: var(--bh-state-focus-offset); }
27
27
  .ib-size input:not(:checked):hover + span { background: var(--c-hover); }
@@ -29,15 +29,15 @@
29
29
  .prose .ib-status { margin: var(--bh-space-200) 0 var(--bh-space-150); color: var(--c-muted); font: var(--bh-font-body-small); font-variant-numeric: tabular-nums; }
30
30
  .prose .ib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--bh-space-100); margin: 0; padding: 0; list-style: none; }
31
31
  .prose .ib-grid li { margin: 0; padding: 0; content-visibility: auto; contain-intrinsic-size: auto 104px; }
32
- .ib-icon { display: grid; grid-template-rows: 40px auto; justify-items: center; align-items: center; align-content: start; gap: var(--bh-space-075); width: 100%; height: 100%; min-height: 104px; padding: var(--bh-space-150) var(--bh-space-075) var(--bh-space-100); border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-surface); cursor: pointer; }
33
- .ib-icon svg { width: var(--ib-size, 24px); height: var(--ib-size, 24px); }
32
+ .ib-icon { display: grid; grid-template-rows: 40px auto; justify-items: center; align-items: center; align-content: start; gap: var(--bh-space-075); width: 100%; height: 100%; min-height: 104px; padding: var(--bh-space-150) var(--bh-space-075) var(--bh-space-100); border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-surface); cursor: pointer; }
33
+ .ib-icon svg { width: var(--ib-size, var(--bh-size-icon-large)); height: var(--ib-size, var(--bh-size-icon-large)); }
34
34
  .ib-name { display: -webkit-box; max-width: 100%; overflow: hidden; color: var(--c-muted); font: var(--bh-font-body-small); text-align: center; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
35
35
  .ib-icon:hover { background: var(--c-hover); }
36
36
  .ib-icon:hover .ib-name { color: var(--c-ink); }
37
37
  .ib-icon[data-copied] { border-color: var(--bh-color-border-success); background: var(--bh-color-background-success-subtle); }
38
38
  .ib-icon[data-copied] .ib-name { color: var(--bh-color-text-success); }
39
- .prose .ib-empty { margin: var(--bh-space-300) 0; padding: var(--bh-space-300); border: 1px dashed var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-muted); text-align: center; }
40
- .ib-toast { position: fixed; z-index: var(--bh-z-index-toast); left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: var(--bh-space-100) var(--bh-space-200); border-radius: var(--bh-radius-100); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); box-shadow: var(--c-shadow); font: var(--bh-font-label-default); opacity: 0; transform: translate(-50%, 8px); transition: opacity 150ms ease, transform 150ms ease; pointer-events: none; }
39
+ .prose .ib-empty { margin: var(--bh-space-300) 0; padding: var(--bh-space-300); border: var(--bh-border-width-default) dashed var(--c-line); border-radius: var(--bh-radius-100); color: var(--c-muted); text-align: center; }
40
+ .ib-toast { position: fixed; z-index: var(--bh-z-index-toast); left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: var(--bh-space-100) var(--bh-space-200); border-radius: var(--bh-radius-100); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); box-shadow: var(--c-shadow); font: var(--bh-font-label-default); opacity: 0; transform: translate(-50%, 8px); transition: opacity var(--bh-motion-overlay-enter), transform var(--bh-motion-overlay-enter); pointer-events: none; }
41
41
  .ib-toast:empty { padding: 0; }
42
42
  .ib-toast[data-show] { opacity: 1; transform: translate(-50%, 0); }
43
43
  .prose .ib-credit { margin: var(--bh-space-300) 0 0; color: var(--c-muted); font: var(--bh-font-body-small); }
@@ -52,7 +52,7 @@
52
52
 
53
53
  /* ---------- Illustrations ---------- */
54
54
  .ic-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
55
- .ic-size { display: grid; grid-template-rows: auto 1fr; margin: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
55
+ .ic-size { display: grid; grid-template-rows: auto 1fr; margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
56
56
  .ic-size-stage { display: grid; place-items: center; height: 96px; color: var(--bh-color-icon); background: var(--bh-color-surface-subtle); }
57
57
  .ic-size figcaption { display: grid; align-content: start; gap: var(--bh-space-025); padding: var(--bh-space-150) var(--bh-space-200) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-small); }
58
58
  .ic-size figcaption b { color: var(--c-ink); font: var(--bh-font-heading-xsmall); }
@@ -60,7 +60,7 @@
60
60
  @container prose (min-width: 640px) { .ic-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
61
61
 
62
62
  .ic-panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
63
- .ic-panel { display: grid; grid-template-rows: auto 1fr; margin: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
63
+ .ic-panel { display: grid; grid-template-rows: auto 1fr; margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
64
64
  .ic-panel-stage { display: grid; place-items: center; min-height: 112px; padding: var(--bh-space-300) var(--bh-space-200); background: var(--bh-color-surface-subtle); }
65
65
  .ic-panel figcaption { padding: var(--bh-space-150) var(--bh-space-200); color: var(--c-muted); font: var(--bh-font-body-default); }
66
66
  .ic-panel figcaption b { color: var(--c-ink); }
@@ -69,13 +69,13 @@
69
69
  /* Alignment: a guide through the centre of the line box. */
70
70
  .ic-line { position: relative; display: inline-flex; align-items: center; gap: var(--bh-space-050); padding: 0 var(--bh-space-100); color: var(--c-ink); font: var(--bh-font-label-default); }
71
71
  .ic-line svg { color: var(--bh-color-icon); }
72
- .ic-line.is-guided { box-shadow: inset 0 0 0 1px var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
73
- .ic-line.is-guided::before, .ic-line.is-guided::after { content: ''; position: absolute; top: 50%; width: 16px; border-top: 1px dashed var(--bh-color-border-info); }
72
+ .ic-line.is-guided { box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
73
+ .ic-line.is-guided::before, .ic-line.is-guided::after { content: ''; position: absolute; top: 50%; width: 16px; border-top: var(--bh-border-width-default) dashed var(--bh-color-border-info); }
74
74
  .ic-line.is-guided::before { right: 100%; }
75
75
  .ic-line.is-guided::after { left: 100%; }
76
76
  .is-zoom > * { zoom: 2; }
77
77
  .ic-multi { display: flex; align-items: flex-start; gap: var(--bh-space-100); max-width: 320px; color: var(--c-ink); font: var(--bh-font-body-default); }
78
- .ic-multi-icon { display: flex; align-items: center; height: 1lh; box-shadow: inset 0 0 0 1px var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
78
+ .ic-multi-icon { display: flex; align-items: center; height: 1lh; box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-info-subtle); background: var(--bh-color-background-info-subtle); }
79
79
  .ic-multi .is-warning { color: var(--bh-color-icon-warning); }
80
80
 
81
81
  /* Spacing: the gap drawn as a coloured bar with its size. */
@@ -83,13 +83,13 @@
83
83
  .ic-spaced svg { color: var(--bh-color-icon); }
84
84
  .ic-spaced.is-16 { font: var(--bh-font-label-default); }
85
85
  .ic-spaced.is-20 { font: var(--bh-font-body-large); }
86
- .ic-gap { position: relative; align-self: stretch; min-height: var(--bh-space-300); background: var(--bh-color-background-danger-subtle); box-shadow: inset 1px 0 0 var(--bh-color-border-danger), inset -1px 0 0 var(--bh-color-border-danger); }
86
+ .ic-gap { position: relative; align-self: stretch; min-height: var(--bh-space-300); background: var(--bh-color-background-danger-subtle); box-shadow: inset var(--bh-border-width-default) 0 0 var(--bh-color-border-danger), inset calc(-1 * var(--bh-border-width-default)) 0 0 var(--bh-color-border-danger); }
87
87
  .is-16 .ic-gap { width: 4px; }
88
88
  .is-20 .ic-gap { width: 8px; }
89
89
  .ic-gap small { position: absolute; top: 100%; left: 50%; margin-top: var(--bh-space-050); color: var(--bh-color-text-danger); font: var(--bh-font-label-small); font-style: normal; transform: translateX(-50%); }
90
90
 
91
91
  /* Target size */
92
- .ic-target { position: relative; display: grid; place-items: center; border: 1px dashed var(--bh-color-border-info); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-background-info-subtle); }
92
+ .ic-target { position: relative; display: grid; place-items: center; border: var(--bh-border-width-default) dashed var(--bh-color-border-info); border-radius: var(--bh-radius-100); color: var(--bh-color-icon); background: var(--bh-color-background-info-subtle); }
93
93
  .ic-target.is-24 { width: var(--bh-size-target-minimum); height: var(--bh-size-target-minimum); }
94
94
  .ic-target.is-32 { width: var(--bh-size-control-default); height: var(--bh-size-control-default); }
95
95
  .ic-target small { position: absolute; left: 100%; margin-left: var(--bh-space-100); color: var(--bh-color-text-info); font: var(--bh-font-label-small); }
@@ -102,7 +102,7 @@
102
102
 
103
103
  /* Do / Don’t: same shape as the Color pages. */
104
104
  .ic-dd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bh-space-200); margin: 0 0 var(--bh-space-300); }
105
- .ic-dd-panel { margin: 0; border: 1px solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
105
+ .ic-dd-panel { margin: 0; border: var(--bh-border-width-default) solid var(--c-line); border-radius: var(--bh-radius-100); overflow: hidden; }
106
106
  .ic-dd-panel figcaption { padding: var(--bh-space-100) var(--bh-space-200); border-bottom: 2px solid; font: var(--bh-font-label-default); }
107
107
  .ic-dd-panel.is-do figcaption { border-color: var(--bh-color-border-success); color: var(--bh-color-text-success); }
108
108
  .ic-dd-panel.is-dont figcaption { border-color: var(--bh-color-border-danger); color: var(--bh-color-text-danger); }
@@ -115,7 +115,7 @@
115
115
  .ic-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--bh-space-100); }
116
116
  .ic-row.is-icons { gap: var(--bh-space-200); color: var(--bh-color-icon); }
117
117
  .ic-ibtn.is-outlined { border-color: var(--bh-color-border); background: var(--bh-color-surface); }
118
- .ic-bare { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--bh-color-icon); outline: 1px dashed var(--bh-color-border-danger); outline-offset: 0; }
118
+ .ic-bare { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--bh-color-icon); outline: var(--bh-border-width-default) dashed var(--bh-color-border-danger); outline-offset: 0; }
119
119
  .ic-text14 { display: inline-flex; align-items: center; gap: var(--bh-space-050); color: var(--c-ink); font: var(--bh-font-body-default); }
120
120
  .ic-text14 svg { color: var(--bh-color-icon); }
121
121
  .ic-text14.is-big { gap: var(--bh-space-100); }
@@ -19,7 +19,7 @@
19
19
  :is(.kit-btn, .sp-btn).is-large { height: var(--bh-size-control-large); padding: 0 var(--bh-space-control-x-large); }
20
20
  /* Icon button: square, same height as a button. */
21
21
  .kit-btn.is-icon, .ic-ibtn, .icon-button { width: var(--bh-size-control-default); padding: 0; color: var(--bh-color-icon); }
22
- .kit-btn.is-subtle, .ic-ibtn:not(.is-outlined) { border-color: transparent; background: transparent; }
22
+ .kit-btn.is-subtle, .bh-button-subtle, .ic-ibtn:not(.is-outlined) { border-color: transparent; background: transparent; }
23
23
  :is(.kit-btn, .bh-button):disabled, :is(.kit-btn, .bh-button):disabled:hover { border-color: var(--bh-color-border-disabled); color: var(--bh-color-text-disabled); background: var(--bh-color-background-disabled); cursor: not-allowed; }
24
24
 
25
25
  /* Text field and select: 32 px, edge border.bold, placeholder text.subtlest. */
@@ -33,8 +33,8 @@
33
33
  .kit-card-title, .el-card > b, .op-tile b { color: var(--bh-color-text); font: var(--bh-font-heading-small); }
34
34
  .kit-card-text, .el-card > span, .op-tile span.op-status { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
35
35
 
36
- /* Menu: surface.overlay, radius.050 frame, padding space.overlay, shadow overlay. Items 32 px, radius.item, space.item.x, label.default. */
37
- .kit-menu, .sh-menu, .el-menu { display: grid; box-sizing: border-box; padding: var(--bh-space-overlay); border-radius: var(--bh-radius-050); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-overlay); }
36
+ /* Menu: surface.overlay, radius.overlay, padding space.overlay, shadow overlay. Items 32 px, radius.item, space.item.x, label.default. */
37
+ .kit-menu, .sh-menu, .el-menu { display: grid; box-sizing: border-box; padding: var(--bh-space-overlay); border-radius: var(--bh-radius-overlay); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-overlay); }
38
38
  .kit-menu-item, .sh-menu > span:not(.sh-pin), .sh-menu > .sh-pin > span:first-child, .el-menu > span:not(.sh-pin):not(.zi-n), .el-menu > .sh-pin > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: var(--bh-space-100); min-height: var(--bh-size-control-default); padding: 0 var(--bh-space-item-x); border-radius: var(--bh-radius-item); color: var(--bh-color-text); font: var(--bh-font-label-default); }
39
39
  :is(.kit-menu, .sh-menu, .el-menu) .is-on { background: var(--bh-color-surface-overlay-hover); }
40
40
  :is(.kit-menu, .sh-menu, .el-menu) .is-sel { background: var(--bh-color-surface-overlay-selected); }
@@ -62,8 +62,8 @@
62
62
  .kit-dialog, .el-dialog, .zi-mini-dialog, .c-surf-dialog { display: grid; gap: var(--bh-space-modal-gap); box-sizing: border-box; padding: var(--bh-space-modal); border-radius: var(--bh-radius-modal); color: var(--bh-color-text-subtle); background: var(--bh-color-surface-overlay); box-shadow: var(--bh-elevation-shadow-modal); font: var(--bh-font-body-default); }
63
63
  .kit-dialog-title, .el-dialog b, .zi-mini-dialog b, .c-surf-dialog b { color: var(--bh-color-text); font: var(--bh-font-heading-medium); }
64
64
 
65
- /* Tooltip: surface.inverse, radius.overlay, padding space.050 space.075, body.small. */
66
- .kit-tooltip, .sh-tip, .ic-tip, .zi-tip { box-sizing: border-box; padding: var(--bh-space-050) var(--bh-space-075); border-radius: var(--bh-radius-overlay); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); font: var(--bh-font-body-small); }
65
+ /* Tooltip: surface.inverse, radius.100, padding space.050 space.075, body.small. */
66
+ .kit-tooltip, .sh-tip, .ic-tip, .zi-tip { box-sizing: border-box; padding: var(--bh-space-050) var(--bh-space-075); border-radius: var(--bh-radius-050); color: var(--bh-color-text-inverse); background: var(--bh-color-surface-inverse); font: var(--bh-font-body-small); }
67
67
 
68
68
  /* Toast: surface.overlay and overlay shadow, no border (like menus); icon in the status colour.
69
69
  Title heading.xsmall, message body.default. */
@@ -95,10 +95,29 @@
95
95
  :is(.kit-callout, .sh-alert) span { color: var(--bh-color-text-subtle); font: var(--bh-font-body-default); }
96
96
 
97
97
  /* Switch: 20 x 36, knob 16 px. On background.neutral.bold; off background.neutral with a border.bold edge. */
98
- .kit-switch, .sh-switch, .op-switch { position: relative; flex: none; display: inline-block; box-sizing: border-box; width: calc(2 * var(--bh-space-200) + 2 * var(--bh-space-025)); height: var(--bh-space-250); border-radius: var(--bh-radius-pill); background: var(--bh-color-background-neutral-bold); }
99
- :is(.kit-switch, .sh-switch, .op-switch)::after { content: ""; position: absolute; top: var(--bh-space-025); right: var(--bh-space-025); width: var(--bh-space-200); height: var(--bh-space-200); border-radius: var(--bh-radius-pill); background: var(--bh-color-surface); }
100
- .kit-switch.is-off { background: var(--bh-color-background-neutral); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-color-border-bold); }
101
- .kit-switch.is-off::after { right: auto; left: var(--bh-space-025); }
98
+ .kit-switch, .sh-switch, .op-switch { position: relative; flex: none; display: inline-block; box-sizing: border-box; width: var(--bh-switch-size-track-width); height: var(--bh-switch-size-track-height); border-radius: var(--bh-radius-pill); background: var(--bh-switch-on-track); }
99
+ :is(.kit-switch, .sh-switch, .op-switch)::after { content: ""; position: absolute; top: var(--bh-space-025); right: var(--bh-space-025); width: var(--bh-switch-size-thumb); height: var(--bh-switch-size-thumb); border-radius: var(--bh-radius-pill); background: var(--bh-switch-on-thumb); }
100
+ .kit-switch.is-off { background: var(--bh-switch-off-track); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border); }
101
+ .kit-switch.is-off::after { right: auto; left: var(--bh-space-025); background: var(--bh-switch-off-thumb); }
102
+ /* Switch: a native button with role="switch". aria-checked sets ON or OFF; each state pairs its track, thumb and edge. */
103
+ .bh-switch-field { display: inline-flex; align-items: center; gap: var(--bh-space-100); color: var(--bh-color-text); font: var(--bh-font-body-default); }
104
+ .bh-switch { position: relative; flex: none; box-sizing: border-box; width: var(--bh-switch-size-track-width); height: var(--bh-switch-size-track-height); margin: 0; padding: 0; border: 0; border-radius: var(--bh-radius-pill); background: var(--bh-switch-off-track); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border); cursor: pointer; transition: background-color var(--bh-motion-control), box-shadow var(--bh-motion-control); }
105
+ .bh-switch::after { content: ""; position: absolute; top: var(--bh-space-025); left: var(--bh-space-025); width: var(--bh-switch-size-thumb); height: var(--bh-switch-size-thumb); border-radius: var(--bh-radius-pill); background: var(--bh-switch-off-thumb); transition: left var(--bh-motion-control); }
106
+ .bh-switch:hover { background: var(--bh-switch-off-track-hover); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border-hover); }
107
+ .bh-switch:active { background: var(--bh-switch-off-track-pressed); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border-pressed); }
108
+ .bh-switch[aria-checked='true'] { background: var(--bh-switch-on-track); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border); }
109
+ .bh-switch[aria-checked='true']::after { left: calc(100% - var(--bh-switch-size-thumb) - var(--bh-space-025)); background: var(--bh-switch-on-thumb); }
110
+ .bh-switch[aria-checked='true']:hover { background: var(--bh-switch-on-track-hover); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border-hover); }
111
+ .bh-switch[aria-checked='true']:active { background: var(--bh-switch-on-track-pressed); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border-pressed); }
112
+ .bh-switch::before { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, var(--bh-size-target-minimum)); height: max(100%, var(--bh-size-target-minimum)); transform: translate(-50%, -50%); }
113
+ .bh-switch-hint { margin: 0; color: var(--bh-color-text-subtle); font: var(--bh-font-body-small); }
114
+ .bh-switch:focus-visible { outline: var(--bh-border-width-focused) solid var(--bh-switch-focus-ring); outline-offset: var(--bh-state-focus-offset); }
115
+ .bh-switch:disabled, .bh-switch:disabled:hover, .bh-switch:disabled:active { background: var(--bh-switch-off-track-disabled); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-off-border-disabled); cursor: not-allowed; }
116
+ .bh-switch:disabled::after { background: var(--bh-switch-off-thumb-disabled); }
117
+ .bh-switch[aria-checked='true']:disabled, .bh-switch[aria-checked='true']:disabled:hover { background: var(--bh-switch-on-track-disabled); box-shadow: inset 0 0 0 var(--bh-border-width-default) var(--bh-switch-on-border-disabled); }
118
+ .bh-switch[aria-checked='true']:disabled::after { background: var(--bh-switch-on-thumb-disabled); }
119
+ .bh-switch-field:has(.bh-switch:disabled) { color: var(--bh-color-text-disabled); }
120
+ @media (prefers-reduced-motion: reduce) { .bh-switch, .bh-switch::after { transition: none; } }
102
121
 
103
122
  /* Avatar: 32 px circle, background.neutral, text, label.small. Small 24 px. */
104
123
  .kit-avatar, .sh-avatar, .op-avatar { display: inline-grid; flex: none; place-items: center; width: var(--bh-size-control-default); height: var(--bh-size-control-default); border-radius: var(--bh-radius-pill); color: var(--bh-color-text); background: var(--bh-color-background-neutral); font: var(--bh-font-label-small); }
@@ -108,7 +127,7 @@
108
127
  .kit-count, .zi-n { display: inline-grid; flex: none; place-items: center; box-sizing: border-box; min-width: var(--bh-space-250); height: var(--bh-space-250); padding: 0 var(--bh-space-050); border-radius: var(--bh-radius-025); color: var(--bh-color-text-inverse); background: var(--bh-color-background-neutral-bold); font: var(--bh-font-label-small); font-variant-numeric: tabular-nums; }
109
128
 
110
129
  /* Selected item in a navigation list: background.selected and a border.selected bar inside the left edge. */
111
- .kit-nav-item { display: flex; align-items: center; gap: var(--bh-space-100); height: var(--bh-size-control-default); padding: 0 var(--bh-space-item-x); border-radius: var(--bh-radius-075); color: var(--bh-color-text); font: var(--bh-font-label-default); }
130
+ .kit-nav-item { display: flex; align-items: center; gap: var(--bh-space-100); height: var(--bh-size-control-default); padding: 0 var(--bh-space-item-x); border-radius: var(--bh-radius-control); color: var(--bh-color-text); font: var(--bh-font-label-default); }
112
131
  .kit-nav-item.is-selected, .ic-nav-item.is-selected { position: relative; overflow: hidden; background: var(--bh-color-background-selected); }
113
132
  /* The selected bar is a straight strip clipped by the item's corners, like the accent bar; an inset shadow would bend round the corner. */
114
133
  :is(.kit-nav-item, .ic-nav-item).is-selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--bh-border-width-selected); background: var(--bh-color-border-selected); }