@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
@@ -3129,11 +3129,13 @@
3129
3129
 
3130
3130
  /* Navigation Component - retains the legacy Dropdown import contract */
3131
3131
  /**
3132
- * Navigation Component Styles
3133
- * DuskMoonUI - Material Design 3 inspired navigation system
3132
+ * Navigation compatibility aggregate.
3133
+ *
3134
+ * Component-specific CSS files are canonical. Imports are resolved by the build
3135
+ * before CSS strings and constructable stylesheets are generated.
3134
3136
  */
3135
3137
 
3136
- /* Preserve the Navigation entrypoint's published Dropdown coverage. */
3138
+ /* Keep the historical Dropdown coverage and cascade order. */
3137
3139
  /**
3138
3140
  * Dropdown Component Styles
3139
3141
  * Native Popover disclosure with logical CSS anchor positioning.
@@ -3226,9 +3228,12 @@
3226
3228
  }
3227
3229
  }
3228
3230
 
3231
+ /**
3232
+ * Navbar Component Styles
3233
+ * DuskMoonUI - Material Design 3 inspired navigation bar
3234
+ */
3229
3235
 
3230
3236
  @layer components {
3231
- /* Navbar Base */
3232
3237
  .navbar {
3233
3238
  display: flex;
3234
3239
  align-items: center;
@@ -3237,6 +3242,9 @@
3237
3242
  padding: 0.5rem 1rem;
3238
3243
  background-color: var(--color-surface);
3239
3244
  color: var(--color-on-surface);
3245
+ gap: 1rem;
3246
+ border-block-end: 1px solid var(--color-outline-variant);
3247
+ min-width: 0;
3240
3248
  }
3241
3249
 
3242
3250
  .navbar-primary {
@@ -3299,6 +3307,7 @@
3299
3307
  flex: 1;
3300
3308
  justify-content: flex-start;
3301
3309
  gap: 0.5rem;
3310
+ min-width: 0;
3302
3311
  }
3303
3312
 
3304
3313
  .navbar-center {
@@ -3307,6 +3316,10 @@
3307
3316
  justify-content: center;
3308
3317
  flex-shrink: 0;
3309
3318
  gap: 0.5rem;
3319
+ min-width: 0;
3320
+ overflow-x: auto;
3321
+ overscroll-behavior-inline: contain;
3322
+ scrollbar-width: thin;
3310
3323
  }
3311
3324
 
3312
3325
  .navbar-end {
@@ -3315,9 +3328,196 @@
3315
3328
  flex: 1;
3316
3329
  justify-content: flex-end;
3317
3330
  gap: 0.5rem;
3331
+ min-width: 0;
3332
+ }
3333
+
3334
+ .navbar-brand {
3335
+ display: inline-flex;
3336
+ align-items: center;
3337
+ gap: 0.5rem;
3338
+ min-width: 0;
3339
+ color: inherit;
3340
+ font-size: 1.25rem;
3341
+ font-weight: 600;
3342
+ line-height: 1.75rem;
3343
+ text-decoration: none;
3344
+ }
3345
+
3346
+ .navbar-item {
3347
+ display: inline-flex;
3348
+ align-items: center;
3349
+ gap: 0.5rem;
3350
+ padding: 0.5rem 0.75rem;
3351
+ color: inherit;
3352
+ font-size: 0.875rem;
3353
+ font-weight: 500;
3354
+ line-height: 1.25rem;
3355
+ text-decoration: none;
3356
+ background-color: transparent;
3357
+ border: 0;
3358
+ border-radius: var(--radius-sm);
3359
+ cursor: pointer;
3360
+ transition: background-color 150ms ease-in-out, color 150ms ease-in-out;
3361
+ white-space: nowrap;
3362
+ }
3363
+
3364
+ .navbar-item:hover,
3365
+ .navbar-hamburger:hover {
3366
+ background-color: color-mix(in oklch, currentColor 8%, transparent);
3367
+ }
3368
+
3369
+ .navbar-item:focus-visible,
3370
+ .navbar-brand:focus-visible,
3371
+ .navbar-hamburger:focus-visible {
3372
+ outline: 2px solid currentColor;
3373
+ outline-offset: 2px;
3374
+ }
3375
+
3376
+ .navbar-item-active,
3377
+ .navbar-item[aria-current="page"] {
3378
+ color: var(--color-primary);
3379
+ background-color: color-mix(in oklch, var(--color-primary) 12%, transparent);
3380
+ }
3381
+
3382
+ :is(.navbar-primary, .navbar-secondary, .navbar-tertiary) :is(.navbar-item-active, .navbar-item[aria-current="page"]) {
3383
+ color: inherit;
3384
+ background-color: color-mix(in oklch, white 20%, transparent);
3385
+ }
3386
+
3387
+ .navbar-hamburger {
3388
+ display: inline-flex;
3389
+ align-items: center;
3390
+ justify-content: center;
3391
+ inline-size: 2.5rem;
3392
+ block-size: 2.5rem;
3393
+ padding: 0.5rem;
3394
+ color: inherit;
3395
+ background-color: transparent;
3396
+ border: 0;
3397
+ border-radius: var(--radius-sm);
3398
+ cursor: pointer;
3399
+ }
3400
+
3401
+ .navbar-menu {
3402
+ display: flex;
3403
+ flex-direction: column;
3404
+ gap: 0.25rem;
3405
+ padding: 0.5rem;
3406
+ color: var(--color-on-surface);
3407
+ background-color: var(--color-surface-container);
3408
+ border-radius: var(--radius-md);
3409
+ box-shadow: var(--shadow-md);
3410
+ }
3411
+
3412
+ .navbar-divider {
3413
+ inline-size: 1px;
3414
+ block-size: 1.5rem;
3415
+ margin-inline: 0.25rem;
3416
+ background-color: var(--color-outline-variant);
3417
+ }
3418
+
3419
+ .navbar-surface {
3420
+ background-color: var(--color-surface);
3421
+ }
3422
+
3423
+ .navbar-surface-container {
3424
+ background-color: var(--color-surface-container);
3425
+ }
3426
+
3427
+ .navbar-surface-container-high {
3428
+ background-color: var(--color-surface-container-high);
3429
+ box-shadow: var(--shadow-xs);
3430
+ }
3431
+
3432
+ .navbar-surface-container-highest {
3433
+ background-color: var(--color-surface-container-highest);
3434
+ box-shadow: var(--shadow-sm);
3435
+ }
3436
+
3437
+ .navbar-transparent {
3438
+ background-color: transparent;
3439
+ border-block-end: 0;
3440
+ }
3441
+
3442
+ .navbar-blur {
3443
+ background-color: color-mix(in oklch, var(--color-surface) 80%, transparent);
3444
+ backdrop-filter: blur(8px);
3445
+ }
3446
+
3447
+ .navbar-fixed {
3448
+ position: fixed;
3449
+ inset-block-start: 0;
3450
+ inset-inline: 0;
3451
+ z-index: 50;
3452
+ }
3453
+
3454
+ .navbar-sticky {
3455
+ position: sticky;
3456
+ inset-block-start: 0;
3457
+ z-index: 50;
3458
+ }
3459
+
3460
+ .navbar-static {
3461
+ position: static;
3462
+ }
3463
+
3464
+ .navbar-compact {
3465
+ padding-block: 0.5rem;
3466
+ }
3467
+
3468
+ .navbar-compact .navbar-item {
3469
+ padding: 0.375rem 0.625rem;
3470
+ font-size: 0.8125rem;
3318
3471
  }
3319
3472
 
3320
- /* Menu */
3473
+ .navbar-comfortable {
3474
+ padding: 1rem 1.5rem;
3475
+ }
3476
+
3477
+ .navbar-comfortable .navbar-item {
3478
+ padding: 0.625rem 1rem;
3479
+ font-size: 1rem;
3480
+ }
3481
+
3482
+ .navbar-borderless {
3483
+ border-block-end: 0;
3484
+ }
3485
+
3486
+ @media (max-width: 47.999rem) {
3487
+ .navbar-responsive .navbar-center {
3488
+ display: none;
3489
+ }
3490
+
3491
+ .navbar-responsive .navbar-start,
3492
+ .navbar-responsive .navbar-end {
3493
+ flex: 0 1 auto;
3494
+ }
3495
+
3496
+ .navbar-responsive .navbar-end {
3497
+ margin-inline-start: auto;
3498
+ }
3499
+ }
3500
+
3501
+ @media (min-width: 48rem) {
3502
+ .navbar-responsive .navbar-hamburger {
3503
+ display: none;
3504
+ }
3505
+ }
3506
+
3507
+ @media (prefers-reduced-motion: reduce) {
3508
+ .navbar,
3509
+ .navbar-item {
3510
+ transition: none;
3511
+ }
3512
+ }
3513
+ }
3514
+
3515
+ /**
3516
+ * Menu Component Styles
3517
+ * DuskMoonUI - Material Design 3 inspired dropdown menu
3518
+ */
3519
+
3520
+ @layer components {
3321
3521
  .menu {
3322
3522
  display: flex;
3323
3523
  flex-wrap: wrap;
@@ -3386,13 +3586,13 @@
3386
3586
  position-area: right;
3387
3587
  }
3388
3588
 
3389
- .menu li {
3589
+ .menu > li {
3390
3590
  display: flex;
3391
3591
  flex-shrink: 0;
3392
3592
  }
3393
3593
 
3394
- .menu li > a,
3395
- .menu li > button,
3594
+ .menu > li > a,
3595
+ .menu > li > button,
3396
3596
  .menu-item {
3397
3597
  display: flex;
3398
3598
  align-items: center;
@@ -3407,41 +3607,46 @@
3407
3607
  white-space: nowrap;
3408
3608
  }
3409
3609
 
3410
- .menu li > a:hover,
3411
- .menu li > button:hover,
3610
+ .menu > li > a:hover,
3611
+ .menu > li > button:hover,
3412
3612
  .menu-item:hover {
3413
3613
  background-color: var(--color-surface-container);
3414
3614
  }
3415
3615
 
3416
- .menu li > a:focus-visible,
3417
- .menu li > button:focus-visible,
3616
+ .menu > li > a:focus-visible,
3617
+ .menu > li > button:focus-visible,
3418
3618
  .menu-item:focus-visible {
3419
3619
  outline: none;
3420
3620
  box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
3421
3621
  }
3422
3622
 
3423
- .menu li > a.active,
3424
- .menu li > button.active,
3623
+ .menu > li > a.active,
3624
+ .menu > li > button.active,
3425
3625
  .menu-item.active,
3426
- .menu li > a[aria-current="page"],
3427
- .menu li > button[aria-current="page"] {
3626
+ .menu > li > a[aria-current="page"],
3627
+ .menu > li > button[aria-current="page"] {
3428
3628
  background-color: var(--color-primary-container);
3429
3629
  color: var(--color-on-primary-container);
3430
3630
  }
3431
3631
 
3432
- .menu li.disabled > a,
3433
- .menu li.disabled > button,
3434
- .menu-item:disabled {
3632
+ .menu-item[aria-current="page"] {
3633
+ background-color: var(--color-primary-container);
3634
+ color: var(--color-on-primary-container);
3635
+ }
3636
+
3637
+ .menu > li.disabled > a,
3638
+ .menu > li.disabled > button,
3639
+ .menu-item:disabled,
3640
+ .menu > li > button:disabled,
3641
+ .menu-item[aria-disabled="true"] {
3435
3642
  opacity: 0.5;
3436
- pointer-events: none;
3643
+ cursor: not-allowed;
3437
3644
  }
3438
3645
 
3439
- /* Menu Horizontal */
3440
3646
  .menu-horizontal {
3441
3647
  flex-direction: row;
3442
3648
  }
3443
3649
 
3444
- /* Menu Vertical */
3445
3650
  .menu-vertical {
3446
3651
  flex-direction: column;
3447
3652
  }
@@ -3456,7 +3661,6 @@
3456
3661
  width: 100%;
3457
3662
  }
3458
3663
 
3459
- /* Menu Compact */
3460
3664
  .menu-compact li > a,
3461
3665
  .menu-compact li > button,
3462
3666
  .menu-compact .menu-item {
@@ -3464,7 +3668,6 @@
3464
3668
  font-size: 0.8125rem;
3465
3669
  }
3466
3670
 
3467
- /* Menu Title */
3468
3671
  .menu-title {
3469
3672
  padding: 0.5rem 1rem;
3470
3673
  font-size: 0.75rem;
@@ -3474,7 +3677,23 @@
3474
3677
  color: var(--color-on-surface-variant);
3475
3678
  }
3476
3679
 
3477
- /* Breadcrumbs */
3680
+ /* Reduce Motion */
3681
+ @media (prefers-reduced-motion: reduce) {
3682
+ .menu > li > a,
3683
+ .menu > li > button,
3684
+ .menu-item,
3685
+ .menu[popover] {
3686
+ transition: none;
3687
+ }
3688
+ }
3689
+ }
3690
+
3691
+ /**
3692
+ * Breadcrumbs Component Styles
3693
+ * DuskMoonUI - Material Design 3 inspired breadcrumb navigation
3694
+ */
3695
+
3696
+ @layer components {
3478
3697
  .breadcrumbs {
3479
3698
  display: flex;
3480
3699
  align-items: center;
@@ -3486,7 +3705,6 @@
3486
3705
  font-size: 0.875rem;
3487
3706
  }
3488
3707
 
3489
- /* List-based breadcrumbs (legacy) */
3490
3708
  .breadcrumbs li {
3491
3709
  display: flex;
3492
3710
  align-items: center;
@@ -3517,7 +3735,6 @@
3517
3735
  color: var(--color-on-surface-variant);
3518
3736
  }
3519
3737
 
3520
- /* Span-based breadcrumbs */
3521
3738
  .breadcrumb-item {
3522
3739
  display: inline-flex;
3523
3740
  align-items: center;
@@ -3558,7 +3775,6 @@
3558
3775
  border-radius: var(--radius-xs);
3559
3776
  }
3560
3777
 
3561
- /* Separator - Default shows "/" */
3562
3778
  .breadcrumb-separator {
3563
3779
  display: inline-flex;
3564
3780
  align-items: center;
@@ -3572,7 +3788,6 @@
3572
3788
  content: "/";
3573
3789
  }
3574
3790
 
3575
- /* Separator Variants */
3576
3791
  .breadcrumbs-slash .breadcrumb-separator::before {
3577
3792
  content: "/";
3578
3793
  }
@@ -3594,7 +3809,6 @@
3594
3809
  content: "|";
3595
3810
  }
3596
3811
 
3597
- /* Breadcrumb Icon */
3598
3812
  .breadcrumb-icon {
3599
3813
  display: inline-flex;
3600
3814
  align-items: center;
@@ -3609,7 +3823,6 @@
3609
3823
  height: 100%;
3610
3824
  }
3611
3825
 
3612
- /* Home Icon Link */
3613
3826
  .breadcrumb-home {
3614
3827
  display: inline-flex;
3615
3828
  align-items: center;
@@ -3628,7 +3841,6 @@
3628
3841
  height: 1.125rem;
3629
3842
  }
3630
3843
 
3631
- /* Collapsed Breadcrumbs (with ellipsis) */
3632
3844
  .breadcrumb-ellipsis {
3633
3845
  display: inline-flex;
3634
3846
  align-items: center;
@@ -3650,7 +3862,6 @@
3650
3862
  background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
3651
3863
  }
3652
3864
 
3653
- /* Color Variants */
3654
3865
  .breadcrumbs-primary .breadcrumb-link:hover,
3655
3866
  .breadcrumbs-primary .breadcrumb-item-active {
3656
3867
  color: var(--color-primary);
@@ -3666,7 +3877,6 @@
3666
3877
  color: var(--color-tertiary);
3667
3878
  }
3668
3879
 
3669
- /* Size Variants */
3670
3880
  .breadcrumbs-sm {
3671
3881
  font-size: 0.75rem;
3672
3882
  gap: 0.375rem;
@@ -3689,131 +3899,156 @@
3689
3899
  height: 1.25rem;
3690
3900
  }
3691
3901
 
3692
- /* Contained Variant (with background) */
3693
3902
  .breadcrumbs-contained {
3694
3903
  padding: 0.75rem 1rem;
3695
3904
  background-color: var(--color-surface-container);
3696
3905
  border-radius: var(--radius-sm);
3697
3906
  }
3698
3907
 
3699
- /* No Wrap Variant */
3700
3908
  .breadcrumbs-nowrap {
3701
3909
  flex-wrap: nowrap;
3702
3910
  overflow-x: auto;
3911
+ overscroll-behavior-inline: contain;
3912
+ scrollbar-width: thin;
3913
+ }
3914
+
3915
+ .breadcrumbs-nowrap > * {
3916
+ flex: 0 0 auto;
3703
3917
  }
3704
3918
 
3705
- /* Disabled Breadcrumb Item */
3706
3919
  .breadcrumb-item-disabled {
3707
3920
  opacity: 1;
3708
3921
  pointer-events: none;
3709
3922
  cursor: not-allowed;
3710
3923
  }
3711
3924
 
3712
- /* Tabs */
3713
- .tabs {
3714
- display: flex;
3715
- flex-wrap: wrap;
3716
- gap: 0.25rem;
3717
- border-bottom: 1px solid var(--color-outline);
3718
- }
3719
-
3720
- .tab {
3721
- display: inline-flex;
3722
- align-items: center;
3723
- justify-content: center;
3724
- gap: 0.5rem;
3725
- padding: 0.75rem 1.25rem;
3726
- font-size: 0.875rem;
3727
- font-weight: 500;
3728
- color: var(--color-on-surface-variant);
3729
- text-decoration: none;
3730
- background-color: transparent;
3731
- border: none;
3732
- border-bottom: 2px solid transparent;
3733
- cursor: pointer;
3734
- transition: all 150ms ease-in-out;
3735
- position: relative;
3736
- margin-bottom: -1px;
3737
- }
3738
-
3739
- .tab:hover {
3740
- color: var(--color-on-surface);
3741
- background-color: var(--color-surface-container);
3742
- }
3743
-
3744
- .tab:focus-visible {
3745
- outline: none;
3746
- box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
3747
- }
3748
-
3749
- .tab.tab-active,
3750
- .tab[aria-selected="true"] {
3751
- color: var(--color-primary);
3752
- border-bottom-color: var(--color-primary);
3753
- }
3754
-
3755
- .tab:disabled {
3756
- opacity: 0.5;
3757
- cursor: not-allowed;
3758
- }
3759
-
3760
- /* Tabs Boxed */
3761
- .tabs-boxed {
3762
- background-color: var(--color-surface-container);
3763
- border-radius: var(--radius-sm);
3764
- padding: 0.25rem;
3765
- border: none;
3766
- }
3767
-
3768
- .tabs-boxed .tab {
3925
+ .breadcrumb-ellipsis:focus-visible,
3926
+ .breadcrumb-home:focus-visible,
3927
+ .breadcrumbs li > a:focus-visible {
3928
+ outline: 2px solid currentColor;
3929
+ outline-offset: 2px;
3769
3930
  border-radius: var(--radius-xs);
3770
- border-bottom: none;
3771
- margin-bottom: 0;
3772
- }
3773
-
3774
- .tabs-boxed .tab.tab-active,
3775
- .tabs-boxed .tab[aria-selected="true"] {
3776
- background-color: var(--color-surface);
3777
- color: var(--color-on-surface);
3778
- box-shadow: var(--shadow-xs);
3779
- }
3780
-
3781
- /* Tabs Lifted */
3782
- .tabs-lifted {
3783
- border: none;
3784
3931
  }
3785
3932
 
3786
- .tabs-lifted .tab {
3787
- border: 1px solid transparent;
3788
- border-bottom: none;
3789
- border-radius: var(--radius-sm) var(--radius-sm) 0 0;
3790
- margin-bottom: -1px;
3933
+ /* Reduce Motion */
3934
+ @media (prefers-reduced-motion: reduce) {
3935
+ .breadcrumbs a,
3936
+ .breadcrumbs-item a,
3937
+ .breadcrumbs-link,
3938
+ .breadcrumbs-separator {
3939
+ transition: none;
3940
+ }
3791
3941
  }
3942
+ }
3792
3943
 
3793
- .tabs-lifted .tab.tab-active,
3794
- .tabs-lifted .tab[aria-selected="true"] {
3795
- background-color: var(--color-surface);
3796
- border-color: var(--color-outline);
3797
- border-bottom-color: var(--color-surface);
3944
+ /** DuskMoonUI tabs and tab-panel presentation. Interaction remains application-owned. */
3945
+ @layer components {
3946
+ .tabs {
3947
+ display: flex; align-items: stretch; flex-wrap: wrap; gap: 0.25rem;
3948
+ border-block-end: 1px solid var(--color-outline); color: var(--color-on-surface);
3798
3949
  }
3799
-
3800
- /* Tab Sizes */
3801
- .tab-xs {
3802
- padding: 0.375rem 0.625rem;
3803
- font-size: 0.75rem;
3950
+ .tab {
3951
+ display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
3952
+ min-width: 0; padding: 0.75rem 1.25rem; font: inherit; font-size: 0.875rem;
3953
+ font-weight: 500; line-height: 1.25rem; color: var(--color-on-surface-variant);
3954
+ text-decoration: none; white-space: nowrap; background-color: transparent;
3955
+ border: none; border-block-end: 2px solid transparent; cursor: pointer;
3956
+ transition: background-color 150ms ease-in-out, color 150ms ease-in-out,
3957
+ border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
3958
+ position: relative; margin-block-end: -1px;
3804
3959
  }
3805
-
3806
- .tab-sm {
3807
- padding: 0.5rem 0.875rem;
3808
- font-size: 0.8125rem;
3960
+ .tab:hover:not(:disabled, [aria-disabled="true"]) {
3961
+ color: var(--color-on-surface); background-color: var(--color-surface-container);
3809
3962
  }
3963
+ .tab:focus-visible {
3964
+ outline: 2px solid currentColor; outline-offset: -2px;
3965
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent); z-index: 1;
3966
+ }
3967
+ .tab:disabled,
3968
+ .tab[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
3969
+ .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
3970
+ color: var(--color-primary); border-block-end-color: var(--color-primary);
3971
+ }
3972
+ .tab.tab-active-secondary { color: var(--color-secondary); border-block-end-color: var(--color-secondary); }
3973
+ .tab.tab-active-tertiary { color: var(--color-tertiary); border-block-end-color: var(--color-tertiary); }
3974
+
3975
+ .tabs-pill,
3976
+ .tabs-tonal,
3977
+ .tabs-boxed { padding: 0.25rem; border: none; border-radius: var(--radius-lg); }
3978
+ .tabs-pill .tab,
3979
+ .tabs-tonal .tab,
3980
+ .tabs-boxed .tab { margin-block-end: 0; border: none; border-radius: var(--radius-lg); }
3981
+ .tabs-pill .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
3982
+ color: var(--color-primary-content); background-color: var(--color-primary);
3983
+ }
3984
+ .tabs-pill .tab.tab-active-secondary { color: var(--color-secondary-content); background-color: var(--color-secondary); }
3985
+ .tabs-pill .tab.tab-active-tertiary { color: var(--color-tertiary-content); background-color: var(--color-tertiary); }
3986
+ .tabs-tonal .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) {
3987
+ color: var(--color-on-primary-container); background-color: var(--color-primary-container);
3988
+ }
3989
+ .tabs-tonal .tab.tab-active-secondary { color: var(--color-on-secondary-container); background-color: var(--color-secondary-container); }
3990
+ .tabs-tonal .tab.tab-active-tertiary { color: var(--color-on-tertiary-container); background-color: var(--color-tertiary-container); }
3991
+ .tabs-boxed { background-color: var(--color-surface-container); border-radius: var(--radius-sm); }
3992
+ .tabs-boxed .tab { border-radius: var(--radius-xs); }
3993
+ .tabs-boxed .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
3994
+ color: var(--color-on-surface); background-color: var(--color-surface); box-shadow: var(--shadow-xs);
3995
+ }
3996
+ .tabs-lifted { border: none; }
3997
+ .tabs-lifted .tab {
3998
+ border: 1px solid transparent; border-block-end: none;
3999
+ border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-block-end: -1px;
4000
+ }
4001
+ .tabs-lifted .tab:is(.tab-active, .tab-active-primary, .tab-active-secondary, .tab-active-tertiary, [aria-selected="true"], [aria-current="page"]) {
4002
+ background-color: var(--color-surface); border-color: var(--color-outline);
4003
+ border-block-end-color: var(--color-surface);
4004
+ }
4005
+
4006
+ .tabs-vertical {
4007
+ flex-direction: column; flex-wrap: nowrap; align-items: stretch;
4008
+ border-block-end: none; border-inline-end: 1px solid var(--color-outline);
4009
+ }
4010
+ .tabs-vertical .tab {
4011
+ justify-content: flex-start; width: 100%; margin: 0;
4012
+ border-block-end: none; border-inline-end: 2px solid transparent;
4013
+ }
4014
+ .tabs-vertical .tab:is(.tab-active, .tab-active-primary, [aria-selected="true"], [aria-current="page"]) { border-inline-end-color: var(--color-primary); }
4015
+ .tabs-vertical .tab.tab-active-secondary { border-inline-end-color: var(--color-secondary); }
4016
+ .tabs-vertical .tab.tab-active-tertiary { border-inline-end-color: var(--color-tertiary); }
4017
+ .tabs-scrollable {
4018
+ flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden;
4019
+ overscroll-behavior-inline: contain; scrollbar-width: thin;
4020
+ }
4021
+ .tabs-full .tab { flex: 1 1 0; }
4022
+ .tabs-center { justify-content: center; }
4023
+ .tabs-end { justify-content: flex-end; }
4024
+
4025
+ .tabs-sm .tab,
4026
+ .tab-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
4027
+ .tabs-md .tab { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
4028
+ .tabs-lg .tab,
4029
+ .tab-lg { padding: 1rem 1.5rem; font-size: 1rem; }
4030
+ .tab-xs { padding: 0.375rem 0.625rem; font-size: 0.75rem; }
4031
+ .tab-icon { flex: 0 0 auto; font-size: 1.25em; }
4032
+ .tab-icon-only { aspect-ratio: 1; padding-inline: 0.75rem; }
4033
+ .tab-badge {
4034
+ display: inline-flex; align-items: center; justify-content: center;
4035
+ min-width: 1.25rem; min-height: 1.25rem; padding-inline: 0.375rem;
4036
+ font-size: 0.6875rem; font-weight: 600; color: var(--color-error-content);
4037
+ background-color: var(--color-error); border-radius: var(--radius-full);
4038
+ }
4039
+ .tab-panel { display: none; padding: 1rem; color: var(--color-on-surface); }
4040
+ .tab-panel:is(.tab-panel-show, [data-active="true"]):not([hidden]) { display: block; }
4041
+ .tab-panel[hidden] { display: none !important; }
4042
+
4043
+ @media (prefers-reduced-motion: reduce) { .tab { scroll-behavior: auto; transition: none; } }
4044
+ }
3810
4045
 
3811
- .tab-lg {
3812
- padding: 1rem 1.5rem;
3813
- font-size: 1rem;
3814
- }
4046
+ /**
4047
+ * Pagination Component Styles
4048
+ * DuskMoonUI - Material Design 3 inspired pagination
4049
+ */
3815
4050
 
3816
- /* Pagination */
4051
+ @layer components {
3817
4052
  .pagination {
3818
4053
  display: flex;
3819
4054
  align-items: center;
@@ -3855,6 +4090,7 @@
3855
4090
 
3856
4091
  .pagination-item-active,
3857
4092
  .pagination-item-active-primary,
4093
+ .pagination-item[aria-current="page"],
3858
4094
  .pagination li > a.active,
3859
4095
  .pagination li > button.active,
3860
4096
  .pagination li > a[aria-current="page"],
@@ -3876,6 +4112,14 @@
3876
4112
  border-color: var(--color-tertiary);
3877
4113
  }
3878
4114
 
4115
+ .pagination-item-active:hover,
4116
+ .pagination-item-active-primary:hover,
4117
+ .pagination-item[aria-current="page"]:hover,
4118
+ .pagination li > a[aria-current="page"]:hover,
4119
+ .pagination li > button[aria-current="page"]:hover {
4120
+ background-color: color-mix(in oklch, var(--color-primary), black 10%);
4121
+ }
4122
+
3879
4123
  .pagination-item:focus-visible,
3880
4124
  .pagination-prev:focus-visible,
3881
4125
  .pagination-next:focus-visible,
@@ -3890,13 +4134,12 @@
3890
4134
  .pagination-prev:disabled,
3891
4135
  .pagination-next:disabled,
3892
4136
  .pagination li > a:disabled,
3893
- .pagination li > button:disabled {
4137
+ .pagination li > button:disabled,
4138
+ .pagination a[aria-disabled="true"] {
3894
4139
  opacity: 0.5;
3895
4140
  cursor: not-allowed;
3896
- pointer-events: none;
3897
4141
  }
3898
4142
 
3899
- /* Pagination Ellipsis */
3900
4143
  .pagination-ellipsis {
3901
4144
  display: inline-flex;
3902
4145
  align-items: center;
@@ -3910,7 +4153,6 @@
3910
4153
  content: '…';
3911
4154
  }
3912
4155
 
3913
- /* Pagination Info */
3914
4156
  .pagination-info {
3915
4157
  display: flex;
3916
4158
  flex-direction: row;
@@ -3923,7 +4165,6 @@
3923
4165
  color: var(--color-on-surface-variant);
3924
4166
  }
3925
4167
 
3926
- /* Pagination Input */
3927
4168
  .pagination-input {
3928
4169
  display: inline-flex;
3929
4170
  align-items: center;
@@ -3945,10 +4186,13 @@
3945
4186
 
3946
4187
  .pagination-input input:focus {
3947
4188
  outline: none;
4189
+ }
4190
+
4191
+ .pagination-input input:focus-visible {
3948
4192
  border-color: var(--color-primary);
4193
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
3949
4194
  }
3950
4195
 
3951
- /* Pagination Variants */
3952
4196
  .pagination-outlined .pagination-item,
3953
4197
  .pagination-outlined .pagination-prev,
3954
4198
  .pagination-outlined .pagination-next {
@@ -3962,7 +4206,6 @@
3962
4206
  border-color: var(--color-primary-container);
3963
4207
  }
3964
4208
 
3965
- /* Pagination Sizes */
3966
4209
  .pagination-sm .pagination-item,
3967
4210
  .pagination-sm .pagination-prev,
3968
4211
  .pagination-sm .pagination-next {
@@ -3981,7 +4224,6 @@
3981
4224
  font-size: 1rem;
3982
4225
  }
3983
4226
 
3984
- /* Pagination Compact */
3985
4227
  .pagination-compact {
3986
4228
  gap: 0;
3987
4229
  }
@@ -3994,26 +4236,22 @@
3994
4236
 
3995
4237
  .pagination-compact .pagination-item:first-child,
3996
4238
  .pagination-compact .pagination-prev {
3997
- border-radius: var(--radius-sm) 0 0 var(--radius-sm);
4239
+ border-start-start-radius: var(--radius-sm);
4240
+ border-end-start-radius: var(--radius-sm);
3998
4241
  }
3999
4242
 
4000
4243
  .pagination-compact .pagination-item:last-child,
4001
4244
  .pagination-compact .pagination-next {
4002
- border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
4245
+ border-start-end-radius: var(--radius-sm);
4246
+ border-end-end-radius: var(--radius-sm);
4003
4247
  }
4004
4248
 
4005
- /* Pagination Responsive */
4006
4249
  .pagination-responsive {
4007
4250
  flex-wrap: wrap;
4008
4251
  justify-content: center;
4009
4252
  }
4010
4253
 
4011
- /* Reduce Motion */
4012
4254
  @media (prefers-reduced-motion: reduce) {
4013
- .menu li > a,
4014
- .menu li > button,
4015
- .menu-item,
4016
- .menu[popover],
4017
4255
  .pagination-item,
4018
4256
  .pagination-prev,
4019
4257
  .pagination-next {
@@ -4022,6 +4260,132 @@
4022
4260
  }
4023
4261
  }
4024
4262
 
4263
+ /** DuskMoonUI text-link primitive. */
4264
+ @layer components {
4265
+ .link {
4266
+ color: var(--color-primary);
4267
+ text-decoration-line: underline;
4268
+ text-decoration-thickness: 0.08em;
4269
+ text-underline-offset: 0.18em;
4270
+ overflow-wrap: anywhere;
4271
+ cursor: pointer;
4272
+ transition: color 150ms ease-in-out, text-decoration-color 150ms ease-in-out,
4273
+ background-color 150ms ease-in-out;
4274
+ }
4275
+
4276
+ .link:hover {
4277
+ color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 18%);
4278
+ text-decoration-thickness: 0.12em;
4279
+ }
4280
+
4281
+ .link:active {
4282
+ color: color-mix(in oklch, var(--color-primary), var(--color-on-surface) 30%);
4283
+ }
4284
+
4285
+ .link:focus-visible {
4286
+ outline: 2px solid currentColor;
4287
+ outline-offset: 3px;
4288
+ border-radius: var(--radius-xs);
4289
+ }
4290
+
4291
+ .link-hover { text-decoration-color: transparent; }
4292
+ .link-hover:hover,
4293
+ .link-hover:focus-visible { text-decoration-color: currentColor; }
4294
+ .link-primary { color: var(--color-primary); }
4295
+ .link-secondary { color: var(--color-secondary); }
4296
+ .link-tertiary { color: var(--color-tertiary); }
4297
+ .link-neutral,
4298
+ .link-inherit { color: inherit; }
4299
+ .link-neutral:hover,
4300
+ .link-inherit:hover { color: color-mix(in oklch, currentColor, var(--color-on-surface) 18%); }
4301
+
4302
+ @media (prefers-reduced-motion: reduce) {
4303
+ .link { transition: none; }
4304
+ }
4305
+ }
4306
+
4307
+ /**
4308
+ * Megamenu is a CSS composition layer over native popovers, Menu, and Link.
4309
+ * Give each trigger/panel pair a unique --megamenu-anchor custom identifier.
4310
+ */
4311
+
4312
+
4313
+
4314
+ @layer components {
4315
+ .megamenu { position: relative; display: flex; align-items: center; max-width: 100%; }
4316
+ .megamenu-bar {
4317
+ display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
4318
+ margin: 0; padding: 0; list-style: none;
4319
+ }
4320
+ .megamenu-trigger {
4321
+ anchor-name: var(--megamenu-anchor);
4322
+ display: inline-flex; align-items: center; gap: 0.375rem;
4323
+ padding: 0.625rem 0.875rem; color: var(--color-on-surface);
4324
+ background: transparent; border: 0; border-radius: var(--radius-sm);
4325
+ font: inherit; cursor: pointer;
4326
+ }
4327
+ .megamenu-trigger:hover,
4328
+ .megamenu-trigger[aria-expanded="true"],
4329
+ .megamenu:has(.megamenu-panel:popover-open) .megamenu-trigger {
4330
+ color: var(--color-on-primary-container);
4331
+ background-color: var(--color-primary-container);
4332
+ }
4333
+ .megamenu-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
4334
+ .megamenu-panel[popover] {
4335
+ position-anchor: var(--megamenu-anchor);
4336
+ position-area: block-end span-inline-end;
4337
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
4338
+ display: none; box-sizing: border-box;
4339
+ width: min(48rem, calc(100vw - 2rem)); max-width: calc(100vw - 2rem);
4340
+ max-height: min(36rem, calc(100dvh - 2rem)); margin: 0.5rem; padding: 1rem;
4341
+ overflow: auto; color: var(--color-on-surface);
4342
+ background-color: var(--color-surface-container);
4343
+ border: 1px solid var(--color-outline-variant); border-radius: var(--radius-lg);
4344
+ box-shadow: var(--shadow-lg); opacity: 0;
4345
+ transform: translateY(-0.25rem) scale(0.98);
4346
+ transition: opacity 150ms ease-out, transform 150ms ease-out,
4347
+ overlay 150ms ease-out allow-discrete, display 150ms ease-out allow-discrete;
4348
+ }
4349
+ .megamenu-panel[popover]:popover-open { display: block; opacity: 1; transform: translateY(0) scale(1); }
4350
+ .megamenu-panel-full[popover] { width: calc(100vw - 2rem); }
4351
+ .megamenu-grid {
4352
+ display: grid;
4353
+ grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
4354
+ gap: 1.25rem;
4355
+ }
4356
+ .megamenu-group { min-width: 0; }
4357
+ .megamenu-heading {
4358
+ margin: 0 0 0.5rem; color: var(--color-on-surface); font-size: 0.75rem;
4359
+ font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
4360
+ }
4361
+ .megamenu-panel .menu { flex-direction: column; padding: 0; }
4362
+ .megamenu-panel .menu > li,
4363
+ .megamenu-panel .menu > li > .link { width: 100%; }
4364
+ .megamenu-supporting { color: var(--color-on-surface-variant); font-size: 0.875rem; }
4365
+
4366
+ @starting-style {
4367
+ .megamenu-panel[popover]:popover-open { opacity: 0; transform: translateY(-0.25rem) scale(0.98); }
4368
+ }
4369
+ @supports not (position-area: bottom) {
4370
+ .megamenu-panel[popover] { position: fixed; inset: 4.5rem 1rem auto; margin-inline: auto; }
4371
+ }
4372
+ /* Baseline fallback: without Popover API support, links remain visible and reachable. */
4373
+ @supports not selector(:popover-open) {
4374
+ .megamenu { display: block; }
4375
+ .megamenu-panel[popover] {
4376
+ position: static; display: block; width: 100%; max-width: 100%; max-height: none;
4377
+ margin: 0.5rem 0 0; opacity: 1; transform: none;
4378
+ }
4379
+ }
4380
+ @media (max-width: 47.999rem) {
4381
+ .megamenu-desktop { display: none; }
4382
+ .megamenu-mobile { display: block; }
4383
+ }
4384
+ @media (min-width: 48rem) { .megamenu-mobile { display: none; } }
4385
+ @media (prefers-reduced-motion: reduce) { .megamenu-panel[popover] { transition: none; } }
4386
+ }
4387
+
4388
+
4025
4389
 
4026
4390
  /* Modal Component */
4027
4391
  /**
@@ -7271,6 +7635,23 @@
7271
7635
  background-color: var(--color-surface-container-high);
7272
7636
  }
7273
7637
 
7638
+ .cascader:has(> .cascader-clear) .cascader-value {
7639
+ padding-inline-end: 2rem;
7640
+ }
7641
+
7642
+ .cascader > .cascader-clear {
7643
+ position: absolute;
7644
+ inset-block-start: 50%;
7645
+ inset-inline-end: 2.75rem;
7646
+ z-index: 1;
7647
+ transform: translateY(-50%);
7648
+ }
7649
+
7650
+ .cascader > .cascader-clear:focus-visible {
7651
+ outline: 2px solid currentColor;
7652
+ outline-offset: 2px;
7653
+ }
7654
+
7274
7655
  /* Cascader Dropdown */
7275
7656
  .cascader-dropdown {
7276
7657
  position: absolute;
@@ -7292,7 +7673,10 @@
7292
7673
 
7293
7674
  /* Popover API Support */
7294
7675
  .cascader-dropdown[popover] {
7295
- inset: unset;
7676
+ position: fixed;
7677
+ inset: auto 0.5rem 0.5rem auto;
7678
+ max-inline-size: calc(100dvw - 1rem);
7679
+ max-block-size: min(16rem, calc(100dvh - 1rem));
7296
7680
  margin: 0;
7297
7681
  border: 1px solid var(--color-outline-variant);
7298
7682
  }
@@ -7301,32 +7685,14 @@
7301
7685
  display: flex;
7302
7686
  }
7303
7687
 
7304
- /* CSS Anchor Positioning for modern browsers */
7305
- @supports (anchor-name: --anchor) {
7306
- .cascader-trigger {
7307
- anchor-name: --cascader-anchor;
7308
- }
7309
-
7688
+ /* The popovertarget invoker is the implicit anchor for its own dropdown. */
7689
+ @supports (position-area: block-end) {
7310
7690
  .cascader-dropdown[popover] {
7311
- position-anchor: --cascader-anchor;
7312
- top: anchor(bottom);
7313
- left: anchor(left);
7314
- margin-top: 0.25rem;
7315
- position-try-fallbacks: flip-block;
7316
- }
7317
- }
7318
-
7319
- /* Fallback for browsers without anchor positioning */
7320
- @supports not (anchor-name: --anchor) {
7321
- .cascader {
7322
- position: relative;
7323
- }
7324
-
7325
- .cascader-dropdown[popover]:popover-open {
7326
- position: absolute;
7327
- top: 100%;
7328
- left: 0;
7329
- margin-top: 0.25rem;
7691
+ inset: auto;
7692
+ margin-block: 0.25rem;
7693
+ margin-inline: 0;
7694
+ position-area: block-end span-inline-end;
7695
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
7330
7696
  }
7331
7697
  }
7332
7698
 
@@ -12525,8 +12891,10 @@
12525
12891
  /* Popover API Support */
12526
12892
  .tree-select-dropdown[popover] {
12527
12893
  /* Reset browser defaults for proper positioning */
12528
- position: absolute;
12529
- inset: unset;
12894
+ position: fixed;
12895
+ inset: auto 0.5rem 0.5rem auto;
12896
+ max-inline-size: calc(100dvw - 1rem);
12897
+ max-block-size: min(20rem, calc(100dvh - 1rem));
12530
12898
  margin: 0;
12531
12899
  border: 1px solid var(--color-outline-variant);
12532
12900
  }
@@ -12535,18 +12903,15 @@
12535
12903
  display: block;
12536
12904
  }
12537
12905
 
12538
- /* CSS Anchor Positioning for modern browsers */
12539
- @supports (anchor-name: --tree-select) {
12540
- .tree-select {
12541
- anchor-name: --tree-select;
12542
- }
12543
-
12906
+ /* The popovertarget invoker is the implicit anchor for its own dropdown. */
12907
+ @supports (position-area: block-end) {
12544
12908
  .tree-select-dropdown[popover] {
12545
- position-anchor: --tree-select;
12546
- top: anchor(bottom);
12547
- left: anchor(left);
12548
- right: anchor(right);
12549
- position-try-fallbacks: flip-block;
12909
+ inset: auto;
12910
+ inline-size: anchor-size(width);
12911
+ margin-block: 0.25rem;
12912
+ margin-inline: 0;
12913
+ position-area: block-end span-inline-end;
12914
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
12550
12915
  }
12551
12916
  }
12552
12917
 
@@ -17120,15 +17485,15 @@
17120
17485
  /* Base Bottom Navigation */
17121
17486
  .bottom-nav {
17122
17487
  position: fixed;
17123
- bottom: 0;
17124
- left: 0;
17125
- right: 0;
17488
+ bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
17489
+ inset-block-end: 0;
17490
+ inset-inline: 0;
17126
17491
  z-index: 1000;
17127
17492
  display: flex;
17128
17493
  align-items: stretch;
17129
17494
  justify-content: space-around;
17130
17495
  min-height: 5rem;
17131
- padding-bottom: env(safe-area-inset-bottom, 0);
17496
+ padding-block-end: env(safe-area-inset-bottom, 0);
17132
17497
  background-color: var(--color-surface);
17133
17498
  box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
17134
17499
  }
@@ -17150,6 +17515,8 @@
17150
17515
  transition: color 150ms ease-in-out;
17151
17516
  text-decoration: none;
17152
17517
  gap: 0.25rem;
17518
+ position: relative;
17519
+ border-radius: var(--radius-md);
17153
17520
  }
17154
17521
 
17155
17522
  .bottom-nav-item:hover {
@@ -17157,7 +17524,8 @@
17157
17524
  }
17158
17525
 
17159
17526
  .bottom-nav-item:focus-visible {
17160
- outline: none;
17527
+ outline: 2px solid currentColor;
17528
+ outline-offset: -2px;
17161
17529
  }
17162
17530
 
17163
17531
  .bottom-nav-item:focus-visible .bottom-nav-indicator {
@@ -17166,10 +17534,18 @@
17166
17534
  }
17167
17535
 
17168
17536
  /* Active State */
17169
- .bottom-nav-item.active {
17537
+ .bottom-nav-item.active,
17538
+ .bottom-nav-item-active,
17539
+ .bottom-nav-item-active-primary,
17540
+ .bottom-nav-item[aria-current="page"] {
17170
17541
  color: var(--color-on-surface);
17171
17542
  }
17172
17543
 
17544
+ .bottom-nav-item:is(.active, .bottom-nav-item-active, .bottom-nav-item-active-primary, [aria-current="page"]):not(:has(.bottom-nav-indicator)) {
17545
+ color: var(--color-on-secondary-container);
17546
+ background-color: var(--color-secondary-container);
17547
+ }
17548
+
17173
17549
  /* Icon Container with Indicator */
17174
17550
  .bottom-nav-indicator {
17175
17551
  position: relative;
@@ -17186,7 +17562,10 @@
17186
17562
  background-color: var(--color-surface-container);
17187
17563
  }
17188
17564
 
17189
- .bottom-nav-item.active .bottom-nav-indicator {
17565
+ .bottom-nav-item.active .bottom-nav-indicator,
17566
+ .bottom-nav-item-active .bottom-nav-indicator,
17567
+ .bottom-nav-item-active-primary .bottom-nav-indicator,
17568
+ .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
17190
17569
  background-color: var(--color-secondary-container);
17191
17570
  }
17192
17571
 
@@ -17209,7 +17588,10 @@
17209
17588
  max-width: 100%;
17210
17589
  }
17211
17590
 
17212
- .bottom-nav-item.active .bottom-nav-label {
17591
+ .bottom-nav-item.active .bottom-nav-label,
17592
+ .bottom-nav-item-active .bottom-nav-label,
17593
+ .bottom-nav-item-active-primary .bottom-nav-label,
17594
+ .bottom-nav-item[aria-current="page"] .bottom-nav-label {
17213
17595
  font-weight: 600;
17214
17596
  }
17215
17597
 
@@ -17217,7 +17599,7 @@
17217
17599
  .bottom-nav-badge {
17218
17600
  position: absolute;
17219
17601
  top: 0;
17220
- right: 0.5rem;
17602
+ inset-inline-end: 0.5rem;
17221
17603
  min-width: 1rem;
17222
17604
  height: 1rem;
17223
17605
  padding: 0 0.25rem;
@@ -17236,7 +17618,7 @@
17236
17618
  height: 0.5rem;
17237
17619
  padding: 0;
17238
17620
  top: 0.125rem;
17239
- right: 0.75rem;
17621
+ inset-inline-end: 0.75rem;
17240
17622
  }
17241
17623
 
17242
17624
  /* Variants */
@@ -17254,23 +17636,96 @@
17254
17636
  }
17255
17637
 
17256
17638
  /* Color Variants */
17257
- .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator {
17639
+ .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator,
17640
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active .bottom-nav-indicator,
17641
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
17258
17642
  background-color: var(--color-primary-container);
17259
17643
  }
17260
17644
 
17261
- .bottom-nav-primary .bottom-nav-item.active {
17645
+ .bottom-nav-item-active-secondary {
17646
+ color: var(--color-on-secondary-container);
17647
+ }
17648
+
17649
+ .bottom-nav-item-active-secondary .bottom-nav-indicator {
17650
+ background-color: var(--color-secondary-container);
17651
+ }
17652
+
17653
+ .bottom-nav-item-active-tertiary {
17654
+ color: var(--color-on-tertiary-container);
17655
+ }
17656
+
17657
+ .bottom-nav-item-active-tertiary .bottom-nav-indicator {
17658
+ background-color: var(--color-tertiary-container);
17659
+ }
17660
+
17661
+ .bottom-nav-surface {
17662
+ background-color: var(--color-surface);
17663
+ }
17664
+
17665
+ .bottom-nav-surface-container-low {
17666
+ background-color: var(--color-surface-container-low);
17667
+ }
17668
+
17669
+ .bottom-nav-surface-container-high {
17670
+ background-color: var(--color-surface-container-high);
17671
+ }
17672
+
17673
+ .bottom-nav-transparent {
17674
+ background-color: transparent;
17675
+ }
17676
+
17677
+ .bottom-nav-borderless {
17678
+ border-block-start: 0;
17679
+ box-shadow: none;
17680
+ }
17681
+
17682
+ .bottom-nav-compact {
17683
+ min-height: 3.5rem;
17684
+ }
17685
+
17686
+ .bottom-nav-item-disabled,
17687
+ .bottom-nav-item:disabled,
17688
+ .bottom-nav-item[aria-disabled="true"] {
17689
+ opacity: 0.38;
17690
+ cursor: not-allowed;
17691
+ }
17692
+
17693
+ .bottom-nav-primary .bottom-nav-item.active,
17694
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active,
17695
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] {
17262
17696
  color: var(--color-on-primary-container);
17263
17697
  }
17264
17698
 
17265
17699
  /* Hide Labels */
17266
17700
  .bottom-nav-icons-only .bottom-nav-label {
17267
- display: none;
17701
+ position: absolute;
17702
+ width: 1px;
17703
+ height: 1px;
17704
+ padding: 0;
17705
+ margin: -1px;
17706
+ overflow: hidden;
17707
+ clip: rect(0, 0, 0, 0);
17708
+ white-space: nowrap;
17709
+ border: 0;
17268
17710
  }
17269
17711
 
17270
17712
  .bottom-nav-icons-only .bottom-nav-item {
17271
17713
  padding: 1rem 0.25rem;
17272
17714
  }
17273
17715
 
17716
+ .bottom-nav-labels-only .bottom-nav-icon {
17717
+ display: none;
17718
+ }
17719
+
17720
+ .bottom-nav-labels-only .bottom-nav-item {
17721
+ flex-direction: row;
17722
+ min-width: auto;
17723
+ }
17724
+
17725
+ .bottom-nav-labels-only .bottom-nav-label {
17726
+ font-size: 0.875rem;
17727
+ }
17728
+
17274
17729
  /* Show Labels Only on Active */
17275
17730
  .bottom-nav-labels-active .bottom-nav-label {
17276
17731
  opacity: 0;
@@ -17279,7 +17734,7 @@
17279
17734
  transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
17280
17735
  }
17281
17736
 
17282
- .bottom-nav-labels-active .bottom-nav-item.active .bottom-nav-label {
17737
+ .bottom-nav-labels-active .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
17283
17738
  opacity: 1;
17284
17739
  max-height: 1rem;
17285
17740
  }
@@ -17290,7 +17745,16 @@
17290
17745
  transition: flex 200ms ease-in-out;
17291
17746
  }
17292
17747
 
17293
- .bottom-nav-shifting .bottom-nav-item.active {
17748
+ /* Legacy spelling retained; prefer .bottom-nav-shifting. */
17749
+ .bottom-nav-shift .bottom-nav-item:not(:is(.active, .bottom-nav-item-active, [aria-current="page"])) .bottom-nav-label {
17750
+ display: none;
17751
+ }
17752
+
17753
+ .bottom-nav-shift .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
17754
+ min-width: 6rem;
17755
+ }
17756
+
17757
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
17294
17758
  flex: 1 1 6rem;
17295
17759
  }
17296
17760
 
@@ -17300,7 +17764,7 @@
17300
17764
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
17301
17765
  }
17302
17766
 
17303
- .bottom-nav-shifting .bottom-nav-item.active .bottom-nav-label {
17767
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
17304
17768
  opacity: 1;
17305
17769
  transform: translateY(0);
17306
17770
  }
@@ -17308,9 +17772,9 @@
17308
17772
  /* Rail Style (Side Navigation) */
17309
17773
  .nav-rail {
17310
17774
  position: fixed;
17311
- left: 0;
17312
- top: 0;
17313
- bottom: 0;
17775
+ left: 0; /* Physical fallback; logical inset below controls RTL placement. */
17776
+ inset-inline-start: 0;
17777
+ inset-block: 0;
17314
17778
  z-index: 1000;
17315
17779
  display: flex;
17316
17780
  flex-direction: column;
@@ -17318,7 +17782,11 @@
17318
17782
  width: 5rem;
17319
17783
  padding: 1rem 0;
17320
17784
  background-color: var(--color-surface);
17321
- border-right: 1px solid var(--color-outline-variant);
17785
+ border-inline-end: 1px solid var(--color-outline-variant);
17786
+ }
17787
+
17788
+ .nav-rail:dir(rtl) {
17789
+ left: auto;
17322
17790
  }
17323
17791
 
17324
17792
  .nav-rail .bottom-nav-item {
@@ -17336,13 +17804,13 @@
17336
17804
  @media (min-width: 768px) {
17337
17805
  .bottom-nav-responsive {
17338
17806
  position: relative;
17339
- bottom: auto;
17807
+ inset-block-end: auto;
17340
17808
  justify-content: flex-start;
17341
17809
  gap: 0.5rem;
17342
17810
  min-height: 3rem;
17343
17811
  padding: 0 1rem;
17344
17812
  box-shadow: none;
17345
- border-bottom: 1px solid var(--color-outline-variant);
17813
+ border-block-end: 1px solid var(--color-outline-variant);
17346
17814
  }
17347
17815
 
17348
17816
  .bottom-nav-responsive .bottom-nav-item {
@@ -17358,8 +17826,8 @@
17358
17826
  background-color: transparent !important;
17359
17827
  }
17360
17828
 
17361
- .bottom-nav-responsive .bottom-nav-item.active {
17362
- border-bottom: 2px solid var(--color-primary);
17829
+ .bottom-nav-responsive .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
17830
+ border-block-end: 2px solid var(--color-primary);
17363
17831
  }
17364
17832
  }
17365
17833
 
@@ -18263,8 +18731,12 @@
18263
18731
  }
18264
18732
 
18265
18733
  .nested-menu li.disabled > a,
18266
- .nested-menu li.disabled > button {
18734
+ .nested-menu li.disabled > button,
18735
+ .nested-menu li > button:disabled,
18736
+ .nested-menu li > a[aria-disabled="true"] {
18267
18737
  color: var(--color-on-surface-variant);
18738
+ opacity: 0.5;
18739
+ cursor: not-allowed;
18268
18740
  }
18269
18741
 
18270
18742
  /* ============================================
@@ -18314,7 +18786,7 @@
18314
18786
  .nested-menu summary::after {
18315
18787
  content: "";
18316
18788
  display: inline-block;
18317
- margin-left: auto;
18789
+ margin-inline-start: auto;
18318
18790
  width: 0.375rem;
18319
18791
  height: 0.375rem;
18320
18792
  border-right: 1.5px solid currentColor;
@@ -18329,11 +18801,22 @@
18329
18801
  transform: rotate(45deg);
18330
18802
  }
18331
18803
 
18804
+ .nested-menu:dir(rtl) summary::after {
18805
+ border-right: 0;
18806
+ border-left: 1.5px solid currentColor;
18807
+ transform: rotate(135deg);
18808
+ }
18809
+
18810
+ .nested-menu:dir(rtl) details[open] > summary::after {
18811
+ transform: rotate(45deg);
18812
+ }
18813
+
18332
18814
  /* Nested <ul> inside details — auto-indentation */
18333
18815
  .nested-menu details > ul {
18334
18816
  list-style: none;
18335
18817
  margin: 0;
18336
- padding: 0.125rem 0 0.125rem 1rem;
18818
+ padding-block: 0.125rem;
18819
+ padding-inline: 1rem 0;
18337
18820
  display: flex;
18338
18821
  flex-direction: column;
18339
18822
  gap: 0.125rem;
@@ -18423,7 +18906,7 @@
18423
18906
  }
18424
18907
 
18425
18908
  .nested-menu-compact details > ul {
18426
- padding: 0 0 0 0.75rem;
18909
+ padding-inline: 0.75rem 0;
18427
18910
  }
18428
18911
 
18429
18912
  /* ============================================
@@ -18466,7 +18949,7 @@
18466
18949
  .stepper-step-connector {
18467
18950
  position: absolute;
18468
18951
  top: 1.25rem;
18469
- left: calc(50% + 1.25rem);
18952
+ inset-inline-start: calc(50% + 1.25rem);
18470
18953
  width: calc(100% - 2.5rem);
18471
18954
  height: 2px;
18472
18955
  background-color: var(--color-outline-variant);
@@ -18491,10 +18974,13 @@
18491
18974
  background: none;
18492
18975
  border: none;
18493
18976
  padding: 0;
18977
+ color: inherit;
18494
18978
  }
18495
18979
 
18496
18980
  .stepper-step-button:focus-visible {
18497
- outline: none;
18981
+ outline: 2px solid currentColor;
18982
+ outline-offset: 0.25rem;
18983
+ border-radius: var(--radius-sm);
18498
18984
  }
18499
18985
 
18500
18986
  .stepper-step-button:focus-visible .stepper-step-icon {
@@ -18518,7 +19004,8 @@
18518
19004
  transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;
18519
19005
  }
18520
19006
 
18521
- .stepper-step-active .stepper-step-icon {
19007
+ .stepper-step-active .stepper-step-icon,
19008
+ .stepper-step[aria-current="step"] .stepper-step-icon {
18522
19009
  background-color: var(--color-primary);
18523
19010
  border-color: var(--color-primary);
18524
19011
  color: var(--color-primary-content);
@@ -18549,7 +19036,8 @@
18549
19036
  text-align: center;
18550
19037
  }
18551
19038
 
18552
- .stepper-step-active .stepper-step-label {
19039
+ .stepper-step-active .stepper-step-label,
19040
+ .stepper-step[aria-current="step"] .stepper-step-label {
18553
19041
  color: var(--color-primary);
18554
19042
  }
18555
19043
 
@@ -18560,14 +19048,14 @@
18560
19048
  .stepper-step-description {
18561
19049
  font-size: 0.75rem;
18562
19050
  color: var(--color-on-surface-variant);
18563
- margin-top: 0.125rem;
19051
+ margin-block-start: 0.125rem;
18564
19052
  text-align: center;
18565
19053
  }
18566
19054
 
18567
19055
  /* Step Content (for vertical stepper) */
18568
19056
  .stepper-step-content {
18569
- margin-top: 1.5rem;
18570
- padding: 0 1rem;
19057
+ margin-block-start: 1.5rem;
19058
+ padding-inline: 1rem;
18571
19059
  width: 100%;
18572
19060
  }
18573
19061
 
@@ -18577,7 +19065,7 @@
18577
19065
  display: block;
18578
19066
  font-size: 0.6875rem;
18579
19067
  color: var(--color-on-surface-variant);
18580
- margin-top: 0.125rem;
19068
+ margin-block-start: 0.125rem;
18581
19069
  }
18582
19070
 
18583
19071
  /* Vertical Stepper */
@@ -18594,7 +19082,7 @@
18594
19082
 
18595
19083
  .stepper-vertical .stepper-step-connector {
18596
19084
  top: 2.5rem;
18597
- left: 1.25rem;
19085
+ inset-inline-start: 1.25rem;
18598
19086
  width: 2px;
18599
19087
  height: calc(100% - 2.5rem);
18600
19088
  transform: translateX(-50%);
@@ -18607,18 +19095,19 @@
18607
19095
 
18608
19096
  .stepper-vertical .stepper-step-label,
18609
19097
  .stepper-vertical .stepper-step-description {
18610
- text-align: left;
18611
- margin-left: 1rem;
19098
+ text-align: start;
19099
+ margin-inline-start: 1rem;
18612
19100
  }
18613
19101
 
18614
19102
  .stepper-vertical .stepper-step-content {
18615
- margin-top: 0;
18616
- margin-left: 3.5rem;
18617
- padding: 1rem 0 1.5rem;
19103
+ margin-block-start: 0;
19104
+ margin-inline-start: 3.5rem;
19105
+ padding-block: 1rem 1.5rem;
18618
19106
  }
18619
19107
 
18620
19108
  /* Color Variants */
18621
19109
  .stepper-secondary .stepper-step-active .stepper-step-icon,
19110
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-icon,
18622
19111
  .stepper-secondary .stepper-step-completed .stepper-step-icon {
18623
19112
  background-color: var(--color-secondary);
18624
19113
  border-color: var(--color-secondary);
@@ -18629,11 +19118,13 @@
18629
19118
  background-color: var(--color-secondary);
18630
19119
  }
18631
19120
 
18632
- .stepper-secondary .stepper-step-active .stepper-step-label {
19121
+ .stepper-secondary .stepper-step-active .stepper-step-label,
19122
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-label {
18633
19123
  color: var(--color-secondary);
18634
19124
  }
18635
19125
 
18636
19126
  .stepper-tertiary .stepper-step-active .stepper-step-icon,
19127
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-icon,
18637
19128
  .stepper-tertiary .stepper-step-completed .stepper-step-icon {
18638
19129
  background-color: var(--color-tertiary);
18639
19130
  border-color: var(--color-tertiary);
@@ -18644,7 +19135,8 @@
18644
19135
  background-color: var(--color-tertiary);
18645
19136
  }
18646
19137
 
18647
- .stepper-tertiary .stepper-step-active .stepper-step-label {
19138
+ .stepper-tertiary .stepper-step-active .stepper-step-label,
19139
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-label {
18648
19140
  color: var(--color-tertiary);
18649
19141
  }
18650
19142
 
@@ -18657,7 +19149,7 @@
18657
19149
 
18658
19150
  .stepper-sm .stepper-step-connector {
18659
19151
  top: 1rem;
18660
- left: calc(50% + 1rem);
19152
+ inset-inline-start: calc(50% + 1rem);
18661
19153
  width: calc(100% - 2rem);
18662
19154
  }
18663
19155
 
@@ -18678,14 +19170,14 @@
18678
19170
 
18679
19171
  .stepper-lg .stepper-step-connector {
18680
19172
  top: 1.5rem;
18681
- left: calc(50% + 1.5rem);
19173
+ inset-inline-start: calc(50% + 1.5rem);
18682
19174
  width: calc(100% - 3rem);
18683
19175
  }
18684
19176
 
18685
19177
  /* Alternative Label Positioning */
18686
19178
  .stepper-alt-labels .stepper-step-connector {
18687
19179
  top: 1.25rem;
18688
- left: calc(50% + 2rem);
19180
+ inset-inline-start: calc(50% + 2rem);
18689
19181
  width: calc(100% - 4rem);
18690
19182
  }
18691
19183
 
@@ -18740,6 +19232,11 @@
18740
19232
  opacity: 0.7;
18741
19233
  }
18742
19234
 
19235
+ .stepper-step-button:disabled {
19236
+ cursor: not-allowed;
19237
+ opacity: 0.7;
19238
+ }
19239
+
18743
19240
  /* Icon Stepper */
18744
19241
  .stepper-icons .stepper-step-icon {
18745
19242
  font-size: 1.25rem;