.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.125rem;
    color: #fff !important;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

:root {
    --global-bg-color: #ffffff;
    --global-code-bg-color: rgba(181, 9, 172, 0.05);
    --global-text-color: #000000;
    --global-text-color-light: #828282;
    --global-theme-color: #13294B;
    --global-hover-color: #ffb81c;
    --global-accent-color: #FF5F05;
}

html[data-theme="light"] {
    color-scheme: light;
    --global-bg-color: #ffffff;
    --global-text-color: #000000;
    --global-text-color-light: #828282;
    --global-theme-color: #13294B;
    --global-accent-color: #FF5F05;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --global-bg-color: #20212b;
    --global-text-color: #dadbdf;
    --global-text-color-light: #aeb4c0;
    --global-theme-color: rgb(62, 183, 240);
    --global-accent-color: #ffb81c;
}

@media (prefers-color-scheme: dark) {
    :root {
        --global-theme-color: rgb(36, 150, 203);
        --global-accent-color: #ffb81c;
    }
}

body {
    font-size: 15px;
    line-height: 1.62;
}

.wrapper {
    width: 1020px;
}

.topnav {
    background-color: #13294B;
    overflow: hidden;
    position: fixed;
    z-index: 999;
    width: 100%;
    min-height: 42px;
    top: 0;
    left: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}

.topnav,
.topnav * {
    box-sizing: border-box;
}

.topnav .brand {
    float: left;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 7px 0;
    margin-left: 30%;
    text-decoration: none;
    line-height: 1;
}

.topnav .brand img,
.topnav .brand .nav-logo {
    display: block;
    width: auto !important;
    height: 26px !important;
    max-width: 104px !important;
    max-height: 26px !important;
    object-fit: contain;
    margin: 0;
}

.topnav #myLinks {
    display: inline;
}

.theme-toggle {
    float: right;
    width: 32px;
    height: 32px;
    margin: 5px 10px 0 4px;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.72);
    transform: translateY(-1px);
}

.theme-toggle i {
    font-size: 14px;
}

.topnav a.icon {
    display: none;
}

.topnav a.normal {
    float: right;
    color: #f2f2f2 !important;
    text-align: center;
    padding: 10px 9px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s ease;
}

.topnav a.normal::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 9px;
    right: 9px;
    height: 2px;
    background: #FF5F05;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.topnav a.normal:hover {
    background-color: transparent;
    color: #fff !important;
}

.topnav a.normal:hover::after {
    transform: scaleX(1);
}

.topnav a.right {
    margin-right: 30%;
}

.image.avatar img {
    width: 142px !important;
    height: 142px !important;
    padding: 0 !important;
    object-fit: contain;
    object-position: center center;
    background: #fff;
}

header,
section {
    padding-top: 5.6em;
}

header {
    width: 300px;
}

header h1 {
    font-size: 26px;
    margin-bottom: 14px;
}

header position {
    display: block;
    margin-bottom: 2px;
}

header .social-icons {
    margin-top: 2px;
}

header .social-icons a {
    margin-right: 0.65rem !important;
}

section {
    width: 650px;
}

section h2 {
    font-size: 150%;
}

section p,
section li {
    font-size: 0.98rem;
}

section h3 {
    color: #043361;
    font-size: 1.12rem;
    margin: 24px 0 10px;
}

.compact-list {
    margin-bottom: 28px;
}

.compact-list li {
    margin-bottom: 4px;
}

.research-title {
    margin-bottom: 8px;
}

html[data-theme="dark"] section h3 {
    color: rgb(62, 183, 240);
}

blockquote {
    background: var(--global-bg-color);
    border-left: 2px solid var(--global-theme-color);
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    font-size: 1.2rem;
}

@media print, screen and (min-width: 480px) {
    .col-sm-9 {
        width: 100%;
    }
}

.publications {
    margin-top: 2rem;
}

h2.pub-section-title {
    margin: 2px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--global-theme-color);
    display: flex;
    align-items: center;
    gap: 14px;
}

.pub-ext-links {
    display: inline-flex;
    gap: 6px;
    margin-left: 4px;
}

.pub-ext-links a {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--global-theme-color);
    border: 1.5px solid var(--global-theme-color);
    border-radius: 20px;
    padding: 2px 10px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pub-ext-links a:hover {
    background-color: var(--global-theme-color);
    color: #fff;
    text-decoration: none;
}

.publications ol.bibliography {
    list-style: none;
    padding: 0;
    margin-top: 0;
}

