.profile-page {
    margin: 0 auto 3rem;
    max-width: 1180px;
}

.profile-overview {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    padding: .5rem 0 1.5rem;
}

.profile-overview__image {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    flex: 0 0 auto;
    height: 7rem;
    object-fit: cover;
    width: 7rem;
}

.profile-overview__identity h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: .35rem;
}

.profile-overview__identity-lines {
    color: var(--bs-secondary-color);
    display: grid;
    gap: .2rem;
}

.profile-access-summary {
    border-block: 1px solid var(--bs-border-color);
    padding: 1.5rem 0;
}

.profile-access-summary__header h3,
.profile-editor__section-heading h3,
.profile-editor__section legend {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.profile-access-summary__header p,
.profile-editor__section-heading p,
.profile-editor__intro {
    color: var(--bs-secondary-color);
    margin: .25rem 0 0;
}

.profile-access-summary__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0 0;
}

.profile-access-summary__grid > div {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    min-width: 0;
    padding: 1rem;
}

.profile-access-summary__grid dt {
    color: var(--bs-secondary-color);
    font-size: .875rem;
    font-weight: 600;
}

.profile-access-summary__grid dd {
    font-weight: 700;
    margin: .35rem 0 0;
    overflow-wrap: anywhere;
}

.profile-page__menu {
    margin-top: 1.5rem;
}

.profile-editor__section {
    border: 0;
    margin: 0;
    padding: 0;
}

.profile-editor__section + .profile-editor__section {
    border-top: 1px solid var(--bs-border-color);
    margin-top: 1.75rem;
    padding-top: 1.75rem;
}

.profile-editor__section-heading {
    margin-bottom: 1rem;
}

.profile-editor__image {
    aspect-ratio: 1;
    max-height: 22rem;
}

.profile-editor__intro {
    margin-bottom: 1.5rem;
}

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

.theme-choice__option {
    align-items: center;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    color: var(--bs-body-color);
    display: grid;
    gap: .25rem .75rem;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 5rem;
    padding: 1rem;
    text-align: start;
}

.theme-choice__option:hover {
    border-color: var(--bs-primary);
}

.theme-choice__option:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
    outline: 0;
}

.theme-choice__option.is-selected {
    background: rgba(var(--bs-primary-rgb), .08);
    border-color: var(--bs-primary);
    box-shadow: inset 0 0 0 1px var(--bs-primary);
}

.theme-choice__icon {
    color: var(--bs-primary);
    font-size: 1.35rem;
    grid-row: 1 / span 2;
}

.theme-choice__label {
    font-weight: 700;
}

.theme-choice__description {
    color: var(--bs-secondary-color);
    font-size: .875rem;
}

@media (max-width: 767.98px) {
    .profile-overview {
        align-items: flex-start;
    }

    .profile-overview__image {
        height: 5rem;
        width: 5rem;
    }

    .profile-access-summary__grid,
    .theme-choice {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 479.98px) {
    .profile-overview {
        display: grid;
    }
}
