.personpanel {
    padding: 2.5rem;
    background-color: #602965;

    // ── Theme variants ────────────────────────────────────────────────────────
    &--light {
        background-color: #fff;

        .personpanel__name       { color: #243d51; }
        .personpanel__role       { color: #243d51; }
        .personpanel__header     { color: #243d51; }
        .personpanel__bodytext   { color: #243d51; }
    }

    &--dark {
        background-color: transparent;

        .personpanel__name       { color: #fff; }
        .personpanel__role       { color: rgba(255, 255, 255, 0.8); }
        .personpanel__header     { color: #fff; }
        .personpanel__bodytext   { color: rgba(255, 255, 255, 0.9); }
    }

    // ── Persons row ───────────────────────────────────────────────────────────
    &__persons {
        display: flex;
        flex-direction: row;
        gap: 30px;
        margin-bottom: 2rem;
        align-items: flex-start;
        align-self: start;                  // ← add
        &.centered {
            justify-content: center;
        }
    }

    &__person {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        align-self: flex-start;
        gap: 10px;
    }

    &__img {
        border-radius: 50%;
        object-fit: cover;
        object-position: top center;
        display: block;
        margin-bottom: 20px !important;
    }

    &__name {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.3;
    }

    &__role {
        font-size: 20px;
        line-height: 1.4;
    }

    // ── Text content ──────────────────────────────────────────────────────────

    h2,h3,h4 {
        &.personpanel__header {
            font-size: 1.875rem !important;
            font-weight: 700;
            line-height: 1.2;
            margin-top:30px;
            margin-bottom: 20px;
            align-self: start;              // ← add
            &.centered {
                text-align: center;
            }
        }
    }

    &__bodytext {
        font-size: 20px;
        line-height: 1.7;
        align-self: start;                  // ← add
        &.centered {
            text-align: center;
        }
        p {
            margin: 0 0 1rem;
            font-size: 1rem;
            line-height: 1.7;
            font-family: Noto-Serif, serif;

            &:last-child { margin-bottom: 0; }
        }

        a {
            display: inline-block;
            margin-top: 1.25rem;
            padding: 0.5rem 1.5rem;
            border: 2px solid currentColor;
            border-radius: 2rem;
            font-size: 0.875rem;
            font-weight: 600;
            text-decoration: none;
            transition: background-color 0.2s ease, color 0.2s ease;

            .personpanel--dark & {
                color: #fff;
                border-color: #fff;

                &:hover {
                    background-color: #fff;
                    color: 602965;
                }
            }

            .personpanel--light & {
                color: #1a1520;
                border-color: #1a1520;

                &:hover {
                    background-color: #1a1520;
                    color: #fff;
                }
            }
        }
    }
}
.personpanel__person{
    align-items: center;
    gap: 14px;
    min-width: 300px;
    .personpanel__role {
        text-align: center;
    }
}


// ── Responsive ────────────────────────────────────────────────────────────────
@media (max-width: 600px) {
    .personpanel {
        padding: 1.5rem;

        &__persons {
            gap: 1rem;
        }



        .personpanel__persons {
            flex-direction: column;
        }
    }
    .personpanel__person{
        min-width: 100%;
    }
}


