/* EIU shared team cards (scripts/team_cards.py). Used by about-us.html › Our team and eiudubai.html › Meet the Team.
   Red-ring framed photo (navy ring for the Dubai groups), monogram when there is no photo, bold name with honorific,
   title on its own line + Qualifications info block (Option A, 1 Nov 2026; no bullets, chips or pills), equal-height 4/3/2/1 grid,
   featured leadership card, horizontal cards on phones, hover lift (off with reduced motion), bot-safe padding. */
:root { --tc-red: #9A0805; --tc-red-2: #B70A14; --tc-navy: #284A8D; --tc-navy-d: #1A3268; --tc-ink: #0F1B33; --tc-text: #344054; --tc-line: #E6E9EF; --tc-bot-safe: 176px; }

.tc-grid, .ab-people.tc-grid, .pg-team.tc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pg-body .tc-grid { margin-top: 1rem; }
.tc-grid[data-collapsed] > li:nth-child(n + 13) { display: none; }
.tc-grid[data-limit="8"][data-collapsed] > li:nth-child(n + 9) { display: none; }

.tc { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; background: #fff; border: 1px solid var(--tc-line); border-radius: 20px; padding: 28px 20px 24px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 28px -18px rgba(26,50,104,.28); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.tc::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--tc-red), var(--tc-red-2)); opacity: 0; transition: opacity .35s; }
.tc:hover, .tc.is-hover { transform: translateY(-5px); border-color: #EFCACA; box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 24px 44px -20px rgba(154,8,5,.32); }
.tc:hover::before, .tc.is-hover::before { opacity: 1; }

/* frame */
.tc-frame { position: relative; flex: none; width: 132px; height: 132px; border-radius: 50%; padding: 5px; background: linear-gradient(150deg, #C21A1F 0%, var(--tc-red) 55%, #6E0603 100%);
  box-shadow: 0 14px 26px -12px rgba(154,8,5,.55), 0 2px 6px rgba(16,24,40,.12); }
.tc-frame img, .tc-mono { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid #fff; background: #fff; transition: transform .5s; }
.tc-frame::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); pointer-events: none; }
.tc-mono { display: grid; place-items: center; font-size: 38px; font-weight: 700; letter-spacing: .02em; color: var(--tc-navy-d); background: radial-gradient(circle at 30% 25%, #fff, #E9EDF5 70%); }
.tc:hover .tc-frame img { transform: scale(1.03); }
.tc--navy .tc-frame { background: linear-gradient(150deg, #3A61AE 0%, var(--tc-navy) 50%, var(--tc-navy-d) 100%); box-shadow: 0 14px 26px -12px rgba(26,50,104,.55), 0 2px 6px rgba(16,24,40,.12); }
.tc--navy::before { background: linear-gradient(90deg, var(--tc-navy-d), var(--tc-navy)); }
.tc--navy:hover, .tc--navy.is-hover { border-color: #C9D3E6; box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 24px 44px -20px rgba(26,50,104,.38); }

/* text */
.tc-body { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; margin-top: 18px; flex: 1; }
.tc-name, .ab .tc-name { margin: 0; font-size: .95rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--tc-ink); text-wrap: balance; overflow-wrap: anywhere; }
.tc-hon { color: var(--tc-navy); font-weight: 600; }
/* Info blocks (Nov 1c): Designation and Qualifications share one setup — navy tint, icon tile, uppercase label, same type. */
.tc-info { width: 100%; margin-top: 8px; padding: 10px 12px 11px; border-radius: 12px; background: #F2F5FB; border: 1px solid #E1E7F3; text-align: left; }
.tc-name + .tc-info { margin-top: 14px; }
.tc-info__lab { display: flex; align-items: center; gap: 6px; margin: 0 0 4px !important; font-size: .64rem; font-weight: 700; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--tc-navy) !important; }
.tc-info__ic { flex: none; box-sizing: border-box; width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: #fff; color: var(--tc-red); box-shadow: 0 0 0 1px #E1E7F3; }
.tc--navy .tc-info__ic { color: var(--tc-navy); }
.tc-info__txt { margin: 0 !important; max-width: 100%; font-size: .78rem; line-height: 1.6; color: var(--tc-text) !important; overflow-wrap: anywhere; }
.tc-title { white-space: pre-line; font-weight: 600; color: var(--tc-ink) !important; }

/* featured leadership card */
.tc--featured { flex-direction: row; text-align: left; gap: 40px; margin-bottom: 20px; padding: 36px 44px; border: 0; color: #fff; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #2D5299 0%, var(--tc-navy-d) 55%, #122452 100%); box-shadow: 0 30px 60px -30px rgba(26,50,104,.6); }
.tc--featured::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02); pointer-events: none; }
.tc--featured .tc-frame { width: 212px; height: 212px; padding: 7px; box-shadow: 0 24px 40px -16px rgba(0,0,0,.5), 0 0 0 8px rgba(255,255,255,.06); }
.tc--featured .tc-frame img { border-width: 4px; }
.tc--featured .tc-body { position: relative; z-index: 1; align-items: flex-start; justify-content: center; margin: 0; }
.tc-kicker { margin: 0 0 8px !important; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #F6B9B9 !important; }
.tc--featured .tc-name { font-size: 1.875rem; color: #fff; letter-spacing: -.02em; }
.tc--featured .tc-hon { color: #C9D6F2; }
.tc--featured .tc-info { max-width: 640px; padding: 14px 16px 15px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.tc--featured .tc-name + .tc-info { margin-top: 18px; }
.tc--featured .tc-info + .tc-info { margin-top: 10px; }
.tc--featured .tc-info__lab { color: #C9D6F2 !important; }
.tc--featured .tc-info__ic { box-shadow: none; }
.tc--featured .tc-info__txt { font-size: .9rem; color: #fff !important; }
.tc--featured:hover { transform: none; }

/* EIU Bot safe area: room under the team grids; while cards are on screen the bubble steps aside and the
   mascot docks small at the right edge (still visible and tappable), so it never covers a photo, name or line. */
.tc-section { padding-bottom: calc(var(--tc-bot-safe) + 24px) !important; }
.tc-in-view .eb-launch .eb-bubble { display: none !important; }
.tc-in-view .eb-launch { transform: translateX(var(--tc-dock-x, 40px)) scale(var(--tc-dock-s, .5)); transform-origin: 100% 100%; }
@media (max-width: 1100px) { :root { --tc-dock-x: 44px; } }
@media (max-width: 700px) { :root { --tc-dock-x: 42px; --tc-dock-s: 1; } }

@media (max-width: 1100px) { .tc-grid, .ab-people.tc-grid, .pg-team.tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .tc-grid, .ab-people.tc-grid, .pg-team.tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .tc--featured { gap: 28px; padding: 28px; } .tc--featured .tc-frame { width: 168px; height: 168px; } .tc--featured .tc-name { font-size: 1.6rem; }
}
@media (max-width: 700px) { :root { --tc-bot-safe: 72px; } }
@media (max-width: 560px) {
  .tc-grid, .ab-people.tc-grid, .pg-team.tc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tc-grid[data-collapsed] > li:nth-child(n + 7) { display: none; }
  .tc { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; padding: 18px 26px 18px 16px; border-radius: 16px; }
  .tc-frame { width: 84px; height: 84px; padding: 4px; } .tc-frame img, .tc-mono { border-width: 2px; } .tc-frame::after { inset: 8px; } .tc-mono { font-size: 24px; }
  .tc-body { align-items: flex-start; margin-top: 2px; } .tc-name, .ab .tc-name { font-size: .92rem; }
  .tc-name + .tc-info { margin-top: 10px; } .tc-info { margin-top: 6px; }
  .tc--featured { flex-direction: column; align-items: center; text-align: center; padding: 30px 20px 28px; gap: 20px; }
  .tc--featured .tc-frame { width: 164px; height: 164px; padding: 6px; } .tc--featured .tc-body { align-items: center; } .tc--featured .tc-name { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tc, .tc::before, .tc-frame img, .eb-launch { transition: none !important; }
  .tc:hover, .tc.is-hover { transform: none; } .tc:hover .tc-frame img { transform: none; }
}
