/* Adapted from the Nerfies project page (CC BY-SA 4.0):
   https://github.com/nerfies/nerfies.github.io */

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

/* Narrow article column, Anthropic-style. Overrides Bulma's
   is-max-desktop so every section gets the same reading width. */
.container.is-max-desktop {
  max-width: 760px !important;
}

/* Figures and videos sit a bit inside the text column. */
.media-frame,
.video-grid {
  max-width: 88%;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll-triggered fade-in. Elements start hidden and are revealed when
   they enter the viewport. Falls back to visible if JS does not run
   (see the html.js gate below). */
html.js .fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  will-change: opacity, transform;
}

html.js .fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Thin divider between major sections. Rendered as a text-width rule
   with breathing room below. Hero + teaser share the top banner, so no
   divider between those two. */
section + section::before {
  content: '';
  display: block;
  width: 760px;
  max-width: calc(100% - 3rem);
  height: 1px;
  background: #e5e5e5;
  margin: 0 auto 2.5rem auto;
}

.hero + .hero.teaser::before {
  content: none;
}

/* Compact table for admittance parameter update rules. */
.update-rules-table th {
  text-align: center;
  background: #fafafa;
}

.update-rules-table td:first-child {
  white-space: nowrap;
  width: 45%;
}

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

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

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

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

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

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

.publication-subtitle {
  color: #363636;
  line-height: 1.35;
}

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

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

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

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

/* 2x2 grid of hardware trials used as the teaser. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.video-grid video,
.media-frame {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.media-frame {
  border: none;
}

.figure-caption {
  margin-top: 0.75rem;
  color: #555;
  font-size: 0.95rem;
}

.figure-caption strong {
  color: #363636;
}

.baseline-label {
  font-family: 'Google Sans', sans-serif;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.equation {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 1rem;
}

/* Justified text leaves large gaps in narrow columns, and display math
   needs to shrink to fit a phone screen. */
@media screen and (max-width: 768px) {
  .content.has-text-justified {
    text-align: left !important;
  }

  .equation {
    font-size: 0.8em;
  }
}

.results-table td,
.results-table th {
  text-align: center !important;
  vertical-align: middle;
}

.results-table td:first-child,
.results-table th:first-child {
  text-align: left !important;
}

.acknowledgements {
  color: #555;
  font-size: 0.9rem;
}
