/* Scoped styles based on the supplied committee-members.html reference. */
.pcic-cm {
  --pcic-cm-font: Satoshi, Inter, system-ui, sans-serif;
  --pcic-cm-blue-dark: #065b78;
  --pcic-cm-text-soft: #456c7b;
  --pcic-cm-surface-soft: #f7f8f9;
  --pcic-cm-surface-strong: #eef2f4;
  --pcic-cm-line: rgba(20, 76, 95, .08);
  --pcic-cm-line-strong: rgba(20, 76, 95, .14);
  --pcic-cm-shadow-sm: 0 8px 22px rgba(10, 55, 73, .05);
  --pcic-cm-shadow-md: 0 18px 44px rgba(10, 55, 73, .08);
  --pcic-cm-focus: 0 0 0 3px #1684b5;
  padding: 44px 0 64px;
  border-top: 1px solid rgba(255, 255, 255, .75);
  background: linear-gradient(180deg, rgba(255, 255, 255, .84), #fff);
  color: #173f50;
  font-family: var(--pcic-cm-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  scroll-margin-top: 140px;
  container: pcic-directory / inline-size;
}

.pcic-cm *, .pcic-cm *::before, .pcic-cm *::after { box-sizing: border-box; }
.pcic-cm [hidden] { display: none !important; }
.pcic-cm__container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
@media (max-width: 840px) {
  .pcic-cm { padding-top: 38px; }
  .pcic-cm__container { width: min(1280px, calc(100% - 24px)); }
}

.pcic-cm__heading {
  max-width: 920px;
  margin-bottom: 34px;
  padding-inline-start: 2em;
}

.pcic-cm__filters {
  position: sticky;
  top: var(--pcic-cm-sticky-top, 118px);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 34px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--pcic-cm-shadow-sm);
  backdrop-filter: blur(14px);
}

.pcic-cm .pcic-cm__category-control:is(a, button) {
  display: flex;
  appearance: none;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid var(--pcic-cm-line);
  border-radius: 16px;
  background: var(--pcic-cm-surface-soft);
  font: 700 16px/1.2 var(--pcic-cm-font) !important;
  text-align: start !important;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  align-items: flex-start;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.pcic-cm .pcic-cm__category-control:is(a, button):is(:hover, :focus-visible) {
  transform: translateY(-2px);
  border-color: var(--pcic-cm-line-strong);
  background: #fff;
  box-shadow: var(--pcic-cm-shadow-sm);
  outline: none;
}

.pcic-cm__groups {
  display: grid;
  gap: 38px;
  scroll-margin-top: calc(var(--pcic-cm-sticky-top, 118px) + 110px);
}

.pcic-cm__group {
  scroll-margin-top: calc(var(--pcic-cm-sticky-top, 118px) + 110px);
  padding: 28px;
  border: 1px solid rgba(10, 55, 73, 0.06);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--pcic-cm-shadow-sm);
}

.pcic-cm__group-heading {
  margin-bottom: 22px;
}

/* The reference uses a 16px root. Keep its scale when a WordPress theme uses a different root or styles content elements directly. */
.pcic-cm .pcic-cm__section-title,
.pcic-cm .pcic-cm__group-title,
.pcic-cm .pcic-cm__member-name,
.pcic-cm .pcic-cm__intro,
.pcic-cm .pcic-cm__role,
.pcic-cm .pcic-cm__company,
.pcic-cm .pcic-cm__empty {
  margin: 0 !important;
  padding: 0 !important;
  text-align: start !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.pcic-cm .pcic-cm__section-title,
.pcic-cm .pcic-cm__group-title,
.pcic-cm .pcic-cm__member-name {
  color: var(--pcic-cm-blue-dark) !important;
}

.pcic-cm .pcic-cm__section-title { font: 700 26.4px/1.1 var(--pcic-cm-font) !important; }
.pcic-cm .pcic-cm__group-title { font: 700 clamp(23.2px, 2.2vw, 32px)/1.1 var(--pcic-cm-font) !important; }
.pcic-cm .pcic-cm__member-name { font: 700 16.8px/1.2 var(--pcic-cm-font) !important; }

.pcic-cm .pcic-cm__intro {
  margin-top: 14px !important;
  color: var(--pcic-cm-text-soft) !important;
  font: 400 clamp(16.8px, 1.5vw, 19.84px)/1.55 var(--pcic-cm-font) !important;
}

.pcic-cm .pcic-cm__role,
.pcic-cm .pcic-cm__company {
  margin-top: 7px !important;
  font: 400 13px/1.35 var(--pcic-cm-font) !important;
}

.pcic-cm .pcic-cm__role {
  color: #2c5262 !important;
  font-weight: 700 !important;
}

.pcic-cm .pcic-cm__company,
.pcic-cm .pcic-cm__empty { color: var(--pcic-cm-text-soft) !important; }

.pcic-cm .pcic-cm__empty { font: 400 16px/1.45 var(--pcic-cm-font) !important; }

.pcic-cm__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.pcic-cm__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10, 55, 73, 0.06);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--pcic-cm-shadow-sm);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.pcic-cm__card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 55, 73, 0.1);
  box-shadow: var(--pcic-cm-shadow-md);
}

