@charset "utf-8";

/* Dark theme palette */
:root {
    --bg: #16181d;
    --surface: #1e2129;
    --surface-2: #262a33;
    --border: #2e333d;
    --text: #d7dae0;
    --text-soft: #b4bac4;
    --text-muted: #9aa1ad;
    --heading: #eceef2;
    --link: #7cb3ff;
    --link-hover: #a8ccff;
    color-scheme: dark;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 2.0rem; /* 5.0rem when the fixed navbar is shown */
    background-color: var(--bg);
    color: var(--text);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    color: var(--heading);
}

/* Bootstrap overrides for the dark palette */
.bg-light {
    background-color: var(--bg) !important;
}

.bg-white {
    background-color: var(--surface) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-dark {
    color: var(--text) !important;
}

.text-body {
    color: var(--text) !important;
}

a {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
}

.border-top, .border-bottom, .border-left, .border-right, .border {
    border-color: var(--border) !important;
}

hr {
    border-top-color: var(--border);
}

.badge-light {
    background-color: var(--surface-2);
    color: var(--text);
}

.alert-warning {
    background-color: #332b18;
    border-color: #4d4020;
    color: #e6c97a;
}

code {
    color: #ef7fae;
}

mark {
    background-color: var(--surface-2);
    color: var(--text-muted);
}

.card {
    border-radius: 0.8rem!important;
    background-color: var(--surface);
    border-color: var(--border);
}

.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(24, 26, 32, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.navbar-light .navbar-brand,
.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
    color: var(--heading);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-muted);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--heading);
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--heading);
}

.navbar-light .navbar-toggler {
    color: var(--text-muted);
    border-color: var(--border);
}

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

/* Publication author list: the `bold` author (yourself) is underlined, the others muted */
.author-self {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.author-muted {
    color: var(--text-soft);
}

/* Publication badges: background comes from the `color` field in a publication's
   `badges` front matter (any CSS color word, e.g. green, purple, steelblue).
   Citation badges use badge-info (blue). */
.badge-colored {
    color: #fff;
}

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

/* Translucent scrim over cover images on mobile publication cards */
.pub-item-scrim {
    background-color: rgba(22, 24, 29, 0.92);
}

/* Soft shadows read as glow on dark backgrounds; use borders for definition */
.shadow-sm {
    box-shadow: 0 .125rem .35rem rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border);
}

::selection {
    background: rgba(124, 179, 255, 0.3);
}
