/* Minimal site-level styling for the initial Quarto website. */

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

.quarto-title-banner {
  margin-bottom: 1.5rem;
}

.callout.callout-note {
  border-left-width: 0.4rem;
}

.hero-note {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* The three legs on the home page. Three columns of prose do not fit a phone,
   so below the Bootstrap sm breakpoint each row becomes a stacked block: the
   leg, what it holds, then where it lives. Scoped to this table, because the
   long tables in projects/ need to keep their columns. */
@media (max-width: 575.98px) {
  .legs-table table,
  .legs-table tbody,
  .legs-table tr,
  .legs-table td {
    display: block;
    width: 100%;
  }

  .legs-table thead {
    display: none;
  }

  .legs-table tr {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  }

  .legs-table tr:last-child {
    border-bottom: none;
  }

  .legs-table td {
    border: none;
    padding: 0.1rem 0;
  }

  .legs-table td:first-child {
    font-size: 1.1rem;
  }

  .legs-table td:last-child {
    font-size: 0.9rem;
    padding-top: 0.25rem;
  }
}

/* The legs table carries no column headings. Pandoc still needs a header row
   for the block to parse as a table, so the row exists and is hidden. */
.legs-table thead {
  display: none;
}

/* The home-page logo. A fixed pixel width put the "trinity metrics" wordmark
   below the fold on a laptop, so the height is capped against the viewport as
   well: 400px where there is room, less where there is not, and the whole mark
   is visible either way. */
.home-logo img {
  width: 400px;
  max-width: 100%;
  height: auto;
  max-height: 50vh;
}

/* The About page headshot. Small enough to sit beside the opening paragraph
   rather than announce itself, large enough to recognise a face; it drops out
   of the float on a phone, where a 180px column beside text is unreadable. */
.about-photo {
  float: right;
  width: 180px;
  margin: 0 0 1rem 1.5rem;
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 575.98px) {
  .about-photo {
    float: none;
    width: 140px;
    margin: 0 0 1rem 0;
  }
}
