@duskmoon-dev/core 1.19.5 → 1.19.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +8 -6
  2. package/dist/components/bottom-navigation.css +127 -24
  3. package/dist/components/breadcrumbs.css +252 -0
  4. package/dist/components/dialog.css +29 -3
  5. package/dist/components/dropdown.css +91 -0
  6. package/dist/components/fab.css +182 -0
  7. package/dist/components/index.css +1167 -302
  8. package/dist/components/link.css +43 -0
  9. package/dist/components/megamenu.css +298 -0
  10. package/dist/components/menu.css +175 -0
  11. package/dist/components/modal.css +4 -3
  12. package/dist/components/navbar.css +283 -0
  13. package/dist/components/navigation.css +606 -202
  14. package/dist/components/nested-menu.css +19 -4
  15. package/dist/components/pagination.css +216 -0
  16. package/dist/components/stepper.css +33 -19
  17. package/dist/components/swap.css +116 -0
  18. package/dist/components/tabs.css +101 -0
  19. package/dist/esm/components/bottom-navigation.js +127 -24
  20. package/dist/esm/components/breadcrumbs.d.ts +5 -0
  21. package/dist/esm/components/breadcrumbs.js +261 -0
  22. package/dist/esm/components/dialog.js +29 -3
  23. package/dist/esm/components/dropdown.d.ts +5 -0
  24. package/dist/esm/components/dropdown.js +100 -0
  25. package/dist/esm/components/fab.d.ts +5 -0
  26. package/dist/esm/components/fab.js +191 -0
  27. package/dist/esm/components/link.d.ts +5 -0
  28. package/dist/esm/components/link.js +52 -0
  29. package/dist/esm/components/megamenu.d.ts +5 -0
  30. package/dist/esm/components/megamenu.js +307 -0
  31. package/dist/esm/components/menu.d.ts +5 -0
  32. package/dist/esm/components/menu.js +184 -0
  33. package/dist/esm/components/modal.js +4 -3
  34. package/dist/esm/components/navbar.d.ts +5 -0
  35. package/dist/esm/components/navbar.js +292 -0
  36. package/dist/esm/components/navigation.js +606 -202
  37. package/dist/esm/components/nested-menu.js +19 -4
  38. package/dist/esm/components/pagination.d.ts +5 -0
  39. package/dist/esm/components/pagination.js +225 -0
  40. package/dist/esm/components/stepper.js +33 -19
  41. package/dist/esm/components/swap.d.ts +5 -0
  42. package/dist/esm/components/swap.js +125 -0
  43. package/dist/esm/components/tabs.d.ts +5 -0
  44. package/dist/esm/components/tabs.js +110 -0
  45. package/dist/index.css +1167 -302
  46. package/dist/index.min.css +1 -1
  47. package/dist/standalone/duskmoonui-themes.css +1 -1
  48. package/dist/standalone/duskmoonui.css +1168 -303
  49. package/dist/standalone/duskmoonui.js +23 -7
  50. package/dist/standalone/duskmoonui.mjs +23 -7
  51. package/package.json +61 -1
@@ -721,6 +721,308 @@
721
721
  }
722
722
 
723
723
 
