@duskmoon-dev/core 1.19.5 → 1.19.7

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 (51) hide show
  1. package/README.md +8 -6
  2. package/dist/components/bottom-navigation.css +127 -24
  3. package/dist/components/breadcrumbs.css +252 -0
  4. package/dist/components/dialog.css +29 -3
  5. package/dist/components/dropdown.css +91 -0
  6. package/dist/components/fab.css +182 -0
  7. package/dist/components/index.css +1167 -302
  8. package/dist/components/link.css +43 -0
  9. package/dist/components/megamenu.css +298 -0
  10. package/dist/components/menu.css +175 -0
  11. package/dist/components/modal.css +4 -3
  12. package/dist/components/navbar.css +283 -0
  13. package/dist/components/navigation.css +606 -202
  14. package/dist/components/nested-menu.css +19 -4
  15. package/dist/components/pagination.css +216 -0
  16. package/dist/components/stepper.css +33 -19
  17. package/dist/components/swap.css +116 -0
  18. package/dist/components/tabs.css +101 -0
  19. package/dist/esm/components/bottom-navigation.js +127 -24
  20. package/dist/esm/components/breadcrumbs.d.ts +5 -0
  21. package/dist/esm/components/breadcrumbs.js +261 -0
  22. package/dist/esm/components/dialog.js +29 -3
  23. package/dist/esm/components/dropdown.d.ts +5 -0
  24. package/dist/esm/components/dropdown.js +100 -0
  25. package/dist/esm/components/fab.d.ts +5 -0
  26. package/dist/esm/components/fab.js +191 -0
  27. package/dist/esm/components/link.d.ts +5 -0
  28. package/dist/esm/components/link.js +52 -0
  29. package/dist/esm/components/megamenu.d.ts +5 -0
  30. package/dist/esm/components/megamenu.js +307 -0
  31. package/dist/esm/components/menu.d.ts +5 -0
  32. package/dist/esm/components/menu.js +184 -0
  33. package/dist/esm/components/modal.js +4 -3
  34. package/dist/esm/components/navbar.d.ts +5 -0
  35. package/dist/esm/components/navbar.js +292 -0
  36. package/dist/esm/components/navigation.js +606 -202
  37. package/dist/esm/components/nested-menu.js +19 -4
  38. package/dist/esm/components/pagination.d.ts +5 -0
  39. package/dist/esm/components/pagination.js +225 -0
  40. package/dist/esm/components/stepper.js +33 -19
  41. package/dist/esm/components/swap.d.ts +5 -0
  42. package/dist/esm/components/swap.js +125 -0
  43. package/dist/esm/components/tabs.d.ts +5 -0
  44. package/dist/esm/components/tabs.js +110 -0
  45. package/dist/index.css +1167 -302
  46. package/dist/index.min.css +1 -1
  47. package/dist/standalone/duskmoonui-themes.css +1 -1
  48. package/dist/standalone/duskmoonui.css +1168 -303
  49. package/dist/standalone/duskmoonui.js +23 -7
  50. package/dist/standalone/duskmoonui.mjs +23 -7
  51. package/package.json +61 -1
package/dist/index.css CHANGED
@@ -1695,6 +1695,308 @@ html {
1695
1695
  }
1696
1696
 
1697
1697
 
1698
+ /* Action composition components */
1699
+ /**
1700
+ * FAB / Speed Dial Component Styles
1701
+ *
1702
+ * FAB owns viewport placement and action layout. Pair its trigger and actions
1703
+ * with Button classes for color, interaction, and disabled states.
1704
+ */
1705
+
1706
+ @layer components {
1707
+ .fab {
1708
+ --fab-offset-block: 1rem;
1709
+ --fab-offset-inline: 1rem;
1710
+ --fab-gap: 0.75rem;
1711
+ --fab-size: 3.5rem;
1712
+
1713
+ position: fixed;
1714
+ inset-block-end: calc(var(--fab-offset-block) + env(safe-area-inset-bottom, 0px));
1715
+ inset-inline-end: calc(var(--fab-offset-inline) + env(safe-area-inset-right, 0px));
1716
+ z-index: 40;
1717
+ display: inline-flex;
1718
+ flex-direction: column-reverse;
1719
+ align-items: flex-end;
1720
+ gap: var(--fab-gap);
1721
+ max-inline-size: calc(100dvw - 2 * var(--fab-offset-inline));
1722
+ }
1723
+
1724
+ .fab-start {
1725
+ inset-inline-start: calc(var(--fab-offset-inline) + env(safe-area-inset-left, 0px));
1726
+ inset-inline-end: auto;
1727
+ align-items: flex-start;
1728
+ }
1729
+
1730
+ .fab-contained {
1731
+ position: absolute;
1732
+ }
1733
+
1734
+ .fab-speed-dial {
1735
+ flex-direction: column-reverse;
1736
+ }
1737
+
1738
+ .fab-trigger {
1739
+ min-inline-size: var(--fab-size);
1740
+ min-block-size: var(--fab-size);
1741
+ padding: 0.875rem;
1742
+ border-radius: var(--radius-lg);
1743
+ box-shadow: var(--shadow-lg);
1744
+ }
1745
+
1746
+ .fab-trigger:not(.fab-extended) {
1747
+ inline-size: var(--fab-size);
1748
+ block-size: var(--fab-size);
1749
+ }
1750
+
1751
+ .fab-extended {
1752
+ inline-size: auto;
1753
+ max-inline-size: 100%;
1754
+ min-block-size: var(--fab-size);
1755
+ padding-inline: 1.25rem;
1756
+ border-radius: var(--radius-lg);
1757
+ }
1758
+
1759
+ .fab-actions {
1760
+ align-items: flex-end;
1761
+ flex-direction: column-reverse;
1762
+ gap: var(--fab-gap);
1763
+ max-inline-size: min(22rem, calc(100dvw - 2rem));
1764
+ }
1765
+
1766
+ .fab-start .fab-actions {
1767
+ align-items: flex-start;
1768
+ }
1769
+
1770
+ /* Controlled mode: application code owns .fab-open and all ARIA state. */
1771
+ .fab-controlled > .fab-actions:not([popover]) {
1772
+ display: none;
1773
+ }
1774
+
1775
+ .fab-controlled.fab-open > .fab-actions:not([popover]) {
1776
+ display: flex;
1777
+ }
1778
+
1779
+ /* Native mode: the browser's popover state is the sole authority. */
1780
+ .fab-actions[popover] {
1781
+ display: none;
1782
+ position: fixed;
1783
+ inset-block-start: auto;
1784
+ inset-block-end: calc(
1785
+ var(--fab-offset-block, 1rem) + env(safe-area-inset-bottom, 0px) +
1786
+ var(--fab-size, 3.5rem) + var(--fab-gap, 0.75rem)
1787
+ );
1788
+ inset-inline-start: auto;
1789
+ inset-inline-end: calc(var(--fab-offset-inline, 1rem) + env(safe-area-inset-right, 0px));
1790
+ margin: 0;
1791
+ padding: 0;
1792
+ border: 0;
1793
+ overflow: visible;
1794
+ color: inherit;
1795
+ background: transparent;
1796
+ opacity: 0;
1797
+ visibility: hidden;
1798
+ pointer-events: none;
1799
+ transform: translateY(0.5rem);
1800
+ transition:
1801
+ opacity 150ms ease-out,
1802
+ transform 150ms ease-out,
1803
+ overlay 150ms ease-out allow-discrete,
1804
+ display 150ms ease-out allow-discrete;
1805
+ }
1806
+
1807
+ .fab-start > .fab-actions[popover] {
1808
+ inset-inline-start: calc(var(--fab-offset-inline, 1rem) + env(safe-area-inset-left, 0px));
1809
+ inset-inline-end: auto;
1810
+ }
1811
+
1812
+ .fab-actions[popover]:popover-open {
1813
+ display: flex;
1814
+ opacity: 1;
1815
+ visibility: visible;
1816
+ pointer-events: auto;
1817
+ transform: translateY(0);
1818
+ }
1819
+
1820
+ @starting-style {
1821
+ .fab-actions[popover]:popover-open {
1822
+ opacity: 0;
1823
+ transform: translateY(0.5rem);
1824
+ }
1825
+ }
1826
+
1827
+ @supports (position-area: top) {
1828
+ .fab-actions[popover] {
1829
+ inset: auto;
1830
+ margin: var(--fab-gap, 0.75rem);
1831
+ position-area: top span-left;
1832
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
1833
+ }
1834
+
1835
+ .fab-start > .fab-actions[popover] {
1836
+ inset: auto;
1837
+ position-area: top span-right;
1838
+ }
1839
+ }
1840
+
1841
+ .fab-action {
1842
+ display: inline-flex;
1843
+ align-items: center;
1844
+ justify-content: flex-end;
1845
+ gap: 0.5rem;
1846
+ max-inline-size: 100%;
1847
+ }
1848
+
1849
+ .fab-start .fab-action {
1850
+ flex-direction: row-reverse;
1851
+ }
1852
+
1853
+ .fab-label {
1854
+ max-inline-size: min(16rem, calc(100dvw - 6rem));
1855
+ padding: 0.375rem 0.625rem;
1856
+ overflow-wrap: anywhere;
1857
+ color: var(--color-on-surface);
1858
+ background-color: var(--color-surface-container-high);
1859
+ border: 1px solid var(--color-outline-variant);
1860
+ border-radius: var(--radius-sm);
1861
+ box-shadow: var(--shadow-sm);
1862
+ font-size: 0.8125rem;
1863
+ font-weight: 500;
1864
+ line-height: 1.125rem;
1865
+ }
1866
+
1867
+ @media (max-width: 30rem) {
1868
+ .fab {
1869
+ --fab-offset-block: 0.75rem;
1870
+ --fab-offset-inline: 0.75rem;
1871
+ }
1872
+ }
1873
+
1874
+ @media (prefers-reduced-motion: reduce) {
1875
+ .fab-actions[popover] {
1876
+ transition: none;
1877
+ transform: none;
1878
+ }
1879
+ }
1880
+ }
1881
+
1882
+ /**
1883
+ * Swap Component Styles
1884
+ * Displays one of two non-interactive state indicators.
1885
+ */
1886
+
1887
+ @layer components {
1888
+ .swap {
1889
+ position: relative;
1890
+ display: inline-grid;
1891
+ place-items: center;
1892
+ vertical-align: middle;
1893
+ cursor: pointer;
1894
+ user-select: none;
1895
+ }
1896
+
1897
+ .swap-input {
1898
+ position: absolute;
1899
+ inset: 0;
1900
+ z-index: 1;
1901
+ width: 100%;
1902
+ height: 100%;
1903
+ margin: 0;
1904
+ opacity: 0;
1905
+ cursor: pointer;
1906
+ }
1907
+
1908
+ .swap-on,
1909
+ .swap-off {
1910
+ grid-area: 1 / 1;
1911
+ display: inline-flex;
1912
+ align-items: center;
1913
+ justify-content: center;
1914
+ inline-size: max-content;
1915
+ max-inline-size: 100%;
1916
+ transition: opacity 150ms ease-out, transform 150ms ease-out;
1917
+ }
1918
+
1919
+ .swap-on {
1920
+ opacity: 0;
1921
+ visibility: hidden;
1922
+ pointer-events: none;
1923
+ }
1924
+
1925
+ .swap-off {
1926
+ opacity: 1;
1927
+ visibility: visible;
1928
+ pointer-events: none;
1929
+ }
1930
+
1931
+ .swap-input:checked ~ .swap-on,
1932
+ .swap[aria-pressed="true"] > .swap-on {
1933
+ opacity: 1;
1934
+ visibility: visible;
1935
+ }
1936
+
1937
+ .swap-input:checked ~ .swap-off,
1938
+ .swap[aria-pressed="true"] > .swap-off {
1939
+ opacity: 0;
1940
+ visibility: hidden;
1941
+ }
1942
+
1943
+ .swap:focus-visible,
1944
+ .swap:has(.swap-input:focus-visible) {
1945
+ outline: none;
1946
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
1947
+ border-radius: var(--radius-sm);
1948
+ }
1949
+
1950
+ .swap:disabled,
1951
+ .swap:has(.swap-input:disabled) {
1952
+ cursor: not-allowed;
1953
+ opacity: 0.5;
1954
+ }
1955
+
1956
+ .swap-input:disabled {
1957
+ cursor: not-allowed;
1958
+ }
1959
+
1960
+ .swap-rotate .swap-on {
1961
+ transform: rotate(-90deg) scale(0.8);
1962
+ }
1963
+
1964
+ .swap-rotate .swap-off {
1965
+ transform: rotate(0deg) scale(1);
1966
+ }
1967
+
1968
+ .swap-rotate .swap-input:checked ~ .swap-on,
1969
+ .swap-rotate[aria-pressed="true"] > .swap-on {
1970
+ transform: rotate(0deg) scale(1);
1971
+ }
1972
+
1973
+ .swap-rotate .swap-input:checked ~ .swap-off,
1974
+ .swap-rotate[aria-pressed="true"] > .swap-off {
1975
+ transform: rotate(90deg) scale(0.8);
1976
+ }
1977
+
1978
+ /* Presentation-only override. It intentionally wins over semantic state. */
1979
+ .swap.swap-active > .swap-on {
1980
+ opacity: 1;
1981
+ visibility: visible;
1982
+ transform: rotate(0deg) scale(1);
1983
+ }
1984
+
1985
+ .swap.swap-active > .swap-off {
1986
+ opacity: 0;
1987
+ visibility: hidden;
1988
+ transform: rotate(90deg) scale(0.8);
1989
+ }
1990
+
1991
+ @media (prefers-reduced-motion: reduce) {
1992
+ .swap-on,
1993
+ .swap-off {
1994
+ transition: none;
1995
+ }
1996
+ }
1997
+ }
1998
+
1999
+
1698
2000
  /* Card Component */
