/* Talent Card v5 — art-directed adaptive outputs. Loaded after styles.css. */

/* Keep the editor controls simple; quality should be visible in the document. */
.premium-template-choices button strong{font-family:Georgia,"Times New Roman",serif}

/* Fixed A4 geometry at CSS 96dpi. */
#talentCardPrint.talent-card-sheet{
  --tc-paper:#fff;--tc-ink:#171511;--tc-muted:#756f66;--tc-line:#d9d2c8;--tc-warm:#e9e4dc;--tc-accent:#a33f2f;
  width:794px!important;height:1123px!important;min-height:1123px!important;max-height:1123px!important;
  margin:28px auto 0!important;padding:0!important;display:block!important;position:relative!important;
  overflow:hidden!important;border:0!important;border-radius:0!important;background:var(--tc-paper)!important;
  color:var(--tc-ink)!important;box-shadow:0 24px 70px rgba(24,19,14,.14)!important;
}
#talentCardPrint.role-actor{--tc-accent:#3d3b61}#talentCardPrint.role-dancer{--tc-accent:#7b3151}#talentCardPrint.role-performer{--tc-accent:#205d58}
#talentCardPrint::after{content:none!important}
#talentCardPrint::before{content:"TFM / TALENT CARD";position:absolute;z-index:30;right:20px;top:15px;font:700 7px/1 ui-sans-serif,system-ui,sans-serif;letter-spacing:.19em;color:rgba(255,255,255,.82);mix-blend-mode:difference;pointer-events:none}
#talentCardPrint [hidden]{display:none!important}
#talentCardPrint .talent-card-primary,#talentCardPrint .talent-card-meta,#talentCardPrint .talent-card-photo-strip,#talentCardPrint .talent-card-stats,#talentCardPrint .talent-card-details,#talentCardPrint .talent-card-footer{position:absolute!important;box-sizing:border-box!important;margin:0!important}
#talentCardPrint .talent-card-primary{overflow:hidden!important;background:var(--tc-warm)!important;border-radius:0!important}
#talentCardPrint .talent-card-primary img,#talentCardPrint .talent-card-photo-strip img{display:block!important;width:100%;height:100%;max-width:none!important;aspect-ratio:auto!important;border-radius:0!important;object-fit:var(--tc-fit,cover)!important;object-position:var(--tc-pos,50% 38%)!important;background:#e8e3dc!important}
#talentCardPrint .talent-card-primary-image{object-position:var(--tc-pos,50% 34%)!important}
#talentCardPrint .talent-card-doctype{margin:0 0 9px!important;font:700 8.5px/1.2 ui-sans-serif,system-ui,sans-serif!important;letter-spacing:.22em!important;text-transform:uppercase!important;color:var(--tc-accent)!important}
#talentCardPrint .talent-card-meta h2{margin:0 0 9px!important;font:600 58px/.88 Georgia,"Times New Roman",serif!important;letter-spacing:-.055em!important;color:var(--tc-ink)!important}
#talentCardPrint .talent-card-roleline{margin:0 0 5px!important;font:650 11px/1.3 ui-sans-serif,system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:inherit!important}
#talentCardPrint .talent-card-location{margin:0!important;color:var(--tc-muted)!important;font:400 11px/1.4 ui-sans-serif,system-ui,sans-serif!important}
#talentCardPrint .talent-card-summary{display:flex!important;flex-wrap:wrap!important;gap:7px 14px!important;margin-top:15px!important}
#talentCardPrint .talent-card-summary .talent-card-detail{display:inline-flex!important;gap:4px!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}
#talentCardPrint .talent-card-summary .talent-card-detail span{font:700 7px/1.3 ui-sans-serif,system-ui,sans-serif!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:var(--tc-muted)!important}
#talentCardPrint .talent-card-summary .talent-card-detail strong{font:600 9.5px/1.3 ui-sans-serif,system-ui,sans-serif!important;color:var(--tc-ink)!important}
#talentCardPrint .talent-card-stat{display:flex!important;flex-direction:column!important;gap:3px!important;padding:0!important;min-width:0!important}
#talentCardPrint .talent-card-stat span{font:700 7px/1.1 ui-sans-serif,system-ui,sans-serif!important;letter-spacing:.15em!important;text-transform:uppercase!important;color:var(--tc-muted)!important}
#talentCardPrint .talent-card-stat strong{font:600 16px/1.05 Georgia,"Times New Roman",serif!important;color:var(--tc-ink)!important}
#talentCardPrint .talent-card-role-head{margin:9px 0 3px!important;font:700 7px/1.2 ui-sans-serif,system-ui,sans-serif!important;letter-spacing:.16em!important;text-transform:uppercase!important;color:var(--tc-accent)!important}
#talentCardPrint .talent-card-detail{display:grid!important;grid-template-columns:76px 1fr!important;gap:9px!important;align-items:start!important;padding:5px 0!important;border-bottom:1px solid #e7e1d8!important}
#talentCardPrint .talent-card-detail>span{font:700 7px/1.35 ui-sans-serif,system-ui,sans-serif!important;letter-spacing:.11em!important;text-transform:uppercase!important;color:var(--tc-muted)!important}
#talentCardPrint .talent-card-detail>strong{font:400 9.5px/1.4 ui-sans-serif,system-ui,sans-serif!important;color:var(--tc-ink)!important;overflow-wrap:break-word!important}
#talentCardPrint .talent-card-footer{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:16px!important;border-top:1px solid var(--tc-line)!important;color:var(--tc-muted)!important;font-size:8px!important}
#talentCardPrint #cardFooterName{font:600 11px/1.2 Georgia,"Times New Roman",serif!important;color:var(--tc-ink)!important}
#talentCardPrint #cardFooterContact{font:500 7.5px/1.35 ui-sans-serif,system-ui,sans-serif!important;text-align:right!important;overflow-wrap:anywhere!important}

