/* Hero block on the home page: banner image beside the release blurb. */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

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

.hero > p img {
  display: block;
  border-radius: 0.4rem;
}

.hero > div {
  flex: 1 1 18rem;
}

.hero h2 {
  margin-top: 0;
}

/* Full-width banner image shown at the top of section pages. */
.banner {
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: 0.4rem;
}

/* Cover/portrait images inside grid cards: three covers or four-plus portraits per row. */
.md-typeset .grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.md-typeset .grid.cards.people {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
}

.md-typeset .grid.cards img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.2rem;
}

.md-typeset .grid.cards.people img {
  aspect-ratio: 1 / 1;
  object-position: top;
}

/* Responsive 16:9 YouTube embeds. */
.video {
  position: relative;
  max-width: 40rem;
  aspect-ratio: 16 / 9;
  margin: 1rem 0 2rem;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.4rem;
}

/* Alphabetical SOLAR command index, flowed into as many columns as fit. */
.md-typeset .command-index ul {
  columns: 10rem;
  margin-left: 0;
  list-style: none;
}

.md-typeset .command-index li {
  margin: 0 0 0.25em;
  break-inside: avoid;
}

/* 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);
}
