:root {
  color-scheme: light;
  --cpc-blue: #3a55a1;
  --cpc-blue-dark: #2f4380;
  --cpc-blue-light: #eef2fb;
  --cpc-blue-tint: #f6f8fd;

  --grey: #969da5;
  --grey-logo: #a2afbf;
  --grey-dark: #747e89;
  --grey-ink: #27303a;
  --grey-line: #e3e7ee;
  --grey-bg: #f6f7f9;
  --grey-card-bg: #fbfcfd;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 30, 50, 0.04);
  --shadow-md: 0 6px 18px rgba(58, 85, 161, 0.08);
  --body-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --header-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--grey-bg);
  color: var(--grey-ink);
  font-family: var(--body-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 56px;
}

.controls {
  margin: 0 0 1rem;
}

.controls label {
  display: block;
  margin-bottom: 6px;
  color: var(--grey-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.controls input {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border: 1px solid #dce1e8;
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--body-font);
}

.controls input:focus {
  outline: none;
  border-color: var(--cpc-blue);
  box-shadow: 0 0 0 2px rgba(58, 85, 161, 0.22);
}

.team-section + .team-section {
  margin-top: 1.4rem;
}

.division-section + .division-section {
  margin-top: 2rem;
}

.division-section {
  padding-bottom: 0.95rem;
  position: relative;
}

.division-section::after {
  content: "";
  display: block;
  width: 50%;
  max-width: 260px;
  height: 2px;
  margin: 0.95rem auto 0;
  background: #3a55a1;
  border-radius: 999px;
  opacity: 0.45;
}

.team-section + .division-section {
  margin-top: 2rem;
}

.division-section + .team-section {
  margin-top: 2rem;
}

.division-heading {
  margin: 0 0 0.75rem;
  color: var(--cpc-blue-dark);
  font-family: var(--header-font);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subdepartment-heading {
  margin: 0.25rem 0 0.6rem;
  color: var(--grey-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.people-grid + .subdepartment-heading {
  margin-top: 0.95rem;
}

.team-heading {
  margin: 0 0 0.7rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--grey-line);
  color: var(--cpc-blue-dark);
  font-family: var(--header-font);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 0.8rem;
}

.person-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 405px;
  border: 1px solid var(--grey-line);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.person-card.is-executive {
  border-color: rgba(58, 85, 161, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, var(--cpc-blue-tint) 100%);
  box-shadow: 0 8px 20px rgba(58, 85, 161, 0.16);
}

.person-card.is-department-lead {
  border-color: rgba(58, 85, 161, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.card-top {
  text-align: center;
  min-height: 204px;
  display: flex;
  flex-direction: column;
}

.avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.6rem;
  position: relative;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: none;
  border: 2px solid #e4ebf6;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #dce7ff;
  color: #3156a3;
  display: grid;
  place-content: center;
  font-weight: 700;
}

.name {
  margin: 0;
  font-family: var(--header-font);
  font-size: 0.98rem;
  color: var(--grey-ink);
  min-height: 2.4em;
}

.title {
  margin: 0.28rem 0 0;
  color: var(--grey-dark);
  font-size: 0.85rem;
  min-height: 2.4em;
}

.leadership-badge {
  margin: auto auto 0.75rem;
  width: fit-content;
  display: none;
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-card.is-executive .leadership-badge,
.person-card.is-department-lead .leadership-badge {
  display: inline-flex;
}

.person-card.is-executive .leadership-badge {
  border-color: rgba(58, 85, 161, 0.26);
  color: #233f88;
  background: rgba(255, 255, 255, 0.88);
}

.person-card.is-department-lead .leadership-badge {
  border-color: #d7dff0;
  color: var(--cpc-blue-dark);
  background: #f8faff;
}

.meta-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.38rem;
  margin-top: auto;
}

.meta-grid li {
  border-top: 1px solid #eff4fa;
  padding-top: 0.38rem;
  min-height: 2.15rem;
}

.label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--grey-dark);
  font-weight: 700;
}

.value {
  display: block;
  font-size: 0.84rem;
  color: var(--grey-ink);
  overflow-wrap: break-word;
  word-break: normal;
}

.value.placeholder {
  color: #9aa8ba;
}

.empty-state {
  color: var(--grey-dark);
  font-style: italic;
}

@media (max-width: 480px) {
  .app-shell {
    padding: 16px 14px 48px;
  }
}
