.academic-container {
    margin: 2rem 0;
}

.pi-section {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 3px solid #222;
}

.pi-media {
    width: 240px;
    max-width: 100%;
}

.pi-photo {
    display: block;
    width: 240px !important;
    max-width: 100%;
    height: 300px !important;
    object-fit: cover;
    object-position: center top;
    background: #ddd;
    border-radius: 6px;
}

.pi-photo-placeholder {
    border: 1px solid #e5e5e5;
}

.pi-label {
    margin: 0 0 8px;
    text-transform: uppercase;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
    color: #555;
}

.pi-name {
    margin: 0;
    font-size: 2.1rem;
    line-height: 1.15;
    font-weight: 700;
    color: #222;
}

.pi-title {
    margin: 10px 0 0;
    font-size: 1.05rem;
    line-height: 1.45;
    color: #333;
}

.pi-dot {
    margin: 0 6px;
    color: #888;
}

.pi-bio {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
}

.pi-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pi-interests span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #f8f8f8;
    font-size: 0.88rem;
    line-height: 1.3;
    color: #333;
}

.pi-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pi-contact a {
    color: #0073aa;
    text-decoration: none;
}

.pi-contact a:hover,
.pi-contact a:focus {
    text-decoration: underline;
}

.member-section {
    margin-bottom: 5rem;
}

.member-section-title {
    margin: 0 0 2rem;
    padding-bottom: 12px;
    border-bottom: 3px solid #222;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

.student-level-section {
    margin-bottom: 4rem;
}

.class-title {
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none !important;
    color: #333;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.student-card {
    position: relative;
    text-align: center;
    background: #fff;
    padding: 20px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.photo-wrapper .student-photo,
.photo-placeholder {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    display: block;
    background: #ddd;
    border: 3px solid #f2f2f2;
}

.student-card .name {
    display: block;
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #222;
}

.student-category,
.student-entry-date {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #666;
}

.student-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.student-card .meta-links {
    position: relative;
    z-index: 2;
}

.student-bio,
.student-extra {
    margin: 0 0 10px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #333;
}

.student-bio:last-child,
.student-extra:last-child {
    margin-bottom: 0;
}

.student-extra strong {
    font-weight: 700;
}

.student-education {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #444;
}

.student-education section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ededed;
}

.student-education section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.student-education h4 {
    margin: 0 0 4px;
    font-size: 0.92rem;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
}

.student-education p {
    margin: 3px 0 0;
}

.student-education-dates {
    color: #666;
}

.meta-links {
    margin-top: 10px;
    font-size: 0.92rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    line-height: 1.4;
}

.meta-links a {
    color: #0073aa;
    text-decoration: none;
}

.meta-links a:hover,
.meta-links a:focus {
    text-decoration: underline;
}

.meta-links .sep {
    display: none;
}

.academic-student-profile {
    width: 100%;
    max-width: 920px;
    margin: 2rem 0;
}

.student-profile-header {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding-bottom: 1.75rem;
    border-bottom: 2px solid #222;
    font-family: inherit;
}

.student-profile-photo,
.student-profile-photo-placeholder {
    display: block;
    width: 170px;
    height: 170px;
    object-fit: cover;
    object-position: center 22%;
    border-radius: 50%;
    background: #ddd;
}

.student-profile-category {
    margin: 0 0 8px;
    text-transform: none !important;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
    color: #555;
}

.student-profile-intro {
    padding-top: 14px;
}

.student-profile-intro h1 {
    margin: 0;
    font-family: inherit;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
}

.student-profile-pronoun {
    margin: 10px 0 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
    color: #666;
}

.student-profile-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 20px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 400;
}

.student-profile-links a {
    display: inline-flex;
    align-items: center;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    font-weight: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.student-profile-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.student-profile-content h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.student-profile-content p {
    max-width: 820px;
    margin: 0;
    line-height: 1.65;
}

.student-profile-education {
    display: grid;
    gap: 14px;
}

.student-profile-education article {
    padding: 14px 0;
    border-top: 1px solid #ededed;
}

.student-profile-education article:first-child {
    border-top: 0;
    padding-top: 0;
}

.student-profile-education h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.student-profile-date {
    color: #666;
}

.pi-profile-header {
    grid-template-columns: 220px minmax(0, 1fr);
}

.pi-profile-photo {
    width: 220px;
    height: 275px;
    border-radius: 6px;
    object-position: center top;
}

.pi-profile-interests {
    margin-top: 0;
}

.pi-profile-rich-text {
    max-width: 820px;
    line-height: 1.65;
}

.pi-profile-rich-text p {
    margin: 0 0 1rem;
}

.pi-profile-rich-text p:last-child {
    margin-bottom: 0;
}

.pi-profile-rich-text h3 {
    margin: 1.6rem 0 0.55rem;
    font-family: inherit;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 700;
}

.pi-profile-rich-text h3:first-child {
    margin-top: 0;
}

.pi-profile-rich-text ul,
.pi-profile-rich-text ol,
.pi-profile-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.65;
}