724
+ /* Action composition components */
725
+ /**
726
+ * FAB / Speed Dial Component Styles
727
+ *
728
+ * FAB owns viewport placement and action layout. Pair its trigger and actions
729
+ * with Button classes for color, interaction, and disabled states.
730
+ */
731
+
732
+ @layer components {
733
+ .fab {
734
+ --fab-offset-block: 1rem;
735
+ --fab-offset-inline: 1rem;
736
+ --fab-gap: 0.75rem;
737
+ --fab-size: 3.5rem;
738
+
739
+ position: fixed;
740
+ inset-block-end: calc(var(--fab-offset-block) + env(safe-area-inset-bottom, 0px));
741
+ inset-inline-end: calc(var(--fab-offset-inline) + env(safe-area-inset-right, 0px));
742
+ z-index: 40;
743
+ display: inline-flex;
744
+ flex-direction: column-reverse;
745
+ align-items: flex-end;
746
+ gap: var(--fab-gap);
747
+ max-inline-size: calc(100dvw - 2 * var(--fab-offset-inline));
748
+ }
749
+
750
+ .fab-start {
751
+ inset-inline-start: calc(var(--fab-offset-inline) + env(safe-area-inset-left, 0px));
752
+ inset-inline-end: auto;
753
+ align-items: flex-start;
754
+ }
755
+
756
+ .fab-contained {
757
+ position: absolute;
758
+ }
759
+
760
+ .fab-speed-dial {
761
+ flex-direction: column-reverse;
762
+ }
763
+
764
+ .fab-trigger {
765
+ min-inline-size: var(--fab-size);
766
+ min-block-size: var(--fab-size);
767
+ padding: 0.875rem;
768
+ border-radius: var(--radius-lg);
769
+ box-shadow: var(--shadow-lg);
770
+ }
771
+
772
+ .fab-trigger:not(.fab-extended) {
773
+ inline-size: var(--fab-size);
774
+ block-size: var(--fab-size);
775
+ }
776
+
777
+ .fab-extended {
778
+ inline-size: auto;
779
+ max-inline-size: 100%;
780
+ min-block-size: var(--fab-size);
781
+ padding-inline: 1.25rem;
782
+ border-radius: var(--radius-lg);
783
+ }
784
+
785
+ .fab-actions {
786
+ align-items: flex-end;
787
+ flex-direction: column-reverse;
788
+ gap: var(--fab-gap);
789
+ max-inline-size: min(22rem, calc(100dvw - 2rem));
790
+ }
791
+
792
+ .fab-start .fab-actions {
793
+ align-items: flex-start;
794
+ }
795
+
796
+ /* Controlled mode: application code owns .fab-open and all ARIA state. */
797
+ .fab-controlled > .fab-actions:not([popover]) {
798
+ display: none;
799
+ }
800
+
801
+ .fab-controlled.fab-open > .fab-actions:not([popover]) {
802
+ display: flex;
803
+ }
804
+
805
+ /* Native mode: the browser's popover state is the sole authority. */
806
+ .fab-actions[popover] {
807
+ display: none;
808
+ position: fixed;
809
+ inset-block-start: auto;
810
+ inset-block-end: calc(
811
+ var(--fab-offset-block, 1rem) + env(safe-area-inset-bottom, 0px) +
812
+ var(--fab-size, 3.5rem) + var(--fab-gap, 0.75rem)
813
+ );
814
+ inset-inline-start: auto;
815
+ inset-inline-end: calc(var(--fab-offset-inline, 1rem) + env(safe-area-inset-right, 0px));
816
+ margin: 0;
817
+ padding: 0;
818
+ border: 0;
819
+ overflow: visible;
820
+ color: inherit;
821
+ background: transparent;
822
+ opacity: 0;
823
+ visibility: hidden;
824
+ pointer-events: none;
825
+ transform: translateY(0.5rem);
826
+ transition:
827
+ opacity 150ms ease-out,
828
+ transform 150ms ease-out,
829
+ overlay 150ms ease-out allow-discrete,
830
+ display 150ms ease-out allow-discrete;
831
+ }
832
+
833
+ .fab-start > .fab-actions[popover] {
834
+ inset-inline-start: calc(var(--fab-offset-inline, 1rem) + env(safe-area-inset-left, 0px));
835
+ inset-inline-end: auto;
836
+ }
837
+
838
+ .fab-actions[popover]:popover-open {
839
+ display: flex;
840
+ opacity: 1;
841
+ visibility: visible;
842
+ pointer-events: auto;
843
+ transform: translateY(0);
844
+ }
845
+
846
+ @starting-style {
847
+ .fab-actions[popover]:popover-open {
848
+ opacity: 0;
849
+ transform: translateY(0.5rem);
850
+ }
851
+ }
852
+
853
+ @supports (position-area: top) {
854
+ .fab-actions[popover] {
855
+ inset: auto;
856
+ margin: var(--fab-gap, 0.75rem);
857
+ position-area: top span-left;
858
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
859
+ }
860
+
861
+ .fab-start > .fab-actions[popover] {
862
+ inset: auto;
863
+ position-area: top span-right;
864
+ }
865
+ }
866
+
867
+ .fab-action {
868
+ display: inline-flex;
869
+ align-items: center;
870
+ justify-content: flex-end;
871
+ gap: 0.5rem;
872
+ max-inline-size: 100%;
873
+ }
874
+
875
+ .fab-start .fab-action {
876
+ flex-direction: row-reverse;
877
+ }
878
+
879
+ .fab-label {
880
+ max-inline-size: min(16rem, calc(100dvw - 6rem));
881
+ padding: 0.375rem 0.625rem;
882
+ overflow-wrap: anywhere;
883
+ color: var(--color-on-surface);
884
+ background-color: var(--color-surface-container-high);
885
+ border: 1px solid var(--color-outline-variant);
886
+ border-radius: var(--radius-sm);
887
+ box-shadow: var(--shadow-sm);
888
+ font-size: 0.8125rem;
889
+ font-weight: 500;
890
+ line-height: 1.125rem;
891
+ }
892
+
893
+ @media (max-width: 30rem) {
894
+ .fab {
895
+ --fab-offset-block: 0.75rem;
896
+ --fab-offset-inline: 0.75rem;
897
+ }
898
+ }
899
+
900
+ @media (prefers-reduced-motion: reduce) {
901
+ .fab-actions[popover] {
902
+ transition: none;
903
+ transform: none;
904
+ }
905
+ }
906
+ }
907
+
908
+ /**
909
+ * Swap Component Styles
910
+ * Displays one of two non-interactive state indicators.
911
+ */
912
+
913
+ @layer components {
914
+ .swap {
915
+ position: relative;
916
+ display: inline-grid;
917
+ place-items: center;
918
+ vertical-align: middle;
919
+ cursor: pointer;
920
+ user-select: none;
921
+ }
922
+
923
+ .swap-input {
924
+ position: absolute;
925
+ inset: 0;
926
+ z-index: 1;
927
+ width: 100%;
928
+ height: 100%;
929
+ margin: 0;
930
+ opacity: 0;
931
+ cursor: pointer;
932
+ }
933
+
934
+ .swap-on,
935
+ .swap-off {
936
+ grid-area: 1 / 1;
937
+ display: inline-flex;
938
+ align-items: center;
939
+ justify-content: center;
940
+ inline-size: max-content;
941
+ max-inline-size: 100%;
942
+ transition: opacity 150ms ease-out, transform 150ms ease-out;
943
+ }
944
+
945
+ .swap-on {
946
+ opacity: 0;
947
+ visibility: hidden;
948
+ pointer-events: none;
949
+ }
950
+
951
+ .swap-off {
952
+ opacity: 1;
953
+ visibility: visible;
954
+ pointer-events: none;
955
+ }
956
+
957
+ .swap-input:checked ~ .swap-on,
958
+ .swap[aria-pressed="true"] > .swap-on {
959
+ opacity: 1;
960
+ visibility: visible;
961
+ }
962
+
963
+ .swap-input:checked ~ .swap-off,
964
+ .swap[aria-pressed="true"] > .swap-off {
965
+ opacity: 0;
966
+ visibility: hidden;
967
+ }
968
+
969
+ .swap:focus-visible,
970
+ .swap:has(.swap-input:focus-visible) {
971
+ outline: none;
972
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
973
+ border-radius: var(--radius-sm);
974
+ }
975
+
976
+ .swap:disabled,
977
+ .swap:has(.swap-input:disabled) {
978
+ cursor: not-allowed;
979
+ opacity: 0.5;
980
+ }
981
+
982
+ .swap-input:disabled {
983
+ cursor: not-allowed;
984
+ }
985
+
986
+ .swap-rotate .swap-on {
987
+ transform: rotate(-90deg) scale(0.8);
988
+ }
989
+
990
+ .swap-rotate .swap-off {
991
+ transform: rotate(0deg) scale(1);
992
+ }
993
+
994
+ .swap-rotate .swap-input:checked ~ .swap-on,
995
+ .swap-rotate[aria-pressed="true"] > .swap-on {
996
+ transform: rotate(0deg) scale(1);
997
+ }
998
+
999
+ .swap-rotate .swap-input:checked ~ .swap-off,
1000
+ .swap-rotate[aria-pressed="true"] > .swap-off {
1001
+ transform: rotate(90deg) scale(0.8);
1002
+ }
1003
+
1004
+ /* Presentation-only override. It intentionally wins over semantic state. */
1005
+ .swap.swap-active > .swap-on {
1006
+ opacity: 1;
1007
+ visibility: visible;
1008
+ transform: rotate(0deg) scale(1);
1009
+ }
1010
+
1011
+ .swap.swap-active > .swap-off {
1012
+ opacity: 0;
1013
+ visibility: hidden;
1014
+ transform: rotate(90deg) scale(0.8);
1015
+ }
1016
+
1017
+ @media (prefers-reduced-motion: reduce) {
1018
+ .swap-on,
1019
+ .swap-off {
1020
+ transition: none;
1021
+ }
1022
+ }
1023
+ }
1024
+
1025
+
724
1026
  /* Card Component */
725
1027
  /**
726
1028
  * Card Component Styles
@@ -2825,45 +3127,147 @@
2825
3127
 
2826
3128
 
2827
3129
 
2828
- /* Navigation Component - includes navbar, menu, breadcrumbs, tabs, pagination, dropdown */
3130
+ /* Navigation Component - retains the legacy Dropdown import contract */
3131
+ /**
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.
3136
+ */
3137
+
3138
+ /* Keep the historical Dropdown coverage and cascade order. */
2829
3139
  /**
2830
- * Navigation Component Styles
2831
- * DuskMoonUI - Material Design 3 inspired navigation system
3140
+ * Dropdown Component Styles
3141
+ * Native Popover disclosure with logical CSS anchor positioning.
2832
3142
  */
2833
3143
 
