
.team-member-image.mercury a:hover:after {
    transform: translateX(0px);
}

.team-member-image.mercury a:after {
    background-color: rgb(250, 70, 22);
    content: "";
    height: 100%;
    left: 0px;
    mix-blend-mode: multiply;
    position: absolute;
    top: 0px;
    transform: translateX(101%);
    width: 100%;
    z-index: 9999999;
    transition: 0.2s ease-in-out;
}
.team-member-image.mercury a img {
    width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid #e7e7e7;
}

/* Mobile image adjustments */
@media (max-width: 575px) {
    .team-member-image.mercury a img {
        max-height: 250px;
    }
}

.team-member-image.mercury a {
    display: block;
    position: relative;
    overflow: hidden;
}

.team-member-container.mercury {
    --bs-gutter-x: 1.5rem;
    width: 100%;
    max-width: 1920px;
    flex-grow: 1;
    padding: 1rem 7% 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.team-member-page-title.mercury {
    --bs-gutter-x: 1.5rem;
    width: calc(100% - 3rem);
    max-width: 1920px;
    flex-grow: 1;
    padding: 1rem 7% 0;
}

/* Override conflicting .links class and ensure proper specificity */
.team-member-container.mercury.links,
#content .team-member-container.mercury.links {
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Ensure mercury links don't get overridden by page CSS */
.team-member-container.mercury.links a,
#content .team-member-container.mercury.links a {
    display: inline-block;
}

/* Override any global link styles for mercury components */
.individual-team-member-container.mercury a {
    transition: none;
}

/* Mobile-first approach: Default styles for mobile */
.individual-team-member-container.mercury {
    max-width: 100%;
    width: 100%;
    margin: 0 0 2rem 0;
    min-height: 50px;
}

