
    /* Navbar phases as on Home and About: clear over the photo hero, a light tint while scrolling over it,
       then the frosted white bar once past it. */
    .header_navbar { position:fixed; top:0; left:0; width:100%; z-index:1000; }
    .header_navbar:not(.sticky) { background:transparent; -webkit-backdrop-filter:none; backdrop-filter:none; }
    .site-header.sticky { background:rgba(255,255,255,.9); -webkit-backdrop-filter:blur(14px) saturate(125%); backdrop-filter:blur(14px) saturate(125%); border-bottom:0; box-shadow:0 7px 22px rgba(26,47,94,.055); }
    .site-header.sticky .nav-shell { padding-top:10px; padding-bottom:10px; }
    .header_navbar.nav-scrolled:not(.sticky) { background:rgba(0,0,0,.12); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
    .header_navbar.nav-scrolled:not(.sticky)::after { content:""; position:absolute; top:100%; right:0; left:0; height:24px; z-index:0; pointer-events:none; background:linear-gradient(180deg,rgba(0,0,0,.12),transparent); }

    /* Referrals hero: the handshake photo fills the hero, carrying only a pre-line, the headline, and the
       two actions. A Deep Navy shade keeps the white text readable. */
    html .ref-page-hero--image { position:relative; isolation:isolate; display:flex; min-height:clamp(560px, 82vh, 780px); padding:0 24px; overflow:hidden; color:#fff; background:#0E1A33; }
    .ref-hero-bg { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center 45%; }
    .ref-page-hero--image::before {
      content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
      background:
        linear-gradient(180deg, rgba(10,22,46,.5) 0%, rgba(10,22,46,0) 26%),
        linear-gradient(0deg, rgba(10,22,46,.55) 0%, rgba(10,22,46,0) 40%),
        linear-gradient(90deg, rgba(10,22,46,.88) 0%, rgba(10,22,46,.66) 36%, rgba(10,22,46,.18) 68%, rgba(10,22,46,.05) 100%);
    }
    .ref-hero-inner { display:flex; flex-direction:column; justify-content:flex-end; padding:150px 0 76px; }
    /* Hero text in type style B, in light colours for the photo: the title, then a medium heading. */
    html .referral-page .ref-page-hero--image h1 { max-width:none; margin:0 0 16px; color:#fff; font-size:clamp(1.9rem,3.2vw,2.6rem); font-weight:800; letter-spacing:-.055em; line-height:1.08; }
    .ref-hero-heading { max-width:40em; margin:0; color:#fff; font-size:clamp(1.1rem,1.5vw,1.3rem); font-weight:500; letter-spacing:-.01em; line-height:1.4; }
    html .referral-page .ref-hero-heading span { background-image:linear-gradient(120deg, #8DB2FF 0%, #EAF1FF 90%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
    html .ref-page-hero--image .ref-hero-actions { margin-top:32px; }
    /* The secondary button becomes an outline on the dark hero; the shared wipe still fills it on hover. */
    html .ref-page-hero--image .zenov-btn--secondary { color:#fff; background:rgba(255,255,255,.06); box-shadow:inset 0 0 0 1px rgba(240,244,255,.45); }
    html .ref-page-hero--image .zenov-btn--secondary::after { color:#8FB0F0; }
    html .ref-page-hero--image .zenov-btn--secondary:hover,
    html .ref-page-hero--image .zenov-btn--secondary:focus-visible { color:#fff; box-shadow:inset 0 0 0 1px rgba(240,244,255,.8); }
    html .ref-page-hero--image .zenov-btn--secondary:hover::after,
    html .ref-page-hero--image .zenov-btn--secondary:focus-visible::after { color:#fff; }

    /* The program details, moved out of the hero: how it works on the left, the rewards on the right. */
    .ref-program { padding:88px 24px 16px; background:#fff; }
    .ref-program-title { margin:0 0 12px; color:#101B2D; font-size:clamp(1.6rem,2.6vw,2.2rem); font-weight:800; letter-spacing:-.05em; line-height:1.1; }
    .ref-program-lead { max-width:30em; margin:0; color:#1A2F5E; font-size:18px; font-weight:500; letter-spacing:-.015em; line-height:1.45; }
    /* Line breaks: leads wrap into even lengths, details avoid a lone last word. */
    .ref-program-lead, .ref-partnership-lead { text-wrap:balance; }
    .ref-responsibilities dd, .ref-reward-terms dd { text-wrap:pretty; }
    @media (max-width:580px) {
      html .ref-page-hero--image { min-height:560px; padding:0 20px; }
      .ref-page-hero--image::before { background:linear-gradient(180deg, rgba(10,22,46,.5) 0%, rgba(10,22,46,.2) 30%, rgba(10,22,46,.7) 58%, rgba(10,22,46,.92) 100%); }
      .ref-hero-inner { padding:124px 0 48px; }
      .ref-program { padding:60px 20px 8px; }
      .ref-program-lead, .ref-partnership-lead { font-size:16.5px; }
      .ref-responsibilities dd { font-size:15px; }
    }
  