2834
3144
  @layer components {
2835
- /* Navbar Base */
2836
- .navbar {
2837
- display: flex;
2838
- align-items: center;
2839
- width: 100%;
2840
- min-height: 4rem;
2841
- padding: 0.5rem 1rem;
2842
- background-color: var(--color-surface);
2843
- color: var(--color-on-surface);
3145
+ .dropdown {
3146
+ position: relative;
3147
+ display: inline-block;
2844
3148
  }
2845
3149
 
2846
- .navbar-primary {
2847
- background-color: var(--color-primary);
2848
- color: var(--color-primary-content);
3150
+ .dropdown > .dropdown-content[popover] {
3151
+ display: none;
3152
+ position: fixed;
3153
+ inset-block-start: auto;
3154
+ inset-block-end: max(0.5rem, env(safe-area-inset-bottom, 0px));
3155
+ inset-inline-start: auto;
3156
+ inset-inline-end: max(
3157
+ 0.5rem,
3158
+ env(safe-area-inset-left, 0px),
3159
+ env(safe-area-inset-right, 0px)
3160
+ );
3161
+ z-index: 50;
3162
+ min-inline-size: 12rem;
3163
+ max-inline-size: min(24rem, calc(100dvw - 1rem));
3164
+ max-block-size: calc(100dvh - 1rem);
3165
+ margin: 0;
3166
+ padding: 0.5rem;
3167
+ overflow: auto;
3168
+ color: var(--color-on-surface);
3169
+ background-color: var(--color-surface);
3170
+ border: 1px solid var(--color-outline);
3171
+ border-radius: var(--radius-sm);
3172
+ box-shadow: var(--shadow-lg);
3173
+ opacity: 0;
3174
+ visibility: hidden;
3175
+ pointer-events: none;
3176
+ transform: translateY(-0.5rem);
3177
+ transition:
3178
+ opacity 150ms ease-out,
3179
+ transform 150ms ease-out,
3180
+ overlay 150ms ease-out allow-discrete,
3181
+ display 150ms ease-out allow-discrete;
2849
3182
  }
2850
3183
 
2851
- .navbar-secondary {
2852
- background-color: var(--color-secondary);
2853
- color: var(--color-secondary-content);
3184
+ .dropdown > .dropdown-content[popover]:popover-open {
3185
+ display: block;
3186
+ opacity: 1;
3187
+ visibility: visible;
3188
+ pointer-events: auto;
3189
+ transform: translateY(0);
2854
3190
  }
2855
3191
 
2856
- .navbar-tertiary {
2857
- background-color: var(--color-tertiary);
2858
- color: var(--color-tertiary-content);
3192
+ @starting-style {
3193
+ .dropdown > .dropdown-content[popover]:popover-open {
3194
+ opacity: 0;
3195
+ transform: translateY(-0.5rem);
3196
+ }
2859
3197
  }
2860
3198
 
2861
- .navbar-accent {
2862
- background-color: var(--color-accent);
2863
- color: var(--color-accent-content);
2864
- }
3199
+ @supports (position-area: block-end) {
3200
+ .dropdown > .dropdown-content[popover] {
3201
+ inset: auto;
3202
+ margin: 0.25rem;
3203
+ position-area: block-end span-inline-end;
3204
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
3205
+ }
2865
3206
 
2866
- .navbar-neutral {
3207
+ .dropdown.dropdown-block-start > .dropdown-content[popover] {
3208
+ position-area: block-start span-inline-end;
3209
+ }
3210
+
3211
+ .dropdown.dropdown-block-end > .dropdown-content[popover] {
3212
+ position-area: block-end span-inline-end;
3213
+ }
3214
+
3215
+ .dropdown.dropdown-inline-start > .dropdown-content[popover] {
3216
+ position-area: inline-start span-block-end;
3217
+ }
3218
+
3219
+ .dropdown.dropdown-inline-end > .dropdown-content[popover] {
3220
+ position-area: inline-end span-block-end;
3221
+ }
3222
+ }
3223
+
3224
+ @media (prefers-reduced-motion: reduce) {
3225
+ .dropdown > .dropdown-content[popover] {
3226
+ transition: none;
3227
+ }
3228
+ }
3229
+ }
3230
+
3231
+ /**
3232
+ * Navbar Component Styles
3233
+ * DuskMoonUI - Material Design 3 inspired navigation bar
3234
+ */
3235
+
3236
+ @layer components {
3237
+ .navbar {
3238
+ display: flex;
3239
+ align-items: center;
3240
+ width: 100%;
3241
+ min-height: 4rem;
3242
+ padding: 0.5rem 1rem;
3243
+ background-color: var(--color-surface);
3244
+ color: var(--color-on-surface);
3245
+ gap: 1rem;
3246
+ border-block-end: 1px solid var(--color-outline-variant);
3247
+ min-width: 0;
3248
+ }
3249
+
3250
+ .navbar-primary {
3251
+ background-color: var(--color-primary);
3252
+ color: var(--color-primary-content);
3253
+ }
3254
+
3255
+ .navbar-secondary {
3256
+ background-color: var(--color-secondary);
3257
+ color: var(--color-secondary-content);
3258
+ }
3259
+
3260
+ .navbar-tertiary {
3261
+ background-color: var(--color-tertiary);
3262
+ color: var(--color-tertiary-content);
3263
+ }
3264
+
3265
+ .navbar-accent {
3266
+ background-color: var(--color-accent);
3267
+ color: var(--color-accent-content);
3268
+ }
3269
+
3270
+ .navbar-neutral {
2867
3271
  background-color: var(--color-neutral);
2868
3272
  color: var(--color-neutral-content);
2869
3273
  }
@@ -2903,6 +3307,7 @@
2903
3307
  flex: 1;
2904
3308
  justify-content: flex-start;
2905
3309
  gap: 0.5rem;
3310
+ min-width: 0;
2906
3311
  }
2907
3312
 
2908
3313
  .navbar-center {
@@ -2911,6 +3316,10 @@
2911
3316
  justify-content: center;
2912
3317
  flex-shrink: 0;
2913
3318
  gap: 0.5rem;
3319
+ min-width: 0;
3320
+ overflow-x: auto;
3321
+ overscroll-behavior-inline: contain;
3322
+ scrollbar-width: thin;
2914
3323
  }
2915
3324
 
2916
3325
  .navbar-end {
@@ -2919,9 +3328,196 @@
2919
3328
  flex: 1;
2920
3329
  justify-content: flex-end;
2921
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;
2922
3471
  }
2923
3472
 
2924
- /* 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 {
2925
3521
  .menu {
2926
3522
  display: flex;
2927
3523
  flex-wrap: wrap;
@@ -2990,13 +3586,13 @@
2990
3586
  position-area: right;
2991
3587
  }
2992
3588
 
2993
- .menu li {
3589
+ .menu > li {
2994
3590
  display: flex;
2995
3591
  flex-shrink: 0;
2996
3592
  }
2997
3593
 
2998
- .menu li > a,
2999
- .menu li > button,
3594
+ .menu > li > a,
3595
+ .menu > li > button,
3000
3596
  .menu-item {
3001
3597
  display: flex;
3002
3598
  align-items: center;
@@ -3011,41 +3607,46 @@
3011
3607
  white-space: nowrap;
3012
3608
  }
3013
3609
 
3014
- .menu li > a:hover,
3015
- .menu li > button:hover,
3610
+ .menu > li > a:hover,
3611
+ .menu > li > button:hover,
3016
3612
  .menu-item:hover {
3017
3613
  background-color: var(--color-surface-container);
3018
3614
  }
3019
3615
 
3020
- .menu li > a:focus-visible,
3021
- .menu li > button:focus-visible,
3616
+ .menu > li > a:focus-visible,
3617
+ .menu > li > button:focus-visible,
3022
3618
  .menu-item:focus-visible {
3023
3619
  outline: none;
3024
3620
  box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
3025
3621
  }
3026
3622
 
3027
- .menu li > a.active,
3028
- .menu li > button.active,
3623
+ .menu > li > a.active,
3624
+ .menu > li > button.active,
3029
3625
  .menu-item.active,
3030
- .menu li > a[aria-current="page"],
3031
- .menu li > button[aria-current="page"] {
3626
+ .menu > li > a[aria-current="page"],
3627
+ .menu > li > button[aria-current="page"] {
3628
+ background-color: var(--color-primary-container);
3629
+ color: var(--color-on-primary-container);
3630
+ }
3631
+
3632
+ .menu-item[aria-current="page"] {
3032
3633
  background-color: var(--color-primary-container);
3033
3634
  color: var(--color-on-primary-container);
3034
3635
  }
3035
3636
 
3036
- .menu li.disabled > a,
3037
- .menu li.disabled > button,
3038
- .menu-item:disabled {
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"] {
3039
3642
  opacity: 0.5;
3040
- pointer-events: none;
3643
+ cursor: not-allowed;
3041
3644
  }
3042
3645
 
3043
- /* Menu Horizontal */
3044
3646
  .menu-horizontal {
3045
3647
  flex-direction: row;
3046
3648
  }
3047
3649
 
3048
- /* Menu Vertical */
3049
3650
  .menu-vertical {
3050
3651
  flex-direction: column;
3051
3652
  }
@@ -3060,7 +3661,6 @@
3060
3661
  width: 100%;
3061
3662
  }
3062
3663
 
3063
- /* Menu Compact */
3064
3664
  .menu-compact li > a,
3065
3665
  .menu-compact li > button,
3066
3666
  .menu-compact .menu-item {
@@ -3068,7 +3668,6 @@
3068
3668
  font-size: 0.8125rem;
3069
3669
  }
3070
3670
 
3071
- /* Menu Title */
3072
3671
  .menu-title {
3073
3672
  padding: 0.5rem 1rem;
3074
3673
  font-size: 0.75rem;
@@ -3078,7 +3677,23 @@
3078
3677
  color: var(--color-on-surface-variant);
3079
3678
  }
3080
3679
 
3081
- /* 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 {
3082
3697
  .breadcrumbs {
3083
3698
  display: flex;
3084
3699
  align-items: center;
@@ -3090,7 +3705,6 @@
3090
3705
  font-size: 0.875rem;
3091
3706
  }
3092
3707
 
3093
- /* List-based breadcrumbs (legacy) */
3094
3708
  .breadcrumbs li {
3095
3709
  display: flex;
3096
3710
  align-items: center;
@@ -3121,7 +3735,6 @@
3121
3735
  color: var(--color-on-surface-variant);
3122
3736
  }
3123
3737
 
3124
- /* Span-based breadcrumbs */
3125
3738
  .breadcrumb-item {
3126
3739
  display: inline-flex;
3127
3740
  align-items: center;
@@ -3162,7 +3775,6 @@
3162
3775
  border-radius: var(--radius-xs);
3163
3776
  }
3164
3777
 
3165
- /* Separator - Default shows "/" */
3166
3778
  .breadcrumb-separator {
3167
3779
  display: inline-flex;
3168
3780
  align-items: center;
@@ -3176,7 +3788,6 @@
3176
3788
  content: "/";
3177
3789
  }
3178
3790
 
3179
- /* Separator Variants */
3180
3791
  .breadcrumbs-slash .breadcrumb-separator::before {
3181
3792
  content: "/";
3182
3793
  }
@@ -3198,7 +3809,6 @@
3198
3809
  content: "|";
3199
3810
  }
3200
3811
 
3201
- /* Breadcrumb Icon */
3202
3812
  .breadcrumb-icon {
3203
3813
  display: inline-flex;
3204
3814
  align-items: center;
@@ -3213,7 +3823,6 @@
3213
3823
  height: 100%;
3214
3824
  }
3215
3825
 
3216
- /* Home Icon Link */
3217
3826
  .breadcrumb-home {
3218
3827
  display: inline-flex;
3219
3828
  align-items: center;
@@ -3232,7 +3841,6 @@
3232
3841
  height: 1.125rem;
3233
3842
  }
3234
3843
 
3235
- /* Collapsed Breadcrumbs (with ellipsis) */
3236
3844
  .breadcrumb-ellipsis {
3237
3845
  display: inline-flex;
3238
3846
  align-items: center;
@@ -3254,7 +3862,6 @@
3254
3862
  background-color: color-mix(in oklch, var(--color-on-surface) 8%, transparent);
3255
3863
  }
3256
3864
 
3257
- /* Color Variants */
3258
3865
  .breadcrumbs-primary .breadcrumb-link:hover,
3259
3866
  .breadcrumbs-primary .breadcrumb-item-active {
3260
3867
  color: var(--color-primary);
@@ -3270,208 +3877,178 @@
3270
3877
  color: var(--color-tertiary);
3271
3878
  }
3272
3879
 
3273
- /* Size Variants */
3274
3880
  .breadcrumbs-sm {
3275
3881
  font-size: 0.75rem;
3276
- gap: 0.375rem;
3277
- }
3278
-
3279
- .breadcrumbs-sm .breadcrumb-icon,
3280
- .breadcrumbs-sm .breadcrumb-home-icon {
3281
- width: 0.875rem;
3282
- height: 0.875rem;
3283
- }
3284
-
3285
- .breadcrumbs-lg {
3286
- font-size: 1rem;
3287
- gap: 0.625rem;
3288
- }
3289
-
3290
- .breadcrumbs-lg .breadcrumb-icon,
3291
- .breadcrumbs-lg .breadcrumb-home-icon {
3292
- width: 1.25rem;
3293
- height: 1.25rem;
3294
- }
3295
-
3296
- /* Contained Variant (with background) */
3297
- .breadcrumbs-contained {
3298
- padding: 0.75rem 1rem;
3299
- background-color: var(--color-surface-container);
3300
- border-radius: var(--radius-sm);
3301
- }
3302
-
3303
- /* No Wrap Variant */
3304
- .breadcrumbs-nowrap {
3305
- flex-wrap: nowrap;
3306
- overflow-x: auto;
3307
- }
3308
-
3309
- /* Disabled Breadcrumb Item */
3310
- .breadcrumb-item-disabled {
3311
- opacity: 1;
3312
- pointer-events: none;
3313
- cursor: not-allowed;
3314
- }
3315
-
3316
- /* Tabs */
3317
- .tabs {
3318
- display: flex;
3319
- flex-wrap: wrap;
3320
- gap: 0.25rem;
3321
- border-bottom: 1px solid var(--color-outline);
3322
- }
3323
-
3324
- .tab {
3325
- display: inline-flex;
3326
- align-items: center;
3327
- justify-content: center;
3328
- gap: 0.5rem;
3329
- padding: 0.75rem 1.25rem;
3330
- font-size: 0.875rem;
3331
- font-weight: 500;
3332
- color: var(--color-on-surface-variant);
3333
- text-decoration: none;
3334
- background-color: transparent;
3335
- border: none;
3336
- border-bottom: 2px solid transparent;
3337
- cursor: pointer;
3338
- transition: all 150ms ease-in-out;
3339
- position: relative;
3340
- margin-bottom: -1px;
3341
- }
3342
-
3343
- .tab:hover {
3344
- color: var(--color-on-surface);
3345
- background-color: var(--color-surface-container);
3346
- }
3347
-
3348
- .tab:focus-visible {
3349
- outline: none;
3350
- box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
3351
- }
3352
-
3353
- .tab.tab-active,
3354
- .tab[aria-selected="true"] {
3355
- color: var(--color-primary);
3356
- border-bottom-color: var(--color-primary);
3357
- }
3358
-
3359
- .tab:disabled {
3360
- opacity: 0.5;
3361
- cursor: not-allowed;
3362
- }
3363
-
3364
- /* Tabs Boxed */
3365
- .tabs-boxed {
3366
- background-color: var(--color-surface-container);
3367
- border-radius: var(--radius-sm);
3368
- padding: 0.25rem;
3369
- border: none;
3370
- }
3371
-
3372
- .tabs-boxed .tab {
3373
- border-radius: var(--radius-xs);
3374
- border-bottom: none;
3375
- margin-bottom: 0;
3376
- }
3377
-
3378
- .tabs-boxed .tab.tab-active,
3379
- .tabs-boxed .tab[aria-selected="true"] {
3380
- background-color: var(--color-surface);
3381
- color: var(--color-on-surface);
3382
- box-shadow: var(--shadow-xs);
3383
- }
3384
-
3385
- /* Tabs Lifted */
3386
- .tabs-lifted {
3387
- border: none;
3388
- }
3389
-
3390
- .tabs-lifted .tab {
3391
- border: 1px solid transparent;
3392
- border-bottom: none;
3393
- border-radius: var(--radius-sm) var(--radius-sm) 0 0;
3394
- margin-bottom: -1px;
3395
- }
3396
-
3397
- .tabs-lifted .tab.tab-active,
3398
- .tabs-lifted .tab[aria-selected="true"] {
3399
- background-color: var(--color-surface);
3400
- border-color: var(--color-outline);
3401
- border-bottom-color: var(--color-surface);
3402
- }
3403
-
3404
- /* Tab Sizes */
3405
- .tab-xs {
3406
- padding: 0.375rem 0.625rem;
3407
- font-size: 0.75rem;
3882
+ gap: 0.375rem;
3408
3883
  }
3409
3884
 
3410
- .tab-sm {
3411
- padding: 0.5rem 0.875rem;
3412
- font-size: 0.8125rem;
3885
+ .breadcrumbs-sm .breadcrumb-icon,
3886
+ .breadcrumbs-sm .breadcrumb-home-icon {
3887
+ width: 0.875rem;
3888
+ height: 0.875rem;
3413
3889
  }
3414
3890
 
3415
- .tab-lg {
3416
- padding: 1rem 1.5rem;
3891
+ .breadcrumbs-lg {
3417
3892
  font-size: 1rem;
3893
+ gap: 0.625rem;
3418
3894
  }
3419
3895
 
3420
- /* Dropdown */
3421
- .dropdown {
3422
- position: relative;
3423
- display: inline-block;
3896
+ .breadcrumbs-lg .breadcrumb-icon,
3897
+ .breadcrumbs-lg .breadcrumb-home-icon {
3898
+ width: 1.25rem;
3899
+ height: 1.25rem;
3424
3900
  }
3425
3901
 
3426
- .dropdown-content {
3427
- position: absolute;
3428
- z-index: 50;
3429
- min-width: 12rem;
3430
- padding: 0.5rem;
3431
- background-color: var(--color-surface);
3432
- border: 1px solid var(--color-outline);
3902
+ .breadcrumbs-contained {
3903
+ padding: 0.75rem 1rem;
3904
+ background-color: var(--color-surface-container);
3433
3905
  border-radius: var(--radius-sm);
3434
- box-shadow: var(--shadow-lg);
3435
- opacity: 0;
3436
- visibility: hidden;
3437
- transform: translateY(-0.5rem);
3438
- transition: all 150ms ease-in-out;
3439
3906
  }
3440
3907
 
3441
- .dropdown:hover .dropdown-content,
3442
- .dropdown:focus-within .dropdown-content,
3443
- .dropdown.dropdown-open .dropdown-content {
3444
- opacity: 1;
3445
- visibility: visible;
3446
- transform: translateY(0);
3908
+ .breadcrumbs-nowrap {
3909
+ flex-wrap: nowrap;
3910
+ overflow-x: auto;
3911
+ overscroll-behavior-inline: contain;
3912
+ scrollbar-width: thin;
3447
3913
  }
3448
3914
 
3449
- /* Dropdown Positions */
3450
- .dropdown-end .dropdown-content {
3451
- right: 0;
3915
+ .breadcrumbs-nowrap > * {
3916
+ flex: 0 0 auto;
3452
3917
  }
3453
3918
 
3454
- .dropdown-top .dropdown-content {
3455
- bottom: 100%;
3456
- top: auto;
3457
- margin-bottom: 0.25rem;
3919
+ .breadcrumb-item-disabled {
3920
+ opacity: 1;
3921
+ pointer-events: none;
3922
+ cursor: not-allowed;
3458
3923
  }
3459
3924
 
3460
- .dropdown-left .dropdown-content {
3461
- right: 100%;
3462
- left: auto;
3463
- top: 0;
3464
- margin-right: 0.25rem;
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;
3930
+ border-radius: var(--radius-xs);
3465
3931
  }
3466
3932
 
3467
- .dropdown-right .dropdown-content {
3468
- left: 100%;
3469
- right: auto;
3470
- top: 0;
3471
- margin-left: 0.25rem;
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
+ }
3941
+ }
3942
+ }
3943
+
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);
3949
+ }
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;
3959
+ }
3960
+ .tab:hover:not(:disabled, [aria-disabled="true"]) {
3961
+ color: var(--color-on-surface); background-color: var(--color-surface-container);
3472
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
+ }
4045
+
4046
+ /**
4047
+ * Pagination Component Styles
4048
+ * DuskMoonUI - Material Design 3 inspired pagination
4049
+ */
3473
4050
 
3474
- /* Pagination */
4051
+ @layer components {
3475
4052
  .pagination {
3476
4053
  display: flex;
3477
4054
  align-items: center;
@@ -3513,6 +4090,7 @@
3513
4090
 
3514
4091
  .pagination-item-active,
3515
4092
  .pagination-item-active-primary,
4093
+ .pagination-item[aria-current="page"],
3516
4094
  .pagination li > a.active,
3517
4095
  .pagination li > button.active,
3518
4096
  .pagination li > a[aria-current="page"],
@@ -3534,6 +4112,14 @@
3534
4112
  border-color: var(--color-tertiary);
3535
4113
  }
3536
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
+
3537
4123
  .pagination-item:focus-visible,
3538
4124
  .pagination-prev:focus-visible,
3539
4125
  .pagination-next:focus-visible,
@@ -3548,13 +4134,12 @@
3548
4134
  .pagination-prev:disabled,
3549
4135
  .pagination-next:disabled,
3550
4136
  .pagination li > a:disabled,
3551
- .pagination li > button:disabled {
4137
+ .pagination li > button:disabled,
4138
+ .pagination a[aria-disabled="true"] {
3552
4139
  opacity: 0.5;
3553
4140
  cursor: not-allowed;
3554
- pointer-events: none;
3555
4141
  }
3556
4142
 
3557
- /* Pagination Ellipsis */
3558
4143
  .pagination-ellipsis {
3559
4144
  display: inline-flex;
3560
4145
  align-items: center;
@@ -3568,7 +4153,6 @@
3568
4153
  content: '…';
3569
4154
  }
3570
4155
 
3571
- /* Pagination Info */
3572
4156
  .pagination-info {
3573
4157
  display: flex;
3574
4158
  flex-direction: row;
@@ -3581,7 +4165,6 @@
3581
4165
  color: var(--color-on-surface-variant);
3582
4166
  }
3583
4167
 
3584
- /* Pagination Input */
3585
4168
  .pagination-input {
3586
4169
  display: inline-flex;
3587
4170
  align-items: center;
@@ -3603,10 +4186,13 @@
3603
4186
 
3604
4187
  .pagination-input input:focus {
3605
4188
  outline: none;
4189
+ }
4190
+
4191
+ .pagination-input input:focus-visible {
3606
4192
  border-color: var(--color-primary);
4193
+ box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
3607
4194
  }
3608
4195
 
3609
- /* Pagination Variants */
3610
4196
  .pagination-outlined .pagination-item,
3611
4197
  .pagination-outlined .pagination-prev,
3612
4198
  .pagination-outlined .pagination-next {
@@ -3620,7 +4206,6 @@
3620
4206
  border-color: var(--color-primary-container);
3621
4207
  }
3622
4208
 
3623
- /* Pagination Sizes */
3624
4209
  .pagination-sm .pagination-item,
3625
4210
  .pagination-sm .pagination-prev,
3626
4211
  .pagination-sm .pagination-next {
@@ -3639,7 +4224,6 @@
3639
4224
  font-size: 1rem;
3640
4225
  }
3641
4226
 
3642
- /* Pagination Compact */
3643
4227
  .pagination-compact {
3644
4228
  gap: 0;
3645
4229
  }
@@ -3652,26 +4236,22 @@
3652
4236
 
3653
4237
  .pagination-compact .pagination-item:first-child,
3654
4238
  .pagination-compact .pagination-prev {
3655
- 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);
3656
4241
  }
3657
4242
 
3658
4243
  .pagination-compact .pagination-item:last-child,
3659
4244
  .pagination-compact .pagination-next {
3660
- 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);
3661
4247
  }
3662
4248
 
3663
- /* Pagination Responsive */
3664
4249
  .pagination-responsive {
3665
4250
  flex-wrap: wrap;
3666
4251
  justify-content: center;
3667
4252
  }
3668
4253
 
3669
- /* Reduce Motion */
3670
4254
  @media (prefers-reduced-motion: reduce) {
3671
- .menu li > a,
3672
- .menu li > button,
3673
- .menu-item,
3674
- .menu[popover],
3675
4255
  .pagination-item,
3676
4256
  .pagination-prev,
3677
4257
  .pagination-next {
@@ -3680,6 +4260,132 @@
3680
4260
  }
3681
4261
  }
3682
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
+
3683
4389
 
3684
4390
  /* Modal Component */
3685
4391
  /**
@@ -3714,7 +4420,7 @@
3714
4420
  position: relative;
3715
4421
  z-index: 1;
3716
4422
  max-width: 32rem;
3717
- max-height: calc(100vh - 5rem);
4423
+ max-height: calc(100dvh - 5rem);
3718
4424
  padding: 1.5rem;
3719
4425
  background-color: var(--color-surface);
3720
4426
  color: var(--color-on-surface);
@@ -3749,6 +4455,7 @@
3749
4455
  .modal-action,
3750
4456
  .modal-footer {
3751
4457
  display: flex;
4458
+ flex-wrap: wrap;
3752
4459
  justify-content: flex-end;
3753
4460
  gap: 0.5rem;
3754
4461
  margin-top: 1.5rem;
@@ -3922,7 +4629,7 @@
3922
4629
 
3923
4630
  .modal-responsive .modal-box {
3924
4631
  max-width: 100%;
3925
- max-height: 90vh;
4632
+ max-height: 90dvh;
3926
4633
  margin: 0;
3927
4634
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
3928
4635
  }
@@ -3937,7 +4644,7 @@
3937
4644
 
3938
4645
  .drawer-modal .modal-box {
3939
4646
  max-width: 20rem;
3940
- max-height: 100vh;
4647
+ max-height: 100dvh;
3941
4648
  height: 100%;
3942
4649
  margin: 0;
3943
4650
  border-radius: 0;
@@ -12994,9 +13701,10 @@
12994
13701
  margin: auto;
12995
13702
  padding: 0;
12996
13703
  border: none;
12997
- width: 100%;
13704
+ width: calc(100% - 2rem);
12998
13705
  max-width: 28rem;
12999
- max-height: calc(100vh - 4rem);
13706
+ max-height: calc(100dvh - 2rem);
13707
+ box-sizing: border-box;
13000
13708
  background-color: var(--color-surface);
13001
13709
  color: var(--color-on-surface);
13002
13710
  border-radius: var(--radius-2xl);
@@ -13013,7 +13721,7 @@
13013
13721
  .dialog-box {
13014
13722
  display: flex;
13015
13723
  flex-direction: column;
13016
- max-height: calc(100vh - 4rem);
13724
+ max-height: calc(100dvh - 2rem);
13017
13725
  overflow: hidden;
13018
13726
  }
13019
13727
 
@@ -13072,6 +13780,7 @@
13072
13780
  /* Dialog Footer */
13073
13781
  .dialog-footer {
13074
13782
  display: flex;
13783
+ flex-wrap: wrap;
13075
13784
  justify-content: flex-end;
13076
13785
  gap: 0.5rem;
13077
13786
  padding: 1rem 1.5rem 1.5rem;
@@ -13111,6 +13820,30 @@
13111
13820
  margin: 0;
13112
13821
  }
13113
13822
 
13823
+ @media (max-width: 640px) {
13824
+ dialog.dialog {
13825
+ width: calc(100% - 1rem);
13826
+ max-height: calc(100dvh - 1rem);
13827
+ border-radius: var(--radius-lg);
13828
+ }
13829
+
13830
+ .dialog-box {
13831
+ max-height: calc(100dvh - 1rem);
13832
+ }
13833
+
13834
+ .dialog-header {
13835
+ padding: 1rem 1rem 0;
13836
+ }
13837
+
13838
+ .dialog-body {
13839
+ padding: 1rem;
13840
+ }
13841
+
13842
+ .dialog-footer {
13843
+ padding: 0.75rem 1rem 1rem;
13844
+ }
13845
+ }
13846
+
13114
13847
  dialog.dialog.dialog-fullscreen .dialog-box {
13115
13848
  max-height: 100%;
13116
13849
  }
@@ -16751,15 +17484,15 @@
16751
17484
  /* Base Bottom Navigation */
16752
17485
  .bottom-nav {
16753
17486
  position: fixed;
16754
- bottom: 0;
16755
- left: 0;
16756
- right: 0;
17487
+ bottom: 0; /* Physical fallback retained for legacy test and browser coverage. */
17488
+ inset-block-end: 0;
17489
+ inset-inline: 0;
16757
17490
  z-index: 1000;
16758
17491
  display: flex;
16759
17492
  align-items: stretch;
16760
17493
  justify-content: space-around;
16761
17494
  min-height: 5rem;
16762
- padding-bottom: env(safe-area-inset-bottom, 0);
17495
+ padding-block-end: env(safe-area-inset-bottom, 0);
16763
17496
  background-color: var(--color-surface);
16764
17497
  box-shadow: 0 -1px 3px 0 color-mix(in srgb, var(--color-shadow) 10%, transparent);
16765
17498
  }
@@ -16781,6 +17514,8 @@
16781
17514
  transition: color 150ms ease-in-out;
16782
17515
  text-decoration: none;
16783
17516
  gap: 0.25rem;
17517
+ position: relative;
17518
+ border-radius: var(--radius-md);
16784
17519
  }
16785
17520
 
16786
17521
  .bottom-nav-item:hover {
@@ -16788,7 +17523,8 @@
16788
17523
  }
16789
17524
 
16790
17525
  .bottom-nav-item:focus-visible {
16791
- outline: none;
17526
+ outline: 2px solid currentColor;
17527
+ outline-offset: -2px;
16792
17528
  }
16793
17529
 
16794
17530
  .bottom-nav-item:focus-visible .bottom-nav-indicator {
@@ -16797,10 +17533,18 @@
16797
17533
  }
16798
17534
 
16799
17535
  /* Active State */
16800
- .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"] {
16801
17540
  color: var(--color-on-surface);
16802
17541
  }
16803
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
+
16804
17548
  /* Icon Container with Indicator */
16805
17549
  .bottom-nav-indicator {
16806
17550
  position: relative;
@@ -16817,7 +17561,10 @@
16817
17561
  background-color: var(--color-surface-container);
16818
17562
  }
16819
17563
 
16820
- .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 {
16821
17568
  background-color: var(--color-secondary-container);
16822
17569
  }
16823
17570
 
@@ -16840,7 +17587,10 @@
16840
17587
  max-width: 100%;
16841
17588
  }
16842
17589
 
16843
- .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 {
16844
17594
  font-weight: 600;
16845
17595
  }
16846
17596
 
@@ -16848,7 +17598,7 @@
16848
17598
  .bottom-nav-badge {
16849
17599
  position: absolute;
16850
17600
  top: 0;
16851
- right: 0.5rem;
17601
+ inset-inline-end: 0.5rem;
16852
17602
  min-width: 1rem;
16853
17603
  height: 1rem;
16854
17604
  padding: 0 0.25rem;
@@ -16867,7 +17617,7 @@
16867
17617
  height: 0.5rem;
16868
17618
  padding: 0;
16869
17619
  top: 0.125rem;
16870
- right: 0.75rem;
17620
+ inset-inline-end: 0.75rem;
16871
17621
  }
16872
17622
 
16873
17623
  /* Variants */
@@ -16885,23 +17635,96 @@
16885
17635
  }
16886
17636
 
16887
17637
  /* Color Variants */
16888
- .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 {
16889
17641
  background-color: var(--color-primary-container);
16890
17642
  }
16891
17643
 
16892
- .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"] {
16893
17695
  color: var(--color-on-primary-container);
16894
17696
  }
16895
17697
 
16896
17698
  /* Hide Labels */
16897
17699
  .bottom-nav-icons-only .bottom-nav-label {
16898
- 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;
16899
17709
  }
16900
17710
 
16901
17711
  .bottom-nav-icons-only .bottom-nav-item {
16902
17712
  padding: 1rem 0.25rem;
16903
17713
  }
16904
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
+
16905
17728
  /* Show Labels Only on Active */
16906
17729
  .bottom-nav-labels-active .bottom-nav-label {
16907
17730
  opacity: 0;
@@ -16910,7 +17733,7 @@
16910
17733
  transition: opacity 150ms ease-in-out, max-height 150ms ease-in-out;
16911
17734
  }
16912
17735
 
16913
- .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 {
16914
17737
  opacity: 1;
16915
17738
  max-height: 1rem;
16916
17739
  }
@@ -16921,7 +17744,16 @@
16921
17744
  transition: flex 200ms ease-in-out;
16922
17745
  }
