/* 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;
  transition: color .2s ease;
}

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

body {
  background: #f7f7f9;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.6;
}

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

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

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

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 80%;
  aspect-ratio: 1 / 1;     /* keeps it square like 160x160 did */
  position: relative;
  overflow: hidden;        /* prevents overflow when using object-fit */
}

.two {
  position: absolute;
  inset: 0;                /* top/right/bottom/left = 0 */
  opacity: 0;
  transition: opacity .2s ease-in-out;
}
/* Keep table layout controlling ratios */
.thumbcell{
  width: 28%;
  padding: 10px 12px 10px 0;
  vertical-align: middle;
}

.textcell{
  width: 72%;
  padding: 10px 0 10px 12px;
  vertical-align: middle;
}

/* Center content INSIDE cells */
.cell-inner{
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  height: 100%;
}

/* text should remain left-aligned */
.textcell .cell-inner{
  justify-content: flex-start;
}

.thumb-video{
  width: 100%;
  max-width: 320px;     /* controls visual size */
  height: auto;
  display: block;
  border-radius: 6px;  /* optional polish */
}

.pubtable tr{
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-radius: 10px;
}

.pubtable .thumbcell{
  padding: 16px 12px 16px 16px;
}

.pubtable .textcell{
  padding: 16px 16px 16px 12px;
}

/* Thumbnail images */
.thumbcell img{
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Venue line */
.venue{
  font-size: 17px;
  color: #555;
}

/* Paper/Github link buttons */
.pub-links{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pub-links a{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: 15px;
  border: 1px solid #1772d0;
  border-radius: 20px;
  color: #1772d0;
  transition: background .2s ease, color .2s ease;
}

.pub-links a:hover{
  background: #1772d0;
  color: #fff;
}

/* Description paragraph inside pub entries */
.pub-desc{
  font-size: 17px;
  color: #444;
  line-height: 1.5;
}

/* Footer */
.footer{
  text-align: center;
  padding: 32px 16px 24px;
  font-size: 14px;
  color: #999;
}



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

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

/* ---------- MOBILE RESPONSIVE ---------- */
@media (max-width: 768px){

  /* Stack bio and photo vertically */
  .biotable tr{
    display: flex;
    flex-direction: column-reverse;
  }

  .biotable td{
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2.5% !important;
  }

  .photocell{
    text-align: center;
  }

  .photocell img{
    max-width: 200px;
  }

  /* Make rows stack vertically */
  .pubtable{
    border-spacing: 0 !important;
  }

  .pubtable tr{
    display: block;
    margin-bottom: 22px;
    overflow: hidden;
  }

  .pubtable td{
    display: block;
    width: auto !important;
    padding: 8px 16px;
    box-sizing: border-box;
  }

  .pubtable .thumbcell:first-child{
    padding-top: 16px;
  }

  .pubtable .textcell:last-child{
    padding-bottom: 16px;
  }

  /* Constrain all media to card width */
  .pubtable img,
  .pubtable video{
    max-width: 100%;
    width: 100%;
    height: auto;
    box-sizing: border-box;
  }

  .thumb-video{
    max-width: 100%;
  }

  /* Reduce font sizes for mobile */
  body, td, th, tr, p, a{ font-size: 16px; }
  strong{ font-size: 16px; }
  .papertitle{ font-size: 16px; }
  .venue{ font-size: 14px; }
  .pub-desc{ font-size: 14px; }
  .pub-links a{ font-size: 13px; }
  .name{ font-size: 1.6rem; }
  h2{ font-size: 1.3rem; margin-top: 8px; }


}
