/* ===== DESKTOP LAYOUT ===== */

main {
    width: min(97%, var(--content-max-width));
}

.container {
    width: min(97%, var(--content-max-width));
}

.chat-layout {
    grid-template-columns: 1fr 1.2fr;
}

.account-shell {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.account-sidebar {
    position: sticky;
    top: 1rem;
}

.member-results-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.hero-community__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.community-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.community-column-blogs {
    order: 1;
}

.community-column-chats {
    order: 3;
}

.community-layout>.community-column-chats,
.community-layout>.community-column-blogs,
.community-layout>#community-blogs {
    min-height: 34rem;
    display: flex;
    flex-direction: column;
}

.community-layout>.community-column-chats .community-feed-list,
.community-layout>.community-column-blogs .community-feed-list,
.community-layout>#community-blogs .community-blog-list-preview,
.community-feed-list,
.community-blog-list-preview {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.community-layout>.community-column-chats .community-feed-list,
.community-layout>.community-column-blogs .community-feed-list,
.community-layout>#community-blogs .community-blog-list-preview {
    flex: 1 1 auto;
}

.community-blog-list-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(8rem, auto);
    align-items: center;
    gap: 1rem;
    min-height: 4.35rem;
    box-sizing: border-box;
}

.community-blog-list-author {
    display: flex;
    align-items: center;
}

.community-blog-list-item>div:nth-child(2) {
    min-width: 0;
}

.community-blog-list-item h4,
.community-blog-list-item p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-blog-list-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    text-align: right;
}

.community-list-preview-text {
    display: block;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-post-card--preview {
    gap: 0.55rem;
}

.blog-post-card--preview .community-feed-head {
    align-items: center;
}

.message-modal {
    align-items: center;
    padding: 1.5rem;
}

.message-modal__dialog {
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.message-modal__dialog--compose {
    width: min(100%, 620px);
}

.message-compose-form__actions {
    position: sticky;
    bottom: -1rem;
    padding-top: 0.65rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 35%);
}

.auth-modal,
.legal-modal {
    align-items: center;
    padding: 1.5rem;
}

.auth-modal__dialog,
.legal-modal__dialog {
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

.blog-post-card--preview .community-feed-head h3 {
    font-size: 1rem;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.chat-room-member-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) minmax(8rem, auto);
    gap: 0.35rem 0.8rem;
    align-items: center;
}

.chat-room-member-item p {
    margin: 0;
}

.chat-room-member-item form {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.forum-reply-list,
.community-blog-comments {
    max-height: 34rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.45rem;
}

.profile-blog-entry {
    display: grid;
    gap: 0.7rem;
}

.profile-blog-entry__content-row,
.forum-topic-detail-row {
    display: grid;
    grid-template-columns: minmax(110px, 24%) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: stretch;
    padding: 0.65rem;
}

.profile-blog-entry__content-row:not(:has(.profile-blog-entry__image)),
.forum-topic-detail-row:not(:has(.forum-topic-detail-image)) {
    grid-template-columns: minmax(0, 1fr);
}

.profile-blog-entry__image,
.forum-topic-detail-image {
    width: 100%;
    height: 100%;
    max-height: 150px;
}

.content-media-frame {
    width: 100%;
    max-width: 180px;
    height: 150px;
    justify-self: start;
}

.profile-blog-entry__copy,
.forum-topic-detail-content {
    margin: 0;
    min-height: 0;
}

.guestbook-entry-content-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.7rem;
}

.forum-topic-list-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
}

.forum-topic-list-item .forum-topic-head {
    grid-column: 1 / -1;
}

.forum-topic-list-item .forum-topic-head h4 {
    font-size: 1rem;
    line-height: 1.25;
}

.forum-topic-list-summary {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.forum-topic-list-image {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.forum-topic-list-item .hero-actions {
    grid-column: 1 / -1;
    margin-top: 0;
}

.forum-topic-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.forum-topic-list-actions .button-link,
.forum-topic-list-actions button {
    min-height: 2rem;
    padding: 0.38rem 0.65rem;
    font-size: 0.78rem;
}

.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

@media (min-width: 1800px) {

    main,
    .container {
        width: min(98%, 1920px);
    }
}

@media (min-width: 1101px) {
    .conversation-shell {
        min-height: 680px;
    }

    .conversation-list-panel {
        flex-basis: 340px;
    }

    .conversation-shell--list .conversation-list-panel {
        flex: 1 1 auto;
        max-width: none;
        border-right: 0;
    }

    .conversation-shell--list .conversation-detail-panel {
        display: none;
    }

    .conversation-detail-panel {
        min-width: 0;
    }

    .profile-spotlight {
        padding: 1.4rem 1.5rem 1.2rem;
    }

    .profile-spotlight__content {
        gap: 1.2rem;
    }

    .profile-spotlight__media {
        padding-bottom: 0.7rem;
    }

    .profile-fact--wide {
        grid-column: span 2;
    }

    .dashboard-mobile-inbox-button,
    .mobile-conversation-back-link,
    .conversation-back-button {
        display: none !important;
    }
}

.chat-room-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.chat-message-item .message-meta {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    gap: 0.45rem;
    align-items: center;
}

.chat-message-item .chat-user-link {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.members-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.8rem;
}