/* =============================================================================
   LAYOUT
   ============================================================================= */

.bd-docs-main {
    max-width: 1000px;
    margin: 0 auto;
}

.full-width-container {
    width: 100vw;
    position: relative;
    margin-left: -50vw;
    margin-right: -50vw;
}

.full-width-container img {
    width: 100%;
    max-width: none;
    margin-left: -0.8%;
    margin-right: -1%;
}

body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}


/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

.bd-article-container h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.bd-main .bd-content .bd-article-container h2 {
    font-size: 1.5em;
    border-top: 2px solid #0d7d92;
    border-bottom: 2px solid #0d7d92;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    margin-top: 0.8em;
    text-align: center;
}

.center-text {
    text-align: center;
}

.center-text-2 {
    text-align: center;
    font-size: 1.5em;
}

.center-text-3 {
    text-align: center;
    font-size: 1.5em;
    color: #8044e4;
}

.center-text-4 {
    text-align: center;
    font-size: 1.4em;
}

.justify-text {
    text-align: justify;
}

.headerlink {
    display: none;
}


/* =============================================================================
   NAVBAR
   ============================================================================= */

.navbar-brand img {
    max-height: 72px;
    height: auto;
    width: auto;
}


/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-gap {
    gap: 1rem;
}

.btn-teal.sd-btn {
    background-color: #1aA688;
    border-color: #1aA688;
    color: #ffffff;
}

.btn-teal.sd-btn:hover {
    background-color: #178f75;
    border-color: #178f75;
    color: #ffffff;
}

.publications-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1em auto;
    width: 100%;
}

.btn-pub {
    display: inline-block;
    padding: 0.5em 1.2em;
    border-radius: 4px;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn-pub.sd-btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.btn-pub.sd-btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    color: #ffffff;
}

.btn-pub.sd-btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.btn-pub.sd-btn-secondary:hover {
    background-color: #5c636a;
    border-color: #5c636a;
    color: #ffffff;
}


/* =============================================================================
   NEWS
   ============================================================================= */

.news-entry {
    display: grid;
    grid-template-columns: 7em 1fr;
    gap: 0em;
    margin-bottom: 0.8em;
}

.news-date {
    font-weight: bold;
    text-align: left;
}


/* =============================================================================
   CITATIONS
   ============================================================================= */

.citation {
    display: grid;
    grid-template-columns: 1em 1fr;
    gap: 0em;
    margin-bottom: 0.8em;
}

.citation p {
    margin: 0;
    white-space: pre-line;
}

.citation .label {
    font-weight: bold;
    text-align: right;
}

.citation .label .fn-bracket {
    display: none;
}

.citation-list {
    list-style-type: none;
}


/* =============================================================================
   IMAGES
   ============================================================================= */

.left-image {
    margin-right: 1rem;
    max-width: 200px;
    line-height: 0.3;
}

.left-image2 {
    margin-right: 1rem;
    max-width: 150px;
    line-height: 0.3;
}

.left-image3 {
    margin-right: 0.5rem;
    max-width: 400px;
    line-height: 0.3;
}

.logo2 {
    margin-right: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0;
}


/* =============================================================================
   IMAGE-TEXT ROWS
   ============================================================================= */

.image-text-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
}

.image-text-row-contact {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.image-text-row-research {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 30px;
}

.text-block {
    flex: 1;
    line-height: 1.35;
}

.text-block-research {
    flex: 1;
}


/* =============================================================================
   RESEARCH CARDS
   ============================================================================= */

.research-card,
.research-card-2,
.research-card-3 {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    padding: 20px 20px 5px 20px !important;
    margin: 20px 0;
}

.research-card p,
.research-card-2 p,
.research-card-3 p {
    margin-left: 0px;
}

.research-card {
    background: #e8f4f8;
}

.research-card-2 {
    background: #e8ecf8;
}

.research-card-3 {
    background: #e8f8f4;
}

.research-card-3 .citation {
    display: block !important;
    margin-bottom: 0;
    gap: 0;
    grid-template-columns: 0 0;
    text-indent: -50px;
}

.research-card-3 .citation-list {
    padding-left: 0 !important;
    margin-left: 0 !important;
}


/* =============================================================================
   MEDIA QUERIES
   ============================================================================= */

.bd-sidebar-primary {
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .bd-sidebar-primary {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

@media (max-width: 768px) {
    /* Research row */
    .image-text-row-research {
        flex-direction: column;
        align-items: center;
    }

    .image-text-row-research img,
    .research-image {
        display: block;
        margin: 0 auto;
    }

    .image-text-row-contact {
        flex-direction: column;
        align-items: center;
    }

    .contact-image {
        margin-left: 0;
        margin-bottom: 1em;
    }

    .text-block-contact {
        text-align: center;
    }

    .contact-card {
        padding: 20px;
    }

    figure.align-right {
        float: none;
        display: block;
        margin: 0 auto 1em auto;
        width: 100% !important;
    }

    figure.align-right img {
        display: block;
        margin: 0 auto;
        width: 100% !important;
        max-width: 330px;
    }
}

@media (max-width: 600px) {
    .publications-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        width: 100%;
    }

    .btn-pub {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }

    .image-text-row {
        flex-direction: column;
        align-items: center;
    }

    .image-text-row img {
        display: block;
        margin: 0 auto;
    }

    .image-text-row .left-image,
    .image-text-row .left-image2,
    .image-text-row .left-image3 {
        margin-right: 0;
        margin-bottom: 0.5em;
    }

    .image-text-row > .left-image,
    .image-text-row > div:first-child {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .image-text-row .text-block {
        margin-top: 0.5em;
        width: 100%;
        text-align: center;
    }

    .image-text-row .text-block .person-header {
        text-align: center;
    }

    .image-text-row .text-block ul {
        text-align: left;
        display: inline-block;
    }
}

.skip-link,
a[href="#main-content"],
a[href^="skip"] {
    display: none;
}

@media (max-width: 768px) {
    #pst-back-to-top {
        display: none !important;
    }
}
