/* ============================================
   Lee Lab Custom Styles
   ============================================ */

/* --- Common heading style (used across pages) --- */
.post__content h2 {
    padding: 0.2em 0.2em;
    margin: 1.5em 0 1em;
    border-bottom: solid 3px #e22d30;
    font-size: 1.5rem;
}

/* --- Research page styles --- */

/* Research section headings: top + bottom border */
.research-content h2 {
    padding: 0.3em 0.4em;
    margin: 2em 0 0.8em;
    border-top: solid 3px #e22d30;
    border-bottom: solid 3px #e22d30;
    font-size: 1.5rem;
}

/* Tagline under each research heading */
.research-tagline {
    font-style: italic;
    color: #555;
    font-size: 1.05em;
    margin: -0.3em 0 1em;
    padding-left: 0.2em;
}

/* Research section figure alignment */
.research-content .research-figure {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 320px;
}

.research-content .research-figure img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Clear float after each section */
.research-content h2 {
    clear: both;
}

/* Related publications link */
.research-papers {
    margin-top: 1em;
    padding: 0.6em 1em;
    background: #f8f8f8;
    border-left: 3px solid #e22d30;
    border-radius: 0 4px 4px 0;
    font-size: 0.92em;
}

.research-papers summary {
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.research-papers ul {
    margin: 0.5em 0 0;
    padding-left: 1.2em;
}

.research-papers li {
    margin-bottom: 0.3em;
}

/* Last updated note */
.last-updated {
    text-align: right;
    color: #888;
    font-size: 0.85em;
    margin-bottom: 1.5em;
}

/* Responsive: stack figures on mobile */
@media (max-width: 640px) {
    .research-content .research-figure {
        float: none;
        margin: 0.8em auto;
        max-width: 100%;
        text-align: center;
    }
}
