/* Funding page (pathshodh_funding.php): the thank-you text and one logo wall of the 23 funders and partners. Every word as before;
   logos from assets/images/partner/ (all 263×175 on white) as soft tiles, shown calm in grey and in full colour on hover or focus. */
.ps-funding{font-family:var(--font-sans);color:var(--text-primary);background:var(--bg-page);-webkit-font-smoothing:antialiased}
.ps-funding *,.ps-funding *::before,.ps-funding *::after{box-sizing:border-box}
.ps-funding .ps-funding-in{padding:clamp(72px,8vw,128px) var(--frame) clamp(96px,10vw,160px)}

/* the thank-you: heading on the left, the paragraph in a reading column */
.ps-funding .ps-funding-text{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(32px,6vw,112px);align-items:start}
.ps-funding .ps-funding-h{margin:0;font-family:inherit;font-size:var(--step-h1);font-weight:500;line-height:var(--lh-h1);letter-spacing:var(--tr-h1);color:var(--text-primary);text-transform:none}
.ps-funding .ps-funding-h::before{content:"";display:block;width:56px;height:4px;margin-bottom:28px;border-radius:2px;background:var(--action-primary)}
.ps-funding .ps-funding-text p{margin:0;max-width:760px;font-size:var(--step-body);line-height:1.8;color:var(--text-primary);text-align:left}
.ps-funding .ps-funding-text p b{font-weight:500;color:var(--text-accent)}

/* the logo wall: soft tiles six across, the last row centred */
.ps-funding .ps-logos{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:clamp(56px,6vw,96px) 0 0;padding:0;list-style:none;--cols:6}
.ps-funding .ps-logos li{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols));margin:0;
  padding:clamp(8px,1.2vw,18px);aspect-ratio:3/2;border-radius:var(--radius-md);background:var(--bg-subtle);transition:background .3s,box-shadow .3s}
.ps-funding .ps-logos img{display:block;width:100%;height:100%;object-fit:contain;filter:grayscale(1);opacity:.72;mix-blend-mode:multiply;transition:filter .35s,opacity .35s,transform .45s cubic-bezier(.2,.7,.2,1)}
.ps-funding .ps-logos li:hover{background:var(--bg-page);box-shadow:0 0 0 1px var(--border-subtle),0 18px 36px -24px rgba(18,23,53,.35)}
.ps-funding .ps-logos li:hover img{filter:none;opacity:1;transform:scale(1.05)}

@media (max-width:1199px){.ps-funding .ps-logos{--cols:4}}
@media (max-width:991px){.ps-funding .ps-funding-text{grid-template-columns:1fr;gap:24px}}
@media (max-width:767px){.ps-funding .ps-logos{--cols:2;gap:10px}.ps-funding .ps-logos li{flex-basis:calc((100% - 10px) / 2)}}
/* touch screens have no hover: show the logos in colour */
@media (hover:none){.ps-funding .ps-logos img{filter:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.ps-funding .ps-logos img{transition:none}.ps-funding .ps-logos li:hover img{transform:none}}
