/* Base styles */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FFFFFF;
    line-height: 1.55;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #111;
}

/* Container */
.container {
    width: 790px;
    margin: 0 auto;
    padding: 18px 20px 40px 20px;
}

/* Links */
a {
    text-decoration: none;
    color: #8C1515;
}

a:hover {
    text-decoration: underline;
}

a:active,
a:visited {
    color: #8C1515;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0.35em;
    margin-bottom: 0.35em;
    line-height: 1.25;
}

h1 { font-size: 20px; }
h2 {
    font-size: 18px;       
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 12px;
    color: #111;
}


/* ===== Top logo ===== */
.top-logo {
    margin: 4px 0 6px 6px;   
}

.top-logo img {
    width: auto;         
    height: 130px;              
    display: block;
}


/* ===== Profile section ===== */
.profile-section {
    display: flex;
    align-items: flex-start;    
    gap: 24px;
    margin-top: 4px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: none;
}


/* Put image on the LEFT */
.profile-image {
    order: 0;
    width: 185px;        
    height: auto;
    object-fit: cover;
    border-radius: 14px;   
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    margin: 2px;            
}


/* ===== Profile text ===== */
.profile-info {
    order: 1;
    flex: 1;
    padding-right: 0;
    max-width: none;
}

/* Name */
.profile-info h1 {
    font-size: 22px;
    margin-bottom: 6px;
    margin-top: 0;
}

/* Title, affiliation, address lines */
.profile-info p {
    margin: 4px 0;
    line-height: 1.45;
}

/* Email link emphasis */
.profile-info a[href^="mailto"] {
    font-weight: bold;
}

/* Profile links spacing */
.profile-info a {
    margin-right: 12px;
}


.links-section {
    margin: 0.6em 0 0 0;
}

.links-section a {
    display: inline-block;     
    margin: 0.15em 0.8em 0.15em 0;
}

/* ===== Papers list ===== */
.papers-list {
    margin-top: 12px;
}

/* Entries (paper/summary/writing) */
.paper-entry,
.summary-entry,
.writing-entry,
.workingpaper-entry {
    margin: 6px 0;
    padding: 8px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    transition: transform 0.08s ease-in-out;
}

.paper-entry:hover,
.workingpaper-entry:hover,
.summary-entry:hover,
.writing-entry:hover {
    transform: translateY(-1px);
}

/* Titles */
.paper-title,
.summary-title,
.writing-title,
.workingpaper-title {
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    line-height: 1.35;
}

.paper-title a,
.workingpaper-title a {
    color: #8C1515;
}

/* Info line */
.paper-info,
.summary-info,
.writing-info,
.workingpaper-info {
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.5;
    color: #333;
}

.paper-authors {
    font-style: italic;
}

/* Abstract styles */
.abstract {
    margin: 10px 0 0 0;
    padding: 10px 12px;
    background-color: #fafafa;
    border-left: 4px solid #8C1515;
    border-radius: 8px;
    font-size: 0.95em;
    color: #222;
}

/* Abstract toggle button */
.abstract-toggle {
    display: inline-block;
    margin-left: 10px;
    padding: 0.15em 0.75em;
    font-size: 0.9em;
    cursor: pointer;
    color: #8C1515;
    background: #fff;
    border: 1px solid rgba(140, 21, 21, 0.5);
    border-radius: 999px;
}

.abstract-toggle:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

/* Appendix links */
.appendix-link {
    color: #53565A;
    text-decoration: none;
    margin-left: 6px;
}

.appendix-link:hover {
    text-decoration: underline;
}

/* Updates and news section */
.updates {
    margin: 18px 0;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* Citations and references */
.citation {
    font-style: italic;
    margin-bottom: 0.25em;
    line-height: 1.4;
}

.journal { font-style: italic; }
.year { font-weight: bold; color: #666; }

/* Footer */
footer {
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    font-size: 0.95em;
    color: #444;
}

/* Dataset section spacing */
#datasets li {
    margin-bottom: 0.75em;
    line-height: 1.4;
}

/* General list styling */
.container ul {
    margin-top: 0.5em;
    margin-bottom: 0.75em;
}

.container ul li {
    margin-bottom: 0.6em;
}

/* Responsive design */
@media screen and (max-width: 800px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .top-logo img {
        width: 140px;
        max-width: 160px;
        height: auto;
    }

    .profile-section {
        flex-direction: row;    
        align-items: center;
        gap: 14px;
    }

    .profile-image {
        width: 140px;
        height: auto;
    }

    h1 { font-size: 20px; }
    h2 { font-size: 16px; }

    .links-section a {
        display: inline-block;
        margin-right: 0.6em;
    }
}

/* ===== Papers Tabs ===== */
.papers-tabs {
    display: flex;
    gap: 8px;
    margin: 6px 0 12px 0;    
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    appearance: none;
    background: #fff;
    border: 1px solid rgba(140, 21, 21, 0.35);
    color: #8C1515;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

.tab-btn:hover {
    background: #f7f7f7;
    text-decoration: none;
}

.tab-btn.is-active {
    background: #8C1515;
    border-color: #8C1515;
    color: #fff;
}

/* Panels: only show active */
.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

/* ===== Biography section ===== */
.bio-section {
    margin: 28px 0 32px 0;        
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.bio-toggle {
    appearance: none;
    background: none;
    border: none;
    padding: 0;

    cursor: pointer;

    font-size: 18px;
    font-weight: 600;
    color: #111;

    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
}

.bio-toggle:focus {
    outline: none;
}

.bio-toggle:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.bio-toggle::before {
    content: "▸";
    font-size: 16px;
    color: #8C1515;
    transition: transform 0.15s ease;
}

 
.bio-section.open .bio-toggle::before {
    transform: rotate(90deg);
}


.bio-content {
    margin-top: 14px;
    padding: 18px 22px;

    background: #fafafa;
    border-left: 5px solid #8C1515;
    border-radius: 10px;

    line-height: 1.65;            
    font-size: 13px;         
    color: #222;
}

.bio-content p {
    margin: 0 0 12px 0;
}


