
/* Marketplace presentation cleanup, October 2026. */
.site-nav { gap: .2rem; flex-wrap: wrap; }
.site-nav a { white-space: nowrap; padding: .65rem .7rem; }
.site-header .brand-final { flex: 0 1 230px; min-width: 160px; }
.hero-grid, .listing-detail, .listing-grid, .hero-cards { min-width: 0; }
.hero-grid > *, .listing-detail > *, .listing-grid > *, .hero-cards > *, .card-top > div { min-width: 0; }
.card-body, .detail-panel { overflow-wrap: anywhere; }
.card-image img, .thumb-button img, .upload-preview { object-fit: contain; background: #fcfaf9; }
.detail-gallery-wrap { align-self: start; }
.detail-gallery { min-height: 0; height: clamp(300px, 55vw, 620px); }
.detail-gallery img { width: 100%; height: 100%; object-fit: contain; }
.info-copy { max-width: 800px; margin-inline: auto; }
.info-copy h2 { font-size: 1.6rem; margin-top: 2rem; }
.info-copy a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px; }
.info-copy li { line-height: 1.7; margin-bottom: .5rem; }
.footer-info { grid-column: 1 / -1; display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; }
@media (max-width: 1100px) and (min-width: 761px) { .nav-wrap { flex-wrap: wrap; } .site-nav { justify-content: flex-end; } }
@media (max-width: 760px) {
  .site-header .brand-final { flex: 0 1 220px; width: min(220px, 65vw); }
  .detail-gallery { height: clamp(300px, 100vw, 500px); }
  .site-nav { flex-wrap: nowrap; }
}

/* Equal featured-card dimensions on the live homepage. */
#homeFeaturedPreview, #featuredListings { grid-auto-rows: 1fr; align-items: stretch; }
#homeFeaturedPreview > .preview-card-link { display: flex; min-width: 0; }
#homeFeaturedPreview .preview-card { width: 100%; height: 100%; display: flex; flex-direction: column; }
#featuredListings > .listing-card { height: 100%; display: flex; flex-direction: column; }
#homeFeaturedPreview .card-image, #featuredListings .card-image { flex-shrink: 0; }
#homeFeaturedPreview .card-body, #featuredListings .card-body { flex: 1; display: flex; flex-direction: column; }
#homeFeaturedPreview .card-top { flex: 1; display: flex; flex-direction: column; gap: 8px; }
#homeFeaturedPreview .card-top > div { flex: 1; }
#homeFeaturedPreview .card-top strong, #featuredListings .card-top strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden; line-height: 1.2; min-height: 3.6em;
}
#homeFeaturedPreview .card-top p, #featuredListings .card-top p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.5; min-height: 3em; margin: 8px 0;
}
#homeFeaturedPreview .price { margin-top: auto; }
#homeFeaturedPreview .mini-meta { margin-top: 10px; line-height: 1.4; min-height: 2.8em; }
#featuredListings .card-top { display: grid; grid-template-columns: minmax(0,1fr) auto; }
#featuredListings .meta { align-content: start; }
#featuredListings .meta > .pill:last-child {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; line-height: 1.4; max-height: 3.64em; width: 100%;
}
#featuredListings .card-seller-row { margin-top: auto; padding-top: 16px; }
