body.research-page .container[style] {
    border-top: 8px solid #2f6f6a !important;
    box-shadow: 0 22px 60px rgba(36, 49, 48, 0.14);
    padding-left: 36px;
    padding-right: 36px;
    padding-bottom: 44px;
}

body.research-page .page-header {
    border-bottom: 1px solid #d7c99a;
    margin-top: 18px !important;
}

body.research-page .page-header h1 {
    color: #183332;
    font-weight: 500;
}

body.research-page h2 {
    color: #8a4f28;
    font-size: 21px;
    font-weight: 600;
    margin-top: 30px;
}

body.research-page a {
    color: #146b75;
}

body.research-page a:hover,
body.research-page a:focus {
    color: #0f4f56;
}

.research-intro {
    color: #514a3d;
    font-size: 15px;
    max-width: 860px;
}

.research-controls {
    align-items: flex-end;
    border-bottom: 1px solid #dfd3ab;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin: 0 0 26px;
    padding: 14px 0 16px;
}

.controls-note {
    border-bottom: 1px solid #dfd3ab;
    border-top: 1px solid #dfd3ab;
    color: #514a3d;
    font-size: 15px;
    margin: 22px 0 0;
    padding: 12px 0;
}

.view-buttons {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.view-button {
    background: #f2ead4;
    border: 1px solid #cdbd88;
    border-radius: 4px;
    color: #135f67;
    font-size: 14px;
    padding: 7px 9px;
}

.view-button.active {
    background: #2f6f6a;
    border-color: #2f6f6a;
    color: #fff;
}

.topic-control {
    align-items: center;
    display: flex;
    flex: 0 0 270px;
    gap: 8px;
    max-width: 270px;
    min-width: 220px;
}

.topic-control label {
    color: #514a3d;
    display: inline;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.topic-control select {
    background: #fffdf7;
    border: 1px solid #cdbd88;
    border-radius: 4px;
    color: #183332;
    flex: 1 1 auto;
    font-size: 14px;
    min-height: 38px;
    padding: 6px 10px;
    width: auto;
}

.paper-count {
    color: #8a877d;
    font-size: 13px;
    flex: 1 1 auto;
    margin-left: auto;
    text-align: right;
}

.paper-list {
    display: grid;
    gap: 12px;
}

.topic-group {
    margin-top: 24px;
}

.topic-heading {
    border-left: 4px solid #c6a85b;
    color: #183332;
    font-size: 18px;
    font-weight: 600;
    margin: 26px 0 12px;
    padding-left: 12px;
}

.paper-card {
    background: #fffdf7;
    border: 1px solid #dfd3ab;
    border-radius: 6px;
    padding: 14px 16px;
}

.paper-title {
    color: #183332;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
}

.paper-meta,
.paper-venue {
    color: #514a3d;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 5px;
}

.paper-venue .venue-name {
    color: #464f48;
    font-weight: 500;
}

.paper-venue .venue-year,
.paper-venue .venue-prefix,
.paper-venue .venue-detail,
.paper-venue .venue-status {
    color: #6f695c;
}

.paper-topics {
    color: #8a877d;
    font-size: 13px;
    margin-top: 8px;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.resource-link {
    background: #f2ead4;
    border: 1px solid #d7c99a;
    border-radius: 4px;
    color: #135f67;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 4px 8px;
    text-align: center;
}

.resource-link-arxiv,
.resource-link-pdf {
    background: #fffdf7;
    border-color: #2f6f6a;
    color: #135f67;
    min-width: 54px;
}

.resource-link-code {
    background: #e8f1ec;
    border-color: #2f6f6a;
    color: #135f67 !important;
    font-weight: 700;
    min-width: 68px;
}

.resource-link-slides {
    background: #f8edcf;
    border-color: #c6a85b;
    color: #7b4a1f;
    min-width: 62px;
}

.resource-link-bibtex {
    background: #f8f4e8;
    border-color: #dfd3ab;
    color: #6d6a60;
    font-weight: 500;
}

button.resource-link {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    line-height: inherit;
}

.resource-link:hover,
.resource-link:focus {
    background: #e8ddb9;
    text-decoration: none;
}

.resource-link-code:hover,
.resource-link-code:focus {
    background: #d9ebe5;
    border-color: #245d59;
}

.bibtex-block {
    background: #f7f1df;
    border: 1px solid #dfd3ab;
    border-radius: 4px;
    color: #2c332f;
    font-size: 12px;
    line-height: 1.45;
    margin: 10px 0 0;
    overflow-x: auto;
    padding: 10px 12px;
    white-space: pre;
}

.page-updated {
    color: #8a877d;
    font-size: 13px;
    margin-top: 30px;
    text-align: right;
}

@media (max-width: 700px) {
    body.research-page .container[style] {
        padding-left: 20px;
        padding-right: 20px;
    }

    .paper-count {
        margin-left: 0;
        width: 100%;
    }
}
