swehrley 1.0.0 → 1.1.0

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.
package/swehrley.css CHANGED
@@ -61,6 +61,7 @@
61
61
  src: url("./fonts/IBMPlexMono-Bold.woff2") format("woff2");
62
62
  }
63
63
 
64
+ @layer swehrley {
64
65
  :root {
65
66
  /* ========================================================================
66
67
  THE ONLY PUBLIC VARIABLE
@@ -152,6 +153,10 @@ body {
152
153
  margin: 0;
153
154
  }
154
155
 
156
+ [hidden] {
157
+ display: none !important;
158
+ }
159
+
155
160
  html {
156
161
  -webkit-text-size-adjust: 100%;
157
162
  -moz-tab-size: 4;
@@ -251,7 +256,7 @@ progress {
251
256
 
252
257
  pre::selection,
253
258
  pre *::selection,
254
- body > header > code::selection,
259
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main)) > header > code::selection,
255
260
  article > header::selection,
256
261
  article > header *::selection,
257
262
  dialog > header::selection,
@@ -321,28 +326,57 @@ body {
321
326
  gap: 1.5rem;
322
327
  }
323
328
 
329
+ /* Framework-Agnostic SPA Root Mounts & Routed Page Wrappers */
330
+ body:not(:has(> main)):has(main) {
331
+ max-width: none;
332
+ padding: 0;
333
+ gap: 0;
334
+ align-items: center;
335
+ }
336
+
337
+ body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog, script, style, template, noscript)):not(:has(> main)):has(main) {
338
+ display: contents;
339
+ }
340
+
341
+ body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog, script, style, template, noscript)):has(> main) {
342
+ width: 100%;
343
+ max-width: 820px;
344
+ min-height: 100svh;
345
+ padding: 1.75rem 1.5rem 3rem;
346
+ display: flex;
347
+ flex-direction: column;
348
+ gap: 1.5rem;
349
+ }
350
+
324
351
  main {
325
352
  display: flex;
326
353
  flex-direction: column;
327
354
  gap: 1.85rem;
328
355
  }
329
356
 
357
+ main > :where(:not(header, footer, section, article, aside, nav, menu, search, form, fieldset, table, figure, blockquote, pre, details, ul, ol, dl, p, h1, h2, h3, h4, h5, h6, hr, dialog, div, script, style, template, noscript)):has(> section, > article, > form, > table, > nav, > menu, > search) {
358
+ display: contents;
359
+ }
360
+
330
361
  section {
331
362
  display: flex;
332
363
  flex-direction: column;
333
364
  gap: 1.05rem;
334
365
  }
335
366
 
336
- section > h2:first-child {
367
+ section > h2:first-child,
368
+ section > hgroup:first-child:has(> h2) {
337
369
  border-left: 4px solid var(--_accent);
338
370
  padding-left: 0.65rem;
339
371
  }
340
372
 
341
- section > h2:not(:first-child) {
373
+ section > h2:not(:first-child),
374
+ section > hgroup:not(:first-child):has(> h2) {
342
375
  padding-top: 0.6rem;
343
376
  }
344
377
 
345
- section > :is(h3, h4):not(:first-child) {
378
+ section > :is(h3, h4):not(:first-child),
379
+ section > hgroup:not(:first-child):has(> h3, > h4) {
346
380
  padding-top: 0.55rem;
347
381
  }
348
382
 
@@ -409,6 +443,36 @@ h6 {
409
443
  color: var(--_ink-muted);
410
444
  }
411
445
 
446
+ /* Engraved Spec-Sheet Nameplate (<hgroup>) */
447
+ hgroup {
448
+ display: flex;
449
+ flex-direction: column;
450
+ gap: 0.25rem;
451
+ }
452
+
453
+ hgroup > :is(p, small):has(~ :is(h1, h2, h3, h4, h5, h6)) {
454
+ font-size: 0.74rem;
455
+ font-weight: 700;
456
+ text-transform: uppercase;
457
+ letter-spacing: 0.08em;
458
+ line-height: 1.25;
459
+ color: var(--_ink-muted);
460
+ }
461
+
462
+ hgroup > :is(h1, h2, h3, h4, h5, h6) ~ p {
463
+ font-size: 0.9rem;
464
+ font-weight: 400;
465
+ line-height: 1.45;
466
+ color: var(--_ink-muted);
467
+ }
468
+
469
+ hgroup > :is(h1, h2, h3, h4, h5, h6) ~ small {
470
+ font-size: 0.82rem;
471
+ font-weight: 400;
472
+ line-height: 1.4;
473
+ color: var(--_ink-muted);
474
+ }
475
+
412
476
  a {
413
477
  color: var(--_link);
414
478
  font-weight: 500;
@@ -419,14 +483,14 @@ a {
419
483
  cursor: pointer;
420
484
  }
421
485
 
422
- :is(p, li, dd, td, blockquote) a:visited {
486
+ :is(p, li, dd, td, blockquote) a:not(nav a, menu a):visited {
423
487
  color: var(--_link-visited);
424
488
  }
425
489
 
426
490
  a:hover,
427
491
  a:focus-visible,
428
- :is(p, li, dd, td, blockquote) a:visited:hover,
429
- :is(p, li, dd, td, blockquote) a:visited:focus-visible {
492
+ :is(p, li, dd, td, blockquote) a:not(nav a, menu a):visited:hover,
493
+ :is(p, li, dd, td, blockquote) a:not(nav a, menu a):visited:focus-visible {
430
494
  color: var(--_accent-hover);
431
495
  background-color: var(--_pressed);
432
496
  text-decoration-color: var(--_accent-hover);
@@ -671,7 +735,7 @@ code {
671
735
  padding: 0.03em 0.32em;
672
736
  }
673
737
 
674
- body > header > code {
738
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main)) > header > code {
675
739
  background-color: var(--_crt);
676
740
  color: var(--_crt-ink);
677
741
  border: 1px solid;
@@ -697,6 +761,7 @@ pre {
697
761
  border: 1px solid;
698
762
  border-color: var(--_border-dark) var(--_border-light) var(--_border-light) var(--_border-inset);
699
763
  box-shadow: inset 2px 2px 0 var(--_crt-shadow), inset -1px -1px 0 var(--_crt-lip), 0 1px 0 #ffffff;
764
+ max-width: 100%;
700
765
  overflow-x: auto;
701
766
  display: block;
702
767
  line-height: 1.6;
@@ -876,6 +941,12 @@ tfoot td:last-child {
876
941
  border-right: none;
877
942
  }
878
943
 
944
+ td button {
945
+ height: 1.7rem;
946
+ padding: 0 0.58rem;
947
+ font-size: 0.78rem;
948
+ }
949
+
879
950
  /* ==========================================================================
880
951
  Forms & Machined Controls
881
952
  ========================================================================== */
@@ -889,7 +960,7 @@ textarea {
889
960
  color: var(--_ink);
890
961
  }
891
962
 
892
- input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]),
963
+ input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="file"], [type="range"], [type="color"])),
893
964
  select,
894
965
  textarea {
895
966
  display: block;
@@ -902,6 +973,15 @@ textarea {
902
973
  box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 var(--_plate);
903
974
  }
904
975
 
976
+ input[type="search"] {
977
+ -webkit-appearance: none;
978
+ appearance: none;
979
+ }
980
+
981
+ input[type="search"]::-webkit-search-cancel-button {
982
+ cursor: pointer;
983
+ }
984
+
905
985
  select:not([multiple]):not([size]) {
906
986
  -webkit-appearance: none;
907
987
  appearance: none;
@@ -961,6 +1041,10 @@ select optgroup {
961
1041
  select:not([multiple]):not([size]) {
962
1042
  display: flex;
963
1043
  align-items: center;
1044
+ white-space: nowrap;
1045
+ overflow: clip;
1046
+ overflow-clip-margin: content-box;
1047
+ text-overflow: ellipsis;
964
1048
  }
965
1049
 
966
1050
  select:not([multiple]):not([size])::picker-icon {
@@ -1047,20 +1131,20 @@ select optgroup {
1047
1131
  opacity: 1;
1048
1132
  }
1049
1133
 
1050
- input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]):read-only,
1134
+ input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="file"], [type="range"], [type="color"])):read-only,
1051
1135
  textarea:read-only {
1052
1136
  background-color: var(--_readonly-bg);
1053
1137
  color: var(--_ink);
1054
1138
  }
1055
1139
 
1056
- input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]):user-invalid,
1140
+ input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="file"], [type="range"], [type="color"])):user-invalid,
1057
1141
  select:user-invalid,
1058
1142
  textarea:user-invalid {
1059
1143
  border-color: var(--_status-danger);
1060
1144
  box-shadow: inset 3px 0 0 var(--_status-danger), inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1061
1145
  }
1062
1146
 
1063
- input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="file"]):not([type="range"]):not([type="color"]):focus-visible,
1147
+ input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="file"], [type="range"], [type="color"])):focus-visible,
1064
1148
  select:focus-visible,
1065
1149
  textarea:focus-visible,
1066
1150
  input[type="file"]:focus-visible,
@@ -1405,7 +1489,7 @@ input[type="file"]:disabled::file-selector-button {
1405
1489
  transform: none;
1406
1490
  }
1407
1491
 
1408
- input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="range"]):not([type="color"]):disabled,
1492
+ input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="range"], [type="color"])):disabled,
1409
1493
  select:disabled,
