:root {

  --cardinal: #750014;
  --very-light-orange: #fdf3ea;
  --very-light-gray: #f1f1f1;
  --light-gray: #c2c0bf;
  --dark-gray: #8a8b8c;

  --font-size: 14px;
  --mobile-font-size: 16px;

  --line-height: 24px;
  --mobile-line-height: 26px;

  --section-title-font-size: 20px;
  --mobile-section-title-font-size: 22px;

  --name-font-size: 32px;

  --code-font-size: 12px;
  --code-line-height: 18px;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato/Lato-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Lato", "Helvetica Neue", Ubuntu, Arial, PingFang, SimHei, sans-serif;
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: black;
  font-weight: normal;
  background: white;
}

.blockquote {
  font-size: var(--font-size);
  line-height: var(--line-height);
}

body .container,
body .container-fluid {
  max-width: 768px;
}

body .row {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

b.zh {
  font-weight: 900;
}

a {
  color: var(--cardinal);
  text-decoration: none;
  transition: color 0.1s ease-in-out, border-color 0.1s ease-in-out;
}

a:hover {
  color: var(--cardinal);
  text-decoration: underline;
}

.highlight {
  color: var(--cardinal);
  font-weight: bold;
}

.section-item {
  margin-top: 20px;
}

.section-head {
  margin-top: 30px;
}

.section-title {
  font-weight: normal;
  font-size: var(--section-title-font-size);
  line-height: var(--line-height);
  display: inline-block;
}

.col-wrapper {
  padding-left: 10px;
  padding-right: 10px;
}

.sec-wrapper {
  margin-top: 30px;
}

.section-sub {
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--dark-gray);
}

.representative {
  background-color: var(--very-light-orange);
  border-radius: 2px;
}

@media (max-width: 767.98px) {
  body {
    font-size: var(--mobile-font-size);
    line-height: var(--mobile-line-height);
  }

  .blockquote {
    font-size: var(--mobile-font-size);
    line-height: var(--mobile-line-height);
  }

  .section-title {
    font-size: var(--mobile-section-title-font-size);
    line-height: var(--mobile-line-height);
  }
}

@media (min-width: 768px) {
  .section-sub {
    padding-left: 0;
  }
}

/*-----------------
 * Home
 *-----------------*/

.home-wrapper .picture img {
  width: 100%;
  max-width: 200px;
  margin-right: 20px;
}

.home-wrapper .description {
  margin-top: 30px;
}

.home-wrapper .description .name {
  font-size: var(--name-font-size);
  margin-bottom: 20px;
}

.home-wrapper .social {
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
}

/*------------------
 * Bio
 *------------------*/

.bio-wrapper .info,
.bio-wrapper .info:hover {
  color: black;
  text-decoration: none;
}

