/* Home page: one block per study, cover image beside the text. */
.study {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-bottom: 0.1rem solid var(--md-primary-fg-color);
}

/* Markdown wraps the image in a <p>. */
.study > p {
  flex: 1 1 18rem;
  max-width: 28rem;
  margin: 0;
}

.study > p img {
  display: block;
  width: 100%;
  border-radius: 0.4rem;
}

.study > div {
  flex: 1 1 22rem;
}

.md-typeset .study h2 {
  margin-top: 0;
}

.md-typeset .study h2 a {
  color: inherit;
}

.md-typeset .study h2 a:hover {
  color: var(--md-accent-fg-color);
}

.md-typeset .study .md-button {
  margin: 0.25rem 0.5rem 0.25rem 0;
}

/* ENIGMA consortium logo under the page title. */
.enigma-logo img {
  max-height: 5rem;
}

.md-typeset .credits {
  margin-top: 2rem;
  font-style: italic;
  color: var(--md-default-fg-color--light);
}

/* Footer "Made with <heart> in <Texas outline>" line (overrides/partials/copyright.html).
   Edit these to recolor or resize the icons. Colors take any CSS color (currentColor =
   footer text color). Sizes set the icon height (em scales with the footer text); the
   width follows each icon's aspect ratio. */
:root {
  --made-with-heart-color: currentColor;
  --made-with-texas-color: currentColor;
  --made-with-heart-size: 1.6em;
  --made-with-texas-size: 1.6em;
}

/* Scoped under .made-with: the footer carries .md-typeset, whose `.md-typeset svg
   { height: auto }` would otherwise outrank single-class selectors. */
.made-with .made-with__icon {
  display: inline-block;
  width: auto;
  vertical-align: -0.2em;
}

.made-with .made-with__icon--heart {
  height: var(--made-with-heart-size);
  fill: var(--made-with-heart-color);
}

.made-with .made-with__icon--texas {
  height: var(--made-with-texas-size);
  fill: var(--made-with-texas-color);
}
