.user-profile-box {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.user-profile-text {
    line-height: 1.6;
}

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

.user-profile-text img {
    max-width: 100%;
    height: auto;
}

.user-profile-text iframe,
.user-profile-text embed,
.user-profile-text video {
    max-width: 100%;
}

/* Stop sitewide heading styling inside profile text */
.user-profile-text h1,
.user-profile-text h2,
.user-profile-text h3,
.user-profile-text h4,
.user-profile-text h5,
.user-profile-text h6 {
    text-transform: none;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: normal;
}

/* Neutralize Lorekeeper card styling inside user profile content */
.user-profile-text .card,
.user-profile-text .card-body {
    background: transparent !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 1rem 0 !important;
}

/* Neutralize buttons if users include them and you want minimal styling */
.user-profile-text .btn {
    background: transparent !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    box-shadow: none !important;
}

/* Optional: remove heavy title/card-title styling inside profile content */
.user-profile-text .card-title {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: .65rem 3rem;
    margin-top: .75rem;
}

.profile-info-item {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 1rem;
}

.profile-info-item h5 {
    margin: 0;
    white-space: nowrap;
}

.profile-info-item > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-item {
        grid-template-columns: 90px minmax(0, 1fr);
    }
}