/**
 * All Documents — isolated pro design (homepage-saas lc-* inside base.html)
 * Loads after homepage-saas.css; scoped to body.all-documents
 */

/* ── Page shell ── */
body.all-documents {
    background: var(--lc-bg, #F8FAFC) !important;
}

body.all-documents .main-content-premium {
    background: var(--lc-bg, #F8FAFC) !important;
}

body.all-documents .premium-content-wrapper {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.all-documents .content-wrapper {
    padding: 0;
}

.all-documents-pro {
    font-family: var(--lc-font, 'Inter', sans-serif);
    color: var(--lc-text, #1F2937);
    background: var(--lc-bg, #F8FAFC);
    -webkit-font-smoothing: antialiased;
}

.all-documents-pro .container {
    max-width: 1200px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ── Hero ── */
.all-documents-pro .lc-hero {
    padding: 2.75rem 0 2.25rem;
    background: linear-gradient(180deg, #fff 0%, var(--lc-bg, #F8FAFC) 100%);
}

.all-documents-pro .lc-breadcrumb {
    font-size: 0.8125rem;
    color: var(--lc-text-muted, #6B7280);
    margin-bottom: 1.25rem;
    text-align: left;
}

.all-documents-pro .lc-breadcrumb a {
    color: var(--lc-navy-muted, #2a5f9e) !important;
    text-decoration: none;
    font-weight: 500;
}

.all-documents-pro .lc-breadcrumb span {
    color: var(--lc-text-muted, #6B7280);
}

.all-documents-pro .lc-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lc-green-light, #dcfce7);
    color: var(--lc-green-hover, #15803d);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.all-documents-pro .lc-hero h1 {
    font-family: var(--lc-font-display, 'Manrope', sans-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--lc-navy, #153B6A);
    margin-bottom: 1rem;
}

.all-documents-pro .lc-hero-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--lc-text-muted, #6B7280);
    margin-bottom: 1.5rem;
    max-width: 40rem;
}

.all-documents-pro .lc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Buttons — beat legacy base.html link colors */
.all-documents-pro .lc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lc-green, #16A34A) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--lc-radius, 14px);
    text-decoration: none;
    border: 2px solid var(--lc-green, #16A34A);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.all-documents-pro .lc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lc-surface, #fff) !important;
    color: var(--lc-navy, #153B6A) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--lc-radius, 14px);
    text-decoration: none;
    border: 2px solid var(--lc-border, #E5E7EB);
}

.all-documents-pro .lc-state-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.all-documents-pro .lc-state-chip {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: var(--lc-surface, #fff);
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lc-navy, #153B6A) !important;
    text-decoration: none;
}

/* ── Search & filters toolbar ── */
.all-documents-pro .lc-toolbar {
    background: var(--lc-surface, #fff);
    border-bottom: 1px solid var(--lc-border, #E5E7EB);
    padding: 1.25rem 0 1.5rem;
    position: sticky;
    top: 40px;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(21, 59, 106, 0.04);
}

.all-documents-pro .lc-search-wrap {
    max-width: 36rem;
    margin: 0 auto 1rem;
    position: relative;
}

.all-documents-pro .lc-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lc-text-muted, #6B7280);
    pointer-events: none;
}

.all-documents-pro .lc-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius, 14px);
    font-size: 1rem;
    color: var(--lc-text, #1F2937);
    background: var(--lc-bg, #F8FAFC);
    box-shadow: var(--lc-shadow, 0 4px 6px -1px rgba(21, 59, 106, 0.06));
}

.all-documents-pro .lc-search-input:focus {
    outline: none;
    border-color: var(--lc-navy-muted, #2a5f9e);
    background: var(--lc-surface, #fff);
    box-shadow: 0 0 0 3px rgba(21, 59, 106, 0.12);
}

.all-documents-pro .lc-category-mobile {
    display: none;
    max-width: 36rem;
    margin: 0 auto;
}

.all-documents-pro .lc-category-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lc-text-muted, #6B7280);
    margin-bottom: 0.5rem;
}

.all-documents-pro .lc-category-select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    min-height: 44px;
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius, 14px);
    font-size: 1rem;
    font-weight: 500;
    color: var(--lc-navy, #153B6A);
    background: var(--lc-surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 1rem center;
    appearance: none;
    box-shadow: var(--lc-shadow, 0 4px 6px -1px rgba(21, 59, 106, 0.06));
}

.all-documents-pro .lc-category-select:focus {
    outline: none;
    border-color: var(--lc-navy-muted, #2a5f9e);
    box-shadow: 0 0 0 3px rgba(21, 59, 106, 0.12);
}

.all-documents-pro .lc-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 56rem;
    margin: 0 auto;
}

.all-documents-pro .lc-pill {
    border: 1px solid var(--lc-border, #E5E7EB);
    background: var(--lc-surface, #fff);
    color: var(--lc-text-muted, #6B7280);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    min-height: auto !important;
    min-width: auto !important;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
}

.all-documents-pro .lc-pill:hover,
.all-documents-pro .lc-pill.active {
    background: var(--lc-navy, #153B6A);
    border-color: var(--lc-navy, #153B6A);
    color: #fff;
}

/* ── Sections ── */
.all-documents-pro .lc-section {
    padding: 3.5rem 0;
}

.all-documents-pro .lc-section-alt {
    background: var(--lc-surface, #fff);
}

.all-documents-pro .lc-section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.all-documents-pro .lc-section-header h2 {
    font-family: var(--lc-font-display, 'Manrope', sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--lc-navy, #153B6A);
    letter-spacing: -0.02em;
    margin-bottom: 0.625rem;
}

.all-documents-pro .lc-section-header p {
    font-size: 1rem;
    color: var(--lc-text-muted, #6B7280);
    line-height: 1.6;
    margin: 0;
}

/* ── Popular doc cards (linked) ── */
.all-documents-pro .lc-doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.all-documents-pro .lc-doc-card {
    background: var(--lc-surface, #fff);
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius-lg, 16px);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--lc-shadow, 0 4px 6px -1px rgba(21, 59, 106, 0.06));
}

.all-documents-pro .lc-doc-card .lc-doc-icon {
    width: 44px;
    height: 44px;
    background: var(--lc-green-light, #dcfce7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-green, #16A34A);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.all-documents-pro .lc-doc-card h3 {
    font-family: var(--lc-font-display, 'Manrope', sans-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lc-navy, #153B6A);
    margin-bottom: 0.5rem;
}

.all-documents-pro .lc-doc-card p {
    font-size: 0.875rem;
    color: var(--lc-text-muted, #6B7280);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.all-documents-pro .lc-doc-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lc-green, #16A34A) !important;
}

/* ── Full library tiles ── */
.all-documents-pro .lc-doc-tile {
    background: var(--lc-surface, #fff);
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius-lg, 16px);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--lc-shadow, 0 4px 6px -1px rgba(21, 59, 106, 0.06));
}

.all-documents-pro .lc-doc-tile .lc-doc-icon {
    width: 44px;
    height: 44px;
    background: var(--lc-green-light, #dcfce7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-green, #16A34A);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.all-documents-pro .lc-doc-tile h3,
.all-documents-pro .lc-doc-tile .document-name {
    font-family: var(--lc-font-display, 'Manrope', sans-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lc-navy, #153B6A);
    margin-bottom: 0.5rem;
}

.all-documents-pro .lc-doc-tile h3 a,
.all-documents-pro .lc-doc-tile .document-name a {
    color: var(--lc-navy, #153B6A) !important;
    text-decoration: none;
}

.all-documents-pro .lc-doc-tile p,
.all-documents-pro .lc-doc-tile .document-description {
    font-size: 0.875rem;
    color: var(--lc-text-muted, #6B7280);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.all-documents-pro .lc-doc-tile .lc-tile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.all-documents-pro .lc-doc-tile .lc-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    min-height: 40px;
    border-radius: 10px;
    text-decoration: none;
}

.all-documents-pro .lc-doc-tile .lc-btn-sm-primary {
    background: var(--lc-green, #16A34A) !important;
    color: #fff !important;
    border: none;
    flex: 1;
}

.all-documents-pro .lc-doc-tile .lc-btn-sm-outline {
    background: transparent !important;
    color: var(--lc-navy, #153B6A) !important;
    border: 1px solid var(--lc-border, #E5E7EB);
}

/* ── Category browse grid ── */
.all-documents-pro .lc-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.all-documents-pro .lc-category-tile {
    background: var(--lc-surface, #fff);
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius-lg, 16px);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--lc-shadow, 0 4px 6px -1px rgba(21, 59, 106, 0.06));
}

.all-documents-pro .lc-category-tile:focus {
    outline: 2px solid var(--lc-navy-muted, #2a5f9e);
    outline-offset: 2px;
}

.all-documents-pro .lc-category-tile i {
    font-size: 1.75rem;
    color: var(--lc-navy, #153B6A);
    margin-bottom: 0.75rem;
    display: block;
}

.all-documents-pro .lc-category-tile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lc-navy, #153B6A);
    margin-bottom: 0.35rem;
}

.all-documents-pro .lc-category-tile p {
    font-size: 0.8125rem;
    color: var(--lc-text-muted, #6B7280);
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.all-documents-pro .lc-count-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lc-green-hover, #15803d);
    background: var(--lc-green-light, #dcfce7);
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
}

/* ── Why / steps ── */
.all-documents-pro .lc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.all-documents-pro .lc-step-card {
    background: var(--lc-surface, #fff);
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius-lg, 16px);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--lc-shadow, 0 4px 6px -1px rgba(21, 59, 106, 0.06));
}

.all-documents-pro .lc-step-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: rgba(21, 59, 106, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--lc-navy, #153B6A);
}

.all-documents-pro .lc-step-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lc-green, #16A34A);
    margin-bottom: 0.5rem;
}

.all-documents-pro .lc-step-card h3 {
    font-family: var(--lc-font-display, 'Manrope', sans-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lc-navy, #153B6A);
    margin-bottom: 0.5rem;
}

.all-documents-pro .lc-step-card p {
    font-size: 0.9375rem;
    color: var(--lc-text-muted, #6B7280);
    line-height: 1.55;
    margin: 0;
}

/* ── FAQ ── */
.all-documents-pro .lc-faq .accordion-item {
    border: 1px solid var(--lc-border, #E5E7EB);
    border-radius: var(--lc-radius, 14px) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--lc-surface, #fff);
}

.all-documents-pro .lc-faq .accordion-button {
    font-family: var(--lc-font-display, 'Manrope', sans-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--lc-navy, #153B6A);
    background: var(--lc-surface, #fff);
    box-shadow: none;
    padding: 1.125rem 1.25rem;
    min-height: auto !important;
}

.all-documents-pro .lc-faq .accordion-button:not(.collapsed) {
    background: rgba(21, 59, 106, 0.04);
    color: var(--lc-navy, #153B6A);
}

.all-documents-pro .lc-faq .accordion-body {
    color: var(--lc-text-muted, #6B7280);
    line-height: 1.65;
    padding: 0 1.25rem 1.125rem;
}

/* ── Stats band ── */
.all-documents-pro .lc-stats-band {
    background: linear-gradient(135deg, var(--lc-navy, #153B6A) 0%, var(--lc-navy-light, #1e4d85) 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.all-documents-pro .lc-stats-band .stat-number {
    font-family: var(--lc-font-display, 'Manrope', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    color: #fff;
}

.all-documents-pro .lc-stats-band .stat-label {
    font-size: 0.875rem;
    opacity: 0.88;
    color: #fff;
}

.all-documents-pro .lc-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--lc-text-muted, #6B7280);
    font-size: 1rem;
}

/* ── Tablet ── */
@media (max-width: 991px) {
    .all-documents-pro .lc-doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .all-documents-pro .lc-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .all-documents-pro .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .all-documents-pro .lc-hero {
        padding: 1.25rem 0 1rem;
    }

    .all-documents-pro .lc-breadcrumb {
        margin-bottom: 0.875rem;
    }

    .all-documents-pro .lc-hero h1 {
        font-size: 1.5rem;
    }

    .all-documents-pro .lc-hero-lead {
        font-size: 0.9375rem;
        line-height: 1.55;
        margin-bottom: 1.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .all-documents-pro .lc-hero-eyebrow {
        font-size: 0.6875rem;
        padding: 0.3rem 0.65rem;
    }

    .all-documents-pro .lc-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-bottom: 0.875rem;
    }

    .all-documents-pro .lc-hero-actions .lc-btn-primary,
    .all-documents-pro .lc-hero-actions .lc-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
    }

    .all-documents-pro .lc-state-chips {
        gap: 0.375rem;
    }

    .all-documents-pro .lc-state-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
        min-height: auto !important;
        min-width: auto !important;
    }

    .all-documents-pro .lc-toolbar {
        top: 36px;
        padding: 1rem 0;
    }

    .all-documents-pro .lc-section {
        padding: 2.25rem 0;
    }

    .all-documents-pro .lc-section-header {
        margin-bottom: 1.5rem;
    }

    .all-documents-pro .lc-section-header h2 {
        font-size: 1.25rem;
    }

    .all-documents-pro .lc-section-header p {
        font-size: 0.9375rem;
    }

    .all-documents-pro .lc-category-mobile {
        display: block;
    }

    .all-documents-pro .lc-filter-pills {
        display: none;
    }

    .all-documents-pro #browse-categories {
        display: none;
    }

    .all-documents-pro .lc-doc-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .all-documents-pro .lc-doc-card,
    .all-documents-pro .lc-doc-tile {
        padding: 1.25rem;
    }

    .all-documents-pro .lc-stats-band {
        padding: 2rem 0 2.5rem;
    }

    .all-documents-pro .lc-stats-band .stat-number {
        font-size: 1.625rem;
    }

    /* Room for fixed mobile bottom nav */
    body.all-documents {
        padding-bottom: 72px;
    }
}
