/*-- scss:defaults --*/
/* Try one of these: */
$navbar-bg: #4582c4;  /* Alternative classic blue */
/* $navbar-bg: #446e9b;  /* Another option */
/* $navbar-bg: #3f7cac;  /* Slightly lighter */

/*-- scss:rules --*/
/* Site styles. The versioned filename avoids stale browser caches after deployment. */

.quarto-about-trestles .about-entity {
  overflow: visible !important;
}

.quarto-about-trestles .about-image {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Let the trestles split apply only to the profile and bio. */
.quarto-about-trestles .landing-writing {
  margin-top: 3.5rem;
}

.quarto-about-trestles .landing-writing h2 {
  color: #6c757d;
  font-size: 1.35rem;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .quarto-about-trestles #listing-listing .thumbnail {
    display: none;
  }
}

@media (min-width: 992px) {
  .quarto-about-trestles {
    flex-wrap: wrap;
  }

  .quarto-about-trestles .about-contents,
  .quarto-about-trestles .about-contents main.content {
    display: contents;
  }

  .quarto-about-trestles .landing-bio {
    flex: 1 1 0;
    min-width: 0;
    border-left: solid 1px #dee2e6;
    padding-left: 1.5em;
  }

  .quarto-about-trestles .landing-writing,
  .quarto-about-trestles #listing-listing {
    flex: 0 0 100%;
    min-width: 0;
  }
}

/* Keep computational figures compact and responsive in article layouts. */
main.content .cell-output-display img.figure-img {
  display: block;
  max-width: min(100%, 42rem);
  height: auto;
  margin-inline: auto;
}

main.content figcaption {
  max-width: 42rem;
  margin-inline: auto;
  color: #5f6873;
  line-height: 1.45;
}

/* Long equations scroll within their own block instead of widening the page. */
main.content .katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.2rem;
}

@media (max-width: 576px) {
  main.content .quarto-layout-row {
    row-gap: 1.25rem;
  }
}
