/* Keep the referral portal and its cards inside the shared content width. */
.referral-page .rp-hero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4vw, 52px);
  padding-top: 52px;
  padding-bottom: 76px;
}
.referral-page .rp-hero-copy,
.referral-page .rp-hero-ui { min-width: 0; }
html body.referral-page .rp-hero-copy h1 {
  font-size: clamp(50px, 4.6vw, 64px) !important;
  line-height: .99 !important;
  max-width: 100%;
}
.referral-page .rp-hero-copy > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.75;
}
.referral-page .rp-hero-ui {
  min-height: 405px;
  padding-bottom: 74px;
}
.referral-page .rp-window {
  position: relative;
  top: 0;
  left: 0;
  right: auto;
  width: 100%;
  max-width: 100%;
  transform: none;
}
.referral-page .rp-window img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1350 / 581;
  object-fit: contain;
}
.referral-page .rp-float-one { left: 0; bottom: 8px; }
.referral-page .rp-float-two { right: 0; bottom: 24px; }
@media (max-width: 1050px) {
  .referral-page .rp-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .referral-page .rp-hero-ui { width: min(100%, 850px); min-height: 0; }
}
@media (max-width: 760px) {
  .referral-page .rp-hero-grid { gap: 34px; padding-top: 38px; padding-bottom: 62px; }
  html body.referral-page .rp-hero-copy h1 { font-size: var(--site-h1-size) !important; }
  .referral-page .rp-hero-ui { padding-bottom: 72px; }
  .referral-page .rp-float-one { left: 0; width: 158px; }
  .referral-page .rp-float-two { right: 0; }
}
@media (max-width: 600px) {
  .referral-page .rp-hero-ui { padding-bottom: 55px; }
  .referral-page .rp-float-one { display: none; }
  .referral-page .rp-float-two { right: 0; bottom: 0; }
  .referral-page .rp-window-top { font-size: 10px; }
  .referral-page .rp-window-top b { font-size: 10px; }
}
