/* People and guide: restrained, consistent, and scoped to these components. */

/* Member profiles share one card on the homepage and in each directory group. */
.board-gallery {
  --profile-ink: #19232b;
  background: #f2f3f1;
  color: var(--profile-ink);
  scroll-margin-top: var(--filter-top, 84px);
}
.board-gallery .portrait-title {
  margin: 0 0 clamp(20px, 2vw, 32px);
  font: 600 clamp(32px, 4.4vw, 62px)/1.07 DM, Arial, sans-serif;
  letter-spacing: -.047em;
  text-align: left;
}
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.1vw, 20px);
}
.portrait-card {
  display: block;
  align-self: stretch;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: white;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 1px 3px #162d3f0a;
  font-family: DM, Arial, sans-serif;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.portrait-card[hidden], .member-group-section[hidden],
.directory-filter-panel[hidden], .directory-filter-toggle[hidden] { display: none; }
.portrait-photo {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 331 / 500;
  overflow: hidden;
  background: #fff;
}
.portrait-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portrait-photo .portrait-backing {
  object-fit: cover;
  filter: blur(7px);
  transform: scale(1.08);
}
.portrait-copy {
  --name-size: clamp(.94rem, 1.12vw, 1.18rem);
  --role-size: clamp(.75rem, .86vw, .89rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  block-size: calc(24px + 2.36 * var(--name-size) + 2.76 * var(--role-size));
  padding: 10px 12px;
  gap: 4px;
  background: #fff;
}
.portrait-name, .portrait-role {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0;
}
.portrait-name { font-size: var(--name-size); font-weight: 650; line-height: 1.18; letter-spacing: -.025em; }
.portrait-role { color: #4e5b64; font-size: var(--role-size); line-height: 1.38; }
.portrait-bio, .profile-action { display: none; }
.portrait-card:focus-visible, .directory-filter-toggle:focus-visible { outline: 2px solid #164883; outline-offset: 3px; }
@media (hover: hover) {
  .portrait-card:hover { box-shadow: 0 4px 16px #162d3f16; }
  .portrait-card:hover .portrait-name { color: #12467c; text-decoration: underline; }
}
.board-all { margin: 25px 0 0; }
.member-group-section { margin: clamp(28px, 4vw, 54px) 0; }
.member-group-title {
  margin: 0 0 17px;
  padding-top: 14px;
  border-top: 1px solid #a2afb6;
  font: 560 clamp(22px, 2.1vw, 33px)/1.16 DM, Arial, sans-serif;
  letter-spacing: -.035em;
}
.portrait-card > .portrait-copy:only-child {
  block-size: auto;
  min-height: 114px;
  padding: 18px 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.portrait-copy:only-child :is(.portrait-name, .portrait-role) {
  display: block;
  overflow: visible;
  text-wrap: balance;
}
.member-dialog.text-profile[open] { display: block; width: min(480px, calc(100% - 32px)); background: white; }
.member-dialog.text-profile .member-detail-copy { padding: 54px 26px 35px; align-items: center; text-align: center; }
.member-dialog.text-profile .text-link { align-self: center; }
.member-dialog .member-detail-photo[hidden] { display: none; }
.board-gallery .results-bar { margin: -7px 0 8px; }
.board-gallery .results-bar p { font-size: 13px; }
.member-dialog .member-detail-photo img { object-fit: contain; object-position: center; }
.member-dialog .member-detail-photo { background: #eef0ed; }
.directory-filter-toggle {
  position: fixed;
  z-index: 24;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 45px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--unf-blue);
  border: 0;
  border-radius: 9px 0 0 9px;
  box-shadow: 0 2px 14px #18334827;
}
.directory-filter-toggle svg { width: 22px; height: 22px; }
.directory-filter-toggle[aria-expanded="true"] { background: #e6effa; color: var(--unf-blue); }
.directory-filter-toggle.is-filtered::after { content: ''; position: absolute; width: 6px; height: 6px; right: 7px; top: 7px; border-radius: 50%; background: #5796bf; }
.directory-filter-panel {
  position: fixed;
  inset: var(--filter-top, 78px) 0 auto;
  z-index: 28;
  max-height: calc(100dvh - var(--filter-top, 78px) - 78px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #182f3f;
  border-bottom: 1px solid #c4cfd5;
  box-shadow: 0 10px 22px #152a3717;
}
.filter-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) 44px;
  align-items: center;
  gap: clamp(5px, 1.8vw, 18px);
  max-width: 850px;
  margin: auto;
  padding: 3px clamp(10px, 3vw, 28px);
}
.team-group-picker { position: relative; min-width: 0; }
.team-group-picker::after {
  content: ""; position: absolute; right: 4px; top: 40%; width: 7px; height: 7px;
  border: solid var(--unf-blue); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  pointer-events: none;
}
.team-group-picker select {
  width: 100%; height: 44px; padding: 0 18px 0 2px;
  appearance: none; border: 0; border-radius: 0; background: white;
  font: 600 14px/1.3 DM, Arial, sans-serif; color: var(--unf-blue); text-overflow: ellipsis;
}
.directory .filter-inner .search-field {
  grid-column: auto; width: 100%; min-width: 0; height: 44px; margin: 0; gap: 6px;
  border: 0; border-left: 1px solid #dce4ea; padding-inline-start: clamp(6px, 2vw, 16px);
}
.directory .filter-inner .search-field input { min-width: 0; padding: 5px 0; font: 400 16px/1.3 DM, Arial, sans-serif; }
.directory .filter-inner .search-field svg { width: 17px; height: 17px; flex: none; color: var(--unf-blue); }
.filter-close { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--unf-blue); border: 0; background: transparent; }
.filter-close svg { width: 19px; height: 19px; }
.filter-inner :is(select, button):focus-visible { outline: 2px solid var(--unf-blue); outline-offset: -2px; }
@media (max-width: 760px) {
  .board-gallery.section-pad { padding: 34px clamp(12px, 3.5vw, 26px) 40px; }
  .portrait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .board-all { display: flex; width: fit-content; margin-inline: auto; }
}

.directory .results-bar > span { display: none; }
.member-dialog { border-radius: 3px; }
.member-dialog .member-close { border: 0; border-radius: 0; background: #fffffff0; color: var(--ink); }
.member-dialog .member-detail-copy h2 { font-family: DM, Arial, sans-serif; letter-spacing: -.035em; }

/* Floating guide button, above the mobile navigation. */
.chat-launcher.unf-chat-launcher {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-width: 0;
  padding: 0;
  right: 24px;
  bottom: 24px;
  border-radius: 50%;
  border: 1px solid #ffffff96;
  background: var(--unf-blue);
  color: white;
  box-shadow: 0 4px 16px #071e362e;
  transition: background .18s, box-shadow .18s;
}
.chat-launcher.unf-chat-launcher .launcher-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: transparent;
  color: inherit;
}
.chat-launcher.unf-chat-launcher .launcher-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-launcher.unf-chat-launcher:hover { background: #103c75; box-shadow: 0 5px 18px #071e3640; }
.chat-launcher.unf-chat-launcher:focus-visible { outline: 2px solid white; outline-offset: 2px; box-shadow: 0 0 0 5px #14488d; }

/* The guide remains the existing local FAQ demo, with a lighter interface. */
.chat-panel.unf-chat {
  inset: auto 24px 22px auto;
  margin: 0;
  width: 380px;
  height: 560px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  background: #fff;
  border: 1px solid #cdd7dc;
  border-radius: 4px;
  color: #17354a;
  box-shadow: 0 18px 65px #102d4328;
}
.chat-panel.unf-chat::backdrop { background: #16364b24; backdrop-filter: blur(2px); }
.unf-chat .chat-head {
  min-height: 74px;
  padding: 17px 20px;
  gap: 12px;
  border-bottom: 1px solid #e3e9ec;
  background: #fff;
  color: #17354a;
}
.unf-chat .chat-head::before { display: none; }
.unf-chat .chat-mark { display: block; flex-shrink: 0; width: 32px; height: 32px; object-fit: contain; }
.unf-chat .chat-head h2 { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.unf-chat .chat-head p { font-size: 10px; line-height: 1.4; margin-top: 3px; color: #6a7d88; }
.unf-chat .chat-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  color: #536d7c;
  background: transparent;
}
.unf-chat .chat-close:hover { background: #f0f3f4; color: #17354a; }
.unf-chat .chat-disclosure {
  padding: 9px 20px;
  background: #f7f9fa;
  border-bottom: 1px solid #e9eef0;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.5;
  color: #647885;
}
.unf-chat .chat-log { padding: 23px 20px 20px; }
.unf-chat .chat-welcome { padding: 0 0 20px; }
.unf-chat .chat-welcome h3 { font-family: DM, Arial, sans-serif; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
.unf-chat .chat-welcome > p { font-size: 12px; line-height: 1.75; color: #637885; margin-top: 10px; }
.unf-chat .chat-starters { display: block; border-top: 1px solid #dce4e8; }
.unf-chat .chat-starters[hidden] { display: none; }
.unf-chat .chat-starters button {
  width: 100%;
  min-height: 46px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #dce4e8;
  border-radius: 0;
  background: transparent;
  color: #17354a;
  font-size: 12px;
  line-height: 1.5;
}
.unf-chat .chat-starters button:hover { background: #f5f7f8; color: var(--unf-blue); }
.unf-chat .chat-starters svg { width: 17px; height: 17px; color: #55798f; margin-right: 2px; }
.unf-chat .chat-quick { justify-content: space-between; gap: 6px; padding: 0 20px; border-top: 1px solid #e4eaed; }
.unf-chat .chat-quick button { padding: 11px 0; border: 0; border-radius: 0; background: transparent; font-size: 11px; line-height: 1.5; color: #536d7d; min-height: 40px; }
.unf-chat .chat-quick button:hover { color: var(--unf-blue); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.unf-chat .chat-form { margin: 0 16px; border: 1px solid #b5c5cf; border-radius: 2px; padding: 5px; gap: 5px; background: #fff; }
.unf-chat .chat-form:focus-within { border-color: var(--unf-blue); box-shadow: none; }
.unf-chat .chat-form input { min-height: 38px; font-size: 16px; padding: 7px 8px; }
.unf-chat .chat-form input::placeholder { font-size: 12px; color: #7a8c97; }
.unf-chat .chat-form button { width: 38px; height: 38px; border: 1px solid #17354a; border-radius: 0; background: #17354a; color: #fff; }
.unf-chat .chat-form button:hover { background: #fff; color: #17354a; }
.unf-chat .chat-footnote { padding: 12px 12px 14px; font-size: 9px; line-height: 1.5; color: #6e818e; }
.unf-chat .chat-footnote a { color: #274f6b; }
.unf-chat .chat-message { margin: 15px 16px 0 0; padding: 12px 14px; border-radius: 2px; background: #f0f4f6; color: #25485f; font-size: 12px; line-height: 1.8; }
.unf-chat .chat-message.user { margin: 15px 0 0 24px; border-radius: 2px; background: #e5edf3; color: #17354a; }
.unf-chat .message-label, .unf-chat .user .message-label { color: #6b8292; font-size: 8px; }
.unf-chat .message-links a { color: #14488d; }
.unf-chat .chat-typing { border-radius: 2px; background: #f0f4f6; }

@media (max-width: 800px) {
  .member-dialog .member-detail-photo { height: 285px; min-height: 0; }
  .member-dialog .member-detail-copy { padding: 27px; }
  .member-dialog .member-detail-copy h2 { font-size: 30px; line-height: 1.2; }
  .member-dialog .member-detail-copy > p:not(.eyebrow) { font-size: 13px; }
  .chat-launcher.unf-chat-launcher { width: 46px; height: 46px; right: 16px; bottom: calc(98px + env(safe-area-inset-bottom)); }
  .chat-panel.unf-chat { inset: auto 12px calc(12px + env(safe-area-inset-bottom)) auto; width: min(380px, calc(100vw - 24px)); max-width: calc(100vw - 24px); height: min(580px, calc(100dvh - 104px)); max-height: calc(100dvh - 24px); border: 1px solid #cdd7dc; border-radius: 4px; padding-bottom: 0; }
  .unf-chat .chat-head { padding: 16px 18px; min-height: 72px; }
  .unf-chat .chat-head h2 { font-size: 16px; }
  .unf-chat .chat-head p { font-size: 10px; }
  .unf-chat .chat-log { padding: 21px 18px 18px; }
  .unf-chat .chat-welcome h3 { font-size: 21px; }
  .unf-chat .chat-welcome > p, .unf-chat .chat-message { font-size: 12px; }
  .unf-chat .chat-starters button { font-size: 12px; }
  .unf-chat .chat-quick { padding-inline: 18px; }
}
@media (max-width: 365px) {
  .unf-chat .chat-head { padding-inline: 15px; gap: 10px; }
  .unf-chat .chat-disclosure { padding-inline: 15px; font-size: 9px; }
  .unf-chat .chat-log { padding-inline: 15px; }
  .unf-chat .chat-quick { padding-inline: 15px; }
  .unf-chat .chat-form { margin-inline: 12px; }
  .unf-chat .chat-footnote { font-size: 8px; }
}

/* An unboxed send icon matches the site-wide line-icon treatment. */
.chat-panel.unf-chat .chat-form button { background: transparent; border: 0; color: #17354a; }
.chat-panel.unf-chat .chat-form button:hover { background: transparent; color: var(--unf-blue); }

.footer .footer-contact-layout {
  display: grid;
  grid-template-columns: minmax(245px, .9fr) minmax(0, 1.25fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: start;
}
.footer-contact-layout .footer-brand { grid-column: auto; }
.footer-contact-details { display: grid; justify-items: start; gap: 5px; margin: 18px 0 8px; }
.footer-contact-details a, .footer-office-pair address { color: var(--muted); font: 400 .86rem/1.65 DM, Arial, sans-serif; }
.footer-contact-details a { overflow-wrap: anywhere; }
.footer-offices h2 { margin: 0 0 17px; font: 600 .74rem/1.4 DM, Arial, sans-serif; color: var(--ink); letter-spacing: .09em; text-transform: uppercase; }
.footer-office-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(14px, 3vw, 46px); }
.footer-office-pair address { display: grid; align-content: start; }
.footer-office-pair strong { margin-bottom: 5px; color: var(--ink); font-size: 1rem; font-weight: 600; }
.footer .footer-destination { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; color: var(--unf-blue); font-size: .84rem; font-weight: 600; }
.footer-destination svg { width: 1.12em; height: 1.12em; }
.footer-offices .footer-destination { margin-top: 8px; }
.footer-contact-details a:hover, .footer-destination:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: .2em; }
#office-directory { scroll-margin-top: 74px; }
@media (max-width: 660px) {
  .footer .footer-contact-layout { grid-template-columns: minmax(0,1fr); gap: 22px; text-align: center; padding-bottom: 24px; }
  .footer-contact-layout .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-contact-details { justify-items: center; }
  .footer-office-pair { column-gap: 12px; }
  .footer-office-pair address { font-size: .78rem; }
  .footer-offices { border-top: 1px solid var(--line); padding-top: 24px; }
  .footer .footer-bottom { margin-top: 0; }
}
