/*************************************************
 *  Hugo Academic: an academic theme for Hugo.
 *  https://github.com/gcushen/hugo-academic
 **************************************************/


/*************************************************
 *  Core
 **************************************************/

header{
    background-image: url("../img/Bckgrnd-clean.png");
    background-size: cover;
    text-align: center;
    color: #fff;
    background-position: center;
    /* min-height: 100%;  */
}

header .header-content {
    max-width: 1170px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 15px;
}

header .header-content-inner > img {
    width: 128px;
    height: auto;
    margin: 0 auto 1rem;
}

header .header-content-inner h1 {
    margin: 0 auto 1.2rem;
    max-width: 28em;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.14;
}

header .header-content-inner p {
    color: #fff;
    margin-bottom: 0.8rem;
}

header .slogan-column {
    text-align: left;
}

header .header-content a {
    color: #bbebff;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

header .header-content a:hover,
header .header-content a:focus {
    color: #fff;
}

/* Funding acknowledgements on project pages */
.article-project .project-funders {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin: 1.2rem 0 2rem;
    padding: 0;
    list-style: none;
}

.project-funders a {
    display: inline-block;
}

.project-funders img {
    display: block;
    border: 0;
    width: auto;
    max-width: 180px;
    height: 96px;
    object-fit: contain;
    margin: 0;
}

/* Publications */
#publications .section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin: 0 0 1rem;
}

.paper-card {
    display: grid;
    grid-template-columns: minmax(160px, 31%) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.6rem);
    padding: 1.5rem 0;
    border-top: 1px solid #d7e1e6;
    text-align: left;
}

.paper-figure {
    margin: 0;
}

.paper-card .paper-figure > a {
    display: block;
    border: 1px solid #d7e1e6;
    border-radius: 4px;
    background: #fff;
    padding: 0.45rem;
}

.paper-card .paper-figure img {
    width: 100%;
    height: clamp(150px, 16vw, 222px);
    object-fit: contain;
}

.paper-card h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.23;
    margin: 0.35rem 0 0.5rem;
}

.paper-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.45rem;
    color: #445964;
    font-size: 0.86rem;
    line-height: 1.45;
}

.paper-metadata > * + *::before {
    content: "·";
    margin-right: 0.45rem;
}

.paper-authors {
    line-height: 1.55;
    color: #344752;
    font-size: 0.94rem;
}

.paper-authors a,
.paper-back,
.paper-figure figcaption a {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.paper-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.paper-links a {
    display: inline-block;
    border: 1px solid #9db1bd;
    border-radius: 3px;
    padding: 0.14rem 0.55rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #005181;
    background: #fff;
}

.paper-links a:hover,
.paper-links a:focus {
    background: #e9f2f6;
    border-color: #005181;
}

.paper-card a:focus-visible,
.paper-detail a:focus-visible,
.paper-archive-link a:focus-visible {
    outline: 3px solid #006199;
    outline-offset: 3px;
}

.paper-archive,
.paper-detail {
    padding-top: 1.2rem;
    padding-bottom: 2.6rem;
}

.paper-archive-link {
    margin: 0.6rem 0 0;
}

.paper-year {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.paper-year h2 {
    color: #445964;
    font-size: 1.4rem;
    margin: 1.4rem 0 0;
}

.paper-detail {
    max-width: 900px;
    margin: 0 auto;
}

.paper-back {
    display: inline-block;
    font-size: 0.9rem;
    margin: 0 0 1.4rem;
}

.paper-detail h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin: 0.4rem 0 0.8rem;
}

.paper-detail .paper-figure {
    margin: 1.75rem 0;
}

.paper-detail .paper-figure img {
    width: auto;
    height: auto;
    max-height: 70vh;
    margin: 0 auto;
    object-fit: contain;
}

.paper-figure figcaption {
    font-size: 0.9rem;
    color: #445964;
    line-height: 1.5;
}

.paper-figure figcaption::before {
    content: none;
}

.paper-card .paper-figure figcaption {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
}

.paper-figure figcaption > span:not(:last-child)::after,
.paper-figure figcaption > a:not(:last-child)::after {
    content: " ";
    white-space: pre;
}

.paper-abstract {
    max-width: 78ch;
    margin: 1.8rem auto;
}

@media (max-width: 680px) {
    .paper-year,
    .paper-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.8rem;
    }

    .paper-card .paper-figure img {
        height: min(220px, 44vw);
    }

    .paper-detail .paper-figure img {
        max-height: none;
    }
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem clamp(1.25rem, 4vw, 3.5rem);
}

.project-archive {
    padding-bottom: 2.5rem;
}

.project-card {
    border-top: 1px solid #d7e1e6;
    padding-top: 1rem;
    text-align: left;
}

.project-card h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.project-card > p {
    margin: 0.6rem 0 0;
}

.project-figure {
    margin: 0;
}

.project-figure-image {
    display: grid;
    place-items: center;
    background: #fff;
}

.project-card .project-figure-image {
    height: clamp(165px, 20vw, 225px);
    padding: 8px;
    border: 1px solid #d7e1e6;
    border-radius: 4px;
}

.project-card .project-figure-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.project-figure figcaption {
    margin: 0.55rem 0 0;
    color: #445964;
    font-size: 0.82rem;
    line-height: 1.5;
}

.project-figure figcaption::before {
    content: none;
}

.project-figure figcaption a {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.article-project > .project-figure {
    width: fit-content;
    max-width: 100%;
    margin: 1.5rem auto 2rem;
}

.article-project .project-figure img {
    max-height: 355px;
    object-fit: contain;
}

.article-project .project-figure figcaption {
    text-align: center;
}

.project-figure figcaption p {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

@media (max-width: 680px) {
    .project-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-card .project-figure-image {
        height: min(220px, 51vw);
    }
}

.sponsor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 1.2rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
}

.sponsor-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.sponsor-list p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.sponsor-list p a {
    text-decoration: underline;
}

.team-profile-card {
    padding: 30px 10px;
    text-align: center;
}

.team-thumbnail {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
}
