/* BMX 2000 wiki. Black on white, hairline rules, one typeface, no accent colour:
   weight and position carry the hierarchy. */
:root {
  --bg: #ffffff;
  --tile: #f0f0ed;   /* part shots are flattened onto exactly this */
  --dark: #0f1114;   /* clothing shots keep their studio black */
  --ink: #111111;
  --muted: #6b6b66;
  --rule: #e4e4e0;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #c8c8c2; }
a:hover { text-decoration-color: currentColor; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; padding: 8px 12px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 8px; }
.sub { color: var(--muted); font-weight: 400; }
.linkish { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; min-height: 48px; }
.top__id { display: flex; gap: 12px; font-weight: 600; }
.top__id a, .top__nav a { text-decoration: none; }
.top__id a + a { font-weight: 400; color: var(--muted); }
.top__id a[aria-current] { color: var(--ink); }
.top__nav { order: 5; display: flex; gap: 16px; width: 100%; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a { color: var(--muted); white-space: nowrap; }
.top__nav a:hover, .top__nav a[aria-current] { color: var(--ink); }
.top__search { display: none; }
.top__find { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; }
.i { width: 18px; height: 18px; fill: currentColor; }
@media (min-width: 760px) {
  .top__in { flex-wrap: nowrap; }
  .top__nav { order: 0; width: auto; padding: 0; overflow: visible; }
  .top__search { display: block; margin-left: auto; }
  .top__search input { width: 200px; height: 30px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 0; background: var(--bg); font-size: 14px; }
  .top__search input:focus { outline: none; border-color: var(--ink); }
  .top__find { display: none; }
}

/* Page */
.head { padding: 28px 0 0; }
.head h1 { font-size: 28px; line-height: 1.15; }
.head__sub { margin-top: 4px; color: var(--muted); }
.sec { margin-top: 32px; }
.sec h2 { margin-bottom: 8px; font-size: 15px; }
.note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.others { font-size: 14px; color: var(--muted); line-height: 1.9; }
.others a { color: var(--ink); text-decoration-color: transparent; }
.others a:hover { text-decoration-color: currentColor; }
.others b { color: var(--ink); font-weight: 600; }
nav.others:not(.sec) { margin-top: 12px; }
.list { margin-top: 12px; font-size: 14px; }
.list li { padding: 3px 0; }
.list li::before { content: "– "; color: var(--muted); }

/* Item: picture beside the fact table */
.item { display: grid; gap: 16px; margin-top: 16px; }
.item__pic { aspect-ratio: 4 / 3; }
.item__pic img { width: 100%; height: 100%; object-fit: cover; }
.item--wear .item__pic { aspect-ratio: 1; max-width: 360px; }
.tile { background: var(--tile); }
.tile--dark { background: var(--dark); }
@media (min-width: 760px) {
  .item { grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
  .item--wear { grid-template-columns: 300px minmax(0, 1fr); }
}

/* Key / value tables */
.kv { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14px; }
.kv th, .kv td { padding: 6px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.kv th { width: 45%; padding-right: 16px; font-weight: 400; color: var(--muted); }
.kv td { font-variant-numeric: tabular-nums; }
.kv--num th { color: var(--ink); }
.kv--num td { text-align: right; width: 72px; }
.kv .best { font-weight: 600; }
.kv .neg { color: var(--muted); }
.kv__group th { padding-top: 16px; font-size: 12.5px; color: var(--muted); border-bottom-color: var(--rule); }

/* Lists of items */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 5px 16px 5px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; white-space: nowrap; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.tbl tbody th { font-weight: 400; white-space: normal; min-width: 180px; }
.tbl .n { text-align: right; }
.tbl .best { font-weight: 600; }
.tbl .neg { color: var(--muted); }
.tbl .opt { display: none; }
@media (min-width: 760px) { .tbl .opt { display: table-cell; } .ph { display: none; } }
.it { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.it:hover .it__n { text-decoration: underline; text-underline-offset: 3px; }
.it__t { display: grid; }
.ph { font-size: 12.5px; color: var(--muted); }
.th { flex: none; width: 40px; height: 30px; overflow: hidden; background: var(--tile); }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th--wear { width: 30px; background: var(--dark); }
.th--wear img { object-position: 50% 22%; }
.tbl thead th[data-key] button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.tbl thead th[aria-sort] button { color: var(--ink); }
.tbl thead th[aria-sort="ascending"] button::after { content: " ↑"; }
.tbl thead th[aria-sort="descending"] button::after { content: " ↓"; }
.tbl--levels td { white-space: normal; vertical-align: top; }
.tbl--levels th, .tbl--levels td { vertical-align: top; }
.tbl--levels td p + p { margin-top: 2px; }
.tbl--levels td b { font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }

/* Wiki home */
.find { display: flex; max-width: 520px; margin-top: 16px; border: 1px solid var(--ink); }
.find input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 0; border-radius: 0; background: none; font-size: 16px; }
.find input:focus { outline: none; }
.find button { padding: 0 14px; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; }
.find__results { max-width: 520px; border: 1px solid var(--rule); border-top: 0; font-size: 14px; }
.find__results a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.find__results a:hover, .find__results a:focus-visible { background: #f6f6f4; }
.find__results small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.find__all { font-size: 13.5px; }
.find__none { padding: 8px 10px; color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.col h2 a { text-decoration: none; }
.idx { font-size: 14px; }
.idx li { padding: 2px 0; }
.idx a { text-decoration-color: transparent; }
.idx a:hover { text-decoration-color: currentColor; }
.idx .sub { font-size: 13px; }

/* Catalogue filters */
.filters { display: none; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-bottom: 12px; font-size: 13px; }
.js .filters { display: flex; }
.filters label { display: grid; gap: 2px; }
.filters label > span { color: var(--muted); }
.filters__q { flex: 1 1 100%; }
@media (min-width: 760px) { .filters__q { flex: 1 1 160px; } }
.filters input[type="search"], .filters select { width: 100%; height: 30px; padding: 0 6px; border: 1px solid var(--rule); border-radius: 0; background: var(--bg); font-size: 14px; }
.filters select { min-width: 96px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--ink); }
.filters input[type="range"] { width: 140px; height: 30px; margin: 0; accent-color: var(--ink); }
.filters__count { flex-basis: 100%; color: var(--muted); }
.filters__count b { color: var(--ink); font-weight: 600; }
.empty { padding: 16px 0; color: var(--muted); }
tr[hidden] { display: none; }

/* Footer */
.foot { margin-top: 56px; padding: 14px 0 32px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.foot a { color: var(--muted); }
