/* ============================================================
   style_publications.css
   Publications page — requires style.css (fonts, reset, variables)
   ============================================================ */


/* ============================================================
   BASE OVERRIDES
   Publications page needs scrollable height and clip overflow.
   ============================================================ */

body {
    height: fit-content;
    overflow-x: clip;
}


/* ============================================================
   PAGE LAYOUT
   ============================================================ */

/* Merged from two duplicate .content definitions */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.title {
    display: flex;
    flex-direction: column;
    background-color: var(--background_color);
    width: 100vw;
    position: sticky;
    top: 3rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    z-index: 1;
}

.title p {
    color: var(--blueBC);
    font-size: 2rem;
    text-align: center;    /* was: position: center (invalid) */
}

.title p:hover {
    cursor: pointer;
}

#icra_title {
    border: none;
    position: sticky;
    top: 0;
}


/* ============================================================
   YEAR BLOCKS
   ============================================================ */

.year_block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80vw;
}

.year_block p {
    font-size: 2rem;
}

.year_block p:hover {
    cursor: pointer;
}

.year_block ol li {
    color: var(--blueBC);
    font-size: 0.85rem;
    line-height: 1rem;
}

.year_block:last-child {
    margin-bottom: 0;
}

.year {
    width: 100vw;
    background-color: var(--background_color); /* single background declaration */
    position: sticky;
    top: 4rem;
    text-align: center;
    color: var(--title-color);
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    z-index: 1;
}


/* ============================================================
   PUBLICATION CONTAINERS
   ============================================================ */

.publications {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* max-width: 1024px; */
    width: 80vw;
    /* border: #f09d51 1px dashed; */
}

.talks {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* was: left (invalid for flex) */
    align-items: flex-start;
    max-width: 1024px;
    width: 100vw;
}


/* ============================================================
   PAPER CARDS
   ============================================================ */

.paper {
    display: flex;
    flex-direction: column;
    min-width: 60vw;
    max-width: 95vw;
    margin: 0 auto 2rem auto;
    /* border: var(--halycon) 1px solid; */
}

.last_paper {
    margin-bottom: 0;
}

/* Merged from two duplicate .paper_description definitions */
.paper_description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    /* border: #f09d51 1px solid; */
    gap: 1.5rem;
}

.paper_description button {
    padding: 0;
    border: none;
    background: none;
    width: 1rem;
    height: 1rem;
    margin-right: 10px;
}

.paper_description button:hover,
.paper_description a:hover {
    scale: 1.2;
    cursor: pointer;
}

.paper_description img {
    width: 1rem;
    height: 1rem;
    margin-right: 10px;
}

.paper_description p {
    font-size: 0.85rem;
    font-weight: lighter;
    color: var(--paper_color);
}

.paper_description .authors {
    font-size: 0.6rem;
    font-weight: lighter;
    margin-top: 1rem;
    text-align: left;
}

/* Merged from two duplicate .paper_title definitions */
.paper_title {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    flex: 1;
}

.paper_title .paper_heading {
    color: var(--title-color);
    text-align: left;
}

.paper_title .awards {
    color: var(--title-color);
    text-align: left;
}

.action_row {
    display: flex;
    flex-direction: row;
    max-width: 20%;
}

.action_row p {
    color: var(--blueBC);
    text-align: center;
}

/* Merged from two duplicate .date_column definitions */
.date_column {
    display: flex;
    flex-direction: row;
    text-align: center;
    min-width: 80px;
    width: 15%;
}

.authors {
    white-space: normal;
    line-height: 1.5;
}

.authors a {
    color: var(--blueBC);
}

.authors a:hover {
    color: var(--halycon);
}


/* ============================================================
   ABSTRACT
   ============================================================ */

.abstract {
    width: 100%;
}

.abstract p {
    font-size: 0.6rem;
    font-weight: lighter;
    text-align: justify;
    border-top: var(--halycon) 1px solid;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    line-height: 1.2em;
    color: var(--paper_color);
}


/* ============================================================
   SKILLS BLOCK
   ============================================================ */

.skillTitle {
    color: var(--title-color);
    font-size: 1rem;
    font-weight: lighter;
}

.skillTitle span:hover {
    color: var(--halycon);
}

/* Fixed: removed invalid `position: center` */
#skillsBlock {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1024px;
    width: 80vw;
}

#skills {
    margin-left: 5rem;
    display: flex;
    justify-content: center;
}

#skills ol {
    margin-left: 1.5rem;
    padding-left: 1rem;
}

#skills ul {
    margin-left: 1.5rem;
    padding-left: 1rem;
    list-style-type: disc;
}

#skills ol + ol {
    margin-left: 5rem;
}


/* ============================================================
   SPACERS
   ============================================================ */

.skill_spacer {
    height: 5vh;
}

/* Overrides style.css .spacer_small (3vh) for publications page */
.spacer_small {
    height: 5vh;
}


/* ============================================================
   RESPONSIVE — max-width: 799px  (Mobile)
   ============================================================ */

@media only screen and (max-width: 799px) {

    .paper {
        align-items: center;
        max-width: 85vw;
    }

    .paper_description {
        flex-direction: column;
        align-items: center;
    }

    .paper_title {
        width: 100%;
    }
}


/* ============================================================
   RESPONSIVE — min-width: 800px  (Desktop)
   ============================================================ */

@media only screen and (min-width: 800px) {

    .content {
        margin-top: 4rem;
    }

    .title {
        width: 90vw;
        margin-top: 0;
        border: none;
    }

    .title p {
        font-size: 3rem;
    }

    .year {
        top: 6rem;
    }

    .paper {
        width: 50vw;
        max-width: 80vw;
        min-width: 50vw;
        margin-bottom: 5vh;
    }

    .publications {
        width: 60vw;
        min-width: 650px;
        margin-bottom: 5vh;
    }

    .paper_description {
        flex-direction: row;
        margin-bottom: 0.5rem;
    }

    .paper_description p {
        font-size: 1rem;
    }

    .paper_description .authors {
        font-size: 0.8rem;
    }

    .abstract p {
        font-size: 1rem;
    }
}


/* ============================================================
   RESPONSIVE — min-width: 1500px  (Large desktops)
   ============================================================ */

@media only screen and (min-width: 1500px) {

    .title {
        width: 100vw;
        position: sticky;
        top: 2.5rem;
        border: none;
        margin-top: 0;
    }

    .title p {
        font-size: 5rem;
    }

    .year {
        top: 6.5rem;
    }

    .experience2 {
        position: sticky;
        top: 3.5rem;
    }

    .paper_title {
        width: 100%;
    }

    .paper_title p {
        font-size: 2.5rem;
    }

    .paper_description p {
        font-size: 1.5rem;
    }

    .paper_description .authors {
        font-size: 1rem;
        font-weight: lighter;
        margin-top: 1rem;
        text-align: left;
    }

    .publications li {
        font-size: 2rem;
        font-weight: lighter;
    }

    .year p {
        font-size: 3rem;
    }

    .paper_description {
        margin-bottom: 5vh;
    }
}
