:root {
  --bg: #111214;
  --surface: #181a1f;
  --raised: #1e2128;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --line: #2a2e35;
  --link: #8ab4ff;
  --link-hover: #adc6ff;
  --brass: #c4b58a;
  --brass-ink: #111214;
  --in: #9cba8f;
  --focus: #8ab4ff;
  --max: 48rem;
}

@media (min-width: 900px) {
  :root {
    --max: 72rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
.buy:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.05rem 1.25rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  min-width: 0;
  max-width: 100%;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--text);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 2.75rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.board-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.board {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.board th,
.board td {
  padding: 0.55rem 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-weight: 450;
  background: var(--surface);
}

.board thead th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--surface);
}

@media (min-width: 720px) {
  .board thead th {
    position: sticky;
    top: 0;
    z-index: 1;
  }
}

.board tbody th {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.board tbody td:nth-child(3) {
  white-space: normal;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.board thead .num {
  text-align: right;
}

.rank {
  color: var(--muted);
  text-align: left;
}

.all-in {
  font-weight: 650;
}

.ship-zero {
  color: var(--in);
}

.stock {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.stock.in {
  color: var(--in);
}

.stock.out {
  color: #c4a39a;
}

.gap {
  color: var(--muted);
}

tr.best th,
tr.best td {
  background: var(--raised);
}

tr.best .rank {
  color: var(--text);
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.32rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.12em;
  color: var(--brass-ink);
  background: var(--brass);
}

.buy-cell {
  text-align: right;
  white-space: nowrap;
}

.board thead th:last-child {
  text-align: right;
}

.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  min-height: 1.55rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--link);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
}

.buy:hover {
  color: var(--link-hover);
  border-color: #3a4150;
}

tr.unquoted,
tr.unquoted th,
tr.unquoted .all-in,
tr.unquoted .stock,
tr.unquoted .stock.in,
tr.unquoted .gap {
  color: var(--muted);
  font-weight: 450;
}

.table-note,
.asof,
.disc {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  background: none;
  border: 0;
  padding: 0;
}

.disc strong {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.table-note a,
.prose a,
.faq a,
footer a {
  color: var(--link);
}

.table-note a:hover,
.prose a:hover,
.faq a:hover,
footer a:hover {
  color: var(--link-hover);
}

.noscript {
  margin: 0.75rem 0 0;
  color: #c4a39a;
  font-size: 0.92rem;
}

.faq {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.faq h2,
.prose h2 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.faq h2 {
  margin-top: 0;
}

.faq dt {
  margin: 0.8rem 0 0.15rem;
  font-weight: 650;
  font-size: 0.95rem;
}

.faq dd,
.prose p,
.prose li {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sku .prose {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.prose h1 {
  margin-bottom: 0.75rem;
}

.prose p,
.prose ul {
  margin: 0 0 0.75rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose table {
  width: 100%;
  margin: 0 0 0.85rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: transparent;
}

.prose th,
.prose td {
  padding: 0.42rem 0.15rem 0.42rem 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose td {
  color: var(--text);
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.25rem;
}

footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (hover: hover) {
  .board tbody tr:hover th,
  .board tbody tr:hover td {
    background: var(--raised);
  }
}

@media (max-width: 720px) {
  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  main,
  footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  h1 {
    font-size: 1.45rem;
  }
}
