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;
  padding: 20px;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

.eql-cntrb { 
  font-size: smaller;
}




.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 5px; /* Adjust spacing between images */
  width: 100%; /* Ensure it takes up the full width */
}

.image-grid img {
  width: 100%; /* Make images fill their grid cells */
  height: auto; /* Maintain aspect ratio */
}

/* ===== CoralscapesV2 additions ===== */

/* Prevent Bulma's .number / .tag helper styles from hijacking Prism code
   tokens (Prism wraps numbers in <span class="token number">, tags in
   <span class="token tag">). Reset layout/appearance but keep Prism colors. */
pre code .token,
pre[class*="language-"] .token,
code[class*="language-"] .token {
  display: inline;
  align-items: initial;
  justify-content: initial;
  background: none;
  background-color: transparent;
  border-radius: 0;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

/* Institution logo rows */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  margin: 0.5rem auto;
}

.logo-row img {
  max-height: 62px;
  width: auto;
  object-fit: contain;
}

.logo-row.is-primary img {
  max-height: 74px;
}

/* Partner / collaborating institution logos: one row, greyed, uniform height. */
.logo-row.is-partners {
  gap: 2rem;
  margin-top: 1rem;
}

.logo-row.is-partners img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 0.95em;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  color: #6a6a6a;
  background: #fafafa;
  font-size: 0.82rem;
  line-height: 1.2;
  max-width: 240px;
  text-align: center;
}

/* Contribution cards */
.contrib-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media screen and (max-width: 768px) {
  .contrib-cards { grid-template-columns: 1fr; }
}

.contrib-card {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.contrib-card .contrib-icon {
  font-size: 1.6rem;
  color: hsl(204, 86%, 45%);
  margin-bottom: 0.5rem;
}

.contrib-card h3 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.contrib-card-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

/* Stats table */
.stats-table td, .stats-table th {
  vertical-align: middle;
}

.stats-table .change-pos {
  color: #1f9d55;
  font-weight: 700;
}

/* 95-class legend */
.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 1rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.75rem;
  border: 1px solid #ededed;
  border-radius: 10px;
  background: #fbfbfb;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  color: #333;
  white-space: nowrap;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 0.4rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex: 0 0 auto;
}

/* Models table */
.models-table {
  font-size: 0.92rem;
}

.models-table th {
  vertical-align: middle;
}

.models-table .metric {
  font-variant-numeric: tabular-nums;
}

.models-table td .tag {
  font-weight: 600;
}

.section-anchor {
  scroll-margin-top: 1rem;
}

/* Give the Pretrained Models section (table + snippets) a little more width. */
#models .container.is-max-desktop {
  max-width: 1060px;
}

/* Copy-to-clipboard button for code blocks and BibTeX */
pre {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.6rem;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #555;
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 2;
}

pre:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: #f0f0f0;
}

.copy-btn.copied {
  color: #1f9d55;
  border-color: #1f9d55;
}