/* Resume: used by the live preview, the PDF view (?view=true) and print. */

.shadowcontainer {
    max-width: 816px;
    margin: 0 auto;
    background: var(--clr-white);
    border-radius: 6px;
}

/* PDF view: fill the page width (a fixed width overflowed the sheet and cut the logo)
   and keep comfortable side margins of its own. */
.view-mode .shadowcontainer {
    max-width: none;
    width: 100%;
    border-radius: 0;
}

.view-mode .preview-cnt {
    padding: 36px 56px;
}

.preview-cnt {
    padding: 28px 32px;
    font-family: var(--font-main);
    font-size: 10.5px;
    line-height: 1.45;
    color: var(--clr-dark);
    overflow-wrap: anywhere;
}

/* ---- header ---- */
.resume-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.resume-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.resume-photo {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--clr-accent);
}

.resume-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.resume-description {
    margin-top: 4px;
}

.resume-logo {
    height: 34px;
    width: auto;
    max-width: 30%;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---- sections ---- */
.preview-blk {
    margin-top: 10px;
}

.preview-blk-title h3 {
    margin-bottom: 5px;
    padding-bottom: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-accent-dark);
    border-bottom: 1.5px solid var(--clr-accent);
    break-after: avoid;
}

.resume-about {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
}

.about-item {
    display: flex;
    gap: 6px;
}

.about-label {
    flex-shrink: 0;
    font-weight: 600;
}

.about-label::after {
    content: ':';
}

.resume-item {
    margin-bottom: 6px;
    break-inside: avoid;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.resume-item-title {
    font-size: 11px;
    font-weight: 600;
}

.resume-item-dates {
    flex-shrink: 0;
    color: var(--clr-muted);
}

.resume-item-sub {
    color: var(--clr-dark);
}

.resume-tasks {
    margin: 2px 0 0 14px;
    padding: 0;
}

.resume-tasks li {
    margin: 0;
}

.resume-line {
    break-inside: avoid;
}

.preview-cnt a {
    color: var(--clr-accent-dark);
    text-decoration: none;
}

@media print {
    .shadowcontainer {
        max-width: none;
        border-radius: 0;
    }

    .preview-cnt {
        padding: 0;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