.bio-wrapper .zh-name:hover {
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.bio-wrapper .name-icon {
  margin-left: -3px;
  margin-right: -3px;
}

/*------------------
 * Name
 *------------------*/

.name-wrapper .zh-a,
.name-wrapper .zh-a:hover {
  color: black;
  text-decoration: none;
  border-bottom: 1.5px dashed currentColor;
}

.name-wrapper .blockquote-footer {
  font-size: var(--font-size);
  line-height: var(--line-height);
  margin-top: 0;
}

.name-wrapper .blockquote-footer .zh-a,
.name-wrapper .blockquote-footer .zh-a:hover,
.name-wrapper .blockquote-footer .en-a,
.name-wrapper .blockquote-footer .en-a:hover {
  color: currentColor;
}

.name-wrapper .blockquote-footer .en-a,
.name-wrapper .blockquote-footer .en-a:hover {
  text-decoration: underline;
  border-bottom: none;
}

/*------------------
 * Publications
 *------------------*/

.pub-wrapper .section-item {
  margin-top: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pub-wrapper .title a {
  color: black;
  font-weight: bold;
}

.pub-wrapper .title a:hover {
  color: black;
}

.pub-wrapper .link .venue {
  font-weight: bold;
}

.pub-wrapper .link a {
  color: black;
}

.pub-wrapper .link a:hover {
  color: black;
}

.pub-wrapper .authors {
  color: var(--dark-gray);
}

.pub-wrapper .authors a {
  color: var(--dark-gray);
}

.pub-wrapper .authors me {
  color: var(--dark-gray);
  font-weight: bold;
}

.pub-wrapper .figure img {
  max-width: 160px;
  width: 100%;
}

@media (max-width: 767.98px) {
  .pub-wrapper .figure {
    margin-bottom: 10px;
  }
}

/*------------------
 * Bibtex
 *------------------*/

.snippet {
  position: relative;
  background: var(--very-light-gray);
  font-size: var(--code-font-size);
  line-height: var(--code-line-height);
  margin-top: 10px;
  margin-bottom: 0;
  border-radius: 2px;
}

.representative .snippet {
  background: white;
}

.snippet .btn {
  transition: opacity 0.1s ease-in-out, border-color 0.1s ease-in-out;
  opacity: 0.9;
  padding: 0.5px 4px;
  position: absolute;
  right: 4px;
  top: 4px;
  font-size: 14px;
  line-height: 21px;
  background-color: white;
  border: 2px solid var(--light-gray);
  border-radius: 2px;
}

.snippet .btn:hover {
  opacity: 1;
  background-color: white;
  border-color: var(--dark-gray);
}

.snippet .btn:active {
  opacity: 1;
  background-color: var(--very-light-gray);
  border-color: var(--dark-gray);
}

.snippet code {
  display: block;
  overflow-x: auto;
}

/*------------------
 * Experience
 *------------------*/

.exp-wrapper .title a {
  font-weight: bold;
}

.exp-wrapper a,
.exp-wrapper a:hover {
  color: black;
}

.exp-wrapper .time {
  text-align: right;
}

.exp-wrapper .location {
  color: var(--dark-gray);
}

@media (max-width: 767.98px) {
  .exp-wrapper .time {
    text-align: left;
    color: var(--dark-gray);
  }

  .exp-wrapper .location {
    display: none;
  }
}

/*------------------
 * Footer
 *------------------*/

.citation {
  font-size: var(--code-font-size);
  line-height: var(--code-line-height);
  margin-top: 40px;
  margin-bottom: 30px;
}

/* Experience entries */
.experience-entry { scroll-margin-top: 20px; }
.experience-entry > div:last-child { min-width: 0; }
@media (max-width: 575.98px) {
  .experience-entry { flex-direction: column; align-items: flex-start !important; }
  .experience-entry > div:first-child { margin-bottom: 12px; }
}

/* Experience and publication logos */
.profile-overview { margin: 24px 10px 0; }
.overview-row { margin-bottom: 18px; }
.overview-label { font-size: 13px; color: #666; margin-bottom: 10px; }
.experience-overview-links,
.venue-overview-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.experience-overview-links a,
.venue-overview-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 8px 12px;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  background: white;
}
.profile-overview a:hover { border-color: #c2c0bf; }
.experience-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  max-width: 100%;
  height: 74px;
  overflow: hidden;
}
.experience-logo img { width: 160px; max-width: 100%; height: 74px; object-fit: contain; }
.experience-overview-links a[href="#georgia-tech"] img,
.experience-overview-links a[href="#zocket"] img { height: auto; }
.venue-overview-links img { width: 140px; max-width: 100%; height: 62px; object-fit: contain; }
/* Display the IJCNN wordmark without another conference year's date. */
.ijcnn-wordmark {
  display: block;
  width: 122px;
  height: 34px;
  max-width: 100%;
  background-image: url('../assets/logo/IJCNN.png');
  background-repeat: no-repeat;
  background-size: 333px 110px;
  background-position: -106px -29px;
}
.profile-overview a:focus-visible { outline: 2px solid var(--cardinal); outline-offset: 4px; }
@media (max-width: 575.98px) {
  .experience-overview-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .experience-overview-links a { height: 80px; padding: 6px 10px; }
  .experience-logo { height: 66px; }
  .experience-logo img { height: 66px; }
  .experience-overview-links a[href="#georgia-tech"] img,
  .experience-overview-links a[href="#zocket"] img { height: auto; }
  .venue-overview-links { gap: 10px; }
  .venue-overview-links a { height: 66px; padding: 8px; }
  .venue-overview-links img { height: 48px; }
  .ijcnn-wordmark { width: 73px; height: 20px; background-size: 200px 66px; background-position: -64px -18px; }
}

/* Keep the opening page compact while retaining readable logos. */
@media (min-width: 1200px) {
  body .container-fluid { max-width: 900px; }
  .home-wrapper .picture img { max-width: 180px; }
  .home-wrapper .description { margin-top: 0; }
  .home-wrapper .description .name { margin-bottom: 12px; }
  .profile-overview { margin-top: 18px; }
  .experience-overview-links { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .experience-overview-links a { height: 76px; padding: 6px 8px; }
  .experience-logo { height: 64px; }
  .experience-logo img { height: 64px; }
  .experience-overview-links a[href="#georgia-tech"] img,
  .experience-overview-links a[href="#zocket"] img { height: auto; }
  .venue-overview { display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px; }
  .venue-overview .overview-label { margin-bottom: 0; }
  .venue-overview-links a { height: 62px; }
  .venue-overview-links img { height: 44px; }
  .bio-wrapper { margin-top: 20px; }
  .bio-wrapper .section-head { margin-top: 0; }
  .bio-wrapper .section-item { margin-top: 12px; }
  .bio-wrapper p:last-child { margin-bottom: 0; }
}

@media (min-width: 1200px) {
  .home-wrapper { margin-top: 24px; }
  #exp { margin-top: 20px; }
  #exp .section-head { margin-top: 0; }
}
@media (min-width: 1200px) {
  .profile-overview .overview-row { margin-bottom: 12px; }
  .venue-overview-links a { height: 52px; }
  .bio-wrapper { line-height: 22px; }
  .bio-wrapper p { margin-bottom: 12px; }
  .experience-entry { align-items: flex-start !important; }
  .experience-entry img { max-height: 90px; object-fit: contain; }
}

/* Enlarge INSAIT within its existing logo areas. */
.experience-overview-links a[href="#insait"] img { transform: scale(1.4); }
#insait > div:first-child { height: 100px; overflow: hidden; }
#insait > div:first-child img { transform: scale(1.35); }
@media (max-width: 1199.98px) {
  #insait > div:first-child img { max-height: 90px; object-fit: contain; }
}
