/* 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;
}

:root {
  --page-bg: #ffffff;
  --text-color: #111111;
  --link-color: #1772d0;
  --muted-bg: #f5f5f5;
  --panel-bg: #ffffff;
  --border-color: #ddd;
  --code-border: #ccc;
  --highlight-bg: #ffffd0;
  --button-bg: #f2f4f7;
  --button-text: #111111;
  --button-border: #cfd7e3;
  --focus-outline: #000000;
}

body.dark-mode {
  --page-bg: #0f1115;
  --text-color: #e8ecf1;
  --link-color: #7db7ff;
  --muted-bg: #171b21;
  --panel-bg: #12161c;
  --border-color: #3a414d;
  --code-border: #3a414d;
  --highlight-bg: #3b3420;
  --button-bg: #1b2230;
  --button-text: #e8ecf1;
  --button-border: #3a414d;
  --focus-outline: #e8ecf1;
}

body {
  background: var(--page-bg);
  color: var(--text-color);
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--link-color);
  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: 14px
}

body,
td,
th,
tr,
p,
strong,
heading,
papertitle,
name {
  color: var(--text-color);
}

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

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

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

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

.profile-links {
  margin: 18px 0 0;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--link-color);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.theme-toggle:hover {
  text-decoration: underline;
}

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

.profile-links i {
  width: 14px;
  flex: 0 0 14px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

/* .profile-links a:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
} */

.paper-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.paper-links i,
.paper-links .ai {
  width: 14px;
  flex: 0 0 14px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

/* .paper-links a:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
} */

.paper-media {
  padding-top: 40px;
  padding-right: 20px;
  padding-bottom: 40px;
  padding-left: 20px;
  width: 25%;
  vertical-align: middle;
}

.paper-details {
  width: 70%;
  vertical-align: middle;
}

/* Layout container styles to replace tables */
.container {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.site-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
}

.header-left {
  flex: 1 1 60%;
}

.header-right {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 4px;
}

.papers {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 28px;
}

.paper {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.paper-media {
  flex: 0 0 24%;
  padding: 12px 0;
}

.paper-details {
  flex: 1 1 auto;
  padding: 12px 0;
}

.paper-media .preview {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-style: none;
}

.paper-media img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-style: none;
}

.bibtex-container {
  background-color: var(--muted-bg);
  border-color: var(--border-color);
}

.bibtex-code {
  background-color: var(--panel-bg);
  border-color: var(--code-border);
  color: var(--text-color);
}

.bibtex-copy-btn {
  background-color: var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--button-border);
}

.bibtex-copy-btn:hover {
  filter: brightness(0.96);
}

.bibtex-copy-btn.copied {
  background-color: #4CAF50;
  border-color: #4CAF50;
  color: #ffffff;
}


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

.two {
  width: 160px;
  height: 160px;
  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: var(--highlight-bg);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  body {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Stack header content vertically on narrow viewports */
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .header-right {
    order: -1; /* show photo above text if desired */
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-left {
    width: 100%;
  }

  /* Stack media above details for each paper */
  .paper {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .paper-media,
  .paper-details {
    width: 100%;
  }

  .paper-media .preview,
  .paper-media img,
  video.preview {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  name {
    font-size: 28px;
    text-align: center;
    display: block;
  }

  heading {
    font-size: 20px;
  }

  .profile-links {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  name {
    font-size: 22px;
  }

  .paper-media .preview,
  .paper-media img,
  video.preview {
  }
  .theme-toggle span {
    display: none;
  }
}
