/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 1rem;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 1.5rem;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 2.125rem;
}

.one {
  width: 200px;
  height: 200px;
  position: relative;
}

.two {
  width: 200px;
  height: 200px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

/* -------------------------------------------------------------------------- */
/* Publication entries (title, authors ◆/◇, venue, optional link row, abstract) */
/* -------------------------------------------------------------------------- */

.pub-title {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
  font-weight: 700;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.pub-authors {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

.pub-venue {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
  margin-bottom: 0.05rem;
  line-height: 1.4;
}

.pub-venue em {
  font-style: italic;
}

.pub-links {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
  margin: 0.2rem 0 0;
  line-height: 1.45;
}

.pub-sep {
  color: var(--muted);
  padding: 0 0.25rem;
  user-select: none;
}

.pub-abstract {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: inherit;
  line-height: 1.5;
  margin: 0.35rem 0 0;
  text-align: left;
}

/* Tight grid: small gaps between papers; extra space only after last row */
table.pub-table > tbody > tr > td {
  padding: 2px 10px !important;
  vertical-align: top;
}

table.pub-table > tbody > tr:not(:last-child) > td {
  padding-bottom: 4px !important;
}

table.pub-table > tbody > tr:last-child > td {
  padding-bottom: 1.75rem !important;
}

td.pub-heading-cell {
  padding: 6px 10px 2px !important;
}

.pub-thumb-placeholder {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--toggle-border);
  border-radius: 6px;
  background: var(--toggle-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}

.one .pub-thumb-media {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------- */
/* Top bar, theme (al-folio–inspired), anchor offset for fixed header          */
/* -------------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --link: #1772d0;
  --link-hover: #f09228;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(0, 0, 0, 0.08);
  --header-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  --toggle-bg: #f3f4f6;
  --toggle-border: rgba(0, 0, 0, 0.12);
}

[data-theme='dark'] {
  --bg: #121212;
  --text: #e8e8e8;
  --muted: #9ca3af;
  --link: #58a6ff;
  --link-hover: #f0b429;
  --header-bg: rgba(18, 18, 18, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);
  --header-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  --toggle-bg: #2d2d2d;
  --toggle-border: rgba(255, 255, 255, 0.12);
}

[data-theme='dark'] span.highlight {
  background-color: #3d3d1a;
  color: var(--text);
}

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  color: var(--text);
}

body {
  margin: 0;
  padding-top: 3.25rem;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Do not set body to color: inherit — it would override var(--text) and fall back to UA black */
td,
th,
tr,
p {
  color: inherit;
}

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

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

#publications {
  scroll-margin-top: 4.5rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}

.site-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text) !important;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-brand:hover,
.nav-brand:focus {
  color: var(--link) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

a.nav-link {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--muted) !important;
  text-decoration: none;
}

a.nav-link:hover,
a.nav-link:focus {
  color: var(--link) !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  background: var(--toggle-bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  line-height: 1;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.theme-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.theme-icon-moon {
  display: none;
}

[data-theme='dark'] .theme-icon-sun {
  display: none;
}

[data-theme='dark'] .theme-icon-moon {
  display: inline;
}

.main-table {
  position: relative;
}

.site-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.25rem;
  text-align: center;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.about-bio {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* Profile photo: natural image size (no stretch); border + padding act as a picture frame */
.profile-photo-cell {
  vertical-align: middle;
}

.profile-photo-link {
  display: inline-block;
  max-width: 100%;
  text-decoration: none;
  line-height: 0;
}

.profile-photo-link:hover .profile-photo-frame,
.profile-photo-link:focus-visible .profile-photo-frame {
  border-color: var(--link);
}

.profile-photo-frame {
  display: inline-block;
  max-width: 100%;
  padding: 10px;
  border: 3px solid var(--toggle-border);
  box-sizing: border-box;
  background: var(--toggle-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme='dark'] .profile-photo-frame {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.profile-photo-frame--rounded {
  border-radius: 12px;
}

.profile-photo-frame--square {
  border-radius: 0;
}

.profile-photo-img {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

.profile-photo-frame--rounded .profile-photo-img {
  border-radius: 6px;
}

.email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.34em;
  text-align: center;
}

.email-label {
  white-space: nowrap;
  line-height: 6;
}

/* Email shown as image — not selectable as text (still in mailto href for bots / view source) */
.email-display-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.email-display-link img {
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.email-display-link:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}