:root {
  --navy: #0b2341;
  --navy-2: #153a63;
  --blue-50: #eef7fc;
  --blue-100: #dceef8;
  --blue-200: #b9dced;
  --yellow: #f2c84b;
  --yellow-soft: #fff5cf;
  --ink: #17202d;
  --muted: #637083;
  --line: #d9e2ea;
  --surface: #ffffff;
  --background: #f8fbfd;
  --shadow: 0 18px 40px rgba(11, 35, 65, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.signed-out-page {
  background: #ffffff;
}

button,
input,
select {
  font: inherit;
}

button:not(:disabled),
a[href],
label[for],
select,
input[type="checkbox"],
input[type="file"],
.topbar-button,
.primary-action,
.secondary-action {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
}

a {
  color: var(--navy-2);
  font-weight: 700;
  text-decoration-color: rgba(21, 58, 99, 0.28);
  text-underline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.welcome-banner {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 14px 56px 14px 34px;
  background: #f1f3f5;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.welcome-banner[hidden] {
  display: none;
}

.welcome-banner-content {
  max-width: 1040px;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.35;
}

.welcome-banner-content p {
  margin: 0;
}

.welcome-banner-content p + p {
  margin-top: 10px;
}

.welcome-banner-title {
  color: var(--navy);
  font-weight: 850;
}

.welcome-banner-dismiss {
  position: absolute;
  top: 12px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.welcome-banner-dismiss:hover,
.welcome-banner-dismiss:focus {
  background: rgba(11, 35, 65, 0.08);
  outline: none;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(360px, 1fr);
  align-items: stretch;
  gap: 0;
  position: relative;
  padding: 0;
  background: var(--surface);
  border-bottom: 4px solid var(--yellow);
}

.auth-loading .topbar {
  display: grid;
}

.auth-loading .auth-controls,
.auth-loading #edit-profile-button {
  display: none;
}

.topbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: auto;
  min-width: 0;
  padding: 18px 28px 18px 34px;
  background: var(--surface);
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-link {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-title-link {
  display: flex;
  align-self: stretch;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo-yale {
  height: 56px;
  max-width: min(430px, 42vw);
}

.brand-logo-rwjf {
  height: 43px;
  max-width: min(330px, 30vw);
}

.brand-divider {
  align-self: center;
  flex: 0 0 1px;
  width: 1px;
  height: 52px;
  background: var(--line);
}

.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 360px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.12;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--navy-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1;
}

.topbar-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 100%;
  padding: 0 26px 0 34px;
  background: var(--surface);
}

.topbar-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  align-self: center;
  width: 44px;
  height: 44px;
  margin-right: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
}

.topbar-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.topbar-menu-toggle:hover,
.topbar-menu-toggle:focus {
  background: var(--blue-50);
  outline: none;
}

.auth-controls {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.topbar-actions .auth-controls {
  align-self: stretch;
}

.signed-out-page .auth-controls {
  display: none;
}

.signed-out-page #edit-profile-button {
  display: none;
}

.topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 116px;
  padding: 0 16px;
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar-actions .topbar-button {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: auto;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  box-shadow: none;
  white-space: nowrap;
}

.topbar-actions .topbar-button:hover,
.topbar-actions .topbar-button:focus {
  background: var(--blue-50);
  color: var(--navy);
  outline: none;
}

.give-button {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--blue-50);
}

.auth-button {
  cursor: pointer;
}

.auth-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-button-primary {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.auth-status,
.auth-error {
  font-weight: 800;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 116px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.topbar-actions .account-trigger {
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 100%;
  min-width: auto;
  padding: 0 18px;
  border-radius: 0;
  white-space: nowrap;
}

.topbar-actions .account-trigger:hover,
.topbar-actions .account-trigger:focus {
  background: var(--blue-50);
}

.account-trigger:hover .auth-status,
.account-trigger:focus .auth-status {
  color: var(--navy-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-trigger:focus {
  outline: none;
}

.account-trigger:hover .user-initials-button,
.account-trigger:focus .user-initials-button,
.account-trigger:hover .user-image-button,
.account-trigger:focus .user-image-button {
  background: var(--navy-2);
}

.auth-status {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.92rem;
}

.auth-error {
  max-width: 220px;
  color: #9a3412;
  font-size: 0.86rem;
}

.user-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.user-initials-button {
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
}

.user-image-button {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
}

.user-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 116px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.account-menu[hidden] {
  display: none;
}

.account-menu button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.account-menu button:hover,
.account-menu button:focus {
  background: var(--blue-50);
  color: var(--navy);
  outline: none;
}

.account-menu .sign-out-menu-button {
  color: #b42318;
}

.account-menu .sign-out-menu-button:hover,
.account-menu .sign-out-menu-button:focus {
  background: #fff1f0;
  color: #8f1d14;
}

.topbar-button:hover {
  border-color: var(--navy-2);
  background: #f3fbff;
}

.give-button:hover {
  border-color: var(--navy-2);
  background: var(--navy-2);
  color: var(--blue-50);
}

.topbar-actions .give-button,
.topbar-actions .give-button:hover,
.topbar-actions .give-button:focus {
  align-self: center;
  min-width: 72px;
  min-height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
}

.topbar-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.topbar-actions #edit-profile-button:disabled {
  color: var(--navy);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(11, 35, 65, 0.38);
}

.modal-backdrop[hidden] {
  display: none;
}

.profile-modal {
  width: min(100%, 680px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--yellow);
}

.profile-modal-heading h2 {
  margin-bottom: 4px;
  color: var(--navy);
}

.profile-modal-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus {
  background: var(--blue-100);
  outline: none;
}

.profile-form {
  display: grid;
  gap: 20px;
}

.profile-photo-editor {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-photo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-photo-action {
  cursor: pointer;
}

.profile-photo-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-form-grid input,
.profile-form-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
}

.profile-form input:disabled {
  background: var(--blue-50);
  color: var(--muted);
  cursor: not-allowed;
}

.edit-email-button {
  width: 100%;
  margin-top: auto;
}

.email-modal-body {
  display: grid;
  gap: 12px;
}

.email-list {
  display: grid;
  gap: 12px;
}

.email-row {
  justify-content: space-between;
  gap: 12px;
}

.email-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.email-row-actions small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.remove-email-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #b42318;
  cursor: pointer;
  font-weight: 800;
}

.remove-email-button:hover,
.remove-email-button:focus {
  border-color: #fecaca;
  background: #fff1f0;
  color: #8f1d14;
  outline: none;
}

.email-bar,
.email-entry-input {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.email-entry-input::placeholder {
  color: #9aa6b2;
}

.email-add-bar {
  cursor: pointer;
  color: var(--navy-2);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.email-add-bar:hover,
.email-add-bar:focus {
  border-color: var(--navy-2);
  background: var(--blue-50);
  outline: none;
}

.email-add-bar[hidden] {
  display: none;
}

.add-another-email-form {
  display: grid;
  gap: 10px;
}

.add-another-email-form[hidden] {
  display: none;
}

.add-another-email-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.add-another-email-actions .primary-action {
  min-width: 92px;
}

.profile-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workspace {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 108px);
}

.workspace[hidden],
.auth-required[hidden],
.landing-skeleton[hidden],
.dashboard-skeleton[hidden] {
  display: none;
}

html.dashboard-refresh-loading .landing-skeleton {
  display: none;
}

html.dashboard-refresh-loading .dashboard-skeleton[hidden] {
  display: grid;
}

body.dashboard-loading .workspace {
  display: none;
}

.landing-skeleton {
  display: grid;
  min-height: calc(100vh - 108px);
  place-items: center;
  padding: 0 32px 67px;
  background: #ffffff;
}

.skeleton-line,
.landing-skeleton-card,
.dashboard-skeleton-line,
.dashboard-skeleton-search,
.dashboard-skeleton-counter,
.dashboard-skeleton-card {
  border-radius: 8px;
  background: linear-gradient(90deg, #eef3f7 0%, #f8fbfd 45%, #eef3f7 100%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.landing-skeleton-card {
  display: grid;
  justify-items: center;
  width: min(100%, 620px);
  padding: 34px 52px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(11, 35, 65, 0.12);
  background: var(--surface);
}

.skeleton-line {
  background: linear-gradient(90deg, #eef3f7 0%, #f8fbfd 45%, #eef3f7 100%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-eyebrow {
  width: min(100%, 330px);
  height: 14px;
  margin-bottom: 14px;
}

.skeleton-title {
  width: min(100%, 270px);
  height: 38px;
  margin-bottom: 22px;
}

.skeleton-input {
  width: min(100%, 360px);
  height: 62px;
  margin-bottom: 8px;
}

.skeleton-button {
  width: 180px;
  height: 46px;
}

.dashboard-skeleton {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: calc(100vh - 108px);
  background: var(--background);
}

.dashboard-skeleton-filters {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.dashboard-skeleton-directory {
  min-width: 0;
  padding: 26px;
}

.dashboard-skeleton-heading {
  width: 52%;
  height: 18px;
  margin-bottom: 24px;
}

.dashboard-skeleton-filters > .dashboard-skeleton-line:not(.dashboard-skeleton-heading) {
  width: 100%;
  height: 44px;
  margin-bottom: 16px;
}

.dashboard-skeleton-divider {
  height: 4px;
  margin: 26px 0;
  border-radius: 999px;
  background: var(--yellow);
}

.dashboard-skeleton-counter {
  width: 100%;
  height: 76px;
}

.dashboard-skeleton-search {
  width: 100%;
  height: 54px;
  margin-bottom: 22px;
}

.dashboard-skeleton-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.dashboard-skeleton-results {
  min-width: 0;
}

.dashboard-skeleton-card {
  width: 100%;
  height: 122px;
  margin-bottom: 14px;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.auth-required {
  display: grid;
  min-height: calc(100vh - 108px);
  place-items: center;
  padding: 0 32px 67px;
  background: #ffffff;
}

.signed-out-page .auth-required {
  min-height: calc(100vh - 108px);
}

.sign-in-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 620px);
  min-height: 0;
  padding: 34px 52px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(11, 35, 65, 0.12);
  text-align: center;
}

.sign-in-card[hidden] {
  display: none;
}

.auth-required h2 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.1;
}

.auth-required p {
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.sign-in-page-button {
  min-width: 180px;
  min-height: 46px;
}

.custom-sign-in-form {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
}

.sign-in-card .eyebrow {
  margin-bottom: 7px;
}

.custom-sign-in-form .field {
  margin-bottom: 8px;
  text-align: left;
}

.sign-in-email-control {
  position: relative;
}

.sign-in-email-control input {
  min-height: 34px;
  padding-right: 42px;
}

.sign-in-email-control input[readonly] {
  background: var(--blue-50);
  cursor: default;
}

.sign-in-email-clear {
  position: absolute;
  top: -2px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 0;
}

.sign-in-email-clear[hidden] {
  display: none;
}

.sign-in-email-clear:hover,
.sign-in-email-clear:focus {
  color: var(--navy);
  outline: none;
}

.sr-only-code-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.sign-in-code-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.sign-in-code-box {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 850;
  text-align: center;
}

.sign-in-code-box:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(21, 58, 99, 0.12);
  outline: none;
}

.auth-required .sign-in-status {
  min-height: 20px;
  margin: 2px 0 4px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.auth-required .sign-in-status-email {
  font-size: inherit;
  font-weight: 900;
}

.auth-required .sign-in-status:empty {
  display: none;
}

.filters {
  padding: 26px 22px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--navy-2);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 5px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field[hidden] {
  display: none;
}

.field span,
.field > label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-divider {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 2px solid var(--yellow);
}

.filter-counter {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  background: var(--blue-50);
  box-shadow: var(--shadow);
  text-align: left;
}

.filter-counter strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.filter-counter span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

select {
  min-height: 42px;
  padding: 0 34px 0 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%2317202d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}

.state-filter {
  position: relative;
}

.state-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%2317202d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 400;
  text-align: left;
}

.state-filter-toggle span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-filter-toggle span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.state-filter-toggle span[aria-hidden="true"] {
  display: none;
}

.state-filter-toggle:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(185, 220, 237, 0.65);
  outline: none;
}

.state-filter-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--blue-200);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.state-filter-menu[hidden] {
  display: none;
}

.state-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 7px;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}

.state-option:hover {
  background: var(--blue-50);
}

.state-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.state-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-transform: none;
}

select:focus,
input:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(185, 220, 237, 0.65);
}

