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

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

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

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

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

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

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

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

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

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

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

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

.publication-banner img,
.publication-banner video {
  width: 100%;
  display: block;
}

.publication-body img {
  width: 100%;
}

hr {
  background-color: #dbdbdb;
  height: 1px;
  margin: 1.2rem 0 1.8rem;
}

.title.is-3 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

/* ---------- video gallery ---------- */

.gallery-stage {
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  font-size: 0;
}

.gallery-stage video {
  width: 100%;
  display: block;
}

.gallery-caption {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 600;
  color: #363636;
  text-align: center;
  margin-top: 0.9rem;
  margin-bottom: 1.2rem;
  min-height: 1.5em;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 0.5rem;
}

.gallery-thumb {
  border: 2px solid #dbdbdb;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  width: 160px;
  line-height: 0;
  transition: border-color .15s ease, transform .15s ease;
}

.gallery-thumb img {
  width: 100%;
  display: block;
}

.gallery-thumb:hover {
  border-color: hsl(204, 86%, 53%);
  transform: translateY(-2px);
}

.gallery-thumb.is-active {
  border-color: hsl(204, 86%, 53%);
}

.gallery-thumb-label {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  padding: 5px 4px 6px;
  color: #4a4a4a;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.gallery-thumb.is-active .gallery-thumb-label {
  color: hsl(204, 86%, 43%);
  font-weight: 600;
}

/* ---------- figures, tables ---------- */

figure.pub-figure {
  margin: 0 0 1rem;
}

figure.pub-figure img {
  width: 100%;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
}

figure.pub-figure figcaption {
  font-size: 0.92rem;
  color: #4a4a4a;
  margin-top: 0.8rem;
  text-align: justify;
}

.results-table {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.results-table th {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  text-align: center;
  vertical-align: middle;
}

.results-table td {
  text-align: center;
  vertical-align: middle;
}

.results-table td.name,
.results-table th.name {
  text-align: left;
}

.results-table tr.ours {
  background-color: #f5faff;
}

.table-scroll {
  overflow-x: auto;
}

.video-caption {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 600;
  text-align: center;
  color: #363636;
  margin-top: 0.6rem;
  margin-bottom: 1.6rem;
}

/* The desktop title is 3rem in Bulma. Keep 768px-wide iPads in the tablet range.
   Include larger touch tablets in landscape without shrinking laptop titles. */
@media screen and (min-width: 768px) and (max-width: 1024px),
       screen and (min-width: 1025px) and (max-width: 1366px) and (any-pointer: coarse) {
  .title.is-1.publication-title {
    font-size: 2.4rem; /* 80% of the desktop title */
  }
}

@media screen and (max-width: 767px) {
  .title.is-1.publication-title {
    font-size: 1.5rem; /* 50% of the desktop title */
  }
}

@media screen and (max-width: 768px) {
  .gallery-thumb { width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-thumb { transition: none; }
}

/* ---------- view toggle (training / spiral) ---------- */

.view-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.view-button {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  border: 1px solid #dbdbdb;
  color: #4a4a4a;
  background: #fff;
}

.view-button:hover {
  border-color: hsl(204, 86%, 53%);
  color: hsl(204, 86%, 43%);
}

.view-button.is-active,
.view-button.is-active:hover {
  background: hsl(204, 86%, 53%);
  border-color: hsl(204, 86%, 53%);
  color: #fff;
}
