.post-header {
    margin-bottom: 1.75rem;
}

.post-header-main {
    padding: 0;
}

.post-header-main--illustrated {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 1.75rem;
}

.post-header-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: .65rem;
    background: var(--site-bg-alt);
}

.post-header-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header-details {
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow-wrap: anywhere;
}

.post-header-main--illustrated .post-header-details {
    padding: 0;
}

.post-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.25rem;
}

.post-header-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.post-header-toolbar {
    justify-content: flex-end;
    gap: .75rem 1.5rem;
    margin-bottom: 1rem;
}

.post-header-status {
    margin-right: auto;
}

.post-header-title {
    margin: 0 0 1.125rem;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--site-text);
}

.post-header-author,
.post-header-author-link {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.post-header-author {
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-size: .875rem;
}

.post-header-author > .badge {
    margin-left: 0 !important;
}

.post-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
    margin-left: auto;
}

.post-header-author-link {
    min-width: 0;
    color: var(--site-text);
    text-decoration: none;
    font-weight: 600;
}

.post-header-author-link .avatar-presence-wrapper {
    flex-shrink: 0;
}

.post-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .625rem 1rem;
    min-width: 0;
}

.post-header-actions .btn-group {
    gap: .35rem;
}

.post-header-actions .btn:not(.modal .btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    padding: 0;
    margin-left: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--site-bg-alt) !important;
    color: var(--site-muted) !important;
    box-shadow: none !important;
}

.post-header-actions .btn:not(.modal .btn):hover {
    background: var(--site-accent-soft) !important;
    color: var(--site-accent) !important;
}

.post-header-actions .btn:not(.modal .btn):focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 2px;
}

.post-header-date,
.post-header-comments {
    font-size: .8125rem;
    color: var(--site-muted);
}

.post-header-date {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

.post-header-comments {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding-block: .25rem;
    white-space: nowrap;
    text-decoration: none;
}

.post-header-comments:hover,
.post-header-author-link:hover {
    color: var(--site-accent);
}

#post-comments {
    scroll-margin-top: 6rem;
}

@media (max-width: 575.98px) {
    .post-header-main--illustrated {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
        gap: .75rem 1rem;
        padding: 0;
    }

    .post-header-main--illustrated .post-header-media {
        grid-column: 1;
        grid-row: 2;
    }

    .post-header-main--illustrated .post-header-details {
        display: contents;
    }

    .post-header-main--illustrated .post-header-details > * {
        grid-column: 2;
    }

    .post-header-main--illustrated .post-header-toolbar {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: .25rem;
    }

    .post-header-main--illustrated .post-header-author {
        grid-column: 1 / -1;
        margin-top: .25rem;
    }

    .post-header-title {
        margin-bottom: 0;
    }

    .post-header-meta {
        width: 100%;
        margin-left: 0;
        gap: 1.25rem;
    }

    .post-header-toolbar {
        margin-bottom: 1rem;
    }

    .post-header-main:not(.post-header-main--illustrated) .post-header-title {
        margin-bottom: 1rem;
    }

}
