/* =========================
   DETAIL (LIGHTBOX) LAYOUT
   ========================= */

/* 1) More breathing room / less cramped detail view */
#lightbox{
  padding: 28px 28px 120px;  /* was 20px 20px 100px in dev CSS */
}

/* 2) Align image and info nicely (desktop) */
#lightbox-image{
  max-height: 70vh;          /* dev uses 60vh + square aspect */
  aspect-ratio: 1 / 1 !important;
}

/* 3) Make the info column a bit wider and calmer */
#image-info{
  margin-left: 40px;         /* dev has 25px */
  max-width: 420px;          /* dev varies by breakpoints */
  font-size: 14px;
  line-height: 1.45;
}

/* 4) Close button: slightly smaller + tighter */
#close-lightbox{
  top: 16px;
  right: 22px;
  font-size: 34px;           /* dev has 40px */
}

/* =========================
   TRAITS BLOCK (3-col → 2-col)
   ========================= */

/* If you want traits less cramped, switch to 2 columns */
#traits-block .trait-item{
  padding: 4px 14px;
  
}

/* Remove the existing “every 3rd item” border logic */
#traits-block .trait-item:not(:nth-child(3n)){

}

#traits-block h3{padding-left:14px;}

/* Optional: add a subtle divider per row instead */
#traits-block .trait-item{
}

/* =========================
   BUTTONS / CONTROLS LOOK
   ========================= */

/* More consistent “cents.vision” minimal button look */
#walletLookupBtn{
  border: 2px solid #000 !important;
  background: #fff !important;
}

/* Kill the blue reset button if you want everything mono */
#filter-reset{
  background: #fff !important;
  color: #000 !important;
}

/* =========================
   GALLERY THUMBNAILS
   ========================= */

.gallery img{
  border-radius: 2px;        /* dev uses 4px */
}

.gallery img:hover{
  opacity: 0.9;              /* dev uses 0.8 */
}
/* Contaminated row – top-align so total % sits on same line as subtype name */
#mp-info .mp-subrow.contaminated-row {
  align-items: start !important;
}

/* Bottom filter row – sort + hide button, shown in both Lab and Market */
#filter-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hide filter collapse button on mobile */
@media (max-width: 1024px) {
  #filter-collapse { display: none !important; }
  #filter-show     { display: none !important; }
}

/* Show filters button – appears when header is collapsed */
#filter-show {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 999;
}

/* Shared style for both toggle buttons */
#filter-show,
#filter-collapse {
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #fff;
  border: 1.5px solid #000;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

/* Artist Held badge in owner row */
.mp-artist-held {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #000;
  border: 1.5px solid #000;
  padding: 2px 7px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Curation hint at bottom of detail view */
.mp-curation-hint {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 0.85em;
  letter-spacing: 0.08em;
  color: #aaa;
  font-weight: 400;
}


/* On Sale empty state */
.on-sale-empty-state {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
  font-size: 0.9em;
  color: #555;
  cursor: pointer;
}
.on-sale-empty-state strong {
  color: #000;
}
.on-sale-empty-state span {
  font-size: 0.88em;
  color: #888;
}

/* =========================
   MINT YEAR FILTER (popover decade picker)
   ========================= */
/* Trigger button – matches the neighbouring dropdowns' footprint */
.year-pop-wrapper { position: relative; }
.year-pop-btn {
  width: 100%;
  min-width: 130px;
  padding: 4px 36px 5px 12px;
  font: inherit;
  font-size: 14px;
  text-align: center;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
}

/* Floating panel – does not take up layout space */
.year-pop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 248px;
  max-width: 340px;
  padding: 10px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.year-pop[hidden] { display: none; }

.year-decades,
.year-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.year-years[hidden] { display: none; }

/* The per-year row reads as nested under its decade */
.year-years {
  padding-left: 8px;
  border-left: 2px solid #000;
}

.year-chip {
  font: inherit;
  font-size: 13px;
  line-height: 1;
  background: #fff;
  color: #000;
  border: 1.5px solid #000;
  padding: 5px 9px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.year-chip:hover { background: #f0f0f0; }
.year-chip.active { background: #000; color: #fff; }
.year-chip--year { font-size: 12px; padding: 4px 8px; }

/* Override the generic `.filter-row-lower button { min-width:130px }` rule so
   chips size to their content and wrap into a compact grid in the panel. */
.year-pop .year-chip { min-width: 0; flex: 0 0 auto; }

.year-chip .year-count {
  font-size: 0.78em;
  opacity: 0.55;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}
.year-chip.active .year-count { opacity: 0.7; }

/* Visually hidden but accessible to screen readers */
.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;
}