/* Strip layout is flex-based so browser print and screen preview use identical geometry. */
#talentCardPrint .talent-card-photo-strip{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-content:stretch!important;overflow:hidden!important;background:#fff!important}
#talentCardPrint .talent-card-photo-strip img{position:static!important;flex:none!important;min-width:0!important;min-height:0!important}
#talentCardPrint .photo-count-1 img{width:100%!important;height:100%!important}
#talentCardPrint .photo-count-2{flex-wrap:nowrap!important}#talentCardPrint .photo-count-2 img{width:calc(50% - 3px)!important;height:100%!important}
#talentCardPrint .photo-count-3 img:nth-child(1),#talentCardPrint .photo-count-3 img:nth-child(2){width:calc(50% - 3px)!important;height:calc(50% - 3px)!important}
#talentCardPrint .photo-count-3 img:nth-child(3){width:100%!important;height:calc(50% - 3px)!important}
#talentCardPrint .photo-count-4 img{width:calc(50% - 3px)!important;height:calc(50% - 3px)!important}

/* COMPOSITE PRO — full-height hero + dense photo wall + identity block. */
#talentCardPrint.template-compcard{background:#fff!important}
#talentCardPrint.template-compcard .talent-card-primary{left:0!important;top:0!important;width:456px!important;height:1088px!important;border-right:6px solid #fff!important}
#talentCardPrint.template-compcard .talent-card-photo-strip{left:462px!important;right:0!important;top:0!important;height:604px!important}
#talentCardPrint.template-compcard .talent-card-meta{left:486px!important;right:24px!important;top:628px!important;padding-top:18px!important;border-top:4px solid #171511!important;background:#fff!important}
#talentCardPrint.template-compcard .talent-card-stats{left:486px!important;right:24px!important;top:812px!important;padding:12px 0 0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px 8px!important;border-top:1px solid #171511!important}
#talentCardPrint.template-compcard .talent-card-details{left:486px!important;right:24px!important;top:930px!important;bottom:48px!important;overflow:hidden!important}
#talentCardPrint.template-compcard .talent-card-footer{left:22px!important;right:22px!important;bottom:12px!important;height:25px!important;padding-top:7px!important}
#talentCardPrint.template-compcard.info-light .talent-card-photo-strip{height:760px!important}
#talentCardPrint.template-compcard.info-light .talent-card-meta{top:790px!important;bottom:48px!important;padding-top:22px!important}
#talentCardPrint.template-compcard.info-light .talent-card-stats,#talentCardPrint.template-compcard.info-light .talent-card-details{display:none!important}
#talentCardPrint.template-compcard.info-medium .talent-card-photo-strip{height:660px!important}
#talentCardPrint.template-compcard.info-medium .talent-card-meta{top:690px!important}
#talentCardPrint.template-compcard.info-medium .talent-card-stats{top:860px!important}
#talentCardPrint.template-compcard.info-medium .talent-card-details{top:950px!important}