.pcic-cm__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(6, 91, 120, 0.12), rgba(17, 162, 232, 0.18)),
    var(--pcic-cm-surface-strong);
}

.pcic-cm__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 18px;
}

.pcic-cm__card-footer {
  display: flex;
  margin-top: auto;
  padding-top: 14px;
}

.pcic-cm a.pcic-cm__profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font: 700 14.72px/1.45 var(--pcic-cm-font) !important;
}

.pcic-cm a.pcic-cm__profile-link .pcic-cm__profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--pcic-cm-blue-dark);
  color: #fff !important;
  font: 700 13.12px/1 var(--pcic-cm-font) !important;
}

.pcic-cm a.pcic-cm__profile-link .pcic-cm__profile-label { font: inherit !important; }

.pcic-cm a.pcic-cm__profile-link:hover {
  text-decoration: underline;
}

.pcic-cm a.pcic-cm__profile-link :is(.pcic-cm__profile-badge, .pcic-cm__profile-label) {
  white-space: nowrap;
  text-transform: none !important;
  letter-spacing: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}

/* Preserve the directory colors when the theme styles buttons and links globally. */
.pcic-cm .pcic-cm__category-control:is(a, button),
.pcic-cm .pcic-cm__category-control:is(a, button):is(:hover, :focus, :active, :visited),
.pcic-cm a.pcic-cm__profile-link,
.pcic-cm a.pcic-cm__profile-link:is(:hover, :focus, :active, :visited),
.pcic-cm a.pcic-cm__profile-link .pcic-cm__profile-label {
  color: var(--pcic-cm-blue-dark) !important;
}

.pcic-cm a.pcic-cm__profile-link:focus-visible,
.pcic-cm .pcic-cm__category-control:is(a, button):focus-visible {
  box-shadow: var(--pcic-cm-focus);
}

@container pcic-directory (max-width: 960px) {
  .pcic-cm__filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    top: var(--pcic-cm-sticky-top, 108px);
  }

  .pcic-cm__group,
  .pcic-cm__groups {
    scroll-margin-top: calc(var(--pcic-cm-sticky-top, 108px) + 202px);
  }

  .pcic-cm__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container pcic-directory (max-width: 840px) {
  .pcic-cm__heading { padding-inline-start: 0; }

  .pcic-cm__filters {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .pcic-cm .pcic-cm__category-control:is(a, button) {
    min-height: 64px;
  }

  .pcic-cm__group {
    scroll-margin-top: var(--pcic-cm-sticky-top, 112px);
    padding: 22px 18px;
  }

  .pcic-cm__groups { scroll-margin-top: var(--pcic-cm-sticky-top, 112px); }

  .pcic-cm__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .pcic-cm__body {
    padding: 14px;
  }
}

@container pcic-directory (max-width: 560px) {
  .pcic-cm__group {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .pcic-cm__grid {
    grid-template-columns: 1fr;
  }

  .pcic-cm__card {
    display: grid;
    grid-template-columns: min(104px, 38%) minmax(0, 1fr);
    align-items: stretch;
  }

  .pcic-cm__portrait {
    position: relative;
    min-height: 144px;
  }

  .pcic-cm__photo {
    height: 100%;
    min-height: 144px;
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }
}

.pcic-cm__photo {
  filter: grayscale(100%) contrast(1.05);
  transition:
    filter 550ms ease,
    transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pcic-cm__card:hover .pcic-cm__photo,
.pcic-cm__card:focus-within .pcic-cm__photo {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}

.pcic-cm__portrait { flex-shrink: 0; overflow: hidden; }
.pcic-cm__photo--placeholder { object-fit: contain; }
.pcic-cm__profile-arrow {
  position: relative;
  flex: 0 0 9px;
  height: 9px;
}
.pcic-cm__profile-arrow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.pcic-cm__profile-arrow::after {
  content: "";
  position: absolute;
  top: 4px;
  left: -1px;
  width: 10px;
  border-top: 1px solid currentColor;
  transform: rotate(-45deg);
}
.pcic-cm .pcic-cm__category-control:is(a, button)[aria-pressed="true"] {
  background: #eef7fa;
  border-color: #1684b5;
}
.pcic-cm__filters { scroll-margin-top: var(--pcic-cm-sticky-top, 118px); }
@media (prefers-reduced-motion: reduce) {
  .pcic-cm *, .pcic-cm *::before, .pcic-cm *::after { transition: none; }
  .pcic-cm__card:hover, .pcic-cm__card:hover .pcic-cm__photo,
  .pcic-cm__card:focus-within .pcic-cm__photo { transform: none; }
}
