/* Site-specific overrides for the visual theme in assets/css/main.css. */
.navbar-brand img.logo-light,
.navbar-brand img.logo-dark {
  display: inline-block;
  width: auto;
  max-width: none;
  vertical-align: middle;
}

.navbar-brand img.logo-light {
  filter: none;
}

.navbar-brand img.logo-dark {
  display: none;
  filter: brightness(0) invert(1);
}

.publications ol.bibliography li .links a.btn {
  border: 1px solid #000000 !important;
}

html[data-theme="dark"] .navbar-brand img.logo-light {
  display: none;
}

html[data-theme="dark"] .navbar-brand img.logo-dark {
  display: inline-block;
}

.profile-photo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 10px;
}

.publication-note {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--global-text-color-light);
}

.school-link {
  color: #286d8b;
  font-weight: 500;
}

.school-link:hover {
  color: #174d65;
}

.sustech-link {
  color: #ed6c00;
}

.sustech-link:hover {
  color: #c45100;
}

.siat-link {
  color: #3d55a7;
}

.siat-link:hover {
  color: #2d4080;
}

.ccf-a-label {
  color: #b71c1c;
  font-style: italic;
}

.publications ol.bibliography li .preview {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin-bottom: 0.5rem;
  cursor: zoom-in;
}

.publications ol.bibliography li .abbr {
  height: auto;
  min-height: 2rem;
}

.publications ol.bibliography li .abbr abbr {
  white-space: nowrap;
  color: #ffffff !important;
  background-color: #b71c1c !important;
}

.publications ol.bibliography li .publication-preview .overlay-abbr .badge {
  position: relative;
  z-index: 3;
  color: #ffffff !important;
  background-color: #b71c1c !important;
}

.research-interests ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.research-interests li {
  margin-bottom: 0.35rem;
}

.honor-group + .honor-group {
  margin-top: 1.25rem;
}

.honor-group h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.honor-table {
  margin-bottom: 0;
}

.honor-table th {
  width: 95px;
  color: var(--global-text-color-light);
  font-weight: 400;
}

#about,
#news,
#publications,
#research,
#honors {
  scroll-margin-top: 70px;
}

@media (max-width: 575.98px) {
  .navbar-brand img.logo-light,
  .navbar-brand img.logo-dark {
    height: 40px !important;
  }

  .profile-photo {
    height: 160px;
    margin-bottom: 1rem;
  }

  .news .table-responsive {
    max-height: none !important;
  }
}

/* Overlay the conference badges at the top-left corner of publication figures. */
.publications ol.bibliography li .publication-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 15px;
  padding: 0;
  border: 1px solid #000000;
  box-sizing: border-box;
}

.publications ol.bibliography li > .row > .col-sm-10 {
  position: relative;
  left: 15px;
}

html[data-theme="dark"] .publications ol.bibliography li .publication-preview {
  border-color: #ffffff;
}

.publications ol.bibliography li .publication-preview .overlay-abbr {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  height: auto;
  min-height: 0;
  margin: 0;
  line-height: 1;
}

.publications ol.bibliography li .publication-preview .preview {
  margin-bottom: 0;
}

.publications ol.bibliography li .publication-preview .publication-placeholder {
  cursor: default;
}

@media (min-width: 576px) {
  .publications ol.bibliography li > .row {
    align-items: stretch;
  }

  .publications ol.bibliography li .publication-preview {
    height: auto;
  }

  /* Let the text determine the row height, then fit the image inside it. */
  .publications ol.bibliography li .publication-preview .preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
  }
}

.publications ol.bibliography li .publication-preview:has(> .medium-zoom-image--hidden) .overlay-abbr {
  visibility: hidden;
}

html[data-theme="dark"] .publications ol.bibliography li .publication-preview .repo-img-light,
html:not([data-theme="dark"]) .publications ol.bibliography li .publication-preview .repo-img-dark {
  display: none !important;
}

.medium-zoom-overlay,
.medium-zoom-overlay--opened {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  opacity: 1 !important;
  background-color: #ffffff !important;
}

html[data-theme="dark"] .medium-zoom-overlay,
html[data-theme="dark"] .medium-zoom-overlay--opened {
  background-color: #1c1c1d !important;
}

.medium-zoom-image--opened {
  z-index: 2001 !important;
}


/* Consistent vertical rhythm between the homepage sections. */
.post article > .news,
.post article > .publications,
.post article > .research-interests,
.post article > .honors {
  margin-top: 1.5rem;
}

/* Two-column, centered honors and awards layout. */
.honor-columns {
  align-items: flex-start;
}

.honor-column {
  text-align: center;
}

.honor-column h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
  text-align: center;
}

.honor-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.honor-list li {
  margin-bottom: 0.55rem;
  line-height: 1.45;
  text-align: center;
}

.honor-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .honor-column + .honor-column {
    margin-top: 1.5rem;
  }
}


/* Bootstrap ScrollSpy marks the active link itself; style it like the reference theme. */
.navbar.navbar-light .navbar-nav .nav-item .nav-link.active {
  background-color: inherit;
  font-weight: bolder;
  color: var(--global-theme-color);
}

.navbar.navbar-light .navbar-nav .nav-item .nav-link.active:hover {
  color: var(--global-hover-color);
}


/* Match the spacing between the final publication and Honors to the News-to-Publications gap. */
.post article > .honors {
  margin-top: 2.5rem;
}

.news > .table-responsive,
.publications > .publication-note,
.publications > .bibliography {
  margin-left: 1.5rem;
}
