/* ===================================================================
   DuplicateFinder — manual.css
   User Manual page: sticky sidebar nav, screenshot styling, print CSS
   =================================================================== */

/* ── Page layout ─────────────────────────────────────────────────── */
.manual-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* ── Sticky sidebar navigation ───────────────────────────────────── */
.manual-sidenav {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 1rem;
}

.manual-nav-heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--df-gray-600);
    padding: 0 .75rem .5rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid rgba(0,0,0,.07);
}

.manual-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.manual-nav-list li a {
    display: block;
    padding: .4rem .75rem;
    font-size: .875rem;
    color: var(--df-gray-600);
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color .15s, border-color .15s, background .15s;
    line-height: 1.4;
}

.manual-nav-list li a:hover {
    color: var(--df-blue);
    background: rgba(37, 99, 235, .05);
}

.manual-nav-list li a.active {
    color: var(--df-blue);
    border-left-color: var(--df-blue);
    background: rgba(37, 99, 235, .07);
    font-weight: 600;
}

/* ── Mobile nav (accordion style) ───────────────────────────────── */
.manual-mobile-nav {
    background: var(--df-gray-100);
    border-radius: var(--df-radius);
    padding: .75rem 1rem;
    margin-bottom: 2rem;
}

/* ── Section content ─────────────────────────────────────────────── */
.manual-section {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    /* Space so sticky header doesn't cover section title on jump */
    scroll-margin-top: 90px;
}

.manual-section:last-of-type {
    border-bottom: none;
}

.manual-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--df-navy);
    margin-bottom: .5rem;
    line-height: 1.2;
}

.manual-section-subtitle {
    font-size: 1rem;
    color: var(--df-gray-600);
    margin-bottom: 1.5rem;
}

.manual-section p,
.manual-section li {
    line-height: 1.75;
    color: #334155;
}

.manual-section ul, .manual-section ol {
    padding-left: 1.4rem;
    margin-bottom: 1.25rem;
}

.manual-section li { margin-bottom: .4rem; }

/* ── Screenshots ─────────────────────────────────────────────────── */
.manual-screenshot-wrap {
    margin: 1.75rem 0;
    text-align: center;
}

.manual-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--df-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    border: 1px solid rgba(0,0,0,.07);
}

.manual-screenshot-caption {
    margin-top: .6rem;
    font-size: .8rem;
    color: var(--df-gray-600);
    font-style: italic;
}

/* ── Tip / Note callout boxes ────────────────────────────────────── */
.manual-note {
    background: #eff6ff;
    border-left: 4px solid var(--df-blue);
    border-radius: 0 var(--df-radius) var(--df-radius) 0;
    padding: .85rem 1.1rem;
    margin: 1.25rem 0;
    font-size: .9rem;
    color: #1e3a8a;
}

.manual-note strong { color: var(--df-blue-dark); }

.manual-warn {
    background: #fff7ed;
    border-left: 4px solid var(--df-orange);
    border-radius: 0 var(--df-radius) var(--df-radius) 0;
    padding: .85rem 1.1rem;
    margin: 1.25rem 0;
    font-size: .9rem;
    color: #7c2d12;
}

/* ── Print CTA button ────────────────────────────────────────────── */
.manual-print-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    border-radius: 50px;
    padding: .55rem 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* ── Print styles ────────────────────────────────────────────────── */
@media print {
    #mainNavbar,
    footer,
    .manual-sidenav,
    .manual-mobile-nav,
    .manual-print-btn,
    .no-print { display: none !important; }

    body { font-size: 11pt; color: #000; }

    .manual-page .col-lg-9 { width: 100% !important; max-width: 100% !important; flex: none !important; }

    .manual-section {
        page-break-inside: avoid;
        border-bottom: 1pt solid #ccc;
        padding: 1.25rem 0;
    }

    .manual-section-title { font-size: 14pt; }

    .manual-screenshot {
        max-width: 85%;
        box-shadow: none;
        border: 1pt solid #ccc;
    }

    .manual-note, .manual-warn {
        border: 1pt solid #999;
        background: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: .75em;
        color: #555;
    }
    a[href^="#"]::after { content: ""; }  /* suppress in-page anchors */
}
