/* Research-paper presentation. All rules are scoped so normal site articles remain unchanged. */

.research-article-page {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 38px 46px 50px;
    background: #fff;
    border: 1px solid #e1e4e8;
    box-shadow: 0 2px 10px rgba(48, 53, 67, 0.06);
}

.research-article-page .article-title {
    margin: 0 0 14px;
    color: #303543;
    font-size: 3rem;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.research-paper-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 0 30px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e5e7eb;
}

.research-paper-type,
.research-paper-status {
    display: inline-block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.research-paper-type {
    color: #4f5560;
}

.research-paper-status {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #cfd3d8;
    color: #167d77;
}

.research-article-page .article-body.content {
    max-width: 780px;
    margin: 0 auto;
    color: #3f434b;
}

.research-article-page .article-body.content .research-paper-author {
    margin: 0 0 2em;
    color: #5a5f67;
    font-style: italic;
    text-align: center;
}

.research-article-page .article-body.content p,
.research-article-page .article-body.content li {
    font-size: 1.6rem;
    line-height: 1.72;
}

.research-article-page .article-body.content h2 {
    margin-top: 2em;
    margin-bottom: 0.7em;
    padding-bottom: 0.3em;
    color: #303543;
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.research-article-page .article-body.content h3 {
    margin-top: 1.7em;
    color: #303543;
    font-size: 1.85rem;
    line-height: 1.35;
    font-weight: 700;
}

.research-article-page .article-body.content blockquote {
    margin: 1.6em 0;
    padding: 0.8em 1.2em;
    color: #4b5058;
    background: #f8f9fa;
    border-left: 4px solid #20b2aa;
}

.research-article-page .article-body.content math[display="block"],
.research-article-page .article-body.content .math-display {
    display: block;
    max-width: 100%;
    margin: 1.4em 0;
    padding: 0.35em 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.research-article-page .article-body.content .equation-block {
    max-width: 100%;
    margin: 1.4em 0;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
}

.research-article-page .article-body.content blockquote.equation-block {
    padding: 0.35em 0;
    color: inherit;
    background: transparent;
    border-left: 0;
}

.research-article-page .article-body.content blockquote.equation-block p {
    margin-bottom: 0.25em;
    white-space: nowrap;
}

.research-article-page .article-body.content blockquote.equation-block p:last-child {
    margin-bottom: 0;
}

.research-article-page .article-body.content sup,
.research-article-page .article-body.content sub {
    line-height: 0;
}

/* Publication/download information is appended after the manuscript in ContentHtml. */
.research-article-page .research-paper-publication {
    margin: 3.25em 0 0;
    padding: 2em 0 0;
    border-top: 2px solid #303543;
}

.research-article-page .research-paper-publication > h2:first-child {
    margin-top: 0;
}

.research-article-page .research-paper-version {
    margin-bottom: 1em;
    color: #5a5f67;
}

.research-paper-link {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid #20b2aa;
    border-radius: 3px;
    color: #167d77;
    background: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.research-paper-link:hover,
.research-paper-link:focus {
    color: #fff;
    background: #303543;
    border-color: #303543;
    text-decoration: none;
}

.research-paper-link-primary {
    color: #fff;
    background: #20b2aa;
}

.research-article-page .research-paper-file-list {
    margin: 1em 0 1.5em;
    padding: 0;
    list-style: none;
}

.research-article-page .research-paper-file-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid #eef0f2;
}

.research-article-page .research-paper-file-list li:first-child {
    border-top: 1px solid #eef0f2;
}

.research-article-page .research-paper-file-list li span {
    color: #6b7078;
    font-size: 1.25rem;
}

.research-paper-citation {
    margin-top: 14px;
    padding: 11px 13px;
    color: #565b63;
    background: #f8f9fa;
    border-left: 3px solid #d7dade;
    font-size: 1.25rem !important;
    line-height: 1.55 !important;
}

@media (max-width: 767px) {
    .research-article-page {
        margin-bottom: 20px;
        padding: 26px 20px 34px;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    .research-article-page .article-title {
        font-size: 2.45rem;
    }

    .research-paper-meta {
        margin-bottom: 24px;
    }

    .research-paper-link {
        width: 100%;
        text-align: center;
    }

    .research-article-page .research-paper-file-list li {
        align-items: stretch;
    }

    .research-article-page .research-paper-file-list li span {
        width: 100%;
    }

    .research-article-page .article-body.content h2 {
        font-size: 2rem;
    }
}
