@duskmoon-dev/core 1.19.6 → 1.19.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) 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/index.css +691 -195
  5. package/dist/components/link.css +43 -0
  6. package/dist/components/megamenu.css +298 -0
  7. package/dist/components/menu.css +175 -0
  8. package/dist/components/navbar.css +283 -0
  9. package/dist/components/navigation.css +513 -149
  10. package/dist/components/nested-menu.css +19 -4
  11. package/dist/components/pagination.css +216 -0
  12. package/dist/components/stepper.css +33 -19
  13. package/dist/components/tabs.css +101 -0
  14. package/dist/esm/components/bottom-navigation.js +127 -24
  15. package/dist/esm/components/breadcrumbs.d.ts +5 -0
  16. package/dist/esm/components/breadcrumbs.js +261 -0
  17. package/dist/esm/components/link.d.ts +5 -0
  18. package/dist/esm/components/link.js +52 -0
  19. package/dist/esm/components/megamenu.d.ts +5 -0
  20. package/dist/esm/components/megamenu.js +307 -0
  21. package/dist/esm/components/menu.d.ts +5 -0
  22. package/dist/esm/components/menu.js +184 -0
  23. package/dist/esm/components/navbar.d.ts +5 -0
  24. package/dist/esm/components/navbar.js +292 -0
  25. package/dist/esm/components/navigation.js +513 -149
  26. package/dist/esm/components/nested-menu.js +19 -4
  27. package/dist/esm/components/pagination.d.ts +5 -0
  28. package/dist/esm/components/pagination.js +225 -0
  29. package/dist/esm/components/stepper.js +33 -19
  30. package/dist/esm/components/tabs.d.ts +5 -0
  31. package/dist/esm/components/tabs.js +110 -0
  32. package/dist/index.css +691 -195
  33. package/dist/index.min.css +1 -1
  34. package/dist/standalone/duskmoonui-themes.css +1 -1
  35. package/dist/standalone/duskmoonui.css +693 -197
  36. package/dist/standalone/duskmoonui.js +9 -6
  37. package/dist/standalone/duskmoonui.mjs +9 -6
  38. 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;
3471
+ }
3472
+
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
+ }
3318
3499
  }
3319
3500
 
3320
- /* Menu */
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
  /**
@@ -17120,15 +17484,15 @@
17120
17484
  /* Base Bottom Navigation */
17121
17485
  .bottom-nav {
17122
17486
  position: fixed;
17123
- bottom: 0;
17124
- left: 0;
17125
- right: 0;
17487
+ bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
17488
+ inset-block-end: 0;
17489
+ inset-inline: 0;
17126
17490
  z-index: 1000;
17127
17491
  display: flex;
17128
17492
  align-items: stretch;
17129
17493
  justify-content: space-around;
17130
17494
  min-height: 5rem;
17131
- padding-bottom: env(safe-area-inset-bottom, 0);
17495
+ padding-block-end: env(safe-area-inset-bottom, 0);
17132
17496
  background-color: var(--color-surface);
17133
17497
  box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
17134
17498
  }
@@ -17150,6 +17514,8 @@
17150
17514
  transition: color 150ms ease-in-out;
17151
17515
  text-decoration: none;
17152
17516
  gap: 0.25rem;
17517
+ position: relative;
17518
+ border-radius: var(--radius-md);
17153
17519
  }
17154
17520
 
17155
17521
  .bottom-nav-item:hover {
@@ -17157,7 +17523,8 @@
17157
17523
  }
17158
17524
 
17159
17525
  .bottom-nav-item:focus-visible {
17160
- outline: none;
17526
+ outline: 2px solid currentColor;
17527
+ outline-offset: -2px;
17161
17528
  }
17162
17529
 
17163
17530
  .bottom-nav-item:focus-visible .bottom-nav-indicator {
@@ -17166,10 +17533,18 @@
17166
17533
  }
17167
17534
 
17168
17535
  /* Active State */
