/* Shared visual updates. This file loads AFTER style.css. */
:root { color-scheme: only light; }
body { background: #f0f1f2; color: #263d4c; }
.hero { height:auto; min-height:260px; padding:28px 48px 0; display:block; background:#fff !important; background-image:none !important; }
.hero-main { display:flex; justify-content:space-between; align-items:center; gap:24px; min-height:170px; padding-bottom:22px; }
.hero .hero-name { margin:0; max-width:58%; min-width:0; }
.hero .hero-name img { width:385px; max-width:100%; height:auto; mix-blend-mode:normal; }
.hero .hero-name p { margin:8px 0; font-weight:900; font-size:clamp(26px,3vw,44px); letter-spacing:-.6px; }
html:not([lang=fa]) .profile-heading h1 { font-weight:900; }
.hero-logo { display:block; width:240px; max-width:32%; flex-shrink:1; }
.hero-logo img { display:block; width:100%; opacity:1; }
.hero-bottom { background:#fff !important; min-height:76px; padding:14px 0; gap:24px; }
.hero-bottom form { width: min(390px,60%); min-height:44px; flex:0 1 390px; background:#fff; }
.hero-bottom input { background:#fff; color:#183951; }
.hero-bottom .email-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; border:1px solid #b7c9d6; border-radius:5px; padding:9px 14px; min-height:44px; color:#165694; background:#fff; font-size:13px; }
.email-button:hover { background:#f4f7fa; text-decoration:none; }
.icon { width:21px; height:21px; flex:none; vertical-align:middle; display:inline-block; }
.institution-link { color:inherit; text-decoration:underline; text-decoration-color:#b6c2cd; text-underline-offset:4px; }
.institution-link:hover { color:#165694; text-decoration-color:currentColor; }
.official-name { font-family:Arial,sans-serif; font-size:.92em; color:#5d6c77; display:inline-block; max-width:100%; overflow-wrap:anywhere; }
.contact-list dt { display:flex; align-items:center; gap:8px; }
.contact-address > .icon { margin-inline-end:8px; }
.contact-list>div { grid-template-columns:120px minmax(0,1fr); }
.paper-authors { margin:12px 0; font-size:13px; color:#526773; overflow-wrap:anywhere; }
.paper-authors bdi { font-family:Arial,sans-serif; line-height:1.9; }
.paper-authors .field-label { display:block; font-size:11px; color:#526773; margin-bottom:3px; }
.source-note { margin-top:24px; }
.research-publications { margin-top:40px; padding-top:24px; border-top:1px solid #dae1e6; }
.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.gallery-grid figure { margin:0; border:1px solid #dae1e6; border-radius:6px; overflow:hidden; background:#fff; }
.gallery-grid a { display:block; }
.gallery-grid img { width:100%; height:220px; object-fit:cover; display:block; }
.gallery-grid figcaption { padding:14px; font-size:13px; }
@media(max-width:1180px) { .hero { padding-inline:32px; } }
@media(max-width:900px) { .hero { padding-inline:26px; min-height:220px; } .hero-main { min-height:145px; } }
@media(max-width:620px) {
 .hero { padding:18px 18px 0; min-height:0; }
 .hero-main { gap:12px; min-height:112px; padding-bottom:16px; }
 .hero .hero-name { max-width:65%; }
 .hero .hero-name p { font-size:clamp(20px,5.2vw,29px); line-height:1.22; letter-spacing:0; }
 .hero-logo { max-width:28%; }
 .hero-bottom { gap:12px; min-height:76px; }
 .hero-bottom form { width:auto; flex:1; min-width:0; }
 .hero-bottom .email-button { padding:8px; font-size:11px; gap:5px; }
 .hero-bottom input { font-size:11px; }
 .hero-bottom .icon { width:18px; height:18px; }
 .contact-list>div { grid-template-columns:1fr; }
 .gallery-grid { grid-template-columns:1fr; }
}
@media print { .hero { display:none; } }
