.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: #e8f7ec;
    color: #1f5f36;
    border-color: #bfe7c9;
}

.document-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.document-main,
.sidebar-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.doc-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
}

.doc-title {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
}

.doc-subtitle {
    color: #6b7280;
    font-size: 0.98rem;
}

.document-sidebar {
    display: grid;
    gap: 20px;
}

.version-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.prose h1,
.prose h2,
.prose h3 {
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 14px;
    font-weight: 800;
}

.prose h1 {
    font-size: 2rem;
}

.prose h2 {
    font-size: 1.55rem;
    margin-top: 28px;
}

.prose h3 {
    font-size: 1.2rem;
    margin-top: 22px;
}

.prose p {
    margin: 0 0 12px;
    line-height: 1.75;
    color: #374151;
}

.prose ul {
    margin: 0 0 16px 20px;
    padding-left: 18px;
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #374151;
}

.prose strong {
    color: #111827;
}

@media (max-width: 992px) {
    .document-layout {
        grid-template-columns: 1fr;
    }
}