/* Scoped to Arian Zamin Research; existing hub styles remain independent. */
body[data-hub=research]{--azr-ink:#123b43;--azr-gold:#b48b43}
body[data-hub=research].azr-home main{background:#f8faf8 url('../hubs/research/assets/real/homepage-background.webp') center top/100% auto no-repeat}
body[data-hub=research].azr-home :is(.projects-block,.map-block,.partners-block,.notices-block,.gallery-block){background:rgba(255,255,255,.80)}
body[data-hub=research] .azr-person{border-radius:20px;border-color:#dce4df;background:#fff;box-shadow:0 8px 25px #123b430c;isolation:isolate;transition:transform .2s,box-shadow .2s;display:flex!important}
body[data-hub=research] .azr-person:hover{transform:translateY(-4px);box-shadow:0 14px 32px #123b4320}
body[data-hub=research] .azr-person:focus-visible{outline:3px solid #b48b43;outline-offset:3px}
body[data-hub=research] .azr-portrait{display:block;position:relative;aspect-ratio:4/5;margin:12px 12px 0;border-radius:13px;overflow:hidden;background:radial-gradient(ellipse at 30% 20%,#e0ebe7,transparent 65%),#f1f4f0}
body[data-hub=research] .azr-portrait:after{content:'';position:absolute;inset:0;border:1px solid #123b4310;border-radius:inherit;pointer-events:none}
body[data-hub=research] .azr-portrait img{width:100%;height:100%;object-fit:contain;display:block;max-height:none;min-height:0}
body[data-hub=research] .azr-monogram{display:grid;place-items:center;height:100%;font-size:5rem;font-weight:700;color:#69877f;background:repeating-radial-gradient(ellipse at 10% 110%,transparent 0 25px,#789d9020 26px 27px)}
body[data-hub=research] .azr-person .az-record-text{padding:17px 18px 19px;gap:9px;flex:1;display:flex;flex-direction:column}
body[data-hub=research] .azr-person .az-record-text>strong{font-size:1.08rem;line-height:1.65;font-weight:700}
body[data-hub=research] .azr-person .azr-role{font-size:.9rem;line-height:1.8;color:#4c6466;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body[data-hub=research] .azr-person .azr-profile-link{margin-top:auto;padding-top:13px;border-top:1px solid #e8ece7;color:#174d50;font-size:.88rem;font-weight:700}
body[data-hub=research] .az-partner-rail .partners-grid{grid-auto-columns:calc((100% - 48px)/4);gap:16px;padding-block:8px 18px}
body[data-hub=research] .az-partner-index{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
body[data-hub=research] .az-type-person .az-detail-head img{object-fit:contain;height:420px;max-height:420px;padding:18px}
body[data-hub=research] .az-type-person .az-detail-head.has-photo{grid-template-columns:minmax(0,1.4fr) minmax(200px,.7fr)}
body[data-hub=research] .az-type-photo .az-detail-head img,body[data-hub=research] .az-type-project .az-detail-head img{object-fit:contain;height:370px;max-height:420px}
body[data-hub=research] .az-submenu summary{width:36px;height:36px;display:grid;place-items:center;border:1px solid transparent;border-radius:10px;transition:background .18s,border-color .18s;list-style:none}
body[data-hub=research] .az-submenu summary:hover,body[data-hub=research] .az-submenu[open]>summary{background:#edf3f0;border-color:#cdded6}
body[data-hub=research] .az-submenu summary:focus-visible{outline:2px solid #b48b43;outline-offset:2px}
body[data-hub=research] .azr-chevron{display:block;width:8px;height:8px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
body[data-hub=research] .az-submenu[open] .azr-chevron{transform:translateY(2px) rotate(225deg)}
body[data-hub=research] .az-submenu>div{padding:10px;border-radius:14px;min-width:240px;box-shadow:0 16px 40px #123b4320;border:1px solid #dde6df}
body[data-hub=research] [data-az-mast] .az-submenu>div a{font-size:.9rem;padding:10px 12px;white-space:normal;border-radius:8px;line-height:1.8}
body[data-hub=research] [data-az-mast] .az-submenu>div a:hover{background:#f0f5f1;color:#123b43}
body[data-hub=research] .azr-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:20px 0}
body[data-hub=research] .azr-facts p{display:grid;gap:8px;background:#f1f5f1;border-radius:10px;padding:16px;margin:0;overflow-wrap:anywhere}
body[data-hub=research] .azr-source{border:1px solid #dbe5df;border-radius:12px;padding:18px;margin-top:22px}
body[data-hub=research] .azr-source>summary{cursor:pointer;font-weight:700}
body[data-hub=research] .azr-table{max-width:100%;overflow:auto;border:1px solid #dbe5df;border-radius:12px;margin-block:24px}
body[data-hub=research] .azr-table table{min-width:650px;width:100%;border-collapse:collapse;font-size:.95rem;table-layout:fixed}
body[data-hub=research] .azr-table td{vertical-align:top;overflow-wrap:anywhere;padding:14px;border:1px solid #dde4de}
body[data-hub=research] .azr-table tr:nth-child(even){background:#f3f6f3}
body[data-hub=research] .azr-org ul{list-style:none;padding-inline-start:22px;border-inline-start:1px solid #c4d6cc;margin:14px 0}
body[data-hub=research] .azr-org>ul{padding:0;border:0}
body[data-hub=research] .azr-org li{margin-block:12px}
body[data-hub=research] .azr-org li>span{display:inline-block;background:#f3f7f3;border:1px solid #cfdfd5;border-radius:10px;padding:12px 18px}
body[data-hub=research] .azr-org>ul>li>span{background:#123b43;color:white}
body[data-hub=research] .azr-empty-note{padding:24px 0;font-size:1rem;color:#526967}
body[data-hub=research] .azr-footer-logo{width:90px!important;height:auto;object-fit:contain;background:white;border-radius:8px;padding:4px}
body[data-hub=research] .footer-col section h2{font-size:.95rem;color:inherit;margin:12px 0}
body[data-hub=research] .footer-col section p{font-size:.88rem;line-height:1.9;margin:6px 0}
body[data-hub=research] .footer-brand p{line-height:2;font-size:.9rem}
body[data-hub=research] .az-editorial{overflow-wrap:anywhere;min-width:0}
/* Justify prose in both languages; keep the final line at its reading edge. */
body[data-hub=research] :is(.az-editorial p,.az-detail-head p,.intro-text p,.about-text p,.footer-brand p,.footer-col section p){text-align:justify;text-align-last:start;word-spacing:normal;letter-spacing:normal;overflow-wrap:anywhere}
html[lang=en] body[data-hub=research] :is(.az-editorial p,.az-detail-head p,.intro-text p,.about-text p){hyphens:auto}
body[data-hub=research] .azr-facts p{text-align:start;text-align-last:auto}
body[data-hub=research] .az-inner{min-width:0}
@media(max-width:1100px){body[data-hub=research] .az-partner-rail .partners-grid{grid-auto-columns:calc((100% - 32px)/3)}body[data-hub=research] .az-partner-index{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){body[data-hub=research] .az-partner-rail .partners-grid{grid-auto-columns:calc((100% - 16px)/2)}body[data-hub=research] .az-partner-index{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){body[data-hub=research] .az-type-person .az-detail-head.has-photo{grid-template-columns:1fr}body[data-hub=research] .az-type-person .az-detail-head figure{grid-row:1}body[data-hub=research] .az-type-person .az-detail-head img{height:320px}body[data-hub=research] .azr-facts{grid-template-columns:1fr}body[data-hub=research] .az-submenu summary{width:44px;height:44px}body[data-hub=research] .az-submenu>div{min-width:0}body[data-hub=research] .az-type-project .az-detail-head img,body[data-hub=research] .az-type-photo .az-detail-head img{height:250px}}
@media(max-width:520px){body[data-hub=research] .az-partner-rail .partners-grid{grid-auto-columns:88%}body[data-hub=research] .az-partner-index{grid-template-columns:1fr;max-width:390px;margin-inline:auto}body[data-hub=research] .azr-person .az-record-text{padding:16px}body[data-hub=research] .azr-person .az-record-text>strong{font-size:1.1rem}body[data-hub=research] .azr-portrait{max-height:340px}body[data-hub=research] .az-brand-words{max-width:34vw}body[data-hub=research] .topbar-right{flex-wrap:wrap}body[data-hub=research] .hero-kicker{font-size:.9rem}}
@media(prefers-reduced-motion:reduce){body[data-hub=research] .azr-person,body[data-hub=research] .azr-chevron{transition:none}body[data-hub=research] .azr-person:hover{transform:none}}
body[data-hub=research] .hero-kicker{font-size:clamp(1rem,1.5vw,1.35rem);line-height:1.9}
body[data-hub=research] .az-project-roll .az-record-text>span{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:.9rem}
body[data-hub=research] .az-filters{display:flex;flex-wrap:wrap;gap:14px}
body[data-hub=research] .az-filters label{flex:1 1 220px;min-width:0;max-width:100%}
body[data-hub=research] .az-filters select,body[data-hub=research] .az-filters input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body[data-hub=research] :is(.az-type-projects,.az-type-province) .az-record-text>span{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:1rem}
@media(max-width:600px){body[data-hub=research] :is(.az-type-projects,.az-type-province) .az-grid{grid-template-columns:1fr}body[data-hub=research] :is(.az-type-projects,.az-type-province) .az-record>img{height:200px!important}body[data-hub=research] :is(.az-type-projects,.az-type-province) .az-record-text{padding:18px}body[data-hub=research] :is(.az-type-projects,.az-type-province) .az-record-text>strong{font-size:1.05rem}}
/* Approved hybrid profile: green photographic masthead and cream editorial body. */
body[data-hub=research] .azr-profile{max-width:1120px;margin-inline:auto;border-radius:20px;overflow:hidden;box-shadow:0 15px 45px #123b4318;background:#f4f0e7}
body[data-hub=research] .azr-profile>.az-crumb{background:#f4f0e7;padding:14px clamp(20px,4vw,52px);margin:0}
body[data-hub=research] .azr-profile-hero{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;gap:clamp(20px,4vw,48px);padding:clamp(24px,4vw,48px);color:white;background:linear-gradient(115deg,#063e43,#0a5b57 64%,#093f4e);min-height:290px}
body[data-hub=research] .azr-profile-hero figure{margin:0;width:100%;height:246px;overflow:hidden;border-radius:14px;border:2px solid #e4d3ac;background:#224f4f;box-shadow:0 10px 28px #062b2b55}
body[data-hub=research] .azr-profile-hero img{display:block;width:100%;height:100%;object-fit:contain}
body[data-hub=research] .azr-profile-initial{display:grid;place-items:center;height:100%;font-size:5rem;color:#e8dabc}
body[data-hub=research] .azr-profile-heading small{font:600 .72rem/1.5 Arial,sans-serif;letter-spacing:.12em;color:#e6bf7e}
body[data-hub=research] .azr-profile-heading :is(h1,[data-az-heading="hero"]){color:white;margin:.3em 0;font-size:clamp(2rem,4vw,3.3rem);line-height:1.35}
body[data-hub=research] .azr-profile-heading p{font-size:clamp(1rem,1.5vw,1.2rem);color:#e7f2ef;max-width:58ch;line-height:1.9;margin:0}
body[data-hub=research] .azr-profile-paper{padding:clamp(20px,3.5vw,44px);background:#f4f0e7}
body[data-hub=research] .azr-profile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
body[data-hub=research] .azr-profile-stats>div{background:white;border:1px solid #dcd8ca;border-radius:11px;min-width:0;padding:14px;text-align:center;box-shadow:0 3px 12px #213e3210}
body[data-hub=research] .azr-profile-stats strong{display:block;color:#0b6862;font-size:1.55rem;line-height:1.4}
body[data-hub=research] .azr-profile-stats span{display:block;color:#536360;font-size:.83rem;line-height:1.6;overflow-wrap:anywhere}
body[data-hub=research] .azr-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:clamp(20px,3vw,38px);align-items:start}
body[data-hub=research] .azr-profile-body{width:auto;max-width:none;margin:0;min-width:0;overflow-wrap:anywhere}
body[data-hub=research] .azr-profile-body>section{border-top:1px solid #d8d5c9;padding-block:15px}
body[data-hub=research] .azr-profile-body :is(p,li){text-align:justify;text-align-last:start;line-height:2.05}
body[data-hub=research] .azr-profile-body :is(h2,h3){color:#0a5553}
body[data-hub=research] .azr-profile-aside{border:1px solid #dcd8cb;border-radius:12px;background:white;padding:22px;min-width:0}
body[data-hub=research] .azr-profile-aside h2{font-size:1.1rem;margin:0 0 10px;color:#0b5552}
body[data-hub=research] .azr-profile-aside p{text-align:justify;text-align-last:start;line-height:2}
body[data-hub=research] .azr-profile-aside a{color:#0b615c}
/* Brand follows reading direction: FA logo at right, EN logo at left. */
html[lang=fa] body[data-hub=research] header[data-az-mast] [data-brand]{direction:rtl;flex-direction:row}
html[lang=en] body[data-hub=research] header[data-az-mast] [data-brand]{direction:ltr;flex-direction:row}
html[lang=en] body[data-hub=research] header[data-az-mast] .az-brand-words{direction:ltr;text-align:left;align-items:flex-start}
html[lang=en] body[data-hub=research] header[data-az-mast] .az-brand-words small{text-align:left}
/* Project page, vertical rhythm and carousel density. */
body[data-hub=research] .az-type-project .az-detail-head{background:linear-gradient(115deg,#063e45 0%,#0d6260 53%,#193c55 100%)}
body[data-hub=research] .az-type-project .az-detail-head figure{background:linear-gradient(135deg,#0d5b5a,#193c55);display:grid;place-items:center}
body[data-hub=research] .az-type-project .az-detail-head img{max-height:350px}
body[data-hub=research] .az-editorial :is(p,li,blockquote),body[data-hub=research] .az-record-text>span:not(.azr-profile-link):not(.azr-role){text-align:justify;text-align-last:start}
body[data-hub=research].azr-home .projects-block{padding-block:clamp(20px,3vw,38px)}
body[data-hub=research].azr-home .map-block{padding-block:clamp(20px,3vw,38px);min-height:0}
/* Keep the supplied landscape visible throughout the home page. */
body[data-hub=research].azr-home main{background-image:linear-gradient(#f8faf8c7,#f8faf8d4),url('../hubs/research/assets/real/homepage-background.webp');background-position:center top;background-size:cover;background-attachment:fixed}
body[data-hub=research].azr-home :is(.projects-block,.map-block,.partners-block,.notices-block,.gallery-block){background:transparent}
body[data-hub=research].azr-home .projects-block{min-height:0!important;padding-top:20px;padding-bottom:10px}
body[data-hub=research].azr-home .stats{height:auto;min-height:104px;margin-top:16px;padding-block:10px;border:1px solid #d9e2df;background:#f6f8f7ec}
body[data-hub=research].azr-home .stats .stat{min-height:82px;gap:1px}
body[data-hub=research].azr-home .stats .stat strong{font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.1}
body[data-hub=research].azr-home .stats .stat svg{width:30px;height:30px}
body[data-hub=research].azr-home .map-block{padding-top:14px!important}
body[data-hub=research] .azr-org-chart{margin:24px 0;padding:clamp(10px,2vw,22px);background:#fff;border:1px solid #cfded9;border-radius:18px;box-shadow:0 8px 28px #173e4212;text-align:center}
body[data-hub=research] .azr-org-chart a{display:block;overflow:auto;border-radius:10px}
body[data-hub=research] .azr-org-chart img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
body[data-hub=research] .azr-org-chart figcaption{padding-top:10px;color:#486568;font-size:.9rem}
@media(max-width:700px){body[data-hub=research].azr-home main{background-attachment:scroll}body[data-hub=research].azr-home .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:12px}body[data-hub=research].azr-home .stats .stat{min-height:74px}body[data-hub=research].azr-home .stats .stat strong{font-size:1.4rem}}
body[data-hub=research].azr-home .partners-block{padding-block:clamp(22px,3vw,38px);min-height:0}
body[data-hub=research] .az-project-roll .az-roll-track .az-record{align-self:start;height:auto;min-height:0}
body[data-hub=research] .az-project-roll .az-roll-track .az-record-text{height:auto;min-height:0;padding:10px 12px}
body[data-hub=research] .az-project-roll .az-roll-track .az-record-text>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.55}
body[data-hub=research] .az-project-roll .az-roll-track .az-record-text>span{font-size:.86rem;line-height:1.65;-webkit-line-clamp:3;overflow-wrap:anywhere}
body[data-hub=research] .az-project-roll .az-roll-track .az-record>img{height:clamp(130px,12vw,180px)!important;object-fit:cover}
@media(max-width:760px){body[data-hub=research] .azr-profile-layout{grid-template-columns:1fr}body[data-hub=research] .azr-profile-aside{grid-row:1}body[data-hub=research] .azr-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){body[data-hub=research] .azr-profile-hero{grid-template-columns:1fr}body[data-hub=research] .azr-profile-hero figure{max-width:190px;height:230px}body[data-hub=research] .azr-profile-paper{padding:18px}body[data-hub=research] .az-project-roll .az-roll-track{grid-auto-columns:80%}}