/* AGENCY CLASSIC — top identity and a full-height contact sheet below. */
#talentCardPrint.template-classic,#talentCardPrint.template-minimal{background:#faf8f3!important}
#talentCardPrint.template-classic .talent-card-primary,#talentCardPrint.template-minimal .talent-card-primary{left:32px!important;top:30px!important;width:340px!important;height:350px!important}
#talentCardPrint.template-classic .talent-card-meta,#talentCardPrint.template-minimal .talent-card-meta{left:402px!important;right:32px!important;top:52px!important;height:290px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
#talentCardPrint.template-classic::after,#talentCardPrint.template-minimal::after{content:""!important;display:block!important;position:absolute!important;left:32px!important;right:32px!important;top:405px!important;height:2px!important;background:#171511!important;opacity:1!important}
#talentCardPrint.template-classic .talent-card-photo-strip,#talentCardPrint.template-minimal .talent-card-photo-strip{left:32px!important;right:32px!important;top:435px!important;height:425px!important;flex-wrap:nowrap!important;background:transparent!important}
#talentCardPrint.template-classic .photo-count-3 img,#talentCardPrint.template-minimal .photo-count-3 img{width:calc(33.333% - 4px)!important;height:100%!important}
#talentCardPrint.template-classic .photo-count-4 img,#talentCardPrint.template-minimal .photo-count-4 img{width:calc(25% - 4.5px)!important;height:100%!important}
#talentCardPrint.template-classic .talent-card-stats,#talentCardPrint.template-minimal .talent-card-stats{left:32px!important;right:32px!important;top:882px!important;padding-top:12px!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;border-top:1px solid #171511!important}
#talentCardPrint.template-classic .talent-card-details,#talentCardPrint.template-minimal .talent-card-details{left:32px!important;right:32px!important;top:970px!important;bottom:48px!important;display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:28px!important;overflow:hidden!important}
#talentCardPrint.template-classic .talent-card-footer,#talentCardPrint.template-minimal .talent-card-footer{left:32px!important;right:32px!important;bottom:14px!important;height:24px!important;padding-top:7px!important}
#talentCardPrint.template-classic.info-light .talent-card-photo-strip,#talentCardPrint.template-minimal.info-light .talent-card-photo-strip{height:610px!important;bottom:48px!important}
#talentCardPrint.template-classic.info-light .talent-card-stats,#talentCardPrint.template-classic.info-light .talent-card-details,#talentCardPrint.template-minimal.info-light .talent-card-stats,#talentCardPrint.template-minimal.info-light .talent-card-details{display:none!important}
#talentCardPrint.template-classic.info-medium .talent-card-photo-strip,#talentCardPrint.template-minimal.info-medium .talent-card-photo-strip{height:470px!important}
#talentCardPrint.template-classic.info-medium .talent-card-stats,#talentCardPrint.template-minimal.info-medium .talent-card-stats{top:925px!important}
#talentCardPrint.template-classic.info-medium .talent-card-details,#talentCardPrint.template-minimal.info-medium .talent-card-details{top:1000px!important}

