@duskmoon-dev/core 1.19.6 → 1.19.8

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 (42) 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/cascader.css +28 -26
  5. package/dist/components/index.css +731 -234
  6. package/dist/components/link.css +43 -0
  7. package/dist/components/megamenu.css +298 -0
  8. package/dist/components/menu.css +175 -0
  9. package/dist/components/navbar.css +283 -0
  10. package/dist/components/navigation.css +513 -149
  11. package/dist/components/nested-menu.css +19 -4
  12. package/dist/components/pagination.css +216 -0
  13. package/dist/components/stepper.css +33 -19
  14. package/dist/components/tabs.css +101 -0
  15. package/dist/components/tree-select.css +12 -13
  16. package/dist/esm/components/bottom-navigation.js +127 -24
  17. package/dist/esm/components/breadcrumbs.d.ts +5 -0
  18. package/dist/esm/components/breadcrumbs.js +261 -0
  19. package/dist/esm/components/cascader.js +28 -26
  20. package/dist/esm/components/link.d.ts +5 -0
  21. package/dist/esm/components/link.js +52 -0
  22. package/dist/esm/components/megamenu.d.ts +5 -0
  23. package/dist/esm/components/megamenu.js +307 -0
  24. package/dist/esm/components/menu.d.ts +5 -0
  25. package/dist/esm/components/menu.js +184 -0
  26. package/dist/esm/components/navbar.d.ts +5 -0
  27. package/dist/esm/components/navbar.js +292 -0
  28. package/dist/esm/components/navigation.js +513 -149
  29. package/dist/esm/components/nested-menu.js +19 -4
  30. package/dist/esm/components/pagination.d.ts +5 -0
  31. package/dist/esm/components/pagination.js +225 -0
  32. package/dist/esm/components/stepper.js +33 -19
  33. package/dist/esm/components/tabs.d.ts +5 -0
  34. package/dist/esm/components/tabs.js +110 -0
  35. package/dist/esm/components/tree-select.js +12 -13
  36. package/dist/index.css +731 -234
  37. package/dist/index.min.css +1 -1
  38. package/dist/standalone/duskmoonui-themes.css +1 -1
  39. package/dist/standalone/duskmoonui.css +733 -236
  40. package/dist/standalone/duskmoonui.js +11 -8
  41. package/dist/standalone/duskmoonui.mjs +11 -8
  42. package/package.json +43 -1