.pi-profile-rich-text ul,
.pi-profile-rich-text ol {
    margin-bottom: 1rem;
}

.pi-profile-rich-text ul ul,
.pi-profile-rich-text ol ol,
.pi-profile-rich-text ul ol,
.pi-profile-rich-text ol ul {
    margin: 0.35rem 0 0;
}

.pi-profile-rich-text li + li,
.pi-profile-list li + li {
    margin-top: 6px;
}

@media (max-width: 700px) {
    .pi-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pi-media {
        width: 220px;
        max-width: 240px;
    }

    .pi-photo {
        width: 220px !important;
        height: 275px !important;
    }

    .student-profile-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pi-profile-header {
        grid-template-columns: 1fr;
    }

    .student-profile-photo-wrap {
        max-width: 180px;
    }

    .pi-profile-header .student-profile-photo-wrap {
        max-width: 220px;
    }
}

/* Academic visual system */
.academic-container,
.academic-student-profile {
    --utah-red: #BE0000;
    --utah-red-rocks: #890000;
    --utah-black: #000000;
    --utah-white: #FFFFFF;
    --utah-cinder: #707271;
    --utah-granite: #708E99;
    --utah-sunrise: #FFB81D;
    --utah-mountain: #6CC24A;
    --utah-lake: #3ABFC0;
    --utah-salt-flat: #E2E6E6;
    --academic-ink: var(--utah-black);
    --academic-muted: var(--utah-cinder);
    --academic-rule: var(--utah-salt-flat);
    --academic-panel: #f7f9f9;
    --academic-panel-strong: var(--utah-salt-flat);
    --academic-gold: var(--utah-red);
    --academic-gold-soft: #f4d4d4;
    --academic-green: var(--utah-red-rocks);
    --academic-blue: var(--utah-red-rocks);
    --academic-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    color: var(--academic-ink);
}

.academic-container {
    padding-top: 0.35rem;
}

.pi-section {
    position: relative;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--academic-rule);
    border-left: 6px solid var(--academic-gold);
    border-bottom: 1px solid var(--academic-rule);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(190, 0, 0, 0.08), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, #fff 0%, var(--academic-panel) 100%);
    box-shadow: var(--academic-shadow);
}

.pi-section::after,
.student-profile-header::after {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: -18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--academic-gold), transparent);
}

.pi-photo {
    height: 300px !important;
    border: 1px solid rgba(138, 111, 42, 0.28);
    box-shadow: 0 10px 26px rgba(31, 38, 44, 0.13);
}

.pi-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.pi-label,
.student-profile-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid var(--academic-gold-soft);
    border-radius: 999px;
    background: #fff5f5;
    color: var(--academic-green);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    /* text-transform: uppercase !important; */
}

.pi-label::before,
.student-profile-category::before {
    content: "◆";
    color: var(--academic-gold);
    font-size: 0.72rem;
    line-height: 1;
}

.pi-name,
.member-section-title,
.class-title,
.student-profile-intro h1,
.student-profile-content h2,
.pi-profile-rich-text h3 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.pi-name,
.student-profile-intro h1 {
    color: var(--academic-ink);
}

.pi-title,
.student-profile-pronoun {
    color: var(--academic-muted);
}

.pi-dot {
    color: var(--utah-sunrise);
}

.pi-bio {
    color: var(--academic-ink);
}

.pi-interests span {
    gap: 7px;
    border-color: var(--academic-gold-soft);
    background: #fff5f5;
    color: var(--academic-green);
}

.pi-interests span::before {
    content: "◇";
    color: var(--academic-gold);
    font-size: 0.78rem;
}

.pi-interests span:nth-child(4n+2)::before {
    color: var(--utah-granite);
}

.pi-interests span:nth-child(4n+3)::before {
    color: var(--utah-sunrise);
}

.pi-interests span:nth-child(4n+4)::before {
    color: var(--utah-lake);
}

.pi-contact,
.student-profile-links,
.profile-contact-line {
    gap: 10px;
}