1410
1494
  textarea:disabled {
1411
1495
  background-color: var(--_disabled-bg);
@@ -1752,7 +1836,16 @@ dialog {
1752
1836
  overflow-y: auto;
1753
1837
  }
1754
1838
 
1839
+ dialog:has(table, figure, fieldset + fieldset, article + article) {
1840
+ max-width: min(94vw, 860px);
1841
+ max-height: min(90svh, 820px);
1842
+ }
1843
+
1755
1844
  dialog > header {
1845
+ position: sticky;
1846
+ top: 0;
1847
+ z-index: 2;
1848
+ flex-shrink: 0;
1756
1849
  display: flex;
1757
1850
  flex-direction: row;
1758
1851
  justify-content: space-between;
@@ -1806,15 +1899,20 @@ dialog > header > button:active {
1806
1899
  transform: translate(1px, 1px);
1807
1900
  }
1808
1901
 
1809
- dialog > :not(header):not(footer) {
1902
+ dialog > :not(header):not(footer):not(table):not(pre):not(details):not(fieldset):not(blockquote):not(aside):not(figure):not(nav):not(progress):not(meter):not(hr) {
1810
1903
  padding-inline: 1.15rem;
1811
1904
  }
1812
1905
 
1906
+ dialog > :is(table, pre, details, fieldset, blockquote, aside, figure, nav, progress, meter, hr) {
1907
+ width: calc(100% - 2.3rem);
1908
+ align-self: center;
1909
+ }
1910
+
1813
1911
  dialog > :is(ul, ol) {
1814
1912
  padding-inline: 2.4rem 1.15rem;
1815
1913
  }
1816
1914
 
1817
- dialog > header + :not(footer) {
1915
+ dialog > header + :not(footer):not(table):not(pre):not(details):not(fieldset):not(blockquote):not(aside):not(figure):not(nav):not(progress):not(meter):not(hr) {
1818
1916
  padding-top: 0.4rem;
1819
1917
  }
1820
1918
 
@@ -1822,7 +1920,7 @@ dialog > :first-child:not(header) {
1822
1920
  padding-top: 1.15rem;
1823
1921
  }
1824
1922
 
1825
- dialog > :not(header):not(footer):has(+ footer) {
1923
+ dialog > :not(header):not(footer):not(table):not(pre):not(details):not(fieldset):not(blockquote):not(aside):not(figure):not(nav):not(progress):not(meter):not(hr):has(+ footer) {
1826
1924
  padding-bottom: 0.4rem;
1827
1925
  }
1828
1926
 
@@ -1830,7 +1928,37 @@ dialog > :last-child:not(footer) {
1830
1928
  padding-bottom: 1.15rem;
1831
1929
  }
1832
1930
 
1931
+ /* Fixed Non-Scrolling Header & Footer when Dialog Body is a Single Block (<form>, <section>, <p>, etc.) */
1932
+ dialog:has(> header:first-child):has(> footer:last-child):has(> :is(form, section, div, article, p, dl, ul, ol):nth-child(2):nth-last-child(2)),
1933
+ dialog:has(> header:first-child):not(:has(> footer)):has(> :is(form, section, div, article, p, dl, ul, ol):nth-child(2):last-child) {
1934
+ overflow: hidden;
1935
+ gap: 0;
1936
+ }
1937
+
1938
+ dialog:has(> header:first-child):has(> footer:last-child) > :is(form, section, div, article, p, dl, ul, ol):nth-child(2):nth-last-child(2),
1939
+ dialog:has(> header:first-child):not(:has(> footer)) > :is(form, section, div, article, p, dl, ul, ol):nth-child(2):last-child {
1940
+ flex: 1 1 auto;
1941
+ min-height: 0;
1942
+ overflow-x: hidden;
1943
+ overflow-y: auto;
1944
+ padding: 1.1rem 1.15rem;
1945
+ }
1946
+
1947
+ dialog:has(> header:first-child):has(> footer:last-child) > :is(ul, ol):nth-child(2):nth-last-child(2),
1948
+ dialog:has(> header:first-child):not(:has(> footer)) > :is(ul, ol):nth-child(2):last-child {
1949
+ padding-left: 2.4rem;
1950
+ }
1951
+
1952
+ dialog:has(> header:first-child):has(> footer:last-child) > :is(form, section, div, article):nth-child(2):nth-last-child(2) > *,
1953
+ dialog:has(> header:first-child):not(:has(> footer)) > :is(form, section, div, article):nth-child(2):last-child > * {
1954
+ flex-shrink: 0;
1955
+ }
1956
+
1833
1957
  dialog > footer {
1958
+ position: sticky;
1959
+ bottom: 0;
1960
+ z-index: 2;
1961
+ flex-shrink: 0;
1834
1962
  display: flex;
1835
1963
  flex-direction: row;
1836
1964
  flex-wrap: wrap;
@@ -1868,11 +1996,17 @@ footer {
1868
1996
  background-color: transparent;
1869
1997
  }
1870
1998
 
1871
- body > header > p,
1872
- main > header > p {
1999
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > p,
2000
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > hgroup > p {
1873
2001
  max-width: 56ch;
1874
2002
  }
1875
2003
 
2004
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > hgroup {
2005
+ align-items: center;
2006
+ text-align: center;
2007
+ gap: 0.35rem;
2008
+ }
2009
+
1876
2010
  main > header {
1877
2011
  padding: 0.5rem 0.5rem 0.25rem;
1878
2012
  }
@@ -1891,8 +2025,9 @@ fieldset > footer {
1891
2025
  text-align: right;
1892
2026
  }
1893
2027
 
1894
- /* Recessed Transport-Deck Navigation Bar with Physical Keycap Links */
1895
- nav {
2028
+ /* Recessed Transport-Deck Navigation Bar & Semantic Tablist */
2029
+ nav,
2030
+ [role="tablist"] {
1896
2031
  display: flex;
1897
2032
  flex-direction: row;
1898
2033
  flex-wrap: wrap;
@@ -1905,7 +2040,17 @@ nav {
1905
2040
  box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1906
2041
  }
1907
2042
 
1908
- nav a {
2043
+ main nav,
2044
+ [role="tablist"] {
2045
+ justify-content: flex-start;
2046
+ }
2047
+
2048
+ main > header > nav {
2049
+ justify-content: center;
2050
+ }
2051
+
2052
+ nav a,
2053
+ [role="tablist"] [role="tab"] {
1909
2054
  padding: 0.36rem 0.78rem;
1910
2055
  font-size: 0.85rem;
1911
2056
  font-weight: 500;
@@ -1917,7 +2062,8 @@ nav a {
1917
2062
  box-shadow: inset -1px -1px 0 var(--_border-bevel);
1918
2063
  }
1919
2064
 
1920
- nav a:hover {
2065
+ nav a:hover,
2066
+ [role="tablist"] [role="tab"]:hover {
1921
2067
  background-color: var(--_hover);
1922
2068
  color: var(--_ink-strong);
1923
2069
  text-decoration: none;
@@ -1925,191 +2071,1269 @@ nav a:hover {
1925
2071
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1926
2072
  }
1927
2073
 
1928
- nav a:focus-visible {
2074
+ nav a:focus-visible,
2075
+ [role="tablist"] [role="tab"]:focus-visible {
1929
2076
  background-color: var(--_hover);
1930
2077
  outline: 1px dotted var(--_accent);
1931
2078
  outline-offset: -3px;
1932
2079
  }
1933
2080
 
1934
- nav a[aria-current="page"],
1935
- nav a[aria-current="true"] {
1936
- background-color: var(--_pressed);
1937
- color: var(--_ink-strong);
2081
+ nav a[aria-current]:not([aria-current="false"]),
2082
+ nav a[aria-selected="true"],
2083
+ [role="tablist"] [role="tab"][aria-selected="true"] {
2084
+ background-color: var(--_accent);
2085
+ color: var(--_on-accent);
1938
2086
  font-weight: 600;
1939
- border-color: var(--_border-inset) #ffffff #ffffff var(--_border-inset);
1940
- border-top: 2px solid var(--_accent);
1941
- box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
2087
+ border-color: var(--_accent-active);
2088
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active);
2089
+ }
2090
+
2091
+ nav a[aria-current]:not([aria-current="false"]):hover,
2092
+ nav a[aria-selected="true"]:hover,
2093
+ [role="tablist"] [role="tab"][aria-selected="true"]:hover {
2094
+ background-color: var(--_accent-hover);
2095
+ color: var(--_on-accent);
2096
+ border-color: var(--_accent-active);
2097
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active);
2098
+ }
2099
+
2100
+ nav a[aria-current]:not([aria-current="false"]):focus-visible,
2101
+ nav a[aria-selected="true"]:focus-visible,
2102
+ [role="tablist"] [role="tab"][aria-selected="true"]:focus-visible {
2103
+ background-color: var(--_accent-hover);
2104
+ color: var(--_on-accent);
2105
+ outline: 1px dotted var(--_on-accent);
2106
+ outline-offset: -3px;
1942
2107
  }
1943
2108
 
1944
- nav a:active {
2109
+ nav a:active,
2110
+ [role="tablist"] [role="tab"]:active {
1945
2111
  background-color: var(--_pressed);
1946
2112
  border-color: var(--_border-dark) #ffffff #ffffff var(--_border-inset);
1947
2113
  box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
1948
2114
  transform: translate(1px, 1px);
1949
2115
  }
1950
2116
 
1951
- /* Machined Panel (<article>) & Framed OS Window (<article> with <header>) */
1952
- article {
1953
- background-color: var(--_panel);
1954
- border: 1px solid;
1955
- border-color: var(--_border-mid) var(--_border-dark) var(--_border-deep) var(--_border-mid);
1956
- box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1957
- padding: 1.2rem 1.25rem;
1958
- gap: 0.85rem;
1959
- }
1960
-
1961
- article:not(:has(> header)) > :is(h2, h3, h4):first-child {
1962
- border-bottom: 1px solid var(--_border-mid);
1963
- box-shadow: 0 1px 0 #ffffff;
1964
- padding-bottom: 0.42rem;
2117
+ nav a[aria-current]:not([aria-current="false"]):active,
2118
+ nav a[aria-selected="true"]:active,
2119
+ [role="tablist"] [role="tab"][aria-selected="true"]:active {
2120
+ background-color: var(--_accent-active);
2121
+ color: var(--_on-accent);
2122
+ border-color: var(--_accent-active);
2123
+ box-shadow: inset 1px 1px 0 var(--_accent-active), inset -1px -1px 0 var(--_accent-bevel-hi);
2124
+ transform: none;
1965
2125
  }
1966
2126
 
1967
- article:has(> header) {
1968
- background-color: var(--_panel);
1969
- padding: 3px;
1970
- gap: 0.85rem;
2127
+ nav a[aria-current]:not([aria-current="false"]) code,
2128
+ nav a[aria-selected="true"] code,
2129
+ [role="tablist"] [role="tab"][aria-selected="true"] code {
2130
+ background-color: color-mix(in srgb, var(--_on-accent) 16%, transparent);
2131
+ color: var(--_on-accent);
2132
+ border-color: color-mix(in srgb, var(--_on-accent) 38%, transparent);
1971
2133
  }
1972
2134
 
1973
- article:has(> header):not(:has(> footer)) {
1974
- padding-bottom: 1.15rem;
2135
+ nav a[aria-current]:not([aria-current="false"]) small,
2136
+ nav a[aria-selected="true"] small,
2137
+ [role="tablist"] [role="tab"][aria-selected="true"] small {
2138
+ color: var(--_on-accent-muted);
1975
2139
  }
1976
2140
 
1977
- article > header {
2141
+ /* Tactile Command Toolbar (<menu>) — Raised Strip on Canvas, Tray-Less Inside Chrome */
2142
+ menu {
2143
+ list-style: none;
1978
2144
  display: flex;
1979
2145
  flex-direction: row;
1980
- justify-content: space-between;
2146
+ flex-wrap: wrap;
1981
2147
  align-items: center;
1982
- text-align: left;
1983
- padding: 0.55rem 1.15rem;
1984
- background-color: var(--_accent);
1985
- color: var(--_on-accent);
1986
- border-bottom: 1px solid var(--_accent-active);
1987
- gap: 0.75rem;
2148
+ gap: 0.38rem;
2149
+ padding: 0.35rem 0.45rem;
2150
+ background-color: var(--_panel-light);
2151
+ border: 1px solid;
2152
+ border-color: var(--_border-mid) var(--_border-seam) var(--_border-seam) var(--_border-mid);
2153
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
1988
2154
  }
1989
2155
 
1990
- article > header h1,
1991
- article > header h2,
1992
- article > header h3,
1993
- article > header h4,
1994
- article > header h5,
1995
- article > header h6 {
1996
- font-size: 0.9rem;
1997
- font-weight: 600;
1998
- letter-spacing: 0.02em;
1999
- color: var(--_on-accent);
2156
+ menu > li {
2157
+ list-style: none;
2158
+ display: flex;
2159
+ align-items: center;
2160
+ gap: 0.38rem;
2161
+ flex: 0 0 auto;
2000
2162
  }
2001
2163
 
2002
- article > header a,
2003
- dialog > header a {
2004
- color: var(--_on-accent);
2005
- text-decoration-color: color-mix(in srgb, var(--_on-accent) 55%, transparent);
2164
+ :is(header, footer, aside, article, dialog, fieldset, details) menu {
2165
+ background: transparent;
2166
+ border: none;
2167
+ box-shadow: none;
2168
+ padding: 0;
2006
2169
  }
2007
2170
 
2008
- article > header a:hover,
2009
- article > header a:focus-visible,
2010
- dialog > header a:hover,
2011
- dialog > header a:focus-visible {
2012
- color: var(--_on-accent);
2013
- background-color: transparent;
2014
- text-decoration-color: var(--_on-accent);
2171
+ menu > button,
2172
+ menu > li > button {
2173
+ height: 1.95rem;
2174
+ padding: 0 0.72rem;
2175
+ font-size: 0.82rem;
2176
+ background-color: var(--_panel);
2177
+ border-color: var(--_border-seam) var(--_border-dark) var(--_border-deep) var(--_border-seam);
2178
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2015
2179
  }
2016
2180
 
2017
- article > header small {
2018
- font-size: 0.78rem;
2019
- color: var(--_on-accent-muted);
2181
+ menu > button[type="submit"],
2182
+ menu > li > button[type="submit"] {
2183
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active);
2020
2184
  }
2021
2185
 
2022
- article:has(> header) > :not(header):not(footer) {
2023
- padding-inline: 1.15rem;
2186
+ menu > input[type="button"],
2187
+ menu > li > input[type="button"],
2188
+ menu > input[type="reset"],
2189
+ menu > li > input[type="reset"] {
2190
+ height: 1.95rem;
2191
+ padding: 0 0.72rem;
2192
+ font-size: 0.82rem;
2193
+ background-color: var(--_panel);
2194
+ border-color: var(--_border-seam) var(--_border-dark) var(--_border-deep) var(--_border-seam);
2195
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2024
2196
  }
2025
2197
 
2026
- article:has(> header) > :is(ul, ol) {
2027
- padding-inline: 2.4rem 1.15rem;
2198
+ menu > input[type="submit"],
2199
+ menu > li > input[type="submit"] {
2200
+ height: 1.95rem;
2201
+ padding: 0 0.72rem;
2202
+ font-size: 0.82rem;
2203
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active);
2028
2204
  }
2029
2205
 
2030
- /* Recessed Window Status Bar */
2031
- article > footer {
2032
- display: flex;
2033
- flex-direction: row;
2034
- justify-content: space-between;
2206
+ menu > a:not(:has(> button, > img)),
2207
+ menu > li > a:not(:has(> button, > img)) {
2208
+ display: inline-flex;
2035
2209
  align-items: center;
2036
- text-align: left;
2037
- padding: 0.45rem 1.15rem;
2038
- background-color: var(--_plate);
2039
- border-top: 1px solid var(--_border-mid);
2040
- box-shadow: inset 0 1px 0 #ffffff;
2041
- font-size: 0.8rem;
2042
- color: var(--_ink-muted);
2043
- }
2044
-
2045
- /* Media Figures (Standalone & Stacked 2-Tier with <figcaption>) */
2046
- figure {
2047
- padding: 1.15rem 1.25rem;
2210
+ justify-content: center;
2211
+ gap: 0.35rem;
2212
+ height: 1.95rem;
2213
+ padding: 0 0.72rem;
2214
+ font-size: 0.82rem;
2215
+ font-weight: 600;
2216
+ text-decoration: none;
2048
2217
  background-color: var(--_panel);
2218
+ color: var(--_ink-strong);
2049
2219
  border: 1px solid;
2050
- border-color: var(--_border-mid) var(--_border-dark) var(--_border-deep) var(--_border-mid);
2220
+ border-color: var(--_border-seam) var(--_border-dark) var(--_border-deep) var(--_border-seam);
2051
2221
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2052
- text-align: center;
2053
- align-items: center;
2054
- gap: 0.9rem;
2055
- }
2056
-
2057
- figure:has(> figcaption) {
2058
- display: grid;
2059
- grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
2060
- justify-items: center;
2061
- padding: 1.15rem 0 0;
2062
- gap: 1.15rem 0;
2063
2222
  }
2064
2223
 
2065
- figure:has(> figcaption:first-child) {
2066
- padding: 0 0 1.15rem;
2224
+ menu > a:not(:has(> button, > img)):hover,
2225
+ menu > li > a:not(:has(> button, > img)):hover {
2226
+ background-color: var(--_hover);
2227
+ color: var(--_ink-strong);
2228
+ text-decoration: none;
2067
2229
  }
2068
2230
 
2069
- figure:has(> figcaption) > :not(figcaption) {
2070
- grid-column: 2;
2231
+ menu > a:not(:has(> button, > img)):focus-visible,
2232
+ menu > li > a:not(:has(> button, > img)):focus-visible {
2233
+ background-color: var(--_hover);
2234
+ color: var(--_ink-strong);
2235
+ outline: 1px dotted var(--_accent);
2236
+ outline-offset: -4px;
2071
2237
  }
2072
2238
 
2073
- img,
2074
- video,
2075
- canvas {
2076
- height: auto;
2239
+ menu > a:not(:has(> button, > img)):active,
2240
+ menu > li > a:not(:has(> button, > img)):active,
2241
+ menu > a:not(:has(> button, > img))[aria-current]:not([aria-current="false"]),
2242
+ menu > li > a:not(:has(> button, > img))[aria-current]:not([aria-current="false"]) {
2243
+ background-color: var(--_pressed);
2244
+ color: var(--_ink-strong);
2245
+ border-color: var(--_border-dark) var(--_border-seam) var(--_border-seam) var(--_border-dark);
2246
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
2077
2247
  }
2078
2248
 
2079
- figure > :is(img, video, canvas) {
2080
- border: 1px solid var(--_border-mid);
2249
+ menu > a:not(:has(> button, > img)):active,
2250
+ menu > li > a:not(:has(> button, > img)):active {
2251
+ transform: translate(1px, 1px);
2081
2252
  }
2082
2253
 
2083
- figure:has(> figcaption) > figcaption {
2084
- grid-column: 1 / -1;
2085
- width: 100%;
2086
- padding: 0.62rem 1.25rem;
2087
- background-color: var(--_plate);
2254
+ menu > output,
2255
+ menu > li > output,
2256
+ :where(search, search > form) > output {
2257
+ flex: 0 1 auto;
2258
+ max-width: 100%;
2259
+ display: inline-flex;
2260
+ align-items: center;
2261
+ background: transparent;
2088
2262
  border: none;
2089
- border-top: 1px solid var(--_border-seam);
2090
- box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2263
+ box-shadow: none;
2264
+ color: var(--_ink-muted);
2091
2265
  font-size: 0.82rem;
2092
- color: var(--_ink);
2266
+ font-weight: 600;
2267
+ font-variant-numeric: tabular-nums;
2268
+ line-height: 1.35;
2269
+ padding: 0 0.3rem;
2093
2270
  }
2094
2271
 
2095
- figure:has(> figcaption:first-child) > figcaption:first-child {
2096
- border-top: none;
2097
- border-bottom: 1px solid var(--_border-seam);
2272
+ :is(article, dialog, aside, fieldset, details, footer) menu > output:first-child,
2273
+ :is(article, dialog, aside, fieldset, details, footer) menu > li:first-child > output:only-child {
2274
+ padding-left: 0;
2098
2275
  }
2099
2276
 
2100
- figcaption strong {
2101
- color: var(--_ink-strong);
2277
+ :is(article, dialog, aside, fieldset, details, footer) menu > output:last-child,
2278
+ :is(article, dialog, aside, fieldset, details, footer) menu > li:last-child > output:only-child {
2279
+ padding-right: 0;
2102
2280
  }
2103
2281
 
2104
- /* ==========================================================================
2105
- Responsive Mobile Density
2106
- ========================================================================== */
2107
- @media (max-width: 600px) {
2108
- body {
2282
+ :is(article, dialog) > header :is(menu, search) output {
2283
+ color: var(--_on-accent-muted);
2284
+ }
2285
+
2286
+ menu > hr,
2287
+ menu > li > hr {
2288
+ width: 2px;
2289
+ height: 1.3rem;
2290
+ flex: 0 0 2px;
2291
+ align-self: center;
2292
+ background: linear-gradient(to right, var(--_border-mid) 0, var(--_border-mid) 1px, #ffffff 1px, #ffffff 2px);
2293
+ }
2294
+
2295
+ /* Auto Split-Alignment for Leading/Trailing Toolbar Status Readouts */
2296
+ :where(menu) > :where(output, small, li:has(> :only-child:is(output, small))):first-child:not(:only-child):not(:has(+ hr)):not(:has(+ li > hr:only-child)) {
2297
+ margin-right: auto;
2298
+ }
2299
+
2300
+ :where(menu) > :where(output, small, li:has(> :only-child:is(output, small))):last-child:not(:only-child):not(hr + *):not(li:has(> hr:only-child) + *) {
2301
+ margin-left: auto;
2302
+ }
2303
+
2304
+ :is(header, footer, aside) menu > :is(output, small, li) {
2305
+ margin-inline: 0;
2306
+ }
2307
+
2308
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > menu {
2309
+ justify-content: center;
2310
+ gap: 0.55rem;
2311
+ }
2312
+
2313
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > menu > button,
2314
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > menu > li > button,
2315
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > menu > a:not(:has(> button, > img)),
2316
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > menu > li > a:not(:has(> button, > img)) {
2317
+ height: 2.2rem;
2318
+ padding: 0 1.05rem;
2319
+ font-size: 0.88rem;
2320
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow), 1px 1px 0 var(--_shadow-btn);
2321
+ }
2322
+
2323
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > menu > button[type="submit"],
2324
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > menu > li > button[type="submit"] {
2325
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active), 1px 1px 0 var(--_shadow-submit);
2326
+ }
2327
+
2328
+ :is(article, dialog) > header > menu {
2329
+ justify-content: flex-end;
2330
+ gap: 0.3rem;
2331
+ }
2332
+
2333
+ :is(article, dialog) > header > menu > button,
2334
+ :is(article, dialog) > header > menu > li > button,
2335
+ :is(article, dialog) > header > menu > a:not(:has(> button, > img)),
2336
+ :is(article, dialog) > header > menu > li > a:not(:has(> button, > img)) {
2337
+ height: 1.75rem;
2338
+ padding: 0 0.58rem;
2339
+ font-size: 0.78rem;
2340
+ color: var(--_ink-strong);
2341
+ border-color: var(--_accent-active);
2342
+ }
2343
+
2344
+ :is(article, dialog, form, fieldset) > footer > menu {
2345
+ justify-content: flex-end;
2346
+ gap: 0.45rem;
2347
+ }
2348
+
2349
+ :is(article, dialog, form, fieldset) > footer > menu > button,
2350
+ :is(article, dialog, form, fieldset) > footer > menu > li > button,
2351
+ :is(article, dialog, form, fieldset) > footer > menu > a:not(:has(> button, > img)),
2352
+ :is(article, dialog, form, fieldset) > footer > menu > li > a:not(:has(> button, > img)) {
2353
+ height: 1.8rem;
2354
+ padding: 0 0.68rem;
2355
+ font-size: 0.8rem;
2356
+ }
2357
+
2358
+ /* Vertical Command Menu (Explicit aria-orientation="vertical" or Automatic Inside Landmark <aside> Rails) */
2359
+ :is(menu[aria-orientation="vertical"], :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main)) > aside menu:not([aria-orientation="horizontal"])) {
2360
+ flex-direction: column;
2361
+ align-items: stretch;
2362
+ gap: 0.25rem;
2363
+
2364
+ & > li {
2365
+ width: 100%;
2366
+ }
2367
+
2368
+ & > button,
2369
+ & > li > button,
2370
+ & > input[type="button"],
2371
+ & > li > input[type="button"],
2372
+ & > input[type="reset"],
2373
+ & > li > input[type="reset"],
2374
+ & > input[type="submit"],
2375
+ & > li > input[type="submit"],
2376
+ & > a:not(:has(> button, > img)),
2377
+ & > li > a:not(:has(> button, > img)) {
2378
+ width: 100%;
2379
+ justify-content: space-between;
2380
+ text-align: left;
2381
+ }
2382
+
2383
+ & > :is(output, small, li) {
2384
+ margin-inline: 0;
2385
+ }
2386
+
2387
+ & > :is(output, small),
2388
+ & > li > :is(output, small) {
2389
+ padding: 0.15rem 0.25rem;
2390
+ }
2391
+
2392
+ & > hr,
2393
+ & > li > hr {
2394
+ width: 100%;
2395
+ height: 2px;
2396
+ flex: 0 0 auto;
2397
+ background: linear-gradient(to bottom, var(--_border-mid) 0, var(--_border-mid) 1px, #ffffff 1px, #ffffff 2px);
2398
+ }
2399
+ }
2400
+
2401
+ menu[aria-orientation="vertical"] {
2402
+ align-self: flex-start;
2403
+ min-width: 14rem;
2404
+ max-width: 100%;
2405
+ padding: 0.35rem;
2406
+ }
2407
+
2408
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main)) > aside menu:not([aria-orientation="horizontal"]) {
2409
+ width: 100%;
2410
+ align-self: stretch;
2411
+ min-width: 0;
2412
+ }
2413
+
2414
+ /* Active Current Item Inside Vertical / Sidebar Command Menus */
2415
+ :is(menu[aria-orientation="vertical"], :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main)) > aside menu) {
2416
+ & > button[aria-current]:not([aria-current="false"]),
2417
+ & > li > button[aria-current]:not([aria-current="false"]),
2418
+ & > a[aria-current]:not([aria-current="false"]),
2419
+ & > li > a[aria-current]:not([aria-current="false"]) {
2420
+ background-color: var(--_accent);
2421
+ color: var(--_on-accent);
2422
+ border-color: var(--_accent-active);
2423
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active);
2424
+ }
2425
+
2426
+ & > button[aria-current]:not([aria-current="false"]):hover,
2427
+ & > li > button[aria-current]:not([aria-current="false"]):hover,
2428
+ & > a[aria-current]:not([aria-current="false"]):hover,
2429
+ & > li > a[aria-current]:not([aria-current="false"]):hover {
2430
+ background-color: var(--_accent-hover);
2431
+ color: var(--_on-accent);
2432
+ }
2433
+
2434
+ & > button[aria-current]:not([aria-current="false"]):focus-visible,
2435
+ & > li > button[aria-current]:not([aria-current="false"]):focus-visible,
2436
+ & > a[aria-current]:not([aria-current="false"]):focus-visible,
2437
+ & > li > a[aria-current]:not([aria-current="false"]):focus-visible {
2438
+ background-color: var(--_accent-hover);
2439
+ color: var(--_on-accent);
2440
+ outline: 1px dotted var(--_on-accent);
2441
+ outline-offset: -4px;
2442
+ }
2443
+
2444
+ & :is(button, a)[aria-current]:not([aria-current="false"]) code {
2445
+ background-color: color-mix(in srgb, var(--_on-accent) 16%, transparent);
2446
+ color: var(--_on-accent);
2447
+ border-color: color-mix(in srgb, var(--_on-accent) 38%, transparent);
2448
+ }
2449
+
2450
+ & :is(button, a)[aria-current]:not([aria-current="false"]) small {
2451
+ color: var(--_on-accent-muted);
2452
+ }
2453
+ }
2454
+
2455
+ /* Recessed Query & Filter Console (<search>) */
2456
+ search {
2457
+ display: flex;
2458
+ flex-direction: row;
2459
+ flex-wrap: wrap;
2460
+ align-items: center;
2461
+ gap: 0.38rem;
2462
+ width: 100%;
2463
+ padding: 0.35rem;
2464
+ background-color: var(--_plate);
2465
+ border: 1px solid;
2466
+ border-color: var(--_border-mid) var(--_border-light) var(--_border-light) var(--_border-mid);
2467
+ box-shadow: inset 1px 1px 0 var(--_bevel-shadow), inset -1px -1px 0 #ffffff;
2468
+ }
2469
+
2470
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main), main) > header > search {
2471
+ max-width: 36rem;
2472
+ }
2473
+
2474
+ search > form {
2475
+ display: flex;
2476
+ flex-direction: row;
2477
+ flex-wrap: wrap;
2478
+ align-items: center;
2479
+ gap: 0.38rem;
2480
+ flex: 1 1 100%;
2481
+ min-width: 0;
2482
+ }
2483
+
2484
+ :is(footer, aside, article, dialog, fieldset, details) search,
2485
+ search:has(> fieldset, > form > fieldset) {
2486
+ background: transparent;
2487
+ border: none;
2488
+ box-shadow: none;
2489
+ padding: 0;
2490
+ }
2491
+
2492
+ :where(search, search > form) > input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="file"], [type="range"], [type="color"])),
2493
+ :where(search, search > form) > label > input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="file"], [type="range"], [type="color"])) {
2494
+ flex: 1 1 12rem;
2495
+ width: auto;
2496
+ min-width: 0;
2497
+ height: 2.2rem;
2498
+ padding: 0 0.65rem;
2499
+ font-size: 0.86rem;
2500
+ }
2501
+
2502
+ :where(search, search > form) > select,
2503
+ :where(search, search > form) > label > select {
2504
+ flex: 0 1 auto;
2505
+ width: auto;
2506
+ min-width: 0;
2507
+ max-width: 100%;
2508
+ height: 2.2rem;
2509
+ padding: 0 0.65rem;
2510
+ font-size: 0.86rem;
2511
+ }
2512
+
2513
+ :where(search, search > form) > select:not([multiple]):not([size]),
2514
+ :where(search, search > form) > label > select:not([multiple]):not([size]) {
2515
+ padding-right: 2.85rem;
2516
+ }
2517
+
2518
+ :where(search, search > form) > button {
2519
+ flex: 0 0 auto;
2520
+ height: 2.2rem;
2521
+ padding: 0 0.85rem;
2522
+ font-size: 0.84rem;
2523
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2524
+ }
2525
+
2526
+ :where(search, search > form) > button[type="submit"],
2527
+ :where(search, search > form) > input[type="submit"] {
2528
+ flex: 0 0 auto;
2529
+ height: 2.2rem;
2530
+ padding: 0 0.85rem;
2531
+ font-size: 0.84rem;
2532
+ box-shadow: inset 1px 1px 0 var(--_accent-bevel-hi), inset -1px -1px 0 var(--_accent-active);
2533
+ }
2534
+
2535
+ :where(search, search > form) > input[type="reset"],
2536
+ :where(search, search > form) > input[type="button"] {
2537
+ flex: 0 0 auto;
2538
+ height: 2.2rem;
2539
+ padding: 0 0.85rem;
2540
+ font-size: 0.84rem;
2541
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2542
+ }
2543
+
2544
+ :where(search, search > form) > label {
2545
+ flex: 0 0 auto;
2546
+ padding-top: 0;
2547
+ font-size: 0.8rem;
2548
+ font-weight: 600;
2549
+ color: var(--_ink-muted);
2550
+ white-space: nowrap;
2551
+ }
2552
+
2553
+ :where(search, search > form) > label:first-child {
2554
+ padding-left: 0.25rem;
2555
+ }
2556
+
2557
+ :is(footer, aside, article, dialog, fieldset, details) search > :where(label:first-child, form > label:first-child) {
2558
+ padding-left: 0;
2559
+ }
2560
+
2561
+ :where(search, search > form) > label:has(> input[type="checkbox"], > input[type="radio"]) {
2562
+ flex: 0 0 auto;
2563
+ font-size: 0.84rem;
2564
+ font-weight: 500;
2565
+ color: var(--_ink);
2566
+ }
2567
+
2568
+ :where(search, search > form) > label:has(> input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])), > select) {
2569
+ display: inline-flex;
2570
+ align-items: center;
2571
+ gap: 0.45rem;
2572
+ flex: 1 1 14rem;
2573
+ min-width: 0;
2574
+ }
2575
+
2576
+ :where(search, search > form) > fieldset {
2577
+ flex: 1 0 100%;
2578
+ }
2579
+
2580
+ :is(article, dialog) > header > search {
2581
+ background: transparent;
2582
+ border: none;
2583
+ box-shadow: none;
2584
+ padding: 0;
2585
+ width: auto;
2586
+ flex: 0 1 auto;
2587
+ }
2588
+
2589
+ :is(article, dialog) > header > search > form {
2590
+ flex-wrap: nowrap;
2591
+ }
2592
+
2593
+ :is(article, dialog) > header > search input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])),
2594
+ :is(article, dialog) > header > search select,
2595
+ :is(article, dialog) > header > search button {
2596
+ height: 1.75rem;
2597
+ font-size: 0.78rem;
2598
+ }
2599
+
2600
+ aside search :where(label, input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])), select) {
2601
+ flex: 1 0 100%;
2602
+ width: 100%;
2603
+ min-width: 0;
2604
+ white-space: normal;
2605
+ }
2606
+
2607
+ aside search label:has(> input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])), > select) {
2608
+ flex-direction: column;
2609
+ align-items: stretch;
2610
+ }
2611
+
2612
+ /* Machined Panel (<article>) & Framed OS Window (<article> with <header>) */
2613
+ article {
2614
+ background-color: var(--_panel);
2615
+ border: 1px solid;
2616
+ border-color: var(--_border-mid) var(--_border-dark) var(--_border-deep) var(--_border-mid);
2617
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2618
+ padding: 1.2rem 1.25rem;
2619
+ gap: 0.85rem;
2620
+ min-width: 0;
2621
+ max-width: 100%;
2622
+ }
2623
+
2624
+ article:not(:has(> header)) > :is(h2, h3, h4):first-child,
2625
+ article:not(:has(> header)) > hgroup:first-child {
2626
+ border-bottom: 1px solid var(--_border-mid);
2627
+ box-shadow: 0 1px 0 #ffffff;
2628
+ padding-bottom: 0.42rem;
2629
+ }
2630
+
2631
+ article:not(:has(> header)) > output {
2632
+ font-size: 1.45rem;
2633
+ line-height: 1.2;
2634
+ padding: 0.28rem 0.6rem;
2635
+ align-self: flex-start;
2636
+ }
2637
+
2638
+ article:has(> header) {
2639
+ background-color: var(--_panel);
2640
+ padding: 3px;
2641
+ gap: 0.85rem;
2642
+ }
2643
+
2644
+ article:has(> header):not(:has(> footer)) {
2645
+ padding-bottom: 1.15rem;
2646
+ }
2647
+
2648
+ article > header {
2649
+ display: flex;
2650
+ flex-direction: row;
2651
+ justify-content: space-between;
2652
+ align-items: center;
2653
+ text-align: left;
2654
+ padding: 0.55rem 1.15rem;
2655
+ background-color: var(--_accent);
2656
+ color: var(--_on-accent);
2657
+ border-bottom: 1px solid var(--_accent-active);
2658
+ gap: 0.75rem;
2659
+ }
2660
+
2661
+ article > header h1,
2662
+ article > header h2,
2663
+ article > header h3,
2664
+ article > header h4,
2665
+ article > header h5,
2666
+ article > header h6 {
2667
+ font-size: 0.9rem;
2668
+ font-weight: 600;
2669
+ letter-spacing: 0.02em;
2670
+ color: var(--_on-accent);
2671
+ }
2672
+
2673
+ article > header a:not(menu a),
2674
+ dialog > header a:not(menu a) {
2675
+ color: var(--_on-accent);
2676
+ text-decoration-color: color-mix(in srgb, var(--_on-accent) 55%, transparent);
2677
+ }
2678
+
2679
+ article > header a:not(menu a):hover,
2680
+ article > header a:not(menu a):focus-visible,
2681
+ dialog > header a:not(menu a):hover,
2682
+ dialog > header a:not(menu a):focus-visible {
2683
+ color: var(--_on-accent);
2684
+ background-color: transparent;
2685
+ text-decoration-color: var(--_on-accent);
2686
+ }
2687
+
2688
+ article > header small {
2689
+ font-size: 0.78rem;
2690
+ color: var(--_on-accent-muted);
2691
+ text-align: right;
2692
+ flex-shrink: 0;
2693
+ }
2694
+
2695
+ :is(article, dialog) > header > hgroup {
2696
+ align-items: flex-start;
2697
+ text-align: left;
2698
+ gap: 0.1rem;
2699
+ }
2700
+
2701
+ :is(article, dialog) > header > hgroup > :is(p, small),
2702
+ :is(article, dialog) > header > hgroup > :is(p, small):has(~ :is(h1, h2, h3, h4, h5, h6)) {
2703
+ color: var(--_on-accent-muted);
2704
+ font-size: 0.76rem;
2705
+ line-height: 1.25;
2706
+ }
2707
+
2708
+ article:has(> header) > :not(header):not(footer):not(table):not(pre):not(details):not(fieldset):not(blockquote):not(aside):not(figure):not(nav):not(progress):not(meter):not(hr) {
2709
+ padding-inline: 1.15rem;
2710
+ }
2711
+
2712
+ article:has(> header) > :is(table, pre, details, fieldset, blockquote, aside, figure, nav, progress, meter, hr) {
2713
+ width: calc(100% - 2.3rem);
2714
+ align-self: center;
2715
+ }
2716
+
2717
+ article:has(> header) > :is(ul, ol) {
2718
+ padding-inline: 2.4rem 1.15rem;
2719
+ }
2720
+
2721
+ /* Recessed Window Status Bar */
2722
+ article > footer {
2723
+ display: flex;
2724
+ flex-direction: row;
2725
+ justify-content: space-between;
2726
+ align-items: center;
2727
+ text-align: left;
2728
+ padding: 0.45rem 1.15rem;
2729
+ background-color: var(--_plate);
2730
+ border-top: 1px solid var(--_border-mid);
2731
+ box-shadow: inset 0 1px 0 #ffffff;
2732
+ font-size: 0.8rem;
2733
+ color: var(--_ink-muted);
2734
+ }
2735
+
2736
+ /* Media Figures (Standalone & Stacked 2-Tier with <figcaption>) */
2737
+ figure {
2738
+ padding: 1.15rem 1.25rem;
2739
+ background-color: var(--_panel);
2740
+ border: 1px solid;
2741
+ border-color: var(--_border-mid) var(--_border-dark) var(--_border-deep) var(--_border-mid);
2742
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2743
+ text-align: center;
2744
+ align-items: center;
2745
+ gap: 0.9rem;
2746
+ }
2747
+
2748
+ figure:has(> figcaption) {
2749
+ display: grid;
2750
+ grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
2751
+ justify-items: center;
2752
+ padding: 1.15rem 0 0;
2753
+ gap: 1.15rem 0;
2754
+ }
2755
+
2756
+ figure:has(> figcaption:first-child) {
2757
+ padding: 0 0 1.15rem;
2758
+ }
2759
+
2760
+ figure:has(> figcaption) > :not(figcaption) {
2761
+ grid-column: 2;
2762
+ }
2763
+
2764
+ img,
2765
+ video,
2766
+ canvas {
2767
+ height: auto;
2768
+ }
2769
+
2770
+ figure > :is(img, video, canvas) {
2771
+ border: 1px solid var(--_border-mid);
2772
+ }
2773
+
2774
+ figure:has(> figcaption) > figcaption {
2775
+ grid-column: 1 / -1;
2776
+ width: 100%;
2777
+ padding: 0.62rem 1.25rem;
2778
+ background-color: var(--_plate);
2779
+ border: none;
2780
+ border-top: 1px solid var(--_border-seam);
2781
+ box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 var(--_bevel-shadow);
2782
+ font-size: 0.82rem;
2783
+ color: var(--_ink);
2784
+ }
2785
+
2786
+ figure:has(> figcaption:first-child) > figcaption:first-child {
2787
+ border-top: none;
2788
+ border-bottom: 1px solid var(--_border-seam);
2789
+ }
2790
+
2791
+ figcaption strong {
2792
+ color: var(--_ink-strong);
2793
+ }
2794
+
2795
+ /* ==========================================================================
2796
+ Auto-Detected Multi-Pane Shells (Workstation, 3-Pane IDE, Master-Detail,
2797
+ Right-Rail Docs, & Centered Focus Card)
2798
+ Unlocked automatically via pure semantic HTML5 landmark structure on <body>
2799
+ or any framework-agnostic SPA mount container owning > main.
2800
+ ========================================================================== */
2801
+
2802
+ /* 1. Workstation Dashboard Shell: <aside><nav|menu>...</aside> before <main> */
2803
+ html:has(:is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))) > aside ~ main):has(:is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))) > aside > :is(nav, menu)) {
2804
+ display: block;
2805
+ height: 100%;
2806
+ }
2807
+
2808
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)) {
2809
+ max-width: none;
2810
+ width: 100%;
2811
+ height: 100svh;
2812
+ min-height: 100svh;
2813
+ padding: 0;
2814
+ gap: 0;
2815
+ overflow: hidden;
2816
+ display: grid;
2817
+ grid-template-columns: 240px minmax(0, 1fr);
2818
+ grid-template-rows: auto minmax(0, 1fr) auto;
2819
+
2820
+ & > aside:has(~ main) {
2821
+ grid-column: 1;
2822
+ grid-row: 1 / -1;
2823
+ height: 100%;
2824
+ overflow-y: auto;
2825
+ padding: 1rem 0.85rem;
2826
+ gap: 0.9rem;
2827
+ border: none;
2828
+ border-right: 1px solid var(--_border-mid);
2829
+ box-shadow: inset -1px 0 0 #ffffff;
2830
+ background-color: var(--_plate);
2831
+ }
2832
+
2833
+ & > aside:has(~ main) > h1,
2834
+ & > aside:has(~ main) > h2 {
2835
+ font-size: 1.25rem;
2836
+ line-height: 1.2;
2837
+ padding-bottom: 0.55rem;
2838
+ border-bottom: 1px solid var(--_border-mid);
2839
+ box-shadow: 0 1px 0 #ffffff;
2840
+ }
2841
+
2842
+ & > aside:has(~ main) > hgroup:first-child {
2843
+ gap: 0.18rem;
2844
+ padding-bottom: 0.6rem;
2845
+ border-bottom: 1px solid var(--_border-mid);
2846
+ box-shadow: 0 1px 0 #ffffff;
2847
+ }
2848
+
2849
+ & > aside:has(~ main) > hgroup:first-child > :is(h1, h2) {
2850
+ font-size: 1.25rem;
2851
+ line-height: 1.2;
2852
+ }
2853
+
2854
+ & > aside:has(~ main) > hgroup:first-child > :is(p, small) {
2855
+ font-size: 0.8rem;
2856
+ line-height: 1.3;
2857
+ }
2858
+
2859
+ & > aside:has(~ main) nav {
2860
+ flex-direction: column;
2861
+ align-items: stretch;
2862
+ gap: 0.25rem;
2863
+ padding: 0.28rem;
2864
+ }
2865
+
2866
+ & > aside:has(~ main) nav a {
2867
+ display: flex;
2868
+ align-items: center;
2869
+ justify-content: space-between;
2870
+ gap: 0.5rem;
2871
+ padding: 0.42rem 0.65rem;
2872
+ }
2873
+
2874
+ & > aside:has(~ main) > footer {
2875
+ margin-top: auto;
2876
+ align-items: flex-start;
2877
+ text-align: left;
2878
+ padding: 0.7rem 0 0;
2879
+ gap: 0.4rem;
2880
+ border-top: 1px solid var(--_border-mid);
2881
+ box-shadow: inset 0 1px 0 #ffffff;
2882
+ font-size: 0.8rem;
2883
+ color: var(--_ink-muted);
2884
+ }
2885
+
2886
+ /* Compact Top Command Bar inside Workstation Shell */
2887
+ & > header {
2888
+ grid-column: 2;
2889
+ grid-row: 1;
2890
+ display: flex;
2891
+ flex-direction: row;
2892
+ flex-wrap: wrap;
2893
+ align-items: center;
2894
+ justify-content: space-between;
2895
+ text-align: left;
2896
+ padding: 0.65rem 1.35rem;
2897
+ gap: 0.65rem 1rem;
2898
+ background-color: var(--_panel);
2899
+ border-bottom: 1px solid var(--_border-mid);
2900
+ box-shadow: 0 1px 0 #ffffff;
2901
+ }
2902
+
2903
+ & > header :is(h1, h2, h3) {
2904
+ font-size: 1.1rem;
2905
+ line-height: 1.2;
2906
+ }
2907
+
2908
+ & > header > p {
2909
+ max-width: none;
2910
+ font-size: 0.85rem;
2911
+ color: var(--_ink-muted);
2912
+ }
2913
+
2914
+ & > header > hgroup {
2915
+ align-items: flex-start;
2916
+ text-align: left;
2917
+ gap: 0.1rem;
2918
+ }
2919
+
2920
+ & > header > hgroup > :is(p, small) {
2921
+ max-width: none;
2922
+ font-size: 0.8rem;
2923
+ }
2924
+
2925
+ & > header > code {
2926
+ padding: 0.28rem 0.75rem;
2927
+ font-size: 0.82rem;
2928
+ }
2929
+
2930
+ & > header > form {
2931
+ flex-wrap: nowrap;
2932
+ align-items: center;
2933
+ gap: 0.45rem;
2934
+ }
2935
+
2936
+ & > header > search {
2937
+ background: transparent;
2938
+ border: none;
2939
+ box-shadow: none;
2940
+ padding: 0;
2941
+ width: auto;
2942
+ max-width: 100%;
2943
+ flex: 0 1 auto;
2944
+ flex-wrap: nowrap;
2945
+ gap: 0.45rem;
2946
+ }
2947
+
2948
+ & > header > search > form {
2949
+ flex-wrap: nowrap;
2950
+ }
2951
+
2952
+ & > header > :is(form, search, search > form) > :is(input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])), select),
2953
+ & > header > search > form :is(input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])), select) {
2954
+ width: 210px;
2955
+ flex: 0 1 210px;
2956
+ height: 2.2rem;
2957
+ padding: 0 0.65rem;
2958
+ font-size: 0.85rem;
2959
+ }
2960
+
2961
+ & > header > :is(form, search) select:not([multiple]):not([size]) {
2962
+ padding-right: 2.85rem;
2963
+ }
2964
+
2965
+ & > header > menu {
2966
+ justify-content: flex-end;
2967
+ flex-wrap: nowrap;
2968
+ gap: 0.4rem;
2969
+ }
2970
+
2971
+ & > header > menu > button,
2972
+ & > header > menu > li > button,
2973
+ & > header > menu > a:not(:has(> button, > img)),
2974
+ & > header > menu > li > a:not(:has(> button, > img)) {
2975
+ height: 2.2rem;
2976
+ padding: 0 0.85rem;
2977
+ font-size: 0.85rem;
2978
+ }
2979
+
2980
+ /* Scrollable Main Workspace Canvas */
2981
+ & > main {
2982
+ grid-column: 2;
2983
+ grid-row: 2;
2984
+ min-height: 0;
2985
+ overflow-y: auto;
2986
+ padding: 1.15rem 1.35rem 2rem;
2987
+ gap: 1.25rem;
2988
+ }
2989
+
2990
+ & > main nav {
2991
+ justify-content: flex-start;
2992
+ }
2993
+
2994
+ /* Readable measure for standalone settings/preferences forms inside wide workstation shells */
2995
+ & > main section:has(> form):not(:has(> article, > table)) {
2996
+ max-width: 760px;
2997
+ }
2998
+
2999
+ /* Optional Bottom OS Status Bar */
3000
+ & > footer {
3001
+ grid-column: 2;
3002
+ grid-row: 3;
3003
+ flex-direction: row;
3004
+ justify-content: space-between;
3005
+ align-items: center;
3006
+ flex-wrap: wrap;
3007
+ text-align: left;
3008
+ padding: 0.45rem 1.35rem;
3009
+ gap: 0.5rem 1rem;
3010
+ background-color: var(--_plate);
3011
+ border-top: 1px solid var(--_border-mid);
3012
+ box-shadow: inset 0 1px 0 #ffffff;
3013
+ font-size: 0.8rem;
3014
+ color: var(--_ink-muted);
3015
+ }
3016
+
3017
+ /* 2. 3-Pane IDE / Inspector Shell: <aside><nav|menu></aside> + <main> + <aside> */
3018
+ &:has(> main ~ aside) {
3019
+ grid-template-columns: 240px minmax(0, 1fr) 310px;
3020
+ }
3021
+
3022
+ &:has(> main ~ aside) > header,
3023
+ &:has(> main ~ aside) > footer {
3024
+ grid-column: 2 / -1;
3025
+ }
3026
+
3027
+ & > main ~ aside {
3028
+ grid-column: 3;
3029
+ grid-row: 2;
3030
+ height: 100%;
3031
+ overflow-y: auto;
3032
+ padding: 1rem 0.95rem;
3033
+ gap: 0.9rem;
3034
+ border: none;
3035
+ border-left: 1px solid var(--_border-mid);
3036
+ box-shadow: inset 1px 0 0 #ffffff;
3037
+ background-color: var(--_panel-light);
3038
+ }
3039
+ }
3040
+
3041
+ /* 3. Auto-Fit Multi-Column Card & Window Grids */
3042
+ main section:has(> article + article) {
3043
+ display: grid;
3044
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
3045
+ align-items: stretch;
3046
+ gap: 1rem;
3047
+ }
3048
+
3049
+ main section:has(> article + article):has(> article > header) {
3050
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
3051
+ }
3052
+
3053
+ main section:has(> article + article) > :not(article) {
3054
+ grid-column: 1 / -1;
3055
+ }
3056
+
3057
+ main section > article {
3058
+ min-width: 0;
3059
+ }
3060
+
3061
+ main section > article > footer {
3062
+ margin-top: auto;
3063
+ }
3064
+
3065
+ /* 4. Two-Column Reading / Docs Shell with Right Rail (<main> + <aside>, no left sidebar) */
3066
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> main ~ aside):not(:has(> aside ~ main)) {
3067
+ max-width: 1160px;
3068
+ display: grid;
3069
+ grid-template-columns: minmax(0, 1fr) 280px;
3070
+ align-items: start;
3071
+ gap: 1.5rem 2rem;
3072
+
3073
+ & > header,
3074
+ & > footer {
3075
+ grid-column: 1 / -1;
3076
+ }
3077
+
3078
+ & > main {
3079
+ grid-column: 1;
3080
+ min-width: 0;
3081
+ }
3082
+
3083
+ & > main ~ aside {
3084
+ grid-column: 2;
3085
+ position: sticky;
3086
+ top: 1.5rem;
3087
+ max-height: calc(100svh - 3rem);
3088
+ overflow-y: auto;
3089
+ }
3090
+
3091
+ & > main ~ aside nav {
3092
+ flex-direction: column;
3093
+ align-items: stretch;
3094
+ gap: 0.22rem;
3095
+ }
3096
+
3097
+ & > main ~ aside nav a {
3098
+ display: flex;
3099
+ align-items: center;
3100
+ justify-content: space-between;
3101
+ padding: 0.35rem 0.6rem;
3102
+ }
3103
+ }
3104
+
3105
+ /* 5. Master-Detail Split Shell: <aside><nav|menu></aside> + <aside><nav|menu></aside> + <main> */
3106
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside + aside ~ main):has(> aside:first-of-type > :is(nav, menu)) {
3107
+ grid-template-columns: 210px 310px minmax(0, 1fr);
3108
+
3109
+ & > aside:nth-of-type(1) {
3110
+ grid-column: 1;
3111
+ grid-row: 1 / -1;
3112
+ }
3113
+
3114
+ & > aside:nth-of-type(2) {
3115
+ grid-column: 2;
3116
+ grid-row: 1 / -1;
3117
+ background-color: var(--_panel-light);
3118
+ padding: 0.9rem 0.75rem;
3119
+ }
3120
+
3121
+ & > aside:nth-of-type(2) nav a {
3122
+ flex-direction: column;
3123
+ align-items: flex-start;
3124
+ gap: 0.22rem;
3125
+ padding: 0.55rem 0.65rem;
3126
+ }
3127
+
3128
+ & > header,
3129
+ & > main,
3130
+ & > footer {
3131
+ grid-column: 3;
3132
+ }
3133
+ }
3134
+
3135
+ /* 6. Centered Focus Card Shell (Auth / Onboarding Gate) */
3136
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):not(:has(> header)):not(:has(> aside)):has(> main > :is(article, form):only-child, > main > :where(:not(header, footer, section, article, aside, nav, menu, search, form, fieldset, table, figure, blockquote, pre, details, ul, ol, dl, p, h1, h2, h3, h4, h5, h6, hr, dialog, div)) > :is(article, form):only-child) {
3137
+ max-width: 460px;
3138
+ justify-content: center;
3139
+ }
3140
+
3141
+ /* ==========================================================================
3142
+ Responsive Workstation & Mobile Density
3143
+ ========================================================================== */
3144
+ @media (max-width: 1120px) {
3145
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)) {
3146
+ &:has(> main ~ aside) {
3147
+ grid-template-columns: 220px minmax(0, 1fr);
3148
+ grid-template-rows: auto minmax(0, 1fr) auto auto;
3149
+ }
3150
+
3151
+ & > main ~ aside {
3152
+ grid-column: 2;
3153
+ grid-row: 3;
3154
+ height: auto;
3155
+ max-height: 36svh;
3156
+ border-left: none;
3157
+ border-top: 1px solid var(--_border-mid);
3158
+ box-shadow: inset 0 1px 0 #ffffff;
3159
+ }
3160
+
3161
+ &:has(> main ~ aside) > footer {
3162
+ grid-row: 4;
3163
+ }
3164
+ }
3165
+
3166
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside + aside ~ main):has(> aside:first-of-type > :is(nav, menu)) {
3167
+ grid-template-columns: 200px minmax(0, 1fr);
3168
+ grid-template-rows: auto auto minmax(0, 1fr) auto;
3169
+
3170
+ & > aside:nth-of-type(2) {
3171
+ grid-column: 2;
3172
+ grid-row: 2;
3173
+ height: auto;
3174
+ max-height: 28svh;
3175
+ border-right: none;
3176
+ border-bottom: 1px solid var(--_border-mid);
3177
+ box-shadow: 0 1px 0 #ffffff;
3178
+ }
3179
+
3180
+ & > header {
3181
+ grid-column: 2;
3182
+ grid-row: 1;
3183
+ }
3184
+
3185
+ & > main {
3186
+ grid-column: 2;
3187
+ grid-row: 3;
3188
+ }
3189
+
3190
+ & > footer {
3191
+ grid-column: 2;
3192
+ grid-row: 4;
3193
+ }
3194
+ }
3195
+ }
3196
+
3197
+ @media (max-width: 860px) {
3198
+ html:has(:is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))) > aside ~ main):has(:is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))) > aside > :is(nav, menu)) {
3199
+ height: auto;
3200
+ }
3201
+
3202
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)) {
3203
+ &,
3204
+ &:has(> main ~ aside) {
3205
+ height: auto;
3206
+ overflow: visible;
3207
+ grid-template-columns: minmax(0, 1fr);
3208
+ grid-template-rows: auto;
3209
+ }
3210
+
3211
+ & > aside:has(~ main) {
3212
+ grid-column: 1;
3213
+ grid-row: auto;
3214
+ min-width: 0;
3215
+ height: auto;
3216
+ max-height: none;
3217
+ overflow: visible;
3218
+ border-right: none;
3219
+ border-bottom: 1px solid var(--_border-mid);
3220
+ box-shadow: 0 1px 0 #ffffff;
3221
+ }
3222
+
3223
+ & > aside:has(~ main) nav,
3224
+ & > aside:has(~ main) menu:not([aria-orientation="vertical"]) {
3225
+ flex-direction: row;
3226
+ flex-wrap: wrap;
3227
+ align-items: center;
3228
+ }
3229
+
3230
+ & > aside:has(~ main) menu:not([aria-orientation="vertical"]) > :is(li, button, a, input[type="button"], input[type="reset"], input[type="submit"]),
3231
+ & > aside:has(~ main) menu:not([aria-orientation="vertical"]) > li > :is(button, a, input[type="button"], input[type="reset"], input[type="submit"]) {
3232
+ width: auto;
3233
+ }
3234
+
3235
+ & > aside:has(~ main) menu:not([aria-orientation="vertical"]) > hr,
3236
+ & > aside:has(~ main) menu:not([aria-orientation="vertical"]) > li > hr {
3237
+ width: 2px;
3238
+ height: 1.3rem;
3239
+ flex: 0 0 2px;
3240
+ background: linear-gradient(to right, var(--_border-mid) 0, var(--_border-mid) 1px, #ffffff 1px, #ffffff 2px);
3241
+ }
3242
+
3243
+ & > header,
3244
+ &:has(> main ~ aside) > header,
3245
+ & > main,
3246
+ & > main ~ aside,
3247
+ & > footer,
3248
+ &:has(> main ~ aside) > footer {
3249
+ grid-column: 1;
3250
+ grid-row: auto;
3251
+ min-width: 0;
3252
+ height: auto;
3253
+ max-height: none;
3254
+ overflow: visible;
3255
+ }
3256
+
3257
+ & > header > form,
3258
+ & > header > search,
3259
+ & > header > search > form,
3260
+ & > header > menu {
3261
+ flex-wrap: wrap;
3262
+ width: 100%;
3263
+ justify-content: flex-start;
3264
+ }
3265
+
3266
+ & > header > :is(form, search, search > form) > :is(input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])), select),
3267
+ & > header > search > form :is(input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"])), select) {
3268
+ width: 100%;
3269
+ flex: 1 1 100%;
3270
+ }
3271
+ }
3272
+
3273
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside + aside ~ main):has(> aside:first-of-type > :is(nav, menu)) {
3274
+ height: auto;
3275
+ overflow: visible;
3276
+ grid-template-columns: minmax(0, 1fr);
3277
+ grid-template-rows: auto;
3278
+
3279
+ & > aside:nth-of-type(1),
3280
+ & > aside:nth-of-type(2) {
3281
+ grid-column: 1;
3282
+ grid-row: auto;
3283
+ min-width: 0;
3284
+ height: auto;
3285
+ max-height: none;
3286
+ overflow: visible;
3287
+ border-right: none;
3288
+ border-bottom: 1px solid var(--_border-mid);
3289
+ box-shadow: 0 1px 0 #ffffff;
3290
+ }
3291
+
3292
+ & > aside:nth-of-type(2) :is(nav, menu) {
3293
+ flex-direction: column;
3294
+ align-items: stretch;
3295
+ }
3296
+
3297
+ & > aside:nth-of-type(2) menu > :is(li, button, a) {
3298
+ width: 100%;
3299
+ }
3300
+
3301
+ & > header,
3302
+ & > main,
3303
+ & > footer {
3304
+ grid-column: 1;
3305
+ grid-row: auto;
3306
+ min-width: 0;
3307
+ height: auto;
3308
+ max-height: none;
3309
+ overflow: visible;
3310
+ }
3311
+ }
3312
+
3313
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> main ~ aside):not(:has(> aside ~ main)) {
3314
+ grid-template-columns: minmax(0, 1fr);
3315
+
3316
+ & > main ~ aside {
3317
+ grid-column: 1;
3318
+ min-width: 0;
3319
+ position: static;
3320
+ max-height: none;
3321
+ overflow: visible;
3322
+ }
3323
+ }
3324
+ }
3325
+ @media (max-width: 600px) {
3326
+ body:has(> main),
3327
+ body:not(:has(main)),
3328
+ body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog, script, style, template, noscript)):has(> main) {
2109
3329
  padding: 1.15rem 0.9rem 2.25rem;
2110
3330
  gap: 1.25rem;
2111
3331
  }
