/* Approved Lovable leadership presentation, scoped to Django page content. */
.leadership-showcase {
  --showcase: oklch(0.39 0.12 265);
  --showcase-deep: oklch(0.255 0.08 270);
  --showcase-foreground: oklch(0.99 0.003 255);
  --showcase-silver: oklch(0.83 0.038 255);
  --showcase-muted: oklch(0.79 0.04 260);
  --showcase-line: oklch(0.59 0.09 260 / 0.4);
  --showcase-navy: oklch(0.286 0.083 274);
  --showcase-crimson: oklch(0.51 0.2 27);
  --portrait: oklch(0.93 0.012 262);
  position: relative;
  overflow: hidden;
  color: var(--showcase-foreground);
  background: linear-gradient(120deg, var(--showcase) 0%, var(--showcase-navy) 62%, var(--showcase-deep) 100%);
}
.showcase-curves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.showcase-curves::before, .showcase-curves::after {
  content: ""; position: absolute; width: 125%; height: 60%; left: -42%; top: 35%;
  border: 1px solid var(--showcase-line); border-radius: 50%; transform: rotate(-18deg); opacity: .48;
  box-shadow: 0 12px 0 -11px var(--showcase-line), 0 25px 0 -24px var(--showcase-line), 0 39px 0 -38px var(--showcase-line);
}
.showcase-curves::after { left: 35%; top: -50%; height: 95%; transform: rotate(-25deg); opacity: .3; }
.showcase-inner { position: relative; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.listing-inner { max-width: 1088px; padding-top: 32px; padding-bottom: 40px; }
.showcase-heading { text-align: center; }
.showcase-heading h1 { margin: 8px 0 0; font-size: 1.9rem; font-weight: 600; line-height: 1.25; }
.showcase-rule { display: block; width: 36px; height: 2px; background: var(--showcase-crimson); margin: 12px auto 0; }
.showcase-intro { max-width: 32rem; margin: 12px auto 0; color: var(--showcase-muted); font-size: .75rem; line-height: 1.625; }
.team-tabs { display: flex; width: fit-content; max-width: 100%; margin: 16px auto 0; gap: 20px; justify-content: center; border-bottom: 1px solid var(--showcase-line); }
.team-tabs a { position: relative; display: inline-flex; min-height: 40px; align-items: center; color: var(--showcase-muted); font-size: .75rem; white-space: nowrap; }
.team-tabs a:hover, .team-tabs a[aria-current="page"] { color: var(--showcase-foreground); }
.team-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--showcase-crimson); transform: scaleX(0); transition: transform 200ms ease; }
.team-tabs a:hover::after, .team-tabs a[aria-current="page"]::after { transform: scaleX(1); }
.leader-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; align-items: stretch; }
.leader-item { min-width: 0; display: flex; text-align: center; }
.leader-card { display: flex; width: 100%; min-width: 0; flex-direction: column; align-items: center; border-radius: 2px; color: inherit; }
.leader-card:focus-visible { outline: 2px solid var(--showcase-silver); outline-offset: 5px; }
.portrait-frame { width: 100%; aspect-ratio: 4 / 4.6; padding: 5px; border: 2px solid var(--showcase-deep); border-radius: 8px; background: linear-gradient(140deg, var(--showcase-foreground), var(--showcase-silver) 40%, var(--showcase-line)); box-shadow: 0 6px 18px oklch(0.255 0.08 270 / .35); transition: transform 250ms ease, border-color 250ms ease; }
.leader-card .portrait-frame { max-width: 11.75rem; margin: 0 auto; }
.portrait-inset { width: 100%; height: 100%; overflow: hidden; border: 1px solid var(--showcase-silver); border-radius: 3px; background: var(--portrait); }
.portrait-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.portrait-img.photo-top { object-position: center top; }
.portrait-img.photo-center { object-position: center; }
.portrait-img.photo-bottom { object-position: center bottom; }
.portrait-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--portrait); color: var(--showcase-navy); font-size: 1.875rem; }
.leader-card:hover .portrait-frame { transform: translateY(-3px); border-color: var(--showcase-silver); }
.leader-card:hover .portrait-img { transform: scale(1.015); }
.leader-card h2 { margin: 16px 0 0; color: var(--showcase-foreground); font-size: 1.05rem; font-weight: 600; line-height: 1.375; text-wrap: balance; }
.leader-position { max-width: 15rem; margin: 4px auto 0; color: var(--showcase-silver); font-size: .7rem; line-height: 1rem; }
.leader-accent { display: block; width: 20px; height: 2px; margin: 8px auto 0; background: var(--showcase-line); }
.leader-accent.chair-accent { background: var(--showcase-crimson); }
.leader-excerpt { max-width: 13.5rem; margin: 12px auto 0; color: var(--showcase-muted); font-size: .75rem; line-height: 1.65; }
.leader-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--showcase-silver); font-size: .68rem; font-weight: 500; }
.leader-card:hover .leader-link { color: var(--showcase-foreground); }
.showcase-empty { padding: 48px 0; text-align: center; }
.showcase-empty h2 { margin: 0; font-size: 1.125rem; font-weight: 500; }
.showcase-empty p { margin: 8px 0 0; color: var(--showcase-muted); font-size: .75rem; }
.profile-hero-inner { max-width: 928px; padding-top: 20px; padding-bottom: 32px; }
.leadership-showcase .back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--showcase-silver); font-size: .75rem; font-weight: 400; }
.leadership-showcase .back-link:hover { color: var(--showcase-foreground); }
.profile-hero { display: grid; gap: 24px; align-items: center; margin-top: 16px; }
.profile-portrait-frame { width: 11rem; margin: 0 auto; }
.profile-identity { text-align: center; }
.profile-meta { margin: 0; color: var(--showcase-silver); font-size: .75rem; }
.profile-meta span { margin: 0 8px; }
.profile-identity h1 { margin: 8px 0 0; font-size: 1.9rem; font-weight: 600; line-height: 1.25; }
.profile-position { margin: 8px 0 0; color: var(--showcase-silver); font-size: .875rem; }
.profile-rule { display: block; width: 32px; height: 2px; margin: 16px auto 0; background: var(--showcase-crimson); }
.profile-excerpt { max-width: 32rem; margin: 16px auto 0; color: var(--showcase-muted); font-size: .875rem; line-height: 1.625; }
.profile-article { max-width: 928px; margin: 0 auto; padding: 32px 20px; }
.profile-columns { display: grid; gap: 32px; align-items: start; }
.profile-biography h2 { margin: 0 0 16px; color: var(--blue-dark); font-size: 1rem; font-weight: 600; }
.biography-copy { color: #374151; font-size: .875rem; line-height: 1.8; }
.biography-copy p { margin: 0 0 16px; }
.profile-details { margin: 0; border-bottom: 1px solid #dce0e8; }
.profile-detail { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid #dce0e8; }
.profile-detail dt { color: #6b7280; font-size: .75rem; font-weight: 500; }
.profile-detail dd { margin: 0; color: #303747; font-size: .875rem; line-height: 1.65; }
.profile-detail .experience-value { color: var(--blue-dark); font-size: 1.125rem; font-weight: 500; }
.experience-value small { color: #6b7280; font-size: .75rem; font-weight: 400; }
.profile-detail .preserve-lines { white-space: pre-line; }
.profile-bottom-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #dce0e8; }
.profile-bottom-nav a { color: var(--blue-dark); font-size: .75rem; }
.profile-bottom-nav a:hover { color: var(--red); text-decoration: underline; }
@media (min-width: 640px) {
  .showcase-inner, .profile-article { padding-left: 32px; padding-right: 32px; }
  .listing-inner { padding-top: 40px; padding-bottom: 48px; }
  .showcase-heading h1 { font-size: 2.2rem; }
  .team-tabs { gap: 32px; }
  .profile-hero { grid-template-columns: 11rem minmax(0, 1fr); gap: 40px; }
  .profile-identity { text-align: left; }
  .profile-identity h1 { font-size: 2.3rem; }
  .profile-rule { margin-left: 0; }
  .profile-excerpt { margin-left: 0; }
  .profile-detail { grid-template-columns: 8rem minmax(0, 1fr); gap: 20px; }
}
@media (min-width: 768px) { .leader-grid { column-gap: 40px; } .profile-columns { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
@media (min-width: 1024px) { .leader-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 359px) { .leader-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .portrait-frame, .portrait-img, .team-tabs a::after { transition: none; } .leader-card:hover .portrait-frame, .leader-card:hover .portrait-img { transform: none; } }