1699
2001
  /**
1700
2002
  * Card Component Styles
@@ -3799,45 +4101,147 @@ html {
3799
4101
 
3800
4102
 
3801
4103
 
3802
- /* Navigation Component - includes navbar, menu, breadcrumbs, tabs, pagination, dropdown */
4104
+ /* Navigation Component - retains the legacy Dropdown import contract */
4105
+ /**
4106
+ * Navigation compatibility aggregate.
4107
+ *
4108
+ * Component-specific CSS files are canonical. Imports are resolved by the build
4109
+ * before CSS strings and constructable stylesheets are generated.
4110
+ */
4111
+
4112
+ /* Keep the historical Dropdown coverage and cascade order. */
3803
4113
  /**
3804
- * Navigation Component Styles
3805
- * DuskMoonUI - Material Design 3 inspired navigation system
4114
+ * Dropdown Component Styles
4115
+ * Native Popover disclosure with logical CSS anchor positioning.
3806
4116
  */
3807
4117
 
3808
4118
  @layer components {
3809
- /* Navbar Base */
3810
- .navbar {
3811
- display: flex;
3812
- align-items: center;
3813
- width: 100%;
3814
- min-height: 4rem;
3815
- padding: 0.5rem 1rem;
3816
- background-color: var(--color-surface);
3817
- color: var(--color-on-surface);
4119
+ .dropdown {
4120
+ position: relative;
4121
+ display: inline-block;
3818
4122
  }
3819
4123
 
3820
- .navbar-primary {
3821
- background-color: var(--color-primary);
3822
- color: var(--color-primary-content);
4124
+ .dropdown > .dropdown-content[popover] {
4125
+ display: none;
4126
+ position: fixed;
4127
+ inset-block-start: auto;
4128
+ inset-block-end: max(0.5rem, env(safe-area-inset-bottom, 0px));
4129
+ inset-inline-start: auto;
4130
+ inset-inline-end: max(
4131
+ 0.5rem,
4132
+ env(safe-area-inset-left, 0px),
4133
+ env(safe-area-inset-right, 0px)
4134
+ );
4135
+ z-index: 50;
4136
+ min-inline-size: 12rem;
4137
+ max-inline-size: min(24rem, calc(100dvw - 1rem));
4138
+ max-block-size: calc(100dvh - 1rem);
4139
+ margin: 0;
4140
+ padding: 0.5rem;
4141
+ overflow: auto;
4142
+ color: var(--color-on-surface);
4143
+ background-color: var(--color-surface);
4144
+ border: 1px solid var(--color-outline);
4145
+ border-radius: var(--radius-sm);
4146
+ box-shadow: var(--shadow-lg);
4147
+ opacity: 0;
4148
+ visibility: hidden;
4149
+ pointer-events: none;
4150
+ transform: translateY(-0.5rem);
4151
+ transition:
4152
+ opacity 150ms ease-out,
4153
+ transform 150ms ease-out,
4154
+ overlay 150ms ease-out allow-discrete,
4155
+ display 150ms ease-out allow-discrete;
3823
4156
  }
3824
4157
 
3825
- .navbar-secondary {
3826
- background-color: var(--color-secondary);
3827
- color: var(--color-secondary-content);
4158
+ .dropdown > .dropdown-content[popover]:popover-open {
4159
+ display: block;
4160
+ opacity: 1;
4161
+ visibility: visible;
4162
+ pointer-events: auto;
4163
+ transform: translateY(0);
3828
4164
  }
3829
4165
 
3830
- .navbar-tertiary {
3831
- background-color: var(--color-tertiary);
3832
- color: var(--color-tertiary-content);
4166
+ @starting-style {
4167
+ .dropdown > .dropdown-content[popover]:popover-open {
4168
+ opacity: 0;
4169
+ transform: translateY(-0.5rem);
4170
+ }
3833
4171
  }
3834
4172
 
3835
- .navbar-accent {
3836
- background-color: var(--color-accent);
3837
- color: var(--color-accent-content);
3838
- }
4173
+ @supports (position-area: block-end) {
4174
+ .dropdown > .dropdown-content[popover] {
4175
+ inset: auto;
4176
+ margin: 0.25rem;
4177
+ position-area: block-end span-inline-end;
4178
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
4179
+ }
3839
4180
 
3840
- .navbar-neutral {
4181
+ .dropdown.dropdown-block-start > .dropdown-content[popover] {
4182
+ position-area: block-start span-inline-end;
4183
+ }
4184
+
4185
+ .dropdown.dropdown-block-end > .dropdown-content[popover] {
4186
+ position-area: block-end span-inline-end;
4187
+ }
4188
+
4189
+ .dropdown.dropdown-inline-start > .dropdown-content[popover] {
4190
+ position-area: inline-start span-block-end;
4191
+ }
4192
+
4193
+ .dropdown.dropdown-inline-end > .dropdown-content[popover] {
4194
+ position-area: inline-end span-block-end;
4195
+ }
4196
+ }
4197
+
4198
+ @media (prefers-reduced-motion: reduce) {
4199
+ .dropdown > .dropdown-content[popover] {
4200
+ transition: none;
4201
+ }
4202
+ }
4203
+ }
4204
+
4205
+ /**
4206
+ * Navbar Component Styles
4207
+ * DuskMoonUI - Material Design 3 inspired navigation bar
4208
+ */
4209
+
4210
+ @layer components {
4211
+ .navbar {
4212
+ display: flex;
4213
+ align-items: center;
4214
+ width: 100%;
4215
+ min-height: 4rem;
4216
+ padding: 0.5rem 1rem;
4217
+ background-color: var(--color-surface);
4218
+ color: var(--color-on-surface);
4219
+ gap: 1rem;
4220
+ border-block-end: 1px solid var(--color-outline-variant);
4221
+ min-width: 0;
4222
+ }
4223
+
4224
+ .navbar-primary {
4225
+ background-color: var(--color-primary);
4226
+ color: var(--color-primary-content);
4227
+ }
4228
+
4229
+ .navbar-secondary {
4230
+ background-color: var(--color-secondary);
4231
+ color: var(--color-secondary-content);
4232
+ }
4233
+
4234
+ .navbar-tertiary {
4235
+ background-color: var(--color-tertiary);
4236
+ color: var(--color-tertiary-content);
4237
+ }
4238
+
4239
+ .navbar-accent {
4240
+ background-color: var(--color-accent);
4241
+ color: var(--color-accent-content);
4242
+ }
4243
+
4244
+ .navbar-neutral {
3841
4245
  background-color: var(--color-neutral);
3842
4246
  color: var(--color-neutral-content);
3843
4247
  }
@@ -3877,6 +4281,7 @@ html {
3877
4281
  flex: 1;
3878
4282
  justify-content: flex-start;
3879
4283
  gap: 0.5rem;
4284
+ min-width: 0;
3880
4285
  }
3881
4286
 
3882
4287
  .navbar-center {
@@ -3885,6 +4290,10 @@ html {
3885
4290
  justify-content: center;
3886
4291
  flex-shrink: 0;
3887
4292
  gap: 0.5rem;
4293
+ min-width: 0;
4294
+ overflow-x: auto;
4295
+ overscroll-behavior-inline: contain;
4296
+ scrollbar-width: thin;
3888
4297
  }
3889
4298
 
3890
4299
  .navbar-end {
@@ -3893,9 +4302,196 @@ html {
3893
4302
  flex: 1;
3894
4303
  justify-content: flex-end;
3895
4304
  gap: 0.5rem;
4305
+ min-width: 0;
4306
+ }
4307
+
4308
+ .navbar-brand {
4309
+ display: inline-flex;
4310
+ align-items: center;
4311
+ gap: 0.5rem;
4312
+ min-width: 0;
4313
+ color: inherit;
4314
+ font-size: 1.25rem;
4315
+ font-weight: 600;
4316
+ line-height: 1.75rem;
4317
+ text-decoration: none;
4318
+ }
4319
+
4320
+ .navbar-item {
4321
+ display: inline-flex;
4322
+ align-items: center;
4323
+ gap: 0.5rem;
4324
+ padding: 0.5rem 0.75rem;
4325
+ color: inherit;
4326
+ font-size: 0.875rem;
4327
+ font-weight: 500;
4328
+ line-height: 1.25rem;
4329
+ text-decoration: none;
4330
+ background-color: transparent;
4331
+ border: 0;
4332
+ border-radius: var(--radius-sm);
4333
+ cursor: pointer;
4334
+ transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
4335
+ white-space: nowrap;
4336
+ }
4337
+
4338
+ .navbar-item:hover,
4339
+ .navbar-hamburger:hover {
4340
+ background-color: color-mix(in oklch, currentColor 8%, transparent);
4341
+ }
4342
+
4343
+ .navbar-item:focus-visible,
4344
+ .navbar-brand:focus-visible,
4345
+ .navbar-hamburger:focus-visible {
4346
+ outline: 2px solid currentColor;
4347
+ outline-offset: 2px;
4348
+ }
4349
+
4350
+ .navbar-item-active,
4351
+ .navbar-item[aria-current="page"] {
4352
+ color: var(--color-primary);
4353
+ background-color: color-mix(in oklch, var(--color-primary) 12%, transparent);
4354
+ }
4355
+
4356
+ :is(.navbar-primary, .navbar-secondary, .navbar-tertiary) :is(.navbar-item-active, .navbar-item[aria-current="page"]) {
4357
+ color: inherit;
4358
+ background-color: color-mix(in oklch, white 20%, transparent);
4359
+ }
4360
+
4361
+ .navbar-hamburger {
4362
+ display: inline-flex;
4363
+ align-items: center;
4364
+ justify-content: center;
4365
+ inline-size: 2.5rem;
4366
+ block-size: 2.5rem;
4367
+ padding: 0.5rem;
4368
+ color: inherit;
4369
+ background-color: transparent;
4370
+ border: 0;
4371
+ border-radius: var(--radius-sm);
4372
+ cursor: pointer;
4373
+ }
4374
+
4375
+ .navbar-menu {
4376
+ display: flex;
4377
+ flex-direction: column;
4378
+ gap: 0.25rem;
4379
+ padding: 0.5rem;
4380
+ color: var(--color-on-surface);
4381
+ background-color: var(--color-surface-container);
4382
+ border-radius: var(--radius-md);
4383
+ box-shadow: var(--shadow-md);
4384
+ }
4385
+
4386
+ .navbar-divider {
4387
+ inline-size: 1px;
4388
+ block-size: 1.5rem;
4389
+ margin-inline: 0.25rem;
4390
+ background-color: var(--color-outline-variant);
4391
+ }
4392
+
4393
+ .navbar-surface {
4394
+ background-color: var(--color-surface);
4395
+ }
4396
+
4397
+ .navbar-surface-container {
4398
+ background-color: var(--color-surface-container);
4399
+ }
4400
+
4401
+ .navbar-surface-container-high {
4402
+ background-color: var(--color-surface-container-high);
4403
+ box-shadow: var(--shadow-xs);
4404
+ }
4405
+
4406
+ .navbar-surface-container-highest {
4407
+ background-color: var(--color-surface-container-highest);
4408
+ box-shadow: var(--shadow-sm);
4409
+ }
4410
+
4411
+ .navbar-transparent {
4412
+ background-color: transparent;
4413
+ border-block-end: 0;
4414
+ }
4415
+
4416
+ .navbar-blur {
4417
+ background-color: color-mix(in oklch, var(--color-surface) 80%, transparent);
4418
+ backdrop-filter: blur(8px);
4419
+ }
4420
+
4421
+ .navbar-fixed {
4422
+ position: fixed;
4423
+ inset-block-start: 0;
4424
+ inset-inline: 0;
4425
+ z-index: 50;
4426
+ }
4427
+
4428
+ .navbar-sticky {
4429
+ position: sticky;
4430
+ inset-block-start: 0;
4431
+ z-index: 50;
4432
+ }
4433
+
4434
+ .navbar-static {
4435
+ position: static;
4436
+ }
4437
+
4438
+ .navbar-compact {
4439
+ padding-block: 0.5rem;
4440
+ }
4441
+
4442
+ .navbar-compact .navbar-item {
4443
+ padding: 0.375rem 0.625rem;
4444
+ font-size: 0.8125rem;
3896
4445
  }
3897
4446
 
3898
- /* Menu */
4447
+ .navbar-comfortable {
4448
+ padding: 1rem 1.5rem;
4449
+ }
4450
+
4451
+ .navbar-comfortable .navbar-item {
4452
+ padding: 0.625rem 1rem;
4453
+ font-size: 1rem;
4454
+ }
4455
+
4456
+ .navbar-borderless {
4457
+ border-block-end: 0;
4458
+ }
4459
+
4460
+ @media (max-width: 47.999rem) {
4461
+ .navbar-responsive .navbar-center {
4462
+ display: none;
4463
+ }
4464
+
4465
+ .navbar-responsive .navbar-start,
4466
+ .navbar-responsive .navbar-end {
4467
+ flex: 0 1 auto;
4468
+ }
4469
+
4470
+ .navbar-responsive .navbar-end {
4471
+ margin-inline-start: auto;
4472
+ }
4473
+ }
4474
+
4475
+ @media (min-width: 48rem) {
4476
+ .navbar-responsive .navbar-hamburger {
4477
+ display: none;
4478
+ }
4479
+ }
4480
+
4481
+ @media (prefers-reduced-motion: reduce) {
4482
+ .navbar,
4483
+ .navbar-item {
4484
+ transition: none;
4485
+ }
4486
+ }
4487
+ }
4488
+
4489
+ /**
4490
+ * Menu Component Styles
4491
+ * DuskMoonUI - Material Design 3 inspired dropdown menu
4492
+ */
4493
+
4494
+ @layer components {
3899
4495
  .menu {
3900
4496
  display: flex;
3901
4497
  flex-wrap: wrap;
@@ -3964,13 +4560,13 @@ html {
3964
4560
  position-area: right;
3965
4561
  }
3966
4562
 
3967
- .menu li {
4563
+ .menu > li {
3968
4564
  display: flex;
3969
4565
  flex-shrink: 0;
3970
4566
  }
3971
4567
 
3972
- .menu li > a,
3973
- .menu li > button,
4568
+ .menu > li > a,
4569
+ .menu > li > button,
3974
4570
  .menu-item {
3975
4571
  display: flex;
3976
4572
  align-items: center;
@@ -3985,41 +4581,46 @@ html {
3985
4581
  white-space: nowrap;
3986
4582
  }
3987
4583
 
3988
- .menu li > a:hover,
3989
- .menu li > button:hover,
4584
+ .menu > li > a:hover,
4585
+ .menu > li > button:hover,
3990
4586
  .menu-item:hover {
3991
4587
  background-color: var(--color-surface-container);
3992
4588
  }
3993
4589
 
3994
- .menu li > a:focus-visible,
3995
- .menu li > button:focus-visible,
4590
+ .menu > li > a:focus-visible,
4591
+ .menu > li > button:focus-visible,
3996
4592
  .menu-item:focus-visible {
3997
4593
  outline: none;
3998
4594
  box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
3999
4595
  }
4000
4596
 
4001
- .menu li > a.active,
4002
- .menu li > button.active,
4597
+ .menu > li > a.active,
4598
+ .menu > li > button.active,
4003
4599
  .menu-item.active,
4004
- .menu li > a[aria-current="page"],
4005
- .menu li > button[aria-current="page"] {
4600
+ .menu > li > a[aria-current="page"],
4601
+ .menu > li > button[aria-current="page"] {
4602
+ background-color: var(--color-primary-container);
4603
+ color: var(--color-on-primary-container);
4604
+ }
4605
+
4606
+ .menu-item[aria-current="page"] {
4006
4607
  background-color: var(--color-primary-container);
4007
4608
  color: var(--color-on-primary-container);
4008
4609
  }
4009
4610
 
4010
- .menu li.disabled > a,
4011
- .menu li.disabled > button,
4012
- .menu-item:disabled {
4611
+ .menu > li.disabled > a,
4612
+ .menu > li.disabled > button,
4613
+ .menu-item:disabled,
4614
+ .menu > li > button:disabled,
4615
+ .menu-item[aria-disabled="true"] {
4013
4616
  opacity: 0.5;
4014
- pointer-events: none;
4617
+ cursor: not-allowed;
4015
4618
  }
4016
4619
 
4017
- /* Menu Horizontal */
4018
4620
  .menu-horizontal {
4019
4621
  flex-direction: row;
4020
4622
  }
4021
4623
 
4022
- /* Menu Vertical */
4023
4624
  .menu-vertical {
4024
4625
  flex-direction: column;
4025
4626
  }
@@ -4034,7 +4635,6 @@ html {
4034
4635
  width: 100%;
4035
4636
  }
4036
4637
 
4037
- /* Menu Compact */
4038
4638
  .menu-compact li > a,
4039
4639
  .menu-compact li > button,
4040
4640
  .menu-compact .menu-item {
@@ -4042,7 +4642,6 @@ html {
4042
4642
  font-size: 0.8125rem;
4043
4643
  }
4044
4644
 
4045
- /* Menu Title */
4046
4645
  .menu-title {
4047
4646
  padding: 0.5rem 1rem;
4048
4647
  font-size: 0.75rem;
@@ -4052,7 +4651,23 @@ html {
4052
4651
  color: var(--color-on-surface-variant);
4053
4652
  }
4054
4653
 
4055
- /* Breadcrumbs */
4654
+ /* Reduce Motion */
4655
+ @media (prefers-reduced-motion: reduce) {
4656
+ .menu > li > a,
4657
+ .menu > li > button,
4658
+ .menu-item,
4659
+ .menu[popover] {
4660
+ transition: none;
4661
+ }
4662
+ }
4663
+ }
4664
+
4665
+ /**
4666
+ * Breadcrumbs Component Styles
4667
+ * DuskMoonUI - Material Design 3 inspired breadcrumb navigation
4668
+ */
4669
+
4670
+ @layer components {
4056
4671
  .breadcrumbs {
4057
4672
  display: flex;
4058
4673
  align-items: center;
@@ -4064,7 +4679,6 @@ html {
4064
4679
  font-size: 0.875rem;
4065
4680
  }
4066
4681
 
4067
- /* List-based breadcrumbs (legacy) */
4068
4682
  .breadcrumbs li {
4069
4683
  display: flex;
4070
4684
  align-items: center;
@@ -4095,7 +4709,6 @@ html {
4095
4709
  color: var(--color-on-surface-variant);
4096
4710
  }
4097
4711
 
4098
- /* Span-based breadcrumbs */
4099
4712
  .breadcrumb-item {
4100
4713
  display: inline-flex;
4101
4714
  align-items: center;
@@ -4136,7 +4749,6 @@ html {
4136
4749
  border-radius: var(--radius-xs);
4137
4750
  }
4138
4751
 
4139
- /* Separator - Default shows "/" */
4140
4752
  .breadcrumb-separator {
4141
4753
  display: inline-flex;
4142
4754
  align-items: center;
@@ -4150,7 +4762,6 @@ html {
4150
4762
  content: "/";
4151
4763
  }
4152
4764
 
4153
- /* Separator Variants */
4154
4765
  .breadcrumbs-slash .breadcrumb-separator::before {
4155
4766
  content: "/";
4156
4767
  }
@@ -4172,7 +4783,6 @@ html {
4172
4783
  content: "|";
4173
4784
  }
4174
4785
 
4175
- /* Breadcrumb Icon */
4176
4786
  .breadcrumb-icon {
4177
4787
  display: inline-flex;
4178
4788
  align-items: center;
@@ -4187,7 +4797,6 @@ html {
4187
4797
  height: 100%;
4188
4798
  }
4189
4799
 
4190
- /* Home Icon Link */
4191
4800
  .breadcrumb-home {
4192
4801
  display: inline-flex;
4193
4802
  align-items: center;
@@ -4206,7 +4815,6 @@ html {
4206
4815
  height: 1.125rem;
4207
4816
  }
4208
4817
 
4209
- /* Collapsed Breadcrumbs (with ellipsis) */
4210
4818
  .breadcrumb-ellipsis {
4211
4819
  display: inline-flex;
4212
4820
  align-items: center;
@@ -4228,7 +4836,6 @@ html {
4228
4836
  background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
4229
4837
  }
4230
4838
 
4231
- /* Color Variants */
4232
4839
  .breadcrumbs-primary .breadcrumb-link:hover,
4233
4840
  .breadcrumbs-primary .breadcrumb-item-active {
4234
4841
  color: var(--color-primary);
@@ -4244,208 +4851,178 @@ html {
4244
4851
  color: var(--color-tertiary);
4245
4852
  }
4246
4853
 
4247
- /* Size Variants */
4248
4854
  .breadcrumbs-sm {
4249
4855
  font-size: 0.75rem;
4250
- gap: 0.375rem;
4251
- }
4252
-
4253
- .breadcrumbs-sm .breadcrumb-icon,
4254
- .breadcrumbs-sm .breadcrumb-home-icon {
4255
- width: 0.875rem;
4256
- height: 0.875rem;
4257
- }
4258
-
4259
- .breadcrumbs-lg {
4260
- font-size: 1rem;
4261
- gap: 0.625rem;
4262
- }
4263
-
4264
- .breadcrumbs-lg .breadcrumb-icon,
4265
- .breadcrumbs-lg .breadcrumb-home-icon {
4266
- width: 1.25rem;
4267
- height: 1.25rem;
4268
- }
4269
-
4270
- /* Contained Variant (with background) */
4271
- .breadcrumbs-contained {
4272
- padding: 0.75rem 1rem;
4273
- background-color: var(--color-surface-container);
4274
- border-radius: var(--radius-sm);
4275
- }
4276
-
4277
- /* No Wrap Variant */
4278
- .breadcrumbs-nowrap {
4279
- flex-wrap: nowrap;
4280
- overflow-x: auto;
4281
- }
4282
-
4283
- /* Disabled Breadcrumb Item */
4284
- .breadcrumb-item-disabled {
4285
- opacity: 1;
4286
- pointer-events: none;
4287
- cursor: not-allowed;
4288
- }
4289
-
4290
- /* Tabs */
4291
- .tabs {
4292
- display: flex;
4293
- flex-wrap: wrap;
4294
- gap: 0.25rem;
4295
- border-bottom: 1px solid var(--color-outline);
4296
- }
4297
-
4298
- .tab {
4299
- display: inline-flex;
4300
- align-items: center;
4301
- justify-content: center;
4302
- gap: 0.5rem;
4303
- padding: 0.75rem 1.25rem;
4304
- font-size: 0.875rem;
4305
- font-weight: 500;
4306
- color: var(--color-on-surface-variant);
4307
- text-decoration: none;
4308
- background-color: transparent;
4309
- border: none;
4310
- border-bottom: 2px solid transparent;
4311
- cursor: pointer;
4312
- transition: all 150ms ease-in-out;
4313
- position: relative;
4314
- margin-bottom: -1px;
4315
- }
4316
-
4317
- .tab:hover {
4318
- color: var(--color-on-surface);
4319
- background-color: var(--color-surface-container);
4320
- }
4321
-
4322
- .tab:focus-visible {
4323
- outline: none;
4324
- box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
4325
- }
4326
-
4327
- .tab.tab-active,
4328
- .tab[aria-selected="true"] {
4329
- color: var(--color-primary);
4330
- border-bottom-color: var(--color-primary);
4331
- }
4332
-
4333
- .tab:disabled {
4334
- opacity: 0.5;
4335
- cursor: not-allowed;
4336
- }
4337
-
4338
- /* Tabs Boxed */
4339
- .tabs-boxed {
4340
- background-color: var(--color-surface-container);
4341
- border-radius: var(--radius-sm);
4342
- padding: 0.25rem;
4343
- border: none;
4344
- }
4345
-
4346
- .tabs-boxed .tab {
4347
- border-radius: var(--radius-xs);
4348
- border-bottom: none;
4349
- margin-bottom: 0;
4350
- }
4351
-
4352
- .tabs-boxed .tab.tab-active,
4353
- .tabs-boxed .tab[aria-selected="true"] {
4354
- background-color: var(--color-surface);
4355
- color: var(--color-on-surface);
4356
- box-shadow: var(--shadow-xs);
4357
- }
4358
-
4359
- /* Tabs Lifted */
4360
- .tabs-lifted {
4361
- border: none;
4362
- }
4363
-
4364
- .tabs-lifted .tab {
4365
- border: 1px solid transparent;
4366
- border-bottom: none;
4367
- border-radius: var(--radius-sm) var(--radius-sm) 0 0;
4368
- margin-bottom: -1px;
4369
- }
4370
-
4371
- .tabs-lifted .tab.tab-active,
4372
- .tabs-lifted .tab[aria-selected="true"] {
4373
- background-color: var(--color-surface);
4374
- border-color: var(--color-outline);
4375
- border-bottom-color: var(--color-surface);
4376
- }
4377
-
4378
- /* Tab Sizes */
4379
- .tab-xs {
4380
- padding: 0.375rem 0.625rem;
4381
- font-size: 0.75rem;
4856
+ gap: 0.375rem;
4382
4857
  }
4383
4858
 
4384
- .tab-sm {
4385
- padding: 0.5rem 0.875rem;
4386
- font-size: 0.8125rem;
4859
+ .breadcrumbs-sm .breadcrumb-icon,
4860
+ .breadcrumbs-sm .breadcrumb-home-icon {
4861
+ width: 0.875rem;
4862
+ height: 0.875rem;
4387
4863
  }
4388
4864
 
4389
- .tab-lg {
4390
- padding: 1rem 1.5rem;
4865
+ .breadcrumbs-lg {
4391
4866
  font-size: 1rem;
4867
+ gap: 0.625rem;
4392
4868
  }
4393
4869
 
4394
- /* Dropdown */
4395
- .dropdown {
4396
- position: relative;
4397
- display: inline-block;
4870
+ .breadcrumbs-lg .breadcrumb-icon,
4871
+ .breadcrumbs-lg .breadcrumb-home-icon {
4872
+ width: 1.25rem;
4873
+ height: 1.25rem;
4398
4874
  }
4399
4875
 
4400
- .dropdown-content {
4401
- position: absolute;
4402
- z-index: 50;
4403
- min-width: 12rem;
4404
- padding: 0.5rem;
4405
- background-color: var(--color-surface);
4406
- border: 1px solid var(--color-outline);
4876
+ .breadcrumbs-contained {
4877
+ padding: 0.75rem 1rem;
4878
+ background-color: var(--color-surface-container);
4407
4879
  border-radius: var(--radius-sm);
4408
- box-shadow: var(--shadow-lg);
4409
- opacity: 0;
4410
- visibility: hidden;
4411
- transform: translateY(-0.5rem);
4412
- transition: all 150ms ease-in-out;
4413
4880
  }
4414
4881
 
4415
- .dropdown:hover .dropdown-content,
4416
- .dropdown:focus-within .dropdown-content,
4417
- .dropdown.dropdown-open .dropdown-content {
4418
- opacity: 1;
4419
- visibility: visible;
4420
- transform: translateY(0);
4882
+ .breadcrumbs-nowrap {
4883
+ flex-wrap: nowrap;
4884
+ overflow-x: auto;
4885
+ overscroll-behavior-inline: contain;
4886
+ scrollbar-width: thin;
4421
4887
  }
4422
4888
 
4423
- /* Dropdown Positions */
4424
- .dropdown-end .dropdown-content {
4425
- right: 0;
4889
+ .breadcrumbs-nowrap > * {
4890
+ flex: 0 0 auto;
4426
4891
  }
4427
4892
 
4428
- .dropdown-top .dropdown-content {
4429
- bottom: 100%;
4430
- top: auto;
4431
- margin-bottom: 0.25rem;
4893
+ .breadcrumb-item-disabled {
4894
+ opacity: 1;
4895
+ pointer-events: none;
4896
+ cursor: not-allowed;
4432
4897
  }
4433
4898
 
4434
- .dropdown-left .dropdown-content {
4435
- right: 100%;
4436
- left: auto;
4437
- top: 0;
4438
- margin-right: 0.25rem;
4899
+ .breadcrumb-ellipsis:focus-visible,
4900
+ .breadcrumb-home:focus-visible,
4901
+ .breadcrumbs li > a:focus-visible {
4902
+ outline: 2px solid currentColor;
4903
+ outline-offset: 2px;
4904
+ border-radius: var(--radius-xs);
4439
4905
  }
4440
4906
 
4441
- .dropdown-right .dropdown-content {
4442
- left: 100%;
4443
- right: auto;
4444
- top: 0;
4445
- margin-left: 0.25rem;
4907
+ /* Reduce Motion */
4908
+ @media (prefers-reduced-motion: reduce) {
4909
+ .breadcrumbs a,
4910
+ .breadcrumbs-item a,
4911
+ .breadcrumbs-link,
4912
+ .breadcrumbs-separator {
4913
+ transition: none;
4914
+ }
4915
+ }
4916
+ }
4917
+
4918
+ /** DuskMoonUI tabs and tab-panel presentation. Interaction remains application-owned. */
4919
+ @layer components {
4920
+ .tabs {
4921
+ display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.25rem;
4922
+ border-block-end: 1px solid var(--color-outline); color: var(--color-on-surface);
4923
+ }
4924
+ .tab {
4925
+ display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
4926
+ min-width: 0; padding: 0.75rem 1.25rem; font: inherit; font-size: 0.875rem;
4927
+ font-weight: 500; line-height: 1.25rem; color: var(--color-on-surface-variant);
4928
+ text-decoration: none; white-space: nowrap; background-color: transparent;
4929
+ border: none; border-block-end: 2px solid transparent; cursor: pointer;
4930
+ transition: background-color 150ms ease-in-out, color 150ms ease-in-out,
4931
+ border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
4932
+ position: relative; margin-block-end: -1px;
4933
+ }
4934
+ .tab:hover:not(:disabled, [aria-disabled="true"]) {
4935
+ color: var(--color-on-surface); background-color: var(--color-surface-container);
4446
4936
  }
4937
+ .tab:focus-visible {
4938
+ outline: 2px solid currentColor; outline-offset: -2px;
4939
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent); z-index: 1;
4940
+ }
4941
+ .tab:disabled,
4942
+ .tab[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
4943
+ .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
4944
+ color: var(--color-primary); border-block-end-color: var(--color-primary);
4945
+ }
4946
+ .tab.tab-active-secondary { color: var(--color-secondary); border-block-end-color: var(--color-secondary); }
4947
+ .tab.tab-active-tertiary { color: var(--color-tertiary); border-block-end-color: var(--color-tertiary); }
4948
+
4949
+ .tabs-pill,
4950
+ .tabs-tonal,
4951
+ .tabs-boxed { padding: 0.25rem; border: none; border-radius: var(--radius-lg); }
4952
+ .tabs-pill .tab,
4953
+ .tabs-tonal .tab,
4954
+ .tabs-boxed .tab { margin-block-end: 0; border: none; border-radius: var(--radius-lg); }
4955
+ .tabs-pill .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
4956
+ color: var(--color-primary-content); background-color: var(--color-primary);
4957
+ }
4958
+ .tabs-pill .tab.tab-active-secondary { color: var(--color-secondary-content); background-color: var(--color-secondary); }
4959
+ .tabs-pill .tab.tab-active-tertiary { color: var(--color-tertiary-content); background-color: var(--color-tertiary); }
4960
+ .tabs-tonal .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
4961
+ color: var(--color-on-primary-container); background-color: var(--color-primary-container);
4962
+ }
4963
+ .tabs-tonal .tab.tab-active-secondary { color: var(--color-on-secondary-container); background-color: var(--color-secondary-container); }
4964
+ .tabs-tonal .tab.tab-active-tertiary { color: var(--color-on-tertiary-container); background-color: var(--color-tertiary-container); }
4965
+ .tabs-boxed { background-color: var(--color-surface-container); border-radius: var(--radius-sm); }
4966
+ .tabs-boxed .tab { border-radius: var(--radius-xs); }
4967
+ .tabs-boxed .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
4968
+ color: var(--color-on-surface); background-color: var(--color-surface); box-shadow: var(--shadow-xs);
4969
+ }
4970
+ .tabs-lifted { border: none; }
4971
+ .tabs-lifted .tab {
4972
+ border: 1px solid transparent; border-block-end: none;
4973
+ border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-block-end: -1px;
4974
+ }
4975
+ .tabs-lifted .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
4976
+ background-color: var(--color-surface); border-color: var(--color-outline);
4977
+ border-block-end-color: var(--color-surface);
4978
+ }
4979
+
4980
+ .tabs-vertical {
4981
+ flex-direction: column; flex-wrap: nowrap; align-items: stretch;
4982
+ border-block-end: none; border-inline-end: 1px solid var(--color-outline);
4983
+ }
4984
+ .tabs-vertical .tab {
4985
+ justify-content: flex-start; width: 100%; margin: 0;
4986
+ border-block-end: none; border-inline-end: 2px solid transparent;
4987
+ }
4988
+ .tabs-vertical .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) { border-inline-end-color: var(--color-primary); }
4989
+ .tabs-vertical .tab.tab-active-secondary { border-inline-end-color: var(--color-secondary); }
4990
+ .tabs-vertical .tab.tab-active-tertiary { border-inline-end-color: var(--color-tertiary); }
4991
+ .tabs-scrollable {
4992
+ flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden;
4993
+ overscroll-behavior-inline: contain; scrollbar-width: thin;
4994
+ }
4995
+ .tabs-full .tab { flex: 1 1 0; }
4996
+ .tabs-center { justify-content: center; }
4997
+ .tabs-end { justify-content: flex-end; }
4998
+
4999
+ .tabs-sm .tab,
5000
+ .tab-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
5001
+ .tabs-md .tab { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
5002
+ .tabs-lg .tab,
5003
+ .tab-lg { padding: 1rem 1.5rem; font-size: 1rem; }
5004
+ .tab-xs { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
5005
+ .tab-icon { flex: 0 0 auto; font-size: 1.25em; }
5006
+ .tab-icon-only { aspect-ratio: 1; padding-inline: 0.75rem; }
5007
+ .tab-badge {
5008
+ display: inline-flex; align-items: center; justify-content: center;
5009
+ min-width: 1.25rem; min-height: 1.25rem; padding-inline: 0.375rem;
5010
+ font-size: 0.6875rem; font-weight: 600; color: var(--color-error-content);
5011
+ background-color: var(--color-error); border-radius: var(--radius-full);
5012
+ }
5013
+ .tab-panel { display: none; padding: 1rem; color: var(--color-on-surface); }
5014
+ .tab-panel:is(.tab-panel-show, [data-active="true"]):not([hidden]) { display: block; }
5015
+ .tab-panel[hidden] { display: none !important; }
5016
+
5017
+ @media (prefers-reduced-motion: reduce) { .tab { scroll-behavior: auto; transition: none; } }
5018
+ }
5019
+
5020
+ /**
5021
+ * Pagination Component Styles
5022
+ * DuskMoonUI - Material Design 3 inspired pagination
5023
+ */
4447
5024
 
4448
- /* Pagination */
5025
+ @layer components {
4449
5026
  .pagination {
4450
5027
  display: flex;
4451
5028
  align-items: center;
@@ -4487,6 +5064,7 @@ html {
4487
5064
 
4488
5065
  .pagination-item-active,
4489
5066
  .pagination-item-active-primary,
5067
+ .pagination-item[aria-current="page"],
4490
5068
  .pagination li > a.active,
4491
5069
  .pagination li > button.active,
4492
5070
  .pagination li > a[aria-current="page"],
@@ -4508,6 +5086,14 @@ html {
4508
5086
  border-color: var(--color-tertiary);
4509
5087
  }
4510
5088
 
5089
+ .pagination-item-active:hover,
5090
+ .pagination-item-active-primary:hover,
5091
+ .pagination-item[aria-current="page"]:hover,
5092
+ .pagination li > a[aria-current="page"]:hover,
5093
+ .pagination li > button[aria-current="page"]:hover {
5094
+ background-color: color-mix(in oklch, var(--color-primary), black 10%);
5095
+ }
5096
+
4511
5097
  .pagination-item:focus-visible,
4512
5098
  .pagination-prev:focus-visible,
4513
5099
  .pagination-next:focus-visible,
@@ -4522,13 +5108,12 @@ html {
4522
5108
  .pagination-prev:disabled,
4523
5109
  .pagination-next:disabled,
4524
5110
  .pagination li > a:disabled,
4525
- .pagination li > button:disabled {
5111
+ .pagination li > button:disabled,
5112
+ .pagination a[aria-disabled="true"] {
4526
5113
  opacity: 0.5;
4527
5114
  cursor: not-allowed;
4528
- pointer-events: none;
4529
5115
  }
4530
5116
 
4531
- /* Pagination Ellipsis */
4532
5117
  .pagination-ellipsis {
4533
5118
  display: inline-flex;
4534
5119
  align-items: center;
@@ -4542,7 +5127,6 @@ html {
4542
5127
  content: '…';
4543
5128
  }
4544
5129
 
4545
- /* Pagination Info */
4546
5130
  .pagination-info {
4547
5131
  display: flex;
4548
5132
  flex-direction: row;
@@ -4555,7 +5139,6 @@ html {
4555
5139
  color: var(--color-on-surface-variant);
4556
5140
  }
4557
5141
 
4558
- /* Pagination Input */
4559
5142
  .pagination-input {
4560
5143
  display: inline-flex;
4561
5144
  align-items: center;
@@ -4577,10 +5160,13 @@ html {
4577
5160
 
4578
5161
  .pagination-input input:focus {
4579
5162
  outline: none;
5163
+ }
5164
+
5165
+ .pagination-input input:focus-visible {
4580
5166
  border-color: var(--color-primary);
5167
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
4581
5168
  }
4582
5169
 
4583
- /* Pagination Variants */
4584
5170
  .pagination-outlined .pagination-item,
4585
5171
  .pagination-outlined .pagination-prev,
4586
5172
  .pagination-outlined .pagination-next {
@@ -4594,7 +5180,6 @@ html {
4594
5180
  border-color: var(--color-primary-container);
4595
5181
  }
4596
5182
 
4597
- /* Pagination Sizes */
4598
5183
  .pagination-sm .pagination-item,
4599
5184
  .pagination-sm .pagination-prev,
4600
5185
  .pagination-sm .pagination-next {
@@ -4613,7 +5198,6 @@ html {
4613
5198
  font-size: 1rem;
4614
5199
  }
4615
5200
 
4616
- /* Pagination Compact */
4617
5201
  .pagination-compact {
4618
5202
  gap: 0;
4619
5203
  }
@@ -4626,26 +5210,22 @@ html {
4626
5210
 
4627
5211
  .pagination-compact .pagination-item:first-child,
4628
5212
  .pagination-compact .pagination-prev {
4629
- border-radius: var(--radius-sm) 0 0 var(--radius-sm);
5213
+ border-start-start-radius: var(--radius-sm);
5214
+ border-end-start-radius: var(--radius-sm);
4630
5215
  }
4631
5216
 
4632
5217
  .pagination-compact .pagination-item:last-child,
4633
5218
  .pagination-compact .pagination-next {
4634
- border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
5219
+ border-start-end-radius: var(--radius-sm);
5220
+ border-end-end-radius: var(--radius-sm);
4635
5221
  }
4636
5222
 
4637
- /* Pagination Responsive */
4638
5223
  .pagination-responsive {
4639
5224
  flex-wrap: wrap;
4640
5225
  justify-content: center;
4641
5226
  }
4642
5227
 
4643
- /* Reduce Motion */
4644
5228
  @media (prefers-reduced-motion: reduce) {
4645
- .menu li > a,
4646
- .menu li > button,
4647
- .menu-item,
4648
- .menu[popover],
4649
5229
  .pagination-item,
4650
5230
  .pagination-prev,
4651
5231
  .pagination-next {
@@ -4654,6 +5234,132 @@ html {
4654
5234
  }
4655
5235
  }
4656
5236
 
5237
+ /** DuskMoonUI text-link primitive. */
5238
+ @layer components {
5239
+ .link {
5240
+ color: var(--color-primary);
5241
+ text-decoration-line: underline;
5242
+ text-decoration-thickness: 0.08em;
5243
+ text-underline-offset: 0.18em;
5244
+ overflow-wrap: anywhere;
5245
+ cursor: pointer;
5246
+ transition: color 150ms ease-in-out, text-decoration-color 150ms ease-in-out,
5247
+ background-color 150ms ease-in-out;
5248
+ }
5249
+
5250
+ .link:hover {
5251
+ color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 18%);
5252
+ text-decoration-thickness: 0.12em;
5253
+ }
5254
+
5255
+ .link:active {
5256
+ color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 30%);
5257
+ }
5258
+
5259
+ .link:focus-visible {
5260
+ outline: 2px solid currentColor;
5261
+ outline-offset: 3px;
5262
+ border-radius: var(--radius-xs);
5263
+ }
5264
+
5265
+ .link-hover { text-decoration-color: transparent; }
5266
+ .link-hover:hover,
5267
+ .link-hover:focus-visible { text-decoration-color: currentColor; }
5268
+ .link-primary { color: var(--color-primary); }
5269
+ .link-secondary { color: var(--color-secondary); }
5270
+ .link-tertiary { color: var(--color-tertiary); }
5271
+ .link-neutral,
5272
+ .link-inherit { color: inherit; }
5273
+ .link-neutral:hover,
5274
+ .link-inherit:hover { color: color-mix(in oklch, currentColor, var(--color-on-surface) 18%); }
5275
+
5276
+ @media (prefers-reduced-motion: reduce) {
5277
+ .link { transition: none; }
5278
+ }
5279
+ }
5280
+
5281
+ /**
5282
+ * Megamenu is a CSS composition layer over native popovers, Menu, and Link.
5283
+ * Give each trigger/panel pair a unique --megamenu-anchor custom identifier.
5284
+ */
5285
+
5286
+
5287
+
5288
+ @layer components {
5289
+ .megamenu { position: relative; display: flex; align-items: center; max-width: 100%; }
5290
+ .megamenu-bar {
5291
+ display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
5292
+ margin: 0; padding: 0; list-style: none;
5293
+ }
5294
+ .megamenu-trigger {
5295
+ anchor-name: var(--megamenu-anchor);
5296
+ display: inline-flex; align-items: center; gap: 0.375rem;
5297
+ padding: 0.625rem 0.875rem; color: var(--color-on-surface);
5298
+ background: transparent; border: 0; border-radius: var(--radius-sm);
5299
+ font: inherit; cursor: pointer;
5300
+ }
5301
+ .megamenu-trigger:hover,
5302
+ .megamenu-trigger[aria-expanded="true"],
5303
+ .megamenu:has(.megamenu-panel:popover-open) .megamenu-trigger {
5304
+ color: var(--color-on-primary-container);
5305
+ background-color: var(--color-primary-container);
5306
+ }
5307
+ .megamenu-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
5308
+ .megamenu-panel[popover] {
5309
+ position-anchor: var(--megamenu-anchor);
5310
+ position-area: block-end span-inline-end;
5311
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
5312
+ display: none; box-sizing: border-box;
5313
+ width: min(48rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem);
5314
+ max-height: min(36rem, calc(100dvh - 2rem)); margin: 0.5rem; padding: 1rem;
5315
+ overflow: auto; color: var(--color-on-surface);
5316
+ background-color: var(--color-surface-container);
5317
+ border: 1px solid var(--color-outline-variant); border-radius: var(--radius-lg);
5318
+ box-shadow: var(--shadow-lg); opacity: 0;
5319
+ transform: translateY(-0.25rem) scale(0.98);
5320
+ transition: opacity 150ms ease-out, transform 150ms ease-out,
5321
+ overlay 150ms ease-out allow-discrete, display 150ms ease-out allow-discrete;
5322
+ }
5323
+ .megamenu-panel[popover]:popover-open { display: block; opacity: 1; transform: translateY(0) scale(1); }
5324
+ .megamenu-panel-full[popover] { width: calc(100vw - 2rem); }
5325
+ .megamenu-grid {
5326
+ display: grid;
5327
+ grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
5328
+ gap: 1.25rem;
5329
+ }
5330
+ .megamenu-group { min-width: 0; }
5331
+ .megamenu-heading {
5332
+ margin: 0 0 0.5rem; color: var(--color-on-surface); font-size: 0.75rem;
5333
+ font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
5334
+ }
5335
+ .megamenu-panel .menu { flex-direction: column; padding: 0; }
5336
+ .megamenu-panel .menu > li,
5337
+ .megamenu-panel .menu > li > .link { width: 100%; }
5338
+ .megamenu-supporting { color: var(--color-on-surface-variant); font-size: 0.875rem; }
5339
+
5340
+ @starting-style {
5341
+ .megamenu-panel[popover]:popover-open { opacity: 0; transform: translateY(-0.25rem) scale(0.98); }
5342
+ }
5343
+ @supports not (position-area: bottom) {
5344
+ .megamenu-panel[popover] { position: fixed; inset: 4.5rem 1rem auto; margin-inline: auto; }
5345
+ }
5346
+ /* Baseline fallback: without Popover API support, links remain visible and reachable. */
5347
+ @supports not selector(:popover-open) {
5348
+ .megamenu { display: block; }
5349
+ .megamenu-panel[popover] {
5350
+ position: static; display: block; width: 100%; max-width: 100%; max-height: none;
5351
+ margin: 0.5rem 0 0; opacity: 1; transform: none;
5352
+ }
5353
+ }
5354
+ @media (max-width: 47.999rem) {
5355
+ .megamenu-desktop { display: none; }
5356
+ .megamenu-mobile { display: block; }
5357
+ }
5358
+ @media (min-width: 48rem) { .megamenu-mobile { display: none; } }
5359
+ @media (prefers-reduced-motion: reduce) { .megamenu-panel[popover] { transition: none; } }
5360
+ }
5361
+
5362
+
4657
5363
 
4658
5364
  /* Modal Component */
4659
5365
  /**
@@ -4688,7 +5394,7 @@ html {
4688
5394
  position: relative;
4689
5395
  z-index: 1;
4690
5396
  max-width: 32rem;
4691
- max-height: calc(100vh - 5rem);
5397
+ max-height: calc(100dvh - 5rem);
4692
5398
  padding: 1.5rem;
4693
5399
  background-color: var(--color-surface);
4694
5400
  color: var(--color-on-surface);
@@ -4723,6 +5429,7 @@ html {
4723
5429
  .modal-action,
4724
5430
  .modal-footer {
4725
5431
  display: flex;
5432
+ flex-wrap: wrap;
4726
5433
  justify-content: flex-end;
4727
5434
  gap: 0.5rem;
4728
5435
  margin-top: 1.5rem;
@@ -4896,7 +5603,7 @@ html {
4896
5603
 
4897
5604
  .modal-responsive .modal-box {
4898
5605
  max-width: 100%;
4899
- max-height: 90vh;
5606
+ max-height: 90dvh;
4900
5607
  margin: 0;
4901
5608
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
4902
5609
  }
@@ -4911,7 +5618,7 @@ html {
4911
5618
 
4912
5619
  .drawer-modal .modal-box {
4913
5620
  max-width: 20rem;
4914
- max-height: 100vh;
5621
+ max-height: 100dvh;
4915
5622
  height: 100%;
4916
5623
  margin: 0;
4917
5624
  border-radius: 0;
@@ -13968,9 +14675,10 @@ html {
13968
14675
  margin: auto;
13969
14676
  padding: 0;
13970
14677
  border: none;
13971
- width: 100%;
14678
+ width: calc(100% - 2rem);
13972
14679
  max-width: 28rem;
13973
- max-height: calc(100vh - 4rem);
14680
+ max-height: calc(100dvh - 2rem);
14681
+ box-sizing: border-box;
13974
14682
  background-color: var(--color-surface);
13975
14683
  color: var(--color-on-surface);
13976
14684
  border-radius: var(--radius-2xl);
@@ -13987,7 +14695,7 @@ html {
13987
14695
  .dialog-box {
13988
14696
  display: flex;
13989
14697
  flex-direction: column;
13990
- max-height: calc(100vh - 4rem);
14698
+ max-height: calc(100dvh - 2rem);
13991
14699
  overflow: hidden;
13992
14700
  }
13993
14701
 
@@ -14046,6 +14754,7 @@ html {
14046
14754
  /* Dialog Footer */
14047
14755
  .dialog-footer {
14048
14756
  display: flex;
14757
+ flex-wrap: wrap;
14049
14758
  justify-content: flex-end;
14050
14759
  gap: 0.5rem;
14051
14760
  padding: 1rem 1.5rem 1.5rem;
@@ -14085,6 +14794,30 @@ html {
14085
14794
  margin: 0;
14086
14795
  }
14087
14796
 
14797
+ @media (max-width: 640px) {
14798
+ dialog.dialog {
14799
+ width: calc(100% - 1rem);
14800
+ max-height: calc(100dvh - 1rem);
14801
+ border-radius: var(--radius-lg);
14802
+ }
14803
+
14804
+ .dialog-box {
14805
+ max-height: calc(100dvh - 1rem);
14806
+ }
14807
+
14808
+ .dialog-header {
14809
+ padding: 1rem 1rem 0;
14810
+ }
14811
+
14812
+ .dialog-body {
14813
+ padding: 1rem;
14814
+ }
14815
+
14816
+ .dialog-footer {
14817
+ padding: 0.75rem 1rem 1rem;
14818
+ }
14819
+ }
14820
+
14088
14821
  dialog.dialog.dialog-fullscreen .dialog-box {
14089
14822
  max-height: 100%;
14090
14823
  }
@@ -17725,15 +18458,15 @@ html {
17725
18458
  /* Base Bottom Navigation */
17726
18459
  .bottom-nav {
17727
18460
  position: fixed;
17728
- bottom: 0;
17729
- left: 0;
17730
- right: 0;
18461
+ bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
18462
+ inset-block-end: 0;
18463
+ inset-inline: 0;
17731
18464
  z-index: 1000;
17732
18465
  display: flex;
17733
18466
  align-items: stretch;
17734
18467
  justify-content: space-around;
17735
18468
  min-height: 5rem;
17736
- padding-bottom: env(safe-area-inset-bottom, 0);
18469
+ padding-block-end: env(safe-area-inset-bottom, 0);
17737
18470
  background-color: var(--color-surface);
17738
18471
  box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
17739
18472
  }
@@ -17755,6 +18488,8 @@ html {
17755
18488
  transition: color 150ms ease-in-out;
17756
18489
  text-decoration: none;
17757
18490
  gap: 0.25rem;
18491
+ position: relative;
18492
+ border-radius: var(--radius-md);
17758
18493
  }
17759
18494
 
17760
18495
  .bottom-nav-item:hover {
@@ -17762,7 +18497,8 @@ html {
17762
18497
  }
17763
18498
 
17764
18499
  .bottom-nav-item:focus-visible {
17765
- outline: none;
18500
+ outline: 2px solid currentColor;
18501
+ outline-offset: -2px;
17766
18502
  }
17767
18503
 
17768
18504
  .bottom-nav-item:focus-visible .bottom-nav-indicator {
@@ -17771,10 +18507,18 @@ html {
17771
18507
  }
17772
18508
 
17773
18509
  /* Active State */
17774
- .bottom-nav-item.active {
18510
+ .bottom-nav-item.active,
18511
+ .bottom-nav-item-active,
18512
+ .bottom-nav-item-active-primary,
18513
+ .bottom-nav-item[aria-current="page"] {
17775
18514
  color: var(--color-on-surface);
17776
18515
  }
17777
18516
 
18517
+ .bottom-nav-item:is(.active, .bottom-nav-item-active, .bottom-nav-item-active-primary, [aria-current="page"]):not(:has(.bottom-nav-indicator)) {
18518
+ color: var(--color-on-secondary-container);
18519
+ background-color: var(--color-secondary-container);
18520
+ }
18521
+
17778
18522
  /* Icon Container with Indicator */
17779
18523
  .bottom-nav-indicator {
17780
18524
  position: relative;
@@ -17791,7 +18535,10 @@ html {
17791
18535
  background-color: var(--color-surface-container);
17792
18536
  }
17793
18537
 
17794
- .bottom-nav-item.active .bottom-nav-indicator {
18538
+ .bottom-nav-item.active .bottom-nav-indicator,
18539
+ .bottom-nav-item-active .bottom-nav-indicator,
18540
+ .bottom-nav-item-active-primary .bottom-nav-indicator,
18541
+ .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
17795
18542
  background-color: var(--color-secondary-container);
17796
18543
  }
17797
18544
 
@@ -17814,7 +18561,10 @@ html {
17814
18561
  max-width: 100%;
17815
18562
  }
17816
18563
 
17817
- .bottom-nav-item.active .bottom-nav-label {
18564
+ .bottom-nav-item.active .bottom-nav-label,
18565
+ .bottom-nav-item-active .bottom-nav-label,
18566
+ .bottom-nav-item-active-primary .bottom-nav-label,
18567
+ .bottom-nav-item[aria-current="page"] .bottom-nav-label {
17818
18568
  font-weight: 600;
17819
18569
  }
17820
18570
 
@@ -17822,7 +18572,7 @@ html {
17822
18572
  .bottom-nav-badge {
17823
18573
  position: absolute;
17824
18574
  top: 0;
17825
- right: 0.5rem;
18575
+ inset-inline-end: 0.5rem;
17826
18576
  min-width: 1rem;
17827
18577
  height: 1rem;
17828
18578
  padding: 0 0.25rem;
@@ -17841,7 +18591,7 @@ html {
17841
18591
  height: 0.5rem;
17842
18592
  padding: 0;
17843
18593
  top: 0.125rem;
17844
- right: 0.75rem;
18594
+ inset-inline-end: 0.75rem;
17845
18595
  }
17846
18596
 
17847
18597
  /* Variants */
@@ -17859,23 +18609,96 @@ html {
17859
18609
  }
17860
18610
 
17861
18611
  /* Color Variants */
17862
- .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator {
18612
+ .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator,
18613
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active .bottom-nav-indicator,
18614
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
17863
18615
  background-color: var(--color-primary-container);
17864
18616
  }
17865
18617
 
17866
- .bottom-nav-primary .bottom-nav-item.active {
18618
+ .bottom-nav-item-active-secondary {
18619
+ color: var(--color-on-secondary-container);
18620
+ }
18621
+
18622
+ .bottom-nav-item-active-secondary .bottom-nav-indicator {
18623
+ background-color: var(--color-secondary-container);
18624
+ }
18625
+
18626
+ .bottom-nav-item-active-tertiary {
18627
+ color: var(--color-on-tertiary-container);
18628
+ }
18629
+
18630
+ .bottom-nav-item-active-tertiary .bottom-nav-indicator {
18631
+ background-color: var(--color-tertiary-container);
18632
+ }
18633
+
18634
+ .bottom-nav-surface {
18635
+ background-color: var(--color-surface);
18636
+ }
18637
+
18638
+ .bottom-nav-surface-container-low {
18639
+ background-color: var(--color-surface-container-low);
18640
+ }
18641
+
18642
+ .bottom-nav-surface-container-high {
18643
+ background-color: var(--color-surface-container-high);
18644
+ }
18645
+
18646
+ .bottom-nav-transparent {
18647
+ background-color: transparent;
18648
+ }
18649
+
18650
+ .bottom-nav-borderless {
18651
+ border-block-start: 0;
18652
+ box-shadow: none;
18653
+ }
18654
+
18655
+ .bottom-nav-compact {
18656
+ min-height: 3.5rem;
18657
+ }
18658
+
18659
+ .bottom-nav-item-disabled,
18660
+ .bottom-nav-item:disabled,
18661
+ .bottom-nav-item[aria-disabled="true"] {
18662
+ opacity: 0.38;
18663
+ cursor: not-allowed;
18664
+ }
18665
+
18666
+ .bottom-nav-primary .bottom-nav-item.active,
18667
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active,
18668
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] {
17867
18669
  color: var(--color-on-primary-container);
17868
18670
  }
17869
18671
 
17870
18672
  /* Hide Labels */
17871
18673
  .bottom-nav-icons-only .bottom-nav-label {
17872
- display: none;
18674
+ position: absolute;
18675
+ width: 1px;
18676
+ height: 1px;
18677
+ padding: 0;
18678
+ margin: -1px;
18679
+ overflow: hidden;
18680
+ clip: rect(0, 0, 0, 0);
18681
+ white-space: nowrap;
18682
+ border: 0;
17873
18683
  }
17874
18684
 
17875
18685
  .bottom-nav-icons-only .bottom-nav-item {
17876
18686
  padding: 1rem 0.25rem;
17877
18687
  }
17878
18688
 
18689
+ .bottom-nav-labels-only .bottom-nav-icon {
18690
+ display: none;
18691
+ }
18692
+
18693
+ .bottom-nav-labels-only .bottom-nav-item {
18694
+ flex-direction: row;
18695
+ min-width: auto;
18696
+ }
18697
+
18698
+ .bottom-nav-labels-only .bottom-nav-label {
18699
+ font-size: 0.875rem;
18700
+ }
18701
+
17879
18702
  /* Show Labels Only on Active */
17880
18703
  .bottom-nav-labels-active .bottom-nav-label {
17881
18704
  opacity: 0;
@@ -17884,7 +18707,7 @@ html {
17884
18707
  transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
17885
18708
  }
17886
18709
 
17887
- .bottom-nav-labels-active .bottom-nav-item.active .bottom-nav-label {
18710
+ .bottom-nav-labels-active .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
17888
18711
  opacity: 1;
17889
18712
  max-height: 1rem;
17890
18713
  }
@@ -17895,7 +18718,16 @@ html {
17895
18718
  transition: flex 200ms ease-in-out;
17896
18719
  }
17897
18720
 
17898
- .bottom-nav-shifting .bottom-nav-item.active {
18721
+ /* Legacy spelling retained; prefer .bottom-nav-shifting. */
18722
+ .bottom-nav-shift .bottom-nav-item:not(:is(.active, .bottom-nav-item-active, [aria-current="page"])) .bottom-nav-label {
18723
+ display: none;
18724
+ }
18725
+
18726
+ .bottom-nav-shift .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
18727
+ min-width: 6rem;
18728
+ }
18729
+
18730
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
17899
18731
  flex: 1 1 6rem;
17900
18732
  }
17901
18733
 
@@ -17905,7 +18737,7 @@ html {
17905
18737
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
17906
18738
  }
17907
18739
 
17908
- .bottom-nav-shifting .bottom-nav-item.active .bottom-nav-label {
18740
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
17909
18741
  opacity: 1;
17910
18742
  transform: translateY(0);
17911
18743
  }
@@ -17913,9 +18745,9 @@ html {
17913
18745
  /* Rail Style (Side Navigation) */
17914
18746
  .nav-rail {
17915
18747
  position: fixed;
17916
- left: 0;
17917
- top: 0;
17918
- bottom: 0;
18748
+ left: 0; /* Physical fallback; logical inset below controls RTL placement. */
18749
+ inset-inline-start: 0;
18750
+ inset-block: 0;
17919
18751
  z-index: 1000;
17920
18752
  display: flex;
17921
18753
  flex-direction: column;
@@ -17923,7 +18755,11 @@ html {
17923
18755
  width: 5rem;
17924
18756
  padding: 1rem 0;
17925
18757
  background-color: var(--color-surface);
17926
- border-right: 1px solid var(--color-outline-variant);
18758
+ border-inline-end: 1px solid var(--color-outline-variant);
18759
+ }
18760
+
18761
+ .nav-rail:dir(rtl) {
18762
+ left: auto;
17927
18763
  }
17928
18764
 
17929
18765
  .nav-rail .bottom-nav-item {
@@ -17941,13 +18777,13 @@ html {
17941
18777
  @media (min-width: 768px) {
17942
18778
  .bottom-nav-responsive {
17943
18779
  position: relative;
17944
- bottom: auto;
18780
+ inset-block-end: auto;
17945
18781
  justify-content: flex-start;
17946
18782
  gap: 0.5rem;
17947
18783
  min-height: 3rem;
17948
18784
  padding: 0 1rem;
17949
18785
  box-shadow: none;
17950
- border-bottom: 1px solid var(--color-outline-variant);
18786
+ border-block-end: 1px solid var(--color-outline-variant);
17951
18787
  }
17952
18788
 
17953
18789
  .bottom-nav-responsive .bottom-nav-item {
@@ -17963,8 +18799,8 @@ html {
17963
18799
  background-color: transparent !important;
17964
18800
  }
17965
18801
 
17966
- .bottom-nav-responsive .bottom-nav-item.active {
17967
- border-bottom: 2px solid var(--color-primary);
18802
+ .bottom-nav-responsive .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
18803
+ border-block-end: 2px solid var(--color-primary);
17968
18804
  }
17969
18805
  }
17970
18806
 
@@ -18868,8 +19704,12 @@ html {
18868
19704
  }
18869
19705
 
18870
19706
  .nested-menu li.disabled > a,
18871
- .nested-menu li.disabled > button {
19707
+ .nested-menu li.disabled > button,
19708
+ .nested-menu li > button:disabled,
19709
+ .nested-menu li > a[aria-disabled="true"] {
18872
19710
  color: var(--color-on-surface-variant);
19711
+ opacity: 0.5;
19712
+ cursor: not-allowed;
18873
19713
  }
18874
19714
 
18875
19715
  /* ============================================
@@ -18919,7 +19759,7 @@ html {
18919
19759
  .nested-menu summary::after {
18920
19760
  content: "";
18921
19761
  display: inline-block;
18922
- margin-left: auto;
19762
+ margin-inline-start: auto;
18923
19763
  width: 0.375rem;
18924
19764
  height: 0.375rem;
18925
19765
  border-right: 1.5px solid currentColor;
@@ -18934,11 +19774,22 @@ html {
18934
19774
  transform: rotate(45deg);
18935
19775
  }
18936
19776
 
19777
+ .nested-menu:dir(rtl) summary::after {
19778
+ border-right: 0;
19779
+ border-left: 1.5px solid currentColor;
19780
+ transform: rotate(135deg);
19781
+ }
19782
+
19783
+ .nested-menu:dir(rtl) details[open] > summary::after {
19784
+ transform: rotate(45deg);
19785
+ }
19786
+
18937
19787
  /* Nested <ul> inside details — auto-indentation */
18938
19788
  .nested-menu details > ul {
18939
19789
  list-style: none;
18940
19790
  margin: 0;
18941
- padding: 0.125rem 0 0.125rem 1rem;
19791
+ padding-block: 0.125rem;
19792
+ padding-inline: 1rem 0;
18942
19793
  display: flex;
18943
19794
  flex-direction: column;
18944
19795
  gap: 0.125rem;
@@ -19028,7 +19879,7 @@ html {
19028
19879
  }
19029
19880
 
19030
19881
  .nested-menu-compact details > ul {
19031
- padding: 0 0 0 0.75rem;
19882
+ padding-inline: 0.75rem 0;
19032
19883
  }
19033
19884
 
19034
19885
  /* ============================================
@@ -19071,7 +19922,7 @@ html {
19071
19922
  .stepper-step-connector {
19072
19923
  position: absolute;
19073
19924
  top: 1.25rem;
19074
- left: calc(50% + 1.25rem);
19925
+ inset-inline-start: calc(50% + 1.25rem);
19075
19926
  width: calc(100% - 2.5rem);
19076
19927
  height: 2px;
19077
19928
  background-color: var(--color-outline-variant);
@@ -19096,10 +19947,13 @@ html {
19096
19947
  background: none;
19097
19948
  border: none;
19098
19949
  padding: 0;
19950
+ color: inherit;
19099
19951
  }
19100
19952
 
19101
19953
  .stepper-step-button:focus-visible {
19102
- outline: none;
19954
+ outline: 2px solid currentColor;
19955
+ outline-offset: 0.25rem;
19956
+ border-radius: var(--radius-sm);
19103
19957
  }
19104
19958
 
19105
19959
  .stepper-step-button:focus-visible .stepper-step-icon {
@@ -19123,7 +19977,8 @@ html {
19123
19977
  transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;
19124
19978
  }
19125
19979
 
19126
- .stepper-step-active .stepper-step-icon {
19980
+ .stepper-step-active .stepper-step-icon,
19981
+ .stepper-step[aria-current="step"] .stepper-step-icon {
19127
19982
  background-color: var(--color-primary);
19128
19983
  border-color: var(--color-primary);
19129
19984
  color: var(--color-primary-content);
@@ -19154,7 +20009,8 @@ html {
19154
20009
  text-align: center;
19155
20010
  }
19156
20011
 
19157
- .stepper-step-active .stepper-step-label {
20012
+ .stepper-step-active .stepper-step-label,
20013
+ .stepper-step[aria-current="step"] .stepper-step-label {
19158
20014
  color: var(--color-primary);
19159
20015
  }
19160
20016
 
@@ -19165,14 +20021,14 @@ html {
19165
20021
  .stepper-step-description {
19166
20022
  font-size: 0.75rem;
19167
20023
  color: var(--color-on-surface-variant);
19168
- margin-top: 0.125rem;
20024
+ margin-block-start: 0.125rem;
19169
20025
  text-align: center;
19170
20026
  }
19171
20027
 
19172
20028
  /* Step Content (for vertical stepper) */
19173
20029
  .stepper-step-content {
19174
- margin-top: 1.5rem;
19175
- padding: 0 1rem;
20030
+ margin-block-start: 1.5rem;
20031
+ padding-inline: 1rem;
19176
20032
  width: 100%;
19177
20033
  }
19178
20034
 
@@ -19182,7 +20038,7 @@ html {
19182
20038
  display: block;
19183
20039
  font-size: 0.6875rem;
19184
20040
  color: var(--color-on-surface-variant);
19185
- margin-top: 0.125rem;
20041
+ margin-block-start: 0.125rem;
19186
20042
  }
19187
20043
 
19188
20044
  /* Vertical Stepper */
@@ -19199,7 +20055,7 @@ html {
19199
20055
 
19200
20056
  .stepper-vertical .stepper-step-connector {
19201
20057
  top: 2.5rem;
19202
- left: 1.25rem;
20058
+ inset-inline-start: 1.25rem;
19203
20059
  width: 2px;
19204
20060
  height: calc(100% - 2.5rem);
19205
20061
  transform: translateX(-50%);
@@ -19212,18 +20068,19 @@ html {
19212
20068
 
19213
20069
  .stepper-vertical .stepper-step-label,
19214
20070
  .stepper-vertical .stepper-step-description {
19215
- text-align: left;
19216
- margin-left: 1rem;
20071
+ text-align: start;
20072
+ margin-inline-start: 1rem;
19217
20073
  }
19218
20074
 
19219
20075
  .stepper-vertical .stepper-step-content {
19220
- margin-top: 0;
19221
- margin-left: 3.5rem;
19222
- padding: 1rem 0 1.5rem;
20076
+ margin-block-start: 0;
20077
+ margin-inline-start: 3.5rem;
20078
+ padding-block: 1rem 1.5rem;
19223
20079
  }
19224
20080
 
19225
20081
  /* Color Variants */
19226
20082
  .stepper-secondary .stepper-step-active .stepper-step-icon,
20083
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-icon,
19227
20084
  .stepper-secondary .stepper-step-completed .stepper-step-icon {
19228
20085
  background-color: var(--color-secondary);
19229
20086
  border-color: var(--color-secondary);
@@ -19234,11 +20091,13 @@ html {
19234
20091
  background-color: var(--color-secondary);
19235
20092
  }
19236
20093
 
19237
- .stepper-secondary .stepper-step-active .stepper-step-label {
20094
+ .stepper-secondary .stepper-step-active .stepper-step-label,
20095
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-label {
19238
20096
  color: var(--color-secondary);
19239
20097
  }
19240
20098
 
19241
20099
  .stepper-tertiary .stepper-step-active .stepper-step-icon,
20100
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-icon,
19242
20101
  .stepper-tertiary .stepper-step-completed .stepper-step-icon {
19243
20102
  background-color: var(--color-tertiary);
19244
20103
  border-color: var(--color-tertiary);
@@ -19249,7 +20108,8 @@ html {
19249
20108
  background-color: var(--color-tertiary);
19250
20109
  }
19251
20110
 
19252
- .stepper-tertiary .stepper-step-active .stepper-step-label {
20111
+ .stepper-tertiary .stepper-step-active .stepper-step-label,
20112
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-label {
19253
20113
  color: var(--color-tertiary);
19254
20114
  }
19255
20115
 
@@ -19262,7 +20122,7 @@ html {
19262
20122
 
19263
20123
  .stepper-sm .stepper-step-connector {
19264
20124
  top: 1rem;
19265
- left: calc(50% + 1rem);
20125
+ inset-inline-start: calc(50% + 1rem);
19266
20126
  width: calc(100% - 2rem);
19267
20127
  }
19268
20128
 
@@ -19283,14 +20143,14 @@ html {
19283
20143
 
19284
20144
  .stepper-lg .stepper-step-connector {
19285
20145
  top: 1.5rem;
19286
- left: calc(50% + 1.5rem);
20146
+ inset-inline-start: calc(50% + 1.5rem);
19287
20147
  width: calc(100% - 3rem);
19288
20148
  }
19289
20149
 
19290
20150
  /* Alternative Label Positioning */
19291
20151
  .stepper-alt-labels .stepper-step-connector {
19292
20152
  top: 1.25rem;
19293
- left: calc(50% + 2rem);
20153
+ inset-inline-start: calc(50% + 2rem);
19294
20154
  width: calc(100% - 4rem);
19295
20155
  }
19296
20156
 
@@ -19345,6 +20205,11 @@ html {
19345
20205
  opacity: 0.7;
19346
20206
  }
19347
20207
 
20208
+ .stepper-step-button:disabled {
20209
+ cursor: not-allowed;
20210
+ opacity: 0.7;
20211
+ }
20212
+
19348
20213
  /* Icon Stepper */
19349
20214
  .stepper-icons .stepper-step-icon {
19350
20215
  font-size: 1.25rem;