/* Talent Card v7 — V3.16.3 final Composite correction.
   Goals: no accidental white voids, edge-to-edge photo slots, 3–6 photo layouts,
   and a stable A4 information zone shared by preview / PNG / print. */

/* The final document must always fill its photo slots. Crop/focal controls protect the subject. */
#talentCardPrint .talent-card-primary img,
#talentCardPrint .talent-card-photo-strip img{
  object-fit:cover!important;
  background:#e8e3dc!important;
}

/* COMPOSITE PRO — one coherent page: 70% image wall + 30% identity / measurements. */
#talentCardPrint.template-compcard .talent-card-primary{
  left:0!important;top:0!important;width:456px!important;height:780px!important;
  border-right:0!important;background:#e8e3dc!important;
}
#talentCardPrint.template-compcard .talent-card-photo-strip{
  left:462px!important;right:0!important;top:0!important;height:780px!important;
  display:grid!important;gap:4px!important;align-content:stretch!important;
  overflow:hidden!important;background:#e8e3dc!important;
}
#talentCardPrint.template-compcard .talent-card-photo-strip img{
  position:static!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;display:block!important;
}
#talentCardPrint.template-compcard .photo-count-1{grid-template-columns:1fr!important;grid-template-rows:1fr!important}
#talentCardPrint.template-compcard .photo-count-2{grid-template-columns:1fr!important;grid-template-rows:repeat(2,1fr)!important}
#talentCardPrint.template-compcard .photo-count-3{grid-template-columns:repeat(2,1fr)!important;grid-template-rows:1.08fr .92fr!important}
#talentCardPrint.template-compcard .photo-count-3 img:nth-child(1){grid-column:1/-1!important}
#talentCardPrint.template-compcard .photo-count-4{grid-template-columns:repeat(2,1fr)!important;grid-template-rows:repeat(2,1fr)!important}
#talentCardPrint.template-compcard .photo-count-5{grid-template-columns:repeat(2,1fr)!important;grid-template-rows:.9fr 1fr 1fr!important}
#talentCardPrint.template-compcard .photo-count-5 img:nth-child(1){grid-column:1/-1!important}

/* Identity is an intentional lower band, never stranded inside the photo column. */
#talentCardPrint.template-compcard .talent-card-meta,
#talentCardPrint.template-compcard.info-light .talent-card-meta,
#talentCardPrint.template-compcard.info-medium .talent-card-meta,
#talentCardPrint.template-compcard.info-rich .talent-card-meta{
  left:28px!important;right:350px!important;top:810px!important;bottom:auto!important;
  padding:16px 0 0!important;border-top:4px solid #171511!important;background:#fff!important;
}
#talentCardPrint.template-compcard .talent-card-meta h2{font-size:58px!important;line-height:.88!important;max-width:410px!important}
#talentCardPrint.template-compcard .talent-card-stats:not([hidden]),
#talentCardPrint.template-compcard.info-light .talent-card-stats:not([hidden]),
#talentCardPrint.template-compcard.info-medium .talent-card-stats:not([hidden]),
#talentCardPrint.template-compcard.info-rich .talent-card-stats:not([hidden]){
  left:468px!important;right:28px!important;top:810px!important;bottom:auto!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px 14px!important;
  padding:16px 0 0!important;border-top:1px solid #171511!important;
}
#talentCardPrint.template-compcard .talent-card-stat strong{font-size:18px!important}
#talentCardPrint.template-compcard .talent-card-details:not([hidden]),
#talentCardPrint.template-compcard.info-light .talent-card-details:not([hidden]),
#talentCardPrint.template-compcard.info-medium .talent-card-details:not([hidden]),
#talentCardPrint.template-compcard.info-rich .talent-card-details:not([hidden]){
  left:28px!important;right:28px!important;top:1000px!important;bottom:48px!important;
  display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:28px!important;
  overflow:hidden!important;border-top:1px solid #e7e1d8!important;padding-top:5px!important;
}
#talentCardPrint.template-compcard .talent-card-footer{
  left:28px!important;right:28px!important;bottom:12px!important;height:25px!important;padding-top:7px!important;
}

/* Sparse profiles keep the same photo geometry; whitespace becomes deliberate identity space. */
#talentCardPrint.template-compcard.info-light .talent-card-photo-strip,
#talentCardPrint.template-compcard.info-medium .talent-card-photo-strip,
#talentCardPrint.template-compcard.info-rich .talent-card-photo-strip{height:780px!important}

/* Never let legacy width rules from flex layouts leak into the grid. */
#talentCardPrint.template-compcard .photo-count-1 img,
#talentCardPrint.template-compcard .photo-count-2 img,
#talentCardPrint.template-compcard .photo-count-3 img,
#talentCardPrint.template-compcard .photo-count-4 img,
#talentCardPrint.template-compcard .photo-count-5 img{width:100%!important;height:100%!important}

@media print{
  #talentCardPrint.template-compcard .talent-card-primary,
  #talentCardPrint.template-compcard .talent-card-photo-strip,
  #talentCardPrint.template-compcard .talent-card-meta,
  #talentCardPrint.template-compcard .talent-card-stats,
  #talentCardPrint.template-compcard .talent-card-details,
  #talentCardPrint.template-compcard .talent-card-footer{break-inside:avoid;page-break-inside:avoid}
}
