/* The article discussion is one wide column: composer first, then dated messages. */
.article-comments {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(36px, 5vw, 76px);
    border-top: 1px solid var(--frame-line);
    background: #d0d2ce;
}

.article-comments .comment-heading {
    margin-bottom: 26px;
}

.article-comments .comment-heading h2 {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 500;
}

.article-comments .comment-heading > p:last-child {
    max-width: 64ch;
    margin: 0;
    color: var(--frame-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.article-comments .comment-form {
    display: grid;
    width: 100%;
    gap: 16px;
    margin: 0;
    padding: clamp(20px, 3vw, 36px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-comments .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.article-comments .comment-thread {
    margin-top: clamp(38px, 5vw, 64px);
}

.article-comments .comment-thread h3 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--frame-line);
    color: var(--frame-ink);
    font-size: 1.22rem;
    font-weight: 600;
}

.article-comments .comment-thread h3 span {
    color: var(--frame-muted);
    font-family: var(--font-code);
    font-size: .66rem;
    font-weight: 400;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.article-comments .comment-list {
    display: grid;
    gap: 18px;
    width: 100%;
    margin: 0;
}

.grey-site.glass-depth .article-comments .comment {
    display: grid;
    position: relative;
    width: 100%;
    min-width: 0;
    align-items: start;
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    grid-template-columns: 44px minmax(0, 1fr);
}

.grey-site.glass-depth .article-comments .comment--reply {
    padding-left: clamp(20px, 5vw, 72px);
}

.grey-site.glass-depth .article-comments .comment--own {
    grid-template-columns: minmax(0, 1fr) 44px;
}

.grey-site.glass-depth .article-comments .comment--own.comment--reply {
    padding-right: clamp(20px, 5vw, 72px);
    padding-left: 0;
}

.article-comments .comment--own .comment-avatar {
    grid-column: 2;
    grid-row: 1;
}

.grey-site.glass-depth .article-comments .comment-content {
    position: relative;
    min-width: 0;
    padding: clamp(18px, 2.5vw, 28px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(239, 243, 242, .78));
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .9), 7px 10px 22px rgba(28, 33, 31, .08);
    overflow-wrap: anywhere;
}

.grey-site.glass-depth .article-comments .comment-content::before {
    position: absolute;
    top: 22px;
    left: -12px;
    width: 12px;
    height: 18px;
    background: #f5f7f5;
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
    content: "";
}

.article-comments .comment--own .comment-content {
    grid-column: 1;
    grid-row: 1;
}

.grey-site.glass-depth .article-comments .comment--own .comment-content {
    border-color: rgba(216, 144, 125, .43);
    background: linear-gradient(140deg, rgba(255, 249, 245, .94), rgba(242, 221, 213, .83));
}

.grey-site.glass-depth .article-comments .comment--own .comment-content::before {
    right: -12px;
    left: auto;
    background: #f4dfd8;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.article-comments .comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.article-comments .comment strong {
    color: var(--frame-ink);
    font-size: .88rem;
}

.article-comments .comment time {
    display: inline;
    margin: 0 0 0 auto;
    color: var(--frame-muted);
    font-size: .67rem;
    white-space: nowrap;
}

.article-comments .comment-reply-label {
    color: var(--frame-ember-text);
    font-family: var(--font-code);
    font-size: .62rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.article-comments .comment p {
    margin: 12px 0 0;
    color: #3f4447;
    font-size: .9rem;
    line-height: 1.65;
}

.article-comments .comment-empty {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 560px) {
    .article-comments {
        padding: 42px 20px 54px;
    }

    .article-comments .comment-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .grey-site.glass-depth .article-comments .comment,
    .grey-site.glass-depth .article-comments .comment--own {
        gap: 10px;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .grey-site.glass-depth .article-comments .comment--own {
        grid-template-columns: minmax(0, 1fr) 34px;
    }

    .article-comments .comment-avatar {
        width: 34px;
        height: 34px;
    }

    .grey-site.glass-depth .article-comments .comment--reply {
        padding-left: 14px;
    }

    .grey-site.glass-depth .article-comments .comment--own.comment--reply {
        padding-right: 14px;
        padding-left: 0;
    }

    .article-comments .comment time {
        width: 100%;
        margin-left: 0;
    }
}
