:root {
    --bg: #fdfdfd;
    --text: #2c3c4c;
    --heading-1: #223344;
    --heading-2: #334455;
    --border: #dddddd;
    --link: #2471a3;
    --link-hover: #f09228;
    --hr: #d6dbdf;
    --highlight-bg: #f7efd4;
    --highlight-inline: #fff8df;
    --press-border: #ddeeff;
    --stars: #666666;
    --footer-link: #2471a3;
    --toggle-bg: #eef1f4;
    --toggle-border: #cfd6dd;
}

:root[data-theme="dark"] {
    --bg: #12171d;
    --text: #c3ccd5;
    --heading-1: #e6edf3;
    --heading-2: #c9d4de;
    --border: #2a333d;
    --link: #6cb6e8;
    --link-hover: #f5a94a;
    --hr: #2a333d;
    --highlight-bg: #3a3320;
    --highlight-inline: #4a4020;
    --press-border: #2a333d;
    --stars: #8a939c;
    --footer-link: #6cb6e8;
    --toggle-bg: #1e252d;
    --toggle-border: #2a333d;
}

html {-webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; -ms-text-size-adjust: 100%;}
body {background-color: var(--bg); color: var(--text); margin: 0; font-size: 15px; transition: background-color 0.2s ease, color 0.2s ease;}
h1 {margin-bottom: 32px; font-size: 2.4em;}
h2 {margin-top: 48px;}
h1, h2 {color: var(--heading-1);}
h3, h4, h5 {color: var(--heading-2);}
h1, h2, h3, h4, h5, a, p, span, body, div {font-weight: normal; font-family: "Lato", Verdana, Helvetica, sans-serif;}
.header {width: 100%; padding-top: 16px; padding-bottom: 0px;}
.header-div {border-bottom: var(--border) 2px solid; padding-bottom: 16px;}
.header-profile-picture, .header-text {display: inline-block;}
.header-name {display: flex; align-items: center; justify-content: space-between; gap: 12px;}
.header-name h1 {margin-top: 0; margin-bottom: 2px;}
.header-subtitle {margin-bottom: 12px;}
.header-profile-picture {width: 112px; height: 140px; margin-right: 16px; border-radius: 6px; background-color: #fff; background-image: url(files/me.png); background-position: center; background-size: cover; background-repeat: no-repeat;}
.content {max-width: 780px; padding-left: 16px; padding-right: 16px; margin: auto; margin-top: 48px;}
.hr {width: 100%; height: 1px; margin: 48px 0; background-color: var(--hr);}
a {color: var(--link); text-decoration: none;}
a:focus, a:hover {color: var(--link-hover);}
p {line-height: 1.5em;}
.nobreak {white-space: nowrap;}
.noselect {-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;}
.bold {font-weight: bold;}
.italic {font-style: italic;}
.bulletpoints {line-height: 1.5em;}
.row {box-sizing: border-box;}
.row-media {display: block; float: left; width: 160px; height: 90px; background-position: center; background-size: contain; background-repeat: no-repeat;}
.row-text {display: block; float: left; margin-left: 12px; line-height: 1.5em; max-width: 598px;}
.row-text span {line-height: inherit;}
.clearfix {content: ""; clear: both; display: table;}
.publication {margin-bottom: 32px; padding-left: 8px;}
.publication.highlight {background-color: var(--highlight-bg); width: 100%; padding-top: 8px; padding-bottom: 8px; border-radius: 4px;}
.press {width: 100px; height: 80px; border: 1px solid var(--press-border); margin-right: 12px; background-size: cover;}
.img-contain {background-size: contain !important;}
.footer {border-top: var(--border) 2px solid; width: 100%; max-width: 780px; margin: auto;}
.footer-content {color: var(--heading-2); font-size: 10px; padding: 6px 0; max-width: 780px; margin: auto;}
.footer-content a {color: var(--footer-link) !important; text-decoration: underline;}
.footer-content a:hover {color: var(--link-hover) !important;}
.stars {font-size: 10px; display: inline-block; margin-left: 6px; color: var(--stars);}

.highlight-inline {background-color: var(--highlight-inline);}

.header-links {display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px;}
.header-links a.icon-link {display: inline-flex; align-items: center; justify-content: center; color: var(--link); transition: color 0.15s ease, transform 0.15s ease;}
.header-links a.icon-link:hover, .header-links a.icon-link:focus {color: var(--link-hover); transform: translateY(-2px);}
.header-links a.icon-link svg {width: 22px; height: 22px; display: block;}

.research-lead {border-left: 3px solid var(--link); padding: 4px 0 4px 16px; margin: 8px 0 16px; font-size: 1.08em; color: var(--heading-2);}
.research-tracks {display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px;}
.research-track {flex: 1 1 300px; display: flex; gap: 14px; background-color: var(--highlight-inline); border: 1px solid var(--border); border-radius: 10px; padding: 16px;}
.track-num {flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background-color: var(--link); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.95em;}
.track-body {flex: 1 1 auto;}
.track-title {display: block; font-weight: bold; color: var(--heading-1); margin-bottom: 6px; line-height: 1.35em;}
.track-body p {margin: 0 0 10px;}
.track-tags {display: flex; flex-wrap: wrap; gap: 8px;}
.track-tag {display: inline-block; font-size: 0.82em; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); background-color: var(--bg); color: var(--stars);}
a.track-tag {color: var(--link);}
a.track-tag:hover {color: var(--link-hover); border-color: var(--link-hover);}

