.explore-return{max-width:1190px;margin:12px auto 0;padding:0 25px;display:flex;align-items:center;gap:24px}
.explore-return a{display:inline-flex;padding:18px 22px;border:1px solid var(--line);border-radius:12px;font-weight:700;color:var(--blue);background:var(--surface,#fff)}
.explore-return a:hover{background:#edf2ff}
.explore-return p{margin:0;color:var(--muted);font-size:14px}
html[data-theme="dark"] .explore-return a{background:#172238;color:#a9c5ff}
@media(max-width:650px){.explore-return{align-items:stretch;flex-direction:column;gap:12px}.explore-return a{justify-content:center}}

/* Each teacher is a single, clearly clickable profile card. */
#team-grid{gap:18px;align-items:stretch}
#team-grid .teacher{display:flex;flex-direction:column;align-items:stretch;align-self:stretch;text-align:left;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 18px #17395d08;transition:border-color .18s,box-shadow .18s,transform .18s}
#team-grid .teacher:hover{border-color:var(--blue);box-shadow:0 8px 24px #17395d15;transform:translateY(-3px)}
#team-grid .teacher:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
#team-grid .teacher .profile-photo,#team-grid .teacher .initials{border-radius:10px;overflow:hidden;margin:0}
#team-grid .teacher h3{margin:16px 0 7px;font-size:21px}
#team-grid .teacher p{margin:0 0 14px;font-size:13px;line-height:1.5}
#team-grid .teacher small{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:12px;font-weight:700}
html[data-theme="dark"] #team-grid .teacher{background:#172238;color:#f3f6ff;border-color:#334663}
html[data-theme="dark"] #team-grid .teacher:hover{border-color:#8cafff}
@media(min-width:651px) and (max-width:900px){#team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#team-grid .teacher{padding:12px}#team-grid .teacher h3{font-size:17px;margin-top:12px}#team-grid .teacher p{font-size:11px}#team-grid .teacher small{font-size:11px}#team-grid .teacher .profile-photo,#team-grid .teacher .initials{height:120px}}
@media(max-width:360px){#team-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#team-grid .teacher{transition:none}#team-grid .teacher:hover{transform:none}}
