@charset "utf-8";
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
    background-color: #eef3fa;   /* light tint of the theme's link blue */
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

.card {
    border-radius: 0.8rem!important;
}

.card-img-overlay {
    border-radius: 0.8rem!important;
}

.rounded-xl {
    border-radius: 0.8rem!important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Source Code Pro, monospace;
}

.carousel button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    box-shadow: none;
}

.carousel button:focus {
    outline: none;
}

.carousel-control-prev,
.carousel-control-next {
    padding: 0;
    background: transparent;
    border: 0;
}

.carousel-indicators button {
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    padding: 0;
    margin: 0 3px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

.carousel-indicators button.active {
    opacity: 1;
}

.carousel-indicators button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.25);
}

.carousel-control-prev:focus-visible .carousel-control-prev-icon,
.carousel-control-next:focus-visible .carousel-control-next-icon {
    outline: 2px solid #fff;
    outline-offset: 4px;
    border-radius: 2px;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-indicators button {
        transition: none;
    }
}

.pub-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.05rem;
    border-radius: 50%;
    background-color: #343a40;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.entry-logo {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.pub-link {
    display: inline-block;
    margin: 0.35rem 0.35rem 0 0;
    padding: 0.1rem 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    text-decoration: none;
}

.pub-link:hover,
.pub-link:focus {
    border-color: #343a40;
    background-color: #343a40;
    color: #fff;
    text-decoration: none;
}

.pub-link i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.pub-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 0.25rem;
    background-color: #ffc107;
    color: #212529;
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: 1px;
    white-space: nowrap;
}

.award-icon {
    color: #ffc107;
}

.cv-icon {
    color: #adb5bd;
    font-size: 0.85em;
    vertical-align: 5%;
}

.research-icon {
    color: #ffc107;
}

.rep-box {
    background-color: #eef3fa;
    border-radius: 0.5rem;
}

/* Keep anchor targets clear of the fixed navbar when jumped to. */
.anchor-offset {
    scroll-margin-top: 6rem;
}

.area-header {
    background-color: #fff;
    border-bottom: 0;
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}

/* Amber rule beneath a research area title. Its length tracks the card width
   continuously: never less than a third of it, never more than three quarters.
   The middle term is a fixed length, so the rule grows more slowly than the card
   and slides between the two bounds instead of jumping at a breakpoint. */
.area-rule {
    width: clamp(33%, 18rem, 75%);
    height: 3px;
    margin: 0.5rem auto 0;
    border-radius: 2px;
    background-color: #ffc107;
}

/* Research figures: fill the column when small, but never grow past a sensible
   size on wide screens or when the figure is tall. */
.area-figure {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 20rem;
}

/* Figures in the row beneath an area's text: full column width, height bounded. */
.area-figure-wide {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 24rem;
}

/* Icon disc beside each research interest. The disc carries the open/closed
   state: page blue when closed, light gold when open. Icons are scaled to a
   common width, so their own proportions decide their height. */
.interest-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background-color: #eef3fa;
    border: 1px solid #dbe6f5;
    color: #adb5bd;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.interest-icon img {
    width: 74%;
    height: auto;
    display: block;
}

.interest-toggle[aria-expanded="true"] .interest-icon {
    background-color: #fff3cd;
    border-color: #ffe8a1;
}

/* Research interests that expand to their key publications. */
.interest-toggle {
    color: #212529;
    cursor: pointer;
}

.interest-toggle:hover,
.interest-toggle:focus {
    color: #212529;
    text-decoration: none;
}

.interest-badge {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    color: #6c757d;
    white-space: nowrap;
    vertical-align: 12%;
}

.interest-toggle:hover .interest-badge,
.interest-toggle[aria-expanded="true"] .interest-badge {
    border-color: #adb5bd;
    color: #495057;
}

.interest-caret {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.interest-toggle[aria-expanded="true"] .interest-caret {
    transform: rotate(180deg);
}

/* Swap the label when the panel is open. */
.interest-label-hide,
.interest-toggle[aria-expanded="true"] .interest-label-show {
    display: none;
}

.interest-toggle[aria-expanded="true"] .interest-label-hide {
    display: inline;
}

.interest-papers {
    border-left: 2px solid #eef3fa;
}

/* Figure shown under the publications in an expanded research interest. */
.interest-figure {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    /* max-width and max-height are set per area in the template */
}

/* Template credit beneath the "last updated" line. */
.footer-credit {
    margin-top: 0.15rem;
    font-size: 0.8em;
}

.footer-credit a {
    color: #6c757d;
}

/* Justify the biography on wider screens only. Below md the measure is short
   enough (~40 characters) that justification opens visible gaps between words,
   since browsers do not hyphenate by default. */
.bio-justify {
    text-align: justify;
}

@media (max-width: 767.98px) {
    .bio-justify {
        text-align: left;
    }
}

/* Category chips under a publication's links. */
.pub-category {
    display: inline-flex;
    align-items: center;
    margin: 0.35rem 0.3rem 0 0;
    padding: 0.05rem 0.45rem 0.05rem 0.3rem;
    border: 1px solid #e3e6ea;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    font-size: 0.72rem;
    color: #495057;
    white-space: nowrap;
}

.pub-category img {
    width: 0.95rem;
    height: 0.95rem;
    object-fit: contain;
    margin-right: 0.3rem;
}

/* The chip that matched the filter, so it is clear why an entry is still showing. */
.pub-category.is-match {
    border-color: #ffc107;
    background-color: #fff3cd;
    color: #212529;
}

/* Filter bar at the top of the publications page. The chips echo .pub-category, with
   a pressed state in the site's amber; `All` is pressed whenever nothing else is. */
/* A flex row rather than inline-blocks: chips with an icon and the plain `All` chip
   resolve different baselines, which left them a few pixels apart on the same line. */
.pub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.3rem;
}

.pub-filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6c757d;
}

.pub-filter {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.1rem 0.5rem 0.1rem 0.35rem;
    border: 1px solid #e3e6ea;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    font-size: 0.72rem;
    color: #495057;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pub-filter-all {
    padding-left: 0.5rem;
}

.pub-filter:hover {
    border-color: #ced4da;
    background-color: #fff;
}

.pub-filter[aria-pressed="true"] {
    border-color: #ffc107;
    background-color: #fff3cd;
    color: #212529;
}

.pub-filter img {
    width: 0.95rem;
    height: 0.95rem;
    object-fit: contain;
    margin-right: 0.3rem;
}

/* Bootstrap's display utilities are !important, so `.d-block` beats the browser's own
   rule for the hidden attribute and the element stays on screen. Restore it: the
   publication filter hides year links in the sticky sidebar this way. */
[hidden] {
    display: none !important;
}
