/* Final-sheet hero always reads as copy on the left and resonance portrait on the right. */
body .resonance-build-sheet .rb-sheet-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 34%) !important;
  align-items: stretch !important;
  min-width: 0 !important;
}

body .resonance-build-sheet .rb-sheet-hero-copy {
  grid-column: 1 !important;
  min-width: 0 !important;
  align-self: center !important;
}

body .resonance-build-sheet .rb-sheet-hero > img {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: end !important;
  justify-self: end !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 230px !important;
  object-fit: contain !important;
  object-position: right bottom !important;
}

body .rb-mini-preview .rb-sheet-hero {
  grid-template-columns: minmax(0, 1fr) 112px !important;
}

body .rb-mini-preview .rb-sheet-hero-copy {
  padding: 16px 12px !important;
}

body .rb-mini-preview .rb-sheet-hero > img {
  width: 112px !important;
  height: 150px !important;
  max-width: 112px !important;
}

.rb-summon-effect,
.rb-sheet-summon-effect {
  margin: 6px 0 0;
  color: #627b87;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rb-sheet-duo figure:last-of-type {
  align-content: start;
}

.rb-sheet-duo figure:last-of-type figcaption {
  min-width: 0;
}

body .rb-mini-preview .rb-sheet-summon-effect {
  width: 100%;
  text-align: left;
  white-space: normal !important;
}

@media (max-width: 620px) {
  body .resonance-build-sheet .rb-sheet-hero {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 32%) !important;
  }
  body .resonance-build-sheet .rb-sheet-hero > img {
    height: 170px !important;
  }
  body .resonance-build-sheet .rb-sheet-hero-copy {
    padding: 16px 12px !important;
  }
}
