/* Public profiles: styles scoped to showUser.php. */
.public-profile .profile-header {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.public-profile #profile-name {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.public-profile .profile-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.public-profile .profile-admin-actions .btn {
    float: none !important;
    margin: 0 !important;
}

.public-profile .profile-social ul {
    justify-content: flex-start !important;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.public-profile .profile-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #D8D0C2;
    border-radius: 50%;
    background: #FFFDF4;
    font-size: 1.25rem;
    text-decoration: none;
}

.public-profile .profile-portrait img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-left: auto;
    border: 1px solid #D8D0C2;
    border-radius: 1rem;
}

.public-profile .profile-content {
    padding: clamp(1.25rem, 4vw, 3rem);
    background: #FFFDF4;
    border: 1px solid #D8D0C2;
    border-top: 4px solid #F5A23A;
    border-radius: 1rem;
    overflow-wrap: anywhere;
}

.public-profile .profile-section + .profile-section,
.public-profile .profile-records:not(:first-child) {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #D8D0C2;
}

.public-profile .profile-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 1.25rem;
}

.public-profile .profile-prose {
    max-width: 75ch;
    line-height: 1.8;
}

.public-profile .profile-prose img,
.public-profile .profile-prose iframe {
    max-width: 100%;
}

.public-profile .profile-prose img {
    height: auto;
}

.public-profile .profile-records {
    overflow-x: auto;
}

.public-profile .profile-records h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.public-profile .profile-records .table {
    --bs-table-bg: transparent;
}

.public-profile .profile-records .table-underlined td:first-child {
    white-space: nowrap;
    overflow-wrap: normal;
    width: 1%;
}

@media (max-width: 767.98px) {
    .public-profile .profile-header {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .public-profile .profile-portrait img {
        max-width: 100%;
        margin-right: auto;
        margin-left: 0;
    }

    .public-profile .profile-records .table-underlined,
    .public-profile .profile-records .table-underlined tbody {
        display: block;
        width: 100%;
    }

    .public-profile .profile-records .table-underlined tr {
        display: grid;
        grid-template-columns: 3ch minmax(0, 1fr);
        column-gap: .75rem;
        padding: .75rem 0;
        border-bottom: 1px solid #D8D0C2;
    }

    .public-profile .profile-records .table-underlined td {
        padding: 0;
        border: 0;
    }

    .public-profile .profile-records .table-underlined td:first-child {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: auto;
    }

    .public-profile .profile-records .table-underlined td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .public-profile .profile-records .table-underlined td:last-child {
        grid-column: 2;
        grid-row: 2;
        padding-top: .25rem;
        text-align: left !important;
        font-size: .875rem;
        color: #6F6558;
        white-space: nowrap;
    }
}
