/* V7 discovery pages: content-led uneven rows instead of equal placeholders. */
body[data-v7-template="programs"] .programs,
body[data-v7-template="projects"] .projects{
 display:grid!important;
 grid-template-columns:repeat(12,minmax(0,1fr))!important;
 gap:18px!important;align-items:stretch;
}
body[data-v7-template="programs"] .program,
body[data-v7-template="projects"] .project{
 grid-column:span 4;
 min-width:0;min-height:0!important;
 position:relative;overflow:hidden;
 border:1px solid rgba(235,251,255,.32)!important;
 border-radius:25px!important;
 background:linear-gradient(140deg,rgba(12,51,80,.74),rgba(15,57,87,.55))!important;
 -webkit-backdrop-filter:blur(18px) saturate(115%);
 backdrop-filter:blur(18px) saturate(115%);
 box-shadow:0 18px 42px -24px rgba(0,15,37,.55),inset 0 1px rgba(255,255,255,.23)!important;
 color:#f8fcff!important;
 height:auto!important;
 transition:transform .2s ease,box-shadow .2s ease;
}
body[data-v7-template="programs"] .program:hover,
body[data-v7-template="projects"] .project:hover{
 transform:translateY(-3px);box-shadow:0 25px 48px -24px rgba(0,13,34,.63),inset 0 1px rgba(255,255,255,.32)!important;
}
body[data-v7-template="programs"] .program:nth-child(1),
body[data-v7-template="projects"] .project:nth-child(1){grid-column:span 7}
body[data-v7-template="programs"] .program:nth-child(2),
body[data-v7-template="projects"] .project:nth-child(2){grid-column:span 5}
body[data-v7-template="programs"] .program:nth-child(n+3){grid-column:span 4}
body[data-v7-template="projects"] .project:nth-child(n+6){grid-column:span 3}
body[data-v7-template="projects"] .project:nth-child(n+3):nth-child(-n+5){grid-column:span 4}
body[data-v7-template="programs"] .program h3,
body[data-v7-template="projects"] .project h3{
 color:#fff!important;font-family:var(--sans);
 font-size:clamp(22px,2.3vw,32px);font-weight:680;
 letter-spacing:-.04em;line-height:1.13;
}
body[data-v7-template="programs"] .program p,
body[data-v7-template="projects"] .project p{color:#d9ebf5!important;line-height:1.6}
body[data-v7-template="programs"] .program .glyph,
body[data-v7-template="programs"] .program .index{color:#c5e9fb}
body[data-v7-template="programs"] .program:nth-child(1){
 background:linear-gradient(140deg,rgba(34,100,140,.76),rgba(13,58,94,.58))!important;
}
body[data-v7-template="programs"] .program:nth-child(1) h3{font-size:clamp(30px,3.2vw,45px)}
body[data-v7-template="projects"] .project:nth-child(1) h3{font-size:clamp(25px,2.65vw,38px)}
body[data-v7-template="projects"] .project-top{
 position:relative;min-height:158px;height:175px;
 background:linear-gradient(140deg,#397b9e,#143f60)!important;
 background-size:cover!important;background-position:center!important;
 border-radius:20px 20px 0 0;overflow:hidden;
}
body[data-v7-template="projects"] .project-top::after{
 content:"";pointer-events:none;position:absolute;inset:0;
 background:linear-gradient(180deg,rgba(4,27,48,.14),rgba(3,25,44,.57));
}
body[data-v7-template="projects"] .project .river-shape{opacity:.30}
body[data-v7-template="projects"] .project-body{padding:24px!important}
body[data-v7-template="projects"] .project .cat{
 color:#b8def4!important;background:rgba(6,36,60,.42);
 border:1px solid rgba(222,247,255,.22);border-radius:100px;
 padding:6px 11px;
}
body[data-v7-template="projects"] .project a{color:#e4f5ff!important}
body[data-v7-template="hub"] .hub-link-grid,
body[data-v7-template="resources"] .hub-link-grid{
 display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;
 gap:16px!important;align-items:stretch;
}
body[data-v7-template="hub"] .hub-link,
body[data-v7-template="resources"] .hub-link{
 grid-column:span 4;
 background:linear-gradient(145deg,rgba(15,58,86,.78),rgba(16,63,93,.53))!important;
 border:1px solid rgba(233,251,255,.31)!important;border-radius:23px!important;
 color:#fff!important;min-width:0;min-height:0!important;
 padding:26px!important;
 -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
 box-shadow:var(--v7-elevation);
}
body[data-v7-template="hub"] .hub-link:nth-child(1),
body[data-v7-template="resources"] .hub-link:nth-child(1){grid-column:span 7}
body[data-v7-template="hub"] .hub-link:nth-child(2),
body[data-v7-template="resources"] .hub-link:nth-child(2){grid-column:span 5}
body[data-v7-template="hub"] .hub-link h3,
body[data-v7-template="resources"] .hub-link h3{color:#fff}
body[data-v7-template="hub"] .hub-link p,
body[data-v7-template="resources"] .hub-link p{color:#d6ebf6}
body[data-v7-template="hub"] .hub-intro{color:#eef9ff!important}
body[data-v7-template="hub"] .hub-links-title{color:#f7fcff!important}
body[data-v7-template="mission"] .mission-grid{
 display:grid!important;grid-template-columns:minmax(0,7fr) minmax(0,5fr);
 gap:18px!important;align-items:stretch;
}
body[data-v7-template="mission"] .mission-grid > *{
 background:linear-gradient(142deg,rgba(15,58,86,.74),rgba(12,48,73,.58));
 border:1px solid rgba(235,252,255,.3);border-radius:25px;
 padding:clamp(28px,3.6vw,53px)!important;min-width:0;
 -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
 box-shadow:var(--v7-elevation);
}
body[data-v7-template="mission"] .mission-grid h2{color:#fff!important;font-size:clamp(34px,3.2vw,48px)}
body[data-v7-template="mission"] .mission-grid p,
body[data-v7-template="mission"] .mission-grid blockquote{color:#ebf6fc!important}
body[data-v7-template="mission"] .mission-grid blockquote{
 border-left:2px solid rgba(199,236,255,.65);font-size:clamp(23px,2vw,31px);line-height:1.4;
}
body[data-v7-template="mission"] .action-band{
 background:linear-gradient(142deg,rgba(21,65,95,.79),rgba(10,44,69,.66))!important;
 border:1px solid rgba(224,248,255,.31)!important;
 -webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);
}
@media(max-width:1000px) and (min-width:681px){
 body[data-v7-template="programs"] .program,body[data-v7-template="projects"] .project{grid-column:span 6!important}
 body[data-v7-template="hub"] .hub-link,body[data-v7-template="resources"] .hub-link{grid-column:span 6!important}
 body[data-v7-template="mission"] .mission-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:680px){
 body[data-v7-template="programs"] .programs,
 body[data-v7-template="projects"] .projects,
 body[data-v7-template="hub"] .hub-link-grid,
 body[data-v7-template="resources"] .hub-link-grid{grid-template-columns:1fr!important}
 body[data-v7-template="programs"] .program,
 body[data-v7-template="projects"] .project,
 body[data-v7-template="hub"] .hub-link,
 body[data-v7-template="resources"] .hub-link{grid-column:1/-1!important;padding:22px!important}
 body[data-v7-template="mission"] .mission-grid{grid-template-columns:1fr!important}
 body[data-v7-template="mission"] .mission-grid > *{padding:26px!important}
}
