:root{
  --green:#1D9E75;--green-dk:#0F6E56;--green-deep:#085041;
  --green-lt:#E1F5EE;--green-mid:#9FE1CB;
  --blue-lt:#E6F1FB;--blue-dk:#0C447C;--blue-mid:#185FA5;
  --amber-lt:#FAEEDA;--amber-dk:#633806;--amber-mid:#854F0B;
  --purple-lt:#EEEDFE;--purple-dk:#3C3489;--purple-mid:#534AB7;
  --red-lt:#FCEBEB;--red-dk:#791F1F;--red-mid:#A32D2D;
  --gray-50:#F8F7F4;--gray-100:#F1EFE8;--gray-200:#D3D1C7;
  --gray-400:#888780;--gray-600:#5F5E5A;--gray-800:#2C2C2A;
  --text:#1a1a18;--text-muted:#5F5E5A;--text-faint:#888780;
  --border:rgba(0,0,0,0.09);--border-med:rgba(0,0,0,0.16);
  --r:10px;--r-lg:14px;
  --shadow:0 1px 3px rgba(0,0,0,0.06),0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:0 4px 12px rgba(0,0,0,0.08);
}
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'DM Sans',sans-serif;background:var(--gray-50);color:var(--text);font-size:15px;line-height:1.6;}
h1,h2,h3{font-family:'DM Serif Display',serif;font-weight:400;}
a{color:inherit;text-decoration:none;}
.btn{padding:8px 18px;border-radius:var(--r);border:1px solid var(--border-med);background:white;color:var(--text);font-size:13px;cursor:pointer;font-family:'DM Sans',sans-serif;font-weight:500;transition:all .15s;display:inline-block;}
.btn:hover{background:var(--gray-100);}
.btn-primary{background:var(--green);color:white;border-color:var(--green);}
.btn-primary:hover{background:var(--green-dk);}
.btn-danger{background:var(--red-lt);color:var(--red-mid);border-color:#F09595;}
.btn-sm{padding:5px 12px;font-size:12px;}
.btn-wide{width:100%;text-align:center;}
.tag{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:600;}
.t-green{background:var(--green-lt);color:var(--green-deep);}
.t-blue{background:var(--blue-lt);color:var(--blue-dk);}
.t-amber{background:var(--amber-lt);color:var(--amber-dk);}
.t-purple{background:var(--purple-lt);color:var(--purple-dk);}
.t-red{background:var(--red-lt);color:var(--red-mid);}
.t-gray{background:var(--gray-100);color:var(--gray-600);}
.text-muted{color:var(--text-muted);}
.text-faint{color:var(--text-faint);}
.text-sm{font-size:13px;}
.text-xs{font-size:12px;}
.text-green{color:var(--green-dk);}
.text-amber{color:var(--amber-mid);}
.bold{font-weight:600;}
.mt-sm{margin-top:8px;}.mt-md{margin-top:14px;}.mt-lg{margin-top:20px;}
.mb-sm{margin-bottom:8px;}.mb-md{margin-bottom:14px;}.mb-lg{margin-bottom:20px;}
.flex-gap{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.section-divider{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;padding-bottom:8px;border-bottom:1px solid var(--border);margin-bottom:12px;}
.info-box{border-radius:var(--r);padding:12px 14px;font-size:13px;line-height:1.5;}
.info-blue{background:var(--blue-lt);color:var(--blue-dk);}
.info-green{background:var(--green-lt);color:var(--green-deep);}
.info-amber{background:var(--amber-lt);color:var(--amber-dk);}
.nav{position:sticky;top:0;z-index:200;background:white;border-bottom:1px solid var(--border);height:58px;display:flex;align-items:center;padding:0 1.5rem;gap:1rem;}
.nav-logo{font-family:'DM Serif Display',serif;font-size:17px;display:flex;align-items:center;gap:8px;margin-right:.5rem;flex-shrink:0;text-decoration:none;color:var(--text);}
.nav-dot{width:9px;height:9px;border-radius:50%;background:var(--green);}
.nav-links{display:flex;gap:2px;flex:1;}
.nav-link{padding:6px 12px;border-radius:8px;font-size:13px;color:var(--text-muted);border:none;background:none;font-family:'DM Sans',sans-serif;font-weight:500;transition:all .15s;white-space:nowrap;text-decoration:none;display:inline-block;}
.nav-link:hover{background:var(--gray-100);color:var(--text);}
.nav-link.active{background:var(--gray-100);color:var(--text);}
.nav-actions{display:flex;gap:8px;flex-shrink:0;}
.container{max-width:1080px;margin:0 auto;padding:2rem;}
.narrow{max-width:800px;margin:0 auto;padding:2rem;}
.page-header{background:white;border-bottom:1px solid var(--border);padding:1.5rem 2rem;}
.page-header h2{font-size:28px;margin-bottom:3px;}
.page-header p{color:var(--text-muted);font-size:14px;}
.card{background:white;border:1px solid var(--border);border-radius:var(--r-lg);padding:20px 22px;box-shadow:var(--shadow);}
.card-section{background:white;border:1px solid var(--border);border-radius:var(--r-lg);padding:20px 22px;margin-bottom:14px;box-shadow:var(--shadow);}
.card-head{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.card-icon{width:32px;height:32px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;}
.card-title{font-size:15px;font-weight:600;}
.card-sub{font-size:12px;color:var(--text-muted);}
.section-h{font-size:15px;font-weight:600;padding-bottom:10px;border-bottom:1px solid var(--border);margin-bottom:14px;}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:1.5rem;}
.stat-card{background:white;border:1px solid var(--border);border-radius:var(--r);padding:14px 16px;}
.stat-label{font-size:11px;color:var(--text-faint);margin-bottom:3px;}
.stat-value{font-size:22px;font-weight:600;}
.stat-sub{font-size:11px;color:var(--green);margin-top:1px;}
.score-wrap{margin-bottom:11px;}
.score-row{display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px;}
.score-track{height:6px;background:var(--gray-100);border-radius:3px;overflow:hidden;}
.score-fill{height:100%;border-radius:3px;}
.kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;}
.kv-item .kv-k{font-size:11px;color:var(--text-muted);margin-bottom:2px;}
.kv-item .kv-v{font-size:13px;font-weight:600;}
.kv-list{display:flex;flex-direction:column;gap:10px;}
.kv-row{display:flex;justify-content:space-between;font-size:14px;}
.kv-row .kk{color:var(--text-muted);}
.kv-row .kv{font-weight:500;}
.two-col{display:grid;grid-template-columns:1fr 320px;gap:1.75rem;align-items:start;}
.checklist{display:flex;flex-direction:column;gap:7px;}
.check-item{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.4;}
.chk{width:18px;height:18px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;margin-top:1px;}
.chk-ok{background:var(--green-lt);color:var(--green-deep);}
.chk-warn{background:var(--amber-lt);color:var(--amber-dk);}
.flag-list{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;}
.flag{display:flex;align-items:flex-start;gap:10px;font-size:13px;padding:10px 12px;border-radius:var(--r);line-height:1.4;}
.flag-ok{background:var(--green-lt);color:#085041;}
.flag-warn{background:var(--amber-lt);color:#412402;}
.flag-dot{width:16px;height:16px;border-radius:50%;flex-shrink:0;margin-top:1px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;}
.fd-ok{background:var(--green);color:white;}
.fd-warn{background:#EF9F27;color:white;}
.avatar{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;flex-shrink:0;}
.timeline{display:flex;flex-direction:column;}
.tl-item{display:flex;gap:14px;padding-bottom:16px;}
.tl-item:last-child{padding-bottom:0;}
.tl-left{display:flex;flex-direction:column;align-items:center;width:28px;flex-shrink:0;}
.tl-dot{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;flex-shrink:0;}
.tl-line{width:1px;background:var(--border);flex:1;margin-top:4px;}
.tl-item:last-child .tl-line{display:none;}
.tl-content{padding-top:2px;flex:1;}
.tl-title{font-size:14px;font-weight:600;margin-bottom:2px;}
.tl-desc{font-size:13px;color:var(--text-muted);line-height:1.5;}
.tl-time{font-size:11px;color:var(--text-faint);margin-top:3px;}
.tl-done .tl-dot{background:var(--green-lt);color:var(--green-deep);}
.tl-active .tl-dot{background:var(--green);color:white;}
.tl-pending .tl-dot{background:var(--gray-100);color:var(--text-muted);border:1px solid var(--border-med);}
.msg-thread{display:flex;flex-direction:column;gap:10px;margin-bottom:14px;}
.msg{max-width:78%;padding:11px 14px;font-size:13px;line-height:1.5;}
.msg-funder{background:var(--gray-100);color:var(--text);align-self:flex-start;border-radius:4px 14px 14px 14px;}
.msg-creator{background:var(--green-lt);color:var(--green-deep);align-self:flex-end;border-radius:14px 4px 14px 14px;}
.msg-sys{background:var(--gray-100);border:1px solid var(--border);color:var(--text-muted);align-self:center;font-size:11px;border-radius:20px;padding:5px 14px;}
.msg-meta{font-size:10px;color:var(--text-faint);margin-top:3px;}
.msg-meta-r{text-align:right;}
.compose-row{display:flex;gap:8px;}
.compose-row input{flex:1;padding:9px 13px;border-radius:var(--r);border:1px solid var(--border-med);font-size:13px;font-family:'DM Sans',sans-serif;color:var(--text);}
.compose-row input:focus{outline:none;border-color:var(--green);}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.fgrid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;}
.frow{margin-bottom:12px;}
.flabel{display:block;font-size:12px;font-weight:500;color:var(--text-muted);margin-bottom:5px;}
.finput,.fselect,.ftextarea{width:100%;padding:9px 12px;border-radius:var(--r);border:1px solid var(--border-med);background:white;color:var(--text);font-size:14px;font-family:'DM Sans',sans-serif;}
.finput:focus,.fselect:focus,.ftextarea:focus{outline:none;border-color:var(--green);}
.ftextarea{resize:vertical;}
.calc-row{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--gray-50);border-radius:var(--r);margin-top:6px;font-size:13px;border:1px solid var(--border);}
.calc-label{color:var(--text-muted);flex:1;}
.cv-good{color:var(--green-dk);font-weight:600;}
.cv-warn{color:var(--amber-mid);font-weight:600;}
.cv-bad{color:var(--red-mid);font-weight:600;}
.form-nav{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:16px;border-top:1px solid var(--border);}
.progress-dots{display:flex;gap:5px;align-items:center;}
.pdot{width:8px;height:8px;border-radius:50%;background:var(--gray-200);}
.pdot.done{background:var(--green);}
.progress-label{font-size:12px;color:var(--text-muted);margin-left:8px;}
.step-bar{display:flex;align-items:center;margin-bottom:2rem;}
.step-item{display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;}
.step-circle{width:32px;height:32px;border-radius:50%;border:1px solid var(--border-med);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--text-muted);background:white;transition:all .15s;}
.step-circle.done{background:var(--green-lt);border-color:var(--green-mid);color:var(--green-deep);}
.step-circle.active{background:var(--green);border-color:var(--green);color:white;}
.step-name{font-size:11px;color:var(--text-muted);white-space:nowrap;}
.step-name.active{color:var(--text);font-weight:600;}
.step-line{flex:1;height:1px;background:var(--border);margin:0 6px;margin-bottom:18px;}
.form-panel{display:none;}
.form-panel.active{display:block;}
.doc-list{display:flex;flex-direction:column;gap:8px;}
.doc-item{display:flex;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--border);border-radius:var(--r);background:white;}
.doc-icon{width:32px;height:32px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0;}
.doc-info{flex:1;}
.doc-name{font-size:13px;font-weight:600;}
.doc-desc{font-size:11px;color:var(--text-muted);margin-top:1px;}
.doc-badge{font-size:11px;padding:3px 9px;border-radius:20px;font-weight:600;flex-shrink:0;}
.b-req{background:var(--red-lt);color:var(--red-mid);}
.b-rec{background:var(--amber-lt);color:var(--amber-dk);}
.b-opt{background:var(--green-lt);color:var(--green-deep);}
.upload-btn{padding:5px 12px;border-radius:var(--r);border:1px solid var(--border-med);background:white;color:var(--text-muted);font-size:12px;cursor:pointer;font-family:'DM Sans',sans-serif;font-weight:500;min-width:82px;transition:all .15s;}
.upload-btn:hover{background:var(--gray-100);}
.upload-btn.uploaded{background:var(--green-lt);color:var(--green-deep);border-color:var(--green-mid);}
.pipeline-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:1.5rem;}
.pipe-col{background:white;border:1px solid var(--border);border-radius:var(--r-lg);padding:14px;}
.pipe-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.pipe-title{font-size:11px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;}
.pipe-count{font-size:11px;padding:2px 9px;border-radius:20px;font-weight:700;}
.pipe-card{background:var(--gray-50);border:1px solid var(--border);border-radius:var(--r);padding:11px 12px;margin-bottom:8px;cursor:pointer;transition:all .15s;}
.pipe-card:hover{border-color:var(--border-med);background:white;box-shadow:var(--shadow);}
.pc-name{font-size:13px;font-weight:600;margin-bottom:2px;}
.pc-loc{font-size:11px;color:var(--text-muted);margin-bottom:6px;}
.pc-tags{display:flex;gap:5px;flex-wrap:wrap;}
.interest-card{background:var(--gray-50);border:1px solid var(--border);border-radius:var(--r);padding:13px 15px;margin-bottom:10px;}
.watchlist-item{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px solid var(--border);}
.watchlist-item:last-child{border-bottom:none;}
.wi-icon{width:38px;height:38px;border-radius:var(--r);background:var(--gray-100);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;}
.wi-info{flex:1;}
.wi-name{font-size:14px;font-weight:600;}
.wi-meta{font-size:12px;color:var(--text-muted);}
.match-wrap{margin-bottom:10px;}
.match-label{display:flex;justify-content:space-between;font-size:13px;margin-bottom:4px;}
.match-track{height:6px;background:var(--gray-100);border-radius:3px;overflow:hidden;}
.match-fill{height:100%;border-radius:3px;}
.criteria-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px;}
.crit-item{background:var(--gray-50);border-radius:var(--r);padding:10px 12px;}
.crit-label{font-size:11px;color:var(--text-muted);margin-bottom:2px;}
.crit-val{font-size:13px;font-weight:600;}
.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.project-card{background:white;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;cursor:pointer;transition:all .15s;box-shadow:var(--shadow);text-decoration:none;display:block;color:var(--text);}
.project-card:hover{border-color:var(--border-med);transform:translateY(-1px);box-shadow:var(--shadow-md);}
.proj-img{height:160px;position:relative;overflow:hidden;background:#e0e0e0;}
.proj-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease;}
.project-card:hover .proj-img img{transform:scale(1.04);}
.proj-badge{position:absolute;top:9px;left:9px;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;}
.pb-active{background:var(--green-lt);color:var(--green-deep);}
.pb-new{background:var(--blue-lt);color:var(--blue-dk);}
.pb-closing{background:var(--amber-lt);color:var(--amber-dk);}
.pb-funded{background:var(--gray-100);color:var(--gray-600);}
.proj-body{padding:13px 15px;}
.proj-type{font-size:11px;color:var(--text-faint);text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px;}
.proj-title{font-size:15px;font-weight:600;margin-bottom:2px;}
.proj-loc{font-size:12px;color:var(--text-muted);margin-bottom:11px;}
.prog-bar{height:4px;background:var(--gray-100);border-radius:2px;overflow:hidden;margin-bottom:6px;}
.prog-fill{height:100%;background:var(--green);border-radius:2px;}
.prog-fill-done{background:var(--gray-400);}
.prog-stats{display:flex;justify-content:space-between;font-size:12px;}
.proj-meta{display:flex;gap:10px;margin-top:9px;padding-top:9px;border-top:1px solid var(--border);font-size:11px;color:var(--text-faint);}
.filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:1.25rem;}
.chip{padding:5px 13px;border-radius:20px;font-size:12px;cursor:pointer;border:1px solid var(--border-med);background:white;color:var(--text-muted);font-family:'DM Sans',sans-serif;font-weight:500;transition:all .15s;}
.chip:hover{background:var(--gray-100);}
.chip.on{background:var(--green-lt);color:var(--green-deep);border-color:var(--green-mid);}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:1rem;}
.search-input{flex:1;min-width:200px;padding:9px 13px;border-radius:var(--r);border:1px solid var(--border-med);background:white;font-size:14px;font-family:'DM Sans',sans-serif;color:var(--text);}
.search-input:focus{outline:none;border-color:var(--green);}
.sort-sel{padding:9px 13px;border-radius:var(--r);border:1px solid var(--border-med);background:white;font-size:13px;font-family:'DM Sans',sans-serif;color:var(--text);}
.results-meta{font-size:13px;color:var(--text-muted);margin-bottom:1rem;}
.action-needed{background:var(--amber-lt);border:1px solid #FAC775;border-radius:var(--r);padding:14px 16px;font-size:13px;color:var(--amber-dk);line-height:1.5;}
.detail-hero{background:white;border-bottom:1px solid var(--border);padding-top:1.5rem;}
/* .detail-hero-img removed — image now inline in left column */
.detail-hero-inner{padding:2rem;max-width:1080px;margin:0 auto;}
.back-link{font-size:13px;color:var(--text-muted);margin-bottom:1rem;display:inline-flex;align-items:center;gap:5px;text-decoration:none;}
.back-link:hover{color:var(--text);}
.detail-top{display:grid;grid-template-columns:1fr 340px;gap:2rem;align-items:start;}
.funding-box{background:var(--gray-50);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.5rem;}
.funding-amount{font-family:'DM Serif Display',serif;font-size:28px;margin-bottom:3px;}
.funding-label{font-size:13px;color:var(--text-muted);margin-bottom:13px;}
.funding-bar{height:8px;background:var(--gray-200);border-radius:4px;overflow:hidden;margin-bottom:7px;}
.funding-bar-fill{height:100%;background:var(--green);border-radius:4px;}
.funding-stats{display:flex;justify-content:space-between;font-size:13px;margin-bottom:14px;}
.funding-pct{font-weight:700;color:var(--green);}
.funding-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px;}
.fm-item{background:white;border:1px solid var(--border);border-radius:var(--r);padding:9px 11px;}
.fm-label{font-size:11px;color:var(--text-faint);margin-bottom:2px;}
.fm-val{font-size:13px;font-weight:600;}
.impact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px;}
.impact-item{background:var(--gray-50);border-radius:var(--r);padding:12px;text-align:center;}
.impact-num{font-family:'DM Serif Display',serif;font-size:24px;color:var(--green);}
.impact-label{font-size:11px;color:var(--text-muted);margin-top:2px;}
footer{background:var(--gray-800);color:white;padding:3rem 2rem 2rem;margin-top:4rem;}
.footer-inner{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:2.5rem;margin-bottom:2rem;}
.footer-logo{font-family:'DM Serif Display',serif;font-size:22px;margin-bottom:8px;display:flex;align-items:center;gap:8px;}
.footer-dot{width:9px;height:9px;border-radius:50%;background:var(--green);}
.footer-desc{font-size:13px;color:rgba(255,255,255,.55);line-height:1.6;}
.footer-col h4{font-family:'DM Sans',sans-serif;font-size:12px;font-weight:700;color:rgba(255,255,255,.35);text-transform:uppercase;letter-spacing:.06em;margin-bottom:12px;}
.footer-link{display:block;font-size:14px;color:rgba(255,255,255,.65);margin-bottom:7px;text-decoration:none;}
.footer-link:hover{color:white;}
.footer-bottom{max-width:1080px;margin:0 auto;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.08);font-size:12px;color:rgba(255,255,255,.3);display:flex;justify-content:space-between;}

