/* ETAPA 42: tres fichas uniformes según 4 opciones y 4 sockets,
 * no altera validación, operaciones ni el formulario de registro real. */
@media (min-width: 1100px) {
  body.rk-collections-v20 .collection-set-view .collection-card:not(.is-available-mode) .collection-pieces {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
/* Las fichas usan la misma altura mínima prevista para el caso más exigente
   (4 atributos + 4 gemas). Se expanden si el texto llega a ocupar más. */
body.rk-collections-v20 .collection-set-view .collection-pieces {
  grid-auto-rows:minmax(432px,auto) !important;
  align-items:stretch !important;
  align-content:start !important;
  row-gap:10px !important;
}
body.rk-collections-v20 .collection-set-view .collection-piece {
  box-sizing:border-box !important;
  align-self:stretch !important;
  height:100% !important;
  min-height:432px !important;
  max-height:none !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
body.rk-collections-v20 .collection-set-view .collection-req-grid {
  flex:0 0 auto !important;
  height:auto !important;
  min-height:0 !important;
  align-self:stretch !important;
  margin:0 !important;
}
body.rk-collections-v20 .collection-set-view .collection-req-section.rk-col42-options {
  box-sizing:border-box !important;
  min-height:135px !important;
  height:auto !important;
}
body.rk-collections-v20 .collection-set-view .collection-req-section.rk-col42-gems {
  box-sizing:border-box !important;
  min-height:183px !important;
  height:auto !important;
}
/* Información de compatibilidad en el encabezado: badge ya existente con
   texto completo accesible por hover / lector, sin cartel extra al pie. */
body.rk-collections-v20 .collection-set-view .collection-piece-heading-side {
  gap:4px !important;
  align-items:center !important;
}
body.rk-collections-v20 .collection-set-view .collection-piece-available-tag[title] {
  cursor:help;
}
body.rk-collections-v20 .collection-set-view .rk-col42-pending-label {
  display:inline-flex !important;
  color:#c9b385 !important;
  font-size:9px !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  padding:3px 5px !important;
  border:1px solid #6a5937 !important;
  border-radius:5px !important;
}
/* Cuando se active el depósito real, mantener el formulario sin superponerlo
   ni esconderlo: puede ampliar la tarjeta y la altura de su fila. */
body.rk-collections-v20 .collection-set-view .collection-registration {
  width:100% !important;
  max-height:none !important;
  overflow:visible !important;
}
@media (max-width:1099px) {
  body.rk-collections-v20 .collection-set-view .collection-pieces {
    grid-auto-rows:auto !important;
  }
  body.rk-collections-v20 .collection-set-view .collection-piece {
    min-height:0 !important;
    height:auto !important;
  }
  body.rk-collections-v20 .collection-set-view .collection-req-section.rk-col42-options,
  body.rk-collections-v20 .collection-set-view .collection-req-section.rk-col42-gems {
    min-height:0 !important;
  }
}