/* Center content on mobile by default */
@media (max-width: 575px) {
    .all-team-member-container.mercury {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .individual-team-member-container.mercury {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .individual-team-member-container.mercury {
        max-width: calc(50% - 0.75rem);
        margin: 0 1.5rem 2rem 0;
        display: block;
        text-align: left;
    }
    
    .individual-team-member-container.mercury:nth-child(2n) {
        margin-right: 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .individual-team-member-container.mercury {
        max-width: calc(33.33% - 1rem);
        margin: 0 1.5rem 2.5rem 0;
    }
    
    .individual-team-member-container.mercury:nth-child(2n) {
        margin-right: 1.5rem;
    }
    
    .individual-team-member-container.mercury:nth-child(3n) {
        margin-right: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .individual-team-member-container.mercury {
        max-width: calc(25% - 1.125rem);
        margin: 0 1.5rem 3rem 0;
    }
    
    .individual-team-member-container.mercury:nth-child(3n) {
        margin-right: 1.5rem;
    }
    
    .individual-team-member-container.mercury:nth-child(4n) {
        margin-right: 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .individual-team-member-container.mercury {
        max-width: calc(20% - 1.2rem);
        margin: 0 1.5rem 3rem 0;
    }
    
    .individual-team-member-container.mercury:nth-child(4n) {
        margin-right: 1.5rem;
    }
    
    .individual-team-member-container.mercury:nth-child(5n) {
        margin-right: 0;
    }
}
#content .archive-team-member-name.mercury a {
    font-family: "gentonasemibold" !important;
    color: #0021a5;
    text-decoration: none;
    font-size: 20px;
    line-height: 28px;
    display: block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.archive-team-member-position.mercury {
    margin-top: 8px;
}

.archive-team-member-position.mercury p {
    font-style: normal;
    padding: 0;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.archive-team-member-email.mercury {
    margin-top: 8px;
}

.archive-team-member-email.mercury a {
    color: #000;
    text-decoration: underline;
    font-family: "gentonalight";
    font-size: 20px;
    line-height: 28px;
    display: inline-block;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.archive-team-member-email.mercury a:hover {
    text-decoration: none;
}

.archive-team-member-name.mercury {
    margin: 40px 0 0;
    min-height: 28px;
}

/* Mobile text and spacing adjustments */
@media (max-width: 575px) {
    .archive-team-member-name.mercury {
        margin: 15px 0 0;
    }
    
    #content .archive-team-member-name.mercury a {
        font-size: 20px;
        line-height: 22px;
    }
    
    .archive-team-member-email.mercury {
        margin-top: 6px;
    }
    
    .archive-team-member-email.mercury a {
        font-size: 14px;
        line-height: 20px;
    }
    
    .archive-team-member-position.mercury {
        margin-top: 4px;
    }
    
    .archive-team-member-position.mercury p {
        font-size: 14px;
        line-height: 18px;
    }
    
    /* Fix container padding for mobile */
    .team-member-container.mercury {
        padding: 1rem 10px 0;
        width: 100%;
        justify-content: center;
    }
    
    .team-member-page-title.mercury {
        padding: 1rem 10px 0;
        width: 100%;
    }
    
    .individual-team-member-container.mercury {
        padding: 0;
        margin: 0 0 30px 0;
        width: 100%;
        max-width: 280px;
    }
    
    /* Ensure images don't overflow on mobile */
    .team-member-image.mercury {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .team-member-image.mercury a img {
        width: 100%;
        height: auto;
        max-height: 280px;
    }
}

/* Detail page dark */

.faculty-bio .container-fluid .h1 {
    color: #fff;
    font-family: gentonabook;
    font-size: 60px;
    font-weight: 500;
    line-height: 54px;
    text-align: left;
}
.faculty-bio .container-fluid .h2 {
    color: #fff;
    font-family: gentonamedium;
    font-size: 26px;
    line-height: 48px;
    text-align: left;
}
.faculty-bio .container-fluid .faculty-bio-info p {
    color: #fff !important;
}
.faculty-bio-info .reverse, .faculty-bio-info .reverse h3, .faculty-bio-info .reverse h4, .faculty-bio-info .reverse h5, .faculty-bio-info .reverse h6, .faculty-bio-info .reverse li, .faculty-bio-info .reverse a {
    color: #fff !important;
}
.faculty-bio .container-fluid .faculty-headshot img {
    margin-bottom: 40px;
    max-width: 100%;
    height: auto;
}
.faculty-bio .container-fluid .faculty-bio-info  .reverse li:before {
    background: none !important;
    position: unset !important;
}
/*=================================================


Legacy Styling for Team Member Plugin


===================================================*/
/*===============================

  Universal Styling

================================*/
.bold-contact {
    font-weight: 700;
    font-family: Gentona_Bold;
    text-transform: uppercase;
    color: #666666 !important;
}

.team-member-image img {
    width: 200px;
    object-fit: cover;
    max-height: 271px;
    height: 200px;
    border: 1px solid #CCCCCC;
}

.archive-team-member-position p {
    font-style: italic;
    padding-right: 10%;
}

.team-member-additional-info {
    margin-top: 2rem;
    border-top: 1px dashed #f45a1d;
}

.team-member-additional-info ul {
    padding-left: 1rem;
}

/*===============================

  Archive page for ALL team members

================================*/

.team-member-container {
    display: flex;
    flex-wrap: wrap;
}

.individual-team-member-container {
    flex: 1 auto;
    max-width: 250px;
    margin: 0 1rem 3rem 0;
}

.archive-team-member-name {
    margin: .4rem 0;
}

#content .archive-team-member-name a {
    font-family: "Quadon", sans-serif !important;
    margin: .5rem 0;
}


/*===============================

Media Queries

================================*/

@media(min-width: 768px) {
    #content .team-member_wrap {
        max-width: 1023px;
        display: flex;
    }

    #content .archive-team-member_wrap.wrap {
        max-width: 1023px;
    }

    .archive.post-type-archive-clas_team_members .wrap {
        max-width: 1023px;
    }

    .team-member-main-info-container {
        flex: 1 10%;
        border-right: 1px dashed #f45a1d;
        padding-right: 1rem;
    }

    .team-member-additional-info {
        padding-left: 2rem;
        flex: 1 50%;
        margin-top: 0;
        border: none;
    }

    .team-member-additional-info div:first-child h3 {
        padding-top: 0;
    }

    .team-member-main-info-container>div {
        padding: .2rem 0;
    }

    .team-member-main-info {
        margin-bottom: 2rem;
    }

    .all-team-member-container {
        justify-content: left;
        display: flex;
        flex-wrap: wrap;
    }

    .team-member-link {
        margin: .5rem 0;
    }

    .team-member-additional-info ul {
        padding-left: 40px;
    }
}

/* Styling for team members without website links - disable hover effects */
.team-member-no-website:hover:after {
    transform: none !important;
    transition: none !important;
}

.team-member-no-website:after {
    display: none !important;
}

.team-member-no-website {
    cursor: default !important;
}

.team-member-no-website-name {
    cursor: default !important;
}

.team-member-no-website-name:hover {
    text-decoration: none !important;
}

/* Bio cards - links inherit text color for guaranteed contrast */
.faculty-bio .faculty-email,
.faculty-bio .faculty-tel,
.faculty-bio-content a {
    color: inherit;
    text-decoration: underline;
}

.faculty-bio .faculty-email:hover,
.faculty-bio .faculty-tel:hover,
.faculty-bio-content a:hover {
    color: inherit;
    text-decoration: none;
}

/*=================================================

Profile Cards Shortcode
ADA compliant, full-width stacked cards

===================================================*/

.team-profile-cards {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.team-profile-cards-title {
    font-family: "IBM Plex semibold";
    font-size: 32px;
    color: #0021a5;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

section.team-profile-cards article.profile-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e7e7e7;
}

.profile-card:last-child {
    border-bottom: none;
}

.profile-card:focus-within {
    outline: 2px solid #0021a5;
    outline-offset: 2px;
}

.team-profile-cards .profile-card-image {
    flex: 0 0 200px !important;
    width: 200px !important;
    max-width: 200px;
}

.team-profile-cards .profile-card-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 1px solid #e7e7e7;
}

.team-profile-cards .profile-card-content {
    flex: 1 1 auto !important;
    min-width: 0;
}

.profile-card-name {
    font-family: "IBM Plex semibold";
    font-size: 24px;
    line-height: 1.3;
    color: #0021a5;
    margin: 0 0 0.5rem 0;
}

.profile-card-position {
    font-family: "gentonalight", sans-serif;
    font-size: 20px;
    font-style: italic;
    color: #333;
    margin: 0 0 1rem 0;
}

.profile-card-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}

.profile-card-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
}

.profile-card-contact .contact-icon {
    color: rgb(250, 70, 22);
    font-size: 20px;
}

.profile-card-contact a {
    color: #0021a5;
    text-decoration: underline;
}

.profile-card-contact a:hover {
    text-decoration: none;
}

.profile-card-contact a:focus {
    outline: 2px solid #0021a5;
    outline-offset: 2px;
}

.profile-card-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.profile-card-bio p {
    margin: 0 0 1rem 0;
}

.profile-card-bio p:last-child {
    margin-bottom: 0;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 767px) {
    section.team-profile-cards article.profile-card {
        flex-direction: column !important;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .team-profile-cards .profile-card-image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 250px;
        margin: 0 auto;
    }

    .team-profile-cards .profile-card-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-width: 250px;
    }

    .team-profile-cards .profile-card-content {
        text-align: left;
    }

    .team-profile-cards .profile-card-name {
        font-size: 22px;
    }

    .team-profile-cards .profile-card-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .team-profile-cards-title {
        font-size: 26px;
    }
}

/*=================================================

ADA Accessibility & UF Mercury Theme Compliance
WCAG 2.1 AA Standards

===================================================*/

/*===============================
  Focus States (WCAG 2.4.7)
  All interactive elements need visible focus
================================*/

/* Universal focus state for all links */
.all-team-member-container a:focus,
.all-team-member-container-alt a:focus,
.team-member-container a:focus,
.team-member-image a:focus,
.archive-team-member-name a:focus,
.archive-team-member-email a:focus,
.faculty-bio a:focus,
.faculty-contact-info a:focus {
    outline: 2px solid #0021a5;
    outline-offset: 2px;
}

/* Focus state for images wrapped in links */
.team-member-image a:focus img,
.team-member-image-alt a:focus img {
    outline: 2px solid #0021a5;
    outline-offset: 2px;
}

/*===============================
  Color Contrast Fixes (WCAG 1.4.3)
  Minimum 4.5:1 ratio for text
================================*/

/* Update gray text to Mercury standard (#343741) for better contrast */
.archive-team-member-position p,
.archive-team-member-position-alt,
.profile-card-position,
.archive-team-member-phone-alt,
.archive-team-member-office-alt,
.archive-team-member-department-alt {
    color: #343741;
}

/* Fix bold-contact gray - was #666666, now meeting contrast */
.bold-contact {
    color: #595959 !important; /* 4.5:1 contrast on white */
}

/*===============================
  List Bullet Fix (WCAG 1.1.1)
  Remove errant bullet markers
================================*/

/* Remove all bullet markers from contact lists */
.profile-card-contact,
.profile-card-contact li {
    list-style: none !important;
    list-style-type: none !important;
}

.profile-card-contact li::before,
.profile-card-contact li::marker {
    content: none !important;
    display: none !important;
}

/*===============================
  UF Mercury Theme Orange Accent
  Brand color: #fa4616
================================*/

/* Add orange accent to profile cards */
section.team-profile-cards article.profile-card {
    border-left: 3px solid #fa4616;
    padding-left: 1.5rem;
}

/* Orange accent on bio cards section divider */
.faculty-bio hr {
    border: none;
    border-top: 2px solid #fa4616;
    margin: 1rem 0 1.5rem;
}

/* Orange hover underline for name links */
#content .archive-team-member-name a:hover,
#content .archive-team-member-name.mercury a:hover,
.profile-card-name:hover {
    text-decoration: underline;
    text-decoration-color: #fa4616;
    text-underline-offset: 3px;
}

/*===============================
  Bio Cards Heading Styles
  Updated for new h2/h3 hierarchy
================================*/

.faculty-bio h2.faculty-name {
    color: #fff;
    font-family: gentonabook, sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    text-align: left;
    margin: 0 0 0.5rem 0;
}

.faculty-bio h2.faculty-name a {
    color: #fff;
    text-decoration: none;
}

.faculty-bio h2.faculty-name a:hover {
    text-decoration: underline;
}

.faculty-bio h3.faculty-subtitle {
    color: #fff;
    font-family: gentonamedium, sans-serif;
    font-size: 22px;
    line-height: 1.4;
    text-align: left;
    margin: 0;
}

/*===============================
  Consistent Link Hover States
  Per Mercury guidelines
================================*/

/* Ensure all links show underline on hover */
.all-team-member-container a:hover,
.all-team-member-container-alt a:hover {
    text-decoration: underline;
}

/* Email links - reverse hover (start underlined, remove on hover) */
.archive-team-member-email a,
.archive-team-member-email-alt a {
    text-decoration: underline;
}

.archive-team-member-email a:hover,
.archive-team-member-email-alt a:hover {
    text-decoration: none;
}

/*===============================
  Alt Layout Improvements
================================*/

/* Better spacing for alt layouts */
.individual-team-member-container-alt {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e7e7e7;
}

.individual-team-member-container-alt:last-child {
    border-bottom: none;
}

/* Name link styling for alt layouts */
.archive-team-member-name-alt a {
    font-family: "IBM Plex semibold";
    color: #0021a5;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.3;
}

.archive-team-member-name-alt a:hover {
    text-decoration: underline;
    text-decoration-color: #fa4616;
}

/*=================================================
  CONSOLIDATED SHORTCODE STYLES
  New BEM-structured styles for 5 shortcodes
===================================================*/

/* Variables */
:root {
    --ufclas-blue: #0021a5;
    --ufclas-orange: #fa4616;
    --ufclas-text: #343741;
    --ufclas-text-light: #595959;
    --ufclas-border: #e7e7e7;
    --ufclas-bg-dark: #1a1a2e;
    --ufclas-bg-light: #f8f9fa;
}

/* Common Title */
.ufclas-team-title {
    font-family: "IBM Plex light";
    color: #000;
    margin: 0 auto 70px;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--ufclas-orange);
    max-width: 1074px;
    text-align: center;
    font-size: 48px;
    letter-spacing: 0.2em;
    line-height: 54px; 
}