/* ═══════════════════════════════════════════════
   MOBILE STYLES — iPhone 16 Pro (393px) target
   All desktop styles preserved above this line
   ═══════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  border-radius: var(--r);
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown — hidden on desktop */
.mobile-nav {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 199;
  padding: 8px 12px 12px;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: block;
  padding: 11px 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r);
  transition: background .15s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active { background: var(--gray-100); color: var(--text); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-nav-cta {
  display: block;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: white;
  background: var(--green);
  text-decoration: none;
  border-radius: var(--r);
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 768px) {

  /* ── NAV ── */
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  /* ── TYPOGRAPHY ── */
  h2 { font-size: 26px; }

  /* ── CONTAINERS ── */
  .container { padding: 1.25rem 1rem; }
  .narrow { padding: 1.25rem 1rem; }
  .page-header { padding: 1.25rem 1rem; }
  .page-header h2 { font-size: 24px; }

  /* ── STATS ROW ── */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-value { font-size: 20px; }

  /* ── TWO-COL LAYOUTS → STACK ── */
  .two-col { grid-template-columns: 1fr; gap: 1rem; }
  .detail-top { grid-template-columns: 1fr; gap: 1rem; }

  /* ── FORM GRIDS → SINGLE COL ── */
  .fgrid { grid-template-columns: 1fr; gap: 0; }
  .fgrid3 { grid-template-columns: 1fr; gap: 0; }

  /* ── PROJECT CARDS → SINGLE COL ── */
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .proj-img { height: 190px; }

  /* ── ADMIN PIPELINE → HORIZONTAL SCROLL ── */
  .pipeline-grid {
    grid-template-columns: repeat(4, 270px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 10px;
  }

  /* ── FOOTER ── */
  footer { padding: 2rem 1rem 1.5rem; margin-top: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* ── DETAIL PAGE ── */
  .detail-hero-img { height: 220px; }
  .detail-hero-inner { padding: 1rem; }
  .back-link { margin-bottom: .5rem; }
  .funding-box { padding: 1.25rem; }
  .funding-amount { font-size: 24px; }
  .funding-meta { grid-template-columns: 1fr 1fr; }

  /* ── STEP BAR (submit form) ── */
  .step-name { display: none; }
  .step-circle { width: 28px; height: 28px; font-size: 12px; }
  .step-line { margin: 0 3px; margin-bottom: 0; }
  .step-bar { margin-bottom: 1.25rem; }

  /* ── CARD SECTIONS ── */
  .card-section { padding: 16px; }
  .card { padding: 16px; }

  /* ── CRITERIA / IMPACT / KV GRIDS ── */
  .criteria-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .kv-grid { grid-template-columns: 1fr 1fr; }

  /* ── MESSAGING ── */
  .msg { max-width: 90%; }
  .compose-row { flex-direction: column; }
  .compose-row input { width: 100%; }

  /* ── TOOLBAR ── */
  .toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .search-input { min-width: unset; width: 100%; }
  .sort-sel { width: 100%; }

  /* ── FILTER CHIPS ── */
  .filter-chips { gap: 6px; }
  .chip { padding: 5px 11px; font-size: 11px; }

  /* ── FORM NAV ── */
  .form-nav { flex-direction: column; gap: 10px; align-items: stretch; }
  .form-nav .flex-gap { justify-content: space-between; }

  /* ── WATCHLIST ── */
  .watchlist-item { gap: 10px; }
  .wi-icon { width: 32px; height: 32px; font-size: 16px; }

  /* ── BUTTONS ── */
  .btn-wide { padding: 11px 18px; font-size: 14px; }
}

@media (max-width: 480px) {
  /* Extra adjustments for very small screens */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 6px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 10px; }

  /* Funding meta 1-col on tiny screens */
  .funding-meta { grid-template-columns: 1fr 1fr; }

  /* Pipeline col width tighter */
  .pipeline-grid { grid-template-columns: repeat(4, 240px); }
}

/* ══════════════════════════════════════
   STAY INFORMED SIGNUP SECTION
   ══════════════════════════════════════ */
.signup-section {
  background: var(--green);
  padding: 4rem 2rem;
}
.signup-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}
.signup-text h2 {
  font-size: 38px;
  color: white;
  margin-bottom: .75rem;
  line-height: 1.1;
}
.signup-text p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.signup-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 5px;
}
.signup-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .15s, background .15s;
}
.signup-field input::placeholder { color: rgba(255,255,255,.4); }
.signup-field input:focus {
  outline: none;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.18);
}
.signup-btn {
  padding: 13px 28px;
  background: white;
  color: var(--green-deep);
  border: none;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all .15s;
  align-self: flex-start;
  margin-top: 2px;
}
.signup-btn:hover {
  background: var(--green-lt);
  transform: translateY(-1px);
}
.hidden { display: none !important; }

/* Success state */
.signup-success {
  text-align: center;
  padding: 2rem;
  background: rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.15);
}
.signup-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.signup-success h3 {
  font-size: 22px;
  color: white;
  margin-bottom: .5rem;
}
.signup-success p {
  font-size: 14px;
  color: rgba(255,255,255,.65);
}

/* Footer signup link */
.footer-link-highlight {
  color: var(--green-mid) !important;
  font-weight: 600;
}
.footer-link-highlight:hover { color: white !important; }

/* Mobile */
@media (max-width: 768px) {
  .signup-section { padding: 2.5rem 1rem; }
  .signup-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .signup-text h2 { font-size: 28px; }
  .signup-fields { grid-template-columns: 1fr; gap: 8px; }
  .signup-btn { align-self: stretch; text-align: center; }
}