16923
17746
 
16924
- .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"]) {
16925
17757
  flex: 1 1 6rem;
16926
17758
  }
16927
17759
 
@@ -16931,7 +17763,7 @@
16931
17763
  transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
16932
17764
  }
16933
17765
 
16934
- .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 {
16935
17767
  opacity: 1;
16936
17768
  transform: translateY(0);
16937
17769
  }
@@ -16939,9 +17771,9 @@
16939
17771
  /* Rail Style (Side Navigation) */
16940
17772
  .nav-rail {
16941
17773
  position: fixed;
16942
- left: 0;
16943
- top: 0;
16944
- bottom: 0;
17774
+ left: 0; /* Physical fallback; logical inset below controls RTL placement. */
17775
+ inset-inline-start: 0;
17776
+ inset-block: 0;
16945
17777
  z-index: 1000;
16946
17778
  display: flex;
16947
17779
  flex-direction: column;
@@ -16949,7 +17781,11 @@
16949
17781
  width: 5rem;
16950
17782
  padding: 1rem 0;
16951
17783
  background-color: var(--color-surface);
16952
- 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;
16953
17789
  }
16954
17790
 
16955
17791
  .nav-rail .bottom-nav-item {
@@ -16967,13 +17803,13 @@
16967
17803
  @media (min-width: 768px) {
16968
17804
  .bottom-nav-responsive {
16969
17805
  position: relative;
16970
- bottom: auto;
17806
+ inset-block-end: auto;
16971
17807
  justify-content: flex-start;
16972
17808
  gap: 0.5rem;
16973
17809
  min-height: 3rem;
16974
17810
  padding: 0 1rem;
16975
17811
  box-shadow: none;
16976
- border-bottom: 1px solid var(--color-outline-variant);
17812
+ border-block-end: 1px solid var(--color-outline-variant);
16977
17813
  }
16978
17814
 
16979
17815
  .bottom-nav-responsive .bottom-nav-item {
@@ -16989,8 +17825,8 @@
16989
17825
  background-color: transparent !important;
16990
17826
  }
16991
17827
 
16992
- .bottom-nav-responsive .bottom-nav-item.active {
16993
- 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);
16994
17830
  }
16995
17831
  }
