.tm-overlay{position:fixed;inset:0;background:rgba(6,20,18,.65);backdrop-filter:blur(4px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;animation:tmFade .2s ease}
.tm-overlay[hidden]{display:none}
@keyframes tmFade{from{opacity:0}to{opacity:1}}
.tm-dialog{position:relative;background:#fff;border-radius:16px;max-width:640px;width:100%;max-height:85vh;overflow:auto;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:tmPop .25s cubic-bezier(.2,.9,.3,1.2)}
@keyframes tmPop{from{transform:translateY(20px) scale(.96);opacity:0}to{transform:none;opacity:1}}
.tm-close{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.9);border:0;width:36px;height:36px;border-radius:50%;font-size:22px;line-height:1;cursor:pointer;color:#111;z-index:2}
.tm-close:hover{background:#fff}
.tm-body{padding:0}
.tm-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:stretch}
.tm-ph{width:100%;overflow:hidden;background:#e6efe9;border-radius:16px 0 0 16px}
.tm-ph img{width:100%;height:100%;min-height:340px;object-fit:cover;display:block}
.tm-meta{padding:22px 22px;display:flex;flex-direction:column;justify-content:space-between;font-size:14px}

.tm-meta-top{flex:1}
.tm-meta .tm-name{margin:0 0 4px;font-size:18px;line-height:1.2;color:#0b1f1c}
.tm-role{color:#25574b;font-weight:600}
.tm-dept{color:#6b7d78;font-size:14px;margin-top:2px}
.tm-section{margin-top:12px}
.tm-label{margin:0 0 4px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#6b7d78;font-weight:700}
.tm-bio{margin:0;color:#22332f;line-height:1.5;font-size:13.5px}
.tm-funfact{font-style:italic;color:#4a5a56}
.tm-contact{margin-top:16px;padding-top:12px;border-top:1px solid #e6efe9;font-size:13px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}

.tm-contact a{color:#1a6d5c;text-decoration:none}
.tm-contact a:hover{text-decoration:underline}
@media (max-width:640px){.tm-grid{grid-template-columns:1fr}.tm-ph{border-radius:16px 16px 0 0}.tm-ph img{min-height:260px;max-height:320px;object-position:center 10%}.tm-meta{padding:18px}}

@media (max-width:640px){.tm-dialog{max-height:94dvh!important}.tm-ph img{min-height:0!important;height:230px!important;max-height:230px!important;object-position:center 10%!important}.tm-meta{padding:14px 18px 16px!important}.tm-meta p,.tm-meta div{font-size:13.5px;line-height:1.45}.tm-meta h3,.tm-meta h2{font-size:19px!important;margin-bottom:2px!important}}

@media (min-width:641px){.tm-dialog{height:min(540px,85vh)}.tm-dialog .tm-body,.tm-dialog .tm-grid{height:100%}.tm-dialog .tm-grid{grid-template-rows:100%}.tm-dialog .tm-ph{height:100%}.tm-dialog .tm-ph img{height:100%;min-height:0}}
