/* Talent card, one clear view. Loaded after the older card styles, so these win. */

/* ── bigger card on desktop: more room for the content ── */
@media (min-width: 900px) {
  .talent-detail-modal.tdx.tdx { width: min(1200px, calc(100vw - 48px)); height: min(840px, 92vh); }
  .talent-detail-modal.tdx.tdx .talent-detail-media { flex: 0 0 38%; width: 38%; }
  .talent-detail-modal.tdx.tdx .talent-detail-photo-wrap { height: 100%; position: relative; }
  .talent-detail-modal.tdx.tdx .talent-detail-photo-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%), radial-gradient(120% 80% at 0% 0%, rgba(200,16,46,.22), transparent 60%); }
  .talent-detail-modal.tdx.tdx .talent-detail-photo-wrap > #tdPhoto { width: 100%; height: 100%; object-fit: cover; }
  .tdx.tdx .talent-detail-content { padding: 34px 40px 0; }
  .tdx.tdx .tdx-name { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.01em; }
}

/* ── the at a glance strip ── */
.tdi { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin: 18px 0 4px; }
.tdi:empty { display: none; }
.tdi-t { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease; min-width: 0; }
.tdi-t:hover { transform: translateY(-2px); border-color: rgba(255,58,92,.4); }
.tdi-ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(200,16,46,.16); color: #ff5b78; }
.tdi-v { font-weight: 800; font-size: 1.02rem; line-height: 1.2; color: var(--text-1, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdi-l { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #a08184); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdi-t.is-good { border-color: rgba(60,200,120,.35); background: linear-gradient(160deg, rgba(60,200,120,.14), rgba(60,200,120,.04)); }
.tdi-t.is-good .tdi-ic { background: rgba(60,200,120,.2); color: #52d98d; }
.tdi-t.is-good .tdi-ic::after { content: ""; position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: #52d98d; box-shadow: 0 0 0 0 rgba(82,217,141,.6); animation: tdiPulse 2s infinite; }
.tdi-t.is-good .tdi-ic svg { opacity: 0; }
.tdi-t.is-bad { border-color: rgba(244,176,0,.35); background: linear-gradient(160deg, rgba(244,176,0,.12), rgba(244,176,0,.03)); }
.tdi-t.is-bad .tdi-ic { background: rgba(244,176,0,.18); color: #f4b000; }
@keyframes tdiPulse { 70% { box-shadow: 0 0 0 9px rgba(82,217,141,0); } 100% { box-shadow: 0 0 0 0 rgba(82,217,141,0); } }
@media (prefers-reduced-motion: reduce) { .tdi-t.is-good .tdi-ic::after { animation: none; } .tdi-t { transition: none; } }
.tdi-priv { display: inline-flex; gap: 7px; align-items: center; margin: 10px 0 0; padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.2; cursor: help;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.16); color: var(--text-2, #d4b8ba); }
.tdi-priv svg { flex: none; width: 14px; height: 14px; }

button.tdi-t { font: inherit; text-align: left; cursor: pointer; color: inherit; }
.tdi-t.is-reel { border-color: rgba(255,58,92,.5); background: linear-gradient(160deg, rgba(200,16,46,.3), rgba(200,16,46,.08)); }
.tdi-t.is-reel .tdi-ic { background: #c8102e; color: #fff; }
.tdi-t.is-reel:hover { border-color: #ff3a5c; }

/* the old one line stats are now tiles */
.tdx-name { margin-bottom: 8px; }
.has-info .tdx-stats { display: none; }

/* ── actions stay in view: a recruiter never scrolls to find Book ── */
.tdx.tdx .tdx-actions { position: sticky; top: 0; z-index: 7; margin: 0 -8px; padding: 14px 8px;
  background: linear-gradient(180deg, var(--card, #242424) 72%, rgba(36,36,36,0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tdx.tdx .tdx-tabs { top: 71px; }

/* ── the About tab reads in one order: bio first, then proof, then the calendar ── */
.tdx.tdx [data-tdx-panel="about"]:not([hidden]) { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.tdx [data-tdx-panel="about"] #tdBio { order: 1; font-size: 1.02rem; line-height: 1.7; margin: 0; color: var(--text-1, #f2eaea); }
.tdx [data-tdx-panel="about"] #tdAboutEmpty { order: 1; }
.tdx [data-tdx-panel="about"] #tdGallery { order: 2; }
.tdx [data-tdx-panel="about"] #tdSocialLinks { order: 3; }
.tdx [data-tdx-panel="about"] #tdContactRow { order: 3; }
.tdx [data-tdx-panel="about"] #hpTalent { order: 5; }
.tdx [data-tdx-panel="about"] #rcTalentBox { order: 6; }
.tdx [data-tdx-panel="about"] #tdClaim { order: 7; }

/* ── the showreel comes first: a featured, cinematic block that a recruiter or sponsor sees straight away ── */
.tdx [data-tdx-panel="about"] #tpTalentBox { display: contents; }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-avail-row { display: none; }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-owner { order: 0; }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-banner { order: 0; }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-sec { order: 4; margin-top: 0; }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-sec:has(.tp-video, .tp-video-link, .tp-cine) { order: 0; }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-sec:has(.tp-video) {
  padding: 14px; border-radius: 20px; border: 1px solid rgba(255,110,130,.3);
  background: radial-gradient(120% 140% at 0% 0%, rgba(200,16,46,.22), rgba(255,255,255,.03) 60%); box-shadow: 0 18px 50px rgba(200,16,46,.14); }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-sec:has(.tp-video) > h4 { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; color: var(--text-1, #fff); font-size: .8rem; }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-sec:has(.tp-video) > h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3a5c; box-shadow: 0 0 0 4px rgba(255,58,92,.25); }
.tdx [data-tdx-panel="about"] #tpTalentBox > .tp-sec:has(.tp-video) > h4::after { content: "Watch first"; margin-left: auto; font-size: .64rem; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text-2, #d4b8ba); }
.tdx .tp-sec .tp-video { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tdx .tp-sec .tp-video-tall { max-width: 300px; }
.tdi-flash { animation: tdiFlash 1.4s ease; }
@keyframes tdiFlash { 0%, 100% { box-shadow: 0 18px 50px rgba(200,16,46,.14); } 40% { box-shadow: 0 0 0 4px rgba(255,58,92,.55), 0 18px 50px rgba(200,16,46,.3); } }
.tdx [data-tdx-panel="about"] #hpTalent { order: 5; }

/* achievement as a highlighted line */
.tdx.tdx .talent-achievement-box { margin-top: 16px; border-radius: 14px; }

/* a compact calendar: dates are readable without the grid taking over the card */
.tdx .hp-cal { gap: 3px; }
.tdx .hp-day { aspect-ratio: auto; min-height: 0; height: 34px; font-size: .82rem; border-radius: 9px; }
.tdx .hp-legend { margin-top: 4px; }

/* ── phones: full screen, tiles in two columns ── */
@media (max-width: 899px) {
  .tdi { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .tdx.tdx .tdx-actions { margin: 0 -4px; padding: 10px 4px; }
}
@media (max-width: 520px) {
  .tdi-t { padding: 10px 11px; column-gap: 8px; }
  .tdi-ic { width: 32px; height: 32px; border-radius: 10px; }
  .tdi-v { font-size: .94rem; }
}

/* light theme */
[data-theme="light"] .tdi-t { background: #fff; border-color: rgba(200,16,46,.12); }
[data-theme="light"] .tdi-v { color: #2a1a1c; }
[data-theme="light"] .tdi-priv { background: rgba(200,16,46,.04); border-color: rgba(200,16,46,.2); color: #5a3a3e; }

/* ── icons only: Message, Follow, Like, Share are quiet round icon buttons next to one clear Book button ── */
.tdx.tdx .tdx-actions .action-btn-msg, .tdx.tdx .tdx-actions .action-btn-follow { font-size: 0; gap: 0; width: 42px; padding: 0 !important; border-radius: 50% !important; justify-content: center; }
.tdx.tdx .tdx-actions .action-btn-msg svg, .tdx.tdx .tdx-actions .action-btn-msg .phx, .tdx.tdx .tdx-actions .action-btn-follow svg, .tdx.tdx .tdx-actions .action-btn-follow .phx { width: 18px; height: 18px; font-size: 18px; }
.tdx.tdx .tdx-actions { gap: 10px; }
.tdx.tdx .tdx-icons { gap: 10px; }
/* the likers line and empty boxes take no room */
.tdx #tdLikers:empty, .tdx .tdx-none[hidden] { display: none; }

/* more height: use the screen */
@media (min-width: 900px) { .talent-detail-modal.tdx.tdx { max-height: none; height: min(880px, 94vh); } }

/* "Liked by you" sits on the photo, out of the way of the actions */
.talent-detail-photo-wrap #tdLikers { position: absolute; left: 14px; bottom: 14px; z-index: 4; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.talent-detail-photo-wrap #tdLikers:empty { display: none; }

/* next free dates */
.hp-next { display: grid; gap: 10px; }
.hp-next > h4 { margin: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #9a9a9a); }
.hp-next-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hp-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(60,200,120,.35); background: rgba(60,200,120,.1); color: #6fe39a; font-weight: 700; font-size: .82rem; }
.hp-none { font-size: .88rem; color: var(--muted, #9a9a9a); }
.hp-seeall { margin-left: auto; padding: 8px 4px; border: 0; background: none; color: var(--text-2, #d4b8ba); font: inherit; font-weight: 700; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp-calwrap:not(.is-open) { display: none; }
.hp-calwrap { margin-top: 12px; }

/* less repetition on a public card: no empty terms box for visitors, a slim press kit line, no spare padding */
.tdx .hp-terms:has(.hp-muted):not(:has(form)) { display: none; }
.tdx .hp-kit { padding: 8px 0 0; border: 0; background: none; }
.tdx .hp-kit .hp-btn { padding-inline: 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.tdx [data-tdx-panel="about"] { gap: 14px; }

/* phones keep the same rule: icon buttons stay small round icons, only Book is wide */
.tdx.tdx .tdx-actions .action-btn-msg, .tdx.tdx .tdx-actions .action-btn-follow, .tdx.tdx .tdx-actions .tdx-ib { flex: 0 0 42px !important; width: 42px !important; min-width: 42px !important; max-width: 42px; padding: 0 !important; font-size: 0 !important; gap: 0 !important; justify-content: center; }
.tdx.tdx .tdx-actions .action-btn-book { flex: 1 1 auto; }
.tdx.tdx .tdx-actions .tdx-icons { flex: 0 0 auto; }
.tdx.tdx .tdx-actions .action-btn-follow span, .tdx.tdx .tdx-actions .action-btn-msg span { display: none !important; }

/* headline, specialty tags and a read more fold */
.tdx [data-tdx-panel="about"] #tdLead { order: -1; display: grid; gap: 10px; }
.tdx [data-tdx-panel="about"] #tdLead[hidden] { display: none; }
.tdl-h { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 800; line-height: 1.3; letter-spacing: -.005em; color: var(--text-1, #fff); }
.tdl-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tdl-tag { padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: var(--text-2, #d4b8ba); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.tdx [data-tdx-panel="about"] #tdBio { max-width: 64ch; font-size: 1rem; line-height: 1.7; color: var(--text-2, #d9c5c7); }
.tdl-clamp:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tdl-more { order: 1; align-self: flex-start; margin-top: -6px; padding: 4px 0; border: 0; background: none; color: #ff5b78; font: inherit; font-weight: 800; font-size: .86rem; cursor: pointer; }
.tdl-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* a small or square photo: shown whole over a soft blurred copy, so it is never zoomed and cropped */
.talent-detail-photo-wrap.is-wide { position: relative; overflow: hidden; background: #111; }
.talent-detail-photo-wrap.is-wide::before { content: ""; position: absolute; inset: -30px; background: var(--tdp) center / cover; filter: blur(26px) brightness(.55); }
.talent-detail-photo-wrap.is-wide > #tdPhoto { position: relative; z-index: 1; object-fit: contain !important; }

/* the pinned action bar sits at the very top of the scroll area and covers what scrolls under it */
.tdx.tdx .talent-detail-content { padding-top: 0; }
.tdx.tdx .tdx-head { padding-top: 34px; }
.tdx.tdx .tdx-actions { background: var(--card, #242424); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 10px 14px -12px rgba(0,0,0,.6); }
.tdx.tdx .tdx-tabs { background: var(--card, #242424); }

/* while a photo loads, the panel is a soft red glow, never an empty black hole */
.talent-detail-photo-wrap { background: radial-gradient(90% 70% at 30% 20%, rgba(200,16,46,.28), #151515 70%); }
.talent-detail-photo-wrap img { transition: opacity .25s ease; }

/* ── the newer window styles (event-detail-v2.css) use !important, so the layout rules above are repeated here to win ── */
@media (min-width: 861px) {
  .talent-detail-modal.tdx.tdx { width: min(1200px, calc(100vw - 48px)) !important; height: min(880px, 94vh) !important; }
  .tdx.tdx .talent-detail-media { flex: 0 0 38% !important; width: 38% !important; }
  .tdx.tdx .talent-detail-content { padding: 0 40px 0 !important; }
  .tdx.tdx .tdx-head { padding-top: 34px; }
}
@media (max-width: 860px) {
  .tdx.tdx .talent-detail-content { padding-top: 0 !important; }
  .tdx.tdx .tdx-head { padding-top: 20px; }
}
/* icons only, one row, on every screen: Book is wide, everything else a round icon */
.tdx.tdx .tdx-actions { flex-wrap: nowrap !important; align-items: center; gap: 10px !important; }
.tdx.tdx .tdx-actions > #tdBookBtn { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; height: 44px !important; padding: 0 18px !important; justify-content: center; }
.tdx.tdx .tdx-actions > #tdMsgBtn,
.tdx.tdx .tdx-actions #tdFollowBtn { flex: 0 0 44px !important; width: 44px !important; min-width: 44px !important; max-width: 44px !important; height: 44px !important; padding: 0 !important; gap: 0 !important; font-size: 0 !important; border-radius: 50% !important; justify-content: center; }
.tdx.tdx .tdx-actions #tdFollowBtn .tdx-sr, .tdx.tdx .tdx-actions #tdFollowBtn span, .tdx.tdx .tdx-actions #tdMsgBtn span { display: none !important; }
.tdx.tdx .tdx-icons { flex: 0 0 auto !important; display: flex; gap: 10px; }
.tdx.tdx .tdx-icons .tdx-ib { flex: 0 0 44px !important; width: 44px !important; height: 44px !important; min-width: 44px !important; }

/* the About card: headline, tags and bio in one clean, well spaced card */
.tdx [data-tdx-panel="about"] > #tdAbout { order: -1; }
.tda { position: relative; padding: 22px 24px 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(160deg, rgba(255,255,255,.065), rgba(255,255,255,.02)); box-shadow: 0 14px 34px -22px rgba(0,0,0,.8); display: grid; gap: 14px; }
.tda[hidden] { display: none; }
.tda-l { display: flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff5b78; }
.tda-l::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,91,120,.45), transparent); }
.tda #tdLead { order: 0; gap: 12px; margin: 0; }
.tda #tdBio { margin: 0; max-width: none; font-size: 1.02rem; line-height: 1.75; color: var(--text-2, #d9c5c7); }
.tda .tdl-clamp:not(.is-open) { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.tda .tdl-more { margin: -4px 0 0; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,91,120,.4); background: rgba(255,91,120,.08); }
.tda .tdl-more:hover { background: rgba(255,91,120,.16); text-decoration: none; }
[data-theme="light"] .tda { background: #fff; border-color: rgba(200,16,46,.14); box-shadow: 0 12px 30px -22px rgba(120,20,40,.4); }
[data-theme="light"] .tda #tdBio { color: #3a2a2d; }
@media (max-width: 520px) { .tda { padding: 18px 18px 16px; border-radius: 18px; } }

.tda > .tda-l { order: 0; }
.tdx.tdx .tda > #tdLead { order: 1; }
.tdx.tdx .tda > #tdBio { order: 2; }
.tdx.tdx .tda > #tdMore { order: 3; }

/* ── a more striking About card ── */
.tda { border: 1px solid transparent; border-radius: 22px; padding: 26px 28px 22px; gap: 16px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(200,16,46,.20), transparent 55%) padding-box,
    linear-gradient(165deg, rgba(255,255,255,.075), rgba(255,255,255,.02)) padding-box,
    linear-gradient(140deg, rgba(255,91,120,.65), rgba(255,255,255,.08) 38%, rgba(255,255,255,.04)) border-box;
  box-shadow: 0 22px 50px -26px rgba(200,16,46,.55), 0 2px 0 rgba(255,255,255,.04) inset; animation: tdaIn .4s ease both; }
@keyframes tdaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tda { animation: none; } }
.tda-l { gap: 8px; }
.tda-l::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: #ff3a5c; box-shadow: 0 0 0 4px rgba(255,58,92,.2); transform: rotate(45deg); }
.tda #tdLead .tdl-h { font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.2; letter-spacing: -.012em; padding-top: 10px; position: relative; }
.tda #tdLead .tdl-h::before { content: ""; position: absolute; top: 0; left: 0; width: 38px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ff3a5c, #c8102e); }
.tda .tdl-tags { gap: 8px; }
.tda .tdl-tag { padding: 6px 14px; font-size: .8rem; letter-spacing: .01em; color: #ffd9df; background: linear-gradient(160deg, rgba(255,91,120,.2), rgba(200,16,46,.1)); border: 1px solid rgba(255,110,130,.35); }
.tda #tdBio { font-size: 1.04rem; line-height: 1.8; color: #cdb8bb; }
.tda #tdBio .tda-lead { display: block; margin-bottom: 8px; font-size: 1.16rem; line-height: 1.6; font-weight: 600; color: #fff; }
.tda .tdl-more { align-self: stretch; text-align: center; padding: 9px 16px; font-size: .88rem; color: #fff; background: linear-gradient(135deg, rgba(255,58,92,.9), rgba(200,16,46,.8)); border: 0; box-shadow: 0 10px 24px -12px rgba(200,16,46,.9); transition: transform .15s ease, box-shadow .15s ease; }
.tda .tdl-more:hover { transform: translateY(-1px); background: linear-gradient(135deg, #ff4a6a, #d4122f); }
[data-theme="light"] .tda { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, rgba(200,16,46,.5), rgba(200,16,46,.08)) border-box; }
[data-theme="light"] .tda #tdBio { color: #4a3438; }
[data-theme="light"] .tda #tdBio .tda-lead { color: #1a0a0d; }
[data-theme="light"] .tda .tdl-tag { color: #8a0f26; }
@media (max-width: 520px) { .tda { padding: 20px 18px 18px; } .tda #tdBio .tda-lead { font-size: 1.08rem; } }

/* ── calm and readable: high contrast text, a comfortable line length, nothing competing with the words ── */
.tda { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); box-shadow: none; animation: none; padding: 24px 26px 20px; gap: 14px; border-radius: 18px; }
.tda-l { font-size: .72rem; color: #ff7a90; }
.tda-l::before { display: none; }
.tda-l::after { background: rgba(255,255,255,.12); }
.tda #tdLead .tdl-h { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; padding-top: 0; color: #fff; }
.tda #tdLead .tdl-h::before { display: none; }
.tda .tdl-tag { color: #f3e6e8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-weight: 600; }
.tda #tdBio { max-width: 64ch; font-size: 1.05rem; line-height: 1.8; color: #eadfe0; letter-spacing: .005em; }
.tda #tdBio .tda-lead { margin-bottom: 10px; font-size: 1.12rem; line-height: 1.65; font-weight: 600; color: #fff; }
.tda .tdl-clamp:not(.is-open) { -webkit-mask-image: none; mask-image: none; -webkit-line-clamp: 7; }
.tda .tdl-more { align-self: flex-start; text-align: left; padding: 8px 16px; font-size: .88rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); box-shadow: none; }
.tda .tdl-more:hover { transform: none; background: rgba(255,255,255,.16); }
[data-theme="light"] .tda { background: #fff; border-color: rgba(0,0,0,.1); }
[data-theme="light"] .tda #tdLead .tdl-h, [data-theme="light"] .tda #tdBio .tda-lead { color: #1a0a0d; }
[data-theme="light"] .tda #tdBio { color: #3a2a2d; }
[data-theme="light"] .tda .tdl-more { color: #1a0a0d; background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.15); }

.tdx.tdx .tda #tdBio { font-size: 1.05rem; line-height: 1.8; color: #eadfe0; }
.tdx.tdx .tda #tdBio .tda-lead { font-size: 1.12rem; line-height: 1.65; color: #fff; }
[data-theme="light"] .tdx.tdx .tda #tdBio { color: #3a2a2d; }
[data-theme="light"] .tdx.tdx .tda #tdBio .tda-lead { color: #1a0a0d; }

/* the old rule `.talent-detail-photo-wrap img { width: 100%; height: 100% }` also hit the small liker avatar once it sits on the photo, so keep it small */
.talent-detail-photo-wrap #tdLikers .lkl { max-width: 100%; }
.talent-detail-photo-wrap #tdLikers .lkl-av { width: 26px !important; height: 26px !important; border-radius: 50%; object-fit: cover; }
.talent-detail-photo-wrap #tdLikers { width: auto; max-width: calc(100% - 28px); height: auto; max-height: 44px; overflow: hidden; }

/* the note under "Add video" */
.tp-cine-n { margin-top: 8px; font-size: .76rem; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.62); }
[data-theme="light"] .tp-cine-n { color: rgba(0,0,0,.55); }

/* Book: a compact button in the same dark red glass as "Publish an event" */
.tdx.tdx .tdx-actions > #tdBookBtn { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; height: 44px !important; padding: 0 24px !important; gap: 8px !important; justify-content: center; border-radius: 999px !important;
  color: #fff !important; font-weight: 600 !important; font-size: .88rem !important;
  background: linear-gradient(135deg, rgba(200,16,46,.18) 0%, rgba(139,0,26,.14) 100%) !important; border: 1px solid rgba(200,16,46,.6) !important;
  box-shadow: 0 0 16px rgba(200,16,46,.35), 0 3px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08) !important; transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.tdx.tdx .tdx-actions > #tdBookBtn:hover { background: linear-gradient(135deg, rgba(200,16,46,.34) 0%, rgba(139,0,26,.26) 100%) !important; box-shadow: 0 0 22px rgba(200,16,46,.5), 0 3px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12) !important; transform: translateY(-1px); }
[data-theme="light"] .tdx.tdx .tdx-actions > #tdBookBtn { color: #8a0f26 !important; background: rgba(200,16,46,.08) !important; }

/* dashboard: shortcuts on each talent page row, clean and quiet */
#pfModal .pfs { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 10px; }
#pfModal .pfs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#pfModal .pfs-l { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9a8c8f; }
#pfModal .pfs-vis { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
#pfModal .pfs-opt { all: unset; box-sizing: border-box; padding: 6px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #b9aaad; cursor: pointer; transition: background .18s ease, color .18s ease; }
#pfModal .pfs-opt:hover { color: #fff; }
#pfModal .pfs-opt.on { background: linear-gradient(135deg, rgba(200,16,46,.55), rgba(139,0,26,.45)); color: #fff; box-shadow: 0 0 0 1px rgba(255,91,120,.45) inset; cursor: default; }
#pfModal .pfs-opt:focus-visible { outline: 2px solid #ff6680; outline-offset: 2px; }
#pfModal .pfs-opt:disabled { opacity: .6; }
#pfModal .pfs-hint { margin: -2px 0 0; font-size: 12.5px; line-height: 1.5; color: #9a8c8f; }
#pfModal .pfs-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
#pfModal .pfs-a { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #e9dfe0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .15s ease, border-color .15s ease, transform .15s ease; }
#pfModal .pfs-a:hover { background: rgba(200,16,46,.16); border-color: rgba(255,91,120,.5); transform: translateY(-1px); }
#pfModal .pfs-a:focus-visible { outline: 2px solid #ff6680; outline-offset: 2px; }
#pfModal .pfs-a svg { flex: none; opacity: .9; }
@media (prefers-reduced-motion: reduce) { #pfModal .pfs-a, #pfModal .pfs-opt { transition: none; } #pfModal .pfs-a:hover { transform: none; } }

/* dashboard: business page and recruiter rows share the talent row style */
#pfModal .pfr-chip { margin-left: auto; flex: none; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
#pfModal .pfr-chip.ok { color: #7be0a4; background: rgba(60,200,120,.14); border: 1px solid rgba(60,200,120,.3); }
#pfModal .pfr-chip.wait { color: #f4b000; background: rgba(244,176,0,.12); border: 1px solid rgba(244,176,0,.3); }
#pfModal .pfr-chip.no { color: #ff8a9a; background: rgba(255,91,120,.1); border: 1px solid rgba(255,91,120,.3); }
#pfModal .pfr .pft-ph { display: grid; place-items: center; }

/* ── the big card, a bit bigger: the whole card in view, nothing hidden ── */
@media (min-width: 861px) {
  .talent-detail-modal.tdx.tdx { width: min(1320px, calc(100vw - 32px)) !important; height: min(940px, 96vh) !important; max-height: none !important; }
}
/* the close button has its own corner: the action icons never sit under it */
.tdx.tdx .tdx-actions { padding-right: 64px; }
.tdx.tdx .tdx-close { top: 12px; right: 12px; }
/* breathing room at the end, so the last line is never cut off by the edge */
.tdx.tdx .talent-detail-content { padding-bottom: 36px !important; }

/* ── the action row uses the whole width: Book and the five icons are spread evenly ── */
.tdx.tdx .tdx-actions { justify-content: space-between !important; gap: 8px !important; padding-right: 8px; }
.tdx.tdx .tdx-actions > .tdx-icons { display: contents !important; }
.tdx.tdx .tdx-actions > #tdBookBtn { flex: 0 1 auto !important; min-width: 96px !important; }
/* while the bar is pinned at the top, it leaves the corner free for the close button */
.tdx.tdx .tdx-actions.is-stuck { padding-right: 60px; }

/* phones: every action fits and every icon shows. The Book button takes its own full row, the round icons share the next one, nothing is cut at the right. */
@media (max-width: 560px) {
  .tdx.tdx .tdx-actions { flex-wrap: wrap !important; row-gap: 10px; justify-content: flex-start; }
  .tdx.tdx .tdx-actions > .ed-own, .tdx.tdx .tdx-actions > #tdBookBtn, .tdx.tdx .tdx-actions > .action-btn-book { flex: 1 1 100% !important; max-width: none !important; width: auto !important; }
  .tdx.tdx .tdx-actions > #tdMsgBtn, .tdx.tdx .tdx-actions #rcSaveBtn, .tdx.tdx .tdx-actions #tdFollowBtn, .tdx.tdx .tdx-actions #tdLikeBtn, .tdx.tdx .tdx-actions .share-wrap {
    flex: 1 1 0 !important; min-width: 44px !important; max-width: 64px !important; width: auto !important; }
  /* the message icon shows (a rule for small screens was hiding both versions of it) */
  .tdx.tdx .tdx-actions > #tdMsgBtn .phx { display: inline-block !important; width: 18px; height: 18px; font-size: 18px; }
  .tdx.tdx .tdx-actions > #tdMsgBtn svg { display: none !important; }
  .tdx.tdx .tdx-actions > #tdMsgBtn .phx:empty::before { display: block; }
}

/* "Liked by you and Hadjara": a quiet pill under the place, not over the photo */
.tdx #tdLikers { display: inline-flex; max-width: 100%; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.tdx #tdLikers:empty { display: none; }
.tdx #tdLikers .lkl { max-width: 100%; padding: 0; border: 0; background: none; }

/* availability and achievement: two compact cards on one line */
.tdi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tdi .tdi-t { padding: 8px 11px; column-gap: 9px; }
.tdi .tdi-ic { width: 30px; height: 30px; border-radius: 9px; }
.tdi .tdi-v { font-size: .9rem; }
.tdi .tdi-l { font-size: .6rem; }
.tdi.tdi .talent-achievement-box { margin: 0; padding: 8px 11px; gap: 9px; min-width: 0; border-radius: 14px; }
.tdi .tdx-ach-ic { width: 30px; height: 30px; border-radius: 9px; }
.tdi .tdx-ach-ic svg { width: 15px; height: 15px; }
.tdi .tdx-ach-txt { min-width: 0; }
.tdi .achievement-label { font-size: .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tdi #tdAchievement { font-size: .84rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the name and field caption always sit above the photo (the wide photo layer used to hide them) */
.tdx .tdx-cap { z-index: 3; pointer-events: none; }