/*===============================
  COMMON TYPOGRAPHY
================================*/

.ufclas-team-grid__name, 
.ufclas-team-cards__name,
.ufclas-team-list__name {
    font-family: "IBM Plex semibold";
    font-size: 20px;
    line-height: 1.1;
    margin: 0 0 6px 0;
}

.ufclas-team-grid__position,
.ufclas-team-grid__email,
.ufclas-team-grid__bio,
.ufclas-team-grid__phone,
.ufclas-team-cards__position,
.ufclas-team-list__email,
.ufclas-team-list__position,
.ufclas-team-list__bio {
    margin-bottom: 6px;
}

.ufclas-team-list__phone,
.ufclas-team-list__office,
.ufclas-team-list__department,
.ufclas-team-cards__bio p {
    margin-bottom: 0;
}

.ufclas-team-cards__bio,
.ufclas-team-list__summary {
    margin-top: 18px;
}

.ufclas-team-grid__email a,
.ufclas-team-grid__bio a,
.ufclas-team-grid__phone a,
.ufclas-team-list__email a,
.ufclas-team-list__bio a {
    color: var(--ufclas-text);
    text-decoration: underline;
}

.ufclas-team-grid__email a:hover,
.ufclas-team-grid__bio a:hover,
.ufclas-team-grid__phone a:hover,
.ufclas-team-list__email a:hover,
.ufclas-team-list__bio a:hover {
    color: var(--ufclas-text);
    text-decoration: none;
}

