/* UsersWP surfaces: directory cards, profile, account and login forms.
   UsersWP renders with AyeCode UI (Bootstrap 5). Its utility classes (text-center, rounded-circle,
   shadow, p-0, d-inline-block, justify-content-center...) carry !important, so the rules that
   override them do too. Selectors hang off body.uwp_page and the UsersWP block classes only. */

/* ---------- shared: colors on AyeCode UI controls ---------- */
.uwp_page .bsui a { color: var(--wp--preset--color--maroon); }
.uwp_page .bsui a:hover { color: var(--wp--preset--color--maroon-deep); }

.uwp_page .bsui .btn-primary,
.uwp_page .bsui .btn-primary:focus {
  background: var(--wp--preset--color--orange);
  border-color: var(--wp--preset--color--orange);
  color: var(--wp--preset--color--ink);
  border-radius: 2px;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.uwp_page .bsui .btn-primary:hover {
  background: var(--wp--preset--color--orange-deep);
  border-color: var(--wp--preset--color--orange-deep);
  color: var(--wp--preset--color--white);
}
.uwp_page .bsui .btn-outline-primary {
  color: var(--wp--preset--color--maroon);
  border-color: var(--wp--preset--color--maroon);
  border-radius: 2px;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 500;
}
.uwp_page .bsui .btn-outline-primary:hover,
.uwp_page .bsui .btn-outline-primary.active {
  background: var(--wp--preset--color--maroon);
  border-color: var(--wp--preset--color--maroon);
  color: var(--wp--preset--color--white);
}
.uwp_page .bsui .form-control,
.uwp_page .bsui .form-select {
  border-radius: 2px;
  border-color: var(--wp--preset--color--stone);
  font-family: var(--wp--preset--font-family--sans);
  color: var(--wp--preset--color--ink);
}
.uwp_page .bsui .form-control:focus,
.uwp_page .bsui .form-select:focus {
  border-color: var(--wp--preset--color--maroon);
  box-shadow: 0 0 0 3px rgba(229, 117, 31, 0.35);
}
.uwp_page .bsui .text-primary,
.uwp_page .bsui .nav-link.active { color: var(--wp--preset--color--maroon) !important; }
.uwp_page .bsui .border-primary { border-color: var(--wp--preset--color--maroon) !important; }
.uwp_page .bsui .bg-primary { background-color: var(--wp--preset--color--maroon) !important; }
.uwp_page .bsui .card { border-radius: 2px; }
.uwp_page .bsui h3,
.uwp_page .bsui .h3,
.uwp_page .bsui .card-title {
  font-family: var(--wp--preset--font-family--serif);
  color: var(--wp--preset--color--maroon);
}
.uwp_page .bsui .form-check-input:checked {
  background-color: var(--wp--preset--color--maroon);
  border-color: var(--wp--preset--color--maroon);
}

/* ---------- directory toolbar ---------- */
.uwp_page .uwp-user-loop-action .container { max-width: none; padding: 0; }
.uwp_page .uwp-user-loop-action .uwp-list-view-select { display: none !important; }
.uwp_page .uwp-user-search-form .form-control-sm { min-width: 16rem; height: 2.4rem; }
.uwp_page .uwp-user-search-form .btn-sm,
.uwp_page .uwp-user-sort .btn-sm { height: 2.4rem; padding: 0 1rem; }

/* ---------- directory cards ---------- */
.uwp_page .uwp-users-list-user.card {
  text-align: left !important;
  border: 1px solid var(--wp--preset--color--stone) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  position: relative;
  background: var(--wp--preset--color--white);
}
.uwp_page .uwp-users-list-user .uwp-banner-image,
.uwp_page .uwp-users-list-user .card-footer { display: none !important; }

.uwp_page .uwp-users-list-user .uwp-profile-header .card-body {
  padding: 1.25rem 1.25rem 0 !important;
  text-align: left !important;
}
.uwp_page .uwp-users-list-user .uwp-profile-header .row {
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  margin: 0 !important;
}
.uwp_page .uwp-users-list-user .uwp-profile-header .row > [class*="col"] {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  text-align: left !important;
}
.uwp_page .uwp-users-list-user .tofront img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 2px !important;
  box-shadow: none !important;
  border: 1px solid var(--wp--preset--color--stone) !important;
  margin: 0 !important;
}
.uwp_page .uwp-users-list-user .uwp-user-title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1rem !important;
  letter-spacing: -0.01em;
}
.uwp_page .uwp-users-list-user .uwp-user-title a {
  color: var(--wp--preset--color--maroon) !important;
  text-decoration: none;
}
.uwp_page .uwp-users-list-user .uwp-user-title a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.uwp_page .uwp-users-list-user > .card-body { padding: 0.75rem 1.25rem 1.25rem !important; }
.uwp_page .uwp-users-list-user .uwp-profile-extra-key,
.uwp_page .uwp-users-list-user .uwp-profile-extra-sep { display: none !important; }
.uwp_page .uwp-users-list-user .uwp-profile-extra-wrap {
  display: block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.uwp_page .uwp-users-list-user .uwp-profile-extra-value { display: block !important; }
.uwp_page .uwp-users-list-user [data-pac-field="title"] .uwp-profile-extra-value { color: var(--wp--preset--color--ink); font-weight: 500; }
.uwp_page .uwp-users-list-user [data-pac-field="company"] .uwp-profile-extra-value { color: var(--wp--preset--color--ink-soft); }
.uwp_page .uwp-users-list-user [data-pac-field="committee-role"] .uwp-profile-extra-value {
  color: var(--wp--preset--color--orange-deep);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.uwp_page .uwp-users-list-user [data-pac-field="committees"] { margin-top: 0.75rem; }
.uwp_page .uwp-users-list-user [data-pac-field="status"] { display: none !important; }

.uwp_page .uwp-users-list-user.pac-card--leadership { border-left: 4px solid var(--wp--preset--color--orange) !important; }
.uwp_page .uwp-users-list-user.pac-card--emeritus { background: var(--wp--preset--color--stone-light); }
.uwp_page .uwp-users-list-user.pac-card--emeritus::after {
  content: "Emeritus";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--ink-soft);
}

.pac-chip {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--wp--preset--color--stone);
  border-radius: 2px;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8125rem;
  color: var(--wp--preset--color--maroon);
  background: var(--wp--preset--color--white);
}