.pi-contact a,
.pi-contact-item,
.student-profile-links a,
.meta-links a,
.academic-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #d7e1e4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--academic-blue);
    font-size: 0.88rem;
    line-height: 1.25;
    text-decoration: none;
}

.pi-contact a:hover,
.pi-contact a:focus,
.student-profile-links a:hover,
.student-profile-links a:focus,
.meta-links a:hover,
.meta-links a:focus {
    border-color: var(--academic-gold);
    background: #fff5f5;
    color: var(--academic-green);
    text-decoration: none;
}

.pi-contact a::before,
.student-profile-links a::before,
.meta-links a::before,
.pi-contact-item::before,
.academic-mini-badge::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--academic-panel-strong);
    color: var(--academic-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.pi-profile-link::before,
.meta-profile::before {
    content: "ID";
}

.pi-email-link::before,
.profile-email::before,
.meta-email::before {
    content: "@";
}

.pi-website-link::before,
.profile-website::before,
.meta-web::before {
    content: "↗";
    color: var(--utah-granite);
}

.pi-cv-link::before,
.profile-cv::before {
    content: "CV";
    color: var(--utah-cinder);
}

.pi-scholar-link::before,
.profile-scholar::before {
    content: "S";
    color: var(--utah-lake);
}

.pi-linkedin-link::before,
.profile-linkedin::before {
    content: "in";
    color: var(--utah-granite);
}

.pi-office::before {
    content: "H";
    color: var(--utah-cinder);
}

.pi-phone::before {
    content: "T";
    color: var(--utah-red);
}

.academic-mini-badge::before {
    content: "Y";
}

.member-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--academic-rule);
    color: var(--academic-ink);
}

.member-section-title::before {
    content: "§";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--academic-gold-soft);
    border-radius: 50%;
    background: #fff5f5;
    color: var(--academic-gold);
    font-size: 1.05rem;
    line-height: 1;
}

.member-section-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    margin-left: 8px;
    background: linear-gradient(90deg, var(--utah-red), var(--utah-sunrise), transparent);
}

.class-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--academic-rule);
    color: var(--academic-green);
}

.class-title::before {
    content: "◈";
    color: var(--academic-gold);
    font-size: 1rem;
}

.student-grid {
    gap: 26px;
}

.student-card {
    overflow: hidden;
    border-color: var(--academic-rule);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, var(--academic-panel) 100%);
    box-shadow: 0 10px 26px rgba(31, 38, 44, 0.08);
}

.student-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--utah-red-rocks), var(--utah-red), var(--utah-sunrise), var(--utah-cinder));
}

.student-card:hover {
    box-shadow: 0 18px 34px rgba(31, 38, 44, 0.13);
}

.photo-wrapper .student-photo,
.photo-placeholder {
    border-color: #fff;
    outline: 1px solid var(--academic-gold-soft);
    box-shadow: 0 8px 18px rgba(31, 38, 44, 0.12);
}

.student-card .name {
    color: var(--academic-ink);
}

.student-entry-date {
    width: fit-content;
    margin: 0 auto 10px;
    color: var(--academic-muted);
}

.academic-student-profile {
    max-width: 1040px;
}

.student-profile-header {
    position: relative;
    padding: 28px;
    border: 1px solid var(--academic-rule);
    border-bottom: 1px solid var(--academic-rule);
    border-left: 6px solid var(--academic-green);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(190, 0, 0, 0.07), rgba(112, 142, 153, 0.08) 46%, rgba(255, 255, 255, 0) 68%),
        #fff;
    box-shadow: var(--academic-shadow);
}

.student-profile-photo,
.student-profile-photo-placeholder {
    border: 4px solid #fff;
    outline: 1px solid var(--academic-gold-soft);
    box-shadow: 0 10px 26px rgba(31, 38, 44, 0.13);
}

.pi-profile-photo {
    border-radius: 8px;
}

.student-profile-content {
    gap: 1.35rem;
    margin-top: 2.6rem;
}

.student-profile-content .profile-section {
    padding: 22px 24px;
    border: 1px solid var(--academic-rule);
    border-left: 4px solid var(--academic-gold);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, var(--academic-panel) 100%);
}

.student-profile-content h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--academic-rule);
    color: var(--academic-green);
}

.student-profile-content h2::before {
    content: "◆";
    color: var(--academic-gold);
    font-size: 0.92rem;
}

.student-profile-content p,
.pi-profile-rich-text {
    color: var(--academic-ink);
}

.student-profile-education article {
    position: relative;
    padding: 16px 0 16px 22px;
    border-top-color: var(--academic-rule);
}