17169
- .bottom-nav-item.active {
17536
+ .bottom-nav-item.active,
17537
+ .bottom-nav-item-active,
17538
+ .bottom-nav-item-active-primary,
17539
+ .bottom-nav-item[aria-current="page"] {
17170
17540
  color: var(--color-on-surface);
17171
17541
  }
17172
17542
 
17543
+ .bottom-nav-item:is(.active, .bottom-nav-item-active, .bottom-nav-item-active-primary, [aria-current="page"]):not(:has(.bottom-nav-indicator)) {
17544
+ color: var(--color-on-secondary-container);
17545
+ background-color: var(--color-secondary-container);
17546
+ }
17547
+
17173
17548
  /* Icon Container with Indicator */
17174
17549
  .bottom-nav-indicator {
17175
17550
  position: relative;
@@ -17186,7 +17561,10 @@
17186
17561
  background-color: var(--color-surface-container);
17187
17562
  }
17188
17563
 
17189
- .bottom-nav-item.active .bottom-nav-indicator {
17564
+ .bottom-nav-item.active .bottom-nav-indicator,
17565
+ .bottom-nav-item-active .bottom-nav-indicator,
17566
+ .bottom-nav-item-active-primary .bottom-nav-indicator,
17567
+ .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
17190
17568
  background-color: var(--color-secondary-container);
17191
17569
  }
17192
17570
 
@@ -17209,7 +17587,10 @@
17209
17587
  max-width: 100%;
17210
17588
  }
17211
17589
 
17212
- .bottom-nav-item.active .bottom-nav-label {
17590
+ .bottom-nav-item.active .bottom-nav-label,
17591
+ .bottom-nav-item-active .bottom-nav-label,
17592
+ .bottom-nav-item-active-primary .bottom-nav-label,
17593
+ .bottom-nav-item[aria-current="page"] .bottom-nav-label {
17213
17594
  font-weight: 600;
17214
17595
  }
17215
17596
 
@@ -17217,7 +17598,7 @@
17217
17598
  .bottom-nav-badge {
17218
17599
  position: absolute;
17219
17600
  top: 0;
17220
- right: 0.5rem;
17601
+ inset-inline-end: 0.5rem;
17221
17602
  min-width: 1rem;
17222
17603
  height: 1rem;
17223
17604
  padding: 0 0.25rem;
@@ -17236,7 +17617,7 @@
17236
17617
  height: 0.5rem;
17237
17618
  padding: 0;
17238
17619
  top: 0.125rem;
17239
- right: 0.75rem;
17620
+ inset-inline-end: 0.75rem;
17240
17621
  }
17241
17622
 
17242
17623
  /* Variants */
@@ -17254,23 +17635,96 @@
17254
17635
  }
17255
17636
 
17256
17637
  /* Color Variants */
17257
- .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator {
17638
+ .bottom-nav-primary .bottom-nav-item.active .bottom-nav-indicator,
17639
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active .bottom-nav-indicator,
17640
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] .bottom-nav-indicator {
17258
17641
  background-color: var(--color-primary-container);
17259
17642
  }
17260
17643
 
