/* Africa Researcher Directory */
.dir-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.dir-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.dir-header-title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; color: #e6edf3; }
.dir-header-sub { font-size: .78rem; color: #8b949e; margin-top: .2rem; }
.dir-register-btn { padding: .42rem 1rem; background: #1f6feb; color: #fff; border: none; border-radius: 7px; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dir-register-btn:hover { background: #388bfd; }
.dir-search-bar { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.dir-search-input { flex: 1; min-width: 180px; padding: .4rem .7rem; background: #161b22; border: 1px solid #30363d; border-radius: 7px; color: #c9d1d9; font-size: .82rem; font-family: inherit; outline: none; transition: border-color .15s; }
.dir-search-input:focus { border-color: #58a6ff; }
.dir-filter-sel { padding: .4rem .6rem; background: #161b22; border: 1px solid #30363d; border-radius: 7px; color: #c9d1d9; font-size: .82rem; font-family: inherit; outline: none; }
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .75rem; }
.dir-empty { color: #484f58; font-size: .85rem; padding: 1.5rem; text-align: center; }
.dir-card { background: #161b22; border: 1px solid #21262d; border-radius: 10px; padding: .9rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .15s; }
.dir-card:hover { border-color: rgba(88,166,255,.3); }
.dir-card-hdr { display: flex; gap: .6rem; align-items: flex-start; }
.dir-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#1f6feb,#388bfd); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.dir-card-info { min-width: 0; }
.dir-name { font-size: .88rem; font-weight: 700; color: #e6edf3; line-height: 1.3; }
.dir-role-country { font-size: .7rem; color: #8b949e; margin-top: .1rem; }
.dir-role-badge { padding: .1rem .35rem; background: #21262d; border-radius: 3px; color: #8b949e; font-size: .65rem; }
.dir-inst { font-size: .7rem; color: #484f58; margin-top: .1rem; line-height: 1.3; }
.dir-focus-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.dir-tag { font-size: .65rem; font-weight: 600; padding: .1rem .38rem; border: 1px solid; border-radius: 4px; }
.dir-skills { display: flex; flex-wrap: wrap; gap: .25rem; }
.dir-skill { font-size: .65rem; color: #8b949e; background: #21262d; padding: .1rem .38rem; border-radius: 3px; font-family: 'Cascadia Code','Fira Mono',monospace; }
.dir-contact { font-size: .68rem; color: #484f58; }
/* Modal */
.dir-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.dir-modal { background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 1.5rem; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.dir-modal-title { font-size: .95rem; font-weight: 700; color: #e6edf3; margin-bottom: .25rem; }
.dir-modal-field { display: flex; flex-direction: column; gap: .2rem; }
.dir-modal-label { font-size: .72rem; color: #8b949e; font-weight: 600; }
.dir-modal-input { padding: .38rem .65rem; background: #0d1117; border: 1px solid #30363d; border-radius: 5px; color: #e6edf3; font-size: .82rem; font-family: inherit; outline: none; transition: border-color .15s; }
.dir-modal-input:focus { border-color: #58a6ff; }
.dir-modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .25rem; }
.dir-modal-cancel { padding: .38rem .85rem; background: #21262d; border: 1px solid #30363d; border-radius: 6px; color: #8b949e; font-size: .82rem; cursor: pointer; font-family: inherit; }
.dir-modal-save { padding: .38rem .85rem; background: #238636; border: none; border-radius: 6px; color: #fff; font-size: .82rem; font-weight: 600; cursor: pointer; font-family: inherit; }
