:root {
  --link-accent: #363636;
}

body {
  background: white;
  color: #4a4a4a;
  font-family: "Noto Sans", sans-serif;
}

.publication-title, .publication-authors, .teaser { font-family: "Google Sans", sans-serif; }
.authors, .publication-authors a { color: #363636; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link-accent); outline-offset: 2px; }

.wordmark { display: inline-flex; align-items: center; gap: .2rem; }
.wordmark img { width: 65px; height: 65px; }
.paper-title { display: block; font-size: 2.5rem; }
.author-row, .affiliations, .logos, .resources { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.author-row { flex-wrap: nowrap; gap: 0 15px; }
.affiliations { gap: 0 1.5rem; }
.authors span, .affiliations span { white-space: nowrap; }
.contribution { font-size: smaller; }
.logos { gap: 2.8rem; margin: .75rem auto 1.15rem; }
.logos img { height: 50px; width: auto; max-width: 45%; object-fit: contain; }
.logos img + img { height: 45px; }
.resources { gap: .5rem; }
.resources .button { min-width: 6.6rem; padding-inline: .95em; }
.resources .button .icon:first-child:not(:last-child) { margin-left: -.35em; margin-right: .2em; }
.resources .icon img { width: 1em; height: 1em; filter: invert(1); }
.resources a:hover { text-decoration: none; }

figure img { display: block; width: 100%; height: auto; }
figure a { display: block; cursor: zoom-in; }
.teaser .hero-body { padding-top: 0; padding-bottom: 3rem; }
.teaser figure a { max-width: 65%; margin: 0 auto 20px; }
h2.title, h3.title { text-align: center; }
figcaption, #abstract p, article > p { text-align: justify; }
#method figcaption { line-height: 1.3; margin-top: .5rem; }
article { width: 60%; margin-inline: auto; }
#results article:has(table) { width: min(100%, max(60%, 46rem)); }
article + article { margin-top: 30px; }
article h3.title { margin-bottom: 14px; }
article > p { margin-bottom: .5rem; }
.result-figure { display: flex; flex-direction: column; }
.result-figure figcaption { order: -1; margin-bottom: .5rem; }

.table-figure { position: relative; }
.table-figure .is-sr-only { top: 0; left: 0; }
.paper-table { display: block; cursor: zoom-in; }
.paper-table img { display: block; width: 100%; height: auto; }

.gallery-viewport { overflow: hidden; margin-top: 1rem; touch-action: pan-y; }
.gallery-track { display: flex; will-change: transform; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-track.is-instant { transition: none; }
.gallery-track > figure { flex: 0 0 100%; min-width: 100%; margin: 0; }
.gallery figcaption { margin-top: .5rem; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: .7rem; margin-top: .75rem; }
.gallery-controls button.gallery-arrow { width: 2.5rem; height: 2.5rem; background: white; border: 1px solid #dbdbdb; border-radius: 50%; color: #363636; font-size: 1.25rem; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.gallery-controls button.gallery-arrow:hover { background: #f5f5f5; border-color: #b5b5b5; }
.gallery-dots { display: inline-flex; align-items: center; gap: .45rem; }
.gallery-dot { width: .55rem; height: .55rem; padding: 0; border: 0; border-radius: 999px; background: #cfcfcf; cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.gallery-dot:hover { background: #999; }
.gallery-dot[aria-current="true"] { width: 1.4rem; background: var(--link-accent); }
.gallery-controls output { font-size: .85rem; color: #7a7a7a; min-width: 2.4rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .gallery-track { transition: none; }
}
#bibtex .title { text-align: left; }
.reading { max-width: 48rem; margin: auto; }

@media (max-width: 1023px) {
  article { width: min(100%, 50rem); }
  /* Intrinsic-width figures inside flex sections must fit the viewport. */
  .hero > .container { max-width: 100%; }
}
@media (max-width: 768px) {
  figcaption, #abstract p, article > p { text-align: left; }
  .author-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: baseline; gap: .35rem; font-size: 1rem; }
  .author-row + .author-row { margin-top: .35rem; }
  .author-row span { white-space: normal; }
  .paper-title { font-size: 1.8rem; }
  .wordmark { font-size: 2.65rem; }
  .wordmark img { width: 54px; height: 54px; }
  .teaser figure a { max-width: 100%; }
  .logos { gap: 1.25rem; }
  .logos img { height: 38px; }
  .logos img + img { height: 32px; }
}