.ufclas-team-grid__email a:focus,
.ufclas-team-grid__bio a:focus,
.ufclas-team-grid__phone a:focus,
.ufclas-team-list__email a:focus,
.ufclas-team-list__bio a:focus {
    outline: 2px solid var(--ufclas-blue);
    outline-offset: 2px;
}

/* Edit Team Member links (admin only) */
.ufclas-team-grid__edit,
.ufclas-team-bio__edit,
.ufclas-team-cards__edit,
.ufclas-team-list__edit,
.ufclas-profile__edit,
.archive-team-member-edit {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.85em;
}

.ufclas-team-grid__edit a,
.ufclas-team-bio__edit a,
.ufclas-team-cards__edit a,
.ufclas-team-list__edit a,
.ufclas-profile__edit a,
.archive-team-member-edit a {
    color: #0073aa;
    text-decoration: underline;
}

.ufclas-team-grid__edit a:hover,
.ufclas-team-bio__edit a:hover,
.ufclas-team-cards__edit a:hover,
.ufclas-team-list__edit a:hover,
.ufclas-profile__edit a:hover,
.archive-team-member-edit a:hover {
    color: #005177;
    text-decoration: none;
}

/*===============================
  GRID LAYOUT
================================*/
.ufclas-team-grid {
    max-width: 1920px;
    margin: 0 auto;
    padding: 62px calc((var(--bs-gutter-x) * .5) + 7%) 100px;
    --bs-gutter-x: 1.5rem;
    width: 100%;
}