.student-profile-education article::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 0;
    width: 8px;
    height: 8px;
    border: 2px solid var(--academic-gold);
    border-radius: 50%;
    background: #fff;
}

.student-profile-education article:nth-child(3n+2)::before {
    border-color: var(--utah-granite);
}

.student-profile-education article:nth-child(3n+3)::before {
    border-color: var(--utah-mountain);
}

.student-profile-education h3 {
    color: var(--academic-ink);
}

.pi-profile-rich-text h3 {
    color: var(--academic-green);
}

.pi-profile-rich-text ul,
.pi-profile-rich-text ol {
    padding-left: 1.45rem;
}

.pi-profile-rich-text li::marker {
    color: var(--academic-gold);
}

.profile-contact-line {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .pi-section,
    .student-profile-header {
        padding: 22px;
    }

    .pi-section::after,
    .student-profile-header::after {
        left: 22px;
        right: 22px;
    }

    .pi-photo {
        height: 275px !important;
    }

    .member-section-title {
        font-size: 1.75rem;
    }

    .member-section-title::after {
        display: none;
    }

    .student-profile-content .profile-section {
        padding: 18px;
    }
}

/* Restrained University of Utah refinement */
.academic-container,
.academic-student-profile {
    --academic-muted: #707271;
    --academic-rule: #E2E6E6;
    --academic-panel: #FFFFFF;
    --academic-panel-strong: #F6F6F6;
    --academic-gold: #BE0000;
    --academic-gold-soft: #E2E6E6;
    --academic-green: #890000;
    --academic-blue: #890000;
}

.pi-section,
.student-profile-header {
    border-radius: 0;
    border-left-color: var(--utah-red);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pi-section::after,
.student-profile-header::after {
    background: var(--utah-red);
    opacity: 0.35;
}

.pi-name,
.member-section-title,
.class-title,
.student-profile-intro h1,
.student-profile-content h2,
.pi-profile-rich-text h3 {
    font-family: inherit;
}

.pi-label,
.student-profile-category {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--utah-red);
    letter-spacing: 0.02em;
}

.pi-label::before,
.student-profile-category::before,
.member-section-title::before,
.class-title::before,
.student-profile-content h2::before,
.pi-interests span::before,
.student-profile-education article::before,
.pi-contact a::before,
.student-profile-links a::before,
.meta-links a::before,
.pi-contact-item::before,
.academic-mini-badge::before {
    display: none;
    content: none;
}

.member-section-title {
    gap: 0;
    border-bottom: 2px solid #000;
}

.member-section-title::after {
    display: none;
}

.class-title {
    gap: 0;
    color: #333;
    border-bottom: 1px solid var(--academic-rule);
}

.student-card {
    border-radius: 0;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.student-card::before {
    height: 3px;
    background: var(--utah-red);
}

.student-card:hover {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

.photo-wrapper .student-photo,
.photo-placeholder,
.student-profile-photo,
.student-profile-photo-placeholder {
    outline: 0;
    border-color: #E2E6E6;
    box-shadow: none;
}

.pi-contact,
.student-profile-links,
.meta-links,
.profile-contact-line {
    gap: 10px 18px;
}

.pi-contact a,
.pi-contact-item,
.student-profile-links a,
.meta-links a,
.academic-mini-badge {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--utah-red-rocks);
    font-size: 0.95rem;
    line-height: 1.35;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.academic-mini-badge,
.pi-contact-item {
    color: var(--academic-muted);
}

.pi-contact a:hover,
.pi-contact a:focus,
.student-profile-links a:hover,
.student-profile-links a:focus,
.meta-links a:hover,
.meta-links a:focus {
    border-color: var(--utah-red);
    background: transparent;
    color: var(--utah-red);
    text-decoration: none;
}

.pi-interests {
    gap: 8px 10px;
}

.pi-interests span {
    min-height: 0;
    padding: 4px 9px;
    border: 1px solid var(--academic-rule);
    border-radius: 0;
    background: #fff;
    color: #333;
}

.pi-interests span:nth-child(n)::before {
    color: inherit;
}

.student-profile-content .profile-section {
    border-radius: 0;
    border-left-color: var(--utah-red);
    background: #fff;
}

.student-profile-content h2 {
    gap: 0;
    color: #000;
}

.student-profile-education article {
    padding-left: 0;
}

.student-profile-education article:nth-child(n)::before {
    border-color: inherit;
}

.pi-profile-rich-text li::marker,
.student-profile-content li::marker {
    color: var(--utah-red);
}
