/* The gear pages: gear.html (public, three level cards with one line per kind of gear) and gear-kits.html
   (gated, the same cards with .gear-price and the per-item lines). No inline styles: everything is a class. */
.gear-levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.gear-level {
  background: var(--surface-2);
  box-shadow: var(--elev-2);
  border-radius: var(--radius-l);
  padding: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
  scroll-margin-top: 80px;
}
.gear-level > header {
  display: grid;
  gap: 6px;
}
.gear-level h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
}
.gear-who {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.gear-lines {
  display: grid;
  gap: 0;
  margin: 0;
}
.gear-line {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.gear-line dt {
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.gear-line dd {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.5;
}
.gear-line.is-optional dd {
  color: var(--muted);
}
.gear-opt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  letter-spacing: 0.08em;
}
.gear-tips {
  max-width: 68ch;
}

/* Gear kits page only: the price block and the item lines. */
.gear-price {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: var(--surface-1);
  border-radius: var(--radius-m);
  box-shadow: var(--elev-1);
}
.gear-price p {
  margin: 0;
}
.gear-from {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.gear-from-label {
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.gear-amount {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--amber);
  white-space: nowrap;
}
.gear-unit {
  font-size: 14px;
  color: var(--muted);
}
.gear-detail {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}
.gear-detail b {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}
.gear-meta {
  font: 500 12.5px/1.5 var(--mono);
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.gear-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gear-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: baseline;
}
.gear-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.gear-pr {
  font: 600 14px/1.4 var(--mono);
  color: var(--text);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gear-qty,
.gear-where {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}
.gear-qty {
  grid-column: 2;
  grid-row: 2;
  text-align: right;
  white-space: nowrap;
}
.gear-where {
  grid-column: 1;
  grid-row: 2;
}
.gear-where a {
  color: inherit;
}
.gear-aside {
  color: var(--muted);
}
.gear-where .gear-aside::before {
  content: "· ";
}
.gear-fine {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 8px;
}

@media (max-width: 1000px) {
  .gear-levels {
    grid-template-columns: minmax(0, 1fr);
  }
  .gear-level {
    padding: 22px;
  }
}