16996
17832
 
@@ -17894,8 +18730,12 @@
17894
18730
  }
17895
18731
 
17896
18732
  .nested-menu li.disabled > a,
17897
- .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"] {
17898
18736
  color: var(--color-on-surface-variant);
18737
+ opacity: 0.5;
18738
+ cursor: not-allowed;
17899
18739
  }
17900
18740
 
17901
18741
  /* ============================================
@@ -17945,7 +18785,7 @@
17945
18785
  .nested-menu summary::after {
17946
18786
  content: "";
17947
18787
  display: inline-block;
17948
- margin-left: auto;
18788
+ margin-inline-start: auto;
17949
18789
  width: 0.375rem;
17950
18790
  height: 0.375rem;
17951
18791
  border-right: 1.5px solid currentColor;
@@ -17960,11 +18800,22 @@
17960
18800
  transform: rotate(45deg);
17961
18801
  }
17962
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
+
17963
18813
  /* Nested <ul> inside details — auto-indentation */
17964
18814
  .nested-menu details > ul {
17965
18815
  list-style: none;
17966
18816
  margin: 0;
17967
- padding: 0.125rem 0 0.125rem 1rem;
18817
+ padding-block: 0.125rem;
18818
+ padding-inline: 1rem 0;
17968
18819
  display: flex;
17969
18820
  flex-direction: column;
17970
18821
  gap: 0.125rem;
@@ -18054,7 +18905,7 @@
18054
18905
  }
