.feed {
    border: 0;
    padding: 0 12px;
}

.post {
    padding: 23px 10px 22px;
    border-bottom: 1px solid var(--line);
}

.post:last-child {
    border-bottom: 0;
}

.post-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 6px;
}

.post-heading time {
    display: block;
    font-size: var(--text-small);
    margin-top: 2px;
}

.post-heading .badge {
    margin-left: auto;
    align-self: flex-start;
    margin-top: 7px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-small);
    line-height: 1.3;
    color: var(--green);
    background: var(--sage);
    font-weight: 400;
    white-space: normal;
}

.post-content {
    margin-left: 84px;
}

.post-content h2 {
    font-size: var(--text-section);
    margin-bottom: 6px;
}

.post-content p {
    line-height: 1.35;
    font-size: var(--text-base);
}

.post-content .book-preview {
    margin-left: -84px;
    margin-top: 4px;
}

.book-preview {
    display: grid;
    grid-template-columns: 172px minmax(0,1fr);
    gap: 24px;
}

.book-preview .book-cover {
    width: 172px;
    height: 224px;
    object-fit: cover;
}

.book-byline {
    font-size: var(--text-small);
}

.post-book-actions { display:flex; flex-wrap:wrap; align-items:center; gap:4px 20px; margin-top:8px; }
.post-book-actions form { margin:0; padding:0; }
.post-book-actions .quiet-link { display:inline-flex; align-items:center; gap:6px; width:auto; min-height:44px; margin:0; padding:6px 0; border:0; border-radius:0; background:transparent; color:inherit; box-shadow:none; font:inherit; text-align:left; white-space:normal; }
.post-book-actions .quiet-link .icon { margin:0; }
.post-book-actions .quiet-link:hover { color:var(--green); }
.post-book-actions .quiet-link:focus-visible { outline:2px solid var(--green); outline-offset:3px; }

.post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 12px;
    font-size: var(--text-small);
}

.post-actions>a {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.post-actions .icon {
    font-size: 1.2rem;
}

.post-actions form {
    margin: 0;
}

.post-actions .is-liked {
    color: var(--green);
}

.post-photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.composer-link {
    display: block;
    padding: 13px 12px;
    font-size: var(--text-base);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.composer-link .icon {
    margin-right: .7rem;
}

.article-preview {
    display: grid;
    grid-template-columns: minmax(150px,1fr) minmax(0,1fr);
    gap: 18px;
    margin: 1rem 0;
}

.article-preview>img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: var(--radius-small);
}

.article-preview h2 {
    font-size: var(--text-card);
    margin: 10px 0;
}

.link-preview {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}

.link-preview .icon {
    margin-right: .75rem;
}

.link-preview small {
    display: block;
    margin-top: .5rem;
}

.comment {
    padding: 20px;
    margin-top: 18px;
}

.comment header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment .avatar {
    width: 42px;
    height: 42px;
}

.comment time {
    margin-left: auto;
}

@media(max-width: 1350px) {
    .post-heading .badge {
        display: none;
    }
    .book-preview {
        grid-template-columns: 135px minmax(0,1fr);
        gap: 16px;
    }
    .book-preview .book-cover {
        width: 135px;
        height: 195px;
    }
    .post-content p {
        font-size: var(--text-base);
    }
}

@media(max-width:760px) {
    .feed {
        padding: 0 8px;
    }
    .post {
        padding: 20px 5px;
    }
    .post-heading {
        gap: 10px;
        margin-bottom: 12px;
    }
    .post-heading .avatar {
        width: 48px;
        height: 48px;
    }
    .post-content {
        margin-left: 0;
    }
    .post-content .book-preview {
        margin-left: 0;
    }
    .post-content h2 {
        font-size: var(--text-section);
        margin-bottom: 12px;
    }
    .post-content p {
        font-size: var(--text-base);
    }
    .book-preview {
        grid-template-columns: 105px minmax(0,1fr);
        gap: 14px;
    }
    .book-preview .book-cover {
        width: 105px;
        height: 154px;
    }
    .post-actions {
        gap: 18px;
        font-size: var(--text-small);
    }
    .post-actions .icon {
        font-size: 1rem;
    }
    .article-preview {
        grid-template-columns: 1fr;
    }
    .article-preview>img {
        height: 180px;
    }
    .comment time {
        display: none;
    }
}

.post .post-heading { gap: 12px; align-items: center; margin-bottom: 12px; }
.post .post-heading .avatar { width: 42px; height: 42px; }
.post .post-heading .author-name { font-size: var(--text-base); }
.post .post-content { margin-left: 54px; }
.post .post-content p { font-size: var(--text-base); line-height: 1.65; margin-top: 0; overflow-wrap: anywhere; }
.post .post-content .book-preview { margin-left: 0; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 12px; padding: 16px; grid-template-columns: 100px minmax(0,1fr); gap: 16px; }
.post .book-preview .book-cover { width: 100px; height: 145px; }
.post .post-content h2 { font-size: var(--text-section); line-height: 1.3; }
.post .post-actions { padding: 0; font-size: var(--text-small); }

.post-body {
    display: flow-root;
}

.post .post-body > :first-child { margin-top: 0; }
.post .post-body > :last-child { margin-bottom: 0; }
.post .post-text > p:last-child { margin-bottom: 0; }
.post .post-content > .discussion-interactions { margin-top: 8px; }
.post .discussion-interactions > .post-actions { margin: 0; }

@media (max-width: 760px) {
    .post .post-content { margin-left: 0; }
    .post .post-content .book-preview { grid-template-columns: 76px minmax(0,1fr); padding: 12px; gap: 12px; }
    .post .book-preview .book-cover { width: 76px; height: 110px; }
}
