body {
  font-family: 'Noto Sans', sans-serif;
  background: #fff;
}

.publication-title,
.publication-venue,
.title {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  margin-bottom: 0.75rem !important;
}

.publication-venue {
  color: #555;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-links {
  margin-top: 1rem;
}

.link-block {
  display: inline-block;
  margin: 0.25rem;
}

.link-block a.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 2rem;
}

.teaser .subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.caption {
  font-size: 0.95rem;
  color: #444;
  margin: 0.75rem 0 2.5rem;
  text-align: justify;
}

.title.is-4 {
  margin-top: 1.5rem;
}

.results-table {
  font-size: 0.9rem;
  white-space: nowrap;
}

.results-table th,
.results-table td {
  text-align: center !important;
  vertical-align: middle !important;
}

.results-table td:first-child,
.results-table th:first-child {
  text-align: left !important;
}

.results-table .group {
  border-left: 1px solid #dbdbdb;
}

.results-table .section-row td {
  background: #fafafa;
  color: #666;
}

.results-table tr.ours td {
  background: #eef6fc;
}

.more-results summary {
  cursor: pointer;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.9rem !important;
  }
}

/* ---- Button logos ---- */
.link-block .icon img {
  height: 20px;
  width: auto;
}

.section-intro {
  margin-bottom: 1.25rem;
  color: #444;
}

/* ---- Before/after slider (adapted from the FlowDIS page) ---- */
.picturebox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 2.5rem 0;
}

.picturebox {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: #fff;
  border-radius: 4px;
  outline: none;
}

.picturebox:focus-visible {
  box-shadow: 0 0 0 3px hsl(204, 86%, 53%);
}

.picturebox .pb-before {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.picturebox .pb-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  clip-path: inset(0 0 0 50%);
  -webkit-clip-path: inset(0 0 0 50%);
}

.picturebox .pb-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 2;
}

.picturebox .pb-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.picturebox .pb-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  background: no-repeat center / 22px 22px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 6 4 12 9 18'/><polyline points='15 6 20 12 15 18'/></svg>");
}

.picturebox .pb-label {
  position: absolute;
  top: 10px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 3px;
  pointer-events: none;
  z-index: 3;
}

.picturebox .pb-label-before { left: 10px; }
.picturebox .pb-label-after  { right: 10px; }

/* Garment thumbnail in the bottom-left corner, on the input side; click to enlarge */
.picturebox .pb-garment {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 24%;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  background: #fff;
  cursor: zoom-in;
  z-index: 4;
  transform-origin: bottom left;
  transition: width 0.2s ease;
}

.picturebox .pb-garment:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5); }

.picturebox .pb-garment.is-zoomed {
  width: calc(100% - 16px);
  cursor: zoom-out;
}

/* ---- Result cards ---- */
.result-card {
  border: 1px solid #e7e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}

.result-card .picturebox {
  border-radius: 0;
}

@media (max-width: 900px) {
  .picturebox-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .picturebox-grid { grid-template-columns: 1fr; }
}
