/* Approved instructor card system, shared by search results and native profiles. */
.instructor-card,.teacher-profile-card.instructor-card{--card-ink:#253746;--card-muted:#6b7885;--card-border:#25344912;--card-pill:#ffffff90;--card-link:#176b8f;position:relative;min-width:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--card-ink);border:1px solid #e0e7ec;border-radius:28px;background:linear-gradient(145deg,#fff,#f4f6f8);box-shadow:inset 0 1px 0 #ffffffd9,0 2px 5px #1c293308,0 16px 32px #263c4910;transition:box-shadow .18s,border-color .18s;}
.instructor-card.shihan,.teacher-profile-card.instructor-card.shihan{background:linear-gradient(145deg,#f4f5f7,#dfe4e9)}
.instructor-card.shidoin,.teacher-profile-card.instructor-card.shidoin{background:linear-gradient(145deg,#f8f9fb,#e8edf1)}
.instructor-card.fukushidoin,.teacher-profile-card.instructor-card.fukushidoin{background:linear-gradient(145deg,#fcfcfd,#f0f3f6)}
.instructor-card.family,.instructor-card.memorial,.teacher-profile-card.instructor-card.memorial{--card-ink:#fff;--card-muted:#d2e1ef;--card-border:#ffffff25;--card-pill:#ffffff16;--card-link:#fff;border-color:#ffffff30;box-shadow:inset 0 1px 0 #ffffff30,0 3px 8px #0d36551a,0 16px 30px #214f711f}
.instructor-card.founder,.teacher-profile-card.instructor-card.founder{background:radial-gradient(ellipse at 12% 0%,#ffffff12,transparent 62%),linear-gradient(140deg,#122f57,#1d567f)}
.instructor-card.second-doshu,.teacher-profile-card.instructor-card.second-doshu{background:radial-gradient(ellipse at 12% 0%,#ffffff10,transparent 62%),linear-gradient(140deg,#17406c,#24638c)}
.instructor-card.third-doshu,.teacher-profile-card.instructor-card.third-doshu{background:radial-gradient(ellipse at 12% 0%,#ffffff14,transparent 62%),linear-gradient(140deg,#204b77,#286c8f)}
.instructor-card.successor,.teacher-profile-card.instructor-card.successor{background:radial-gradient(ellipse at 12% 0%,#ffffff14,transparent 62%),linear-gradient(140deg,#255580,#2b7092)}
.instructor-card.memorial{background:linear-gradient(145deg,#23303b,#111d28)}
.instructor-card .instructor-title{display:inline-block;font-size:10px;font-weight:600;letter-spacing:.3px;line-height:1.4;padding:5px 10px;border-radius:20px;background:var(--card-pill);border:1px solid var(--card-border);color:var(--card-ink)}
.instructor-card .instructor-description,.instructor-card .instructor-dates{font-size:12px;line-height:1.5;color:var(--card-muted);margin:7px 0}
.instructor-card h3{color:var(--card-ink);font-size:21px;font-weight:600;letter-spacing:-.5px;line-height:1.2;margin:12px 0}
.instructor-card p{color:var(--card-muted);line-height:1.6;font-size:13px;margin:6px 0}
.instructor-card .instructor-grade{color:var(--card-ink);font-weight:500}
.instructor-card .instructor-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--card-border);padding-top:16px;margin-top:18px;font-size:12px;color:var(--card-muted)}
.instructor-card .instructor-primary{display:flex;align-items:center;gap:8px;color:var(--card-link);font-weight:600}
.instructor-chevron{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--card-border);background:var(--card-pill);border-radius:50%;width:22px;height:22px;font-size:18px}
.instructor-card:hover,.instructor-card:has(.result-card-link:focus-visible){box-shadow:inset 0 1px 0 #ffffff80,0 6px 12px #172a3b12,0 20px 36px #263c491c;border-color:#24a4be}
.instructor-card:focus-visible{outline:3px solid #24afce;outline-offset:4px}
/* Specificity preserves the approved tones over the older generic result skin. */
#directory-results .instructor-card{display:block;padding:26px;align-items:start;background:linear-gradient(145deg,#fff,#f4f6f8)}
#directory-results .instructor-card.shihan{background:linear-gradient(145deg,#f4f5f7,#dfe4e9)}
#directory-results .instructor-card.shidoin{background:linear-gradient(145deg,#f8f9fb,#e8edf1)}
#directory-results .instructor-card.fukushidoin{background:linear-gradient(145deg,#fcfcfd,#f0f3f6)}
#directory-results .instructor-card.founder{background:radial-gradient(ellipse at 12% 0%,#ffffff12,transparent 62%),linear-gradient(140deg,#122f57,#1d567f)}
#directory-results .instructor-card.second-doshu{background:radial-gradient(ellipse at 12% 0%,#ffffff10,transparent 62%),linear-gradient(140deg,#17406c,#24638c)}
#directory-results .instructor-card.third-doshu{background:radial-gradient(ellipse at 12% 0%,#ffffff14,transparent 62%),linear-gradient(140deg,#204b77,#286c8f)}
#directory-results .instructor-card.successor{background:radial-gradient(ellipse at 12% 0%,#ffffff14,transparent 62%),linear-gradient(140deg,#255580,#2b7092)}
#directory-results .instructor-card.memorial{background:linear-gradient(145deg,#23303b,#111d28)}
#directory-results .instructor-card .directory-face{width:72px!important;height:72px!important;--portrait-size:64px;border:1px solid #ffffffc9;padding:3px;box-shadow:0 0 0 4px #ffffff40,0 5px 14px #172a3b12;margin-bottom:18px}
#directory-results .instructor-card h3 button{color:var(--card-ink);font:inherit;text-align:left;background:none;padding:0}
#directory-results .instructor-card .directory-metadata{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}
#directory-results .instructor-card .seminar-status{background:var(--card-pill);color:var(--card-muted);border-radius:6px;font-size:10px}
#directory-results .instructor-card .seminar-card-actions button{color:var(--card-link);background:none;padding:0;line-height:1.5;font-size:12px;min-height:28px}
#directory-results .instructor-card .seminar-card-actions span{color:var(--card-muted)}
#directory-results .instructor-card .seminar-card-actions [data-directory-detail]{flex-basis:100%;display:flex;align-items:center;gap:8px;font-weight:600}
#directory-results .instructor-card.is-selected{border-color:#a578df;box-shadow:0 0 0 2px #a578df50}
.seminar-instructor-grid .teacher-profile-card.instructor-card,.teacher-profile-card.instructor-card{display:flex;align-items:flex-start;gap:24px;padding:28px;text-decoration:none}
.teacher-profile-card.instructor-card>div{min-width:0;flex:1}
.teacher-profile-card.instructor-card .avatar{width:84px;height:84px;flex:0 0 84px;border:1px solid #ffffffc9;box-shadow:0 0 0 4px #ffffff40,0 5px 14px #172a3b12}
.teacher-profile-card.instructor-card h3{color:var(--card-ink)}
@media(max-width:599px){#directory-results .instructor-card{padding:24px}.teacher-profile-card.instructor-card{padding:24px;gap:18px;flex-wrap:wrap}.teacher-profile-card.instructor-card .avatar{width:72px;height:72px;flex-basis:72px}}
@media(prefers-reduced-motion:reduce){.instructor-card{transition:none}}
