/* ---- Page header ---- */

.page-header-committees {
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header-committees p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
}
.page-header-committees h1 {
  color: var(--green);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0;
  font-weight: 700;
}

/* ---- Section divider ---- */

.divider {
  width: 148px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 0;
  border-radius: 2px;
}

/* ---- General Chairs ---- */

.general-chair-label {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.general-chair-name {
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--primary);
  margin: 0.1rem 0 0.15rem;
  line-height: 1.3;
}
.general-chair-affil {
  font-size: 1rem;
  color: var(--muted);
}
.general-chair-photo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
}

/* ---- Committee card ---- */
.committee-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.committee-group {
  font-family: "Playfair Display", serif;
  color: var(--dark-blue);
}

/* ---- Card header band ---- */
.card-band {
  background: var(--green);
  padding: 0.75rem 1.25rem;
}
.card-band h2 {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.card-band .role-badge {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

/* ── Chair section ── */
.chair-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.chair-photo {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
}

.chair-photo-placeholder {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--muted);
}
.chair-info .chair-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.chair-info .chair-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin: 0.1rem 0 0.15rem;
  line-height: 1.3;
}
.chair-info .chair-affil {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Members list ── */
.members-section {
  padding: 0.9rem 1rem 0.7rem;
}
.members-section .members-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.members-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.members-list li {
  font-size: 0.875rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.affil {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.75rem;
}
.members-list li:last-child {
  border-bottom: none;
}
.members-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
/* ── Contact section ── */

.contact-section {
  padding: 0.9rem 1rem 0.9rem;
  border-top: 1px solid var(--border);
}
.contact-section .contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.contact-list {
  list-style: none;
  margin: 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0rem;
}
.contact-email {
  font-size: 0.68rem;
  /* font-family: monospace; */
  /* letter-spacing: .03rem; */
  font-weight: 500;
}
.contact-email,
.contact-email:visited,
.contact-email:focus {
  color: #156aa3;
  text-decoration: none;
}
.contact-email:hover {
  opacity: 0.75;
}
.contact-email::before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.4em;
  vertical-align: -0.35em;

  background: currentColor;
  mask: url("/assets/images/envelope-solid-full.svg") center/contain no-repeat;
  -webkit-mask: url("/assets/images/envelope-solid-full.svg") center/contain
    no-repeat;
}
/* ── Layout ── */
.committees-grid {
  padding: 3rem 0 4rem;
}

@media (max-width: 575px) {
  .chair-section {
    flex-direction: column;
    text-align: center;
  }
}

/* Masonry via CSS columns — cards pack tightly regardless of height */
.committees-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

/* Each card must not break across columns */
.committees-masonry .committee-card {
  break-inside: avoid;
  display: inline-block; /* required for break-inside to work reliably cross-browser */
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Responsive breakpoints matching Bootstrap's sm/lg */
@media (max-width: 991px) {
  .committees-masonry {
    column-count: 2;
  }
}
@media (max-width: 575px) {
  .committees-masonry {
    column-count: 1;
  }
}