/* EDITORIAL COVER — full bleed; metadata overlays the photography. */
#talentCardPrint.template-editorial{background:#171511!important;color:#fff!important}
#talentCardPrint.template-editorial .talent-card-primary{left:0!important;right:0!important;top:0!important;bottom:244px!important;width:auto!important;height:auto!important;background:#171511!important}
#talentCardPrint.template-editorial .talent-card-primary img{object-fit:cover!important;filter:saturate(.94) contrast(1.02)}
#talentCardPrint.template-editorial::after{content:""!important;display:block!important;position:absolute!important;z-index:1!important;left:0!important;right:0!important;top:0!important;bottom:244px!important;background:linear-gradient(90deg,rgba(9,8,7,.60),rgba(9,8,7,.08) 54%,transparent 76%),linear-gradient(0deg,rgba(9,8,7,.72),transparent 42%)!important;pointer-events:none!important;opacity:1!important}
#talentCardPrint.template-editorial .talent-card-meta{z-index:3;left:40px!important;right:300px!important;bottom:286px!important;padding:0!important;background:transparent!important}
#talentCardPrint.template-editorial .talent-card-doctype{color:#f0c9be!important}
#talentCardPrint.template-editorial .talent-card-meta h2{font-size:74px!important;color:#fff!important}
#talentCardPrint.template-editorial .talent-card-roleline,#talentCardPrint.template-editorial .talent-card-location{color:#fff!important}
#talentCardPrint.template-editorial .talent-card-summary .talent-card-detail span{color:#d8d0c7!important}#talentCardPrint.template-editorial .talent-card-summary .talent-card-detail strong{color:#fff!important}
#talentCardPrint.template-editorial .talent-card-photo-strip{left:0!important;right:0!important;bottom:0!important;height:244px!important;flex-wrap:nowrap!important;gap:2px!important;background:#171511!important}
#talentCardPrint.template-editorial .photo-count-3 img{width:calc(33.333% - 1.4px)!important;height:100%!important}#talentCardPrint.template-editorial .photo-count-4 img{width:calc(25% - 1.5px)!important;height:100%!important}
#talentCardPrint.template-editorial .talent-card-stats{z-index:4;right:26px!important;bottom:270px!important;width:230px!important;padding:16px 17px!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px 10px!important;background:rgba(250,247,242,.95)!important;color:#171511!important;border:0!important}
#talentCardPrint.template-editorial .talent-card-stat span{color:#7a7168!important}#talentCardPrint.template-editorial .talent-card-stat strong{color:#171511!important}
#talentCardPrint.template-editorial .talent-card-details{display:none!important}
#talentCardPrint.template-editorial .talent-card-footer{z-index:5;left:14px!important;right:14px!important;bottom:9px!important;height:20px!important;border:0!important;padding:0!important;color:rgba(255,255,255,.82)!important}
#talentCardPrint.template-editorial #cardFooterName{color:#fff!important}
#talentCardPrint.template-editorial.info-light .talent-card-stats{display:none!important}
#talentCardPrint.template-editorial.few-photos .talent-card-primary{bottom:0!important}#talentCardPrint.template-editorial.few-photos .talent-card-photo-strip{display:none!important}

/* CASTING SHEET — image-right dossier + bottom contact strip. */
#talentCardPrint.template-casting{background:#f5f1ea!important}
#talentCardPrint.template-casting .talent-card-primary{left:326px!important;right:30px!important;top:30px!important;bottom:278px!important;width:auto!important;height:auto!important}
#talentCardPrint.template-casting .talent-card-meta{left:30px!important;width:270px!important;top:52px!important;padding:17px 8px 20px 0!important;border-top:5px solid #171511!important}
#talentCardPrint.template-casting .talent-card-stats{left:30px!important;width:270px!important;top:385px!important;padding:14px 0 10px!important;display:grid!important;grid-template-columns:1fr 1fr!important;border-top:1px solid #171511!important}
#talentCardPrint.template-casting .talent-card-details{left:30px!important;width:270px!important;top:520px!important;bottom:286px!important;overflow:hidden!important}
#talentCardPrint.template-casting .talent-card-photo-strip{left:30px!important;right:30px!important;bottom:45px!important;height:213px!important;flex-wrap:nowrap!important;background:transparent!important}
#talentCardPrint.template-casting .photo-count-3 img{width:calc(33.333% - 4px)!important;height:100%!important}#talentCardPrint.template-casting .photo-count-4 img{width:calc(25% - 4.5px)!important;height:100%!important}
#talentCardPrint.template-casting .talent-card-footer{left:30px!important;right:30px!important;bottom:13px!important;height:24px!important;padding-top:7px!important}
#talentCardPrint.template-casting.info-light .talent-card-meta{top:250px!important}
#talentCardPrint.template-casting.info-light .talent-card-stats,#talentCardPrint.template-casting.info-light .talent-card-details{display:none!important}

