/* Dais profiles share the organization chart's navy, white and gold palette. */
.chart-bio-link {
    display: inline;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #243e92;
    font: inherit;
    font-weight: inherit;
    text-align: inherit;
    text-decoration: underline;
    text-decoration-color: #bcc8e0;
    text-underline-offset: .2em;
    cursor: pointer;
}

.chart-bio-link:hover {
    background: none;
    color: #173074;
    text-decoration-color: currentColor;
}

.chart-bio-link:focus-visible,
.dais-card:focus-within,
.bio-dialog-close:focus-visible {
    outline: 3px solid #b47513;
    outline-offset: 5px;
}

.dais-section {
    margin-top: 5rem;
    scroll-margin-top: 110px;
}

.dais-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.dais-heading h2 {
    color: #1a2e6e;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 .6rem;
}

.dais-heading p {
    color: #65718c;
    font-size: 1rem;
    line-height: 1.6;
}

.dais-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.dais-card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce3f4;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(26, 46, 110, .06);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.dais-card:hover {
    border-color: #9caed6;
    box-shadow: 0 10px 28px rgba(26, 46, 110, .12);
}

.dais-card-header {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 1.15rem;
    width: 100%;
    margin-bottom: 1.4rem;
}

.dais-card-identity {
    min-width: 0;
}

.dais-photo-frame {
    width: 84px;
    height: 105px;
    overflow: hidden;
    border-radius: 10px;
    background: #dfe7f5;
    box-shadow: 0 2px 10px rgba(26, 46, 110, .08);
}

.dais-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: #dfe7f5;
}

.dais-photo-lauren {
    transform: scale(1.18);
    transform-origin: center top;
}

.dais-photo-terry {
    transform: scale(1.55);
    transform-origin: center 12%;
}

.dais-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
}

.dais-role,
.bio-role {
    color: #94600c;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
    text-transform: uppercase;
}

.dais-card h3 {
    margin: 0 0 .55rem;
    color: #1a2e6e;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.dais-affiliation {
    min-height: 3.3em;
    color: #65718c;
    font-size: .85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.dais-summary {
    flex: 1;
    color: #414e68;
    font-size: .95rem;
    line-height: 1.75;
    margin: 0 0 1.4rem;
}

.dais-bio-button {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #243e92;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

/* One focusable button makes the entire card a generous click target. */
.dais-bio-button::after {
    content: '';
    position: absolute;
    inset: 0;
}

.dais-bio-button:hover {
    background: none;
    color: #173074;
}

.dais-bio-button:focus-visible {
    outline: none;
}

body.bio-open {
    overflow: hidden;
}

.bio-dialog {
    width: min(720px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100dvh - 3rem);
    margin: auto;
    padding: 0;
    border: 1px solid #dce3f4;
    border-radius: 18px;
    background: #fff;
    color: #414e68;
    box-shadow: 0 24px 80px rgba(9, 25, 69, .25);
    overflow: hidden;
    overscroll-behavior: contain;
}

.bio-dialog[open] {
    animation: bio-dialog-enter .28s cubic-bezier(.22, 1, .36, 1);
}

.bio-dialog::backdrop {
    background: rgba(12, 27, 65, .65);
    backdrop-filter: blur(3px);
}

.bio-dialog[open]::backdrop {
    animation: bio-backdrop-enter .24s ease-out;
}

@keyframes bio-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bio-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bio-dialog-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 3rem - 2px);
}

.bio-dialog-toolbar {
    display: contents;
}

.bio-dialog-label {
    display: none;
}

.bio-dialog-close {
    position: absolute;
    z-index: 1;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dce3f4;
    border-radius: 50%;
    background: #f0f4ff;
    color: #243e92;
    cursor: pointer;
}

.bio-dialog-close:hover {
    background: #e3eafb;
}

.bio-dialog-content {
    min-height: 0;
    padding: 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bio-dialog-content:focus {
    outline: none;
}

.bio-header {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    margin: 0 2rem 2rem 0;
}

.bio-portrait {
    display: block;
    width: 112px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center 20%;
    background: #dfe7f5;
}

.bio-header h2 {
    color: #1a2e6e;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: .4rem 0 .65rem;
}

.bio-affiliation {
    color: #65718c;
    font-size: .9rem;
    line-height: 1.65;
}

.bio-copy p {
    margin: 0 0 1.2rem;
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: break-word;
}

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

@media (max-width: 1100px) and (min-width: 769px) {
    .nav-container {
        height: auto;
        padding-top: .5rem;
        padding-bottom: .5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 1000px) and (min-width: 769px) {
    .dais-card-body {
        padding: 1.25rem;
    }

    .dais-card-header {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: .75rem;
    }

    .dais-photo-frame {
        width: 72px;
        height: 90px;
    }

    .dais-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .dais-section {
        margin-top: 3.5rem;
    }

    .dais-heading h2 {
        font-size: 1.8rem;
    }

    .dais-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .dais-affiliation {
        min-height: 0;
    }

    .bio-header {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 1rem;
        margin: 0 0 1.5rem;
    }

    .bio-portrait {
        width: 80px;
        height: 104px;
    }

    .bio-header h2 {
        font-size: 1.4rem;
    }

    .bio-copy p {
        font-size: .95rem;
        line-height: 1.8;
    }
}

/* Keep the mobile biography a full-screen drawer, including phone rotation. */
@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
    .page-wrap {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .nav-container {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .bio-dialog {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .bio-dialog[open] {
        animation: bio-drawer-enter .24s ease-out;
    }

    .bio-dialog-shell {
        height: 100%;
        min-height: 0;
        max-height: none;
    }

    .bio-dialog-toolbar {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: calc(.75rem + env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) .75rem max(1.5rem, env(safe-area-inset-left));
        background: #fff;
        border-bottom: 1px solid #e4e9f4;
    }

    .bio-dialog-label {
        display: block;
        color: #1a2e6e;
        font-size: 1rem;
        font-weight: 700;
    }

    .bio-dialog-close {
        position: static;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .bio-dialog-content {
        flex: 1;
        padding: 1.5rem max(1.5rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    }

    @keyframes bio-drawer-enter {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .dais-card {
        transition: none;
    }

    .bio-dialog[open],
    .bio-dialog[open]::backdrop {
        animation: none;
    }
}
