/* Team Members plugin */
.tm-wrap { padding-top: 84px; }
.tm-grid { display: grid; grid-template-columns: repeat(var(--tm-cols, 3), minmax(0, 1fr)); gap: 96px 28px; margin: 0 0 20px; }
.tm-card { position: relative; background: var(--surface, #fff); color: var(--text, #1f2430); text-align: center; border-top: 6px solid var(--accent, #0f766e);
  padding: 92px 24px 26px; box-shadow: 0 8px 24px rgba(16,24,40,.12); border-radius: 0 0 6px 6px; }
.tm-photo { position: absolute; top: -78px; left: 50%; transform: translateX(-50%); width: 148px; height: 148px; border-radius: 40px;
  background: var(--surface, #fff); border: 8px solid rgba(255,255,255,.9); box-shadow: 0 6px 18px rgba(16,24,40,.2); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-photo .tm-initial { font-size: 3rem; font-weight: 700; color: #fff; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent, #0f766e), var(--accent-d, #0b5a54)); }
.tm-name { font-size: 1.35rem; font-weight: 400; margin: 0 0 4px; }
.tm-position { text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; color: var(--muted, #6b7280); margin: 0 0 16px; }
.tm-bio { font-size: .92rem; line-height: 1.6; margin: 0 0 18px; }
.tm-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tm-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 5px; color: #fff !important;
  font-size: .68rem; font-weight: 700; text-decoration: none !important; transition: transform .15s; }
.tm-social a:hover { transform: translateY(-2px); }
@media (max-width: 960px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tm-grid { grid-template-columns: 1fr; } }

/* Sidebar / footer widget */
.tm-mini { list-style: none; margin: 0; padding: 0; }
.tm-mini li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.tm-mini li:last-child { border-bottom: 0; }
.tm-mini .tm-mini-photo { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; flex: none; background: var(--accent, #0f766e); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.tm-mini .tm-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.tm-mini strong { display: block; line-height: 1.2; }
.tm-mini small { color: var(--muted, #6b7280); }

/* Clickable cards + pop-up */
.tm-clickable { cursor: pointer; transition: transform .18s, box-shadow .18s; }
.tm-clickable:hover, .tm-clickable:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,24,40,.18); outline: none; }
.tm-clickable:focus-visible { box-shadow: 0 0 0 3px var(--accent, #0f766e), 0 14px 30px rgba(16,24,40,.18); }
.tm-more { display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--accent, #0f766e); }
.tm-clickable:hover .tm-more { text-decoration: underline; }
.tm-detail { display: none; }
body.tm-lock { overflow: hidden; }
.tm-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; animation: tmfade .18s ease; }
@keyframes tmfade { from { opacity: 0; } to { opacity: 1; } }
.tm-modal { position: relative; background: var(--surface, #fff); color: var(--text, #1f2430); width: min(760px, 100%); max-height: 88vh; overflow: auto; border-radius: 14px;
  border-top: 6px solid var(--accent, #0f766e); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.tm-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--muted, #6b7280); cursor: pointer; z-index: 2; }
.tm-close:hover { color: var(--text, #111); }
.tm-modal-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 32px; }
.tm-d-photo { width: 200px; height: 200px; border-radius: 44px; overflow: hidden; border: 8px solid rgba(0,0,0,.05); background: var(--surface, #fff); box-shadow: 0 6px 18px rgba(16,24,40,.18); }
.tm-d-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tm-d-photo .tm-initial { font-size: 4rem; font-weight: 700; color: #fff; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent, #0f766e), var(--accent-d, #0b5a54)); }
.tm-d-body h3 { font-size: 1.6rem; font-weight: 500; margin: 0 0 2px; }
.tm-d-position { text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--muted, #6b7280); margin: 0 0 14px; }
.tm-d-facts { list-style: none; margin: 0 0 14px; padding: 0; font-size: .92rem; }
.tm-d-facts li { padding: 2px 0; } .tm-d-facts b { display: inline-block; min-width: 72px; color: var(--muted, #6b7280); font-weight: 600; }
.tm-d-body p { margin: 0 0 12px; line-height: 1.65; }
.tm-d-bio { font-weight: 500; }
.tm-d-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tm-d-links a { color: #fff !important; text-decoration: none !important; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 6px; }
.tm-d-links a:hover { opacity: .88; }
@media (max-width: 640px) { .tm-modal-inner { grid-template-columns: 1fr; padding: 28px 22px; justify-items: center; text-align: center; } .tm-d-facts li { text-align: left; } .tm-d-links { justify-content: center; } }


/* 5 and 6 across: smaller, tidier cards that step down on narrower screens */
.tm-c5, .tm-c6 { gap: 82px 18px; }
.tm-c5 .tm-card, .tm-c6 .tm-card { padding: 70px 12px 18px; }
.tm-c5 .tm-photo, .tm-c6 .tm-photo { width: 112px; height: 112px; top: -60px; border-radius: 30px; border-width: 6px; }
.tm-c5 .tm-photo .tm-initial, .tm-c6 .tm-photo .tm-initial { font-size: 2.2rem; }
.tm-c5 .tm-name, .tm-c6 .tm-name { font-size: 1.05rem; }
.tm-c5 .tm-position, .tm-c6 .tm-position { font-size: .68rem; margin-bottom: 10px; }
.tm-c5 .tm-bio, .tm-c6 .tm-bio { font-size: .82rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tm-c5 .tm-social a, .tm-c6 .tm-social a { min-width: 24px; height: 24px; font-size: .6rem; }
@media (max-width: 1200px) { .tm-c5, .tm-c6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .tm-c3, .tm-c4, .tm-c5, .tm-c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .tm-c2, .tm-c3, .tm-c4, .tm-c5, .tm-c6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .tm-grid { grid-template-columns: 1fr !important; } }