/* Landing page layout refinements. Kept separate from the shared BLB theme. */
.blb-reference .blb-home__inner {
  width: min(1320px, calc(100% - 48px));
}

.blb-reference .blb-stats,
.blb-reference .blb-quiz__grid {
  margin-inline: auto;
}

.blb-reference .blb-stats {
  width: 100%;
}

.blb-reference .blb-quiz__grid {
  grid-template-columns: minmax(145px, 0.28fr) minmax(0, 0.72fr) minmax(340px, 0.7fr);
  width: 100%;
}

.blb-reference .blb-quiz__copy {
  max-width: 56ch;
}

/* The original brush sat behind the section. Keep it above the paper so its
   white copy remains readable, including when the image is still loading. */
.blb-reference .blb-brush {
  isolation: isolate;
}

.blb-reference .blb-brush::before {
  inset: -30px -38px;
  z-index: 0;
  border-radius: 46% 38% 44% 40%;
  background: #111 url("assets/blb-original/blb-brushstroke.png") center / 100% 100% no-repeat;
}

.blb-reference .blb-brush__inner {
  z-index: 1;
}

.blb-reference .blb-action-plan__panel-head {
  text-align: center;
}

.blb-reference .blb-action-plan__panel-head .blb-kicker {
  margin-inline: auto;
}

.blb-reference .blb-final__bundle {
  justify-items: center;
}

.blb-reference .blb-final__bundle img {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .blb-reference .blb-hero__grid,
  .blb-reference .blb-final__grid {
    max-width: 760px;
    margin-inline: auto;
  }

  .blb-reference .blb-hero__grid > div:first-child,
  .blb-reference .blb-final__grid > div:first-child {
    width: 100%;
  }

  .blb-reference .blb-final__bundle {
    width: min(620px, 100%);
    justify-self: center;
  }

  .blb-reference .blb-pricebox {
    width: min(560px, 100%);
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .blb-reference .blb-stats {
    max-width: 520px;
  }

  .blb-reference .blb-quiz__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    text-align: center;
  }

  .blb-reference .blb-character {
    min-height: 0;
  }

  .blb-reference .blb-character img {
    max-height: 190px;
    width: auto;
  }

  .blb-reference .blb-quiz__copy {
    margin-inline: auto;
  }

  .blb-reference .blb-brush {
    justify-self: center;
  }
}

@media (max-width: 540px) {
  .blb-reference .blb-home__inner {
    width: calc(100% - 32px);
  }

  .blb-reference .blb-hero__grid,
  .blb-reference .blb-final__grid {
    min-width: 0;
  }

  .blb-reference .blb-hero__media {
    width: 100%;
    min-width: 0;
  }

  .blb-reference .blb-title {
    max-width: 100%;
    font-size: clamp(3.8rem, 14vw, 6.4rem);
  }

  .blb-reference .blb-brush {
    width: min(100%, 440px);
    min-height: 260px;
    padding: 46px 26px;
  }

  .blb-reference .blb-brush::before {
    inset: -14px -10px;
  }

  .blb-reference .blb-final__bundle {
    min-height: 0;
  }
}
