.leader-grid .leader {
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  appearance: none;
  transition: border-color .16s, box-shadow .16s;
}

.leader-grid .leader .ph,
.leader-grid .leader .bd { display: block; }
/* Trim the source photo's baked-in frame without altering the image asset. */
.leader-photo-trim { transform: scale(1.09); }
.leader-grid .leader:hover { border-color: #0c7fc3; box-shadow: 0 3px 12px #075b8314; }
.leader-grid .leader:hover b { color: #087fb4; }
.leader-grid .leader:focus-visible,
.leader-dialog-close:focus-visible { outline: 2px solid #0c7fc3; outline-offset: 4px; }

.leader-dialog {
  width: min(840px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-top: 4px solid #0c7fc3;
  border-radius: 6px;
  color: #142333;
  background: #fff;
  box-shadow: 0 20px 70px #14233338;
  overflow: hidden;
  letter-spacing: 0;
}

.leader-dialog[open] { display: flex; flex-direction: column; }
.leader-dialog::backdrop { background: rgb(16 33 48 / 46%); }
.leader-dialog-heading {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 22px 10px 32px;
  border-bottom: 1px solid #e3ebf0;
  color: #426073;
  font-size: 16px;
}

.leader-dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.leader-dialog-close:hover { background: #edf4f8; }
.leader-dialog-scroll { padding: 32px; overflow-y: auto; overscroll-behavior: contain; }
.leader-profile { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 32px; align-items: start; }
.leader-profile-photo-frame { width: 176px; height: 220px; overflow: hidden; background: #edf3f5; }
.leader-profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.leader-profile-main { min-width: 0; overflow-wrap: anywhere; }
.leader-profile-main h2 { margin: 0 0 14px; font-size: 28px; line-height: 1.3; font-weight: 700; }
.leader-profile-position { margin-bottom: 26px; }
.leader-profile-position > span { color: #637385; font-size: 13px; }
.leader-profile-position p { margin-top: 4px; font-size: 16px; line-height: 1.8; }
.leader-profile-resume { border-top: 1px solid #e3ebf0; padding-top: 20px; }
.leader-profile-resume h3 { margin: 0 0 16px; font-size: 16px; color: #075b83; line-height: 1.5; }
.leader-profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; font-size: 15px; line-height: 1.9; }
.leader-profile-facts > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 12px; }
.leader-profile-facts dt { color: #637385; }
.leader-profile-facts dd { margin: 0; }
.leader-profile-fact-wide { grid-column: 1 / -1; }
.leader-profile-pending { margin: 0; color: #637385; font-size: 15px; line-height: 1.9; }

@media (max-width: 640px) {
  .leader-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .leader-dialog-heading { padding-left: 20px; padding-right: 12px; min-height: 54px; }
  .leader-dialog-scroll { padding: 24px 20px; }
  .leader-profile { grid-template-columns: 1fr; gap: 20px; }
  .leader-profile-photo-frame { width: 120px; height: 150px; }
  .leader-profile-main h2 { font-size: 24px; }
  .leader-profile-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .leader-grid .leader { transition: none; }
}