/* Preview is scaled by JS on phones so it stays visually identical to the PDF. */
@media screen and (max-width:840px){#talentCardView{overflow-x:hidden!important}#talentCardPrint{transform-origin:top left!important}}

/* Exact same document in print. No alternate print template. */
@media print{
  @page{size:A4 portrait;margin:0}
  html,body{margin:0!important;padding:0!important;background:#fff!important;width:auto!important;height:auto!important}
  body *{visibility:hidden!important}
  #talentCardPrint,#talentCardPrint *{visibility:visible!important}
  #talentCardPrint{position:absolute!important;left:0!important;top:0!important;width:794px!important;height:1123px!important;min-height:1123px!important;max-height:1123px!important;margin:0!important;transform:none!important;box-shadow:none!important;overflow:hidden!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}

/* Orientation-aware contact sheets: preserve the source composition instead of forcing every
   photograph through the same crop. Landscape sets become horizontal contact rows; portrait
   sets keep an agency-style column rhythm. */
#talentCardPrint.template-classic.secondary-landscape .talent-card-photo-strip,
#talentCardPrint.template-minimal.secondary-landscape .talent-card-photo-strip,
#talentCardPrint.template-compcard.secondary-landscape .talent-card-photo-strip{
  flex-direction:column!important;
  flex-wrap:nowrap!important;
}
#talentCardPrint.template-classic.secondary-landscape .photo-count-2 img,
#talentCardPrint.template-minimal.secondary-landscape .photo-count-2 img,
#talentCardPrint.template-compcard.secondary-landscape .photo-count-2 img{
  width:100%!important;height:calc(50% - 3px)!important;
}
#talentCardPrint.template-classic.secondary-landscape .photo-count-3 img,
#talentCardPrint.template-minimal.secondary-landscape .photo-count-3 img,
#talentCardPrint.template-compcard.secondary-landscape .photo-count-3 img{
  width:100%!important;height:calc(33.333% - 4px)!important;
}
#talentCardPrint.template-classic.secondary-landscape .photo-count-4 img,
#talentCardPrint.template-minimal.secondary-landscape .photo-count-4 img,
#talentCardPrint.template-compcard.secondary-landscape .photo-count-4 img{
  width:100%!important;height:calc(25% - 4.5px)!important;
}
#talentCardPrint.template-classic.secondary-landscape .talent-card-photo-strip img,
#talentCardPrint.template-minimal.secondary-landscape .talent-card-photo-strip img,
#talentCardPrint.template-compcard.secondary-landscape .talent-card-photo-strip img{
  object-fit:cover!important;object-position:var(--tc-pos,50% 38%)!important;
}
#talentCardPrint.template-classic.secondary-landscape .talent-card-photo-strip img.tc-media--portrait,
#talentCardPrint.template-minimal.secondary-landscape .talent-card-photo-strip img.tc-media--portrait,
#talentCardPrint.template-compcard.secondary-landscape .talent-card-photo-strip img.tc-media--portrait{
  object-fit:contain!important;background:#e7e1d9!important;
}
#talentCardPrint.template-classic.secondary-portrait .talent-card-photo-strip img.tc-media--landscape,
#talentCardPrint.template-minimal.secondary-portrait .talent-card-photo-strip img.tc-media--landscape{
  object-fit:contain!important;background:#e7e1d9!important;
}
