/* Scope the adaptation to the landing page's banner, leaving other pages intact. */
#root main:has(pre > img[src$="/img/banner.png"]) {
  padding: 3rem 1.5rem;
}

#root main:has(pre > img[src$="/img/banner.png"]) > div {
  max-width: 48rem;
}

#root main:has(pre > img[src$="/img/banner.png"]) > div > div {
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
}

#root main:has(pre > img[src$="/img/banner.png"]) > div > div > div {
  display: none;
}

#root main pre:has(> img[src$="/img/banner.png"]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  white-space: normal;
  font-family: inherit;
  word-break: normal;
  overflow-wrap: anywhere;
}

#root main pre:has(> img[src$="/img/banner.png"]) > :not(img):not(img + span) {
  display: none;
}

#root main pre > img[src$="/img/banner.png"] {
  display: block;
  width: 16rem;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  image-rendering: auto;
}

#root main pre > img[src$="/img/banner.png"] + span {
  display: block;
  margin: 0;
  color: var(--color-foreground);
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 640px) {
  #root main:has(pre > img[src$="/img/banner.png"]) {
    padding: 4rem 1.5rem;
  }

  #root main pre > img[src$="/img/banner.png"] {
    width: 20rem;
  }

  #root main pre > img[src$="/img/banner.png"] + span {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  #root main pre > img[src$="/img/banner.png"] {
    width: 24rem;
  }
}
