/* User-requested typography and figure refinements for Minimal Light. */
email, pre, code, .bibref {
  font-family: "Maple Mono", "SFMono-Regular", Consolas, monospace;
}

h1 {
  font-size: 1.75rem;
}

email {
  font-size: 0.875rem;
}

small {
  font-size: 0.6875rem;
}

strong {
  font-weight: 600;
}

.intro-text,
.experience-list .affiliation-content p,
.open-source-item .project-description {
  font-size: 13px;
}

.publications ol.bibliography li {
  min-height: 0;
  margin-bottom: 28px;
}

.publications .pub-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.publications ol.bibliography li .abbr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  height: auto;
  margin: 0;
  padding: 0;
}

.publications ol.bibliography li .abbr abbr {
  position: static;
  padding: 4px 9px;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.publications ol.bibliography li .abbr > a {
  display: flex;
  justify-content: center;
  width: 100%;
}

.publications ol.bibliography li .teaser {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 180px;
  margin: 0;
  border-radius: 3px;
  box-shadow: none;
  background: #fff;
  object-fit: contain;
}

.publications ol.bibliography li .col-sm-9 {
  width: auto;
  min-width: 0;
  padding: 0;
}

.publications ol.bibliography li .title {
  font-weight: 600;
}

.publications ol.bibliography li .author,
.publications ol.bibliography li .periodical {
  font-size: 12px;
}

.publications .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.publications ol.bibliography li .links .btn {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.publications ol.bibliography li .links .btn:hover,
.publications ol.bibliography li .links .btn[aria-expanded="true"] {
  color: var(--global-theme-color);
}

.publications .btn:focus-visible,
.bibtex-panel :focus-visible {
  outline: 2px solid var(--global-theme-color);
  outline-offset: 3px;
}

.bibtex-panel {
  min-width: 0;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe2e9;
  border-radius: 4px;
  background: #f6f8fa;
}

.bibtex-panel[hidden] {
  display: none;
}

.bibtex-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.bibtex-copy {
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.bibtex-panel pre {
  max-width: none;
  max-height: 280px;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 0.75rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-y: auto;
}

.bibtex-panel code {
  color: inherit;
}

@media (prefers-color-scheme: dark) {
  .publications ol.bibliography li .links .btn {
    color: #eeeff0;
  }

  .publications ol.bibliography li .links .btn:hover,
  .publications ol.bibliography li .links .btn[aria-expanded="true"] {
    color: var(--global-theme-color);
  }

  .bibtex-panel {
    border-color: #424653;
    background: #272a35;
  }
}

@media screen and (max-width: 600px) {
  .publications .pub-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .publications ol.bibliography li .abbr {
    max-width: 300px;
  }

  .publications ol.bibliography li .teaser {
    max-height: 220px;
  }
}