.ufclas-team-grid__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.ufclas-team-grid__item {
    display: flex;
    flex-direction: column;
}

.ufclas-team-grid__image {
    position: relative;
    overflow: hidden;
}

.ufclas-team-grid__image a {
    display: block;
}

.ufclas-team-grid__image a::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--ufclas-orange);
    mix-blend-mode: multiply;
    transform: translateX(101%);
    transition: transform 0.2s ease-in-out;
}

.ufclas-team-grid__image a:hover::after {
    transform: translateX(0);
}

.ufclas-team-grid__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--ufclas-border);
    display: block;
    height: auto;
}

.ufclas-team-grid__content {
    padding-top: 1rem;
}

.ufclas-team-grid__admin-notice {
    font-size: 12px;
    color: var(--ufclas-text-light);
    font-style: italic;
    margin: 0.5rem 0 0 0;
}

/*===============================
  BIO CARDS LAYOUT
================================*/
.ufclas-team-bio__card {
    background: var(--ufclas-bg-dark);
    color: #fff !important;
    padding: 3rem 0;
}

.ufclas-team-bio__card h2,
.ufclas-team-bio__card h3,
.ufclas-team-bio__card p,
.ufclas-team-bio__card a,
.ufclas-team-bio__card address {
    color: #fff !important;
}

.ufclas-team-bio__card a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.ufclas-team-bio__card--light {
    background: var(--ufclas-bg-light);
    color: var(--ufclas-text) !important;
}

