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

.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 {
  font-family: 'Google Sans', sans-serif;
  letter-spacing: -0.5px;
}

.publication-title .adp-brand {
  background: linear-gradient(90deg, #1f7a8c 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.publication-banner {
  max-height: parent;
}

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

.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 a {
   color: hsl(204, 86%, 53%) !important;
}

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

.author-block {
  display: inline-block;
  margin: 0 2px;
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

.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;
}

.adp-author-note {
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.82rem;
}

.adp-author-note sup {
  color: #1f7a8c;
  font-weight: 600;
}

/* --- ADP custom styles --- */
.adp-hero {
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.adp-conf-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef6f7;
  color: #1f7a8c;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.adp-section-title {
  font-family: 'Google Sans', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
  margin-bottom: 1.5rem !important;
}

.adp-section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #1f7a8c 0%, #22c55e 100%);
  border-radius: 2px;
  margin-top: 8px;
}

.adp-figure {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
}

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

.adp-figure-caption {
  font-size: 0.92rem;
  color: #555;
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.5;
}

.adp-video-card {
  border-radius: 12px;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

.adp-video-card video {
  width: 100%;
  height: auto;
  display: block;
  background: #0b0b0b;
}

.adp-video-label {
  padding: 0.75rem 1rem;
  background: #ffffff;
  border-top: 1px solid #eee;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: #222;
  text-align: center;
}

.adp-video-label .adp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

.adp-tag.amp {
  background: #dbeafe;
  color: #1e3a8a;
}

.adp-tag.adp {
  background: #dcfce7;
  color: #166534;
}

.adp-tag.vanilla {
  background: #fee2e2;
  color: #991b1b;
}

.adp-tag.dyn {
  background: #ffedd5;
  color: #9a3412;
}

.adp-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #1a1a1a,
    #1a1a1a 12px,
    #222 12px,
    #222 24px
  );
  color: #ccc;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.adp-placeholder::before {
  content: "🎬  video coming soon";
  opacity: 0.7;
}

.adp-highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.adp-metric-card {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 260px;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eaeef1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.adp-metric-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #1f7a8c 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.adp-metric-label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #555;
  font-family: 'Google Sans', sans-serif;
}

.adp-metric-sub {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #888;
}

.adp-abstract {
  background: #fafcfd;
}

.adp-bullet-list {
  list-style: none;
  padding-left: 0;
}

.adp-bullet-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.adp-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #1f7a8c 0%, #22c55e 100%);
}

pre code {
  font-size: 0.85rem;
}

.adp-bibtex-block pre {
  background: #f5f7f9;
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

.adp-divider-light {
  border-top: 1px solid #eaeef1;
  margin: 2rem 0;
}

/* --- Tables (modern academic style) --- */
.adp-table-wrap {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem 1.5rem 1rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #eef1f4;
  overflow: hidden;
}

.adp-table-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.98rem;
  letter-spacing: -0.1px;
  margin-bottom: 0.9rem;
}

.adp-table-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1f7a8c 0%, #22c55e 100%);
  margin-right: 8px;
  vertical-align: -2px;
}

.adp-table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.93rem;
  color: #1f2937;
}

/* Header — booktabs-style: heavy top rule, thin bottom rule */
.adp-table thead th {
  background: transparent;
  color: #475569;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 0.6rem 0.7rem;
  border-top: 2px solid #0f172a;
  border-bottom: 1px solid #cbd5e1;
  white-space: normal;
  line-height: 1.25;
  letter-spacing: 0.1px;
  vertical-align: bottom;
}

.adp-table thead th:first-child {
  text-align: left;
}

/* Arrow indicators in header */
.adp-table thead th .adp-arrow {
  color: #94a3b8;
  font-weight: 500;
  margin-left: 3px;
}

/* Body rows */
.adp-table tbody td {
  padding: 0.6rem 0.6rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Compact variant — for 4–5 column tables in half-width containers */
.adp-table.adp-table-compact {
  font-size: 0.86rem;
}

.adp-table.adp-table-compact thead th {
  padding: 0.55rem 0.4rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05px;
}

.adp-table.adp-table-compact tbody td {
  padding: 0.5rem 0.4rem;
}

.adp-table.adp-table-compact tbody td:first-child {
  white-space: nowrap;
  padding-right: 0.6rem;
}

.adp-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: #0f172a;
}

/* Zebra striping — very subtle */
.adp-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

/* Bottom rule (booktabs) */
.adp-table tbody tr:last-child td {
  border-bottom: 2px solid #0f172a;
}

/* Highlighted "best" row */
.adp-table tbody tr.adp-row-best td {
  background: linear-gradient(90deg,
    rgba(34, 197, 94, 0.10) 0%,
    rgba(31, 122, 140, 0.08) 100%);
  color: #064e3b;
  font-weight: 600;
  position: relative;
}

.adp-table tbody tr.adp-row-best td:first-child {
  box-shadow: inset 3px 0 0 0 #22c55e;
  color: #064e3b;
}

.adp-table tbody tr.adp-row-best td strong {
  color: #14532d;
}

/* Hover effect */
.adp-table tbody tr:hover td {
  background: #f0f9ff;
}

.adp-table tbody tr.adp-row-best:hover td {
  background: linear-gradient(90deg,
    rgba(34, 197, 94, 0.16) 0%,
    rgba(31, 122, 140, 0.12) 100%);
}

.adp-cite {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 400;
  margin-left: 3px;
}

