
/* IASCL integrated public member directory — derived from V77.21 public profile presentation */
.members-page{background:#f5f7fa;min-height:100vh}
.members-page .members-shell{padding:34px 0 64px}
.members-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;background:#fff;border:1px solid #dce3ea;border-radius:18px;padding:24px 26px;box-shadow:0 4px 16px rgba(15,23,42,.04)}
.members-hero h1{margin:0 0 7px;color:#173b63;font-size:30px;line-height:1.3}
.members-hero p{margin:0;color:#46596b;line-height:1.8;font-size:13px;max-width:820px}
.members-count{font-size:36px;font-weight:800;color:#1676d2;white-space:nowrap}
.members-tools{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.8fr);gap:12px;margin:18px 0 10px}
.members-tools input,.members-tools select{width:100%;min-height:46px;padding:11px 14px;border:1px solid #d5dee7;border-radius:10px;background:#fff;color:#23384c;font:inherit;outline:none}
.members-tools input:focus,.members-tools select:focus{border-color:#8eb7da;box-shadow:0 0 0 3px rgba(22,118,210,.10)}
.members-directory-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:12px 0 12px}
.members-status{font-size:12px;color:#485b6d}
.members-specialties{position:relative}
.members-specialties>button{border:1px solid #d3dce5;background:#fff;color:#1d527f;border-radius:9px;padding:9px 12px;font:inherit;font-weight:800;cursor:pointer}
.members-specialties .menuItem{position:relative;display:inline-block}
.members-specialties .submenu{position:absolute;top:calc(100% + 7px);right:0;min-width:320px;max-height:58vh;overflow:auto;background:#fff;border:1px solid #dce4eb;border-radius:11px;box-shadow:0 14px 34px rgba(15,23,42,.12);display:none;z-index:30}
.members-specialties .menuItem.open .submenu{display:block}
.members-specialties .submenu a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid #edf1f4;color:#21384d;text-decoration:none;font-size:12px}
.members-specialties .submenu a:hover{background:#f4f9fd;color:#1266a6}
.members-specialties .countBadge{min-width:28px;padding:3px 7px;border-radius:999px;background:#eef5fb;color:#1266a6;text-align:center;font-size:10px;font-weight:800}
.members-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.members-grid .card{background:#fff;border:1px solid #dce3ea;border-radius:15px;overflow:hidden;display:flex;flex-direction:column;min-height:100%;box-shadow:0 2px 8px rgba(15,23,42,.025);cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.members-grid .card:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(15,23,42,.08);border-color:#b8cad9}
.members-grid .card:focus-visible{outline:3px solid rgba(22,118,210,.2);outline-offset:2px}
.members-grid .cardTop{display:flex;gap:13px;padding:14px;border-bottom:1px solid #e1e7ec}
.members-grid .avatar{width:88px;height:108px;border-radius:10px;object-fit:cover;background:#edf2f6;border:1px solid #d4dee7;flex:0 0 auto}
.members-grid .avatarInitials{display:flex;align-items:center;justify-content:center;color:#1d6ea9;font-size:24px;font-weight:800}
.members-grid .meta{min-width:0}
.members-grid .name{font-size:16px;font-weight:800;color:#173b63;margin:1px 0 4px;line-height:1.45}
.members-grid .tag{display:inline-block;margin-top:7px;padding:4px 8px;border-radius:999px;background:#eef5fb;color:#175b8b;font-size:10px;font-weight:800;line-height:1.45}
.members-grid .cardBody{padding:13px 14px 15px;display:flex;flex-direction:column;flex:1}
.members-grid .field{font-size:11px;color:#465a6c;line-height:1.7;overflow-wrap:anywhere}
.members-grid .field b{color:#30475d}
.members-grid .affSrc{margin-top:5px;color:#465969;font-size:9px;line-height:1.55}
.members-grid .metrics{margin-top:7px;padding-top:7px;border-top:1px dashed #e0e6eb}
.members-grid .councilCardField{color:#465b6f;font-size:10px;line-height:1.55;margin-top:6px;overflow-wrap:anywhere}
.members-grid .councilCardField b{color:#365066}
.members-grid .councilLink{color:#175b8b;text-decoration:none;font-weight:800}
.members-grid .cardLinks{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.members-grid .cardLinks a{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #d8e1e8;border-radius:999px;text-decoration:none;color:#244c72;font-size:9px;font-weight:800;background:#fff}
.members-grid .profileOpenHint{margin-top:auto;padding-top:12px;color:#1676d2;font-size:10px;font-weight:800}
.members-grid .empty{grid-column:1/-1;padding:50px;text-align:center;background:#fff;border:1px dashed #d5dfe7;border-radius:14px;color:#485b6c}
/* Profile modal */
#overlay{position:fixed;inset:0;background:transparent;backdrop-filter:none;display:none;align-items:flex-start;justify-content:center;padding:0;z-index:100;overflow:hidden}
#overlay>.modal{max-width:none;width:100vw;height:100vh;max-height:100vh;min-height:100vh;margin:0;border-radius:0;background:#f7f9fc;box-shadow:none;overflow-y:auto;overflow-x:hidden}
#overlay .modalHead{position:sticky;top:0;z-index:10;min-height:58px;display:flex;align-items:center;padding:12px 18px;background:#fff;border-bottom:1px solid #d9e1e9}
#overlay .overlayHeadActions{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
#overlay .overlayLang{min-width:78px;padding:8px 12px;border:1px solid #d5dee7;background:#fff;border-radius:8px;color:#1e537f;font-weight:800;cursor:pointer}
#overlay .close{width:40px;height:40px;min-width:40px;padding:0;margin:0;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:50%;background:#eef3f7;border:1px solid #d3dce5;color:#173b63;font-size:22px;line-height:1;font-family:Segoe UI,Arial,sans-serif;cursor:pointer;text-align:center;vertical-align:middle}
#overlay .modalBody{padding:18px 22px 26px;background:#f7f9fc}
#overlay .profileLayout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;align-items:start}
#overlay .profileSide{position:sticky;top:calc(58px + 4px);padding:16px;background:#fff;border:1px solid #d8e0e8;border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.06)}
#overlay .profilePhoto,#overlay .profilePlaceholder{width:100%;height:270px;border-radius:12px;object-fit:cover;border:1px solid #ccd7e2;background:#edf2f6}
#overlay .profilePlaceholder{display:flex;align-items:center;justify-content:center;color:#1d6ea9;font-size:54px;font-weight:800}
#overlay .profileSide h4{font-size:19px;line-height:1.45;color:#173b63;margin:14px 0 7px;font-weight:800}
#overlay .profileSideSpecialty{font-weight:800;color:#244d76!important;font-size:15px!important;line-height:1.65!important}
#overlay .profileSideCouncil{margin:9px 0 7px;padding:9px 10px;border:1px solid #cbd8e4;border-radius:9px;background:#f5f9fc;color:#244d76;font-size:13px;line-height:1.55}
#overlay .profileSideCouncil b{display:block;font-size:10px;color:#485b6e;margin-bottom:3px}
#overlay .profileSideCouncil .councilLink{color:#175b8b;text-decoration:none;font-weight:800}
#overlay .profileSideAffiliations,#overlay .profileSideEmail{font-size:12px;line-height:1.7;color:#485b6e}
#overlay .profileSideAffiliations b,#overlay .profileSideEmail b{display:block;color:#365066;margin:8px 0 3px;font-size:10px}
#overlay .profileSideAffiliations a,#overlay .profileSideEmail a{color:#175b8b;text-decoration:none}

#overlay .profileMain{min-width:0}
#overlay .profileQuickNav{position:sticky;top:62px;z-index:8;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin:0 0 15px;padding:4px;background:#e9f0f7;border:1px solid #cbd8e4;border-radius:10px}
#overlay .profileQuickNav a{display:flex;align-items:center;justify-content:center;min-height:38px;padding:7px 8px;border-radius:7px;background:transparent;color:#244d76;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap;cursor:pointer}
#overlay .profileQuickNav a.active{background:#1676d2;color:#fff;box-shadow:0 2px 7px rgba(22,118,210,.22)}
#overlay .profileSection{margin:0 0 15px;padding:15px;background:#fff;border:1px solid #d8e0e8;border-radius:13px;box-shadow:0 2px 8px rgba(15,23,42,.025);scroll-margin-top:120px}
#overlay .sectionTitle{font-size:15px;line-height:1.4;color:#174d80;padding:0 0 9px;margin:0 0 12px;border-bottom:2px solid #e6eef5}
#overlay .bio{border:1px solid #dbe3eb;background:#fbfcfe;border-radius:10px;padding:13px 14px;font-size:13px;line-height:1.9;color:#2c4054;white-space:pre-line}
#overlay .metricGrid{display:grid;grid-template-columns:repeat(5,minmax(80px,1fr));gap:8px;margin:0}
#overlay .metricBox{min-height:76px;padding:11px 7px;border:1px solid #d7e1ea;border-radius:10px;background:#f9fbfd;display:flex;flex-direction:column;justify-content:center;gap:4px;text-align:center}
#overlay .metricBox strong{font-size:22px;line-height:1.1;color:#1269b0}
#overlay .metricBox small{font-size:9px;font-weight:800;color:#465a6b}
#overlay .profileAffiliations{display:grid;gap:7px;margin-top:8px}
#overlay .profileAffItem{position:relative;padding:10px 11px 10px 14px;border:1px solid #d7e1ea;border-radius:9px;background:#fff}
#overlay .profileAffItem strong{display:block;font-size:11px;color:#1c4f7e;margin-bottom:3px}
#overlay .profileAffItem span{display:block;font-size:10px;line-height:1.6;color:#475b6d}
#overlay .profileLinks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
#overlay .profileLinks a{min-height:58px;padding:10px 12px;border:1px solid #d6e0e9;border-radius:9px;background:#fbfcfe;color:#244c72;font-size:11px;text-decoration:none}
#overlay .profileLinks .linkLabel{font-size:12px;color:#1b5687}
#overlay .profileLinks .linkUrl{font-size:9px;color:#455869;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:left;margin-top:4px}
#overlay .enrichPanel h4{font-size:14px;color:#174d80;margin:0 0 9px}
#overlay .pubItem{padding:10px 11px;border:1px solid #d8e1e9;border-radius:9px;background:#fff;margin-bottom:8px}
#overlay .pubTitle{font-size:11px;font-weight:800;color:#2a435a;line-height:1.6}
#overlay .pubMeta{margin-top:4px;font-size:9px;color:#475a6c;line-height:1.6}
#overlay .contrib{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
#overlay .chip{border:1px solid #d8e2ea;border-radius:999px;padding:5px 8px;background:#f9fbfd;color:#445b6f;font-size:9px}
#overlay .sourceNote{margin:0 0 14px;padding:10px 12px;border:1px solid #d9e2ea;border-radius:9px;background:#f3f7fa;color:#465a6c;font-size:10px;line-height:1.7}
#overlay .profileFooterActions{margin-top:0;display:flex;justify-content:flex-end}
#overlay .profileFooterActions .btn{min-width:90px}
@media(max-width:1050px){.members-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.members-tools{grid-template-columns:1fr}.members-hero{align-items:flex-start;flex-direction:column}.members-count{font-size:30px}}
@media(max-width:700px){.members-page .members-shell{padding:22px 0 40px}.members-hero{padding:19px}.members-hero h1{font-size:24px}.members-grid{grid-template-columns:1fr}.members-grid .cardTop{padding:12px}.members-grid .avatar{width:78px;height:96px}.members-specialties .submenu{left:0;right:auto;min-width:min(320px,calc(100vw - 40px))}.members-directory-head{align-items:flex-start;flex-direction:column}.members-grid .name{font-size:15px}#overlay{padding:0}#overlay>.modal{max-height:100vh;min-height:100vh;border-radius:0}#overlay .modalHead{padding:12px 14px}#overlay .modalBody{padding:12px}#overlay .profileLayout{grid-template-columns:1fr;gap:12px}#overlay .profileSide{position:static;display:grid;grid-template-columns:105px 1fr;gap:0 13px;align-items:center;padding:11px}#overlay .profilePhoto,#overlay .profilePlaceholder{width:105px;height:125px;grid-row:1/6;border-radius:10px;font-size:32px}#overlay .profileSide h4{margin:0 0 3px;font-size:15px}#overlay .profileSideSpecialty{font-size:11px!important}.profileQuickNav{position:sticky!important;top:0!important;display:flex!important;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap;margin:0 0 10px!important}.profileQuickNav a{min-width:110px}.profileSection{padding:12px!important;margin-bottom:10px!important}.metricGrid{grid-template-columns:repeat(2,1fr)!important}.profileLinks{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.members-grid .card{transition:none}}


/* V46.41: Association management roles */
.societyRoleList{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.societyRoleItem{display:inline-block;padding:7px 10px;border:1px solid #cfe0e8;border-radius:10px;background:#f5fafc;color:#124e68;font-weight:700;font-size:.9rem;line-height:1.45}

/* V46.207: ISID enrichment badge restored beside the publication snapshot heading. */
#overlay .enrichSnapshotHeading{display:flex;align-items:center;gap:9px;margin:0 0 9px;font-size:14px;color:#174d80}
#overlay .enrichSnapshotHeading.iascl-content-fa{direction:rtl;text-align:right}
#overlay .enrichSnapshotHeading.iascl-content-en{direction:ltr;text-align:left}
#overlay .enrichSnapshotHeading .snapshotTitle{display:inline}
#overlay .isidSourceBadge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:4px 9px;border:1px solid #c7e1d2;border-radius:999px;background:#eef8f2;color:#1d7150;font-size:10px;font-weight:800;line-height:1.25;white-space:nowrap;flex:0 0 auto}
@media(max-width:700px){#overlay .enrichSnapshotHeading{gap:7px;align-items:flex-start;flex-wrap:wrap}#overlay .isidSourceBadge{font-size:9px}}

/* V46.207 — eliminate the redundant document scrollbar while the member profile is open. */
html.modal-open,
html.modal-open body,
body.modal-open{
  overflow:hidden !important;
}
body.modal-open{
  width:100% !important;
  height:100vh !important;
}
#overlay{
  overflow:hidden !important;
}
#overlay>.modal{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
}

/* V46.221 — member directory responsive/accessibility hardening */
:where(.members-tools input,.members-tools select,.members-tools button,.member-card a,.member-card button):focus-visible{outline:3px solid #0e83db;outline-offset:2px}
.members-tools input,.members-tools select{min-height:46px}
@media(max-width:760px){
 .members-hero{align-items:flex-start;flex-direction:column;padding:20px 18px}
 .members-count{font-size:30px}
 .members-tools{grid-template-columns:1fr}
 .members-directory-head{align-items:flex-start;flex-wrap:wrap}
 .members-grid{grid-template-columns:1fr!important}
 .profileLinks{grid-template-columns:1fr!important}
}
@media(max-width:520px){
 .members-page .members-shell{padding:20px 0 40px}
 .members-hero h1{font-size:25px}
 .members-hero p{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.members-grid .card{transition:none!important;animation:none!important}}

/* V46.518 - same reading improvements as the Advances, News and Events pages (V46.516), applied to the public member profile:
   the resume is justified (English and Persian); English titles, journal names and figures inside a Persian profile use the
   English typeface with Latin digits (the Persian typeface would draw them as Persian digits). */
#overlay #profileText p{text-align:justify!important;text-justify:inter-word}
#overlay #profileText ul,#overlay #profileText ol{text-align:start}
html[lang="fa"] #overlay .pubItem .iascl-text-en,html[lang="fa"] #overlay .pubItem [lang="en"],html[lang="fa"] #overlay #profileText [lang="en"],html[lang="fa"] #overlay #researchContent [lang="en"],html[lang="fa"] #overlay #researchContent .iascl-text-en{font-family:"IASCL Serif","Times New Roman",Times,serif!important;font-variant-numeric:lining-nums}
html[lang="fa"] #overlay #profileText p .iascl-text-en{unicode-bidi:isolate}

/* V46.522 - the number in front of each affiliation in the profile side panel is separated from the text by a small space (it used to read "1.Department ..."), in both languages */
#overlay .sideAffItem{display:flex;align-items:flex-start;gap:.4em;margin-top:4px}
#overlay .sideAffNumber{flex:none}
#overlay .sideAffText{min-width:0;overflow-wrap:anywhere}
