/* Enhanced TOC for PDF export with clickable main sections */

/* Copyright/License Notice */
@media print {
    /* Add copyright notice to cover page */
    #print-site-cover-page::after {
        content: "";
        display: block;
        margin-top: 4em;
        padding: 2em;
        border: 2px solid #000;
        font-size: 0.9em;
        line-height: 1.6;
    }

    #print-site-cover-page::after {
        content: "© " attr(data-year) " Aletyx Labs. All Rights Reserved.\A\A⚠️  CONFIDENTIAL - NOT FOR DISTRIBUTION\A\AThis document is licensed exclusively to the recipient and their organization.\AUnauthorized copying, distribution, or sharing is strictly prohibited.\A\AFor authorized use only.";
        white-space: pre-wrap;
    }

    /* Add footer to every page with copyright */
    @page {
        margin-bottom: 2cm;

        @bottom-center {
            content: "Confidential - Licensed Material | Page " counter(page);
            font-size: 9pt;
            color: #666;
        }
    }

    /* Add main section links to the TOC */
    #print-page-toc::after {
        content: "";
        display: block;
        page-break-after: always;
    }

    /* Style for main section headings in TOC */
    #print-page-toc .md-nav__item--section > .md-nav__link {
        font-weight: bold;
        font-size: 1.1em;
        color: #000;
        margin-top: 0.5em;
    }

    /* Add section numbers to TOC for main sections */
    #print-page-toc ul {
        counter-reset: section;
    }

    #print-page-toc > ul > li {
        counter-increment: section;
    }

    /* Ensure all links in TOC are visible and clickable */
    #print-page-toc a {
        color: #0066cc;
        text-decoration: none;
    }

    #print-page-toc a:after {
        content: " ..................... " target-counter(attr(href), page);
        color: #666;
    }
}

/* HTML view - show helpful message */
@media screen {
    #print-page-toc {
        display: block !important;  /* Override the default display: none */
        padding: 2em;
        background: #f5f5f5;
        border-radius: 8px;
        margin: 2em 0;
    }

    #print-page-toc::before {
        display: block;
        padding: 1em;
        background: #fff3cd;
        border-left: 4px solid #ffc107;
        margin-bottom: 1em;
        border-radius: 4px;
    }
}