package/dist/index.css CHANGED
@@ -4103,11 +4103,13 @@ html {
4103
4103
 
4104
4104
  /* Navigation Component - retains the legacy Dropdown import contract */
4105
4105
  /**
4106
- * Navigation Component Styles
4107
- * DuskMoonUI - Material Design 3 inspired navigation system
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.
4108
4110
  */
4109
4111
 
4110
- /* Preserve the Navigation entrypoint's published Dropdown coverage. */
4112
+ /* Keep the historical Dropdown coverage and cascade order. */
4111
4113
  /**
4112
4114
  * Dropdown Component Styles
4113
4115
  * Native Popover disclosure with logical CSS anchor positioning.
@@ -4200,9 +4202,12 @@ html {
4200
4202
  }
4201
4203
  }
4202
4204
 
4205
+ /**
4206
+ * Navbar Component Styles
4207
+ * DuskMoonUI - Material Design 3 inspired navigation bar
4208
+ */
4203
4209
 
4204
4210
  @layer components {
4205
- /* Navbar Base */
4206
4211
  .navbar {
4207
4212
  display: flex;
4208
4213
  align-items: center;
@@ -4211,6 +4216,9 @@ html {
4211
4216
  padding: 0.5rem 1rem;
4212
4217
  background-color: var(--color-surface);
4213
4218
  color: var(--color-on-surface);
4219
+ gap: 1rem;
4220
+ border-block-end: 1px solid var(--color-outline-variant);
4221
+ min-width: 0;
4214
4222
  }
4215
4223
 
4216
4224
  .navbar-primary {
@@ -4273,6 +4281,7 @@ html {
4273
4281
  flex: 1;
4274
4282
  justify-content: flex-start;
4275
4283
  gap: 0.5rem;
4284
+ min-width: 0;
4276
4285
  }
4277
4286
 
4278
4287
  .navbar-center {
@@ -4281,6 +4290,10 @@ html {
4281
4290
  justify-content: center;
4282
4291
  flex-shrink: 0;
4283
4292
  gap: 0.5rem;
4293
+ min-width: 0;
4294
+ overflow-x: auto;
4295
+ overscroll-behavior-inline: contain;
4296
+ scrollbar-width: thin;
4284
4297
  }
4285
4298
 
4286
4299
  .navbar-end {
@@ -4289,9 +4302,196 @@ html {
4289
4302
  flex: 1;
4290
4303
  justify-content: flex-end;
4291
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;
4292
4445
  }
4293
4446
 
4294
- /* 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 {
4295
4495
  .menu {
4296
4496
  display: flex;
4297
4497
  flex-wrap: wrap;
@@ -4360,13 +4560,13 @@ html {
4360
4560
  position-area: right;
4361
4561
  }
4362
4562
 
4363
- .menu li {
4563
+ .menu > li {
4364
4564
  display: flex;
4365
4565
  flex-shrink: 0;
4366
4566
  }
4367
4567
 
4368
- .menu li > a,
4369
- .menu li > button,
4568
+ .menu > li > a,
4569
+ .menu > li > button,
4370
4570
  .menu-item {
4371
4571
  display: flex;
4372
4572
  align-items: center;
@@ -4381,41 +4581,46 @@ html {
4381
4581
  white-space: nowrap;
4382
4582
  }
4383
4583
 
4384
- .menu li > a:hover,
4385
- .menu li > button:hover,
4584
+ .menu > li > a:hover,
4585
+ .menu > li > button:hover,
4386
4586
  .menu-item:hover {
4387
4587
  background-color: var(--color-surface-container);
4388
4588
  }
4389
4589
 
4390
- .menu li > a:focus-visible,
4391
- .menu li > button:focus-visible,
4590
+ .menu > li > a:focus-visible,
4591
+ .menu > li > button:focus-visible,
4392
4592
  .menu-item:focus-visible {
4393
4593
  outline: none;
4394
4594
  box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
4395
4595
  }
4396
4596
 
4397
- .menu li > a.active,
4398
- .menu li > button.active,
4597
+ .menu > li > a.active,
4598
+ .menu > li > button.active,
4399
4599
  .menu-item.active,
4400
- .menu li > a[aria-current="page"],
4401
- .menu li > button[aria-current="page"] {
4600
+ .menu > li > a[aria-current="page"],
4601
+ .menu > li > button[aria-current="page"] {
4402
4602
  background-color: var(--color-primary-container);
4403
4603
  color: var(--color-on-primary-container);
4404
4604
  }
4405
4605
 
4406
- .menu li.disabled > a,
4407
- .menu li.disabled > button,
4408
- .menu-item:disabled {
4606
+ .menu-item[aria-current="page"] {
4607
+ background-color: var(--color-primary-container);
4608
+ color: var(--color-on-primary-container);
4609
+ }
4610
+
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"] {
4409
4616
  opacity: 0.5;
4410
- pointer-events: none;
4617
+ cursor: not-allowed;
4411
4618
  }
4412
4619
 
4413
- /* Menu Horizontal */
4414
4620
  .menu-horizontal {
4415
4621
  flex-direction: row;
4416
4622
  }
4417
4623
 
4418
- /* Menu Vertical */
4419
4624
  .menu-vertical {
4420
4625
  flex-direction: column;
4421
4626
  }
@@ -4430,7 +4635,6 @@ html {
4430
4635
  width: 100%;
4431
4636
  }
4432
4637
 
4433
- /* Menu Compact */
4434
4638
  .menu-compact li > a,
4435
4639
  .menu-compact li > button,
4436
4640
  .menu-compact .menu-item {
@@ -4438,7 +4642,6 @@ html {
4438
4642
  font-size: 0.8125rem;
4439
4643
  }
4440
4644
 
4441
- /* Menu Title */
4442
4645
  .menu-title {
4443
4646
  padding: 0.5rem 1rem;
4444
4647
  font-size: 0.75rem;
@@ -4448,7 +4651,23 @@ html {
4448
4651
  color: var(--color-on-surface-variant);
4449
4652
  }
4450
4653
 
4451
- /* 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 {
4452
4671
  .breadcrumbs {
4453
4672
  display: flex;
4454
4673
  align-items: center;
@@ -4460,7 +4679,6 @@ html {
4460
4679
  font-size: 0.875rem;
4461
4680
  }
4462
4681
 
4463
- /* List-based breadcrumbs (legacy) */
4464
4682
  .breadcrumbs li {
4465
4683
  display: flex;
4466
4684
  align-items: center;
@@ -4491,7 +4709,6 @@ html {
4491
4709
  color: var(--color-on-surface-variant);
4492
4710
  }
4493
4711
 
4494
- /* Span-based breadcrumbs */
4495
4712
  .breadcrumb-item {
4496
4713
  display: inline-flex;
4497
4714
  align-items: center;
@@ -4532,7 +4749,6 @@ html {
4532
4749
  border-radius: var(--radius-xs);
4533
4750
  }
4534
4751
 
4535
- /* Separator - Default shows "/" */
4536
4752
  .breadcrumb-separator {
4537
4753
  display: inline-flex;
4538
4754
  align-items: center;
@@ -4546,7 +4762,6 @@ html {
4546
4762
  content: "/";
4547
4763
  }
4548
4764
 
4549
- /* Separator Variants */
4550
4765
  .breadcrumbs-slash .breadcrumb-separator::before {
4551
4766
  content: "/";
4552
4767
  }
@@ -4568,7 +4783,6 @@ html {
4568
4783
  content: "|";
4569
4784
  }
4570
4785
 
4571
- /* Breadcrumb Icon */
4572
4786
  .breadcrumb-icon {
4573
4787
  display: inline-flex;
4574
4788
  align-items: center;
@@ -4583,7 +4797,6 @@ html {
4583
4797
  height: 100%;
4584
4798
  }
4585
4799
 
4586
- /* Home Icon Link */
4587
4800
  .breadcrumb-home {
4588
4801
  display: inline-flex;
4589
4802
  align-items: center;
@@ -4602,7 +4815,6 @@ html {
4602
4815
  height: 1.125rem;
4603
4816
  }
4604
4817
 
4605
- /* Collapsed Breadcrumbs (with ellipsis) */
4606
4818
  .breadcrumb-ellipsis {
4607
4819
  display: inline-flex;
4608
4820
  align-items: center;
@@ -4624,7 +4836,6 @@ html {
4624
4836
  background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
4625
4837
  }
4626
4838
 
4627
- /* Color Variants */
4628
4839
  .breadcrumbs-primary .breadcrumb-link:hover,
4629
4840
  .breadcrumbs-primary .breadcrumb-item-active {
4630
4841
  color: var(--color-primary);
@@ -4640,7 +4851,6 @@ html {
4640
4851
  color: var(--color-tertiary);
4641
4852
  }
4642
4853
 
4643
- /* Size Variants */
4644
4854
  .breadcrumbs-sm {
4645
4855
  font-size: 0.75rem;
4646
4856
  gap: 0.375rem;
@@ -4663,131 +4873,156 @@ html {
4663
4873
  height: 1.25rem;
4664
4874
  }
4665
4875
 
4666
- /* Contained Variant (with background) */
4667
4876
  .breadcrumbs-contained {
4668
4877
  padding: 0.75rem 1rem;
4669
4878
  background-color: var(--color-surface-container);
4670
4879
  border-radius: var(--radius-sm);
4671
4880
  }
4672
4881
 
4673
- /* No Wrap Variant */
4674
4882
  .breadcrumbs-nowrap {
4675
4883
  flex-wrap: nowrap;
4676
4884
  overflow-x: auto;
4885
+ overscroll-behavior-inline: contain;
4886
+ scrollbar-width: thin;
4887
+ }
4888
+
4889
+ .breadcrumbs-nowrap > * {
4890
+ flex: 0 0 auto;
4677
4891
  }
4678
4892
 
4679
- /* Disabled Breadcrumb Item */
4680
4893
  .breadcrumb-item-disabled {
4681
4894
  opacity: 1;
4682
4895
  pointer-events: none;
4683
4896
  cursor: not-allowed;
4684
4897
  }
4685
4898
 
4686
- /* Tabs */
4687
- .tabs {
4688
- display: flex;
4689
- flex-wrap: wrap;
4690
- gap: 0.25rem;
4691
- border-bottom: 1px solid var(--color-outline);
4692
- }
4693
-
4694
- .tab {
4695
- display: inline-flex;
4696
- align-items: center;
4697
- justify-content: center;
4698
- gap: 0.5rem;
4699
- padding: 0.75rem 1.25rem;
4700
- font-size: 0.875rem;
4701
- font-weight: 500;
4702
- color: var(--color-on-surface-variant);
4703
- text-decoration: none;
4704
- background-color: transparent;
4705
- border: none;
4706
- border-bottom: 2px solid transparent;
4707
- cursor: pointer;
4708
- transition: all 150ms ease-in-out;
4709
- position: relative;
4710
- margin-bottom: -1px;
4711
- }
4712
-
4713
- .tab:hover {
4714
- color: var(--color-on-surface);
4715
- background-color: var(--color-surface-container);
4716
- }
4717
-
4718
- .tab:focus-visible {
4719
- outline: none;
4720
- box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
4721
- }
4722
-
4723
- .tab.tab-active,
4724
- .tab[aria-selected="true"] {
4725
- color: var(--color-primary);
4726
- border-bottom-color: var(--color-primary);
4727
- }
4728
-
4729
- .tab:disabled {
4730
- opacity: 0.5;
4731
- cursor: not-allowed;
4732
- }
4733
-
4734
- /* Tabs Boxed */
4735
- .tabs-boxed {
4736
- background-color: var(--color-surface-container);
4737
- border-radius: var(--radius-sm);
4738
- padding: 0.25rem;
4739
- border: none;
4740
- }
4741
-
4742
- .tabs-boxed .tab {
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;
4743
4904
  border-radius: var(--radius-xs);
4744
- border-bottom: none;
4745
- margin-bottom: 0;
4746
- }
4747
-
4748
- .tabs-boxed .tab.tab-active,
4749
- .tabs-boxed .tab[aria-selected="true"] {
4750
- background-color: var(--color-surface);
4751
- color: var(--color-on-surface);
4752
- box-shadow: var(--shadow-xs);
4753
- }
4754
-
4755
- /* Tabs Lifted */
4756
- .tabs-lifted {
4757
- border: none;
4758
4905
  }
4759
4906
 
4760
- .tabs-lifted .tab {
4761
- border: 1px solid transparent;
4762
- border-bottom: none;
4763
- border-radius: var(--radius-sm) var(--radius-sm) 0 0;
4764
- margin-bottom: -1px;
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
+ }
4765
4915
  }
4916
+ }
4766
4917
 
4767
- .tabs-lifted .tab.tab-active,
4768
- .tabs-lifted .tab[aria-selected="true"] {
4769
- background-color: var(--color-surface);
4770
- border-color: var(--color-outline);
4771
- border-bottom-color: var(--color-surface);
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);
4772
4923
  }
4773
-
4774
- /* Tab Sizes */
4775
- .tab-xs {
4776
- padding: 0.375rem 0.625rem;
4777
- font-size: 0.75rem;
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;
4778
4933
  }
4779
-
4780
- .tab-sm {
4781
- padding: 0.5rem 0.875rem;
4782
- font-size: 0.8125rem;
4934
+ .tab:hover:not(:disabled, [aria-disabled="true"]) {
4935
+ color: var(--color-on-surface); background-color: var(--color-surface-container);
4783
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
+ }
4784
5019
 
4785
- .tab-lg {
4786
- padding: 1rem 1.5rem;
4787
- font-size: 1rem;
4788
- }
5020
+ /**
5021
+ * Pagination Component Styles
5022
+ * DuskMoonUI - Material Design 3 inspired pagination
5023
+ */
4789
5024
 
4790
- /* Pagination */
5025
+ @layer components {
4791
5026
  .pagination {
4792
5027
  display: flex;
4793
5028
  align-items: center;
@@ -4829,6 +5064,7 @@ html {
4829
5064
 
4830
5065
  .pagination-item-active,
4831
5066
  .pagination-item-active-primary,
5067
+ .pagination-item[aria-current="page"],
4832
5068
  .pagination li > a.active,
4833
5069
  .pagination li > button.active,
4834
5070
  .pagination li > a[aria-current="page"],
@@ -4850,6 +5086,14 @@ html {
4850
5086
  border-color: var(--color-tertiary);
4851
5087
  }
4852
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
+
4853
5097
  .pagination-item:focus-visible,
4854
5098
  .pagination-prev:focus-visible,
4855
5099
  .pagination-next:focus-visible,
@@ -4864,13 +5108,12 @@ html {
4864
5108
  .pagination-prev:disabled,
4865
5109
  .pagination-next:disabled,
4866
5110
  .pagination li > a:disabled,
4867
- .pagination li > button:disabled {
5111
+ .pagination li > button:disabled,
5112
+ .pagination a[aria-disabled="true"] {
4868
5113
  opacity: 0.5;
4869
5114
  cursor: not-allowed;
4870
- pointer-events: none;
4871
5115
  }
4872
5116
 
4873
- /* Pagination Ellipsis */
4874
5117
  .pagination-ellipsis {
4875
5118
  display: inline-flex;
4876
5119
  align-items: center;
@@ -4884,7 +5127,6 @@ html {
4884
5127
  content: '…';
4885
5128
  }
4886
5129
 
4887
- /* Pagination Info */
4888
5130
  .pagination-info {
4889
5131
  display: flex;
4890
5132
  flex-direction: row;
@@ -4897,7 +5139,6 @@ html {
4897
5139
  color: var(--color-on-surface-variant);
4898
5140
  }
4899
5141
 
4900
- /* Pagination Input */
4901
5142
  .pagination-input {
4902
5143
  display: inline-flex;
4903
5144
  align-items: center;
@@ -4919,10 +5160,13 @@ html {
4919
5160
 
4920
5161
  .pagination-input input:focus {
4921
5162
  outline: none;
5163
+ }
5164
+
5165
+ .pagination-input input:focus-visible {
4922
5166
  border-color: var(--color-primary);
5167
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
4923
5168
  }
4924
5169
 
4925
- /* Pagination Variants */
4926
5170
  .pagination-outlined .pagination-item,
4927
5171
  .pagination-outlined .pagination-prev,
4928
5172
  .pagination-outlined .pagination-next {
@@ -4936,7 +5180,6 @@ html {
4936
5180
  border-color: var(--color-primary-container);
4937
5181
  }
4938
5182
 
4939
- /* Pagination Sizes */
4940
5183
  .pagination-sm .pagination-item,
4941
5184
  .pagination-sm .pagination-prev,
4942
5185
  .pagination-sm .pagination-next {
@@ -4955,7 +5198,6 @@ html {
4955
5198
  font-size: 1rem;
4956
5199
  }
4957
5200
 
4958
- /* Pagination Compact */
4959
5201
  .pagination-compact {
4960
5202
  gap: 0;
4961
5203
  }
@@ -4968,26 +5210,22 @@ html {
4968
5210
 
4969
5211
  .pagination-compact .pagination-item:first-child,
4970
5212
  .pagination-compact .pagination-prev {
4971
- 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);
4972
5215
  }
4973
5216
 
4974
5217
  .pagination-compact .pagination-item:last-child,
4975
5218
  .pagination-compact .pagination-next {
4976
- 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);
4977
5221
  }
4978
5222
 
4979
- /* Pagination Responsive */
4980
5223
  .pagination-responsive {
4981
5224
  flex-wrap: wrap;
4982
5225
  justify-content: center;
4983
5226
  }
4984
5227
 
4985
- /* Reduce Motion */
4986
5228
  @media (prefers-reduced-motion: reduce) {
4987
- .menu li > a,
4988
- .menu li > button,
4989
- .menu-item,
4990
- .menu[popover],
4991
5229
  .pagination-item,
4992
5230
  .pagination-prev,
4993
5231
  .pagination-next {
@@ -4996,6 +5234,132 @@ html {
4996
5234
  }
4997
5235
  }
4998
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
+
4999
5363
 
5000
5364
  /* Modal Component */
5001
5365
  /**
@@ -8245,6 +8609,23 @@ html {
8245
8609
  background-color: var(--color-surface-container-high);
8246
8610
  }
8247
8611
 
8612
+ .cascader:has(> .cascader-clear) .cascader-value {
8613
+ padding-inline-end: 2rem;
8614
+ }
8615
+
8616
+ .cascader > .cascader-clear {
8617
+ position: absolute;
8618
+ inset-block-start: 50%;
8619
+ inset-inline-end: 2.75rem;
8620
+ z-index: 1;
8621
+ transform: translateY(-50%);
8622
+ }
8623
+
8624
+ .cascader > .cascader-clear:focus-visible {
8625
+ outline: 2px solid currentColor;
8626
+ outline-offset: 2px;
8627
+ }
8628
+
8248
8629
  /* Cascader Dropdown */
8249
8630
  .cascader-dropdown {
8250
8631
  position: absolute;
@@ -8266,7 +8647,10 @@ html {
8266
8647
 
8267
8648
  /* Popover API Support */
8268
8649
  .cascader-dropdown[popover] {
8269
- inset: unset;
8650
+ position: fixed;
8651
+ inset: auto 0.5rem 0.5rem auto;
8652
+ max-inline-size: calc(100dvw - 1rem);
8653
+ max-block-size: min(16rem, calc(100dvh - 1rem));
8270
8654
  margin: 0;
8271
8655
  border: 1px solid var(--color-outline-variant);
8272
8656
  }
@@ -8275,32 +8659,14 @@ html {
8275
8659
  display: flex;
8276
8660
  }
8277
8661
 
8278
- /* CSS Anchor Positioning for modern browsers */
8279
- @supports (anchor-name: --anchor) {
8280
- .cascader-trigger {
8281
- anchor-name: --cascader-anchor;
8282
- }
8283
-
8662
+ /* The popovertarget invoker is the implicit anchor for its own dropdown. */
8663
+ @supports (position-area: block-end) {
8284
8664
  .cascader-dropdown[popover] {
8285
- position-anchor: --cascader-anchor;
8286
- top: anchor(bottom);
8287
- left: anchor(left);
8288
- margin-top: 0.25rem;
8289
- position-try-fallbacks: flip-block;
8290
- }
8291
- }
8292
-
8293
- /* Fallback for browsers without anchor positioning */
8294
- @supports not (anchor-name: --anchor) {
8295
- .cascader {
8296
- position: relative;
8297
- }
8298
-
8299
- .cascader-dropdown[popover]:popover-open {
8300
- position: absolute;
8301
- top: 100%;
8302
- left: 0;
8303
- margin-top: 0.25rem;
8665
+ inset: auto;
8666
+ margin-block: 0.25rem;
8667
+ margin-inline: 0;
8668
+ position-area: block-end span-inline-end;
8669
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
8304
8670
  }
8305
8671
  }
8306
8672
 
@@ -13499,8 +13865,10 @@ html {
13499
13865
  /* Popover API Support */
13500
13866
  .tree-select-dropdown[popover] {
13501
13867
  /* Reset browser defaults for proper positioning */
13502
- position: absolute;
13503
- inset: unset;
13868
+ position: fixed;
13869
+ inset: auto 0.5rem 0.5rem auto;
13870
+ max-inline-size: calc(100dvw - 1rem);
13871
+ max-block-size: min(20rem, calc(100dvh - 1rem));
13504
13872
  margin: 0;
13505
13873
  border: 1px solid var(--color-outline-variant);
13506
13874
  }
@@ -13509,18 +13877,15 @@ html {
13509
13877
  display: block;
13510
13878
  }
13511
13879
 
13512
- /* CSS Anchor Positioning for modern browsers */
13513
- @supports (anchor-name: --tree-select) {
13514
- .tree-select {
13515
- anchor-name: --tree-select;
13516
- }
13517
-
13880
+ /* The popovertarget invoker is the implicit anchor for its own dropdown. */
13881
+ @supports (position-area: block-end) {
13518
13882
  .tree-select-dropdown[popover] {
13519
- position-anchor: --tree-select;
13520
- top: anchor(bottom);
13521
- left: anchor(left);
13522
- right: anchor(right);
13523
- position-try-fallbacks: flip-block;
13883
+ inset: auto;
13884
+ inline-size: anchor-size(width);
13885
+ margin-block: 0.25rem;
13886
+ margin-inline: 0;
13887
+ position-area: block-end span-inline-end;
13888
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
13524
13889
  }
13525
13890
  }
13526
13891
 
@@ -18094,15 +18459,15 @@ html {
18094
18459
  /* Base Bottom Navigation */
18095
18460
  .bottom-nav {
18096
18461
  position: fixed;
18097
- bottom: 0;
18098
- left: 0;
18099
- right: 0;
18462
+ bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
18463
+ inset-block-end: 0;
18464
+ inset-inline: 0;
18100
18465
  z-index: 1000;
18101
18466
  display: flex;
18102
18467
  align-items: stretch;
18103
18468
  justify-content: space-around;
18104
18469
  min-height: 5rem;
18105
- padding-bottom: env(safe-area-inset-bottom, 0);
18470
+ padding-block-end: env(safe-area-inset-bottom, 0);
18106
18471
  background-color: var(--color-surface);
18107
18472
  box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
18108
18473
  }
@@ -18124,6 +18489,8 @@ html {
18124
18489
  transition: color 150ms ease-in-out;
18125
18490
  text-decoration: none;
18126
18491
  gap: 0.25rem;
18492
+ position: relative;
18493
+ border-radius: var(--radius-md);
18127
18494
  }
18128
18495
 
18129
18496
  .bottom-nav-item:hover {
@@ -18131,7 +18498,8 @@ html {
18131
18498
  }
18132
18499
 
18133
18500
  .bottom-nav-item:focus-visible {
18134
- outline: none;
18501
+ outline: 2px solid currentColor;
18502
+ outline-offset: -2px;
18135
18503
  }
18136
18504
 
18137
18505
  .bottom-nav-item:focus-visible .bottom-nav-indicator {
@@ -18140,10 +18508,18 @@ html {
18140
18508
  }
18141
18509
 
18142
18510
  /* Active State */
18143
- .bottom-nav-item.active {
18511
+ .bottom-nav-item.active,
18512
+ .bottom-nav-item-active,
18513
+ .bottom-nav-item-active-primary,
18514
+ .bottom-nav-item[aria-current="page"] {
18144
18515
  color: var(--color-on-surface);
18145
18516
  }
18146
18517
 
18518
+ .bottom-nav-item:is(.active, .bottom-nav-item-active, .bottom-nav-item-active-primary, [aria-current="page"]):not(:has(.bottom-nav-indicator)) {
18519
+ color: var(--color-on-secondary-container);
18520
+ background-color: var(--color-secondary-container);
18521
+ }
18522
+
18147
18523
  /* Icon Container with Indicator */
18148
18524
  .bottom-nav-indicator {
18149
18525
  position: relative;
@@ -18160,7 +18536,10 @@ html {
18160
18536
  background-color: var(--color-surface-container);
18161
18537
  }
18162
18538
 
18163
- .bottom-nav-item.active .bottom-nav-indicator {
18539
+ .bottom-nav-item.active .bottom-nav-indicator,
18540
+ .bottom-nav-item-active .bottom-nav-indicator,
18541
+ .bottom-nav-item-active-primary .bottom-nav-indicator,
18542
+ .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
18164
18543
  background-color: var(--color-secondary-container);
18165
18544
  }
18166
18545
 
@@ -18183,7 +18562,10 @@ html {
18183
18562
  max-width: 100%;
18184
18563
  }
18185
18564
 
18186
- .bottom-nav-item.active .bottom-nav-label {
18565
+ .bottom-nav-item.active .bottom-nav-label,
18566
+ .bottom-nav-item-active .bottom-nav-label,
18567
+ .bottom-nav-item-active-primary .bottom-nav-label,
18568
+ .bottom-nav-item[aria-current="page"] .bottom-nav-label {
18187
18569
  font-weight: 600;
18188
18570
  }
18189
18571
 
@@ -18191,7 +18573,7 @@ html {
18191
18573
  .bottom-nav-badge {
18192
18574
  position: absolute;
18193
18575
  top: 0;
18194
- right: 0.5rem;
18576
+ inset-inline-end: 0.5rem;
18195
18577
  min-width: 1rem;
18196
18578
  height: 1rem;
18197
18579
  padding: 0 0.25rem;
@@ -18210,7 +18592,7 @@ html {
18210
18592
  height: 0.5rem;
18211
18593
  padding: 0;
18212
18594
  top: 0.125rem;
18213
- right: 0.75rem;
18595
+ inset-inline-end: 0.75rem;
18214
18596
  }
18215
18597
 
18216
18598
  /* Variants */
@@ -18228,23 +18610,96 @@ html {
18228
18610
  }
18229
18611
 
18230
18612
  /* Color Variants */
18231
- .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator {
18613
+ .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator,
18614
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active .bottom-nav-indicator,
18615
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
18232
18616
  background-color: var(--color-primary-container);
18233
18617
  }
18234
18618
 
18235
- .bottom-nav-primary .bottom-nav-item.active {
18619
+ .bottom-nav-item-active-secondary {
18620
+ color: var(--color-on-secondary-container);
18621
+ }
18622
+
18623
+ .bottom-nav-item-active-secondary .bottom-nav-indicator {
18624
+ background-color: var(--color-secondary-container);
18625
+ }
18626
+
18627
+ .bottom-nav-item-active-tertiary {
18628
+ color: var(--color-on-tertiary-container);
18629
+ }
18630
+
18631
+ .bottom-nav-item-active-tertiary .bottom-nav-indicator {
18632
+ background-color: var(--color-tertiary-container);
18633
+ }
18634
+
18635
+ .bottom-nav-surface {
18636
+ background-color: var(--color-surface);
18637
+ }
18638
+
18639
+ .bottom-nav-surface-container-low {
18640
+ background-color: var(--color-surface-container-low);
18641
+ }
18642
+
18643
+ .bottom-nav-surface-container-high {
18644
+ background-color: var(--color-surface-container-high);
18645
+ }
18646
+
18647
+ .bottom-nav-transparent {
18648
+ background-color: transparent;
18649
+ }
18650
+
18651
+ .bottom-nav-borderless {
18652
+ border-block-start: 0;
18653
+ box-shadow: none;
18654
+ }
18655
+
18656
+ .bottom-nav-compact {
18657
+ min-height: 3.5rem;
18658
+ }
18659
+
18660
+ .bottom-nav-item-disabled,
18661
+ .bottom-nav-item:disabled,
18662
+ .bottom-nav-item[aria-disabled="true"] {
18663
+ opacity: 0.38;
18664
+ cursor: not-allowed;
18665
+ }
18666
+
18667
+ .bottom-nav-primary .bottom-nav-item.active,
18668
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active,
18669
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] {
18236
18670
  color: var(--color-on-primary-container);
18237
18671
  }
18238
18672
 
18239
18673
  /* Hide Labels */
18240
18674
  .bottom-nav-icons-only .bottom-nav-label {
18241
- display: none;
18675
+ position: absolute;
18676
+ width: 1px;
18677
+ height: 1px;
18678
+ padding: 0;
18679
+ margin: -1px;
18680
+ overflow: hidden;
18681
+ clip: rect(0, 0, 0, 0);
18682
+ white-space: nowrap;
18683
+ border: 0;
18242
18684
  }
18243
18685
 
18244
18686
  .bottom-nav-icons-only .bottom-nav-item {
18245
18687
  padding: 1rem 0.25rem;
18246
18688
  }
18247
18689
 
18690
+ .bottom-nav-labels-only .bottom-nav-icon {
18691
+ display: none;
18692
+ }
18693
+
18694
+ .bottom-nav-labels-only .bottom-nav-item {
18695
+ flex-direction: row;
18696
+ min-width: auto;
18697
+ }
18698
+
18699
+ .bottom-nav-labels-only .bottom-nav-label {
18700
+ font-size: 0.875rem;
18701
+ }
18702
+
18248
18703
  /* Show Labels Only on Active */
18249
18704
  .bottom-nav-labels-active .bottom-nav-label {
18250
18705
  opacity: 0;
@@ -18253,7 +18708,7 @@ html {
18253
18708
  transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
18254
18709
  }
18255
18710
 
18256
- .bottom-nav-labels-active .bottom-nav-item.active .bottom-nav-label {
18711
+ .bottom-nav-labels-active .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
18257
18712
  opacity: 1;
18258
18713
  max-height: 1rem;
18259
18714
  }
@@ -18264,7 +18719,16 @@ html {
18264
18719
  transition: flex 200ms ease-in-out;
18265
18720
  }
18266
18721
 
18267
- .bottom-nav-shifting .bottom-nav-item.active {
18722
+ /* Legacy spelling retained; prefer .bottom-nav-shifting. */
18723
+ .bottom-nav-shift .bottom-nav-item:not(:is(.active, .bottom-nav-item-active, [aria-current="page"])) .bottom-nav-label {
18724
+ display: none;
18725
+ }
18726
+
18727
+ .bottom-nav-shift .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
18728
+ min-width: 6rem;
18729
+ }
18730
+
18731
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
18268
18732
  flex: 1 1 6rem;
18269
18733
  }
18270
18734
 
@@ -18274,7 +18738,7 @@ html {
18274
18738
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
18275
18739
  }
18276
18740
 
18277
- .bottom-nav-shifting .bottom-nav-item.active .bottom-nav-label {
18741
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
18278
18742
  opacity: 1;
18279
18743
  transform: translateY(0);
18280
18744
  }
@@ -18282,9 +18746,9 @@ html {
18282
18746
  /* Rail Style (Side Navigation) */
18283
18747
  .nav-rail {
18284
18748
  position: fixed;
18285
- left: 0;
18286
- top: 0;
18287
- bottom: 0;
18749
+ left: 0; /* Physical fallback; logical inset below controls RTL placement. */
18750
+ inset-inline-start: 0;
18751
+ inset-block: 0;
18288
18752
  z-index: 1000;
18289
18753
  display: flex;
18290
18754
  flex-direction: column;
@@ -18292,7 +18756,11 @@ html {
18292
18756
  width: 5rem;
18293
18757
  padding: 1rem 0;
18294
18758
  background-color: var(--color-surface);
18295
- border-right: 1px solid var(--color-outline-variant);
18759
+ border-inline-end: 1px solid var(--color-outline-variant);
18760
+ }
18761
+
18762
+ .nav-rail:dir(rtl) {
18763
+ left: auto;
18296
18764
  }
18297
18765
 
18298
18766
  .nav-rail .bottom-nav-item {
@@ -18310,13 +18778,13 @@ html {
18310
18778
  @media (min-width: 768px) {
18311
18779
  .bottom-nav-responsive {
18312
18780
  position: relative;
18313
- bottom: auto;
18781
+ inset-block-end: auto;
18314
18782
  justify-content: flex-start;
18315
18783
  gap: 0.5rem;
18316
18784
  min-height: 3rem;
18317
18785
  padding: 0 1rem;
18318
18786
  box-shadow: none;
18319
- border-bottom: 1px solid var(--color-outline-variant);
18787
+ border-block-end: 1px solid var(--color-outline-variant);
18320
18788
  }
18321
18789
 
18322
18790
  .bottom-nav-responsive .bottom-nav-item {
@@ -18332,8 +18800,8 @@ html {
18332
18800
  background-color: transparent !important;
18333
18801
  }
18334
18802
 
18335
- .bottom-nav-responsive .bottom-nav-item.active {
18336
- border-bottom: 2px solid var(--color-primary);
18803
+ .bottom-nav-responsive .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
18804
+ border-block-end: 2px solid var(--color-primary);
18337
18805
  }
18338
18806
  }
18339
18807
 
@@ -19237,8 +19705,12 @@ html {
19237
19705
  }
19238
19706
 
19239
19707
  .nested-menu li.disabled > a,
19240
- .nested-menu li.disabled > button {
19708
+ .nested-menu li.disabled > button,
19709
+ .nested-menu li > button:disabled,
19710
+ .nested-menu li > a[aria-disabled="true"] {
19241
19711
  color: var(--color-on-surface-variant);
19712
+ opacity: 0.5;
19713
+ cursor: not-allowed;
19242
19714
  }
19243
19715
 
19244
19716
  /* ============================================
@@ -19288,7 +19760,7 @@ html {
19288
19760
  .nested-menu summary::after {
19289
19761
  content: "";
19290
19762
  display: inline-block;
19291
- margin-left: auto;
19763
+ margin-inline-start: auto;
19292
19764
  width: 0.375rem;
19293
19765
  height: 0.375rem;
19294
19766
  border-right: 1.5px solid currentColor;
@@ -19303,11 +19775,22 @@ html {
19303
19775
  transform: rotate(45deg);
19304
19776
  }
19305
19777
 
19778
+ .nested-menu:dir(rtl) summary::after {
19779
+ border-right: 0;
19780
+ border-left: 1.5px solid currentColor;
19781
+ transform: rotate(135deg);
19782
+ }
19783
+
19784
+ .nested-menu:dir(rtl) details[open] > summary::after {
19785
+ transform: rotate(45deg);
19786
+ }
19787
+
19306
19788
  /* Nested <ul> inside details — auto-indentation */
19307
19789
  .nested-menu details > ul {
19308
19790
  list-style: none;
19309
19791
  margin: 0;
19310
- padding: 0.125rem 0 0.125rem 1rem;
19792
+ padding-block: 0.125rem;
19793
+ padding-inline: 1rem 0;
19311
19794
  display: flex;
19312
19795
  flex-direction: column;
19313
19796
  gap: 0.125rem;
@@ -19397,7 +19880,7 @@ html {
19397
19880
  }
19398
19881
 
19399
19882
  .nested-menu-compact details > ul {
19400
- padding: 0 0 0 0.75rem;
19883
+ padding-inline: 0.75rem 0;
19401
19884
  }
19402
19885
 
19403
19886
  /* ============================================
@@ -19440,7 +19923,7 @@ html {
19440
19923
  .stepper-step-connector {
19441
19924
  position: absolute;
19442
19925
  top: 1.25rem;
19443
- left: calc(50% + 1.25rem);
19926
+ inset-inline-start: calc(50% + 1.25rem);
19444
19927
  width: calc(100% - 2.5rem);
19445
19928
  height: 2px;
19446
19929
  background-color: var(--color-outline-variant);
@@ -19465,10 +19948,13 @@ html {
19465
19948
  background: none;
19466
19949
  border: none;
19467
19950
  padding: 0;
19951
+ color: inherit;
19468
19952
  }
19469
19953
 
19470
19954
  .stepper-step-button:focus-visible {
19471
- outline: none;
19955
+ outline: 2px solid currentColor;
19956
+ outline-offset: 0.25rem;
19957
+ border-radius: var(--radius-sm);
19472
19958
  }
19473
19959
 
19474
19960
  .stepper-step-button:focus-visible .stepper-step-icon {
@@ -19492,7 +19978,8 @@ html {
19492
19978
  transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;
19493
19979
  }
19494
19980
 
19495
- .stepper-step-active .stepper-step-icon {
19981
+ .stepper-step-active .stepper-step-icon,
19982
+ .stepper-step[aria-current="step"] .stepper-step-icon {
19496
19983
  background-color: var(--color-primary);
19497
19984
  border-color: var(--color-primary);
19498
19985
  color: var(--color-primary-content);
@@ -19523,7 +20010,8 @@ html {
19523
20010
  text-align: center;
19524
20011
  }
19525
20012
 
19526
- .stepper-step-active .stepper-step-label {
20013
+ .stepper-step-active .stepper-step-label,
20014
+ .stepper-step[aria-current="step"] .stepper-step-label {
19527
20015
  color: var(--color-primary);
19528
20016
  }
19529
20017
 
@@ -19534,14 +20022,14 @@ html {
19534
20022
  .stepper-step-description {
19535
20023
  font-size: 0.75rem;
19536
20024
  color: var(--color-on-surface-variant);
19537
- margin-top: 0.125rem;
20025
+ margin-block-start: 0.125rem;
19538
20026
  text-align: center;
19539
20027
  }
19540
20028
 
19541
20029
  /* Step Content (for vertical stepper) */
19542
20030
  .stepper-step-content {
19543
- margin-top: 1.5rem;
19544
- padding: 0 1rem;
20031
+ margin-block-start: 1.5rem;
20032
+ padding-inline: 1rem;
19545
20033
  width: 100%;
19546
20034
  }
19547
20035
 
@@ -19551,7 +20039,7 @@ html {
19551
20039
  display: block;
19552
20040
  font-size: 0.6875rem;
19553
20041
  color: var(--color-on-surface-variant);
19554
- margin-top: 0.125rem;
20042
+ margin-block-start: 0.125rem;
19555
20043
  }
19556
20044
 
19557
20045
  /* Vertical Stepper */
@@ -19568,7 +20056,7 @@ html {
19568
20056
 
19569
20057
  .stepper-vertical .stepper-step-connector {
19570
20058
  top: 2.5rem;
19571
- left: 1.25rem;
20059
+ inset-inline-start: 1.25rem;
19572
20060
  width: 2px;
19573
20061
  height: calc(100% - 2.5rem);
19574
20062
  transform: translateX(-50%);
@@ -19581,18 +20069,19 @@ html {
19581
20069
 
19582
20070
  .stepper-vertical .stepper-step-label,
19583
20071
  .stepper-vertical .stepper-step-description {
19584
- text-align: left;
19585
- margin-left: 1rem;
20072
+ text-align: start;
20073
+ margin-inline-start: 1rem;
19586
20074
  }
19587
20075
 
19588
20076
  .stepper-vertical .stepper-step-content {
19589
- margin-top: 0;
19590
- margin-left: 3.5rem;
19591
- padding: 1rem 0 1.5rem;
20077
+ margin-block-start: 0;
20078
+ margin-inline-start: 3.5rem;
20079
+ padding-block: 1rem 1.5rem;
19592
20080
  }
19593
20081
 
19594
20082
  /* Color Variants */
19595
20083
  .stepper-secondary .stepper-step-active .stepper-step-icon,
20084
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-icon,
19596
20085
  .stepper-secondary .stepper-step-completed .stepper-step-icon {
19597
20086
  background-color: var(--color-secondary);
19598
20087
  border-color: var(--color-secondary);
@@ -19603,11 +20092,13 @@ html {
19603
20092
  background-color: var(--color-secondary);
19604
20093
  }
19605
20094
 
19606
- .stepper-secondary .stepper-step-active .stepper-step-label {
20095
+ .stepper-secondary .stepper-step-active .stepper-step-label,
20096
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-label {
19607
20097
  color: var(--color-secondary);
19608
20098
  }
19609
20099
 
19610
20100
  .stepper-tertiary .stepper-step-active .stepper-step-icon,
20101
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-icon,
19611
20102
  .stepper-tertiary .stepper-step-completed .stepper-step-icon {
19612
20103
  background-color: var(--color-tertiary);
19613
20104
  border-color: var(--color-tertiary);
@@ -19618,7 +20109,8 @@ html {
19618
20109
  background-color: var(--color-tertiary);
19619
20110
  }
19620
20111
 
19621
- .stepper-tertiary .stepper-step-active .stepper-step-label {
20112
+ .stepper-tertiary .stepper-step-active .stepper-step-label,
20113
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-label {
19622
20114
  color: var(--color-tertiary);
19623
20115
  }
19624
20116
 
@@ -19631,7 +20123,7 @@ html {
19631
20123
 
19632
20124
  .stepper-sm .stepper-step-connector {
19633
20125
  top: 1rem;
19634
- left: calc(50% + 1rem);
20126
+ inset-inline-start: calc(50% + 1rem);
19635
20127
  width: calc(100% - 2rem);
19636
20128
  }
19637
20129
 
@@ -19652,14 +20144,14 @@ html {
19652
20144
 
19653
20145
  .stepper-lg .stepper-step-connector {
19654
20146
  top: 1.5rem;
19655
- left: calc(50% + 1.5rem);
20147
+ inset-inline-start: calc(50% + 1.5rem);
19656
20148
  width: calc(100% - 3rem);
19657
20149
  }
19658
20150
 
19659
20151
  /* Alternative Label Positioning */
19660
20152
  .stepper-alt-labels .stepper-step-connector {
19661
20153
  top: 1.25rem;
19662
- left: calc(50% + 2rem);
20154
+ inset-inline-start: calc(50% + 2rem);
19663
20155
  width: calc(100% - 4rem);
19664
20156
  }
19665
20157
 
@@ -19714,6 +20206,11 @@ html {
19714
20206
  opacity: 0.7;
19715
20207
  }
19716
20208
 
20209
+ .stepper-step-button:disabled {
20210
+ cursor: not-allowed;
20211
+ opacity: 0.7;
20212
+ }
20213
+
19717
20214
  /* Icon Stepper */
19718
20215
  .stepper-icons .stepper-step-icon {
19719
20216
  font-size: 1.25rem;