/* =========================================
 * FRONT END: Pods template inside the modal
 * ======================================= */
.person-modal {
    font-family: inherit;
    color: #333;
}

/* Header: photo + text */
.person-modal .person-header {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* Photo */
.person-modal .person-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Heading text */
.person-modal .person-heading {
    flex: 1;
}

/* Name + pronouns row */
.person-modal .person-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

/* Name */
.person-modal .person-name {
    margin: 0;
    font-size: 2.7rem;
    line-height: 1.2;
    font-weight: 600;
}

/* Pronouns inline beside name */
.person-modal .person-pronouns {
    font-size: 1rem;
    color: #666;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f8f8f8;
}

/* Titles */
.person-modal .person-titles {
    color: #996725;
    margin-top: 0.6rem;
    line-height: 2rem;
    font-size: 1.7rem;
}

.person-modal .person-titles .primary-title {
    font-weight: 500;
}

.person-modal .person-titles .secondary-title {
    margin-top: 0.15rem;
}

/* Research area */
.person-modal .person-research {
    margin-top: 0.75rem;
    font-size: 1.5rem;
    color: #444;
}

.person-modal .person-research .label {
    font-weight: 600;
    margin-right: 0.3rem;
}

/* Spacing between multiple linked research areas */
.person-research .value .research-area-item {
    display: inline-block;
    margin-right: 0.5em; /* adjust as needed */
}

/* Quick links (email, personal site, profile) */
.person-modal .person-quick-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.person-modal .quick-link {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 1.4rem;
    text-decoration: none;
    border: 1px solid #d0d0d0;
    color: #0055a5;
    background: #f7f9fb;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.person-modal .quick-link:hover {
    background: #0055a5;
    color: #fff;
    border-color: #0055a5;
}

/* Sections (bio, socials) */
.person-modal .person-section {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.6;
}

.person-modal .person-section:first-of-type {
    margin-top: 0; /* if bio is first */
}

/* Biography */
.person-modal .person-bio p:last-child {
    margin-bottom: 0;
}

/* Section labels */
.person-modal .person-section .label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Social links layout */
.person-modal .person-socials {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.person-modal .person-socials .label {
    margin-bottom: 0.6rem;
    display: block;
}

.person-modal .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-end;
}

/* Icon-only social buttons */
.person-modal .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
    text-decoration: none;
    padding: 0;
    color: #996725;
}

.person-modal .social-link:hover {
    color: #255799;
}

/* =========================================
 * FRONT END: PowerPack grid layout overrides
 * ======================================= */

.pp-content-post-grid.pp-css-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
}

.pp-content-post {
    flex: 0 0 250px !important; /* Fixed width items */
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .pp-content-post {
        flex: 0 0 23% !important; /* 4 columns with spacing */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .pp-content-post {
        flex: 0 0 31% !important; /* 3 columns */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .pp-content-post {
        flex: 0 0 48% !important; /* 2 columns */
    }
}

@media (max-width: 767px) {
    .pp-content-post {
        flex: 0 0 100% !important; /* 1 column */
    }
}

/* =========================================
 * FRONT END: Single People page tweaks
 * ======================================= */
/* Hide theme title + meta on single People pages */
.single-people .fl-post-header {
    display: none;
}




/* =========================================
 * FRONT END: Research Area People page tweaks
 * ======================================= */

#ra-description-row {
  margin-top: 6rem;
}

#ra-description-col {
  position: relative;
}

#ra-description-col::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  background-color: #fecc07;
  z-index: 0;
}

#ra-description-text {
  position: relative;
  background-color: #fff;
  margin: 0 20px 20px 0;
  padding: 30px;
  box-shadow: -8px 8px 23px rgba(0, 0, 0, 0.3);
  border: 1px solid lightslategray;
  z-index: 1;
}

/* Tablet and below */
@media (max-width: 768px) {
  #ra-description-row {
    margin-top: 3rem; /* Reduce top margin */
  }
  
  #ra-description-col::before {
    width: calc(100% - 20px); /* Smaller offset */
    height: calc(100% - 20px);
  }
  
  #ra-description-text {
    margin: 0 10px 10px 0; /* Smaller margin */
    padding: 20px; /* Less padding */
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3); /* Smaller shadow */
  }
}

/* Mobile */
@media (max-width: 480px) {
  #ra-description-row {
    margin-top: 2rem;
  }
  
  #ra-description-col::before {
    width: calc(100% - 15px); /* Even smaller */
    height: calc(100% - 15px);
  }
  
  #ra-description-text {
    margin: 0 8px 8px 0;
    padding: 15px;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.3);
  }
}