/* innovedge-biodata.css — fits the TC Resources biodata pages (tc-biodata.css)
   under the Innovedge header. Loaded after tc-biodata.css. */
/* TC's header is fixed; Innovedge's is sticky, so drop TC's top offsets. */
.tcb { --header-h: 0px; background: transparent; font-size: 16px; }
.tcb .bio-tray { z-index: 95; }
/* keep the floating chat buttons clear of the shortlist tray */
body:has(.tcb .bio-tray:not([hidden])) .float-actions { bottom: 96px; }
@media (max-width: 760px) { body:has(.tcb .bio-tray:not([hidden])) .float-actions { bottom: calc(14px + env(safe-area-inset-bottom)); } }
/* phones: lift TC's smallest labels to a readable size */
@media (max-width: 760px) {
  .tcb .bio-new, .tcb .bio-status, .tcb .bio-tab-count { font-size: 12px; }
  .tcb .tcw-launch-eyebrow { font-size: 11px; }
  .tcb .tcw-launch-cta { font-size: 12px; }
  .tcb .bio-thumb-label { font-size: 10px; }
}

/* Innovedge only (not on TC Resources) */
/* The Match Advisor card keeps the orbiting shooting star; TC's wand rules are switched off. */
.tcb .tcw-orbit { display: block; }
.tcb .tcw-wand { display: none; }

/* Cover wizard: sits under the text on the left, off the photo (desktop) */
@media (min-width: 961px) {
  body[data-page="caregivers"] .tcb .cover { align-content: center; height: auto; max-height: none; min-height: min(calc(50vw + var(--header-h, 86px)), 88vh); padding-bottom: 48px; }
  body[data-page="caregivers"] .tcb .cover > .cover-point { position: relative; left: auto; top: auto; width: auto; height: auto; justify-self: start; margin-top: 28px; z-index: 4; }
  body[data-page="caregivers"] .tcb .cover-point::after { display: none; }
  body[data-page="caregivers"] .tcb .tcw-launch--cover { position: relative; left: auto; top: auto; width: 380px; max-width: 100%; transform: none; animation: ie-wiz-bob 3.2s ease-in-out infinite; }
  body[data-page="caregivers"] .tcb .tcw-launch.tcw-launch--cover:hover, body[data-page="caregivers"] .tcb .tcw-launch.tcw-launch--cover:focus-visible { animation: none; transform: translateY(-4px); }
  body[data-page="caregivers"] .tcb .tcw-launch--cover::before { display: none; }
}
@keyframes ie-wiz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { body[data-page="caregivers"] .tcb .tcw-launch--cover { animation: none; } }

/* cover title: four lines at most */
@media (min-width: 761px) {
  body[data-page="caregivers"] .tcb .cover-field { max-width: min(46rem, 60vw); }
  body[data-page="caregivers"] .tcb .cover-field h1 { max-width: 24ch; font-size: clamp(1.8rem, 3vw, 3.1rem); }
}
@media (max-width: 760px) { body[data-page="caregivers"] .tcb .cover-field h1 { font-size: 1.62rem; letter-spacing: .03em; } }
/* Innovedge wants this too (Bernard, 10 Nov): biodata cards on phones show the small photos
   on the left and the main photo on the right. Not TC-only; please do not revert. */
@media (max-width: 760px) {
  .tcb .bio-card.bio-card .bio-photo--has-photo .bio-thumbs { order: -1; }
}
/* the Innovedge header logo keeps its shape on biodata pages: undo a TC phone rule
   (".brand img { width: 96px }") that is not scoped to .tcb and squashed the logo */
@media (max-width: 760px) {
  .site-header .brand { width: auto; height: auto; }
  .site-header .brand img { width: auto !important; height: 40px; max-width: none; }
}
@media (max-width: 380px) { .site-header .brand img { height: 34px; } }

/* ---------- phones: compact shortlist bar + drawer (Innovedge only) ----------
   build/innovedge-tray.js adds the bar, the drawer heading and the list.
   Wider screens keep TC's full tray, so everything new is hidden there. */
