/* ======= Headings =======  */
body.nextgen-product .page-content h1{
    font-size: 1.75em;
}
body.nextgen-product .page-content h2{
    font-size: 1.5em;
    margin-top: 30px;
    border-top: 0;
}
body.nextgen-product .page-content h3{
    font-size: 1.25rem;
    margin-top: 30px;
}
body.nextgen-product .page-content h4{
    font-size: 1.125rem;
    margin-top: 30px;
}
body.nextgen-product .page-content h5{
    font-size: 1rem;
    margin-top: 25px;
}



/* ======= Imprint (Content Container Template) =======  */
.imprint-container{
    margin-top: 40px;
}
.imprint-original dl{
    display: grid;
    grid-template-columns: auto 1fr;
}
.print-only{
    display: none;
}


/* ======= Fix Portal style quirks =======  */
@media only screen and (min-width: 1280px) {
    body.nextgen-product .page-header__listing-container.stuck {
        width: 1157px; /* sticky header has wrong width */
    }
}


/* ======= Footnotes =======  */

section.footnotes {
    background-color: hsl(225 18% 97% / 1);
    padding: 20px 30px;
    margin: 80px -30px 60px -30px;
    font-size: 0.8125rem;
    color: #003768;
    border-radius: 5px;
}
section.footnotes::before {
    content: 'References';
    font-size: 1rem;
    font-weight: bold;
}
section.footnotes ol {
    padding-left: 3ch;
}
sup a[data-footnote-ref]::before {
    content: "[" !important;
}
sup a[data-footnote-ref]::after {
    content: "]" !important;
}

/* fix offset scroll due to Squiz nav */
a[data-footnote-ref],
section.footnotes li {
    scroll-margin-top: 100px; 
}

@media print {
    
    /* ======= Utility classes =======  */
    
    .no-print {
        display: none !important;
    }
    .print-only{
        display: block !important;
    }
    
    
    
    /* ======= Override horribly scoped Portal styles =======  */
    
    .old-design * {
         font-family: inherit;
         font-size: inherit;
    }
    
    
    
     
    /* ======= Layout & page numbers =======  */
     
    @page {
        size: A4 portrait;
        margin-top: 2cm;
        margin-bottom: 2cm;
        margin-left: 1.5cm;
        margin-right: 1.5cm;
        @bottom-right {
            content: counter(page);
        }
    }
    @page :first{
        counter-reset: page 0;
        @bottom-right {
            content: '';
        }
    }
    

    
    
    /* ======= Cover page =======  */
    
    body.nextgen-product .page-header__container{
        border-top: none !important;
        break-after: page !important;
    }
    body.nextgen-product .page-header__container::before{
        content: '';
        background: no-repeat top left url("https://www.ncver.edu.au/__data/assets/git_bridge/0042/3299568/static/styles/mysource_files/logo@3x.png");
        background-size: contain;
        display: block;
        width: 243px;
        height: 52px;
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
        /*filter: grayscale(1);*/
    }
    body.nextgen-product .page-header__inner-container{
        margin-top: 210px;
        padding: 0;
    }
    body.nextgen-product .page-header__container h1.page-header__heading{
        font-family: Arial, sans-serif; 
        font-size: 28pt;
    }
    
    
    /* ======= Imprint (copyright) =======  */
    body.nextgen-product .page-content .imprint-container{
        margin-top: 3cm;
    }
    
    
    /* ======= Page container =======  */
    
    body.nextgen-product .page-content {
        padding: 0;
    }

    
    
    /* ======= Forced page breaks =======  */
    
    body.nextgen-product .page-content > div > h2{
        /* force a page break before every h2 */
        break-before: page !important;
        border: 0;
        margin-top: 10px !important;
        padding-top: 0;
    }
    body.nextgen-product .page-content :nth-child(1 of div:has(> h2)) h2:first-of-type{
        /* don't force a page break on the first h2 on the page */
        /* it's very likely to be the first thing in the content! */
        break-before: auto !important;
        margin-top: 40px !important;
    }
    

    
    
    
    /* ======= Typography =======  */
    
    body.nextgen-product .page-content h1,
    body.nextgen-product .page-content h2,
    body.nextgen-product .page-content h3,
    body.nextgen-product .page-content h4,
    body.nextgen-product .page-content h5,
    body.nextgen-product .page-content h6,
    body.nextgen-product .page-content h7 {
        font-family: Arial, sans-serif; 
    }
    
    body.nextgen-product .page-content h1{
        font-size: 24pt;
    }
    body.nextgen-product .page-content h2{
        font-size: 18pt;
    }
    body.nextgen-product .page-content h3{
        font-size: 14pt;
    }
    body.nextgen-product .page-content h4{
        font-size: 12pt;
    }
    body.nextgen-product .page-content h5{
        font-size: 11pt;
    }
    
    html,
    body.nextgen-product,
    body.nextgen-product .page-content{
        font-size: 9.5pt;
    }
    
    body.nextgen-product .page-content p,
    body.nextgen-product .page-content p a,
    body.nextgen-product .page-content li {
       font-family: 'Trebuchet MS', Arial, sans-serif;
       font-size: 9.5pt;
       line-height: 1.25;
    }
    
    /* ======= Force footnote brackets that are hidden by portal styles =======  */
    body.nextgen sup a[data-footnote-ref]::before {
        content: "[" !important;
        display: inline;
        visibility: visible;
    }
    body.nextgen sup a[data-footnote-ref]::after {
        content: "]" !important;
        display: inline;
        visibility: visible;
    }
    
    
    /* ======= Links (print url) =======  */
    
    body.nextgen-product .page-content a[href]{
        border: none !important;
        text-decoration: none !important;
    }
    body.nextgen-product .page-content a[href]:not([href^="#"])::before {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 2pt;
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
    }
    body.nextgen-product main .page-content a[href]:not([href^="#"])::after {
        display: inline !important;
        visibility: visible !important;
        content: " <" attr(href) "> " !important;
        text-decoration: none;
        font-style: italic;
    }
    
      
    /* ======= Hide unnecessary page elements =======  */
    
    body.nextgen-product nav.breadcrumb{
        display: none !important;
    }
    body.nextgen-product div.downloads-container{
        display: none !important;
    }
    body.nextgen-product div.related-data-container{
        display: none !important;
    }
    body.nextgen-product div.related-items-container{
        display: none !important;
    }
    body.nextgen-product .page-header__icon{
        display: none !important; 
    }
    body.nextgen-product .page_header__thumbnail{
        display: none !important;
    }
    a.data-footnote-backref {
        display: none !important;
    }
    

}