.directory {
  padding: 26px;
  min-width: 0;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  display: block;
  align-self: end;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-2);
  font-size: 1.35rem;
  font-weight: 800;
}

.search-box input {
  min-height: 54px;
  padding: 0 18px 0 48px;
  box-shadow: var(--shadow);
  font-size: 1.02rem;
  line-height: 54px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.results-panel,
.detail-panel {
  min-width: 0;
}

.results-list {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 206px);
  overflow: auto;
  padding-right: 4px;
}

.result-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.result-card:hover,
.result-card.is-selected {
  border-color: var(--blue-200);
  border-left-color: var(--yellow);
  box-shadow: 0 8px 20px rgba(11, 35, 65, 0.08);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 0.86rem;
  font-weight: 850;
}

.avatar-image {
  overflow: hidden;
}

.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-main {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-self: center;
}

.result-main strong,
.result-main span,
.result-main small {
  overflow-wrap: anywhere;
  white-space: normal;
}

.result-main strong {
  color: var(--navy);
  font-size: 1rem;
}

.result-main span {
  color: var(--ink);
  font-size: 0.92rem;
}

.result-main small {
  color: var(--muted);
  font-weight: 700;
}

.profile-detail,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-detail {
  padding: 24px 26px 26px;
}

.profile-detail-inline {
  min-height: 0;
  margin-top: -2px;
  margin-bottom: 6px;
  padding: 20px 18px;
}