.uwp_page .uwp-pagination .page-link {
  color: var(--wp--preset--color--maroon);
  border-color: var(--wp--preset--color--stone);
  font-family: var(--wp--preset--font-family--sans);
  border-radius: 0 !important;
}
.uwp_page .uwp-pagination .page-item.active .page-link {
  background: var(--wp--preset--color--maroon);
  border-color: var(--wp--preset--color--maroon);
  color: var(--wp--preset--color--white);
}

/* ---------- profile ---------- */
.uwp_profile_page .wp-block-post-title { display: none; }
.uwp_profile_page .uwp-profile-header .uwp-banner-image { display: none !important; }
.uwp_profile_page .uwp-profile-header .card { border: 0 !important; box-shadow: none !important; }
.uwp_profile_page .uwp-profile-header .card-body { padding: 0 !important; margin: 0 !important; }
.uwp_profile_page .uwp-profile-header .card-body > .row {
  flex-wrap: nowrap;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 1.5rem;
  margin: 0 !important;
}
.uwp_profile_page .uwp-profile-header .card-body > .row + .row { display: none !important; }
.uwp_profile_page .uwp-profile-header .card-body > .row > .col.tofront {
  flex: 0 0 auto !important;
  width: auto !important;
  padding: 0 !important;
}
.uwp_profile_page .uwp-profile-header .tofront img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 2px !important;
  box-shadow: none !important;
  border: 1px solid var(--wp--preset--color--stone) !important;
  margin: 0 !important;
}
.uwp_profile_page .uwp-profile-header .card-body > .row > .col-12 {
  flex: 1 1 auto !important;
  width: auto !important;
  padding: 0 0 0.5rem !important;
  text-align: left !important;
}
.uwp_profile_page .uwp-profile-header .card-body > .row > .col-xl-4 { flex: 0 0 auto !important; }
.uwp_profile_page .uwp-profile-header .uwp-user-title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--wp--preset--color--maroon) !important;
}

.uwp_profile_page .uwp-profile-tabs .navbar { margin-top: 2rem; }
.uwp_profile_page .uwp-profile-tabs.pac-tabs--single .navbar { display: none !important; }
.uwp_profile_page .uwp-profile-tabs .nav-link {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 500;
  color: var(--wp--preset--color--ink);
}
.uwp_profile_page .uwp-profile-content { margin-top: 2rem; max-width: 46rem; }
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-wrap {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.25rem 1.5rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--wp--preset--color--stone);
}
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-wrap:last-child { border-bottom: 1px solid var(--wp--preset--color--stone); }
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-key {
  display: block !important;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.875rem;
  color: var(--wp--preset--color--ink-soft);
}
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-key i,
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-sep { display: none !important; }
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-value {
  display: block !important;
  font-family: var(--wp--preset--font-family--serif);
  color: var(--wp--preset--color--ink);
  overflow-wrap: anywhere;
}
.uwp_profile_page .uwp-profile-content [data-pac-field="status"] .uwp-profile-extra-value,
.uwp_profile_page .uwp-profile-content [data-pac-field="committee-role"] .uwp-profile-extra-value {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 500;
}
@media (max-width: 600px) {
  .uwp_profile_page .uwp-profile-header .card-body > .row { flex-wrap: wrap; align-items: flex-start !important; }
  .uwp_profile_page .uwp-profile-header .tofront img { width: 120px; height: 120px; }
  .uwp_profile_page .uwp-profile-content .uwp-profile-extra-wrap { grid-template-columns: 1fr; gap: 0.1rem; }
}