.ufclas-team-bio__card--light h2,
.ufclas-team-bio__card--light h3,
.ufclas-team-bio__card--light p,
.ufclas-team-bio__card--light address {
    color: var(--ufclas-text) !important;
}

.ufclas-team-bio__card--light a {
    color: var(--ufclas-blue) !important;
}

.ufclas-team-bio__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.ufclas-team-bio__row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.ufclas-team-bio__image-col {
    flex: 0 0 40%;
    max-width: 40%;
}

.ufclas-team-bio__content-col {
    flex: 1;
    min-width: 0;
}

.ufclas-team-bio__image-wrapper {
    position: relative;
}

.ufclas-team-bio__photo {
    width: 100%;
    height: auto;
    display: block;
}

.ufclas-team-bio__contact {
    padding: 1rem;
    font-style: normal;
    margin-top: 1rem;
}

.ufclas-team-bio__contact,
.ufclas-team-bio__contact p,
.ufclas-team-bio__contact a {
    color: #fff !important;
}

.ufclas-team-bio__contact a:hover {
    text-decoration: none;
}

.ufclas-team-bio__card--light .ufclas-team-bio__contact {
    border: none;
}

.ufclas-team-bio__contact p {
    margin: 0 0 0.5rem 0;
}

.ufclas-team-bio__contact-name {
    font-weight: bold;
    font-size: 20px;
}

.ufclas-team-bio__name {
    font-family: "gentonabook", sans-serif;
    font-size: 42px;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
    color: #fff !important;
}

.ufclas-team-bio__name a {
    color: #fff !important;
    text-decoration: none;
}

.ufclas-team-bio__name a:hover {
    text-decoration: underline;
    color: #fff !important;
}

.ufclas-team-bio__name a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ufclas-team-bio__subtitle {
    font-family: "gentonamedium", sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Light card overrides for name/subtitle */
.ufclas-team-bio__card--light .ufclas-team-bio__name,
.ufclas-team-bio__card--light .ufclas-team-bio__name a,
.ufclas-team-bio__card--light .ufclas-team-bio__text h4,
.ufclas-team-bio__card--light .ufclas-team-bio__contact-name,
.ufclas-team-bio__card--light .ufclas-team-bio__contact-position,
.ufclas-team-bio__card--light a,
.ufclas-team-bio__card--light a:hover {
    color: var(--ufclas-text) !important;
}

.ufclas-team-bio__card--light .ufclas-team-bio__subtitle {
    color: var(--ufclas-text-light) !important;
}

.ufclas-team-bio__card--light .ufclas-team-bio__name a:focus {
    outline-color: var(--ufclas-blue);
}

.ufclas-team-bio__divider {
    border: none;
    border-top: 2px solid var(--ufclas-orange);
    margin: 1.5rem 0;
}

.ufclas-team-bio__text,
.ufclas-team-bio__text h4 {
    font-size: 16px;
    line-height: 1.7;
    color: #fff !important;
}

.ufclas-team-bio__text p {
    margin: 0 0 1.5rem 0 !important;
    display: block;
    color: #fff !important;
}

.ufclas-team-bio__text p:last-child {
    margin-bottom: 0 !important;
}

.ufclas-team-bio__text a {
    color: #fff !important;
    text-decoration: underline;
}

/* Light card text overrides */
.ufclas-team-bio__card--light .ufclas-team-bio__text,
.ufclas-team-bio__card--light .ufclas-team-bio__text p {
    color: var(--ufclas-text) !important;
}

.ufclas-team-bio__card--light .ufclas-team-bio__text a {
    color: var(--ufclas-blue) !important;
}

@media (max-width: 768px) {
    .ufclas-team-bio__image-col,
    .ufclas-team-bio__content-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ufclas-team-bio__name {
        font-size: 32px;
    }
}

/*===============================
  CONTACT CARDS LAYOUT
================================*/
.ufclas-team-cards {
    max-width: 1200px;
    margin: 0 auto;
    padding: 62px 1rem 100px;
}

.ufclas-team-cards > :nth-child(2) {
    padding: 0 0 2rem;
}
.ufclas-team-cards__item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--ufclas-border);
    margin: 0 auto;
    max-width: 1074px;
}

