/* SPE BUE shared popup + compact cards (news, committees, who-we-are) */
.spm{position:fixed;inset:0;z-index:2000;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(3,10,26,.78)}
.spm.on{display:flex;animation:spmFade .3s ease both}
.spm-box{position:relative;width:min(780px,100%);max-height:min(92vh,100%);overflow-y:auto;overscroll-behavior:contain;border-radius:18px;background:var(--card,linear-gradient(180deg,#10295a,#0a1e46));border:1px solid var(--gold,#F5B82E);box-shadow:0 30px 80px rgba(0,0,0,.55),0 0 0 1px rgba(245,184,46,.18);outline:0}
.spm.on .spm-box{animation:spmPop .55s cubic-bezier(.2,.9,.25,1.15) both}
.spm.out{display:flex;animation:spmFadeOut .24s ease both}
.spm.out .spm-box{animation:spmOut .24s ease both}
@keyframes spmFade{from{opacity:0}to{opacity:1}}
@keyframes spmFadeOut{from{opacity:1}to{opacity:0}}
@keyframes spmPop{0%{opacity:0;transform:translateY(46px) scale(.88)}100%{opacity:1;transform:none}}
@keyframes spmOut{to{opacity:0;transform:translateY(24px) scale(.95)}}
@keyframes spmSheet{0%{opacity:.4;transform:translateY(100%)}100%{opacity:1;transform:none}}
@keyframes spmUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes spmImg{from{opacity:0;transform:scale(1.06)}to{opacity:1;transform:none}}
.spm.on .nm-gal img{animation:spmImg .7s cubic-bezier(.2,.8,.2,1) .1s both}
.spm.on .nm-body>*,.spm.on .cm-top,.spm.on .cm-body>p,.spm.on .cm-body>.chips,.spm.on .cm-lead{animation:spmUp .5s cubic-bezier(.2,.8,.2,1) both}
.spm.on .nm-body>:nth-child(1),.spm.on .cm-top{animation-delay:.16s}
.spm.on .nm-body>:nth-child(2),.spm.on .cm-body>p{animation-delay:.24s}
.spm.on .nm-body>:nth-child(3),.spm.on .cm-body>.chips{animation-delay:.32s}
.spm.on .nm-body>:nth-child(n+4),.spm.on .cm-lead{animation-delay:.4s}
.spm.on .cm-person{animation:spmUp .55s cubic-bezier(.2,.8,.2,1) .5s both}
.spm.on .cm-person+.cm-person{animation-delay:.62s}
.spm-x{position:sticky;top:10px;z-index:3;display:grid;place-items:center;width:40px;height:40px;margin:10px 10px -50px auto;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(4,12,31,.78);color:#fff;font:400 26px/1 Arial,sans-serif;cursor:pointer;transition:background .2s,transform .2s}
.spm-x:hover{background:var(--gold,#F5B82E);color:#1a1204;transform:rotate(90deg)}
html.spm-lock,html.spm-lock body{overflow:hidden}
/* news popup */
.nm-gal img{display:block;width:100%;max-height:62vh;object-fit:contain;background:#030a1a}
.nm-gal img+img{margin-top:2px}
.nm-body{padding:1.4rem 1.6rem 1.8rem}
.nm-body h2{font-size:clamp(1.3rem,3.2vw,1.8rem);line-height:1.25;color:#fff;margin:0 0 .6rem}
.nm-meta{color:var(--gold,#F5B82E);font-weight:700;font-size:.85rem;margin:0 0 .9rem}
.nm-body p{color:var(--muted,#a9b8d6);line-height:1.75;margin:0 0 .85rem}
.nm-body a{color:var(--gold,#F5B82E);font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* committee popup */
.cm-body{padding:1.6rem 1.6rem 1.8rem}
.cm-top{display:flex;gap:1rem;align-items:center;margin:0 0 1rem;padding-right:46px}
.cm-ico{flex:none;width:58px;height:58px;border-radius:16px;display:grid;place-items:center;color:var(--gold,#F5B82E);background:rgba(245,184,46,.12);border:1px solid rgba(245,184,46,.4)}
.cm-ico svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cm-top small{display:block;color:var(--gold,#F5B82E);font-weight:700;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase}
.cm-top h3{color:#fff;font-size:clamp(1.25rem,3vw,1.7rem);line-height:1.2;margin:.15rem 0 0}
.cm-body>p{color:var(--muted,#a9b8d6);line-height:1.75;margin:0 0 .4rem}
.cm-body .chips{margin:.9rem 0 0}
.cm-lead{margin:1.4rem 0 .8rem;color:var(--gold,#F5B82E);font-weight:800;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase}
.cm-people{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.cm-person{text-align:center;padding:1.2rem 1rem;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--line,rgba(245,184,46,.2))}
.cm-person.head{border-color:rgba(245,184,46,.55)}
.cm-photo{width:104px;height:104px;margin:0 auto .8rem;border-radius:50%;background:#0b1f47 center/cover no-repeat;border:3px solid rgba(245,184,46,.45)}
.cm-person h4{color:#fff;font-size:1.05rem;margin:0}
.cm-person span.r{display:block;color:var(--gold,#F5B82E);font-size:.85rem;font-weight:700;margin:.2rem 0 .5rem}
.cm-person p{color:var(--muted,#a9b8d6);font-size:.88rem;line-height:1.55;margin:0 0 .6rem}
.cm-person .b-li{display:inline-flex;align-items:center;gap:.4rem}
@media (max-width:560px){.spm.on .spm-box{animation-name:spmSheet;animation-duration:.45s}.spm{padding:0;align-items:flex-end}.spm-box{border-radius:20px 20px 0 0;max-height:94vh;width:100%}.cm-people{grid-template-columns:1fr}.nm-body,.cm-body{padding:1.2rem 1.1rem 1.5rem}}
/* "Click to Learn More" label */
.learn{display:inline-flex;align-items:center;gap:.4rem;margin-top:auto;padding-top:.3rem;color:var(--gold,#F5B82E);font-weight:800;font-size:.82rem}
.learn svg{width:14px;height:14px;transition:transform .25s ease}
[data-spm]:hover .learn svg,[data-spm]:focus-visible .learn svg{transform:translateX(4px)}
[data-spm]{cursor:pointer}
[data-spm]:focus-visible{box-shadow:0 0 0 3px rgba(245,184,46,.35)}
/* compact news cards */
.news-grid{grid-template-columns:repeat(3,1fr)!important;gap:1rem!important}
.news-card{display:flex;flex-direction:column;border-radius:14px!important}
.news-card .news-thumb{width:100%;height:150px;object-fit:cover;display:block;background:#030a1a}
.news-card .news-body{display:flex;flex-direction:column;gap:.45rem;flex:1;padding:.9rem 1rem 1rem}
.news-card h2{font-size:1.02rem;line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-card p{font-size:.88rem;line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-card p~p{display:none}
@media (max-width:900px){.news-grid{grid-template-columns:repeat(2,1fr)!important}}
@media (max-width:560px){.news-grid{grid-template-columns:1fr!important;gap:.8rem!important}.news-card{flex-direction:row}.news-card .news-thumb{width:112px;height:auto;min-height:128px;flex:none}.news-card .news-body{padding:.75rem .85rem}}

/* committee cards: crisp yellow label, no blurry glow */
.cm-grid .committee::before{display:none!important}
.cm-grid .committee{-webkit-tap-highlight-color:transparent;outline:0}
.cm-grid .committee .learn{margin-top:.1rem;padding:.4rem .95rem;border-radius:99px;background:linear-gradient(135deg,#ffd45c,#F5B82E 60%,#e0a21a);color:#1a1204;font-weight:800;box-shadow:0 6px 16px rgba(245,184,46,.28);transition:transform .2s ease,box-shadow .2s ease}
.cm-grid .committee:hover .learn{transform:translateY(-2px);box-shadow:0 10px 22px rgba(245,184,46,.4)}
.cm-grid .committee:focus-visible{border-color:var(--gold,#F5B82E);box-shadow:0 0 0 3px rgba(245,184,46,.35)}
[data-spm]{-webkit-tap-highlight-color:transparent}
[data-spm]:focus{outline:0}

/* keep scrolling inside popups (never leaks to the page) */
.pm,.lb,.spm-box{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.pm{overflow-y:auto}

/* ===== POPUP V2: no internal scrolling, larger committee portraits, 3-leader layout ===== */
.spm{
  padding:16px;
}
.spm-box{
  width:min(1040px,100%);
  height:min(820px,calc(100vh - 32px));
  max-height:calc(100vh - 32px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.spm-in{
  min-height:0;
  height:100%;
  overflow:hidden;
}
.spm-x{
  flex:none;
}
.cm-body{
  height:100%;
  min-height:0;
  padding:1.35rem 1.5rem 1.45rem;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.cm-top{
  flex:none;
  margin-bottom:.75rem;
}
.cm-ico{
  width:54px;
  height:54px;
}
.cm-body>p{
  flex:none;
  margin-bottom:.35rem;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.cm-body .chips{
  flex:none;
  margin:.65rem 0 0;
}
.cm-lead{
  flex:none;
  margin:.8rem 0 .55rem;
}
.cm-people{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.85rem;
  overflow:hidden;
}
.cm-person{
  min-width:0;
  min-height:0;
  padding:.85rem .7rem .8rem;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  overflow:hidden;
}
.cm-photo{
  width:158px!important;
  height:158px!important;
  min-width:158px!important;
  min-height:158px!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:1/1!important;
  margin:0 auto .65rem;
  border-radius:18px;
  background-size:cover!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
  border:2px solid rgba(245,184,46,.5);
  flex:none;
  box-sizing:border-box;
}
.cm-person h4{
  font-size:1rem;
  line-height:1.2;
  margin-top:0;
}
.cm-person span.r{
  font-size:.78rem;
  margin:.18rem 0 .35rem;
}
.cm-person p{
  font-size:.78rem;
  line-height:1.4;
  margin:0 0 .45rem;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
.cm-person .b-li{
  margin-top:auto;
  align-self:center;
  padding:.38rem .75rem;
  font-size:.76rem;
}

/* For committees with only two leaders, keep them centered and larger. */
.cm-people:has(.cm-person:nth-child(2):last-child){
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:700px;
  width:100%;
  margin:0 auto;
}
.cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
  width:158px;
  height:158px;
}

@media (max-width:760px){
  .spm{padding:8px;}
  .spm-box{
    height:calc(100vh - 16px);
    max-height:calc(100vh - 16px);
    border-radius:18px;
  }
  .cm-body{
    padding:.95rem .85rem 1rem;
  }
  .cm-top{
    gap:.7rem;
    padding-right:42px;
  }
  .cm-ico{width:46px;height:46px;border-radius:13px}
  .cm-ico svg{width:24px;height:24px}
  .cm-top h3{font-size:1.18rem}
  .cm-body>p{
    font-size:.78rem;
    line-height:1.45;
    -webkit-line-clamp:2;
  }
  .cm-body .chips{
    display:none;
  }
  .cm-lead{
    margin:.55rem 0 .4rem;
    font-size:.74rem;
  }
  .cm-people,
  .cm-people:has(.cm-person:nth-child(2):last-child){
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.45rem;
    max-width:none;
  }
  .cm-person{
    padding:.55rem .35rem .55rem;
    border-radius:11px;
  }
  .cm-photo,
  .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
    width:82px!important;
    height:82px!important;
    min-width:82px!important;
    min-height:82px!important;
    max-width:none!important;
    max-height:none!important;
    aspect-ratio:1/1!important;
    border-radius:12px;
  }
  .cm-person h4{font-size:.72rem}
  .cm-person span.r{font-size:.63rem;line-height:1.2}
  .cm-person p{
    font-size:.62rem;
    line-height:1.3;
    -webkit-line-clamp:3;
  }
  .cm-person .b-li{
    font-size:.62rem;
    padding:.3rem .55rem;
  }
}

@media (max-width:420px){
  .cm-photo,
  .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
    width:70px;height:70px;
  }
  .cm-person h4{font-size:.68rem}
  .cm-person p{font-size:.58rem}
}

/* ===== POPUP V3: smaller, tighter committee popup ===== */
.spm-box{
  width:min(900px,calc(100vw - 48px));
  height:min(640px,calc(100vh - 48px));
  max-height:calc(100vh - 48px);
  border-radius:16px;
}
.cm-body{padding:1rem 1.15rem 1.1rem}
.cm-top{gap:.75rem;margin-bottom:.55rem;padding-right:40px}
.cm-ico{width:46px;height:46px;border-radius:12px}
.cm-ico svg{width:25px;height:25px}
.cm-top small{font-size:.7rem}
.cm-top h3{font-size:1.35rem}
.cm-body>p{font-size:.82rem;line-height:1.5;-webkit-line-clamp:2;margin-bottom:.25rem}
.cm-body .chips{margin:.45rem 0 0}
.cm-lead{margin:.55rem 0 .4rem;font-size:.76rem}
.cm-people{gap:.65rem}
.cm-person{padding:.65rem .55rem .6rem;border-radius:12px}
.cm-photo{width:116px;height:116px;margin-bottom:.5rem;border-radius:15px}
.cm-person h4{font-size:.9rem}
.cm-person span.r{font-size:.72rem;margin:.12rem 0 .28rem}
.cm-person p{font-size:.7rem;line-height:1.3;-webkit-line-clamp:3;margin-bottom:.35rem}
.cm-person .b-li{font-size:.7rem;padding:.3rem .6rem}
.cm-people:has(.cm-person:nth-child(2):last-child){max-width:560px;gap:.7rem}
.cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{width:125px;height:125px}

@media (max-width:760px){
  .spm{padding:8px}
  .spm-box{width:calc(100vw - 16px);height:calc(100vh - 40px);max-height:calc(100vh - 40px);border-radius:16px}
  .cm-body{padding:.8rem .7rem .85rem}
  .cm-top{gap:.55rem;margin-bottom:.4rem}
  .cm-ico{width:40px;height:40px;border-radius:10px}
  .cm-ico svg{width:21px;height:21px}
  .cm-top small{font-size:.62rem}
  .cm-top h3{font-size:1.05rem}
  .cm-body>p{font-size:.7rem;line-height:1.35;-webkit-line-clamp:2}
  .cm-lead{margin:.4rem 0 .3rem;font-size:.65rem}
  .cm-people,.cm-people:has(.cm-person:nth-child(2):last-child){gap:.35rem}
  .cm-person{padding:.45rem .25rem;border-radius:9px}
  .cm-photo,.cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{width:70px;height:70px;border-radius:11px;margin-bottom:.35rem}
  .cm-person h4{font-size:.64rem}
  .cm-person span.r{font-size:.55rem}
  .cm-person p{font-size:.54rem;line-height:1.2;-webkit-line-clamp:2}
  .cm-person .b-li{font-size:.54rem;padding:.25rem .45rem}
}

@media (max-width:420px){
  .spm-box{height:calc(100vh - 32px);max-height:calc(100vh - 32px)}
  .cm-photo,.cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{width:60px;height:60px}
}


/* Committee popup refinement: fill the dialog naturally, reduce dead space, enlarge portraits */
.spm-box{
  width:min(980px,calc(100vw - 40px));
  height:auto;
  max-height:calc(100vh - 40px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border-radius:20px;
}
.spm-in{
  height:auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.spm-x{
  position:absolute;
  top:10px;
  right:10px;
  margin:0;
}
.cm-body{
  height:auto;
  min-height:0;
  padding:1.5rem 1.65rem 1.6rem;
  overflow:visible;
  display:flex;
  flex-direction:column;
}
.cm-top{padding-right:48px;margin-bottom:.8rem;gap:1rem}
.cm-ico{width:56px;height:56px}
.cm-top small{font-size:.78rem}
.cm-top h3{font-size:clamp(1.4rem,2.5vw,1.8rem)}
.cm-body>p{
  display:block;
  overflow:visible;
  -webkit-line-clamp:unset;
  font-size:.95rem;
  line-height:1.65;
  margin-bottom:.55rem;
}
.cm-body .chips{display:flex;flex-wrap:wrap;margin:.65rem 0 .2rem}
.cm-lead{margin:1.1rem 0 .7rem;font-size:.82rem}
.cm-people{
  flex:initial;
  min-height:0;
  overflow:visible;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
}
.cm-person{
  min-height:0;
  padding:1rem .85rem;
  overflow:visible;
  border-radius:16px;
}
.cm-photo{
  width:clamp(150px,17vw,190px);
  height:clamp(150px,17vw,190px);
  max-width:100%;
  margin:0 auto .8rem;
  border-radius:16px;
  background-size:cover!important;
  background-position:center 25%!important;
  flex:none;
}
.cm-person h4{font-size:1.05rem;line-height:1.25}
.cm-person span.r{font-size:.82rem;margin:.25rem 0 .45rem}
.cm-person p{
  display:block;
  overflow:visible;
  -webkit-line-clamp:unset;
  font-size:.84rem;
  line-height:1.5;
  margin-bottom:.65rem;
}
.cm-person .b-li{margin-top:.25rem;align-self:center;font-size:.8rem;padding:.45rem .8rem}
.cm-people:has(.cm-person:nth-child(2):last-child){
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:760px;
  width:100%;
  margin:0 auto;
  gap:1.25rem;
}
.cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
  width:clamp(180px,22vw,230px);
  height:clamp(180px,22vw,230px);
}
@media(max-width:760px){
  .spm{padding:8px;align-items:center}
  .spm-box{width:calc(100vw - 16px);height:auto;max-height:calc(100vh - 16px);border-radius:18px}
  .cm-body{padding:1rem .85rem 1.1rem}
  .cm-top{padding-right:42px;gap:.65rem}
  .cm-ico{width:44px;height:44px}
  .cm-top h3{font-size:1.15rem}
  .cm-body>p{font-size:.82rem;line-height:1.5}
  .cm-body .chips{display:flex}
  .cm-lead{margin:.75rem 0 .55rem;font-size:.72rem}
  .cm-people{gap:.55rem}
  .cm-person{padding:.7rem .45rem}
  .cm-photo{width:clamp(100px,24vw,150px);height:clamp(100px,24vw,150px);border-radius:13px}
  .cm-person h4{font-size:.78rem}
  .cm-person span.r{font-size:.68rem;line-height:1.25}
  .cm-person p{font-size:.68rem;line-height:1.35}
  .cm-person .b-li{font-size:.66rem;padding:.35rem .5rem}
  .cm-people:has(.cm-person:nth-child(2):last-child){gap:.65rem}
  .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{width:clamp(120px,30vw,175px);height:clamp(120px,30vw,175px)}
}
@media(max-width:420px){
  .cm-people{grid-template-columns:1fr}
  .cm-people:has(.cm-person:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
  .cm-photo{width:105px;height:105px}
  .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{width:115px;height:115px}
  .cm-person h4{font-size:.72rem}
  .cm-person p{font-size:.64rem}
}

/* ===== POPUP V4: mobile fix — bottom sheet, real viewport height, scrollable body, stacked leader rows ===== */
@media (max-width:760px){
  .spm{padding:0;align-items:flex-end;justify-content:center}
  .spm .spm-box{
    width:100%;max-width:none;height:auto;
    max-height:92vh;max-height:92dvh;
    border-radius:20px 20px 0 0;border-bottom:0;
  }
  .spm.on .spm-box{animation-name:spmSheet;animation-duration:.45s}
  .spm .spm-in{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
  .spm .spm-x{position:absolute;top:10px;right:10px;z-index:6;width:38px;height:38px;margin:0}
  .spm .cm-body{padding:1rem 1rem calc(1.4rem + env(safe-area-inset-bottom,0px))}
  .spm .cm-top{padding-right:46px;gap:.7rem;margin-bottom:.7rem}
  .spm .cm-ico{width:42px;height:42px;border-radius:11px}
  .spm .cm-top small{font-size:.66rem}
  .spm .cm-top h3{font-size:1.15rem}
  .spm .cm-body>p{font-size:.86rem;line-height:1.6;display:block;overflow:visible;-webkit-line-clamp:unset}
  .spm .cm-body .chips{display:flex;flex-wrap:wrap;gap:.35rem}
  .spm .cm-lead{margin:1rem 0 .6rem;font-size:.72rem}
  .spm .cm-people,
  .spm .cm-people:has(.cm-person:nth-child(2):last-child){
    display:flex;flex-direction:column;gap:.7rem;max-width:none;width:100%;margin:0;overflow:visible;
  }
  .spm .cm-person{
    display:grid;grid-template-columns:84px minmax(0,1fr);column-gap:.85rem;align-items:start;
    text-align:left;padding:.8rem;border-radius:14px;overflow:visible;
  }
  .spm .cm-person .cm-photo,
  .spm .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
    grid-column:1;grid-row:1 / span 4;width:84px;height:84px;margin:0;border-radius:14px;
    background-position:center 22%!important;
  }
  .spm .cm-person h4{grid-column:2;font-size:.98rem;line-height:1.25;margin:0}
  .spm .cm-person span.r{grid-column:2;font-size:.76rem;line-height:1.3;margin:.15rem 0 .4rem}
  .spm .cm-person p{grid-column:1 / -1;font-size:.8rem;line-height:1.5;margin:.6rem 0 0;display:block;overflow:visible;-webkit-line-clamp:unset}
  .spm .cm-person .b-li{grid-column:1 / -1;justify-self:start;align-self:start;margin-top:.6rem;font-size:.78rem;padding:.4rem .8rem}
  /* news popup on phones */
  .spm .nm-gal img{max-height:46vh;max-height:46dvh}
  .spm .nm-body{padding:1rem 1rem calc(1.4rem + env(safe-area-inset-bottom,0px))}
}


/* ===== POPUP V5: BIG leader photos, short bios, clean mobile ===== */
.spm .cm-photo,.spm .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
  width:100%;max-width:270px;height:auto;aspect-ratio:1/1;margin:0 auto .85rem;border-radius:18px;
  background-position:center 20%!important;border:3px solid rgba(245,184,46,.6);box-shadow:0 12px 28px rgba(0,0,0,.35)}
.spm .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{max-width:310px}
.spm .cm-person{padding:1rem 1rem 1.1rem}
.spm .cm-person h4{font-size:1.12rem}
.spm .cm-person span.r{font-size:.86rem}
.spm .cm-person p{font-size:.88rem;line-height:1.5}
.spm .cm-people:has(.cm-person:nth-child(2):last-child){max-width:820px}

@media (max-width:760px){
  .spm .cm-people,
  .spm .cm-people:has(.cm-person:nth-child(2):last-child){display:grid;grid-template-columns:1fr 1fr;gap:.65rem;max-width:none;width:100%}
  .spm .cm-people .cm-person:nth-child(3):last-child{grid-column:1 / -1}
  .spm .cm-person{display:flex;flex-direction:column;align-items:center;text-align:center;padding:.6rem .55rem .8rem;border-radius:14px}
  .spm .cm-person .cm-photo,
  .spm .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
    grid-column:auto;grid-row:auto;width:100%;max-width:none;height:auto;aspect-ratio:1/1;margin:0 0 .55rem;border-radius:12px;background-position:center 18%!important}
  .spm .cm-people .cm-person:nth-child(3):last-child .cm-photo{max-width:230px}
  .spm .cm-person h4{grid-column:auto;font-size:.9rem;line-height:1.2}
  .spm .cm-person span.r{grid-column:auto;font-size:.7rem;line-height:1.25;margin:.15rem 0 .35rem}
  .spm .cm-person p{grid-column:auto;font-size:.72rem;line-height:1.4;margin:.2rem 0 .5rem}
  .spm .cm-person .b-li{grid-column:auto;justify-self:auto;align-self:center;margin-top:auto;font-size:.72rem;padding:.35rem .7rem}
}
@media (max-width:360px){
  .spm .cm-people,.spm .cm-people:has(.cm-person:nth-child(2):last-child){grid-template-columns:1fr}
  .spm .cm-person .cm-photo{max-width:260px;margin-left:auto;margin-right:auto}
}

/* V5b: keep leaders visible on phones - short committee intro, no chips */
@media (max-width:760px){
  .spm .cm-body>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:.82rem;line-height:1.5}
  .spm .cm-body .chips{display:none}
  .spm .cm-lead{margin:.8rem 0 .5rem}
}

/* ===== V6: phone popups sit in the CENTER of the screen (not a bottom sheet) ===== */
@media (max-width:760px){
  .spm{padding:14px!important;align-items:center!important;justify-content:center!important}
  .spm .spm-box{
    width:100%!important;max-width:460px;margin:0 auto;height:auto!important;
    max-height:calc(100vh - 28px)!important;max-height:calc(100dvh - 28px)!important;
    border-radius:20px!important;border-bottom:1px solid var(--gold,#F5B82E)!important}
  .spm.on .spm-box{animation-name:spmPop!important;animation-duration:.5s!important}
  .spm .cm-body{padding:1rem 1rem 1.2rem!important}
}

/* ===== V7: unified committee popup layout — larger leaders, Head slightly larger, responsive PC/phone ===== */
.spm .spm-box{
  width:min(1000px,calc(100vw - 32px));
  height:auto;
  max-height:calc(100vh - 32px);
  overflow:hidden;
}
.spm .cm-body{
  height:auto;
  min-height:0;
  padding:1.35rem 1.5rem 1.5rem;
  overflow:auto;
}
.spm .cm-top{margin-bottom:.7rem}
.spm .cm-body>p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.spm .cm-lead{margin:.85rem 0 .65rem}
.spm .cm-people,
.spm .cm-people:has(.cm-person:nth-child(2):last-child){
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  width:100%;
  max-width:none;
  margin:0;
  overflow:visible;
}
.spm .cm-people:has(.cm-person:nth-child(2):last-child){
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:760px;
  margin:0 auto;
}
.spm .cm-person{
  min-width:0;
  padding:1rem .8rem .9rem;
  text-align:center;
  overflow:hidden;
  border-radius:16px;
}
.spm .cm-photo,
.spm .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
  width:220px !important;
  height:220px !important;
  max-width:100% !important;
  aspect-ratio:1/1 !important;
  margin:0 auto .75rem !important;
  border-radius:16px !important;
  background-size:cover !important;
  background-position:center 20% !important;
  flex:none;
  box-sizing:border-box;
}
/* The Head is intentionally a little larger, while remaining aligned with the team. */
.spm .cm-person.head .cm-photo{
  width:245px !important;
  height:245px !important;
}
.spm .cm-person h4{font-size:1.08rem;line-height:1.2}
.spm .cm-person span.r{font-size:.82rem;line-height:1.3}
.spm .cm-person p{
  font-size:.8rem;
  line-height:1.45;
  margin:.15rem 0 .5rem;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.spm .cm-person .b-li{margin-top:auto;align-self:center;font-size:.76rem;padding:.38rem .72rem}

@media (max-width:760px){
  .spm{padding:10px!important;align-items:center!important;justify-content:center!important}
  .spm .spm-box{
    width:100%!important;
    max-width:500px;
    max-height:calc(100dvh - 20px)!important;
    border-radius:18px!important;
  }
  .spm .cm-body{
    padding:.9rem .75rem 1rem!important;
    overflow:auto;
  }
  .spm .cm-top{padding-right:44px;gap:.6rem;margin-bottom:.55rem}
  .spm .cm-ico{width:42px;height:42px;border-radius:11px}
  .spm .cm-top small{font-size:.62rem}
  .spm .cm-top h3{font-size:1.12rem}
  .spm .cm-body>p{font-size:.78rem;line-height:1.45;-webkit-line-clamp:3}
  .spm .cm-body .chips{display:none}
  .spm .cm-lead{font-size:.7rem;margin:.7rem 0 .45rem}
  .spm .cm-people,
  .spm .cm-people:has(.cm-person:nth-child(2):last-child){
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.55rem;
    max-width:none;
    width:100%;
  }
  .spm .cm-people .cm-person:nth-child(3):last-child{grid-column:1 / -1;max-width:220px;width:100%;justify-self:center}
  .spm .cm-person{padding:.55rem .4rem .7rem;border-radius:13px}
  .spm .cm-photo,
  .spm .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{
    width:145px !important;
    height:145px !important;
    max-width:100% !important;
    border-radius:13px !important;
    margin-bottom:.5rem !important;
  }
  .spm .cm-person.head .cm-photo{width:160px !important;height:160px !important}
  .spm .cm-person h4{font-size:.82rem;line-height:1.2}
  .spm .cm-person span.r{font-size:.64rem;line-height:1.2;margin:.12rem 0 .25rem}
  .spm .cm-person p{font-size:.67rem;line-height:1.35;-webkit-line-clamp:3;margin:.1rem 0 .35rem}
  .spm .cm-person .b-li{font-size:.65rem;padding:.3rem .55rem}
}

@media (max-width:390px){
  .spm .cm-photo,
  .spm .cm-people:has(.cm-person:nth-child(2):last-child) .cm-photo{width:125px !important;height:125px !important}
  .spm .cm-person.head .cm-photo{width:138px !important;height:138px !important}
  .spm .cm-person h4{font-size:.76rem}
  .spm .cm-person span.r{font-size:.59rem}
  .spm .cm-person p{font-size:.62rem}
}