/* ---------- account ---------- */
.uwp_page .bsui .uwp-account-side .card,
.uwp_page .bsui .card.uwp-account-nav { border: 0; background: var(--wp--preset--color--stone-light); border-radius: 2px; }
.uwp_page .bsui .uwp-account-side .nav-link,
.uwp_page .bsui .uwp-account-side a { font-family: var(--wp--preset--font-family--sans); color: var(--wp--preset--color--ink); }
.uwp_page .bsui .uwp-account-side .nav-link.active,
.uwp_page .bsui .uwp-account-side .active a { color: var(--wp--preset--color--maroon); }

/* ---------- profile layout: photo and name left, About and Businesses right ---------- */
@media (min-width: 900px) {
  .uwp_profile_page .uwp_widget_profile > .uwp_page {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
  .uwp_profile_page .uwp-profile-header { position: sticky; top: 2rem; }
  .uwp_profile_page .uwp-profile-header .card-body > .row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  .uwp_profile_page .uwp-profile-header .tofront img { width: 272px; height: 272px; }
  .uwp_profile_page .uwp-profile-header .card-body > .row > .col-12 { padding: 0 !important; }
  .uwp_profile_page .uwp-profile-header .uwp-user-title { font-size: 2rem; }
  .uwp_profile_page .uwp-profile-tabs .navbar { margin-top: 0; }
  .uwp_profile_page .uwp-profile-content { margin-top: 1.5rem; max-width: none; }
}
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-div { display: flex; flex-direction: column; }
.uwp_profile_page .uwp-profile-content [data-pac-field="bio"] {
  order: -1;
  display: block;
  border: 0;
  padding: 0 0 1.75rem;
  margin-bottom: 0.5rem;
}
.uwp_profile_page .uwp-profile-content [data-pac-field="bio"] .uwp-profile-extra-key { display: none !important; }
.uwp_profile_page .uwp-profile-content [data-pac-field="bio"] .uwp-profile-extra-value {
  font-size: var(--wp--preset--font-size--medium);
  line-height: 1.65;
  max-width: 62ch;
  white-space: pre-line;
}
.uwp_profile_page .uwp-profile-content .uwp-profile-extra-wrap:not([data-pac-field="bio"]) { max-width: 46rem; }
.uwp_profile_page .uwp-profile-tabs.pac-tabs--single .navbar { display: none !important; }
.uwp_profile_page .uwp-profile-tabs:not(.pac-tabs--single) .navbar { display: block; }
.uwp_profile_page .uwp-profile-tabs .nav-item.active { border-color: var(--wp--preset--color--maroon) !important; }
.uwp_profile_page .uwp-profile-tabs .nav-link { color: var(--wp--preset--color--ink) !important; }
.uwp_profile_page .uwp-profile-tabs .nav-item.active .nav-link { color: var(--wp--preset--color--maroon) !important; }
.uwp_profile_page .uwp-profile-tabs .nav-link i { display: none; }
.uwp_profile_page .uwp-profile-content .pac-bcard { max-width: 22rem; }

/* profile header summary (pac-psum) and About panel trims */
.pac-psum { margin-top: 0.75rem; font-family: var(--wp--preset--font-family--sans); }
.pac-psum__role { margin: 0 0 0.6rem; font-size: 0.9375rem; color: var(--wp--preset--color--ink); line-height: 1.35; }
.pac-psum__chips { margin: 0 0 0.6rem; }
.pac-psum__badge { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--orange-deep); }
.uwp_profile_page .uwp-profile-content [data-pac-field="title"],
.uwp_profile_page .uwp-profile-content [data-pac-field="company"],
.uwp_profile_page .uwp-profile-content [data-pac-field="committees"],
.uwp_profile_page .uwp-profile-content [data-pac-field="committee-role"],
.uwp_profile_page .uwp-profile-content [data-pac-field="status"] { display: none !important; }
.uwp_profile_page .uwp-profile-content [data-pac-field="bio"] .uwp-profile-extra-value { white-space: normal; }
.uwp_profile_page .uwp-profile-content { margin-top: 1.25rem; }
.uwp_profile_page .uwp-profile-content .uwp-profile-bio { line-height: 1.65; }

/* own profile: hint + edit controls */
.pac-psum__hint {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--wp--preset--color--stone-light);
  border-left: 3px solid var(--wp--preset--color--orange);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--wp--preset--color--ink);
}
.uwp_profile_page .uwp-profile-header .btn,
.uwp_profile_page .uwp-profile-header .uwp-profile-edit-btn,
.uwp_profile_page .uwp-profile-header a[title="Edit"] {
  border-radius: 2px !important;
  border: 1px solid var(--wp--preset--color--maroon) !important;
  color: var(--wp--preset--color--maroon) !important;
  background: var(--wp--preset--color--white) !important;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8125rem;
  padding: 0.3rem 0.6rem !important;
  box-shadow: none !important;
}
.uwp_profile_page .uwp-profile-header .btn:hover { background: var(--wp--preset--color--maroon) !important; color: var(--wp--preset--color--white) !important; }
.uwp_profile_page .uwp-profile-header .uwp-profile-avatar-change,
.uwp_profile_page .uwp-profile-header .uwp-banner-change { opacity: 1; }
.uwp_profile_page .uwp-profile-content .pac-businesses__empty { margin: 0 0 1rem; font-size: var(--wp--preset--font-size--medium); }
