.gear {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gear-intro {
  text-align: center;
}

.gear-intro h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gear-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gear-section-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.gear-grid {
  display: grid;
  gap: 24px;
}

.gear-sold {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.gear-sold > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  margin: 0 auto 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
}

.gear-sold > summary::-webkit-details-marker {
  display: none;
}

.gear-sold > summary::after {
  content: "+";
}

.gear-sold[open] > summary::after {
  content: "–";
}

.gear-sold .gear-grid {
  display: grid;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.gear-sold:not([open]) > .gear-grid {
  display: grid;
}

.gear-sold[open] .gear-grid {
  max-height: 2000px;
  opacity: 1;
}

.gear-item {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.gear-media {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.gear-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.theme-dark .gear-media img {
  filter: invert(1);
}

.gear-content {
  min-width: 0;
}

.gear-item-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.gear-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gear-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--mono);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.gear-chip-owned {
  color: #2f6b3f;
}

.gear-chip-sold {
  color: #9b2c2c;
}

.gear-chip-for-sale {
  color: #9b7a1a;
}

.gear-chip-ordered {
  color: #2b5aa8;
}

.gear-chip-unknown {
  color: var(--muted);
}

.gear-list {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.gear-row {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  min-width: 0;
}

.gear-row dt {
  color: var(--muted);
  order: 1;
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gear-row::after {
  content: "................................................................................";
  order: 2;
  flex: 1 1 0;
  min-width: 0;
  margin: 0 10px;
  color: #bdbdbd;
  white-space: nowrap;
  overflow: hidden;
}

.gear-row-multiline::after {
  content: "";
  display: none;
}

.gear-row-multiline {
  align-items: flex-start;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 8px;
}

.gear-row dd {
  margin: 0;
  font-weight: 600;
  order: 3;
  flex: 0 0 auto;
  max-width: 34ch;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gear-row.gear-row-multiline dt {
  order: 0;
}

.gear-row.gear-row-multiline dd {
  order: 0;
  white-space: normal;
  text-align: left;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-weight: 400;
  word-break: break-word;
}

@media (max-width: 600px) {
  .gear {
    gap: 32px;
  }

  .gear-intro h1 {
    font-size: clamp(26px, 8vw, 38px);
  }

  .gear-item {
    max-width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .gear-content {
    width: 100%;
  }
}
