/* ── Nav bar ── */
.site-nav {
    display: flex !important;
    align-items: center;
    padding: 0.4rem 0 0.6rem;
}

.nav-right {
    margin-left: auto;
}

.nav-left {
    display: flex;
    gap: 0.5rem;
}

a.nav-btn {
    display: inline-block;
    text-decoration: none !important;
    background: #eee !important;
    padding: 2px 5px !important;
    border-radius: 5px !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    box-sizing: border-box;
}

/* ── Remove all hr dividers ── */
hr {
    display: none;
}

/* ── Sticky footer: copyright at bottom when content is short, scrolls with page when long ── */
html {
    min-height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    line-height: 1.6;
}
footer {
    margin-top: auto;
}
footer .copyright {
    font-size: 12px !important;
    color: #777 !important;
    text-align: center !important;
    margin: 5rem 0 0 !important;
}

/* ── Blog post title block ── */
.article-meta {
    text-align: left;
    background: none;
    padding: 0;
}

.article-meta .title {
    font-size: 3.0rem;
}

.article-meta .author,
.article-meta .date {
    font-size: 1.3rem;
    font-weight: normal;
    margin: 0.0rem 0;
}

/* Justify text in blog post body only */
main p {
    text-align: justify;
}

code, pre, kbd {
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 0.82em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
}

/* ─────────────────────────────────────────
   Intro: text LEFT, photo RIGHT
───────────────────────────────────────── */
.intro-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0rem;
}

.intro-text {
    flex: 1;
    min-width: 0;
}

.intro-text a {
    text-decoration: none;
}

.intro-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    border-radius: 28%;
}

@media (max-width: 560px) {
    .intro-section {
        flex-direction: column-reverse; /* photo on top when stacked */
    }
    .intro-photo {
        width: 140px;
        height: 140px;
    }
}

/* ─────────────────────────────────────────
   Research cards: image LEFT, content RIGHT
───────────────────────────────────────── */
.research-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.research-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
}

.research-card > img {
    flex: 0 0 200px;
    width: 200px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.research-card > .card-body {
    flex: 1;
    min-width: 0;
}

.card-year {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0.1rem;
}

.card-title,
a.card-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.authors {
    font-size: 1.2rem;
    opacity: 0.72;
    margin: 0;
    line-height: 1.4;
}

.journal {
    font-size: 1.2rem;
    opacity: 0.72;
    margin: 0;
    line-height: 1.4;
}

.card-desc {
    font-size: 1.2rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ── About me section: match body size ── */
.intro-text p,
.intro-text li {
    font-size: 1.2rem;
}

.card-links {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 560px) {
    .research-card {
        flex-direction: column;
    }
    .research-card > img {
        flex: unset;
        width: 100%;
    }
}