.publications ol.bibliography li {
    min-height: 110px;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    padding: 10px 26px;
    margin-left: -20px;
    margin-right: -20px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.publications ol.bibliography li:hover {
    background-color: #f5f7fa;
    box-shadow: 0 2px 10px rgba(19, 41, 75, 0.09);
}

html[data-theme="dark"] .publications ol.bibliography li:hover {
    background-color: #282a36;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.publications ol.bibliography li .abbr {
    height: 8rem;
    margin-bottom: 0.5rem;
    min-width: 178px;
    position: relative;
    padding-right: 15px;
}

.publications ol.bibliography li .abbr abbr {
    display: inline-block;
    background-color: var(--global-theme-color);
    padding-left: 1rem;
    padding-right: 1rem;
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.publications ol.bibliography li .abbr abbr[data-venue="Preprint"],
.publications ol.bibliography li .abbr abbr[data-venue="arXiv"] {
    background-color: #e07b39;
}

.publications ol.bibliography li .abbr abbr[data-venue="Under Review"] {
    background-color: #666;
}

.publications ol.bibliography li .title {
    font-weight: bolder;
    font-size: 1.04em;
    line-height: 1.35;
    margin-bottom: 3px;
    transition: color 0.15s ease;
}

.publications ol.bibliography li:hover .title {
    color: var(--global-theme-color);
}

.publications ol.bibliography li .author {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 2px;
}

html[data-theme="dark"] .publications ol.bibliography li .author {
    color: #c5c8d0;
}

.publications ol.bibliography li .author > em {
    border-bottom: 1px solid;
    font-style: normal;
}

.publications ol.bibliography li .periodical {
    margin-bottom: 6px;
}

.publications ol.bibliography li .links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.publications ol.bibliography li .links a.btn {
    color: #444;
    border: 1px solid #bbb;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

html[data-theme="dark"] .publications ol.bibliography li .links a.btn {
    color: #eeeff0;
    border-color: #7e8796;
}

.publications ol.bibliography li .links a.btn:hover {
    color: #fff;
    background-color: var(--global-theme-color);
    border-color: var(--global-theme-color);
}

.publications ol.bibliography li .links strong {
    margin-left: 4px;
}

.publications ol.bibliography li .links i {
    color: #e74d3c;
}

.publications ol.bibliography li .teaser {
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.30);
    height: 104px;
    width: 154px;
    margin-top: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
    object-fit: cover;
    transition: box-shadow 0.2s ease;
}

.publications ol.bibliography li:hover .teaser {
    box-shadow: 3px 3px 14px rgba(0,0,0,0.42);
}

@media print, screen and (max-width: 2000px) and (min-width: 1801px) {
    .topnav .brand { margin-left: 22%; }
    .topnav a.right { margin-right: 22%; }
}

@media print, screen and (max-width: 1800px) and (min-width: 1601px) {
    .topnav .brand { margin-left: 19%; }
    .topnav a.right { margin-right: 19%; }
}

@media print, screen and (max-width: 1600px) and (min-width: 1401px) {
    .topnav .brand { margin-left: 16%; }
    .topnav a.right { margin-right: 16%; }
}

@media print, screen and (max-width: 1400px) and (min-width: 1201px) {
    .topnav .brand { margin-left: 12%; }
    .topnav a.right { margin-right: 12%; }
}

@media print, screen and (max-width: 1200px) and (min-width: 1001px) {
    .topnav .brand { margin-left: 6%; }
    .topnav a.right { margin-right: 6%; }
}

@media print, screen and (max-width: 1000px) {
    .topnav .brand {
        margin-left: 3%;
    }

    .topnav a.right {
        margin-right: 3%;
    }

    .topnav a.normal {
        padding: 10px 5px;
    }
}

@media print, screen and (max-width: 960px) {
    .topnav a.normal::after {
        display: none;
    }

    .topnav #myLinks {
        display: flex;
        flex-direction: column-reverse;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease-in-out;
        clear: both;
    }

    .topnav #myLinks.open {
        max-height: 600px;
    }

    .theme-toggle {
        float: none;
        display: block;
        margin: 10px auto 8px;
    }

    .topnav a.normal,
    .topnav a.right {
        color: white;
        float: none;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
        margin-right: 0;
    }

    .topnav a.icon {
        color: white;
        display: block;
        padding: 10px 16px;
        font-size: 17px;
        position: absolute;
        right: 0;
        top: 0;
        margin-right: 5%;
    }

    header {
        padding-top: 76px;
        width: auto;
    }

    .image.avatar img {
        width: 132px !important;
        height: 132px !important;
    }

    section {
        padding-top: 40px;
        width: auto;
    }

    .topnav a.icon .icon-wrap {
        position: relative;
        display: inline-block;
        width: 1em;
        height: 1em;
    }

    .topnav a.icon .icon-bars,
    .topnav a.icon .icon-xmark {
        position: absolute;
        top: 0;
        left: 0;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .topnav a.icon .icon-bars {
        opacity: 1;
        transform: rotate(0deg);
    }

    .topnav a.icon .icon-xmark {
        opacity: 0;
        transform: rotate(-90deg);
    }

    .topnav a.icon.active .icon-bars {
        opacity: 0;
        transform: rotate(90deg);
    }

    .topnav a.icon.active .icon-xmark {
        opacity: 1;
        transform: rotate(0deg);
    }

    .publications ol.bibliography li {
        margin-left: 0;
        margin-right: 0;
        padding: 10px 12px;
    }
}

@media print, screen and (max-width: 480px) {
    .publications ol.bibliography li .abbr {
        height: auto;
    }

    .publications ol.bibliography li .teaser {
        width: 100%;
        height: 150px;
        margin-left: 0;
    }
}