17261
- .bottom-nav-primary .bottom-nav-item.active {
17644
+ .bottom-nav-item-active-secondary {
17645
+ color: var(--color-on-secondary-container);
17646
+ }
17647
+
17648
+ .bottom-nav-item-active-secondary .bottom-nav-indicator {
17649
+ background-color: var(--color-secondary-container);
17650
+ }
17651
+
17652
+ .bottom-nav-item-active-tertiary {
17653
+ color: var(--color-on-tertiary-container);
17654
+ }
17655
+
17656
+ .bottom-nav-item-active-tertiary .bottom-nav-indicator {
17657
+ background-color: var(--color-tertiary-container);
17658
+ }
17659
+
17660
+ .bottom-nav-surface {
17661
+ background-color: var(--color-surface);
17662
+ }
17663
+
17664
+ .bottom-nav-surface-container-low {
17665
+ background-color: var(--color-surface-container-low);
17666
+ }
17667
+
17668
+ .bottom-nav-surface-container-high {
17669
+ background-color: var(--color-surface-container-high);
17670
+ }
17671
+
17672
+ .bottom-nav-transparent {
17673
+ background-color: transparent;
17674
+ }
17675
+
17676
+ .bottom-nav-borderless {
17677
+ border-block-start: 0;
17678
+ box-shadow: none;
17679
+ }
17680
+
17681
+ .bottom-nav-compact {
17682
+ min-height: 3.5rem;
17683
+ }
17684
+
17685
+ .bottom-nav-item-disabled,
17686
+ .bottom-nav-item:disabled,
17687
+ .bottom-nav-item[aria-disabled="true"] {
17688
+ opacity: 0.38;
17689
+ cursor: not-allowed;
17690
+ }
17691
+
17692
+ .bottom-nav-primary .bottom-nav-item.active,
17693
+ .bottom-nav-primary .bottom-nav-item.bottom-nav-item-active,
17694
+ .bottom-nav-primary .bottom-nav-item[aria-current="page"] {
17262
17695
  color: var(--color-on-primary-container);
17263
17696
  }
17264
17697
 
17265
17698
  /* Hide Labels */
17266
17699
  .bottom-nav-icons-only .bottom-nav-label {
17267
- display: none;
17700
+ position: absolute;
17701
+ width: 1px;
17702
+ height: 1px;
17703
+ padding: 0;
17704
+ margin: -1px;
17705
+ overflow: hidden;
17706
+ clip: rect(0, 0, 0, 0);
17707
+ white-space: nowrap;
17708
+ border: 0;
17268
17709
  }
17269
17710
 
17270
17711
  .bottom-nav-icons-only .bottom-nav-item {
17271
17712
  padding: 1rem 0.25rem;
17272
17713
  }
17273
17714
 
17715
+ .bottom-nav-labels-only .bottom-nav-icon {
17716
+ display: none;
17717
+ }
17718
+
17719
+ .bottom-nav-labels-only .bottom-nav-item {
17720
+ flex-direction: row;
17721
+ min-width: auto;
17722
+ }
17723
+
17724
+ .bottom-nav-labels-only .bottom-nav-label {
17725
+ font-size: 0.875rem;
17726
+ }
17727
+
17274
17728
  /* Show Labels Only on Active */
17275
17729
  .bottom-nav-labels-active .bottom-nav-label {
17276
17730
  opacity: 0;
@@ -17279,7 +17733,7 @@
17279
17733
  transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
17280
17734
  }
17281
17735
 
17282
- .bottom-nav-labels-active .bottom-nav-item.active .bottom-nav-label {
17736
+ .bottom-nav-labels-active .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
17283
17737
  opacity: 1;
17284
17738
  max-height: 1rem;
17285
17739
  }
@@ -17290,7 +17744,16 @@
17290
17744
  transition: flex 200ms ease-in-out;
17291
17745
  }
17292
17746
 
17293
- .bottom-nav-shifting .bottom-nav-item.active {
17747
+ /* Legacy spelling retained; prefer .bottom-nav-shifting. */
17748
+ .bottom-nav-shift .bottom-nav-item:not(:is(.active, .bottom-nav-item-active, [aria-current="page"])) .bottom-nav-label {
17749
+ display: none;
17750
+ }
17751
+
17752
+ .bottom-nav-shift .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
17753
+ min-width: 6rem;
17754
+ }
17755
+
17756
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
17294
17757
  flex: 1 1 6rem;
17295
17758
  }
17296
17759
 
@@ -17300,7 +17763,7 @@
17300
17763
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
17301
17764
  }
17302
17765
 
17303
- .bottom-nav-shifting .bottom-nav-item.active .bottom-nav-label {
17766
+ .bottom-nav-shifting .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) .bottom-nav-label {
17304
17767
  opacity: 1;
17305
17768
  transform: translateY(0);
17306
17769
  }