.affiliations {display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px;}
.affiliation {display: flex; flex-direction: column; align-items: center; text-align: center; width: 130px; color: var(--text); transition: transform 0.15s ease;}
.affiliation:hover {transform: translateY(-3px); color: var(--link-hover);}
.affiliation-logo {width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--border); background-color: #fff; background-position: center; background-size: contain; background-repeat: no-repeat; padding: 8px; box-sizing: border-box;}
.affiliation-name {display: block; margin-top: 8px; line-height: 1.35em; font-size: 0.95em;}

.news {max-height: 220px; overflow-y: auto; padding-right: 8px;}
.news p {margin: 6px 0;}
.news .news-date {display: inline-block; min-width: 88px; color: var(--stars); font-variant-numeric: tabular-nums;}

.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex: 0 0 auto;
    border: 1px solid var(--toggle-border); border-radius: 50%;
    background-color: var(--toggle-bg); color: var(--heading-1);
    cursor: pointer; font-size: 18px; line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover {transform: scale(1.08);}
.theme-toggle:focus {outline: none;}
.theme-toggle svg {display: block;}
.theme-toggle .icon-sun {display: none;}
.theme-toggle .icon-moon {display: block;}
:root[data-theme="dark"] .theme-toggle .icon-sun {display: block;}
:root[data-theme="dark"] .theme-toggle .icon-moon {display: none;}

@media only screen and (max-width: 1150px) {
    .header-profile-picture, .header-text {display: block; margin: auto; text-align: center;}
    .header-profile-picture {margin-bottom: 12px; width: 132px; height: 165px;}
    .header-name {justify-content: center;}
    .header-links {justify-content: center;}
    .header-links a.icon-link svg {width: 26px; height: 26px;}
    body {font-size: 18px;}
    a.btn {font-size: 14px; padding: 2px 6px;}
}

@media only screen and (max-width: 1000px) {
    .publication {margin-bottom: 46px;}
    .publication .row-media {width: 260px; height: 130px; margin: auto; margin-bottom: 12px; display: block;}
    .publication .row-text {display: block; width: 100%; margin-left: 0;}
    .press {display: block;}
    .affiliations {justify-content: center; gap: 24px;}
    .affiliation {width: 150px;}
    .affiliation-logo {width: 110px; height: 110px;}
}
