/* print styles for mkdocs material theme 
https://github.com/squidfunk/mkdocs-material */

/* Box shadows don't do well in PDFs.
Only data tables: code blocks with line numbers are tables with a class */
#print-site-page table:not([class]) {
    border: 1px solid hsla(200, 18%, 26%, 1); /* #EFEFEF */
    box-shadow: none !important;
}

@media print {
    /* Fit wide data tables on the page instead of cutting them off at the margin */
    #print-site-page table:not([class]) {
        width: 100%;
    }
    #print-site-page table:not([class]) td,
    #print-site-page table:not([class]) th {
        overflow-wrap: anywhere;
    }

    /* Copy buttons of code blocks */
    #print-site-page .md-code__nav {
        display: none;
    }

    /* Keep diagrams on one page */
    #print-site-page .mermaid {
        break-inside: avoid;
    }
}

@page {

    size: A4 portrait;
    margin: 4em 1.5em 4em 1.5em;
    padding: 0em 0em 0em 0em;
    counter-increment: page;

    /* Page margins inherit the text color of the root element, which is light with the dark 'slate' scheme */
    @bottom-right {
        content: 'Page ' counter(page);
        color: #000;
    }

}
