/* Cleaner question artwork: avoid a white disc behind illustrations that already
   contain their own pale backdrop. */
.matcher-panel:not(.matcher-results) {
  width: min(900px, calc(100% - 40px));
}

.matcher-panel:not(.matcher-results) .matcher-art {
  width: 250px;
  height: 176px;
  margin-bottom: 8px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.matcher-panel:not(.matcher-results) .matcher-art img {
  width: 240px;
  height: 170px;
  object-fit: contain;
  mix-blend-mode: normal;
}

.matcher-panel:not(.matcher-results) .matcher-ai-art {
  width: 350px;
  height: 258px;
  margin-bottom: 4px;
}

.matcher-panel:not(.matcher-results) .matcher-ai-art img {
  width: 340px;
  height: 250px;
}

.matcher-panel:not(.matcher-results) h2 {
  max-width: 820px;
  font-size: clamp(30px, 3.1vw, 40px);
  line-height: 1.22;
  text-wrap: balance;
}

/* Keep result artwork prominent without letting it touch the card edge or crowd
   the eligibility copy. */
.matcher-results .match-card {
  grid-template-columns: 154px minmax(0, 1fr) 154px;
  padding-block: 16px;
}

.matcher-results .match-card > img {
  width: 142px;
  height: 126px;
  justify-self: center;
}

@media (max-width: 760px) {
  .matcher-panel:not(.matcher-results) {
    width: min(100% - 28px, 900px);
  }

  .matcher-panel:not(.matcher-results) .matcher-art {
    width: 190px;
    height: 138px;
  }

  .matcher-panel:not(.matcher-results) .matcher-art img {
    width: 184px;
    height: 132px;
  }

  .matcher-panel:not(.matcher-results) .matcher-ai-art {
    width: 270px;
    height: 202px;
  }

  .matcher-panel:not(.matcher-results) .matcher-ai-art img {
    width: 262px;
    height: 194px;
  }

  .matcher-panel:not(.matcher-results) h2 {
    max-width: 680px;
    font-size: clamp(28px, 8vw, 36px);
  }

  .matcher-results .match-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .matcher-results .match-card > img {
    width: 88px;
    height: 84px;
  }
}