.profile-header {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--yellow);
}

.avatar-large {
  width: 70px;
  height: 70px;
  background: var(--navy-2);
  font-size: 1.25rem;
}

.profile-program {
  margin-bottom: 5px;
  color: var(--navy-2);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-header h2 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.1;
}

.profile-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.secondary-action[hidden] {
  display: none;
}

.primary-action[hidden] {
  display: none;
}

.primary-action {
  background: var(--navy);
  color: white;
}

.primary-action:disabled {
  opacity: 0.58;
  pointer-events: none;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

.info-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.info-row:first-child {
  border-top: 0;
}

.info-row:last-child {
  padding-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 4px;
  line-height: 1.45;
}

.empty-state,
.detail-empty {
  padding: 28px;
  color: var(--muted);
}

.empty-state h2,
.detail-empty h2 {
  color: var(--navy);
}

@media (max-width: 980px) {
  .workspace,
  .content-grid,
  .dashboard-skeleton,
  .dashboard-skeleton-content-grid {
    grid-template-columns: 1fr;
  }

  .filters,
  .dashboard-skeleton-filters {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .results-list {
    max-height: none;
  }

  .detail-panel {
    display: none;
  }
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-brand {
    gap: 12px;
    padding: 14px 18px;
  }

  .brand-logo-yale {
    height: 46px;
    max-width: min(330px, 34vw);
  }

  .brand-logo-rwjf {
    height: 36px;
    max-width: min(250px, 24vw);
  }

  .brand-divider {
    height: 44px;
  }

  .brand-title {
    max-width: 300px;
    font-size: 0.82rem;
  }

  .topbar-menu-toggle {
    display: inline-flex;
  }

  .topbar-actions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 18px;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    width: min(320px, calc(100vw - 36px));
    min-height: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .topbar-actions.is-open {
    display: flex;
  }

  .topbar-actions .auth-controls {
    width: 100%;
    min-height: auto;
  }

  .topbar-actions .topbar-button,
  .topbar-actions .account-trigger {
    align-self: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 6px;
    text-align: left;
  }

  .topbar-actions .account-trigger {
    min-height: 46px;
  }

  .topbar-actions .give-button,
  .topbar-actions .give-button:hover,
  .topbar-actions .give-button:focus {
    justify-content: center;
    width: 100%;
    min-height: 40px;
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-brand {
    gap: 10px;
    justify-content: flex-start;
    padding: 12px 18px;
  }

  .brand-logo-yale {
    height: 38px;
    max-width: calc(42vw - 18px);
  }

  .brand-logo-rwjf {
    height: 28px;
    max-width: calc(32vw - 18px);
  }

  .brand-divider {
    height: 36px;
  }

  .brand-title {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.08;
  }

  .topbar-actions {
    right: 12px;
    width: min(320px, calc(100vw - 24px));
  }

  .topbar-menu-toggle {
    margin-right: 12px;
  }

  .directory,
  .filters,
  .dashboard-skeleton-directory,
  .dashboard-skeleton-filters {
    padding: 18px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .profile-detail {
    padding: 18px;
  }

  .profile-header,
  .info-row {
    grid-template-columns: 1fr;
  }

  .profile-header {
    gap: 12px;
  }
}