.tcb .bio-mini, .tcb .bio-tray-head, .tcb .bio-tray-list, .tcb .bio-tray-back { display: none; }
@media (max-width: 760px) {
  .tcb .bio-mini {
    display: flex; align-items: center; gap: 10px; position: fixed; z-index: 95;
    left: calc(12px + env(safe-area-inset-left)); right: calc(80px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 56px; padding: 6px 6px 6px 12px; border-radius: 18px;
    background: rgba(13,18,11,.94); color: #fff; cursor: pointer;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px -12px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08);
  }
  .tcb .bio-mini[hidden] { display: none; }
  .tcb .bio-mini-faces { display: flex; flex: 0 0 auto; padding-left: 8px; }
  .tcb .bio-mini-faces img, .tcb .bio-mini-faces i {
    width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; object-fit: cover; object-position: 50% 12%;
    border: 2px solid #10160d; background: #3a4234; display: block;
  }
  .tcb .bio-mini-count { flex: 1 1 auto; min-width: 0; font: 600 .95rem/1.2 var(--font-head, "Rubik", sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tcb .bio-mini-view {
    flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--lime, #b6f23c); color: #10160d; font: 700 .9rem/1 var(--font-head, "Rubik", sans-serif);
    display: inline-flex; align-items: center; gap: 6px;
  }
  .tcb .bio-mini-view::after { content: ""; width: 0; height: 0; border: 5px solid transparent; border-bottom-color: currentColor; border-top-width: 0; }

  /* the tray itself becomes the drawer */
  .tcb .bio-tray { display: none; }
  .tcb .bio-tray.is-open {
    display: block; z-index: 131; inset: auto 0 0 0; bottom: 0; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0;
    background: #fff; color: #161a13; box-shadow: 0 -18px 50px rgba(0,0,0,.3); animation: ie-tray-up .26s cubic-bezier(.2,.8,.2,1);
  }
  .tcb .bio-tray.is-open::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: #d9ddd3; }
  body.ie-tray-open .tcb .bio-tray-back { display: block; position: fixed; inset: 0; z-index: 130; background: rgba(8,11,7,.55); }
  body.ie-tray-open .tcb .bio-mini { display: none; }
  body.ie-tray-open .float-actions { display: none; }
  .tcb .bio-tray.is-open .bio-tray-inner { display: block; }
  .tcb .bio-tray.is-open .bio-tray-text { display: none; }
  .tcb .bio-tray.is-open .bio-tray-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .tcb .bio-tray-title { margin: 0; font: 700 1.1rem/1.3 var(--font-head, "Rubik", sans-serif); }
  .tcb .bio-tray-x, .tcb .bio-tray-rm {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #161a13;
    font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  }
  .tcb .bio-tray-rm { width: 40px; height: 40px; background: #f1f3ee; font-size: 1.25rem; }
  .tcb .bio-tray.is-open .bio-tray-list { display: block; list-style: none; margin: 2px 0 12px; padding: 0; }
  .tcb .bio-tray-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eceee8; }
  .tcb .bio-tray-face { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #e8ebe3; }
  .tcb .bio-tray-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
  .tcb .bio-tray-who { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
  .tcb .bio-tray-who b { font: 700 .95rem/1.25 var(--font-head, "Rubik", sans-serif); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tcb .bio-tray-who small { font-size: .8rem; color: #5d6557; }
  .tcb .bio-tray-who em { font-style: normal; font-weight: 600; color: #8a6a12; }
  .tcb .bio-tray-who em.is-available { color: #1c8f45; }
  .tcb .bio-tray.is-open .bio-tray-actions { display: grid; gap: 10px; width: 100%; }
  .tcb .bio-tray.is-open .bio-tray-actions .bio-btn { width: 100%; min-height: 48px; }
  .tcb .bio-tray.is-open .bio-tray-actions .bio-btn--ghost { background: #fff; color: #161a13; border: 2px solid #161a13; }
  .tcb .bio-tray.is-open .bio-tray-actions .bio-btn--ghost:disabled { opacity: .45; }
  .tcb .bio-tray.is-open .bio-tray-clear { order: 4; justify-self: center; color: #5d6557; }
  body.ie-tray-open { overflow: hidden; }
  @keyframes ie-tray-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

  /* ---------- phones: tighter helper card, same details (text, pills and photos unchanged) ---------- */
  .tcb .bio-card.bio-card .bio-bar { padding: 8px 14px 9px; }
  .tcb .bio-card.bio-card .bio-ident h3 { line-height: 1.25; }
  .tcb .bio-card.bio-card .bio-ident p { margin-top: 0; line-height: 1.3; }
  .tcb .bio-card.bio-card .bio-ident .bio-origin { margin-top: 4px; line-height: 1.75; }
  .tcb .bio-card.bio-card .bio-body { padding: 8px 14px 12px; }
  .tcb .bio-card.bio-card .bio-sections { gap: 7px; }
  .tcb .bio-card.bio-card .bio-sec h4 { margin-bottom: 2px; line-height: 1.3; }
  .tcb .bio-card.bio-card .bio-actions { margin-top: 9px; padding-top: 9px; gap: 6px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .tcb .bio-tray.is-open { animation: none; } }

/* ---------- phones: compact biodata hero, first helper on the first screen ----------
   Title, line and Match Advisor stay; the Match Advisor card becomes its button. */
@media (max-width: 760px) {
  body[data-page="caregivers"] .tcb .cover { min-height: 0; height: auto; padding: 26px 16px 18px; align-content: end; }
  body[data-page="caregivers"] .tcb .cover-field { gap: 6px; }
  body[data-page="caregivers"] .tcb .cover-field .ed-label { font-size: .7rem; }
  body[data-page="caregivers"] .tcb .cover-field h1 { font-size: 1.3rem; line-height: 1.18; letter-spacing: .03em; }
  body[data-page="caregivers"] .tcb .cover-field-text { font-size: .9rem; line-height: 1.45; }
  body[data-page="caregivers"] .tcb .cover-point { position: static; width: auto; height: auto; margin: 12px 0 0; justify-self: start; }
  body[data-page="caregivers"] .tcb .cover-point::after { display: none; }
  body[data-page="caregivers"] .tcb .tcw-launch--cover { position: static; width: auto; max-width: none; padding: 0; transform: none; animation: none;
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body[data-page="caregivers"] .tcb .tcw-launch--cover::before, body[data-page="caregivers"] .tcb .tcw-launch--cover::after { display: none; }
  body[data-page="caregivers"] .tcb .tcw-launch--cover .tcw-launch-copy,
  body[data-page="caregivers"] .tcb .tcw-launch--cover .tcw-launch-face,
  body[data-page="caregivers"] .tcb .tcw-launch--cover .tcw-wand,
  body[data-page="caregivers"] .tcb .tcw-launch--cover .tcw-orbit { display: none; }
  body[data-page="caregivers"] .tcb .tcw-launch--cover .tcw-launch-cta { width: auto; min-height: 44px; margin: 0; padding: 0 18px; font-size: .74rem; }
  body[data-page="caregivers"] .tcb .tcw-launch--cover .tcw-launch-cta::before { content: "\2726"; margin-right: 7px; font-size: .9em; }

  /* the four nationality tabs as one row that scrolls sideways */
  .tcb .bio-tabs { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px 10px; width: auto; max-width: none;
    border-radius: 0; background: none; box-shadow: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tcb .bio-tabs::-webkit-scrollbar { display: none; }
  .tcb .bio-tabs .bio-tab { flex: 0 0 auto; flex-direction: row; gap: 8px; min-height: 44px; height: auto; width: auto; padding: 0 14px; white-space: nowrap;
    border-radius: 999px; }
  .tcb .bio-tabs .bio-tab:not(.is-on) { background: #fff; box-shadow: inset 0 0 0 1px #dfe3da; }
}

/* ---------- photographs: no empty "Photo 2/3/4" boxes; a single photo stands alone, centred ---------- */
.tcb .bio-card.bio-card .bio-photo--single { justify-content: center; }
.tcb .bio-card.bio-card .bio-photo--single .bio-thumbs, .tcb .hp-thumbs:has(.bio-thumbs .bio-thumb:only-child) { display: none; }
.tcb .bio-card.bio-card .bio-photo--single .bio-shots-wrap { margin: 0 auto; }

/* ---------- reserved helpers step back a little so available ones stand out ---------- */
.tcb .bio-card:has(.bio-status--reserved) .bio-photo img, .tcb .br-card:has(.bio-status--reserved) img { filter: saturate(.55); opacity: .82; }
.tcb .bio-card:has(.bio-status--reserved) .bio-bar { background: #3a3d37; }

/* ---------- equal preference numbers are explained ---------- */
.tcb .bio-tie-note { margin: 4px 0 0; font-size: .78rem; color: #6a6f64; }

/* ---------- no results: a real Clear all filters button ---------- */
.tcb .bio-empty .bio-btn { margin: 14px auto 0; min-height: 46px; padding: 0 24px; }
.tcb .bio-empty p { margin: 0; }

/* ---------- phones: tap targets of at least 44px ---------- */
@media (max-width: 760px) {
  .tcb .bio-arrow { width: 38px; height: 38px; margin-top: -19px; opacity: 1; }
  .tcb .bio-arrow::before { content: ""; position: absolute; inset: -4px; }
  .tcb .bio-arrow svg { width: 15px; height: 15px; }
  .tcb .bio-pager-num, .tcb .bio-pager-step { min-width: 44px; min-height: 44px; }
}

/* ---------- desktop: the filter panel and back-to-top stay above the shortlist bar ----------
   --ie-tray-h is the bar's height, kept up to date by innovedge-tray.js. */
@media (min-width: 761px) {
  body:has(.tcb .bio-tray:not([hidden])) .tcb .bio-filters-inner { max-height: calc(100vh - 130px - var(--ie-tray-h, 84px)); }
  body:has(.tcb .bio-tray:not([hidden])) .to-top { bottom: calc(var(--ie-tray-h, 84px) + 16px); }
}

/* the shortlist note sits above the shortlist bar; Copy message stays dark on light */
@media (min-width: 761px) { body:has(.tcb .bio-tray:not([hidden])) .tcb .bio-toast { bottom: calc(var(--ie-tray-h, 84px) + 16px); } }
.tcb .wa-sheet-actions .wa-copy, .tcb .wa-sheet-actions .wa-copy:hover, .tcb .wa-sheet-actions .wa-copy:focus-visible, .tcb .wa-sheet-actions .wa-copy:active { color: #1a1a1a !important; }

/* phones: the shortlist bar is narrower beside the WhatsApp button, so its count fits */
@media (max-width: 760px) {
  .tcb .bio-mini { gap: 8px; padding-left: 10px; }
  .tcb .bio-mini-faces img, .tcb .bio-mini-faces i { width: 26px; height: 26px; margin-left: -10px; }
  .tcb .bio-mini-count { font-size: .88rem; }
  .tcb .bio-mini-view { padding: 0 14px; }
}

/* ---------- Enquire on WhatsApp: choose Christie, Trinity or Ray ---------- */
.tcb .wa-sheet-actions .wa-open { display: none; }
.tcb .ie-wa-team { margin-top: 18px; display: grid; gap: 8px; }
.tcb .ie-wa-team-h { margin: 0 0 2px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2f5c05; }
.tcb .ie-wa-person { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 8px; border-radius: 16px; background: #25D366; color: #10160d !important; text-decoration: none; transition: background .2s, transform .2s; }
.tcb .ie-wa-person:hover, .tcb .ie-wa-person:focus-visible { background: #1fb457; transform: translateY(-1px); }
.tcb .ie-wa-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid rgba(255,255,255,.8); flex: 0 0 auto; }
.tcb .ie-wa-person span { flex: 1 1 auto; display: grid; gap: 1px; min-width: 0; }
.tcb .ie-wa-person b { font-size: 1rem; }
.tcb .ie-wa-person small { font-size: .8rem; opacity: .85; }
.tcb .ie-wa-person i { width: 20px; height: 20px; flex: 0 0 auto; }
.tcb .ie-wa-person svg { width: 100%; height: 100%; }

/* phones: the helper's name bar (name, ref, nationality, status) sits at the
   top of her card, above the photos, so each card starts with who she is */
@media (max-width: 760px) {
  .tcb .bio-card .bio-main { display: contents; }
  .tcb .bio-card .bio-bar { order: -1; }
}

/* ---------- helper card buttons (mobile review item 4, 19 Nov) ----------
   Four buttons with icons: More Details, WhatsApp, Download Biodata, Shortlist.
   Desktop: one row of four, labels may take two lines.
   Phones: More Details across the top, the other three in one slim row with
   short sentence-case labels ("WhatsApp" in place of "Enquire on WhatsApp"). */
.tcb .bio-card.bio-card .bio-actions .bio-lbl-short { display: none; }
.tcb .bio-card.bio-card .bio-actions .bio-btn { gap: 7px; text-decoration: none; }
.tcb .bio-card.bio-card .bio-actions .bio-btn::before {
  content: ""; flex: none; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--ie-ico) center / contain no-repeat; mask: var(--ie-ico) center / contain no-repeat;
}
.tcb .bio-card.bio-card .bio-actions .bio-btn--dark { --ie-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.tcb .bio-card.bio-card .bio-actions .bio-btn--wa { --ie-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2a8.2 8.2 0 0 1-4.2-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7.5-.1 1.5-.6 1.8-1.2.2-.6.2-1.1.1-1.2l-.4-.2Z'/%3E%3C/svg%3E"); }
.tcb .bio-card.bio-card .bio-actions .bio-btn--pdf { --ie-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M12 11v6m-3-3 3 3 3-3'/%3E%3C/svg%3E"); border-color: rgba(26,26,26,.16); background: #f4f6f1; color: var(--tc-ink); }
.tcb .bio-card.bio-card .bio-actions .bio-btn--pdf:hover { border-color: var(--tc-ink); }
.tcb .bio-card.bio-card .bio-actions .bio-btn--pick { --ie-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3Cpath d='M12 7v6m-3-3h6'/%3E%3C/svg%3E"); }
.tcb .bio-card.bio-card .bio-actions .bio-btn--pick[aria-pressed="true"] { --ie-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3Cpath d='m9 10 2 2 4-4'/%3E%3C/svg%3E"); }
/* the layout follows the width of the button area itself, so a narrow desktop
   card gets the stacked layout too */
.tcb .bio-card.bio-card .bio-body { container: ie-body / inline-size; }
.tcb .bio-card.bio-card .bio-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tcb .bio-card.bio-card .bio-actions .bio-btn { min-height: 40px; padding: 4px 8px; line-height: 1.1; white-space: normal; }
.tcb .bio-card.bio-card .bio-actions .bio-btn--dark { grid-column: 1 / -1; }
.tcb .bio-card.bio-card .bio-actions .bio-btn--wa, .tcb .bio-card.bio-card .bio-actions .bio-btn--pdf, .tcb .bio-card.bio-card .bio-actions .bio-btn--pick {
  min-width: 0; font-size: .76rem; letter-spacing: 0; text-transform: none; gap: 5px; text-align: center;
}
.tcb .bio-card.bio-card .bio-actions .bio-btn--wa::before, .tcb .bio-card.bio-card .bio-actions .bio-btn--pdf::before, .tcb .bio-card.bio-card .bio-actions .bio-btn--pick::before { width: 15px; height: 15px; }
.tcb .bio-card.bio-card .bio-actions .bio-lbl-long { display: none; }
.tcb .bio-card.bio-card .bio-actions .bio-lbl-short { display: inline; }
@container ie-body (min-width: 460px) {
  /* desktop: one slim row; same wording as phones ("WhatsApp", sentence case) */
  .tcb .bio-card.bio-card .bio-actions { grid-template-columns: 1.15fr .95fr 1.3fr 1fr; gap: 6px; }
  .tcb .bio-card.bio-card .bio-actions .bio-btn { grid-column: auto; min-height: 38px; padding: 4px 8px; white-space: nowrap; line-height: 1.1; text-align: center; }
  html:not([lang^="en"]) .tcb .bio-card.bio-card .bio-actions .bio-btn { white-space: normal; }   /* BM / 中文 labels are longer: let them wrap */
  .tcb .bio-card.bio-card .bio-actions .bio-btn--dark { font-size: .7rem; letter-spacing: .03em; }
  .tcb .bio-card.bio-card .bio-actions .bio-btn--wa, .tcb .bio-card.bio-card .bio-actions .bio-btn--pdf, .tcb .bio-card.bio-card .bio-actions .bio-btn--pick { font-size: .76rem; }
  .tcb .bio-card.bio-card .bio-actions .bio-btn::before { width: 16px; height: 16px; }
  /* desktop: icon above the words */
  .tcb .bio-card.bio-card .bio-actions .bio-btn { flex-direction: column; gap: 4px; min-height: 52px; padding: 6px 8px; border-radius: 16px !important; }
}

/* helper card: Work Preference, Past Work Experience, Overseas Experience and
   Household Compatibility list one item per line; on phones they sit in two
   columns like desktop (Personal Details stays full width) */
.tcb .bio-card.bio-card .bio-sec:not(:first-child) .bio-chips { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
.tcb .bio-card.bio-card .bio-sec:not(:first-child) .bio-chips > li { max-width: 100%; }
@media (max-width: 760px) {
  .tcb .bio-card.bio-card .bio-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .tcb .bio-card.bio-card .bio-sec:first-child { grid-column: 1 / -1; }
}

/* helper card: a very light dark border; a shortlisted card's green border is
   1px thicker than before (3px) */
.tcb .bio-card.bio-card { outline: 1px solid rgba(26, 26, 26, .14); outline-offset: 0; }
.tcb .bio-card.bio-card.is-picked { outline: 3px solid var(--tc-crimson, #2f5c05); outline-offset: 0; }

/* "Available" on the helper cards' dark name bar: Innovedge logo green, a little larger */
.tcb .bio-bar .bio-status.bio-status--available {
  color: #95e71c; background: rgba(149, 231, 28, .14);
  box-shadow: inset 0 0 0 1px rgba(149, 231, 28, .45);
  font-size: .9rem; min-height: 34px; padding: 0 15px;
}
.tcb .bio-bar .bio-status.bio-status--available::before { width: 10px; height: 10px; background: #95e71c; animation-name: ie-live; }
@keyframes ie-live {
  0% { box-shadow: 0 0 0 0 rgba(149, 231, 28, .55); }
  70% { box-shadow: 0 0 0 7px rgba(149, 231, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(149, 231, 28, 0); }
}
@media (max-width: 760px) { .tcb .bio-card.bio-card .bio-bar .bio-status.bio-status--available { font-size: .84rem; min-height: 30px; padding: 0 13px; } }

/* "Same number = equal preference": italic, with an asterisk, on its own line */
.tcb .bio-tie-note { font-style: italic; }
.tcb .bio-tie-note::before { content: "*"; }
.tcb .bio-card .bio-tie-note--row { grid-column: 1 / -1; margin: -4px 0 0; white-space: nowrap; }
/* phones: Overseas Experience and Household Compatibility go back to full width,
   items side by side (as before); Work Preference / Past Work stay in two columns */
@media (max-width: 760px) {
  .tcb .bio-card.bio-card .bio-sections > .bio-sec:nth-of-type(4),
  .tcb .bio-card.bio-card .bio-sections > .bio-sec:nth-of-type(5) { grid-column: 1 / -1; }
  .tcb .bio-card.bio-card .bio-sections > .bio-sec:nth-of-type(4) .bio-chips,
  .tcb .bio-card.bio-card .bio-sections > .bio-sec:nth-of-type(5) .bio-chips { flex-direction: row; flex-wrap: wrap; }
}
/* Download Biodata is a link, not a button: give it the buttons' typeface */
.tcb .bio-card.bio-card .bio-actions .bio-btn--pdf { font-family: "Century Gothic", CenturyGothic, "URW Gothic", Rubik, "Avant Garde", "TeX Gyre Adventor", sans-serif; }
