/* This serves as an appendix to the regular stylesheet (see style.css for that).
   It's not meant to be used as a standalone stylesheet file. */

span.highlighted {
    border: 1px solid var(--primary);
    background: var(--primary-darker);
    box-shadow: none;
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

h1#name, h3#contactinfo {
    display: none;
    text-align: center;
    font-style: italic;
}
h3#contactinfo {
    font-weight: 300;
    a {
        font-size: inherit;
    }
}

span.show-while-printing {
    display: none;
}

span.hide-while-printing {
    display: inline;
}

@media print {
    body {
        font-family: var(--cv-font-family);
        background-color: #ffffff;
        color: var(--primary-darkest);
        font-size: 13px;
    }
    header {
        color: var(--primary-darkest);
    }
    header.with-bg {
        height: 30vh;
        background-image: var(--header);
        background-repeat: no-repeat;
        background-position: center 65%;
        background-size: cover;
        color: var(--primary-brightest);
    }
    header.with-bg > div.content > h1 {
        margin: 0px;
        padding: 0px;
        position: relative;
        bottom: calc(-30vh + 50px);
    }
    a, a:visited, a:not(h1) {
        color: var(--primary-darker);
        font-size: inherit;
    }
    span.highlighted {
        box-shadow: none;
        background-color: var(--primary-brightest);
    }
    footer, span.highlighted {
        display: none;
    }
    footer > div > pre {
        display: block;
    }
    h1 {
        display: none;
    }
    h1#name, h3#contactinfo {
        display: block;
    }
    span.show-while-printing {
        display: inline;
    }
    span.hide-while-printing {
        display: none;
    }
}