/* Sibmus — доп. стили для авторов и статей */

.post-meta {
    margin: 0 0 16px;
    color: #666;
    font-size: 0.95em;
}
.post-meta .post-author {
    margin-right: 14px;
}
.post-meta .post-author a {
    color: #7a2f2f;
    text-decoration: none;
    border-bottom: 1px dotted #7a2f2f;
}

.author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 12px 0 24px;
    flex-wrap: wrap;
}
.author-card .author-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.author-info { flex: 1 1 320px; }
.author-years {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}
.author-bio {
    line-height: 1.55;
    color: #333;
}

/* Карта сайта */
ul.sitemap-tree {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 0;
}
ul.sitemap-tree ul.children {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0;
}
ul.sitemap-tree li {
    padding: 2px 0;
}
ul.sitemap-tree a {
    color: #1a4f8a;
    text-decoration: none;
}
ul.sitemap-tree a:hover { text-decoration: underline; }
ul.sitemap-tree .sitemap-count { color: #999; font-size: 0.9em; }

/* Список статей в рубрике */
ul.posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.posts-list li.posts-list-item {
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.45;
}
ul.posts-list .list-author {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}
ul.posts-list .list-author a {
    color: #7a2f2f;
    text-decoration: none;
}
ul.posts-list .list-author a:hover { text-decoration: underline; }
ul.posts-list a.list-title {
    color: #1a4f8a;
    text-decoration: none;
}
ul.posts-list a.list-title:hover { text-decoration: underline; }

.cat-desc { margin-top: 8px; color: #444; line-height: 1.5; }

ul.author-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.author-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
ul.author-posts li a {
    text-decoration: none;
    color: #1a4f8a;
}
ul.author-posts li a:hover { text-decoration: underline; }
ul.author-posts .post-date {
    color: #888;
    font-size: 0.9em;
    margin-left: 8px;
}

ul.authors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.authors-list li.author-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}
.author-photo-sm {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
}
.author-item-body { flex: 1 1 auto; }
.author-name {
    font-size: 1.08em;
    font-weight: 600;
    color: #1a4f8a;
    text-decoration: none;
}
.author-name:hover { text-decoration: underline; }
.author-item-body .author-years {
    margin-left: 8px;
    font-weight: 400;
    color: #666;
}
.author-item-body .author-bio {
    color: #444;
    font-size: 0.95em;
    margin-top: 4px;
}
.author-count {
    color: #888;
    font-size: 0.85em;
    margin-top: 4px;
}

/* ============================================================
 * Заглушка вместо фото: силуэт человечка (когда фотографии нет)
 * ============================================================ */
.author-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2ede4;
    background-image: linear-gradient(160deg, #f7f3ec 0%, #ece4d8 100%);
    color: rgba(122, 47, 47, 0.4);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(122, 47, 47, 0.12);
    user-select: none;
    flex: 0 0 auto;
    line-height: 0;
    overflow: hidden;
}
.author-photo-icon {
    width: 60%;
    height: 60%;
    display: block;
}
.author-card .author-photo--empty {
    width: 180px;
    height: 180px;
}
.author-item .author-photo-sm.author-photo--empty {
    width: 64px;
    height: 64px;
    border-radius: 6px;
}
.author-profile .author-card .author-count {
    margin-top: 10px;
}

/* Мобильные: карточка автора компактнее */
@media (max-width: 520px) {
    .author-card {
        gap: 14px;
    }
    .author-card .author-photo,
    .author-card .author-photo--empty {
        width: 120px;
        height: 120px;
    }
    .author-info {
        flex: 1 1 100%;
    }
    ul.authors-list li.author-item {
        gap: 10px;
    }
    .author-item .author-photo-sm,
    .author-item .author-photo-sm.author-photo--empty {
        width: 52px;
        height: 52px;
    }
}
