/* Home page: the title block with its buttons and the cards of the lab equipment */
/* The first screen of the home page: title, tagline, buttons and picture fit the height of the window.
   The theme's gaps above the content go; the picture takes the height that is left. */
.md-main__inner:has(h1.home-title) {
  margin-top: 0;
}

.md-content__inner:has(> h1.home-title) {
  padding-top: 0.6rem;
}

.md-content__inner:has(> h1.home-title)::before {
  display: none;
}

.md-typeset h1.home-title {
  margin: 0 0 0.2em;
}

.md-typeset .home-tagline {
  margin: 0 0 0.4em;
  text-align: center;
  color: var(--md-default-fg-color--light);
}

.md-typeset .home-buttons {
  text-align: center;
}

.md-typeset .home-buttons p {
  margin: 0;
}

.md-typeset .home-buttons .md-button {
  margin: 0.3rem;
}

.md-typeset .home-hero {
  margin: 0.4em 0 0;
  text-align: center;
}

.md-typeset .home-hero img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 15rem);
}

.md-typeset .equipment-cards img {
  display: block;
  width: 70%;
  max-width: 12rem;
  margin: 0 auto;
}

/* Contact page: the mail on its own line, the other links two to a row, one on a phone */
.md-typeset .contact-links p {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 34rem;
}

.md-typeset .contact-links .md-button {
  min-width: 0;
  margin: 0;
}

.md-typeset .contact-links .md-button:first-child {
  grid-column: 1 / -1;
}

@media screen and (max-width: 30em) {
  .md-typeset .contact-links p {
    grid-template-columns: minmax(0, 1fr);
  }
}
