.post {
    width: min(var(--max), 92vw);
    margin: 0 auto;
}

.post__header {
    margin: 12px 0 20px;
}

.post__meta {
    color: var(--muted);
    line-height: 1.6;
}

.post__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .post__layout {
        grid-template-columns: 1fr;
    }
}

.post__content {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 22px;
    backdrop-filter: blur(6px);
}
.post__content h2 {
    margin: 22px 0 10px;
    font-size: 20px;
    font-weight: 500;
}

.post__content p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.75;
}

.post__content pre {
    margin: 12px 0 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.45);
    overflow: auto;
}

.post__toc nav {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.post__toc a {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.35);
}

.post__toc a:hover {
    border-color: rgba(255, 255, 255, 0.75);
}

.scrollTop {
    position: fixed;
    right: min(4vw, 22px);
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: #000;
    color: var(--text);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
    z-index: 30;
}

.scrollTop:hover {
    border-color: rgba(255, 255, 255, 0.85);
}

.scrollTop--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .scrollTop {
        right: 16px;
        bottom: 16px;
    }
}
