/*
 * Faculty directory — aligned with Figma studies pages (WKmMos0BVKrPV95jSEUBaJ).
 * Scoped under .figma-faculty
 */

.figma-faculty {
  --fc-brand: #a70e13;
  --fc-ink: #222222;
  --fc-secondary: #434343;
  --fc-tertiary: #656565;
  --fc-stroke: #bbbbbb;
  --fc-section-bg: #efefef;
  --fc-white: #ffffff;

  --fc-gap-section: 80px;
  --fc-gap-extra: 40px;
  --fc-gap-lg: 24px;
  --fc-gap-md: 12px;
  --fc-gap-sm: 8px;
  --fc-gap-xs: 4px;
  --fc-pad-card: 30px;
  --fc-pad-inline: var(--iitd-pad-page, 80px);
  --fc-content-max: min(1280px, 100%);

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--fc-gap-section);
  width: 100%;
  margin: 0;
  padding: var(--fc-gap-section) var(--fc-pad-inline) 0;
  margin-bottom: var(--fc-gap-section);
  color: var(--fc-ink);
  font-family: "Titillium Web", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--fc-white);
}

.figma-faculty *,
.figma-faculty *::before,
.figma-faculty *::after {
  box-sizing: border-box;
}

.figma-faculty a {
  color: var(--fc-brand);
}

.figma-faculty .fc-page-inner {
  width: 100%;
  max-width: var(--fc-content-max);
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.figma-faculty .fc-top {
  padding: 0;
}

.figma-faculty .fc-hero-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--fc-gap-extra);
  width: 100%;
}

.figma-faculty .fc-bc {
  margin: 0;
  padding: 0;
  width: 100%;
}

.figma-faculty .fc-bc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fc-gap-md);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.figma-faculty .fc-bc-link {
  color: var(--fc-stroke);
  text-decoration: none;
  font-weight: 600;
}

.figma-faculty .fc-bc-link:hover,
.figma-faculty .fc-bc-link:focus-visible {
  color: var(--fc-brand);
  text-decoration: underline;
  outline: none;
}

.figma-faculty .fc-bc-current {
  color: var(--fc-ink);
  font-weight: 600;
}

.figma-faculty .fc-bc-sep {
  color: var(--fc-stroke);
  font-weight: 400;
  user-select: none;
}

.figma-faculty .fc-hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--fc-gap-lg);
  width: 100%;
}

.figma-faculty .fc-title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--fc-ink);
}

.figma-faculty .fc-lede {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fc-secondary);
}

/* ---------- Sections ---------- */

.figma-faculty .fc-block {
  width: 100%;
}

.figma-faculty .fc-block--muted {
  position: relative;
  padding: var(--fc-gap-section) 0;
}

.figma-faculty .fc-muted-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--fc-section-bg);
  z-index: 0;
}

.figma-faculty .fc-muted-inner {
  position: relative;
  z-index: 1;
}

.figma-faculty .fc-section-title {
  margin: 0 0 var(--fc-gap-lg);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fc-ink);
}

.figma-faculty .fc-section-intro {
  margin: -12px 0 var(--fc-gap-extra);
  max-width: 720px;
  color: var(--fc-secondary);
  line-height: 1.55;
}

/* ---------- Highlights ---------- */

.figma-faculty .fc-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--fc-gap-lg);
}

.figma-faculty .fc-highlight-card {
  padding: var(--fc-pad-card);
  background: var(--fc-white);
  border: 1px solid var(--fc-stroke);
}

.figma-faculty .fc-highlight-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: var(--fc-gap-lg);
  background: var(--fc-brand);
}

.figma-faculty .fc-highlight-label {
  margin: 0 0 var(--fc-gap-md);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fc-ink);
}

.figma-faculty .fc-highlight-detail {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fc-secondary);
}

/* ---------- Faculty grid ---------- */

.figma-faculty .fc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fc-gap-lg);
  width: 100%;
}

.figma-faculty .fc-card {
  background: var(--fc-white);
  border: 1px solid var(--fc-stroke);
}

.figma-faculty .fc-card-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.figma-faculty .fc-photo {
  margin: 0;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--fc-section-bg);
}

.figma-faculty .fc-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.figma-faculty .fc-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--fc-gap-sm);
  padding: var(--fc-pad-card);
}

.figma-faculty .fc-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fc-ink);
}

.figma-faculty .fc-role {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fc-secondary);
}

.figma-faculty .fc-dept {
  margin: 0 0 var(--fc-gap-sm);
  font-size: 15px;
  line-height: 1.45;
  color: var(--fc-tertiary);
}

.figma-faculty .fc-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fc-secondary);
}

.figma-faculty .fc-meta li + li {
  margin-top: var(--fc-gap-xs);
}

.figma-faculty .fc-meta strong {
  color: var(--fc-ink);
  font-weight: 600;
}

.figma-faculty .fc-meta a {
  text-decoration: none;
}

.figma-faculty .fc-meta a:hover,
.figma-faculty .fc-meta a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.figma-faculty .fc-actions {
  margin-top: auto;
  padding-top: var(--fc-gap-md);
}

.figma-faculty .fc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--fc-gap-sm);
  padding: 12px 24px;
  border: 1px solid var(--fc-brand);
  background: transparent;
  color: var(--fc-brand);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}

.figma-faculty .fc-action:hover,
.figma-faculty .fc-action:focus-visible {
  background: rgba(167, 14, 19, 0.06);
  outline: none;
}

.figma-faculty .fc-action .iitd-icon {
  width: 24px;
  height: 24px;
}

.figma-faculty #faculty-directory {
  scroll-margin-top: calc(var(--site-header-offset, 88px) + 24px);
}

/* ---------- Desktop ---------- */

@media (min-width: 992px) {
  .figma-faculty .fc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figma-faculty .fc-card-inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
  }

  .figma-faculty .fc-photo {
    height: 100%;
    min-height: 240px;
  }
}

@media (max-width: 1024px) {
  .figma-faculty .fc-highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .figma-faculty {
    --fc-pad-inline: var(--iitd-pad-page, 24px);
    --fc-gap-section: 60px;
    padding-top: 60px;
    padding-bottom: 0;
  }

  .figma-faculty .fc-title {
    font-size: 32px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .figma-faculty {
    --fc-pad-inline: var(--iitd-pad-page, 40px);
  }
}

@media (max-width: 768px) {
  .figma-faculty {
    --fc-pad-inline: 20px;
    --fc-gap-section: 40px;
    gap: 40px;
    padding-top: 40px;
    margin-bottom: 40px;
  }

  .figma-faculty .fc-title {
    font-size: 24px;
  }

  .figma-faculty .fc-lede,
  .figma-faculty .fc-section-intro,
  .figma-faculty .fc-highlight-detail {
    font-size: 14px;
  }

  .figma-faculty .fc-section-title {
    font-size: 20px;
    margin-bottom: var(--fc-gap-md);
  }

  .figma-faculty .fc-highlight-card {
    padding: 24px;
  }

  .figma-faculty .fc-highlight-label {
    font-size: 16px;
  }

  .figma-faculty .fc-body {
    padding: 24px;
  }

  .figma-faculty .fc-action {
    width: 100%;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
