/* =========================================================================
   Wenxuan Li — personal website
   Stylesheet ported 1:1 from Jon Barron's website template
   (https://jonbarron.info/), the template used by Caiyuanhao Cai's site.
   The template is openly shared by its author for academic personal pages.
   ========================================================================= */

body {
  margin: 0px;
  background-color: #ffffff;
}

a {
  color: #063c85;
  text-decoration: none;
}

a:link, a:visited {
  color: #063c85;
  text-decoration: none;
}

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

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

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

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

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

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

/* First-author publications are highlighted with a light pink background. */
tr.first-author td {
  background-color: #fdeef2;
}

/* Publication figures — each teaser is shown at its own natural aspect
   ratio (the Jon Barron template style used by caiyuanhao1998.github.io):
   a fixed column width with automatic height, no forced frame. */
tr.paper-row td:first-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Co-author names render in plain black — whether or not they link to a
   Google Scholar profile — so they match the unlinked names. The paper /
   code / data resource links keep the standard blue. */
tr.paper-row a[href*="scholar.google.com"] {
  color: #000000;
}

/* -------------------------------------------------------------------------
   Light responsive layer (the original template is fixed-width; this only
   kicks in on narrow screens and does not change the desktop appearance).
   ------------------------------------------------------------------------- */
@media (max-width: 700px) {
  table.header-row,
  table.header-row tbody,
  table.header-row tr,
  table.header-row td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  tr.paper-row,
  tr.paper-row td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  tr.paper-row td img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}
