:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #4a4a4a;
  --heading: #222;
  --muted: #6f6f6f;
  --border: #e9e9e9;

  --accent: #13aff0;
  --maxw: 1140px;
  --pad: 20px;

  --font: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 12px;
}

*{ box-sizing: border-box; }
body{
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(900px 300px at 50% -120px, rgba(19,175,240,.18), transparent 70%),
    #fbfbfc;
}

a{ color: #2e2e2e; text-decoration: none; transition: all .2s ease; }
a:hover{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233,233,233,.9);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.brand{ line-height: 1.15; }
.brand .org{
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand .title{
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 4px;
}

nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
nav a{
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .4px;
  color: #555;
}
nav a:hover{
  background: rgba(19,175,240,.10);
  text-decoration: none;
}
nav a[aria-current="page"]{
  color: #0b6f99;
  background: rgba(19,175,240,.16);
  font-weight: 700;
}

main{ padding: 46px 0 60px; }

.page-title{
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--heading);
  letter-spacing: -0.02em;
  text-align: center;
}
.subtitle{
  text-align: center;
  color: var(--muted);
  margin: 0 auto 30px;
  max-width: 70ch;
}

.card{
  border: 1px solid rgba(233,233,233,.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* People */
.people-wrap{ display: grid; gap: 22px; }

.person{
  border: 1px solid rgba(233,233,233,.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  padding: 18px;
  text-align: left;
}

.person img{
  display: block;
  width: auto;
  /* add the cap here */
  max-width: 320px;      /* pick the size you want */
  margin: 0 auto;        /* centers the capped image */
  height: 200px;
  border-radius: 10px;
  border: 1px solid rgba(233,233,233,.9);
  background: #f3f3f3;
  
}

.person h3{
  margin: 14px 0 2px;
  color: var(--heading);
  font-size: 16px;
  line-height: 1.3;
}
.person .role{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

/* Centered hero */
.hero-person{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 22px;
}
.hero-person img{
  width: 480px;
  max-width: none; /* bigger than 320 */
  height: auto;
  display: block;
  margin: 0 auto;
}
.hero-person h3{ font-size: 20px; }
.hero-person .role{ font-size: 14px; }

/* Grid for other members */
.grid{
  display: grid;
  gap: 18px;
}
@media (min-width: 820px){
  .grid.cols-2{ grid-template-columns: 1fr 1fr; }
}

hr{
  border: 0;
  border-top: 1px solid rgba(233,233,233,.9);
  margin: 26px 0;
}

h2.section-title{
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 18px;
}

footer{
  border-top: 1px solid rgba(233,233,233,.9);
  padding: 18px 0;
  color: var(--muted);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
}

/* =========================
   Former members layout
   ========================= */

.former-list{
  display: grid;
  gap: 14px;
}

/* Row-style former member cards */
.person.former{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
}
.person.former img{
  width: 120px;
  height: auto;
  border-radius: 10px;
  margin: 0;
}
.person.former h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.person.former .role{
  margin: 0;
}

/* Current position under each former member */
.person.former .position{
  margin: 6px 0 0;
  color: var(--text);
}
.person.former .position strong{
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 480px){
  .person.former{ grid-template-columns: 1fr; }
  .person.former img{ width: 100%; max-width: 180px; }
}