/* Homepage funding finder and compact funding updates. */
.ng-grant-finder{margin-top:36px;padding:28px;border:1px solid var(--ng-line);border-radius:var(--ng-radius);background:var(--ng-soft)}
.ng-finder-intro .ng-eyebrow{margin-bottom:10px}
.ng-finder-intro h2{font-size:clamp(1.5rem,2.4vw,2rem);margin-bottom:10px}
.ng-finder-intro p:last-child{margin-bottom:0;color:var(--ng-muted)}
.ng-finder-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:16px;margin-top:22px}
.ng-finder-field{min-width:0}
.ng-finder-field label{display:block;font-size:.85rem;font-weight:700;margin-bottom:7px}
.ng-finder-field select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #CDBFCE;border-radius:8px;background:var(--ng-white);color:var(--ng-ink);font:inherit}
.ng-finder-form .ng-button{min-height:48px;white-space:nowrap}
.ng-grant-finder .ng-finder-help{margin:14px 0 0}
.ng-grant-finder + .ng-latest-grants{padding-top:36px}
@media(max-width:760px){.ng-grant-finder{padding:21px;margin-top:28px}.ng-finder-form{grid-template-columns:minmax(0,1fr);gap:16px}.ng-finder-form .ng-button{width:100%;white-space:normal}}

.ng-latest-grants .ng-section-lead > .ng-button{flex-shrink:0;white-space:nowrap}
.ng-latest-grants .ng-section-lead .ng-eyebrow{margin-bottom:12px;color:var(--ng-plum)}
.ng-latest-card h3 a{font-size:inherit;line-height:inherit;text-decoration:none;overflow-wrap:anywhere}
.ng-latest-card h3 a:hover{text-decoration:underline}
.ng-latest-card .ng-tag{max-width:100%;white-space:normal}
.ng-latest-card .ng-latest-location{font-size:.86rem;margin-bottom:16px}
.ng-latest-deadline{margin:0 0 16px;font-size:.87rem;line-height:1.55}
.ng-latest-deadline dt{font-weight:700;color:var(--ng-plum)}
.ng-latest-deadline dd{margin:4px 0 0;color:var(--ng-ink);overflow-wrap:anywhere}
.ng-latest-card .ng-latest-date{font-size:.78rem;margin:0 0 16px}
.ng-latest-card .ng-home-card-link{font-size:.9rem}
.ng-latest-grants .ng-latest-note{margin:18px 0 0}
/* Funder identity + scheme-specific summary: homepage latest grants. */
.ng-latest-card{overflow:hidden;display:flex;flex-direction:column}
.ng-latest-identity{margin:-24px -24px 17px;padding:21px 23px 16px;min-height:119px;background:linear-gradient(115deg,#f6eef5,#fcf5e9);border-bottom:1px solid #e5d9e7}
/* review.25: 75px = logo max-height, so a lazy logo cannot push the card down when it loads (CLS). */
.ng-latest-funder-brand{min-height:75px;display:flex;align-items:center;gap:12px}
.ng-latest-funder-wordmark{display:block;color:#512a53;font-size:clamp(1.1rem,1.5vw,1.35rem);font-weight:800;line-height:1.26;letter-spacing:-.015em}
.ng-latest-official-logo{display:block;width:auto;max-width:210px;max-height:75px;object-fit:contain;object-position:left center}
.ng-latest-identity-label{color:#66536b;font-size:.68rem;line-height:1.3;margin:7px 0 0;letter-spacing:.045em;text-transform:uppercase}
.ng-latest-scheme-content{display:flex;flex-direction:column;flex:1}
.ng-latest-scheme-title{margin:13px 0 0;font-size:1.16rem;line-height:1.38;color:#302331}
.ng-latest-scheme-title a{color:inherit;text-decoration:none}
.ng-latest-scheme-title a:hover{text-decoration:underline}
.ng-latest-scheme-content .ng-tag{align-self:flex-start;margin-bottom:13px}
.ng-latest-scheme-description{font-size:.9rem;line-height:1.55;color:var(--ng-ink);margin:2px 0 15px}
.ng-latest-amount,.ng-latest-eligibility{font-size:.84rem;line-height:1.5;margin:0 0 10px}
.ng-latest-eligibility{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ng-latest-scheme-content .ng-home-card-link{margin-top:auto}
@media(max-width:600px){.ng-latest-identity{margin:-20px -20px 15px;padding:18px 20px 15px}}

@media(max-width:440px){.ng-latest-grants .ng-section-lead > .ng-button{white-space:normal}}

/* review.26: white name box for government listings (no logo, no emblem). */
.ng-govt-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfc4d1;
  border-radius: 4px;
  color: #2b1d2c;
  text-align: left;
}
.ng-govt-box > span {
  display: block;
  overflow-wrap: anywhere;
}
.ng-govt-box-name { font-weight: 700; }
.ng-govt-box-gov { font-weight: 500; color: #4a3b4b; }
.ng-latest-govt-box {
  height: 75px;
  width: auto;
  max-width: 100%;
  padding: 8px 12px;
  font-size: .82rem;
  line-height: 1.35;
}
