/* Resume page: renders CV.md; the PDF is this page printed (see @media print). */

.cv-toolbar {
    max-width: 8.5in;
    margin: 0 auto 1rem auto;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    font-family: monospace;
}

.cv-toolbar a,
.cv-toolbar button {
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    background: none;
    border: 1px solid var(--secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
}

.cv-toolbar a:hover,
.cv-toolbar button:hover {
    background-color: var(--secondary);
    color: var(--background);
}

.cv-paper {
    max-width: 8.5in;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0.6in 0.7in;
    background: #fff;
    color: #000;
    border: 1px solid var(--secondary);
    font-family: "Times New Roman", Times, "Liberation Serif", serif;
    font-size: 10pt;
    line-height: 1.25;
}

.cv-paper a {
    color: #000;
    text-decoration: none;
}

.cv-head {
    text-align: center;
    margin-bottom: 0.4rem;
}

.cv-head h1 {
    font-family: inherit;
    font-size: 18pt;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #000;
    margin: 0 0 0.2rem 0;
}

.cv-paper .cv-head p {
    margin: 0;
    max-width: none;
    text-align: center;
    font-family: inherit;
    font-size: 10pt;
}

.cv-paper h2 {
    font-family: inherit;
    font-size: 10.5pt;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    border-bottom: 1px solid #000;
    margin: 0.75rem 0 0.4rem 0;
    padding-bottom: 0.1rem;
}

.cv-paper h3 {
    font-family: inherit;
    font-size: 11pt;
    margin: 0.5rem 0 0.1rem 0;
}

.cv-paper p {
    font-family: inherit;
    font-size: 10pt;
    line-height: 1.25;
    margin: 0 0 0.25rem 0;
    max-width: none;
    text-align: left;
}

.cv-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.45rem;
}

.cv-row + .cv-row {
    margin-top: 0;
}

.cv-right {
    white-space: nowrap;
}

.cv-paper code {
    font-family: "Courier New", Courier, monospace;
    font-size: 9pt;
}

.cv-paper ul {
    margin: 0.15rem 0 0.3rem 0;
    padding-left: 1.3rem;
}

.cv-paper li {
    font-family: inherit;
    margin: 0 0 0.08rem 0;
    text-align: left;
}

@media (max-width: 768px) {
    .cv-paper {
        padding: 1rem;
    }

    .cv-row {
        flex-direction: column;
        gap: 0;
    }

    .cv-right {
        white-space: normal;
    }
}

@page {
    size: letter;
    margin: 0.5in;
}

@media print {
    body {
        padding: 0;
        background: #fff;
    }

    .nav,
    .cv-toolbar,
    footer {
        display: none !important;
    }

    .cv-paper {
        max-width: none;
        padding: 0;
        border: none;
    }

    .cv-row {
        flex-direction: row;
    }

    .cv-right {
        white-space: nowrap;
    }

    h2,
    h3,
    .cv-row {
        break-after: avoid;
    }

    li {
        break-inside: avoid;
    }
}