2112
3332
 
3333
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)) > main {
3334
+ padding: 0.95rem 0.9rem 1.75rem;
3335
+ }
3336
+
2113
3337
  main {
2114
3338
  gap: 1.35rem;
2115
3339
  }
@@ -2119,7 +3343,42 @@ figcaption strong {
2119
3343
  padding: 0.25rem;
2120
3344
  }
2121
3345
 
2122
- nav a {
3346
+ menu {
3347
+ gap: 0.3rem;
3348
+ padding: 0.3rem 0.38rem;
3349
+ }
3350
+
3351
+ menu > :is(output, small, li) {
3352
+ margin-inline: 0;
3353
+ }
3354
+
3355
+ search {
3356
+ gap: 0.38rem;
3357
+ padding: 0.35rem 0.4rem;
3358
+ }
3359
+
3360
+ :where(search, search > form) > input:where(:not([type="checkbox"], [type="radio"], [type="submit"], [type="reset"], [type="button"], [type="file"], [type="range"], [type="color"])) {
3361
+ flex: 1 1 10rem;
3362
+ }
3363
+
3364
+ :where(search, search > form) > :is(select, label:not(:has(> input[type="checkbox"], > input[type="radio"]))) {
3365
+ flex: 1 0 100%;
3366
+ width: 100%;
3367
+ white-space: normal;
3368
+ }
3369
+
3370
+ hgroup {
3371
+ gap: 0.18rem;
3372
+ }
3373
+
3374
+ section > hgroup:first-child:has(> h2) {
3375
+ padding-left: 0.58rem;
3376
+ }
3377
+
3378
+ nav a,
3379
+ [role="tablist"] [role="tab"],
3380
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)) > aside:has(~ main) nav a,
3381
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> main ~ aside):not(:has(> aside ~ main)) > main ~ aside nav a {
2123
3382
  padding: 0.28rem 0.52rem;
2124
3383
  font-size: 0.8rem;
2125
3384
  }
