/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Left Column */
.left-column {
    flex: 0 0 280px;
    min-width: 280px;
}

/* Right Column */
.right-column {
    flex: 1;
    min-width: 0;
}

/* Profile Photo */
.profile-photo {
    max-width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: rgb(17, 53, 99);
}

h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.right-column h3:first-of-type {
    margin-top: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #000;
}

p + .paper-details {
    margin-top: -0.9rem;
}

.cv-link {
    margin-top: 0rem;
}

strong {
    font-weight: 600;
}

em {
    color: rgb(43, 102, 172);
}

/* Links */
a {
    color: rgb(43, 102, 172);
    text-decoration: underline;
}

a:visited {
    color: rgb(43, 102, 172);
}

a:hover {
    color: rgb(43, 102, 172);
}

/* Email Link */
a.email-link {
    text-decoration: none;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgb(43, 102, 172);
    border-radius: 3px;
    color: rgb(43, 102, 172);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.social-btn:hover {
    background-color: rgb(43, 102, 172);
    color: #fff;
}

.social-btn svg {
    display: block;
}

/* Coauthor Links */
a.coauthor-link {
    color: #000 !important;
    text-decoration: none !important;
}

a.coauthor-link:visited {
    color: #000 !important;
    text-decoration: none !important;
}

a.coauthor-link:hover {
    color: #000 !important;
    text-decoration: none !important;
}

/* Coverage Links */
a.coverage-link {
    color: #000 !important;
    text-decoration: none !important;
}

a.coverage-link:visited {
    color: #000 !important;
    text-decoration: none !important;
}

a.coverage-link:hover {
    color: #000 !important;
    text-decoration: none !important;
}

/* Paper Details */
.paper-details {
    margin-left: 0;
    margin-bottom: 2rem;
}

.paper-details .btn {
    margin-top: 0.3rem;
    display: inline-block;
}

/* Button Links */
a.btn {
    display: inline-block;
    padding: 0px 10px;
    border: 1px solid rgb(43, 102, 172);
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    margin-right: 4px;
}

a.btn:hover {
    background-color: rgb(43, 102, 172);
    color: #fff;
}

/* Add arrow to external link buttons */
a.btn[target="_blank"]:not(.toggle-abstract):not(.toggle-coverage)::after {
    content: " ↗";
    font-size: 0.85em;
}

a.btn-coverage {
    border: 1px solid #888;
    color: #888;
}

a.btn-coverage:hover {
    background-color: #888;
    color: #fff;
}

/* Abstract Boxes */
.abstract {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    margin-left: 0;
    padding: 0 0 0 1rem;
    border-left: 3px solid rgb(43, 102, 172);
}

.abstract p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Coverage Boxes */
.coverage {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    margin-left: 0;
    padding: 0 0 0 1rem;
    border-left: 3px solid #888;
}

.coverage p {
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.coverage p:last-child {
    margin-bottom: 0;
}

.coverage-label {
    margin-top: 0;
    margin-bottom: 0.2rem !important;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
        padding: 30px 15px;
    }
    
    .left-column {
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .profile-photo {
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
}
