.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.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    color: #fff !important;
    border-radius: 0.125rem;
    -webkit-box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

:root { 
    --global-bg-color: #ffffff; 
    --global-text-color: #000000; 
    --global-text-color-light: #828282; 
    --global-theme-color: #13294B; 
}

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; 
}

.publications h1 { 
    color: var(--global-theme-color); 
    font-size: 2rem; 
    text-align: center; 
    margin-top: 1em; 
    margin-bottom: 1em;
}

.publications h2 { 
    margin-bottom: 1rem; 
}

.publications h2 span { 
    font-size: 1.5rem; 
}

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

section > h2.pub-section-title:first-child { 
    margin-top: 0; 
}

.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; 
}

h3.pub-subsection { 
    font-size: 0.95rem; 
    font-weight: 700; 
    color: #666; 
    text-transform: uppercase; 
    letter-spacing: 0.12em; 
    margin: 12px 0 2px; 
}

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

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

.publications h2.year { 
    color: #13294B; 
    margin-top: 2.5rem; 
    margin-bottom: 0.8rem; 
    text-align: left; 
    font-size: 1.25rem; 
    letter-spacing: 0.06em; 
    font-weight: 700; 
    border-bottom: none; 
    padding-bottom: 0; 
}

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

.publications ol.bibliography li { 
    min-height: 110px; 
    margin-bottom: 0.5rem; 
    border-radius: 10px; 
    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); 
}

.publications ol.bibliography li .abbr { 
    height: 8rem; 
    margin-bottom: 0.5rem; 
}

.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: 16px; 
    font-size: 0.78rem; 
    letter-spacing: 0.04em; 
}

.publications ol.bibliography li .abbr abbr a { 
    color: white; 
}

.publications ol.bibliography li .abbr abbr a:hover { 
    text-decoration: none; 
}

.publications ol.bibliography li .abbr .award { 
    color: var(--global-theme-color) !important; 
    border: 1px solid var(--global-theme-color); 
}

.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: #13294B; 
}

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

.publications ol.bibliography li .author a {
    border-bottom: 1px var(--global-theme-color); 
}

.publications ol.bibliography li .author a:hover { 
    border-bottom-style: solid; 
    text-decoration: none; 
}

.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; 
}

.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 .hidden { 
    font-size: 0.875rem; 
    max-height: 0px; 
    overflow: hidden; 
    text-align: justify; 
    transition: all 0.15s ease; 
}

.publications ol.bibliography li .hidden p { 
    line-height: 1.4em; 
    margin: 10px; 
}

.publications ol.bibliography li .hidden pre { 
    font-size: 1em; 
    line-height: 1.4em; 
    padding: 10px; 
}

.publications ol.bibliography li .hidden.open { 
    max-height: 100em; 
    transition: all 0.15s ease; 
}

.publications ol.bibliography li div.abstract.hidden { 
    border: dashed 1px var(--global-bg-color); 
}

.publications ol.bibliography li div.abstract.hidden.open { 
    border-color: var(--global-text-color); 
}

.publications ol.bibliography li .abbr .teaser {
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.30);
    width: 240px;
    height: auto;
    max-height: 123px;
    margin-top: 5px;
    margin-left: 5px;
    margin-bottom: 5px;
    object-fit: contain;
    transition: box-shadow 0.2s ease;
    padding: 5px;
}

.publication-summary p {
    margin: 0;
}

/* Lay Summary button */

.publications ol.bibliography li .links button.summary-btn {
    color: #444;
    background-color: transparent;
    border: 1px solid #bbb;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
    transition: color 0.15s ease,
                border-color 0.15s ease,
                background-color 0.15s ease;
}

.publication-summary {
    font-size: 0.92em;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    padding: 0 15px;
    background-color: #f5f7fa;
    border-left: 3px solid var(--global-theme-color);
    transition: max-height 0.2s ease,
                opacity 0.2s ease,
                margin-top 0.2s ease,
                padding 0.2s ease;
}

.publication-summary.open {
    max-height: 100em;
    opacity: 1;
    margin-top: 10px;
    padding: 10px 15px;
}

/* Fix image display on phone in publication section */

/* Mobile layout for publication illustrations */
@media screen and (max-width: 600px) {

    .publications ol.bibliography li .pub-row {
        display: block;
    }

    .publications ol.bibliography li .pub-row .col-sm-3.abbr {
        width: 100%;
        height: auto;
        padding: 0 !important;
        margin: 0 0 1.2rem 0;
        text-align: center;
    }

    .publications ol.bibliography li .pub-row .col-sm-3.abbr .teaser {
        display: block;
        width: 240px;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .publications ol.bibliography li .pub-row .col-sm-9 {
        width: 100%;
        padding: 0 !important;
    }
}