@charset "utf-8";
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

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;
    }
}
.portrait-crop {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 23%;
}

/* Theme colors */
html[data-theme="light"] {
    color-scheme: light;
    --page-bg: #f8f9fa;
    --surface: #fff;
    --text: #212529;
    --muted: #6c757d;
    --border: #dee2e6;
    --link: #0056b3;
    --page-texture: url("../images/mesh-texture.webp");
    --page-texture-size: 768px 768px;
    --navbar-bg: linear-gradient(115deg, rgba(25, 174, 187, 0.98), rgba(8, 127, 140, 0.98) 52%, rgba(7, 91, 131, 0.98));
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #202329;
    --surface: #292e35;
    --text: #e7e9ed;
    --muted: #b0b5bd;
    --border: #424851;
    --link: #8ab4f8;
    --page-texture: url("../images/mesh-texture.webp");
    --page-texture-size: 768px 768px;
    --navbar-bg: linear-gradient(115deg, rgba(62, 111, 121, 0.98), rgba(48, 91, 102, 0.98) 52%, rgba(43, 75, 94, 0.98));
}

body, html[data-theme] body { background-color: var(--page-bg) !important; color: var(--text); }
html[data-theme] .bg-light { background-color: var(--page-bg) !important; }
html[data-theme] body {
    background-image: var(--page-texture);
    background-size: var(--page-texture-size);
    background-repeat: repeat;
    background-attachment: fixed;
}
html[data-theme] .bg-white,
html[data-theme] .card,
html[data-theme] .publication-card { background-color: var(--surface) !important; color: var(--text); }
html[data-theme] .navbar {
    background: var(--navbar-bg) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 18px rgba(0, 52, 76, 0.2), inset 0 1px rgba(255, 255, 255, 0.22) !important;
}
html[data-theme] .navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.12), transparent 42%, rgba(0, 36, 70, 0.08));
}
html[data-theme] .footer { background-color: var(--surface) !important; }
html[data-theme] .text-muted { color: var(--muted) !important; }
html[data-theme] .text-body { color: var(--text) !important; }
html[data-theme] .border-gray,
html[data-theme] .border,
html[data-theme] .border-bottom,
html[data-theme] .border-top { border-color: var(--border) !important; }
html[data-theme] a { color: var(--link); }
html[data-theme] .navbar-brand,
html[data-theme] .navbar .nav-link,
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3,
html[data-theme] h4, html[data-theme] h5, html[data-theme] h6 { color: var(--text); }
html[data-theme] .navbar .navbar-brand,
html[data-theme] .navbar .nav-link,
html[data-theme] .navbar .navbar-toggler,
html[data-theme] .navbar .theme-toggle { color: #fff !important; }
html[data-theme] .navbar .theme-toggle { border-color: rgba(255, 255, 255, 0.7); }
html[data-theme] .navbar .theme-toggle:hover,
html[data-theme] .navbar .theme-toggle:focus { background-color: rgba(255, 255, 255, 0.15); color: #fff !important; }
html[data-theme="dark"] .badge-light { background-color: #3a4049; color: var(--text); }

.theme-toggle {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    padding: 0.35rem 0.75rem;
    font: inherit;
    white-space: nowrap;
}
.theme-toggle:hover, .theme-toggle:focus { background: var(--surface); color: var(--text); }
.navbar > .container, .navbar > .container-fluid, .navbar > .container-lg { position: relative; z-index: 1; }
.navbar-theme-toggle {
    position: absolute;
    z-index: 1031;
    top: 0.35rem;
    right: 15px;
}
@media (min-width: 576px) {
    .navbar .navbar-collapse { padding-right: 6.5rem; }
}

.publication-cover { display: block; aspect-ratio: 3 / 2; object-fit: contain; background: #f1f3f5; }
.publication-cover-mobile { display: block; width: 100%; max-height: 360px; aspect-ratio: 16 / 9; object-fit: contain; background: #f1f3f5; }
.publication-cover-wide { aspect-ratio: 16 / 9; }
.publication-mobile-details { background-color: var(--surface); }
html[data-theme="dark"] .publication-cover,
html[data-theme="dark"] .publication-cover-mobile { background-color: #30353d; }

@media (max-width: 575.98px) {
    .theme-toggle { margin: 0.25rem 0; }
    .theme-toggle-label { display: none; }
    .navbar-toggler { margin-right: 3.5rem; }
}
