/* ——— Лента публикаций (главная) ——— */
.post-feed-card {
    background: var(--apple-surface);
    border-radius: var(--apple-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--ease), box-shadow var(--ease);
}

.post-feed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.post-feed-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    text-decoration: none;
}

.post-feed-card__media .card-cover,
.post-feed-card__media .card-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-feed-card:hover .card-cover__img {
    transform: scale(1.04);
}

.post-feed-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.post-feed-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 12px;
    color: var(--apple-muted);
    margin-bottom: 10px;
}

.post-feed-card__dot {
    opacity: 0.55;
}

.post-feed-card__cat {
    color: var(--apple-muted);
}

.post-feed-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.post-feed-card__title a {
    color: var(--apple-link);
    text-decoration: none;
    transition: color var(--ease);
}

.post-feed-card__title a:hover {
    color: var(--apple-blue);
    text-decoration: underline;
}

.post-feed-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--apple-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 1 auto;
}

.post-feed-card__byline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.post-feed-card__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--apple-bg-alt);
    color: var(--apple-text);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.post-feed-card__author {
    font-size: 13px;
    font-weight: 500;
    color: var(--apple-text);
    line-height: 1.3;
}

.post-feed-card__author-prefix {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--apple-muted);
}

.post-feed-card__admin {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    font-size: 12px;
}

.post-feed-card__admin a {
    color: var(--apple-link);
}

/* ——— Статья (просмотр) ——— */
.blog-posts-view .page-wrap--narrow {
    padding-top: 0;
}

.blog-posts-view__body {
    padding-top: 8px;
}

.page-hero-cover {
    position: relative;
    width: 100%;
    height: clamp(140px, 22vw, 260px);
    max-height: 260px;
    margin: 0 0 28px;
    border-radius: var(--apple-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-hero-cover .card-cover,
.page-hero-cover .card-cover__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-title {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08349;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-prose {
    font-size: 19px;
    line-height: 1.4211;
    letter-spacing: 0.012em;
    color: var(--apple-text);
    max-width: 692px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 24px;
}

.comments {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--apple-border);
}

.comments__title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.comment {
    background: var(--apple-bg-alt);
    border: none;
    border-radius: var(--apple-radius-sm);
    padding: 20px 24px;
    margin-bottom: 12px;
}

.comment__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 10px;
}

.comment__meta {
    font-size: 13px;
    color: var(--apple-muted);
}

.comment__delete {
    margin: 0;
}

.comment__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--apple-text);
}

.article-cover { display: none; }

@media (max-width: 991px) {
    .posts-feed.list-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .posts-feed.list-view {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }
}
