/* Marketplace surfaces reuse the shared MySetMatch design tokens. */
.marketplace-workspace { padding-block:var(--ds-space-4); overflow-wrap:anywhere; }
.marketplace-workspace .marketplace-header { border:0; border-bottom:1px solid var(--ds-border-default); border-radius:0; background:transparent; padding:0 0 var(--ds-space-5); margin-bottom:var(--ds-space-6); }
.marketplace-kicker { display:block; color:var(--ds-brand-strong); font-size:var(--ds-type-caption); font-weight:700; letter-spacing:.08em; text-transform:uppercase; margin-bottom:var(--ds-space-2); }
/* The design system rounds this header like a card; with only a bottom rule that drew the
   line with curled-up ends. A divider is straight. */
html .marketplace-workspace .marketplace-header.marketplace-header { border-radius:0; }
.marketplace-header .page-title { margin-bottom:var(--ds-space-2); }
.marketplace-search { display:flex; gap:var(--ds-space-2); margin-top:var(--ds-space-5); max-width:760px; }
.marketplace-search .form-control { min-width:0; min-height:48px; font-size:var(--ds-type-body); }
.marketplace-search .btn { flex-shrink:0; }
.marketplace-workspace .btn, .marketplace-workspace .form-select, .marketplace-workspace .form-control { min-height:44px; }
.marketplace-workspace a:focus-visible, .marketplace-workspace button:focus-visible, .marketplace-workspace summary:focus-visible { outline:2px solid var(--ds-focus-ring); outline-offset:3px; }
.marketplace-workspace .marketplace-card { transition:border-color var(--ds-dur) var(--ds-ease); box-shadow:none; }
.marketplace-workspace .marketplace-card:hover { border-color:var(--ds-accent); }
.marketplace-workspace .listing-img, .marketplace-workspace .main-photo { object-fit:contain; }
.listing-without-photos { max-width:48rem; margin-inline:auto; }
.listing-photo-note { align-self:center; color:var(--ds-ink-600); font-size:var(--ds-type-caption); }
.marketplace-workspace .marketplace-card .card-body { padding:var(--ds-space-4); gap:var(--ds-space-1); }
.marketplace-workspace .marketplace-card-meta { line-height:1.6; }
.marketplace-workspace .listing-price { font-size:var(--ds-type-heading-3); }
.marketplace-workspace .filter-sidebar { padding:var(--ds-space-4); }
.marketplace-tools { margin-bottom:var(--ds-space-4); }
.marketplace-tools summary, .marketplace-price-guide summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:var(--ds-space-2); font-weight:600; color:var(--ds-ink-700); }
.marketplace-tools summary::before, .marketplace-price-guide summary::before { content:'+'; color:var(--ds-accent); }
.marketplace-tools[open] summary::before, .marketplace-price-guide[open] summary::before { content:'−'; }
.marketplace-price-guide { border-block:1px solid var(--ds-border); margin-bottom:var(--ds-space-4); }
.marketplace-price-guide > :last-child { margin-bottom:var(--ds-space-3); }
.marketplace-steps { display:flex; flex-wrap:wrap; gap:var(--ds-space-3); padding:0; margin:var(--ds-space-4) 0 0; list-style:none; color:var(--ds-ink-600); font-size:var(--ds-type-label); }
.marketplace-steps strong { color:var(--ds-accent); margin-right:var(--ds-space-1); }
.marketplace-workspace .form-card { box-shadow:none; }
.marketplace-workspace .section-title { font-size:var(--ds-type-label); color:var(--ds-ink-700); margin-bottom:var(--ds-space-4); }
.marketplace-workspace .char-count { flex-shrink:0; white-space:nowrap; margin-left:var(--ds-space-2); }
.marketplace-workspace .photo-preview-grid { grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); }
.marketplace-workspace .photo-preview-item .cover-btn { position:absolute; bottom:0; left:0; width:100%; min-height:44px; border:0; background:var(--ds-surface); color:var(--ds-ink-900); font-size:var(--ds-type-label); }
.marketplace-seller-nav { display:flex; flex-wrap:wrap; gap:var(--ds-space-2); margin-bottom:var(--ds-space-5); }
.marketplace-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--ds-space-3); margin-bottom:var(--ds-space-5); }
.marketplace-summary > div { border:1px solid var(--ds-border); border-radius:var(--ds-radius-md); background:var(--ds-surface); padding:var(--ds-space-4); }
.marketplace-summary strong { display:block; font-size:var(--ds-type-heading-3); font-variant-numeric:tabular-nums; }
.marketplace-summary span { color:var(--ds-ink-600); font-size:var(--ds-type-label); }
.marketplace-checkout-summary { border-top:3px solid var(--ds-accent); }
.marketplace-checkout-terms { border:1px solid var(--ds-border); border-radius:var(--ds-radius-md); background:var(--ds-surface); padding:var(--ds-space-5); margin-bottom:var(--ds-space-5); }
@media(max-width:575.98px) { .marketplace-workspace .marketplace-header { padding:var(--ds-space-4); } .marketplace-search { flex-wrap:wrap; } .marketplace-search .btn { width:100%; } .marketplace-summary { gap:var(--ds-space-2); } .marketplace-summary > div { padding:var(--ds-space-3); } .marketplace-workspace .listing-actions > * { min-width:0; } .marketplace-checkout-terms { padding:var(--ds-space-4); } }
@media(prefers-reduced-motion:reduce) { .marketplace-workspace * { scroll-behavior:auto!important; transition:none!important; } }

/* Equipment search and workspace navigation share the same reading order on every screen. */
html body main .page-header.marketplace-intro:has(h1) {
  position: relative;
  isolation: isolate;
  padding: clamp(var(--ds-space-4), 3vw, var(--ds-space-8));
  border: 1px solid var(--ds-border-default);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-surface-secondary) !important;
}
.marketplace-intro-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3) var(--ds-space-5);
}
.marketplace-intro-heading .page-subtitle { margin-bottom: 0; color: var(--ds-text-secondary); }
.marketplace-workspace .marketplace-search { max-width: 40rem; }
html body main .marketplace-intro .msm-section-title { font-size: clamp(1.85rem, 3.2vw, 3.15rem); }
html body main .marketplace-intro .msm-section-title > i:first-child { display: none; }
html main .marketplace-workspace .marketplace-sections {
  gap: var(--ds-space-1) !important;
  padding-bottom: var(--ds-space-1);
  border-bottom: 1px solid var(--ds-border-default);
}
html main .marketplace-sections a.btn {
  min-height: var(--ds-control-min);
  padding-inline: var(--ds-space-3);
  border: 0;
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text-secondary);
  background: transparent;
  box-shadow: none;
}
html main .marketplace-sections a.btn:is(:hover,[aria-current="page"]) {
  color: var(--ds-text-primary) !important;
  background: var(--ds-surface-secondary) !important;
}
html main .marketplace-sections a.btn[aria-current="page"] {
  box-shadow: inset 0 -2px var(--ds-icon) !important;
}
@media (min-width: 56rem) {
  html body main .marketplace-intro--equipment.page-header:has(h1) {
    padding-inline-end: calc(34% + var(--ds-space-6));
  }
  html body main .marketplace-intro--equipment.page-header:has(h1)::after {
    content: "";
    position: absolute;
    display: block;
    inset: 0 0 0 auto;
    width: 32%;
    height: 100%;
    border-radius: 0 var(--ds-radius-xl) var(--ds-radius-xl) 0;
    background: var(--ds-startup-court) url("../images/entry-equipment.jpg") center / cover no-repeat;
    pointer-events: none;
  }
}