18055
18906
 
18056
18907
  .nested-menu-compact details > ul {
18057
- padding: 0 0 0 0.75rem;
18908
+ padding-inline: 0.75rem 0;
18058
18909
  }
18059
18910
 
18060
18911
  /* ============================================
@@ -18097,7 +18948,7 @@
18097
18948
  .stepper-step-connector {
18098
18949
  position: absolute;
18099
18950
  top: 1.25rem;
18100
- left: calc(50% + 1.25rem);
18951
+ inset-inline-start: calc(50% + 1.25rem);
18101
18952
  width: calc(100% - 2.5rem);
18102
18953
  height: 2px;
18103
18954
  background-color: var(--color-outline-variant);
@@ -18122,10 +18973,13 @@
18122
18973
  background: none;
18123
18974
  border: none;
18124
18975
  padding: 0;
18976
+ color: inherit;
18125
18977
  }
18126
18978
 
18127
18979
  .stepper-step-button:focus-visible {
18128
- outline: none;
18980
+ outline: 2px solid currentColor;
18981
+ outline-offset: 0.25rem;
18982
+ border-radius: var(--radius-sm);
18129
18983
  }
18130
18984
 
18131
18985
  .stepper-step-button:focus-visible .stepper-step-icon {
@@ -18149,7 +19003,8 @@
18149
19003
  transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out, color 150ms ease-in-out;
18150
19004
  }
18151
19005
 
18152
- .stepper-step-active .stepper-step-icon {
19006
+ .stepper-step-active .stepper-step-icon,
19007
+ .stepper-step[aria-current="step"] .stepper-step-icon {
18153
19008
  background-color: var(--color-primary);
18154
19009
  border-color: var(--color-primary);
18155
19010
  color: var(--color-primary-content);
@@ -18180,7 +19035,8 @@
18180
19035
  text-align: center;
18181
19036
  }
18182
19037
 
18183
- .stepper-step-active .stepper-step-label {
19038
+ .stepper-step-active .stepper-step-label,
19039
+ .stepper-step[aria-current="step"] .stepper-step-label {
18184
19040
  color: var(--color-primary);
18185
19041
  }
18186
19042
 
@@ -18191,14 +19047,14 @@
18191
19047
  .stepper-step-description {
18192
19048
  font-size: 0.75rem;
18193
19049
  color: var(--color-on-surface-variant);
18194
- margin-top: 0.125rem;
19050
+ margin-block-start: 0.125rem;
18195
19051
  text-align: center;
18196
19052
  }
18197
19053
 
18198
19054
  /* Step Content (for vertical stepper) */