@@ -2161,15 +3420,33 @@ figcaption strong {
2161
3420
  padding-inline: 1rem;
2162
3421
  }
2163
3422
 
2164
- dialog > :not(header):not(footer),
3423
+ dialog > :not(header):not(footer):not(table):not(pre):not(details):not(fieldset):not(blockquote):not(aside):not(figure):not(nav):not(progress):not(meter):not(hr),
2165
3424
  dialog > footer {
2166
3425
  padding-inline: 1rem;
2167
3426
  }
2168
3427
 
2169
- article:has(> header) > :not(header):not(footer) {
3428
+ dialog:has(> header:first-child):has(> footer:last-child) > :is(form, section, div, article, p, dl, ul, ol):nth-child(2):nth-last-child(2),
3429
+ dialog:has(> header:first-child):not(:has(> footer)) > :is(form, section, div, article, p, dl, ul, ol):nth-child(2):last-child {
3430
+ padding: 1rem;
3431
+ }
3432
+
3433
+ dialog:has(> header:first-child):has(> footer:last-child) > :is(ul, ol):nth-child(2):nth-last-child(2),
3434
+ dialog:has(> header:first-child):not(:has(> footer)) > :is(ul, ol):nth-child(2):last-child {
3435
+ padding-left: 2.15rem;
3436
+ }
3437
+
3438
+ dialog > :is(table, pre, details, fieldset, blockquote, aside, figure, nav, progress, meter, hr) {
3439
+ width: calc(100% - 2rem);
3440
+ }
3441
+
3442
+ article:has(> header) > :not(header):not(footer):not(table):not(pre):not(details):not(fieldset):not(blockquote):not(aside):not(figure):not(nav):not(progress):not(meter):not(hr) {
2170
3443
  padding-inline: 1rem;
2171
3444
  }
2172
3445
 
3446
+ article:has(> header) > :is(table, pre, details, fieldset, blockquote, aside, figure, nav, progress, meter, hr) {
3447
+ width: calc(100% - 2rem);
3448
+ }
3449
+
2173
3450
  article:has(> header) > :is(ul, ol) {
2174
3451
  padding-inline: 2.15rem 1rem;
2175
3452
  }
@@ -2187,9 +3464,24 @@ figcaption strong {
2187
3464
  }
2188
3465
 
2189
3466
  table {
3467
+ display: block;
3468
+ overflow-x: auto;
3469
+ max-width: 100%;
3470
+ -webkit-overflow-scrolling: touch;
2190
3471
  font-size: 0.82rem;
2191
3472
  }
2192
3473
 
3474
+ table:has(> caption) {
3475
+ border-top: 1px solid var(--_accent);
3476
+ }
3477
+
3478
+ table > caption {
3479
+ display: block;
3480
+ position: sticky;
3481
+ left: 0;
3482
+ border: none;
3483
+ }
3484
+
2193
3485
  th,
2194
3486
  td {
2195
3487
  overflow-wrap: break-word;
@@ -2220,10 +3512,20 @@ figcaption strong {
2220
3512
  box-shadow: none !important;
2221
3513
  }
2222
3514
 
2223
- nav {
3515
+ nav,
3516
+ menu,
3517
+ search {
2224
3518
  display: none;
2225
3519
  }
2226
3520
 
3521
+ hgroup {
3522
+ break-after: avoid;
3523
+ }
3524
+
3525
+ section > hgroup:first-child:has(> h2) {
3526
+ border-left-color: #111111;
3527
+ }
3528
+
2227
3529
  article,
2228
3530
  figure,
2229
3531
  blockquote,
@@ -2237,7 +3539,7 @@ figcaption strong {
2237
3539
  }
2238
3540
 
2239
3541
  pre,
2240
- body > header > code,
3542
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog)):has(> main)) > header > code,
2241
3543
  article > header,
2242
3544
  article > header *,
2243
3545
  caption,
@@ -2252,4 +3554,18 @@ figcaption strong {
2252
3554
  caption {
2253
3555
  border-bottom: 1px solid #888888;
2254
3556
  }
3557
+
3558
+ html:has(:is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))) > aside ~ main):has(:is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))) > aside > :is(nav, menu)),
3559
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)),
3560
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)) > main {
3561
+ display: block;
3562
+ height: auto;
3563
+ overflow: visible;
3564
+ padding: 0;
3565
+ }
3566
+
3567
+ :is(body, body :where(:not(header, main, aside, footer, nav, menu, search, section, article, dialog))):has(> aside ~ main):has(> aside > :is(nav, menu)) > aside:has(~ main) {
3568
+ display: none;
3569
+ }
2255
3570
  }
3571
+ } /* end @layer swehrley */