/* SRBD reference dataset gallery */
.adp-dataset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.adp-dataset-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef1f4;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.adp-dataset-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.adp-dataset-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #0b0b0b;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.adp-dataset-label {
  padding: 0.5rem 0.75rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  border-top: 1px solid #eef1f4;
}

@media (max-width: 600px) {
  .adp-dataset-grid { grid-template-columns: repeat(2, 1fr); }
  .adp-dataset-label { font-size: 0.78rem; padding: 0.4rem 0.5rem; }
}

/* Narrow figure (teaser) — 60% desktop, 100% mobile */
.adp-figure-narrow {
  max-width: 60%;
  margin: 0 auto;
}

/* ============================================================
   Responsive layout
   Global safety:
   - prevent horizontal scroll on the whole page
   - force all media/figures to respect container width
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, iframe {
  max-width: 100%;
}

/* Tablet and below (<=1023px) */
@media (max-width: 1023px) {
  .adp-figure-narrow {
    max-width: 100%;
  }
}

/* ============================================================
   Mobile (<=768px)  — the main fix
   Bulma's .column.is-half stays 50% wide even in a stacked
   column layout on mobile, which leaves half the row blank.
   Force every .column to full width on mobile.
   ============================================================ */
@media (max-width: 768px) {

  /* ---- FORCE full-width columns on mobile ---- */
  .columns {
    display: block !important;
    margin: 0 !important;
  }
  .column,
  .column.is-half,
  .column.is-half-tablet,
  .column.is-half-touch,
  .column.is-half-desktop,
  .column.is-one-third,
  .column.is-two-thirds,
  .column.is-three-quarters,
  .column.is-one-quarter,
  .column.is-four-fifths,
  .column.is-three-fifths,
  .column.is-two-fifths,
  .column.is-one-fifth {
    width: 100% !important;
    flex: none !important;
    padding: 0.4rem 0 !important;
    margin: 0 !important;
  }

  /* ---- Container / section padding ---- */
  .section {
    padding: 1.75rem 0.75rem !important;
  }
  .hero-body {
    padding: 1.75rem 0.75rem !important;
  }
  .adp-hero {
    padding-top: 1.5rem;
    padding-bottom: 0.25rem;
  }
  .container,
  .container.is-max-desktop {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* ---- Titles ---- */
  /* keep hero title (.title.is-2) at Bulma default (2.5rem) so it reads big */
  .title.is-2 {
    line-height: 1.15 !important;
  }
  .title.is-3 {
    font-size: 1.3rem !important;
  }
  .title.is-5 {
    font-size: 1.05rem !important;
  }

  /* ---- Hero: title, authors, buttons ---- */
  .publication-title br { display: none; }
  .publication-authors,
  .publication-authors.is-size-5 {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }
  .publication-authors.is-size-6 {
    font-size: 0.8rem !important;
  }
  .publication-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }
  .publication-links .link-block {
    margin: 0 !important;
  }
  .publication-links .button.is-normal {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.75rem !important;
    height: auto !important;
  }

  /* ---- Metric cards: 2 x 2 grid ---- */
  .adp-highlight-row {
    gap: 0.5rem !important;
  }
  .adp-metric-card {
    flex: 1 1 calc(50% - 0.35rem) !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0.75rem 0.5rem !important;
  }
  .adp-metric-value  { font-size: 1.35rem; }
  .adp-metric-label  { font-size: 0.76rem; }
  .adp-metric-sub    { font-size: 0.66rem; }

  /* ---- Figures ---- */
  .adp-figure {
    border-radius: 8px;
    width: 100%;
  }
  .adp-figure img {
    width: 100%;
    height: auto;
  }
  .adp-figure-caption {
    font-size: 0.82rem;
    padding: 0 0.25rem;
    line-height: 1.45;
  }

  /* ---- Video cards ---- */
  .adp-video-card {
    border-radius: 8px;
  }
  .adp-video-label {
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }

  /* ---- Tables ---- */
  .adp-table-wrap {
    padding: 0.85rem 0.6rem;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .adp-table-title { font-size: 0.9rem; }
  .adp-table {
    font-size: 0.78rem;
  }
  .adp-table thead th,
  .adp-table tbody td {
    padding: 0.4rem 0.35rem;
  }
  .adp-table tbody td {
    white-space: normal;
  }
  .adp-table.adp-table-compact {
    font-size: 0.72rem;
  }
  .adp-table.adp-table-compact thead th {
    font-size: 0.68rem;
  }
  .adp-table.adp-table-compact tbody td:first-child {
    white-space: normal;
  }

  /* ---- Dataset grid ---- */
  .adp-dataset-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
  .adp-dataset-label {
    font-size: 0.75rem;
    padding: 0.35rem 0.4rem;
  }

  /* ---- Bullet list, BibTeX ---- */
  .adp-bullet-list li {
    padding-left: 1.3rem;
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .adp-bibtex-block pre {
    font-size: 0.7rem;
    padding: 0.7rem;
    overflow-x: auto;
  }

  /* Section-title accent bar */
  .adp-section-title::after {
    width: 36px;
    height: 2px;
  }
}

/* Small phones (<=480px) */
@media (max-width: 480px) {
  .title.is-3 { font-size: 1.15rem !important; }
  .adp-metric-value { font-size: 1.15rem; }
  .adp-metric-label { font-size: 0.7rem; }
  .adp-metric-sub   { font-size: 0.62rem; }
  .adp-conf-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
  .publication-links .button.is-normal {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.6rem !important;
  }
  .publication-links .button .icon {
    margin-right: 2px !important;
  }
  .adp-dataset-grid { gap: 0.5rem !important; }
}
