/* =========================================================
   PRAISe Team
   Responsive people and alumni layout
   ========================================================= */

.team-page-section {
    padding: 48px 24px 82px;
    background: #fafafa;
}

.team-page-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* Join panel */

.team-join {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 58px;
    padding: 29px 34px;
    background: #ffffff;
    border: 1px solid #e5e5e1;
    border-radius: 17px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.045),
    0 2px 6px rgba(0, 0, 0, 0.02);
}

.team-join__eyebrow,
.team-section-heading__eyebrow {
    margin: 0 0 7px;
    color: #8a742f;
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.team-join__title {
    margin: 0 0 7px;
    color: #1d1e00;
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
}

.team-join__text {
    margin: 0;
    color: #666666;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.team-join__button {
    flex: 0 0 auto;
    padding: 12px 18px;
    background: #1d1e00;
    border: 1px solid #1d1e00;
    border-radius: 9px;
    color: #cfb97d !important;
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition: background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.team-join__button:hover,
.team-join__button:focus {
    background: #4f4604;
    border-color: #4f4604;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Sections */

.team-group {
    margin-top: 66px;
}

.team-group--lead {
    margin-top: 0;
}

.team-section-heading {
    margin-bottom: 25px;
    padding-bottom: 13px;
    border-bottom: 1px solid #deded9;
}

.team-section-heading__title {
    margin: 0;
    color: #1d1e00;
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

/* Principal investigator */

.team-lead {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5e5e1;
    border-radius: 19px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05),
    0 2px 7px rgba(0, 0, 0, 0.025);
}

.team-lead__photo {
    display: block;
    width: 230px;
    height: 230px;
    object-fit: cover;
    border: 4px solid #f2eee1;
    border-radius: 50%;
}

.team-lead__content {
    min-width: 0;
}

.team-lead__name {
    margin: 0 0 8px;
    color: #1d1e00;
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.team-lead__role {
    margin: 0 0 23px;
    color: #666666;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

/* Current students */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.team-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    padding: 25px 20px 22px;
    background: #ffffff;
    border: 1px solid #e5e5e1;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045),
    0 2px 6px rgba(0, 0, 0, 0.02);
    text-align: center;
    transition: border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.team-card:hover {
    border-color: rgba(207, 185, 125, 0.75);
    box-shadow: 0 17px 38px rgba(0, 0, 0, 0.07),
    0 3px 8px rgba(0, 0, 0, 0.025);
    transform: translateY(-2px);
}

.team-card__photo {
    display: block;
    width: 174px;
    height: 174px;
    margin-bottom: 20px;
    object-fit: cover;
    border: 3px solid #f2eee1;
    border-radius: 50%;
}

.team-card__content {
    display: flex;
    align-items: center;
    flex: 1;
    flex-direction: column;
    width: 100%;
}

.team-card__name {
    margin: 0 0 7px;
    color: #1d1e00;
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.team-card__role {
    margin: 0 0 18px;
    color: #6d6d67;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Social links */

.team-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.team-socials--student {
    justify-content: center;
    margin-top: auto;
}

.team-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1d1e00;
    border: 1px solid #1d1e00;
    border-radius: 10px;
    color: #cfb97d !important;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    transition: background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.team-socials a::before,
.team-socials a::after,
.team-socials i::before,
.team-socials i::after {
    text-decoration: none !important;
}

.team-socials a:hover,
.team-socials a:focus {
    background: #4f4604;
    border-color: #4f4604;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Alumni */

.team-group--alumni {
    margin-bottom: 0;
}

.team-alumni {
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e5e1;
    border-radius: 16px;
    box-shadow: 0 11px 28px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.02);
    list-style: none;
}

.team-alumni__item {
    display: grid;
    grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
    gap: 26px;
    align-items: baseline;
    padding: 18px 24px;
    border-bottom: 1px solid #ecece8;
}

.team-alumni__item:last-child {
    border-bottom: 0;
}

.team-alumni__name {
    color: #1d1e00;
    font-family: "Nunito Sans", "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.team-alumni__destination {
    color: #666666;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

/* Tablet */

@media (max-width: 1000px) {

    .team-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }

    .team-card__photo {
      width: 190px;
      height: 190px;
  }
}

@media (max-width: 760px) {

    .team-join {
      align-items: stretch;
      flex-direction: column;
      gap: 22px;
  }

    .team-join__button {
      align-self: flex-start;
  }

    .team-lead {
      grid-template-columns: 190px minmax(0, 1fr);
      gap: 29px;
      padding: 29px;
  }

    .team-lead__photo {
      width: 190px;
      height: 190px;
  }

    .team-lead__name {
      font-size: 29px;
  }
}

/* Mobile */

@media (max-width: 600px) {

    .team-page-section {
      padding: 32px 16px 58px;
  }

    .team-page-container {
      width: min(100% - 16px, 720px);
  }

    .team-join {
      margin-bottom: 44px;
      padding: 24px 22px;
      border-radius: 14px;
  }

    .team-join__button {
      align-self: stretch;
  }

    .team-group {
      margin-top: 49px;
  }

    .team-group--lead {
      margin-top: 0;
  }

    .team-section-heading__title {
      font-size: 27px;
  }

    .team-lead {
      grid-template-columns: 1fr;
      justify-items: center;
      gap: 22px;
      padding: 27px 22px;
      text-align: center;
  }

    .team-lead__photo {
      width: 190px;
      height: 190px;
  }

    .team-lead__name {
      font-size: 28px;
  }

    .team-lead__role {
      font-size: 16px;
  }

    .team-socials {
      justify-content: center;
  }

    .team-grid {
      grid-template-columns: 1fr;
  }

    .team-card {
      padding: 26px 22px 23px;
  }

    .team-card__photo {
      width: 185px;
      height: 185px;
  }

    .team-alumni__item {
      grid-template-columns: 1fr;
      gap: 5px;
      padding: 17px 20px;
  }
}

/* Slightly larger Team page typography */

.team-join__title {
    font-size: 28px;
}

.team-join__text {
    font-size: 18px;
}

.team-section-heading__title {
    font-size: 34px;
}

.team-lead__name {
    font-size: 38px;
}

.team-lead__role {
    font-size: 20px;
}

.team-card__name {
    font-size: 23px;
}

.team-card__role {
    font-size: 16px;
}

.team-alumni__name {
    font-size: 18px;
}

.team-alumni__destination {
    font-size: 17px;
}

/* Keep typography proportionate on phones */

@media (max-width: 600px) {

    .team-join__title {
      font-size: 25px;
  }

    .team-join__text {
      font-size: 17px;
  }

    .team-section-heading__title {
      font-size: 29px;
  }

    .team-lead__name {
      font-size: 31px;
  }

    .team-lead__role {
      font-size: 18px;
  }

    .team-card__name {
      font-size: 22px;
  }

    .team-card__role {
      font-size: 15px;
  }

    .team-alumni__name {
      font-size: 17px;
  }

    .team-alumni__destination {
      font-size: 16px;
  }
}

/* =========================================================
   Compact Team page on phones
   ========================================================= */

@media (max-width: 600px) {
    /* Compact page title area. */

    .team-page .modern-page-hero {
      padding-top: 22px;
      padding-bottom: 22px;
  }

    .team-page .modern-page-kicker {
      margin-bottom: 10px;
  }
    /* Reduce outer page spacing. */

    .team-page-section {
      padding-top: 22px;
      padding-bottom: 42px;
  }
    /* Compact hiring panel. */

    .team-join {
      gap: 14px;
      margin-bottom: 28px;
      padding: 18px 18px;
      border-radius: 13px;
  }

    .team-join__eyebrow {
      margin-bottom: 5px;
  }

    .team-join__title {
      margin-bottom: 5px;
  }

    .team-join__button {
      padding-top: 10px;
      padding-bottom: 10px;
  }
    /* Reduce spacing between team sections. */

    .team-group {
      margin-top: 34px;
  }

    .team-group--lead {
      margin-top: 0;
  }

    .team-section-heading {
      margin-bottom: 14px;
      padding-bottom: 9px;
  }

    .team-section-heading__eyebrow {
      margin-bottom: 5px;
  }
    /* Principal investigator card. */

    .team-lead {
      gap: 14px;
      padding: 18px 16px;
      border-radius: 15px;
  }

    .team-lead__photo {
      width: 150px;
      height: 150px;
  }

    .team-lead__name {
      margin-bottom: 5px;
  }

    .team-lead__role {
      margin-bottom: 14px;
  }
    /* Student cards. */

    .team-grid {
      gap: 14px;
  }

    .team-card {
      padding: 18px 16px 17px;
      border-radius: 15px;
  }

    .team-card__photo {
      width: 145px;
      height: 145px;
      margin-bottom: 13px;
  }

    .team-card__name {
      margin-bottom: 5px;
  }

    .team-card__role {
      margin-bottom: 13px;
  }
    /* Slightly smaller social buttons, not text. */

    .team-socials {
      gap: 7px;
  }

    .team-socials a {
      width: 34px;
      height: 34px;
      border-radius: 9px;
  }
    /* Compact alumni rows. */

    .team-alumni__item {
      gap: 3px;
      padding: 13px 16px;
  }
}
