/* Minimal styling for a compact academic site. */

html {
  scrollbar-gutter: stable;
}

/* Reserve the same right-hand TOC column on every desktop page. */
@media (min-width: 992px) {
  #quarto-content.page-columns {
    grid-template-columns:
      [screen-start] minmax(1.5rem, 1fr)
      [screen-start-inset page-start page-start-inset body-start-outset body-start body-content-start] minmax(0, 800px)
      [body-content-end] 2rem
      [body-end body-end-outset] 180px
      [page-end-inset page-end screen-end-inset] minmax(1.5rem, 1fr)
      [screen-end];
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 2rem;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 400;
}

.hero p {
  max-width: 780px;
}

.hero-portrait p {
  margin: 0;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.navbar-brand {
  font-weight: 600;
}

main.content {
  max-width: 960px;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-portrait {
    width: 300px;
    max-width: 200%;
    justify-self: center;
  }
}

.research-figure {
  margin: 1.5rem 0;
}

/* Quarto wraps Markdown images in a paragraph. Center the image itself. */
.research-figure p {
  margin: 0;
}

.research-figure img {
  display: block;
  margin-inline: auto;
  max-width: 80%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.last-updated {
  margin-top: 2rem;
  text-align: right;
  font-size: 0.85rem;
  color: #777;
}