@@ -17308,9 +17771,9 @@
17308
17771
  /* Rail Style (Side Navigation) */
17309
17772
  .nav-rail {
17310
17773
  position: fixed;
17311
- left: 0;
17312
- top: 0;
17313
- bottom: 0;
17774
+ left: 0; /* Physical fallback; logical inset below controls RTL placement. */
17775
+ inset-inline-start: 0;
17776
+ inset-block: 0;
17314
17777
  z-index: 1000;
17315
17778
  display: flex;
17316
17779
  flex-direction: column;
@@ -17318,7 +17781,11 @@
17318
17781
  width: 5rem;
17319
17782
  padding: 1rem 0;
17320
17783
  background-color: var(--color-surface);
17321
- border-right: 1px solid var(--color-outline-variant);
17784
+ border-inline-end: 1px solid var(--color-outline-variant);
17785
+ }
17786
+
17787
+ .nav-rail:dir(rtl) {
17788
+ left: auto;
17322
17789
  }
17323
17790
 
17324
17791
  .nav-rail .bottom-nav-item {
@@ -17336,13 +17803,13 @@
17336
17803
  @media (min-width: 768px) {
17337
17804
  .bottom-nav-responsive {
17338
17805
  position: relative;
17339
- bottom: auto;
17806
+ inset-block-end: auto;
17340
17807
  justify-content: flex-start;
17341
17808
  gap: 0.5rem;
17342
17809
  min-height: 3rem;
17343
17810
  padding: 0 1rem;
17344
17811
  box-shadow: none;
17345
- border-bottom: 1px solid var(--color-outline-variant);
17812
+ border-block-end: 1px solid var(--color-outline-variant);
17346
17813
  }
17347
17814
 
17348
17815
  .bottom-nav-responsive .bottom-nav-item {
@@ -17358,8 +17825,8 @@
17358
17825
  background-color: transparent !important;
17359
17826
  }
17360
17827
 
17361
- .bottom-nav-responsive .bottom-nav-item.active {
17362
- border-bottom: 2px solid var(--color-primary);
17828
+ .bottom-nav-responsive .bottom-nav-item:is(.active, .bottom-nav-item-active, [aria-current="page"]) {
17829
+ border-block-end: 2px solid var(--color-primary);
17363
17830
  }
17364
17831
  }
17365
17832
 
@@ -18263,8 +18730,12 @@
18263
18730
  }
18264
18731
 
18265
18732
  .nested-menu li.disabled > a,
18266
- .nested-menu li.disabled > button {
18733
+ .nested-menu li.disabled > button,
18734
+ .nested-menu li > button:disabled,
18735
+ .nested-menu li > a[aria-disabled="true"] {
18267
18736
  color: var(--color-on-surface-variant);
18737
+ opacity: 0.5;
18738
+ cursor: not-allowed;
18268
18739
  }
18269
18740
 
18270
18741
  /* ============================================
@@ -18314,7 +18785,7 @@
18314
18785
  .nested-menu summary::after {
18315
18786
  content: "";
18316
18787
  display: inline-block;
18317
- margin-left: auto;
18788
+ margin-inline-start: auto;
18318
18789
  width: 0.375rem;
18319
18790
  height: 0.375rem;
18320
18791
  border-right: 1.5px solid currentColor;
@@ -18329,11 +18800,22 @@
18329
18800
  transform: rotate(45deg);
18330
18801
  }
18331
18802
 
18803
+ .nested-menu:dir(rtl) summary::after {
18804
+ border-right: 0;
18805
+ border-left: 1.5px solid currentColor;
18806
+ transform: rotate(135deg);
18807
+ }
18808
+
18809
+ .nested-menu:dir(rtl) details[open] > summary::after {
18810
+ transform: rotate(45deg);
18811
+ }
18812
+
18332
18813
  /* Nested <ul> inside details — auto-indentation */
18333
18814
  .nested-menu details > ul {
18334
18815
  list-style: none;
18335
18816
  margin: 0;
18336
- padding: 0.125rem 0 0.125rem 1rem;
18817
+ padding-block: 0.125rem;
18818
+ padding-inline: 1rem 0;
18337
18819
  display: flex;
18338
18820
  flex-direction: column;
18339
18821
  gap: 0.125rem;
@@ -18423,7 +18905,7 @@
18423
18905
  }
18424
18906
 
18425
18907
  .nested-menu-compact details > ul {
18426
- padding: 0 0 0 0.75rem;
18908
+ padding-inline: 0.75rem 0;
18427
18909
  }
18428
18910
 
18429
18911
  /* ============================================
@@ -18466,7 +18948,7 @@
18466
18948
  .stepper-step-connector {
18467
18949
  position: absolute;
18468
18950
  top: 1.25rem;
18469
- left: calc(50% + 1.25rem);
18951
+ inset-inline-start: calc(50% + 1.25rem);
18470
18952
  width: calc(100% - 2.5rem);
18471
18953
  height: 2px;
18472
18954
  background-color: var(--color-outline-variant);
@@ -18491,10 +18973,13 @@
18491
18973
  background: none;
18492
18974
  border: none;
18493
18975
  padding: 0;
18976
+ color: inherit;
18494
18977
  }
18495
18978
 
18496
18979
  .stepper-step-button:focus-visible {
18497
- outline: none;
18980
+ outline: 2px solid currentColor;
18981
+ outline-offset: 0.25rem;
18982
+ border-radius: var(--radius-sm);
18498
18983
  }
18499
18984
 
18500
18985
  .stepper-step-button:focus-visible .stepper-step-icon {
@@ -18518,7 +19003,8 @@
18518
19003
  transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;
18519
19004
  }
18520
19005
 
18521
- .stepper-step-active .stepper-step-icon {
19006
+ .stepper-step-active .stepper-step-icon,
19007
+ .stepper-step[aria-current="step"] .stepper-step-icon {
18522
19008
  background-color: var(--color-primary);
18523
19009
  border-color: var(--color-primary);
18524
19010
  color: var(--color-primary-content);
@@ -18549,7 +19035,8 @@
18549
19035
  text-align: center;
18550
19036
  }
18551
19037
 
18552
- .stepper-step-active .stepper-step-label {
19038
+ .stepper-step-active .stepper-step-label,
19039
+ .stepper-step[aria-current="step"] .stepper-step-label {
18553
19040
  color: var(--color-primary);
18554
19041
  }
18555
19042
 
@@ -18560,14 +19047,14 @@
18560
19047
  .stepper-step-description {
18561
19048
  font-size: 0.75rem;
18562
19049
  color: var(--color-on-surface-variant);
18563
- margin-top: 0.125rem;
19050
+ margin-block-start: 0.125rem;
18564
19051
  text-align: center;
18565
19052
  }
18566
19053
 
18567
19054
  /* Step Content (for vertical stepper) */
18568
19055
  .stepper-step-content {
18569
- margin-top: 1.5rem;
18570
- padding: 0 1rem;
19056
+ margin-block-start: 1.5rem;
19057
+ padding-inline: 1rem;
18571
19058
  width: 100%;
18572
19059
  }
18573
19060
 
@@ -18577,7 +19064,7 @@
18577
19064
  display: block;
18578
19065
  font-size: 0.6875rem;
18579
19066
  color: var(--color-on-surface-variant);
18580
- margin-top: 0.125rem;
19067
+ margin-block-start: 0.125rem;
18581
19068
  }
18582
19069
 
18583
19070
  /* Vertical Stepper */
@@ -18594,7 +19081,7 @@
18594
19081
 
18595
19082
  .stepper-vertical .stepper-step-connector {
18596
19083
  top: 2.5rem;
18597
- left: 1.25rem;
19084
+ inset-inline-start: 1.25rem;
18598
19085
  width: 2px;
18599
19086
  height: calc(100% - 2.5rem);
18600
19087
  transform: translateX(-50%);
@@ -18607,18 +19094,19 @@
18607
19094
 
18608
19095
  .stepper-vertical .stepper-step-label,
18609
19096
  .stepper-vertical .stepper-step-description {
18610
- text-align: left;
18611
- margin-left: 1rem;
19097
+ text-align: start;
19098
+ margin-inline-start: 1rem;
18612
19099
  }
18613
19100
 
18614
19101
  .stepper-vertical .stepper-step-content {
18615
- margin-top: 0;
18616
- margin-left: 3.5rem;
18617
- padding: 1rem 0 1.5rem;
19102
+ margin-block-start: 0;
19103
+ margin-inline-start: 3.5rem;
19104
+ padding-block: 1rem 1.5rem;
18618
19105
  }
18619
19106
 
18620
19107
  /* Color Variants */
18621
19108
  .stepper-secondary .stepper-step-active .stepper-step-icon,
19109
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-icon,
18622
19110
  .stepper-secondary .stepper-step-completed .stepper-step-icon {
18623
19111
  background-color: var(--color-secondary);
18624
19112
  border-color: var(--color-secondary);
@@ -18629,11 +19117,13 @@
18629
19117
  background-color: var(--color-secondary);
18630
19118
  }
18631
19119
 
18632
- .stepper-secondary .stepper-step-active .stepper-step-label {
19120
+ .stepper-secondary .stepper-step-active .stepper-step-label,
19121
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-label {
18633
19122
  color: var(--color-secondary);
18634
19123
  }
18635
19124
 
18636
19125
  .stepper-tertiary .stepper-step-active .stepper-step-icon,
19126
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-icon,
18637
19127
  .stepper-tertiary .stepper-step-completed .stepper-step-icon {
18638
19128
  background-color: var(--color-tertiary);
18639
19129
  border-color: var(--color-tertiary);
@@ -18644,7 +19134,8 @@
18644
19134
  background-color: var(--color-tertiary);
18645
19135
  }
18646
19136
 
18647
- .stepper-tertiary .stepper-step-active .stepper-step-label {
19137
+ .stepper-tertiary .stepper-step-active .stepper-step-label,
19138
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-label {
18648
19139
  color: var(--color-tertiary);
18649
19140
  }
18650
19141
 
@@ -18657,7 +19148,7 @@
18657
19148
 
18658
19149
  .stepper-sm .stepper-step-connector {
18659
19150
  top: 1rem;
18660
- left: calc(50% + 1rem);
19151
+ inset-inline-start: calc(50% + 1rem);
18661
19152
  width: calc(100% - 2rem);
18662
19153
  }
18663
19154
 
@@ -18678,14 +19169,14 @@
18678
19169
 
18679
19170
  .stepper-lg .stepper-step-connector {
18680
19171
  top: 1.5rem;
18681
- left: calc(50% + 1.5rem);
19172
+ inset-inline-start: calc(50% + 1.5rem);
18682
19173
  width: calc(100% - 3rem);
18683
19174
  }
18684
19175
 
18685
19176
  /* Alternative Label Positioning */
18686
19177
  .stepper-alt-labels .stepper-step-connector {
18687
19178
  top: 1.25rem;
18688
- left: calc(50% + 2rem);
19179
+ inset-inline-start: calc(50% + 2rem);
18689
19180
  width: calc(100% - 4rem);
18690
19181
  }
18691
19182
 
@@ -18740,6 +19231,11 @@
18740
19231
  opacity: 0.7;
18741
19232
  }
18742
19233
 
19234
+ .stepper-step-button:disabled {
19235
+ cursor: not-allowed;
19236
+ opacity: 0.7;
19237
+ }
19238
+
18743
19239
  /* Icon Stepper */
18744
19240
  .stepper-icons .stepper-step-icon {
18745
19241
  font-size: 1.25rem;