h1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 22pt;
    margin: 0;
    font-weight: normal;
}
span {
    font-size: 10pt;
    font-weight: normal;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 6px;
}
.contact-block {
    margin: 0;
}
.contact-link {
    transition: all 0.2s ease;
    text-decoration: none;
    color: #0077b5;
    padding: 2px 2px;
    border-radius: 2px;
    font-size: 9pt;
    cursor: pointer;
}
.contact-link:hover::before {
    content: "> ";
    color: #4af626;
    font-weight: bold;
    font-size: 1em;
}
.contact-link:hover,
.contact-link:focus {
    background-color: #f0f7ff;
    color: #005582;
}
.print-btn {
    font-family: inherit;
    font-weight: inherit;
    color: #0077b5;
    background: none;
    border: none;
    padding: 2px 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.print-btn:hover,
.print-btn:focus {
    background-color: #f0f7ff;
    color: #005582;
}
.separator {
    font-size: inherit;
    font-weight: inherit;
}
.print-only {
    display: none;
}
h2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0.6cm;
    margin-bottom: 1px;
    font-size: 12pt;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.side-link {
    font-size: 9pt;
    text-decoration: none;
    margin-bottom: 3px;
    text-transform: none;
    text-decoration: none;
    color: #0077b5;
    letter-spacing: 0px;
    font-weight: normal;
    padding: 2px 2px;
}
.side-link:hover,
.side-link:focus {
    background-color: #f0f7ff;
    color: #005582;
}
hr {
    border: 0;
    height: 1px;
    background: #333;
    margin-top: 1px;
    margin-bottom: 8px;
    opacity: 0.2;
}
.profile {
    margin-bottom: 0;
    margin-top: 10px;
    font-size: 9.5pt;
}
.tech-row {
    margin-bottom: 6px;
    margin-top: 6px;
    font-size: 9.5pt;
}
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 5px;
}
h3 {
    font-size: 12pt;
    margin: 0;
}
h4 {
    font-size: 11pt;
    color: #666;
    margin: 0;
}
h5 {
    font-size: 11pt;
    color: #666;
    margin: 0;
    margin-left: auto;
}
ul {
    margin: 0;
    padding-left: 18px;
    margin-bottom: 20px;
}
li {
    font-size: 9.5pt;
    padding-bottom: 2px;
}
.thesis-link {
    font-weight: bold;
    letter-spacing: 1px;
}

.clip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #e1f0ff;
    clip-path: polygon(
        0% 0%,
        calc(100% - 10px) 0%,
        100% 50%,
        calc(100% - 10px) 100%,
        0% 100%
    );
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    width: 10cm;
    height: 0.75cm;
    margin-left: -40px;
    margin-top: 0;
    margin-bottom: 10px;
    border-left: 5px solid #0077b5;
}
.clip p {
    padding-left: 10px;
    font-size: 8pt;
}

@media print {
    @page {
        size: auto;
        margin: 0;
    }
    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        height: 100%;
        overflow: hidden;
        background-color: #fff;
    }
    body > * {
        font-family: "JetBrains Mono", "Courier New", monospace;
        display: none !important;
    }
    .main-container {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    hr {
        border: 0 !important;
        border-top: 1px solid #333 !important;
        height: 0 !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .print-only {
        display: inline !important;
        text-decoration: none;
        color: #0077b5;
        padding: 2px 2px;
        border-radius: 2px;
        font-size: 8pt;
    }
    p a {
        color: #000 !important;
        text-decoration: none !important;
        padding: 0 !important;
    }
    p a::before {
        content: "" !important;
    }
    h2,
    h3 {
        break-after: avoid;
    }
    li {
        break-inside: avoid;
    }
    ul {
        break-inside: avoid;
    }
    .print-btn,
    .print-hide {
        display: none !important;
    }
    .clip {
        display: none !important;
    }
    .side-link {
        display: none !important;
    }
}
@media screen and (min-width: 2500px) {
    @supports (zoom: 1.5) {
        body {
            zoom: 1.5;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    }
    @supports not (zoom: 1.5) {
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            transform: scale(1.5);
            transform-origin: top center;
        }
    }
}
@media screen and (max-width: 768px) {
    .main-container {
        width: 95%;
        max-width: 95vw;
        height: auto;
        min-height: auto;
        margin: 10px auto;
        padding: 20px 15px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    h1 {
        flex-direction: column;
        align-items: flex-start;
        font-size: 22pt;
    }

    h1 span {
        font-size: 10pt;
        margin-top: 5px;
        padding-bottom: 0;
    }

    .contact-block {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

    .contact-block .separator {
        display: none;
    }

    .contact-link {
        background-color: #f4faff;
        border: 1px solid #e1f0ff;
        padding: 4px 8px;
        font-size: 10pt;
        border-radius: 4px;
        white-space: nowrap;
    }

    .print-btn {
        display: none !important;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 8px;
        padding-left: 8px;
        border-left: 2px solid #0077b5;
    }

    h3 {
        font-size: 11pt;
        font-weight: bold;
        text-transform: uppercase;
    }

    h4 {
        font-size: 10pt;
        color: #0077b5;
    }

    h5 {
        margin-left: 0;
        font-size: 8.5pt;
        font-style: italic;
        color: #888;
    }

    li {
        font-size: 8.5pt;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .clip {
        width: 100%;
        margin-left: 0;
        clip-path: none;
        height: auto;
        padding: 8px 0;
        border-radius: 0 4px 4px 0;
    }
    .tech-row {
        margin-bottom: 12px;
        line-height: 1.5;
        font-size: 9.5pt;
    }
    .tech-row strong {
        display: block;
        color: #333;
        margin-bottom: 2px;
        text-transform: uppercase;
        font-size: 8.5pt;
        letter-spacing: 0.5px;
    }
    .tech-row {
        padding: 8px;
        background-color: #fafafa;
        border-radius: 4px;
        border: 1px solid #f0f0f0;
    }
    .thesis-link {
        display: inline-block;
        margin-top: 5px;
        padding: 4px 10px;
        background: #eee;
        border-radius: 4px;
        text-decoration: none;
        font-size: 8pt;
    }
}
