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


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

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


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

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


.publication-title {}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {}

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

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

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

.publication-authors {}

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

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

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

.publication-banner img {}

.publication-authors {
  /*color: #4286f4;*/
}

.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-body img {}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}

/* ---------- Enhanced styling for project page (kept) ---------- */
/* .hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.hero .title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .publication-authors {
  color: rgba(255,255,255,0.9);
} */

/* Architecture image styling */
.architecture-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.architecture-image:hover {
  transform: scale(1.02);
}

/* Compact table class (less vertical padding) */
.compact-table td,
.compact-table th {
  padding: 0.45rem 0.5rem !important;
  font-size: 0.86rem;
}

/* ---------------------------
   Table sizing & scroll behavior
   --------------------------- */

/* Keep tables compact and let them size to their content.
   Scroll only when the table is wider than the container. */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  background: white;
  padding: 0.5rem;
}

/* Make inner table size to content so it only scrolls when needed */
.results-table table {
  width: max-content;      /* content-width, so table won't inflate to full container */
  min-width: 100%;         /* but at least fit the container */
  border-collapse: separate;
  border-spacing: 0;
}

/* column separators: add vertical separators after each pose-bin group
   Column indexes: 1(Method), 2-4(bin1), 5-7(bin2), 8-10(bin3), 11-13(bin4)
   So we put a right border on columns 4, 7, 10 */
.results-table th,
.results-table td {
  border-right: 1px solid transparent;
}

/* stronger separator after each pose-bin group */
.results-table th:nth-child(4),
.results-table td:nth-child(4),
.results-table th:nth-child(7),
.results-table td:nth-child(7),
.results-table th:nth-child(10),
.results-table td:nth-child(10) {
  border-right: 2px solid #d9e8ff;
}

/* give first column (Method) a slight left padding and no right border so it reads well */
.results-table td:first-child,
.results-table th:first-child {
  text-align: left;
  padding-left: 1rem;
  border-right: 1px solid #f0f4ff;
}

/* header contrast & sticky header */
.results-table thead th {
  background: linear-gradient(135deg, #233044 0%, #2b4258 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.6rem 0.6rem;
  font-size: 0.88rem;
}

/* row styles */
.results-table tbody tr:nth-child(even) {
  background: #fbfcfe;
}
.results-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

/* hover */
.results-table tbody tr:hover {
  background-color: #e8f3ff !important;
  transition: background 0.15s ease;
}

/* best-row highlight (keeps table compact but visually obvious) */
.results-table .best-row {
  background: linear-gradient(135deg, #dff0e6 0%, #cfead6 100%) !important;
  border-top: 2px solid #28a745;
}
.results-table .best-row td {
  color: #165a2b;
  font-weight: 700;
}

/* method category header style */
.method-category-header {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
  color: white !important;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
}

/* reduce excessive padding for compactness */
.results-table td {
  padding: 0.5rem 0.6rem;
  font-size: 0.86rem;
}

/* ensure tables remain readable on mobile, with horizontal scroll when necessary */
@media (max-width: 768px) {
  .table-scroll-container {
    padding: 0.35rem;
  }
  .results-table table {
    min-width: 760px; /* allow horizontal scroll on small screens for wide tables */
  }
  .results-table th,
  .results-table td {
    padding: 0.35rem 0.4rem;
    font-size: 0.75rem;
  }
}

/* ---------------------------
   Video styling (autoplay-friendly)
   --------------------------- */
.video-player {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

/* small visual hint that muted autoplay will happen */
.video-container p.is-italic {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

/* small responsive tweak for the architecture image (keeps it large on desktop, fine on mobile) */
.architecture-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
}

/* subtle improvements to metric badges (kept) */
.metric-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 22px;
  font-weight: 600;
  margin: 0.2rem;
}

/* keep the same theme for notification boxes, no changes required */
.dataset-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: left;
  margin: 1.2rem 0 0.6rem 0;
  padding-left: 0.4rem;
  border-left: 5px solid #4a6cf7;   /* vibrant left bar */
  color: #2b3a55;                  /* dark heading */
}

/* ---------------------------
   Dataset comparison wrapper
   --------------------------- */
.dataset-comparison {
  margin: 2rem 0;
}

/* generic result images */
.result-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
  transition: transform 0.25s ease;
}
.result-image:hover {
  transform: scale(1.02);
}

/* tech-box containers */
.tech-box {
  background: #f9fafc;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 100%;
}

/* video container (navigation videos) */
.video-container {
  margin-bottom: 1rem;
}

/* ---------------------------
   Fix column borders for 2-subcolumn groups
   --------------------------- */

/* Instance Mapping: 1 method col + 8 groups (2 cols each) */
#instance-mapping .results-table th,
#instance-mapping .results-table td {
  border-right: 1px solid transparent;
}
#instance-mapping .results-table th:nth-child(3),
#instance-mapping .results-table td:nth-child(3),
#instance-mapping .results-table th:nth-child(5),
#instance-mapping .results-table td:nth-child(5),
#instance-mapping .results-table th:nth-child(7),
#instance-mapping .results-table td:nth-child(7),
#instance-mapping .results-table th:nth-child(9),
#instance-mapping .results-table td:nth-child(9),
#instance-mapping .results-table th:nth-child(11),
#instance-mapping .results-table td:nth-child(11),
#instance-mapping .results-table th:nth-child(13),
#instance-mapping .results-table td:nth-child(13),
#instance-mapping .results-table th:nth-child(15),
#instance-mapping .results-table td:nth-child(15),
#instance-mapping .results-table th:nth-child(17),
#instance-mapping .results-table td:nth-child(17) {
  border-right: 2px solid #d9e8ff;
}

/* Navigation: 1 method col + 4 groups (2 cols each) */
#navigation-results .results-table th,
#navigation-results .results-table td {
  border-right: 1px solid transparent;
}
#navigation-results .results-table th:nth-child(3),
#navigation-results .results-table td:nth-child(3),
#navigation-results .results-table th:nth-child(5),
#navigation-results .results-table td:nth-child(5),
#navigation-results .results-table th:nth-child(7),
#navigation-results .results-table td:nth-child(7),
#navigation-results .results-table th:nth-child(9),
#navigation-results .results-table td:nth-child(9) {
  border-right: 2px solid #d9e8ff;
}

#mapfree-results .results-table th,
#mapfree-results .results-table td {
  border-right: 1px solid transparent;
}
#mapfree-results .results-table th:nth-child(4),
#mapfree-results .results-table td:nth-child(4),
#mapfree-results .results-table th:nth-child(5),
#mapfree-results .results-table td:nth-child(5),
#mapfree-results .results-table th:nth-child(6),
#mapfree-results .results-table td:nth-child(6),
#mapfree-results .results-table th:nth-child(7),
#mapfree-results .results-table td:nth-child(7) {
  border-right: 2px solid #d9e8ff;
}