.ufclas-team-cards__item:last-child {
    border-bottom: none;
}

.ufclas-team-cards__image {
    flex: 0 0 180px;
}

.ufclas-team-cards__photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 1px solid var(--ufclas-border);
}

.ufclas-team-cards__content {
    flex: 1;
    min-width: 0;
}

.ufclas-team-cards__bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ufclas-text);
}

@media (max-width: 600px) {
    .ufclas-team-cards__item {
        flex-direction: column;
        gap: 1rem;
    }

    .ufclas-team-cards__image {
        flex: 0 0 auto;
    }

    .ufclas-team-cards__photo {
        width: 100%;
        max-width: 200px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/*===============================
  LIST LAYOUT
================================*/
.ufclas-team-list {
    max-width: 1074px;
    margin: 0 auto;
    padding: 62px 1rem 100px;
}

.ufclas-team-list__container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.ufclas-team-list--double .ufclas-team-list__item {
    flex: 0 0 calc(50% - 1rem);
}

.ufclas-team-list--single .ufclas-team-list__item {
    flex: 0 0 100%;
}

.ufclas-team-list__item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ufclas-border);
}

.ufclas-team-list__image {
    flex: 0 0 120px;
}

.ufclas-team-list--single .ufclas-team-list__image {
    flex: 0 0 180px;
}

.ufclas-team-list__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--ufclas-border);
    height: auto;
}

.ufclas-team-list__content {
    flex: 1;
    min-width: 0;
}

.ufclas-team-list__content--full {
    flex: 0 0 100%;
}



@media (max-width: 768px) {
    .ufclas-team-list--double .ufclas-team-list__item {
        flex: 0 0 100%;
    }

    .ufclas-team-list__item {
        flex-direction: column;
    }

    .ufclas-team-list__image {
        flex: 0 0 auto;
        max-width: 150px;
    }
}

/* ==========================================================================
   Single Team Member Profile Page - Clean Flat Design
   ========================================================================== */

