/* CICP Team grid — design-system cards + slide-in bio panel. */

/* page header band */
.cicp-teamhead{background:linear-gradient(120deg,#194787 0%,#194787 60%,#0C79B5 100%);color:#fff;padding:66px 0 58px}
.cicp-teamhead .cicp-h1{color:#fff}
.cicp-teamhead p{color:#c9d6ff;font-size:17px;margin:14px 0 0;max-width:60ch}

.cicp-team-body{padding:56px 30px 88px}

/* grid — clean 4-up, aligned rows */
.cicp-team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}

/* card (a div, so the global button reset can't touch it) */
.cicp-tcard{display:flex;flex-direction:column;background:#FAFAFA;border:1px solid var(--cicp-line);border-radius:var(--cicp-radius-card);overflow:hidden;cursor:pointer;transition:transform .18s,box-shadow .18s;-webkit-tap-highlight-color:transparent}
.cicp-tcard:hover{transform:translateY(-5px);box-shadow:var(--cicp-shadow-hi)}
.cicp-tcard:focus-visible{outline:2px solid var(--cicp-blue);outline-offset:2px}
.cicp-tcard__photo{display:block;width:100%;aspect-ratio:4/5;background:var(--cicp-mist);overflow:hidden}
.cicp-tcard__img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;transition:transform .3s ease}
.cicp-tcard:hover .cicp-tcard__img{transform:scale(1.04)}
.cicp-tcard__initials{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:linear-gradient(140deg,#194787,#0C79B5);color:#fff;font-family:var(--font-head);font-size:48px;font-weight:600}
.cicp-tcard__info{padding:16px 18px 20px;display:flex;flex-direction:column;gap:4px}
.cicp-tcard__name{font-family:var(--font-head);font-weight:700;font-size:16.5px;color:var(--cicp-navy);line-height:1.28}
.cicp-tcard__role{font-family:var(--font-body);font-size:13.5px;color:var(--cicp-body);line-height:1.42}

/* slide-in bio panel */
.cicp-backdrop{position:fixed;inset:0;background:rgba(0,10,40,.5);opacity:0;transition:opacity .25s;z-index:2147483646}
.cicp-backdrop.is-open{opacity:1}
.cicp-panel{position:fixed;top:0;right:0;height:100%;width:min(520px,94vw);background:#FAFAFA;z-index:2147483647;box-shadow:-8px 0 30px rgba(0,10,40,.22);transform:translateX(100%);transition:transform .3s ease;overflow-y:auto}
.cicp-panel.is-open{transform:translateX(0)}
.cicp-panel__close{position:absolute;top:14px;right:18px;border:0;background:rgba(255,255,255,.9);width:38px;height:38px;border-radius:50%;font-size:26px;line-height:1;color:var(--cicp-navy);cursor:pointer;z-index:2}
.cicp-panel__photo{width:100%;aspect-ratio:1/0.92;background:var(--cicp-mist);overflow:hidden}
.cicp-panel__photo img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.cicp-panel__body{padding:28px 34px 52px}
.cicp-panel__name{margin:0;font-family:var(--font-head);font-size:26px;color:var(--cicp-navy);font-weight:700}
.cicp-panel__role{margin:5px 0 20px;color:var(--cicp-body);font-size:16px}
.cicp-panel__bio{font-size:15px;line-height:1.7;color:var(--cicp-ink)}
.cicp-panel__bio p{margin:0 0 1em}
body.cicp-locked{overflow:hidden}

@media(max-width:1080px){ .cicp-team-grid{grid-template-columns:repeat(3,1fr)} }
@media(max-width:760px){
	.cicp-teamhead{padding:48px 0 42px}
	.cicp-team-body{padding:40px 20px 60px}
	.cicp-team-grid{grid-template-columns:1fr 1fr;gap:16px}
}

/* Hello Elementor's reset.css forces `border:1px solid #cc3366` + pink text on bare
   <button> elements and wins the cascade here, turning the drawer close button pink. */
.cicp-panel__close{
	border:0!important;
	background:rgba(255,255,255,.9)!important;
	color:var(--cicp-navy)!important;
}
.cicp-panel__close:hover{background:#fff!important;color:var(--cicp-blue)!important}

/* ---------- Initiatives group (separate block at the bottom of the team page) ---------- */
.cicp-team-group{margin-top:64px;padding-top:44px;border-top:1px solid var(--cicp-line)}
.cicp-team-group__label{display:block;margin-bottom:22px}
/* The Initiatives group is exactly 5 people — 5 columns fills the row evenly
   instead of wrapping the main grid's 4-up pattern into an orphaned 5th card. */
.cicp-team-group .cicp-team-grid{grid-template-columns:repeat(5,1fr)}
@media(max-width:1080px){ .cicp-team-group .cicp-team-grid{grid-template-columns:repeat(3,1fr)} }
@media(max-width:760px){ .cicp-team-group .cicp-team-grid{grid-template-columns:1fr 1fr} }
