.navbar.logo {
  margin-top: 2.5rem;
}

.navbar-brand.logo {
  align-items: center;
}

.navbar-item.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0px;
}

.navbar-item.logo img {
  max-height: 80px;
  padding-right: 10px;
  padding-left: 10px;
}

.publication-title {
  font-family: "Quicksand";
  /* font-family: "Gochi Hand"; */
  font-weight: 500;
  font-size: small;
  font-style: normal;
  margin-top: 10px;
}

.publication-authors {
  font-family: 'Quicksand';
  font-weight: 500;
}

.publication-institute {
  font-family: 'Quicksand';
  font-weight: 400;
}

.author-list {
  margin-top: 10px;
  margin-bottom: 10px;
}

.content{
  font-family: 'Quicksand';
}

.lab-logo img{
  margin-top: 2px;
  max-height: 40px;
}

.lab-logo-resized img{
  margin-top: 5px;
  max-height: 38px;
  margin-right: 10px
}

.pdf_image {
  width: 100%;
  height: 600px;
  display: block;
  border: none;
}

.logo-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items:top;
  color: #50549b;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 20px;
}

.affiliation-num{
  font-size: 12px;
  margin-left: 10px;
  margin-right: 10px;
}

.affiliation-num-first{
  font-size: 12px;
  margin-right: 10px;
}

.tldr {
  font-family: 'Quicksand';
  margin-top: 10px;
  /* font-size: 15px; */
  text-align: center;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.publication-keywords {
  color: #14274e;
  font-family: 'Quicksand';
}

.conf-block {
  font-weight: bold;
}

.author-blocks {
  color: #50549b;
}

.author-blocks:hover {
  color: #9bb4c2;
}

.link-blocks {
  margin-top: 1rem;
}

.link-button {
  color: #f5f5f5;
  background-color: #143163;
  border-color: #143163;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
  margin-bottom: 0.5rem;
}

.link-button:hover {
  color: #143163;
  background-color: #f5f5f5;
  border-color: #143163;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
  margin-bottom: 0.5rem;
}

.botton-text {
  font-family: 'QuickSand';
  font-weight: 600;
}

.bibtex-box {
  background-color: #f5f5f5;
  font-family: "Roboto Mono", monospace;
}

.svg-inline--fa {
  width: 12px;
  height: 16px;
}

.teaser_video {
  margin: auto;
}

.comparison_video {
  margin: auto;
}

.result_video {
  max-height: 15rem;
  margin: auto;
}

.method-name {
  font-family: 'Quicksand';
  font-size: 14px;
  font-weight: bold;
}

.normal-text {
  font-family: 'Quicksand';
}

.caption {
  margin-top: -1rem;
  margin-bottom: 2.5rem;
  font-family: 'Quicksand';
}

/* ---------- Results: 3D comparison viewer ---------- */
.example-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.example-thumb {
  width: 54px;
  height: 54px;
  padding: 2px;
  border: 2px solid #e2e2e8;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.example-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.example-thumb:hover {
  border-color: #9bb4c2;
  transform: translateY(-2px);
}

.example-thumb.is-active {
  border-color: #143163;
  box-shadow: 0 0 0 2px rgba(20, 49, 99, 0.15);
}

.result-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.result-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-label {
  font-family: 'Quicksand';
  font-size: 14px;
  font-weight: 700;
  color: #4a4a4a;
  text-align: center;
  margin-bottom: 6px;
  min-height: 1.4em;
}

.result-card.is-ours .result-label {
  color: #143163;
}

/* full-width single line above the viewer row */
.baseline-toggle {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.9rem;
  overflow-x: auto;          /* never overflow the page on narrow screens */
  padding-bottom: 2px;
}

.baseline-toggle-label {
  font-family: 'Quicksand';
  font-size: 13px;
  font-weight: 700;
  color: #4a4a4a;
  margin-right: 2px;
  white-space: nowrap;
}

.baseline-button {
  font-family: 'Quicksand';
  font-size: 13px;
  font-weight: 600;
  color: #143163;
  background-color: #f5f5f5;
  border: 1px solid #d5d9e2;
  border-radius: 999px;
  padding: 3px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.baseline-button:hover {
  border-color: #143163;
}

.baseline-button.is-active {
  color: #f5f5f5;
  background-color: #143163;
  border-color: #143163;
}

.result-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* fallback for engines without aspect-ratio (Safari < 15, Firefox < 89) */
  border: 1px solid #e2e2e8;
  border-radius: 10px;
  background-color: #fafafc;
  overflow: hidden;
}

.result-card.is-ours .result-frame {
  border-color: #143163;
}

.result-viewer {
  width: 100%;
  height: 100%;
  display: block;
  --poster-color: transparent;
  --progress-bar-color: #143163;
}

.result-input-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.result-frame.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid #d5d9e2;
  border-top-color: #143163;
  border-radius: 50%;
  animation: result-spin 0.8s linear infinite;
}

@keyframes result-spin {
  to { transform: rotate(360deg); }
}

@media screen and (max-width: 768px) {
  .result-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .example-thumb {
    width: 44px;
    height: 44px;
  }
}

.viewer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.viewer-control-button {
  font-family: 'Quicksand';
  font-size: 12px;
  font-weight: 600;
  color: #143163;
  background-color: #f5f5f5;
  border: 1px solid #d5d9e2;
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.viewer-control-button:hover {
  border-color: #143163;
}

.viewer-control-button.is-active {
  color: #f5f5f5;
  background-color: #143163;
  border-color: #143163;
}

.viewer-hint {
  font-family: 'Quicksand';
  font-size: 12px;
  color: #8a8a95;
  margin-left: 4px;
}

.result-frame.is-input {
  background-color: #fff;
}

.result-frame.is-failed::after {
  content: "not available";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-family: 'Quicksand';
  font-size: 12px;
  color: #b0b0b8;
}


@supports not (aspect-ratio: 1 / 1) {
  .result-frame {
    height: 0;
    padding-bottom: 100%;
  }
  .result-viewer,
  .result-input-img {
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* gap fallback for older Safari flexbox */
@supports not (gap: 6px) {
  .example-strip .example-thumb,
  .baseline-toggle .baseline-button,
  .viewer-controls .viewer-control-button {
    margin: 3px;
  }
}

/* ---------- Ablations ---------- */
.model-stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.9rem;
}

.model-arrow {
  font-family: 'Quicksand';
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #143163;
  background-color: #f5f5f5;
  border: 1px solid #d5d9e2;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.model-arrow:hover {
  color: #f5f5f5;
  background-color: #143163;
  border-color: #143163;
}

.model-name {
  font-family: 'Quicksand';
  font-size: 15px;
  font-weight: 700;
  color: #143163;
  min-width: 15rem;
  text-align: center;
}

.ablation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

@media screen and (max-width: 768px) {
  .ablation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .model-name {
    min-width: 10rem;
    font-size: 13px;
  }
}

/* ---------- Applying to TRELLIS ---------- */
.trellis-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

@media screen and (max-width: 768px) {
  .trellis-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