18199
19055
  .stepper-step-content {
18200
- margin-top: 1.5rem;
18201
- padding: 0 1rem;
19056
+ margin-block-start: 1.5rem;
19057
+ padding-inline: 1rem;
18202
19058
  width: 100%;
18203
19059
  }
18204
19060
 
@@ -18208,7 +19064,7 @@
18208
19064
  display: block;
18209
19065
  font-size: 0.6875rem;
18210
19066
  color: var(--color-on-surface-variant);
18211
- margin-top: 0.125rem;
19067
+ margin-block-start: 0.125rem;
18212
19068
  }
18213
19069
 
18214
19070
  /* Vertical Stepper */
@@ -18225,7 +19081,7 @@
18225
19081
 
18226
19082
  .stepper-vertical .stepper-step-connector {
18227
19083
  top: 2.5rem;
18228
- left: 1.25rem;
19084
+ inset-inline-start: 1.25rem;
18229
19085
  width: 2px;
18230
19086
  height: calc(100% - 2.5rem);
18231
19087
  transform: translateX(-50%);
@@ -18238,18 +19094,19 @@
18238
19094
 
18239
19095
  .stepper-vertical .stepper-step-label,
18240
19096
  .stepper-vertical .stepper-step-description {
18241
- text-align: left;
18242
- margin-left: 1rem;
19097
+ text-align: start;
19098
+ margin-inline-start: 1rem;
18243
19099
  }
18244
19100
 
18245
19101
  .stepper-vertical .stepper-step-content {
18246
- margin-top: 0;
18247
- margin-left: 3.5rem;
18248
- padding: 1rem 0 1.5rem;
19102
+ margin-block-start: 0;
19103
+ margin-inline-start: 3.5rem;
19104
+ padding-block: 1rem 1.5rem;
18249
19105
  }
18250
19106
 
18251
19107
  /* Color Variants */
18252
19108
  .stepper-secondary .stepper-step-active .stepper-step-icon,
19109
+ .stepper-secondary .stepper-step[aria-current="step"] .stepper-step-icon,
18253
19110
  .stepper-secondary .stepper-step-completed .stepper-step-icon {
18254
19111
  background-color: var(--color-secondary);
18255
19112
  border-color: var(--color-secondary);
@@ -18260,11 +19117,13 @@
18260
19117
  background-color: var(--color-secondary);
18261
19118
  }
18262
19119
 
18263
- .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 {
18264
19122
  color: var(--color-secondary);
18265
19123
  }
18266
19124
 
18267
19125
  .stepper-tertiary .stepper-step-active .stepper-step-icon,
19126
+ .stepper-tertiary .stepper-step[aria-current="step"] .stepper-step-icon,
18268
19127
  .stepper-tertiary .stepper-step-completed .stepper-step-icon {
18269
19128
  background-color: var(--color-tertiary);
18270
19129
  border-color: var(--color-tertiary);
@@ -18275,7 +19134,8 @@
18275
19134
  background-color: var(--color-tertiary);
18276
19135
  }
18277
19136
 
18278
- .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 {
18279
19139
  color: var(--color-tertiary);
18280
19140
  }
18281
19141
 
@@ -18288,7 +19148,7 @@
18288
19148
 
18289
19149
  .stepper-sm .stepper-step-connector {
18290
19150
  top: 1rem;
18291
- left: calc(50% + 1rem);
19151
+ inset-inline-start: calc(50% + 1rem);
18292
19152
  width: calc(100% - 2rem);
18293
19153
  }
18294
19154
 
@@ -18309,14 +19169,14 @@
18309
19169
 
18310
19170
  .stepper-lg .stepper-step-connector {
18311
19171
  top: 1.5rem;
18312
- left: calc(50% + 1.5rem);
19172
+ inset-inline-start: calc(50% + 1.5rem);
18313
19173
  width: calc(100% - 3rem);
18314
19174
  }
18315
19175
 
18316
19176
  /* Alternative Label Positioning */
18317
19177
  .stepper-alt-labels .stepper-step-connector {
18318
19178
  top: 1.25rem;
18319
- left: calc(50% + 2rem);
19179
+ inset-inline-start: calc(50% + 2rem);
18320
19180
  width: calc(100% - 4rem);
18321
19181
  }
18322
19182
 
@@ -18371,6 +19231,11 @@
18371
19231
  opacity: 0.7;
18372
19232
  }
18373
19233
 
19234
+ .stepper-step-button:disabled {
19235
+ cursor: not-allowed;
19236
+ opacity: 0.7;
19237
+ }
19238
+
18374
19239
  /* Icon Stepper */
18375
19240
  .stepper-icons .stepper-step-icon {
18376
19241
  font-size: 1.25rem;