.ufclas-profile {
    --profile-sidebar-width: 260px;
    --profile-gap: 3rem;

    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* Main two-column layout */
.ufclas-profile__layout {
    display: grid;
    grid-template-columns: var(--profile-sidebar-width) 1fr;
    gap: var(--profile-gap);
    align-items: start;
}

@media (max-width: 768px) {
    .ufclas-profile {
        padding: 1.5rem 1rem 2rem;
    }

    .ufclas-profile__layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   Sidebar (Left Column)
   ========================================================================== */

.ufclas-profile__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

@media (max-width: 768px) {
    .ufclas-profile__sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.25rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--ufclas-border, #e7e7e7);
        margin-bottom: 1.5rem;
    }
}

/* Photo */
.ufclas-profile__photo-card {
    overflow: hidden;
}

.ufclas-profile__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border: 1px solid var(--ufclas-border, #e7e7e7);
    height: auto;
}

@media (max-width: 768px) {
    .ufclas-profile__photo-card {
        flex: 0 0 120px;
    }

    .ufclas-profile__photo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 400px) {
    .ufclas-profile__photo-card {
        flex: 0 0 100px;
    }

    .ufclas-profile__photo {
        width: 100px;
        height: 100px;
    }
}

/* Contact Info */
.ufclas-profile__contact-card {
    border-left: 3px solid var(--ufclas-orange, #fa4616);
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .ufclas-profile__contact-card {
        flex: 1;
        min-width: 200px;
        border-left: none;
        padding-left: 0;
    }
}

.ufclas-profile__contact-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ufclas-text-light, #595959);
    margin: 0 0 1rem 0;
}

@media (max-width: 768px) {
    .ufclas-profile__contact-heading {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.ufclas-profile__contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    font-style: normal;
}

@media (max-width: 768px) {
    .ufclas-profile__contact-list {
        gap: 0.5rem;
    }
}

.ufclas-profile__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.ufclas-profile__contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--ufclas-blue, #0021a5);
    margin-top: 1px;
}

@media (max-width: 768px) {
    .ufclas-profile__contact-icon {
        width: 16px;
        height: 16px;
    }
}

.ufclas-profile__contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.ufclas-profile__contact-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ufclas-text-light, #595959);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .ufclas-profile__contact-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.ufclas-profile__contact-detail a,
.ufclas-profile__contact-detail span {
    font-size: 0.9375rem;
    color: var(--ufclas-text, #343741);
    word-break: break-word;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .ufclas-profile__contact-detail a,
    .ufclas-profile__contact-detail span {
        font-size: 0.875rem;
    }
}

.ufclas-profile__contact-detail a {
    color: var(--ufclas-blue, #0021a5);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.ufclas-profile__contact-detail a:hover {
    text-decoration-color: currentColor;
}

.ufclas-profile__contact-detail a:focus {
    outline: 2px solid var(--ufclas-blue, #0021a5);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Back Navigation */
.ufclas-profile__nav {
    padding-top: 0.5rem;
}

.ufclas-profile__nav--desktop {
    display: block;
}

.ufclas-profile__nav--mobile {
    display: none;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ufclas-border, #e7e7e7);
}

@media (max-width: 768px) {
    .ufclas-profile__nav--desktop {
        display: none;
    }
    .ufclas-profile__nav--mobile {
        display: block;
    }
}

.ufclas-profile__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--ufclas-blue, #0021a5);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.ufclas-profile__back-link:hover {
    color: var(--ufclas-orange, #fa4616);
    text-decoration: underline;
}

.ufclas-profile__back-link:focus {
    outline: 2px solid var(--ufclas-blue, #0021a5);
    outline-offset: 4px;
    border-radius: 2px;
}

.ufclas-profile__back-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Content (Right Column)
   ========================================================================== */

.ufclas-profile__content {
    min-height: 300px;
}

/* Header */
.ufclas-profile__header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ufclas-border, #e7e7e7);
}

@media (max-width: 768px) {
    .ufclas-profile__header {
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }
}

.ufclas-profile__name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ufclas-text, #343741);
    margin: 0 0 0.375rem 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .ufclas-profile__name {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .ufclas-profile__name {
        font-size: 1.375rem;
    }
}

.ufclas-profile__position {
    font-size: 1.125rem;
    color: var(--ufclas-blue, #0021a5);
    font-weight: 600;
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .ufclas-profile__position {
        font-size: 1rem;
    }
}

.ufclas-profile__department {
    font-size: 0.9375rem;
    color: var(--ufclas-text-light, #595959);
    margin: 0;
}

@media (max-width: 768px) {
    .ufclas-profile__department {
        font-size: 0.875rem;
    }
}

/* Summary */
.ufclas-profile__summary {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ufclas-text, #343741);
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ufclas-border, #e7e7e7);
}

@media (max-width: 768px) {
    .ufclas-profile__summary {
        font-size: 1rem;
        line-height: 1.6;
    }
}

.ufclas-profile__summary p {
    margin: 0 0 1rem 0;
}

.ufclas-profile__summary p:last-child {
    margin-bottom: 0;
}

/* Biography */
.ufclas-profile__bio {
    line-height: 1.7;
}

@media (max-width: 768px) {
    .ufclas-profile__bio {
        line-height: 1.6;
    }
}

.ufclas-profile__section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ufclas-text, #343741);
    margin: 0 0 0.875rem 0;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid var(--ufclas-orange, #fa4616);
    display: inline-block;
}

@media (max-width: 768px) {
    .ufclas-profile__section-title {
        font-size: 1rem;
    }
}

.ufclas-profile__bio-content {
    color: var(--ufclas-text, #343741);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .ufclas-profile__bio-content {
        font-size: 0.9375rem;
    }
}

.ufclas-profile__bio-content p {
    margin: 0 0 1rem 0;
}

.ufclas-profile__bio-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Accessibility - Screen Reader Only
   ========================================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Accessibility - Focus Visible (keyboard users only)
   ========================================================================== */

@supports selector(:focus-visible) {
    .ufclas-profile__contact-detail a:focus:not(:focus-visible),
    .ufclas-profile__back-link:focus:not(:focus-visible) {
        outline: none;
    }
}

/* ==========================================================================
   Accessibility - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .ufclas-profile__contact-detail a,
    .ufclas-profile__back-link {
        transition: none;
    }
}
