:root {
  --laplacian-docs-accent: #2e63b8;
}

html.theme--documenter-dark {
  --laplacian-docs-accent: #1abc9c;
}

#documenter .content .posegraph-research-figure {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 2.5rem;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
  box-shadow: none;
}

.posegraph-research-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.posegraph-research-figure a {
  display: block;
}

.posegraph-research-figure > p {
  margin: 0;
}

.posegraph-research-figure figcaption {
  padding: 0.9rem 1.1rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #596170;
  border-top: 0;
}

#documenter .content .posegraph-ground-truth-figure {
  width: min(420px, 100%);
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.posegraph-ground-truth-figure a {
  width: min(100px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
}

.posegraph-ground-truth-figure img {
  border-radius: inherit;
}

.posegraph-ground-truth-figure figcaption {
  margin-top: 0.8rem;
  text-align: center;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
}

.publication-timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2.75rem;
}

.publication-timeline::before {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0.7rem;
  width: 2px;
  content: "";
  background: var(--laplacian-docs-accent);
  opacity: 0.35;
}

.publication-card {
  position: relative;
  margin: 0 0 1.25rem;
  overflow: visible;
  background: #fff;
  border: 1px solid #d8dbe2;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.8rem rgba(24, 28, 38, 0.06);
}

.publication-card::before {
  position: absolute;
  top: 1.45rem;
  left: -2.45rem;
  width: 0.8rem;
  height: 0.8rem;
  content: "";
  background: var(--laplacian-docs-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--laplacian-docs-accent);
}

.publication-card summary {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) 1.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

.publication-card summary::-webkit-details-marker {
  display: none;
}

.publication-card summary::after {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--laplacian-docs-accent);
  text-align: center;
  content: "+";
}

.publication-card[open] summary::after {
  content: "−";
}

.publication-card[open] summary {
  border-bottom: 1px solid #e2e4e9;
}

.publication-year {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--laplacian-docs-accent);
  letter-spacing: 0.05em;
}

.publication-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.publication-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.publication-venue {
  font-size: 0.83rem;
  color: #686d78;
}

.publication-body {
  padding: 1.25rem;
}

.publication-authors {
  margin-top: 0 !important;
  font-weight: 600;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.publication-links a,
.bibtex-copy {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--laplacian-docs-accent);
  text-decoration: none;
  background: #eaf0f8;
  border: 1px solid #b9c9e2;
  border-radius: 999px;
}

.publication-links a:hover,
.bibtex-copy:hover {
  color: #fff;
  background: var(--laplacian-docs-accent);
  border-color: var(--laplacian-docs-accent);
}

.citation-block {
  margin-top: 1.1rem;
  overflow: hidden;
  border: 1px solid #d8dbe2;
  border-radius: 0.5rem;
}

.citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: #f6f7f9;
}

.bibtex-copy {
  cursor: pointer;
}

.citation-block pre {
  max-height: 19rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 0;
}

.citation-block .copy-button {
  display: none;
}

html.theme--documenter-dark .publication-card {
  background: #282f2f;
  border-color: #5e6d6f;
  box-shadow: none;
}

html.theme--documenter-dark #documenter .content .posegraph-research-figure {
  background: #282f2f;
  box-shadow: none;
}

html.theme--documenter-dark #documenter .content .posegraph-ground-truth-figure {
  background: transparent;
  border: 0;
}

html.theme--documenter-dark #documenter .content .posegraph-research-figure figcaption {
  color: #d5dddd;
}

html.theme--documenter-dark #documenter .content .posegraph-ground-truth-figure figcaption {
  background: #282f2f;
}

html.theme--documenter-dark .publication-card::before {
  border-color: #1f2424;
}

html.theme--documenter-dark .publication-card[open] summary {
  border-bottom-color: #5e6d6f;
}

html.theme--documenter-dark .publication-venue {
  color: #c3cccc;
}

html.theme--documenter-dark .publication-links a,
html.theme--documenter-dark .bibtex-copy {
  color: #bff4e8;
  background: #173c36;
  border-color: #2d7566;
}

html.theme--documenter-dark .publication-links a:hover,
html.theme--documenter-dark .bibtex-copy:hover {
  color: #1f2424;
  background: var(--laplacian-docs-accent);
}

html.theme--documenter-dark .citation-block {
  border-color: #5e6d6f;
}

html.theme--documenter-dark .citation-header {
  background: #1f2424;
}

@media screen and (max-width: 620px) {
  .publication-timeline {
    padding-left: 1.75rem;
  }

  .publication-timeline::before {
    left: 0.35rem;
  }

  .publication-card::before {
    left: -1.75rem;
  }

  .publication-card summary {
    grid-template-columns: 1fr 1.5rem;
    gap: 0.6rem;
  }

  .publication-year {
    grid-column: 1;
  }

  .publication-heading {
    grid-column: 1;
  }

  .publication-card summary::after {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}
