/* Step 2: редакторское меню, спокойная мета-строка и тег внизу карточки.
   Не трогает кнопки расшаривания и раздел объявлений. */

.post-card-shell {
    position: relative;
}

.post-card-main-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.post-admin-menu {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.post-admin-menu summary {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    user-select: none;
}

.post-admin-menu summary::-webkit-details-marker {
    display: none;
}

.post-admin-menu[open] summary {
    color: #0f172a;
    border-color: rgba(37, 99, 235, 0.32);
}

.post-admin-menu__panel {
    position: absolute;
    top: 40px;
    right: 0;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.post-admin-menu__panel a,
.post-admin-menu__panel button {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    text-align: left;
    text-decoration: none;
    font: 600 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
}

.post-admin-menu__panel a:hover,
.post-admin-menu__panel button:hover {
    background: #f1f5f9;
}

.post-admin-menu__panel .is-danger {
    color: #b91c1c;
}

.story-meta {
    color: #64748b;
    font-weight: 500;
}

.story-meta .feed-type,
.story-meta .meta-category {
    color: #b91c1c;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.story-meta .meta-date,
.story-meta .meta-sep.meta-date {
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.post-card-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e7f0ff;
    color: #1d4ed8;
    font: 700 12px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

.belta-lead-text .post-card-tags {
    margin-top: 12px;
}

@media (max-width: 720px) {
    .post-admin-menu {
        top: 7px;
        right: 7px;
    }

    .post-admin-menu summary {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }

    .post-admin-menu__panel {
        min-width: 176px;
    }

    .story-meta .meta-date,
    .story-meta .meta-sep.meta-date {
        font-size: 0.95em;
    }
}
