/* Header, hero and homepage polish - isolated from legacy CSS */
:root{--nj-page-width:1510px;--nj-purple:#570fc5;--nj-ink:#22104f;--nj-mint:#bef2e1;--nj-yellow:#ffdf75}
html,body,.site-head,.nojavonim-home,.admin-content{font-family:'Estedad','Vazirmatn',Tahoma,sans-serif!important}
body{background:#ebe2fb}
.site-head,.main-shell{width:calc(100% - 48px)!important;max-width:var(--nj-page-width)!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
.site-head{padding:10px 23px!important;min-height:68px;gap:13px!important;flex-wrap:nowrap!important;border-radius:21px;background:#fff;box-shadow:0 8px 25px rgba(54,21,117,.17);z-index:30!important}
.main-shell{padding:0!important;margin-top:10px!important}
.site-head nav{display:flex;align-items:center;justify-content:center;gap:clamp(9px,1vw,18px);flex-wrap:nowrap!important;min-width:0}
.site-head nav>a,.site-head nav summary{font-size:.88rem!important;white-space:nowrap;font-weight:800!important;color:#25104e}
.site-head .brand{min-width:130px;flex-shrink:0}.site-head .brand img{max-width:150px;width:100%;object-fit:contain}
.site-head .account-nav{flex-shrink:0;display:flex;align-items:center;gap:10px}
.site-head .account-nav .main-btn{display:inline-flex;align-items:center;justify-content:center;animation:nj-soft-float 3.3s ease-in-out infinite;background:var(--nj-purple);color:#fff;border-radius:12px;box-shadow:0 6px 16px rgba(87,15,197,.22)}
.site-head .ecosystem-drop{position:relative;flex:0 0 auto;z-index:40}
.site-head .ecosystem-drop summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;line-height:1.7}
.site-head .ecosystem-drop summary::-webkit-details-marker{display:none}
.site-head .ecosystem-drop summary:after{content:'⌄';font-size:1.1rem;color:var(--nj-purple);transition:transform .2s}
.site-head .ecosystem-drop[open] summary:after{transform:rotate(180deg)}
.site-head .ecosystem-drop .ecosystem-menu{position:absolute!important;display:none!important;top:calc(100% + 12px);right:0;width:275px;min-width:275px;padding:9px!important;margin:0;background:white;border:1px solid #e6d9fa;border-radius:16px;box-shadow:0 13px 32px rgba(40,16,90,.2);z-index:50;flex-direction:column!important;gap:3px!important;white-space:normal}
.site-head .ecosystem-drop[open] .ecosystem-menu{display:flex!important}
.site-head .ecosystem-drop .ecosystem-menu a{display:block;width:100%;white-space:normal;font-size:.88rem!important;font-weight:700!important;padding:10px 12px;border-radius:9px;line-height:1.6;text-align:right;color:#29134f}
.site-head .ecosystem-drop .ecosystem-menu a:hover{background:#f1e9ff;color:#5512bd}
.nojavonim-home .hero.hero-reference-live{width:100%!important;margin:0!important;padding:0!important;border-radius:20px!important;box-shadow:0 8px 24px rgba(66,28,134,.16)}
.nojavonim-home .hero-reference-button{animation:nj-soft-float 3.3s ease-in-out infinite!important;will-change:transform}
@keyframes nj-soft-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.site-head .account-nav .main-btn,.nojavonim-home .hero-reference-button{animation:none!important}}
.nojavonim-home.home{gap:8px}
.nojavonim-home .home-section{padding:10px 12px!important;border-radius:19px!important;background:#fdfbff!important}
.nojavonim-home .section-title{margin-bottom:8px!important}.nojavonim-home .section-title h2{font-size:1.17rem!important;font-weight:900!important}
.nojavonim-home .news-card{min-height:140px}.nojavonim-home .news-cards{gap:9px}
.nojavonim-home .mini-cards,.nojavonim-home .event-cards{gap:8px}
.nojavonim-home .campaign-feature{background:var(--nj-mint)}.nojavonim-home .campaign-quote{background:var(--nj-yellow)}
.nojavonim-home .newsletter{padding:9px 20px;min-height:65px}
@media(max-width:1250px){.site-head{flex-wrap:wrap!important;justify-content:space-between}.site-head nav{order:3;flex:0 0 100%;flex-wrap:wrap!important;padding:5px 0}.site-head .ecosystem-drop .ecosystem-menu{right:auto;left:0}}
@media(max-width:700px){.site-head,.main-shell{width:calc(100% - 16px)!important}.site-head{padding:8px 12px!important}.site-head nav{gap:10px}.site-head .ecosystem-drop .ecosystem-menu{left:auto;right:0;max-width:calc(100vw - 36px)}}
