/* Referral Program — reference-matched, fluid on desktop, tablet and mobile. */
.walsh-ref-page {
  overflow: clip;
  background: #fff;
  color: #000;
  font-family: var(--walsh-font-body);
}
.walsh-ref-page *, .walsh-ref-page *::before, .walsh-ref-page *::after { box-sizing: border-box; }
.walsh-ref-page p { margin: 0 0 12px; }
.walsh-ref-page p:last-child { margin-bottom: 0; }
.walsh-ref-page h1, .walsh-ref-page h2, .walsh-ref-page h3 {
  margin-top: 0;
  color: inherit;
  font-family: var(--walsh-font-heading);
  font-weight: 700;
  letter-spacing: 0;
}
.walsh-ref-hero { position: relative; min-height: 570px; display: grid; place-items: center; overflow: hidden; }
.walsh-ref-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.walsh-ref-hero__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .43); }
.walsh-ref-hero__copy { position: relative; z-index: 1; width: min(850px, calc(100% - 48px)); color: #fff; text-align: center; }
.walsh-ref-eyebrow { margin-bottom: 4px !important; font-size: 16px; font-weight: 600; line-height: 1.5; }
.walsh-ref-hero h1 { margin-bottom: 6px; font-size: 42px; line-height: 1.4; }
.walsh-ref-hero__intro { font-size: 20px; font-weight: 300; line-height: 1.45; }
.walsh-ref-split { display: grid; grid-template-columns: minmax(0, 479px) minmax(0, 1fr); width: min(1178px, calc(100% - 80px)); margin: 0 auto; align-items: center; gap: 49px; padding: 72px 0; }
.walsh-ref-media { margin: 0; overflow: hidden; border-radius: 10px; aspect-ratio: 479 / 358; }
.walsh-ref-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.walsh-ref-copy { min-width: 0; font-size: 16px; font-weight: 300; line-height: 1.5; }
.walsh-ref-copy h2 { margin-bottom: 19px; font-size: 38px; line-height: 1.4; }
.walsh-ref-video { position: relative; height: 570px; overflow: hidden; background: #f4f4f4; }
.walsh-ref-video > img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.walsh-ref-video__play { position: absolute; top: 50%; left: 50%; display: grid; width: 58px; height: 58px; place-items: center; padding-left: 4px; border: 3px solid #fff; border-radius: 50%; color: #fff; font-size: 21px; transform: translate(-50%, -50%); }
.walsh-ref-centered { padding: 76px max(24px, calc((100% - 820px) / 2)); background: #f4f4f4; text-align: center; }
.walsh-ref-centered h2 { margin-bottom: 23px; font-size: 40px; line-height: 1.4; }
.walsh-ref-centered div { font-size: 17px; font-weight: 300; line-height: 1.6; }
.walsh-ref-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 600px); width: min(1178px, calc(100% - 80px)); margin: 0 auto; align-items: center; gap: 70px; padding: 76px 0; }
.walsh-ref-work__copy { min-width: 0; }
.walsh-ref-work__copy > h2 { margin-bottom: 32px; font-size: 38px; line-height: 1.4; }
.walsh-ref-detail { margin-top: 24px; padding-left: 22px; border-left: 3px solid #000; font-size: 15px; font-weight: 300; line-height: 1.55; }
.walsh-ref-detail h3 { margin-bottom: 8px; font-family: var(--walsh-font-body); font-size: 20px; line-height: 1.4; }
.walsh-ref-work__media { margin: 0; aspect-ratio: 600 / 464; overflow: hidden; border-radius: 10px; }
.walsh-ref-work__media img { width: 100%; height: 100%; object-fit: cover; }
.walsh-ref-participate { position: relative; display: grid; min-height: 330px; place-items: center; overflow: hidden; }
.walsh-ref-participate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.walsh-ref-participate__shade { position: absolute; inset: 0; background: rgba(21, 31, 19, .78); }
.walsh-ref-participate__copy { position: relative; z-index: 1; width: min(820px, calc(100% - 48px)); color: #fff; text-align: center; }
.walsh-ref-participate h2 { margin-bottom: 20px; font-size: 38px; line-height: 1.4; }
.walsh-ref-participate p { font-size: 17px; font-weight: 300; line-height: 1.6; }
.walsh-ref-split--selling { grid-template-columns: minmax(0, 479px) minmax(0, 1fr); }
.walsh-ref-opportunities { padding: 70px 40px; background: #f4f4f4; }
.walsh-ref-opportunities__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(1178px, 100%); margin: 0 auto; gap: 28px; }
.walsh-ref-opportunity { padding: 34px; border: 1px solid #cfcfcf; background: #fff; font-size: 15px; font-weight: 300; line-height: 1.6; }
.walsh-ref-opportunity h2 { margin-bottom: 17px; font-size: 25px; line-height: 1.35; }
.walsh-ref-page--center .walsh-ref-copy, .walsh-ref-page--center .walsh-ref-work__copy { text-align: center; }
.walsh-ref-page--center .walsh-ref-detail { padding-left: 0; border-left: 0; }

@media (max-width: 1023px) {
  .walsh-ref-hero { min-height: 500px; }
  .walsh-ref-hero__copy { width: min(760px, calc(100% - 64px)); }
  .walsh-ref-split, .walsh-ref-work { width: calc(100% - 64px); gap: 34px; padding: 56px 0; }
  .walsh-ref-split { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
  .walsh-ref-video { height: 460px; }
  .walsh-ref-work { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); }
  .walsh-ref-work__copy > h2, .walsh-ref-copy h2 { font-size: 34px; }
  .walsh-ref-opportunities { padding: 54px 32px; }
}

@media (max-width: 767px) {
  .walsh-ref-hero { min-height: 570px; align-items: end; padding: 58px 0; }
  .walsh-ref-hero > img { object-position: 46% center; }
  .walsh-ref-hero__copy { width: calc(100% - 40px); text-align: left; }
  .walsh-ref-eyebrow { font-size: 13px; }
  .walsh-ref-hero h1 { margin-bottom: 10px; font-size: clamp(31px, 10vw, 40px); line-height: 1.17; }
  .walsh-ref-hero__intro { font-size: 17px; line-height: 1.48; }
  .walsh-ref-split, .walsh-ref-work { display: flex; width: 100%; flex-direction: column; gap: 0; padding: 0; }
  .walsh-ref-media, .walsh-ref-work__media { width: calc(100% - 40px); margin: 38px auto; aspect-ratio: 4 / 3; }
  .walsh-ref-copy, .walsh-ref-work__copy { width: 100%; padding: 34px 20px 44px; font-size: 15px; line-height: 1.6; }
  .walsh-ref-copy h2, .walsh-ref-work__copy > h2 { margin-bottom: 17px; font-size: 32px; line-height: 1.3; }
  .walsh-ref-video { height: 490px; margin-top: 28px; }
  .walsh-ref-video > img { object-position: 38% center; }
  .walsh-ref-centered { padding: 49px 20px; }
  .walsh-ref-centered h2 { font-size: 32px; line-height: 1.3; }
  .walsh-ref-centered div { font-size: 15px; line-height: 1.6; }
  .walsh-ref-work__copy { order: 2; }
  .walsh-ref-work__media { order: 1; }
  .walsh-ref-detail { padding-left: 16px; }
  .walsh-ref-detail h3 { font-size: 18px; }
  .walsh-ref-participate { min-height: 390px; }
  .walsh-ref-participate__copy { width: calc(100% - 40px); }
  .walsh-ref-participate h2 { font-size: 32px; line-height: 1.3; }
  .walsh-ref-participate p { font-size: 15px; line-height: 1.6; }
  .walsh-ref-split--selling .walsh-ref-copy { padding-top: 8px; }
  .walsh-ref-opportunities { padding: 40px 20px; }
  .walsh-ref-opportunities__inner { grid-template-columns: 1fr; gap: 18px; }
  .walsh-ref-opportunity { padding: 26px 22px; }
  .walsh-ref-opportunity h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .walsh-ref-page .walsh-reveal { opacity: 1; transform: none; transition: none; }
}