/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
body {
    font-family: 'Lato', Verdana, Helvetica, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
    font-size: 14px;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #1772d0;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #f09228;
    text-decoration: none;
}

/* Home page wrapper. Project pages keep using Bootstrap's .container. */
.page {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px 60px;
    box-sizing: border-box;
}

/* ---------------------------------------------------------------
   Headings
   --------------------------------------------------------------- */
.site-name {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 46px 0 4px;
}

.section-heading {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 12px;
}

section {
    margin-top: 34px;
}

p {
    line-height: 1.6;
}

/* ---------------------------------------------------------------
   Profile header
   --------------------------------------------------------------- */
.profile {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.profile-bio {
    flex: 1 1 auto;
    min-width: 0;
}

/* Sized for a portrait-orientation photo: narrow enough that its height
   stays close to the bio column beside it. */
.profile-photo {
    flex: 0 0 185px;
    max-width: 185px;
}

.profile-photo img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.profile-links {
    margin-top: 14px;
}

/* ---------------------------------------------------------------
   Affiliation logos
   --------------------------------------------------------------- */
.affiliations {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 12px 46px;
    margin-top: 30px;
}

.affiliation {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.affiliation img {
    width: auto;
    max-width: 150px;
    max-height: 78px;
    object-fit: contain;
}

.affiliation-caption {
    display: block;
    font: italic smaller sans-serif;
    color: #555;
    padding-top: 5px;
    text-align: center;
}

/* ---------------------------------------------------------------
   News
   --------------------------------------------------------------- */
.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-list li {
    margin: 0 0 7px;
    line-height: 1.6;
}

.news-date {
    font-weight: 700;
    margin-right: 4px;
}

/* ---------------------------------------------------------------
   Publications
   --------------------------------------------------------------- */
.pub-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 0 0 26px;
}

.pub-thumb {
    flex: 0 0 220px;
    max-width: 220px;
}

.pub-thumb img {
    width: 100%;
    height: auto;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
}

.pub-body {
    flex: 1 1 auto;
    min-width: 0;
}

.pub-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 4px;
}

.pub-authors,
.pub-venue {
    line-height: 1.55;
    margin: 0 0 3px;
}

.pub-venue {
    font-style: italic;
    color: #555;
}

.pub-links {
    margin: 5px 0 0;
}

/* Award highlight inside a venue line */
.award {
    color: #d00;
    font-weight: 700;
    font-style: normal;
}

/* ---------------------------------------------------------------
   Honors & Awards
   --------------------------------------------------------------- */
.award-entry {
    margin: 0 0 20px;
}

.award-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
}

.award-venue,
.award-date {
    margin: 0;
    line-height: 1.55;
}

.award-venue {
    color: #555;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
    margin-top: 50px;
    text-align: right;
    font-size: 12px;
    color: #777;
}

/* ---------------------------------------------------------------
   Project pages (Bootstrap-based)
   --------------------------------------------------------------- */
.project-section {
    margin-top: 26px;
}

.project-figure {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Project pages set their own heading sizes on top of Bootstrap. */
.container h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.35;
    margin: 24px 0 8px;
}

.container h3 {
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e3e3e3;
}

.container h4 {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    margin: 6px 0;
}

.container h4 sup {
    font-size: 11px;
}

/* ---------------------------------------------------------------
   Mobile
   --------------------------------------------------------------- */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .site-name {
        font-size: clamp(28px, 8vw, 32px);
    }

    .section-heading {
        font-size: clamp(21px, 6vw, 22px);
    }

    /* Stack vertically, and pull the photo above the text with order so the
       markup can keep the bio first (which is the desktop reading order). */
    .profile {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 28px;
    }

    .profile-photo {
        order: -1;
        flex: 0 0 auto;
        align-self: center;
        max-width: 260px;
        margin: 0 auto 20px;
    }

    .pub-item {
        display: block;
    }

    .pub-thumb {
        max-width: 100%;
        margin-bottom: 12px;
    }

    .container h1 {
        font-size: 25px;
    }
}
