/* Keep the legacy documents workspace inside the v3 public shell. */
body { min-height: 0; background: #fff; font-family: "Manrope", "Segoe UI", Tahoma, Arial, sans-serif; }

.legacy-documents {
    min-height: 100vh;
    padding: 132px 0 34px;
    color: var(--ink, #152118);
    font-family: "Manrope", "Segoe UI", Tahoma, Arial, sans-serif;
    background: radial-gradient(circle at 10% 8%, rgba(53,74,52,.2), transparent 36%), radial-gradient(circle at 84% 0%, rgba(40,58,41,.21), transparent 34%), radial-gradient(circle at 80% 80%, rgba(70,99,72,.14), transparent 26%), linear-gradient(150deg, #edf3ed, #f8fbf8);
}

.legacy-documents .shell { width: min(1280px, calc(100% - 34px)); margin: auto; padding-bottom: 0; }
.legacy-documents .footer-links { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* The documents workspace now follows the public branded page heading. */
.documents-page .legacy-documents {
    min-height: 0;
    padding: 0 0 74px;
    background: #fff;
}
.documents-page .legacy-documents .shell {
    position: relative;
    z-index: 2;
    margin-top: -50px;
}
.documents-page .legacy-documents .workspace {
    gap: 28px;
    margin-top: 0;
}

/* Bring the legacy document manager into the shared public card system. */
.documents-page .legacy-documents .panel {
    border: 1px solid #e0eadc;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 13px 29px rgba(30, 63, 37, .1);
}
.documents-page .legacy-documents .panel-head {
    padding: 18px 20px;
    border-bottom-color: #e3ece0;
}
.documents-page .legacy-documents .file-card,
.documents-page .legacy-documents .preview-item {
    border-color: #e0eadc;
    border-radius: 10px;
}
.documents-page .legacy-documents .file-card:hover,
.documents-page .legacy-documents .file-card.active {
    border-color: #94ae90;
    background: #f8fbf7;
    box-shadow: 0 8px 18px rgba(30, 63, 37, .09);
}
.documents-page .legacy-documents .preview-item {
    padding: 12px;
    box-shadow: 0 5px 13px rgba(30, 63, 37, .05);
}

/* The public site's footer keeps its own existing layout. */
#footer .footer-links { display: block; }
#footer .footer-links li { display: list-item; }

@media (max-width: 767px) {
    .legacy-documents { padding-top: 106px; }
    .documents-page .legacy-documents { padding-top: 0; padding-bottom: 46px; }
    .documents-page .legacy-documents .shell { margin-top: -35px; }
    .documents-page .legacy-documents .workspace { gap: 24px; }
}
