/*
 * Regional Prosperity brand typography (Style Guide V1, July 2024).
 *
 * Sora is the only typeface: headings Medium (500) or SemiBold (600), body Regular (400).
 * Arial is the guide's substitute where Sora can't load.
 *
 * This file loads after every WordPress stylesheet, so it overrides them. The theme's
 * selectors are very specific, which is why the rules below use !important.
 *
 * 1. Typeface: applies to every page.
 * 2. Type scale: applies to the pages listed in the :is() list, one page at a time as
 *    each is reviewed. Add the page's body class (from its meta.json) to bring it in.
 *    Pages so far: home (.home), Family (.page-id-58), Intergenerational (.page-id-60), Business (.page-id-62), FAQs (.page-id-1737), Journal (.page-id-1135), Community Grants (.page-id-1233), Partners (.page-id-1696), Case Studies (.page-id-1894).
 */

:root {
  --rp-font: "Sora", Arial, sans-serif;

  /* Type scale. Sizes step down on smaller screens. */
  --rp-display-weight: 600;
  --rp-h2: clamp(32px, 3.5vw, 50px);
  --rp-h3: clamp(24px, 2.25vw, 32px);
  --rp-h4: 18px;
  --rp-tagline: clamp(22px, 2.25vw, 32px);
  --rp-lead: clamp(18px, 1.55vw, 22px);
  --rp-body: 16px;
  --rp-label: 14px;
  --rp-small: 13px;

  --rp-medium: 500;
  --rp-semibold: 600;
  --rp-regular: 400;

  /* Variables some page styles already read. */
  --rpbio-sans: var(--rp-font);
  --sans: var(--rp-font);
  --rp-font-sans: var(--rp-font);
}

/* 1. Typeface ---------------------------------------------------------------- */

/* Icon fonts (Font Awesome, Forminator) are left alone so the icons still draw. */
body,
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="fa-"]):not([class*=" fa-"]):not([class*="forminator-icon"]):not(.dashicons) {
  font-family: var(--rp-font) !important;
}

/* The theme forces Inter on the footer menu with an ID selector, so it needs one too. */
.theme-html #page-footer .footer-menu nav a,
.theme-html #page-footer .footer-menu nav a:last-of-type {
  font-family: var(--rp-font) !important;
}

/* 2. Type scale -------------------------------------------------------------- */

/* Display: the hero headline keeps its size, set in SemiBold. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) h1,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) h1 strong {
  font-weight: var(--rp-display-weight) !important;
}

/* H2: section headings. Medium, with emphasised words in SemiBold. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) h2 {
  font-size: var(--rp-h2) !important;
  line-height: 1.1 !important;
  font-weight: var(--rp-medium) !important;
}

/* H3: sub-headings, tab titles and call-to-action lines. Large H4s ("Grow by good") match. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) h3,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) h4 {
  font-size: var(--rp-h3) !important;
  line-height: 1.2 !important;
  font-weight: var(--rp-medium) !important;
}

:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) :is(h2, h3, h4) :is(strong, b, a) {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: var(--rp-semibold) !important;
}

/* Eyebrow labels ("I WANT TO:", "REGIONAL PROSPERITY", "NOT SURE WHAT YOU NEED?"). */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .tab-item > h3,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .banner-content > h3,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .top-content > h4 {
  font-size: var(--rp-label) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
}

/* Names on testimonial cards. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .carousel-content__testimonial__flex h3 {
  font-size: var(--rp-body) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
}

/* H4: FAQ questions. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .blog-single__faq-question-text {
  font-size: var(--rp-h4) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
}

/* Hero tagline under "Future Legacy". */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .banner-content__inner > p {
  font-size: var(--rp-tagline) !important;
  line-height: 1.2 !important;
  font-weight: var(--rp-regular) !important;
}
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .banner-content__inner > p strong {
  font-size: inherit !important;
  font-weight: var(--rp-semibold) !important;
}

/* Lead: testimonial quotes and the call-to-action banner text. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .carousel-content__testimonial > p,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .block--banner-cta .banner-content > p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
}

/* Body copy. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) main p:not(.carousel-content__testimonial > p):not(.banner-content > p):not(.banner-content__inner > p),
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .tab-item p,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .blog-single__faq-item p {
  font-size: var(--rp-body) !important;
  line-height: 1.5 !important;
  font-weight: var(--rp-regular) !important;
}

/* Testimonial roles ("Regional Business Owner"). */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .carousel-content__testimonial__flex p {
  font-size: var(--rp-label) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
}

/* Buttons and tabs. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) a.btn,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .rt-tab__title {
  font-size: var(--rp-body) !important;
  font-weight: var(--rp-semibold) !important;
}

/* Header and footer navigation. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .main-navigation a,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .main-navigation a span,
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .sub-nav a {
  font-size: var(--rp-label) !important;
  line-height: 1.5 !important;
  font-weight: var(--rp-medium) !important;
}

/* Footer tagline. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .footer-copy-wrap p {
  line-height: 1.3 !important;
  font-weight: var(--rp-regular) !important;
}

/* Footer legal row. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .tb-privacy :is(a, p),
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) .copyright-cell :is(a, p) {
  font-size: var(--rp-small) !important;
  line-height: 1.6 !important;
  font-weight: var(--rp-regular) !important;
}

/* Bold text in body copy uses SemiBold, the heaviest weight the guide allows. */
:is(.home, :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894)) :is(p, li) :is(strong, b) {
  font-weight: var(--rp-semibold) !important;
}

/* 3. Layout adjustments --------------------------------------------------------- */

/* Home hero: "Future" sits a little stronger behind "Legacy" (was 50%, then 65%). */
.home .banner-content__inner h1 strong:first-child {
  opacity: 0.75 !important;
}

/* Home, "We know you're busy": step graphic sits in the photo's bottom-left corner. */
.home .block--two-column-hovered-content .img-content__img-bottom {
  left: 0 !important;
  right: auto !important;
}

/* Home, "How Regional Prosperity can help you" (desktop, photo beside text). */
@media (min-width: 1025px) {
  /* Keep the panel its original height so the photo isn't cropped tighter. */
  .home .block--regional-tab .rt-tab-content__inner {
    min-height: 590px;
  }

  /* Soft divider line and "Learn more" button sit closer to the paragraph (gap was 156px). */
  .home .block--regional-tab .rt-tab-content__inner__text p {
    padding-bottom: 40px !important;
  }

  /* Step window: the green rectangle sits in the photo's bottom-left corner and the
     clay rectangle in its top-right. The clay frame sits between them, so its
     bottom-left corner meets the green rectangle's top-right corner and its
     top-right corner meets the clay rectangle's bottom-left corner. Widths are a
     share of the photo so the corners still meet at every desktop width. */
  .home .block--regional-tab .rt-tab-content__inner__img {
    --rp-step-h: 40px;
    --rp-step-low: 22%;
    --rp-step-high: 16%;
  }
  .home .block--regional-tab .rt-tab-content__inner__img__absolute-wrapper {
    top: var(--rp-step-h) !important;
    bottom: var(--rp-step-h) !important;
    left: var(--rp-step-low) !important;
    right: var(--rp-step-high) !important;
    width: auto !important;
    height: auto !important;
    align-items: flex-start !important;
  }
  /* "We'll meet you wherever you are in your journey" sits in the sky, inside the frame. */
  .home .block--regional-tab .rt-tab-content__inner__img__absolute-wrapper h3 {
    max-width: 100% !important;
  }

  /* The step graphic that sat under the panel is replaced by the two rectangles
     below, cut from the same image so the colours match exactly. */
  .home .block--regional-tab .container-block__content__img-bottom {
    display: none !important;
  }
  .home .block--regional-tab .rt-tab-content__inner__img::before,
  .home .block--regional-tab .rt-tab-content__inner__img::after {
    content: "";
    position: absolute;
    z-index: 2;
    height: var(--rp-step-h);
    background-image: url("/wp-content/themes/regional-prosperity/assets/images/rectangle-gradient5.png");
    background-repeat: no-repeat;
    pointer-events: none;
  }
  /* Green rectangle: the left 60% of the image's lower half. */
  .home .block--regional-tab .rt-tab-content__inner__img::before {
    left: 0;
    bottom: 0;
    width: var(--rp-step-low);
    background-size: 166.667% 200%;
    background-position: left bottom;
  }
  /* Clay rectangle: the right 40% of the image's upper half. */
  .home .block--regional-tab .rt-tab-content__inner__img::after {
    right: 0;
    top: 0;
    width: var(--rp-step-high);
    background-size: 250% 200%;
    background-position: right top;
  }
}

/* Footer (every page, desktop): the frame's bottom-left corner meets the top-right
   corner of the gradient step, and the legal row sits in the band beside the step.
   The step is drawn on the legal row itself so it stretches if the links wrap onto
   more lines; its gradients run left to right, so stretching doesn't distort them. */
@media (min-width: 1025px) {
  #page-footer .footer-gradient-bg {
    display: none !important;
  }
  #page-footer .pf-lower {
    box-sizing: border-box;
    min-height: 92px;
    padding-top: 17px !important;
    padding-bottom: 17px !important;
    display: flex;
    align-items: center;
  }
  #page-footer .pf-lower > .tb-wr {
    width: 100%;
  }
  #page-footer .pf-lower::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -361px;
    width: 361px;
    background: url("/wp-content/themes/regional-prosperity/assets/images/footer-gradient.png") no-repeat 0 0 / 100% 100%;
    pointer-events: none;
  }
}

/* Home, alignment (desktop). The page's alignment line is the hero's orange frame:
   36px in from each side of the content area, the same line as the logo and the
   step under the hero. */
@media (min-width: 1025px) {
  /* "Not sure what you need?" (every page): no vertical rule; text lines up with the FAQ above. */
  .block--banner-cta .banner-content.has-line-bg::before {
    display: none !important;
  }
  /* Text line: 96px inside the centred 1440px container (60px inside the 36px
     alignment line), the same as the FAQ and the text in the panels above. */
  .block--banner-cta {
    padding-left: 0 !important;
  }
  .block--banner-cta .container-block {
    padding-left: 96px !important;
  }
  .block--banner-cta .banner-content {
    padding-left: 0 !important;
  }

  /* "How Regional Prosperity can help you": heading and panel sit on the alignment
     line, and the panel no longer runs past it on the right. */
  .home .block--regional-tab .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
  .home .block--regional-tab .tab-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* The step at the bottom-left of the section above starts at the page edge, off
     the alignment line, so it's removed. */
  .home .block--regional-prosperity-carousel img[src*="rectangle-gradient4"] {
    display: none !important;
  }
}

/* Home, "Safeguard intergenerational wealth" photo: crop from further left so the
   woman sits in the centre of the frame and less of the blurred shoulder on the
   right shows (the crop was centred, 50%). */
.home .block--two-column-hovered-content .img-content__1 {
  object-position: 33% 50% !important;
}

/* Footer social icons (every page): five icons now, so the row sizes to fit them
   and the circles stay round. On phones the row sits on its own line under the menu. */
.theme-html #page-footer .footer-social-links {
  width: auto !important;
  flex-shrink: 0;
}
.theme-html #page-footer .footer-social-links a {
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .theme-html #page-footer .footer-social-links {
    position: static !important;
    justify-content: flex-start !important;
    margin-top: 32px;
  }
}

/* Home, cream "Regional Prosperity financial advisers live where you live" section
   (desktop): the box sits on the alignment line like the panel below it (it was
   120px in on the left and 60px on the right). Its inner padding is unchanged, so
   its text lines up with the text inside that panel. */
@media (min-width: 1025px) {
  .home .block--regional-prosperity-carousel > .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
}

/* "Not sure what you need?" (every page, every screen size): no vertical rule. */
.block--banner-cta .banner-content.has-line-bg::before {
  display: none !important;
}

/* Family page ----------------------------------------------------------------- */

/* Hero heading: "Build. Optimise. Embrace." stacks as a display lockup in SemiBold.
   All three words are solid. */
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner h1 {
  font-size: clamp(52px, 4.2vw, 76px) !important;
  line-height: 0.95 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner h1 span {
  display: block;
}
/* All three words are solid white (no see-through effect). */
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner h1 span {
  opacity: 1;
}
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .content > h3 {
  font-size: var(--rp-label) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
}
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .content p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
  max-width: 640px !important;
  margin-top: 24px;
}

/* Labels and the adviser cards in the three life-stage panels. */
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .top-wrapper__inner > h4 {
  font-size: var(--rp-label) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
}
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .bottom-tab-content__people h4 {
  font-size: var(--rp-body) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
}
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .bottom-tab-content__people p {
  font-size: var(--rp-label) !important;
}

/* Family hero: the photo sits a little higher (was centred). */
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .bg-image {
  background-position: center 70% !important;
}

/* Family hero: no frame on any screen size. */
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .bordered {
  display: none !important;
}

/* The small step above the first panel is removed. */
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .img-top-gradient {
  display: none !important;
}

@media (min-width: 1025px) {
  /* Hero: the same frame and step as the home hero. The frame sits on the page's
     alignment line (36px in), the text 60px inside it, and the step hangs from
     the frame's bottom-left corner. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
  /* The hero has no orange frame (removed at the client's request). */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .bordered {
    display: none !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .content {
    padding: 40px 0 40px 60px !important;
    width: auto !important;
    max-width: 760px;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    left: 36px !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .content > h3 {
    padding-bottom: 24px !important;
  }

  /* Life-stage panels sit on the alignment line; intro text lines up with the
     text inside the panels. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity > .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .top-wrapper {
    padding-left: 60px !important;
  }

  /* No empty space: the text sets the panel height, and the photo fills it. The
     adviser's name and title appear once, on the card under the quote. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .text-content {
    padding: 60px !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .building-prosperity__bio {
    padding-bottom: 0 !important;
    margin-bottom: 40px !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .building-prosperity__bio p:has(> strong) ~ p {
    display: none !important;
  }

  /* Photo fills the column; the strip under it and its small rectangle are gone. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content > img:first-child {
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content .img-bottom {
    display: none !important;
  }
  /* Each person sits in the middle of the frame. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content > img:first-child {
    object-position: 24% 50% !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_optimise, #tab_grow-your-legacy) .image-content > img:first-child {
    object-position: 40% 50% !important;
  }

  /* Step window, the same system as "How Regional Prosperity can help you" on the
     home page: green rectangle bottom-left, clay rectangle top-right, and one clay
     frame between them with its corners meeting theirs. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content {
    --rp-step-h: 40px;
    --rp-step-low: 22%;
    --rp-step-high: 16%;
  }
  /* No frames in the panels (removed at the client's request). */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content .bordered {
    display: none !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content::before,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content::after {
    content: "";
    position: absolute;
    z-index: 2;
    height: var(--rp-step-h);
    background-image: url("/wp-content/themes/regional-prosperity/assets/images/rectangle-gradient5.png");
    background-repeat: no-repeat;
    pointer-events: none;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content::before {
    left: 0;
    bottom: 0;
    width: var(--rp-step-low);
    background-size: 166.667% 200%;
    background-position: left bottom;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content::after {
    right: 0;
    top: 0;
    width: var(--rp-step-high);
    background-size: 250% 200%;
    background-position: right top;
  }

  /* Per-panel rectangles: one clay rectangle in the photo's top-right corner on
     Build and Embrace, none on Optimise, and no bottom rectangles. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content::before,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_optimise, #tab_grow-your-legacy) .image-content::after {
    display: none;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content::after,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content::after {
    width: var(--rp-rect-short);
    height: var(--rp-rect-depth);
  }

  /* Photos sit higher in their panels: each image is drawn taller than the panel
     and anchored to the bottom, so less sky shows above the people. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content {
    overflow: hidden !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .image-content > img:first-child {
    top: auto !important;
    bottom: 0 !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content > img:first-child {
    height: 130% !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_optimise, #tab_grow-your-legacy) .image-content > img:first-child {
    height: 112% !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content > img:first-child {
    height: 110% !important;
  }

  /* Embrace: a frame around the woman from the chest up, in the brand green of
     this panel. Placed in percentages of the photo so it stays on her as the
     panel resizes. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content .bordered {
    display: block !important;
    position: absolute !important;
    top: 7% !important;
    bottom: 51.5% !important;
    left: 17% !important;
    right: 14% !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 2px solid #00bf7d !important;
    z-index: 1;
    pointer-events: none;
  }

  /* Green step rectangles (the brand guide's "step opening a window"):
     Build: one just outside the photo, at its bottom-left.
     Embrace: one directly under the frame, running from the photo's left edge to
     the frame's bottom-left corner.
     The photo is clipped on three sides only, so a rectangle can sit outside it
     on the left while the raised photo stays inside its column. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content {
    overflow: visible !important;
    clip-path: inset(0 0 0 -400px);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content::before,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content::before {
    display: block;
    height: var(--rp-rect-depth);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content::before {
    left: auto;
    right: 100%;
    bottom: 0;
    width: var(--rp-rect-short);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content::before {
    left: 0;
    top: 48.5%;
    bottom: auto;
    width: 17%;
  }

  /* Less space between the hero and the "Family prosperity" intro. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner {
    margin-bottom: 0 !important;
  }
}

/* "More Regional Australians that have our back" and the closing call-to-action:
   the text runs the full width of the content before it wraps. */
:is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--testimonial-carousel .top-content p {
  max-width: none !important;
  width: auto !important;
}
.block--banner-cta .banner-content h2 {
  max-width: none !important;
  width: auto !important;
}

/* Keeps "30-minute" together in the closing call-to-action. */
.rp-nowrap {
  white-space: nowrap;
}

/* 4. Gradient rectangles: one size everywhere (desktop) ---------------------------
   Every rectangle is 40px deep. A single rectangle is 158px wide. A two-step bar
   is a 362px rectangle at the bottom-left with a 158px one stepping up at its
   top-right (520px in all), the size of the Family hero bar. Two-step bars are
   redrawn as two gradients in each image's own colours so both steps are exact. */
:root {
  --rp-rect-depth: 40px;
  --rp-rect-short: 158px;
  --rp-rect-long: 362px;
}
@media (min-width: 1025px) {
  /* Hero bars (Home and Family) and Home's "We know you're busy" bar. */
  .home .banner-content__img-bottom,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom,
  .home .block--two-column-hovered-content .img-content__img-bottom {
    width: calc(var(--rp-rect-long) + var(--rp-rect-short)) !important;
    height: calc(var(--rp-rect-depth) * 2) !important;
    max-width: none !important;
    object-position: -9999px 0;
    background-repeat: no-repeat !important;
    background-size: var(--rp-rect-short) var(--rp-rect-depth), var(--rp-rect-long) var(--rp-rect-depth) !important;
    background-position: right top, left bottom !important;
  }
  .home .banner-content__img-bottom {
    background-image: linear-gradient(90deg, #cca141, #f78661), linear-gradient(90deg, #c28161, #563043) !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: linear-gradient(90deg, #c28262, #1cb4c6), linear-gradient(90deg, #cca241, #c38162) !important;
  }
  .home .block--two-column-hovered-content .img-content__img-bottom {
    background-image: linear-gradient(90deg, #1dc380, #1bb5c6), linear-gradient(90deg, #c18262, #1cb4c6) !important;
  }

  /* Home hero: the single rectangle at the frame's top-right. */
  .home .banner-content__img-top {
    width: var(--rp-rect-short) !important;
    height: var(--rp-rect-depth) !important;
  }

  /* Home, "How Regional Prosperity can help you": both rectangles are single size. */
  .home .block--regional-tab .rt-tab-content__inner__img {
    --rp-step-h: var(--rp-rect-depth);
    --rp-step-low: var(--rp-rect-short);
    --rp-step-high: var(--rp-rect-short);
  }

  /* Footer (every page): the two-step bar, its top-right corner meeting the frame. */
  #page-footer .pf-lower {
    min-height: calc(var(--rp-rect-depth) * 2);
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  #page-footer .pf-lower::before {
    bottom: auto;
    height: calc(var(--rp-rect-depth) * 2);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    left: calc((var(--rp-rect-long) + var(--rp-rect-short)) * -1);
    background: linear-gradient(90deg, #fd855f, #603849) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, #00bf7d, #00b0c2) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
  }
}

/* Home, "We know you're busy" (desktop): a shorter bottom step (260px) with the
   standard 158px step above it; the box is the sum of the two, so the corners meet.
   Depth stays 40px like every other rectangle. */
@media (min-width: 1025px) {
  .home .block--two-column-hovered-content .img-content__img-bottom {
    width: calc(260px + var(--rp-rect-short)) !important;
    background-size: var(--rp-rect-short) var(--rp-rect-depth), 260px var(--rp-rect-depth) !important;
  }
}

/* 5. Family life-stage panels: design pass (desktop) ------------------------------
   One system for all three panels, following the brand guide's "step opening a
   window": the photo takes half the panel and alternates sides, a frame sits
   around the subject from head to chest, and one two-tier step meets the frame's
   lower corner on the side facing the text, running across the edge between
   photo and panel. Only the colours change from panel to panel.
   The theme shows these panels side by side from 1200px. */
/* Between 1025px and 1199px the theme stacks these panels (its tablet layout), so
   the rectangles drawn for the side-by-side layout are left off there. */
@media (min-width: 1025px) and (max-width: 1199px) {
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::before,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::after {
    display: none !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content .bordered {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .tab-wrapper > div > .text-content,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .tab-wrapper > div > .image-content {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) :is(#tab_optimise, #tab_grow-your-legacy) > div {
    flex-direction: row-reverse !important;
  }
  /* Slightly tighter top and bottom padding keeps each panel within one screen
     as the panels stack while scrolling. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity .tab-wrapper .text-content {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  /* The photo fills its half; the earlier per-panel crops are reset. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content > img:first-child {
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }
  /* Build: drawn larger and anchored to the bottom so the couple fill the frame
     and less sky sits above them. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content > img:first-child {
    top: auto !important;
    height: 140% !important;
    object-position: 19% 100% !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_optimise, #tab_grow-your-legacy) .image-content > img:first-child { object-position: 50% 50% !important; }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content > img:first-child {
    top: auto !important;
    height: 110% !important;
    object-position: 50% 100% !important;
  }
  /* The photo is clipped to its half. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content {
    overflow: visible !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content {
    clip-path: inset(0);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_optimise, #tab_grow-your-legacy) .image-content {
    clip-path: inset(0);
  }

  /* Clear the earlier rectangles and frames before the new system is drawn. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::before,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::after {
    display: none;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content .bordered {
    display: none !important;
  }

  /* The window: frame position (as a share of the photo), frame colour, and the
     two step colours, set per panel. The upper step touches the frame's lower
     corner; the lower step continues outward and stops at the photo's edge, so it
     never crowds the text. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content {
    --rp-step-upper: 110px;
    --rp-step-bleed: 0px;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_build, #tab_define-and-shape-your-legacy) .image-content {
    --rp-f-top: 7.5%; --rp-f-bottom: 39%; --rp-f-left: 30.5%; --rp-f-right: 16.5%;
    --rp-f-colour: #d2805f;
    --rp-step-1: linear-gradient(90deg, #c28161, #563043);
    --rp-step-2: linear-gradient(90deg, #1dc47f, #1bb5c6);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_optimise, #tab_grow-your-legacy) .image-content {
    --rp-f-top: 24.5%; --rp-f-bottom: 34.5%; --rp-f-left: 22%; --rp-f-right: 32.5%;
    --rp-f-colour: #d59e34;
    --rp-step-1: linear-gradient(90deg, #1dc47f, #1bb5c6);
    --rp-step-2: linear-gradient(90deg, #c28161, #563043);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_embrace, #tab_transition-to-the-next-generation) .image-content {
    --rp-f-top: 8%; --rp-f-bottom: 50.5%; --rp-f-left: 27.5%; --rp-f-right: 24%;
    --rp-f-colour: #00bf7d;
    --rp-step-1: linear-gradient(90deg, #cca141, #f78661);
    --rp-step-2: linear-gradient(90deg, #fd855f, #603849);
  }

  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content .bordered {
    display: block !important;
    position: absolute !important;
    top: var(--rp-f-top) !important;
    bottom: var(--rp-f-bottom) !important;
    left: var(--rp-f-left) !important;
    right: var(--rp-f-right) !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 2px solid var(--rp-f-colour) !important;
    z-index: 2;
    pointer-events: none;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::before,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::after {
    display: block;
    content: "";
    position: absolute;
    z-index: 3;
    height: var(--rp-rect-depth);
    bottom: auto;
    width: auto;
    pointer-events: none;
  }
  /* Upper step: its top edge on the frame's bottom line. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::after {
    top: calc(100% - var(--rp-f-bottom));
    background: var(--rp-step-1);
  }
  /* Lower step: one step down, continuing outward past the photo's edge. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_optimise, #tab_grow-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::before {
    top: calc(100% - var(--rp-f-bottom) + var(--rp-rect-depth));
    background: var(--rp-step-2);
  }
  /* Photo on the right (Build, Embrace): steps go left from the frame's
     bottom-left corner. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::after {
    right: calc(100% - var(--rp-f-left));
    left: auto;
    width: var(--rp-step-upper);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::before {
    left: calc(var(--rp-step-bleed) * -1);
    right: calc(100% - var(--rp-f-left) + var(--rp-step-upper));
  }
  /* Photo on the left (Optimise): steps go right from the frame's bottom-right corner. */
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_optimise, #tab_grow-your-legacy) .image-content::after {
    left: calc(100% - var(--rp-f-right));
    right: auto;
    width: var(--rp-step-upper);
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(#tab_optimise, #tab_grow-your-legacy) .image-content::before {
    left: calc(100% - var(--rp-f-right) + var(--rp-step-upper));
    right: calc(var(--rp-step-bleed) * -1);
  }
}

/* Family panels, pared back (client's call): only Optimise keeps its frame and
   step; Build and Embrace show the photo alone. */
@media (min-width: 1200px) {
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content .bordered {
    display: none !important;
  }
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::before,
  :is(.page-id-58, .page-id-60, .page-id-62, .page-id-1737, .page-id-1135, .page-id-1233, .page-id-1696, .page-id-1894) .block--building-prosperity :is(:is(#tab_build, #tab_define-and-shape-your-legacy), :is(#tab_embrace, #tab_transition-to-the-next-generation)) .image-content::after {
    display: none !important;
  }
}

/* Intergenerational: page-specific values on top of the shared Family system. */
/* Hero: the photo keeps its natural framing (the family stands centre-right, Tom
   nearest the text), so the text stays in a narrow column on the left, as the
   original layout intended. To lighten the block: the heading is SemiBold at
   display size but wraps within the column; the first sentence reads as a lead
   in Medium; the longer paragraph steps back to 16px Regular at 85% white with
   more line spacing. */
.page-id-60 .block--custom-layout__full-width-banner .bg-image {
  background-position: center 55% !important;
}
.page-id-60 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(36px, 2.4vw, 46px) !important;
  line-height: 1.08 !important;
}
.page-id-60 .block--custom-layout__full-width-banner h1 span {
  display: inline !important;
}
.page-id-60 .block--custom-layout__full-width-banner .content p {
  max-width: none !important;
  margin-top: 0 !important;
}
.page-id-60 .block--custom-layout__full-width-banner .content h1 + p {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-medium) !important;
  margin-top: 28px !important;
}
.page-id-60 .block--custom-layout__full-width-banner .content h1 + p + p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: var(--rp-regular) !important;
  opacity: 0.85;
  margin-top: 12px !important;
}
@media (min-width: 1025px) {
  .page-id-60 .block--custom-layout__full-width-banner .content {
    max-width: 470px;
  }
  /* Body copy stays left of Tom (his shoulder sits about 340px in from the text
     line); the hero grows to fit rather than the text running under the bar. */
  .page-id-60 .block--custom-layout__full-width-banner .content p {
    max-width: 330px !important;
  }
  .page-id-60 .block--custom-layout__full-width-banner .bg-image {
    max-height: none !important;
    height: auto !important;
    padding-bottom: 40px !important;
  }
  .page-id-60 .block--custom-layout__full-width-banner .bg-image > .container-block,
  .page-id-60 .block--custom-layout__full-width-banner .bg-image .content {
    height: auto !important;
  }
  /* Never shorter than Family's hero; the step always follows the photo's edge. */
  .page-id-60 .block--custom-layout__full-width-banner .bg-image > .container-block {
    min-height: 479px;
  }
  /* A shallower hero: less space above and below the text. The photo ends at the
     step's join, as on Family: upper step in the photo, lower step on the white. */
  .page-id-60 .block--custom-layout__full-width-banner .bg-image .content {
    padding-top: 16px !important;
    padding-bottom: 24px !important;
  }
  /* Hero bar in this image's own colours. */
  .page-id-60 .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: linear-gradient(90deg, #cca241, #f88762), linear-gradient(90deg, #c38162, #563043) !important;
  }
}
@media (min-width: 1200px) {
  /* Middle panel ("How do you grow wealth across generations?"): the window frames
     the grandfather and grandchild at the swing; the step leads from it toward
     the text. */
  .page-id-60 .block--building-prosperity #tab_grow-your-legacy .image-content {
    --rp-f-top: 55%; --rp-f-bottom: 12%; --rp-f-left: 24%; --rp-f-right: 49.5%;
  }
  /* Photo crops for this page's pictures. Define: the whole family, with room
     above the child on dad's shoulders. Transition: centred on the girl and her
     grandmother; the blurred grandfather frames the left edge. */
  .page-id-60 .block--building-prosperity #tab_define-and-shape-your-legacy .image-content > img:first-child {
    top: 0 !important;
    height: 100% !important;
    object-position: 50% 82% !important;
  }
  .page-id-60 .block--building-prosperity #tab_transition-to-the-next-generation .image-content > img:first-child {
    top: 0 !important;
    height: 100% !important;
    object-position: 72% 50% !important;
  }
}

@media (min-width: 1025px) and (max-width: 1400px) {
  /* Intergenerational hero: the heading wraps sooner so it stays clear of Tom. */
  .page-id-60 .block--custom-layout__full-width-banner .content {
    max-width: 380px;
  }
}

/* Intergenerational panels (client's call): all three are photo-only for now. */
@media (min-width: 1200px) {
  .page-id-60 .block--building-prosperity :is(#tab_define-and-shape-your-legacy, #tab_grow-your-legacy, #tab_transition-to-the-next-generation) .image-content .bordered,
  .page-id-60 .block--building-prosperity :is(#tab_define-and-shape-your-legacy, #tab_grow-your-legacy, #tab_transition-to-the-next-generation) .image-content::before,
  .page-id-60 .block--building-prosperity :is(#tab_define-and-shape-your-legacy, #tab_grow-your-legacy, #tab_transition-to-the-next-generation) .image-content::after {
    display: none !important;
  }
}

/* Testimonials (every page): where a client has no photo, the site used a logo
   placeholder that crops to an empty circle. It's hidden, so the client's name
   lines up with the quote above it. */
.carousel-content__testimonial__flex img[src*="Group-38.png"] {
  display: none !important;
}
.carousel-content__testimonial__flex img[src*="Group-38.png"] + div {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Business page ------------------------------------------------------------------ */
/* Hero: same treatment as Intergenerational. The photo keeps its natural framing
   (the man sits on the right), the heading is a SemiBold lockup that wraps in the
   left column, and the single long paragraph is set lighter with more spacing. */
.page-id-62 .block--custom-layout__full-width-banner .bg-image {
  background-position: center 50% !important;
}
.page-id-62 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(36px, 2.4vw, 46px) !important;
  line-height: 1.08 !important;
}
.page-id-62 .block--custom-layout__full-width-banner .content p {
  font-size: 17px !important;
  line-height: 1.6 !important;
  font-weight: var(--rp-regular) !important;
  opacity: 0.9;
  max-width: 440px !important;
  margin-top: 28px !important;
}
@media (min-width: 1025px) {
  /* The text stays in the darker left of the photo, clear of the bright window. */
  .page-id-62 .block--custom-layout__full-width-banner .content {
    max-width: 600px !important;
    width: auto !important;
  }
  .page-id-62 .block--custom-layout__full-width-banner .content > div {
    width: auto !important;
    max-width: none !important;
  }
  .page-id-62 .block--custom-layout__full-width-banner .bg-image {
    max-height: none !important;
    height: auto !important;
    padding-bottom: 40px !important;
  }
  .page-id-62 .block--custom-layout__full-width-banner .bg-image > .container-block,
  .page-id-62 .block--custom-layout__full-width-banner .bg-image .content {
    height: auto !important;
  }
  .page-id-62 .block--custom-layout__full-width-banner .bg-image > .container-block {
    min-height: 479px;
  }
  /* Hero bar in this image's own colours. */
  .page-id-62 .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: linear-gradient(90deg, #563043, #c28262), linear-gradient(90deg, #c38162, #1bb5c7) !important;
  }

  /* Succession panel: half and half on the box line, a solid cream background in
     place of the gradient so the text reads clearly, text on the text line. */
  .page-id-62 .block--two-column-image {
    margin-top: 120px !important;
    padding-top: 0 !important;
    padding-bottom: 100px !important;
  }
  .page-id-62 .block--two-column-image .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
  .page-id-62 .block--two-column-image .container-block__inner {
    background: #f6ecd6 !important;
    display: flex !important;
    align-items: stretch !important;
  }
  .page-id-62 .block--two-column-image .col-left,
  .page-id-62 .block--two-column-image .col-right {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    background: none !important;
  }
  .page-id-62 .block--two-column-image .col-left {
    padding: 60px 60px 100px !important;
    box-sizing: border-box;
  }
  .page-id-62 .block--two-column-image .col-right {
    position: relative;
    padding: 0 !important;
  }
  .page-id-62 .block--two-column-image .col-right img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 50% 60% !important;
  }
  .page-id-62 .block--two-column-image .col-left h2 {
    font-size: var(--rp-h2) !important;
    line-height: 1.1 !important;
  }
  .page-id-62 .block--two-column-image .col-left h4 {
    margin-top: 32px !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: var(--rp-semibold) !important;
  }
  .page-id-62 .block--two-column-image .col-left h3 {
    font-size: var(--rp-h3) !important;
    line-height: 1.25 !important;
  }
  /* The rectangle under the panel: the standard two-step bar on the box line, its
     upper step in the panel and its lower step below it. */
  .page-id-62 .block--two-column-image .container-block__img-bottom {
    left: 36px !important;
    right: auto !important;
    bottom: -40px !important;
    top: auto !important;
    width: calc(var(--rp-rect-long) + var(--rp-rect-short)) !important;
    height: calc(var(--rp-rect-depth) * 2) !important;
    max-width: none !important;
    object-position: -9999px 0;
    background-repeat: no-repeat !important;
    background-size: var(--rp-rect-short) var(--rp-rect-depth), var(--rp-rect-long) var(--rp-rect-depth) !important;
    background-position: right top, left bottom !important;
    background-image: linear-gradient(90deg, #1dc47f, #1bb5c7), linear-gradient(90deg, #573143, #cca241) !important;
  }

  /* "The Adapt way": the heading on the section scale, less empty space around it. */
  .page-id-62 .banner-cta-business-page {
    padding-top: 60px !important;
    padding-bottom: 20px !important;
  }
  .page-id-62 .banner-cta-business-page h2 {
    font-size: var(--rp-h2) !important;
    line-height: 1.1 !important;
  }
}

/* Our Prosperity (Our Team) page --------------------------------------------------- */
/* Hero: "Local insights. Regional impact." as a display lockup like Family's,
   SemiBold, one sentence per line, sized to fill the space left of the team. */
.page-id-64 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(48px, 3.6vw, 68px) !important;
  line-height: 1 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
/* Hero photo (supplied 2026-11-27): the team walks the path on the right; the
   crop keeps their faces and most of their walk in view. Shown at its natural
   size (cover, no enlargement). The file is a 3840px export of the photographer's
   original (Regional Prosperity Photos/25_08_25/RS109036.jpg), sharp on Retina. */
.page-id-64 .block--custom-layout__full-width-banner .bg-image {
  background-size: cover !important;
  background-position: center 72% !important;
}
/* On wide screens the photo is cropped tighter top to bottom, so it can't sit as
   high without cutting into heads under the menu. */
@media (min-width: 1600px) {
  .page-id-64 .block--custom-layout__full-width-banner .bg-image {
    background-position: center 60% !important;
  }
}
.page-id-64 .block--custom-layout__full-width-banner h1 span {
  display: block;
}
.page-id-64 .block--custom-layout__full-width-banner .content,
.page-id-64 .block--custom-layout__full-width-banner .content > div {
  width: auto !important;
  max-width: 760px !important;
}
.page-id-64 .block--custom-layout__full-width-banner h1 span {
  white-space: nowrap;
}
.page-id-64 .block--custom-layout__full-width-banner .content p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
  max-width: 420px !important;
  margin-top: 24px;
}
/* "Our story" heading: "and" stays on the first line; the break only applies
   where the line has room (desktop). */
.page-id-64 .block--our-story h2 {
  max-width: none !important;
}
.rp-br-desktop {
  display: none;
}
@media (min-width: 1200px) {
  .rp-br-desktop {
    display: inline;
  }
}

/* Our Prosperity, "What we stand for" (desktop): the call-to-action line that sat
   at the foot of the card is removed (it repeats at the bottom of the page), so
   the divider under the values goes too, the card closes up under them, and the
   "What we do" section moves up. */
@media (min-width: 1025px) {
  .page-id-64 .our-prosperity-core-carousel .carousel-content::after {
    display: none !important;
  }
  .page-id-64 .our-prosperity-core-carousel .carousel-content {
    padding-bottom: 0 !important;
  }
  .page-id-64 .our-prosperity-core-carousel {
    margin-bottom: 40px !important;
  }
}

/* Our Prosperity and Office Locations (hero, same image): two-step bars at the standard size (362px lower step,
   158px upper step, 40px deep) on the box line, 36px inside the content area,
   redrawn in each image's own colours. */
@media (min-width: 1025px) {
  :is(.page-id-64, .page-id-989) .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom,
  .page-id-64 .our-prosperity-core-carousel .container-block__content__img-bottom {
    width: calc(var(--rp-rect-long) + var(--rp-rect-short)) !important;
    height: calc(var(--rp-rect-depth) * 2) !important;
    max-width: none !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(var(--rp-rect-depth) * -2) !important;
    object-position: -9999px 0;
    background-repeat: no-repeat !important;
    background-size: var(--rp-rect-short) var(--rp-rect-depth), var(--rp-rect-long) var(--rp-rect-depth) !important;
    background-position: right top, left bottom !important;
  }
  /* Hero: upper step in the photo, lower step on the white below. */
  :is(.page-id-64, .page-id-989) .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    left: 36px !important;
    background-image: linear-gradient(90deg, #c28061, #573043), linear-gradient(90deg, #c28162, #1bb4c6) !important;
  }
  /* "What we stand for": the card sits 120px inside the content area, so the bar
     starts 84px left of the card; upper step on the card, lower step below it. */
  .page-id-64 .our-prosperity-core-carousel .container-block__content__img-bottom {
    left: -84px !important;
    bottom: calc(var(--rp-rect-depth) * -1) !important;
    background-image: linear-gradient(90deg, #1cc37f, #1ab4c6), linear-gradient(90deg, #cba141, #573143) !important;
  }
}

/* FAQs page --------------------------------------------------------------------- */
/* Hero: the empty label is removed, the heading is a SemiBold display lockup, and
   a standard two-step bar (green to teal over clay to plum, a pair no other page
   uses) closes
   the hero like every other page: upper step in the photo, lower on the white. */
.page-id-1737 .block--custom-layout__full-width-banner .content > h3:empty {
  display: none !important;
}
.page-id-1737 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(44px, 3.1vw, 60px) !important;
  line-height: 1 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
@media (min-width: 1025px) {
  .page-id-1737 .block--custom-layout__full-width-banner .bg-image {
    position: relative;
    overflow: visible !important;
  }
  .page-id-1737 .block--custom-layout__full-width-banner .bg-image > .container-block {
    position: relative;
    display: flex !important;
    align-items: flex-end !important;
  }
  /* With no label or paragraph, the heading sits low in the hero, 60px above the
     bar, rather than at the top. */
  .page-id-1737 .block--custom-layout__full-width-banner .content {
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 60px !important;
  }
  /* The questions start a clear step below the hero bar. */
  .page-id-1737 .blog-single__faqs {
    padding-top: 120px !important;
  }
  .page-id-1737 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: calc(var(--rp-rect-depth) * -2);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, #1dc47f, #1bb5c6) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, #c28161, #563043) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 2;
  }
}

/* Journal page ------------------------------------------------------------------ */
/* Hero: as FAQs. Empty label removed, SemiBold lockup ("Regional Prosperity" /
   "Journal"), the 22px intro, and the standard bar (gold to coral over green to
   teal, a pair no other page uses). */
.page-id-1135 .block--custom-layout__full-width-banner .content > h3:empty {
  display: none !important;
}
.page-id-1135 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(44px, 2.7vw, 52px) !important;
  line-height: 1 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
/* Three short lines ("Regional" / "Prosperity" / "Journal") keep the heading
   narrow, clear of the couple. */
.page-id-1135 .block--custom-layout__full-width-banner h1 {
  max-width: 6em !important;
}
/* The couple sit centre frame, so the photo is drawn a little larger and anchored
   left, moving them right of the heading. */
.page-id-1135 .block--custom-layout__full-width-banner .bg-image {
  background-size: 125% auto !important;
  background-position: left 45% !important;
}
@media (min-width: 1600px) {
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image {
    background-size: 108% auto !important;
    background-position: left 50% !important;
  }
}
.page-id-1135 .block--custom-layout__full-width-banner .content p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
  max-width: 300px !important;
  margin-top: 24px;
}
@media (min-width: 1025px) {
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image {
    overflow: visible !important;
  }
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image > .container-block {
    position: relative;
    display: flex !important;
    align-items: flex-end !important;
  }
  .page-id-1135 .block--custom-layout__full-width-banner .content {
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 60px !important;
    width: auto !important;
    max-width: 760px !important;
  }
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: calc(var(--rp-rect-depth) * -2);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, #cca141, #f78661) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, #1dc47f, #1bb5c6) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 2;
  }

  /* Featured article and post grid: on the box line, 120px below the hero bar. */
  .page-id-1135 .block--featured-article {
    padding-top: 120px !important;
  }
  .page-id-1135 .block--featured-article .container-block,
  .page-id-1135 .block--blog-post-grid .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
  /* Post cards are the width of the featured article's photo (560px), so the two
     images line up. */
  .page-id-1135 .blog-post-grid__cards {
    grid-template-columns: repeat(auto-fill, 560px) !important;
  }
}
/* Featured card: brand cream, card heading scale, readable small text. */
.page-id-1135 .featured-article-card__content {
  background-color: #f6ecd6 !important;
}
.page-id-1135 .featured-article-card__content h2 {
  font-size: var(--rp-h3) !important;
  line-height: 1.25 !important;
  font-weight: var(--rp-medium) !important;
}
.page-id-1135 .featured-article-card__summary p {
  font-size: var(--rp-body) !important;
  line-height: 1.6 !important;
}
.page-id-1135 .featured-article-card__author-name {
  font-size: var(--rp-label) !important;
  font-weight: var(--rp-semibold) !important;
}
.page-id-1135 .featured-article-card__author-title {
  font-size: var(--rp-label) !important;
}
.page-id-1135 .featured-article-card__meta {
  font-size: var(--rp-small) !important;
}
.page-id-1135 .featured-article-card__badge {
  font-size: 12px !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Post cards: the title on the card heading scale. */
.page-id-1135 .blog-post-grid__content h6,
.page-id-1135 .blog-post-grid__content h6 a {
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: var(--rp-medium) !important;
}
/* Newsletter: heading on the section scale, the site's standard button, and a
   readable privacy line. */
.page-id-1135 .block--newsletter-signup h2 {
  font-size: var(--rp-h2) !important;
  line-height: 1.1 !important;
  font-weight: var(--rp-medium) !important;
}
.page-id-1135 .newsletter-signup__trigger {
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 40px !important;
  padding: 12px 24px !important;
  height: 48px;
  font-size: 16px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 24px !important;
  text-transform: none !important;
  letter-spacing: -0.022em !important;
}
.page-id-1135 .newsletter-signup__privacy {
  color: #004e57 !important;
  opacity: 0.75;
  font-size: var(--rp-small) !important;
}

/* Community Grants page ------------------------------------------------------------ */
/* Hero: SemiBold lockup on fewer lines, 22px intro, the standard bar (gold, after
   the page's original frame colour), and the photo shifted so the man on the left
   sits clear of the text. */
.page-id-1233 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(40px, 2.9vw, 54px) !important;
  line-height: 1.05 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
/* Photo keeps its original framing (the two men at the door stay whole), sitting
   a little higher than centre so more of them shows below the menu. */
.page-id-1233 .block--custom-layout__full-width-banner .bg-image {
  background-position: center 32% !important;
}
.page-id-1233 .block--custom-layout__full-width-banner .content p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
  max-width: 460px !important;
  margin-top: 24px;
}
@media (min-width: 1025px) {
  .page-id-1233 .block--custom-layout__full-width-banner .bg-image {
    overflow: visible !important;
  }
  .page-id-1233 .block--custom-layout__full-width-banner .bg-image > .container-block {
    position: relative;
  }
  /* The text sits low in the hero, over the man's shirt and below his face. */
  .page-id-1233 .block--custom-layout__full-width-banner .content {
    width: auto !important;
    max-width: 640px !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 48px !important;
  }

  .page-id-1233 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: calc(var(--rp-rect-depth) * -2);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, #cca141, #f78661) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, #c28161, #563043) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 2;
  }

  /* Form card: spans the content area from box line to box line, so it sits
     evenly on the screen like the panels on other pages; content on the text line. */
  .page-id-1233 .rp-grants-section {
    margin-top: 120px !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
  .page-id-1233 .rp-grants-form {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 56px 60px 60px !important;
    border: 1px solid rgba(0, 78, 87, 0.12) !important;
    box-shadow: none !important;
  }
}
/* Form type and colours: brand teal throughout, readable labels. */
.page-id-1233 .rp-grants-form h2 {
  font-size: var(--rp-h3) !important;
  font-weight: var(--rp-medium) !important;
  color: #004e57 !important;
}
.page-id-1233 .rp-grants-form > p {
  font-size: var(--rp-body) !important;
  color: #004e57 !important;
}
.page-id-1233 .rp-grants-form h3 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: var(--rp-semibold) !important;
  color: #004e57 !important;
  margin-top: 40px !important;
}
.page-id-1233 .rp-grants-form .forminator-label {
  font-size: var(--rp-label) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
  color: #004e57 !important;
  margin-bottom: 8px !important;
}
.page-id-1233 .rp-grants-form .forminator-description {
  font-size: var(--rp-small) !important;
  color: rgba(0, 78, 87, 0.7) !important;
}
.page-id-1233 .rp-grants-form .forminator-input,
.page-id-1233 .rp-grants-form .forminator-textarea,
.page-id-1233 .rp-grants-form select,
.page-id-1233 .rp-grants-form .select2-selection {
  font-size: 16px !important;
  font-family: inherit !important;
  color: #004e57 !important;
  border: 1px solid rgba(0, 78, 87, 0.35) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  padding: 10px 14px !important;
  box-sizing: border-box;
}
/* One field height (48px) for text boxes and the dropdown alike. */
.page-id-1233 .rp-grants-form input.forminator-input,
.page-id-1233 .rp-grants-form select,
.page-id-1233 .rp-grants-form .select2-selection {
  height: 48px !important;
  min-height: 0 !important;
}
.page-id-1233 .rp-grants-form .select2-selection {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-items: center;
}
.page-id-1233 .rp-grants-form .forminator-input:focus,
.page-id-1233 .rp-grants-form .forminator-textarea:focus,
.page-id-1233 .rp-grants-form select:focus {
  border-color: #00bf7d !important;
  outline: 2px solid rgba(0, 191, 125, 0.25) !important;
  outline-offset: 0;
}
.page-id-1233 .rp-grants-form .forminator-radio-label {
  font-size: 16px !important;
  color: #004e57 !important;
}
.page-id-1233 .rp-grants-form .forminator-radio-bullet {
  border-color: rgba(0, 78, 87, 0.45) !important;
}
/* Terms box: brand cream, body-size text. */
.page-id-1233 .rp-grants-form .sdev-terms-box {
  background: #f6ecd6 !important;
  border: 0 !important;
  border-radius: 8px;
  padding: 12px 28px !important;
}
.page-id-1233 .rp-grants-form .sdev-terms-box :is(p, li) {
  font-size: var(--rp-body) !important;
  line-height: 1.6 !important;
  color: #004e57 !important;
}
.page-id-1233 .rp-grants-form .forminator-field-html :is(p, li) {
  font-size: var(--rp-body) !important;
  color: #004e57 !important;
}
/* Submit: the site's standard button. */
.page-id-1233 .rp-grants-form .forminator-button-submit {
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56) !important;
  border-radius: 40px !important;
  padding: 12px 28px !important;
  font-size: 16px !important;
  font-weight: var(--rp-semibold) !important;
  min-width: 140px;
}

/* Partners page ------------------------------------------------------------------ */
/* Hero: empty label removed, "Our Partners" as a display lockup, 22px intro, the
   standard bar in warm brand colours (gold to coral, coral to plum), a pair not
   used on any other page. The photo is drawn
   a little larger and anchored left, moving the man at the table right of the text. */
.page-id-1696 .block--custom-layout__full-width-banner .bg-image {
  background-size: 120% auto !important;
  background-position: left 40% !important;
}
.page-id-1696 .block--custom-layout__full-width-banner .content > h3:empty {
  display: none !important;
}
.page-id-1696 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(52px, 4vw, 72px) !important;
  line-height: 0.95 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
.page-id-1696 .block--custom-layout__full-width-banner .content p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
  max-width: 360px !important;
  margin-top: 24px;
}
@media (min-width: 1025px) {
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image {
    overflow: visible !important;
  }
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image > .container-block {
    position: relative;
  }
  .page-id-1696 .block--custom-layout__full-width-banner .content {
    width: auto !important;
    max-width: 640px !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 48px !important;
  }
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: calc(var(--rp-rect-depth) * -2);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, #fd855f, #603849) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, #cca141, #f78661) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 2;
  }
  /* Cards: on the box line, 120px below the hero bar. */
  .page-id-1696 .block--partners {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }
  .page-id-1696 .block--partners .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
}
/* Card type on the brand scale, in brand teal; "Visit website" sits at the foot
   of every card so the links line up across the row. */
.page-id-1696 .rp-partner-card {
  display: flex !important;
  flex-direction: column !important;
}
.page-id-1696 .rp-partner-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
}
.page-id-1696 .rp-partner-card__name {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: var(--rp-semibold) !important;
  color: #004e57 !important;
}
.page-id-1696 .rp-partner-card__desc {
  font-size: var(--rp-body) !important;
  line-height: 1.6 !important;
  color: #004e57 !important;
}
.page-id-1696 .rp-partner-card__case,
.page-id-1696 .rp-partner-card__more {
  font-size: var(--rp-body) !important;
  font-weight: var(--rp-semibold) !important;
}
.page-id-1696 .rp-partner-card__case {
  margin-top: auto !important;
}
.page-id-1696 .rp-partner-card__desc + .rp-partner-card__more {
  margin-top: auto !important;
}

/* 6. Page-wide alignment (desktop, every page) ------------------------------------
   Two vertical lines run down every page: the box line, 36px inside the centred
   1440px content area (hero step, panels, icon squares), and the text line, 60px
   further in (96px), where headings and body copy start. */
@media (min-width: 1025px) {
  /* Frequently asked questions: text on the text line. */
  .blog-single__faqs .container-block {
    padding-left: 96px !important;
    padding-right: 96px !important;
  }
  /* Testimonials: the green icon square sits on the box line; the heading and the
     cards keep their spacing from it. */
  .block--testimonial-carousel .container-block {
    padding-left: 86px !important;
  }
  /* Home, "We know you're busy": text on the text line; the photo's right edge
     on the box line. */
  .home .block--two-column-hovered-content .container-block {
    padding-left: 96px !important;
    padding-right: 36px !important;
  }
}

/* 7. Step colours: the brand guide's approved gradients only -------------------
   The guide approves nine step gradients, in its exact palette values: Field to
   Forest, Sky to Forest, Field to Sky, Gold to Ember, Gold to Earth, Ember to
   Ruby, Ember to Sky, Ember to Earth, Ember to Forest. Clay is not used in any
   step. Each page's pair is chosen to suit its photo, and pairs don't repeat
   between heroes. (Upper step listed first.) */
:root {
  --rp-forest: #054f57;
  --rp-sky: #1cb0c2;
  --rp-field: #1cbf80;
  --rp-earth: #573b4a;
  --rp-gold: #c79e40;
  --rp-ruby: #7d264d;
  --rp-ember: #f78761;
}
@media (min-width: 1025px) {
  /* Home hero: Gold to Ember / Ember to Earth; the single step on the frame,
     Gold to Ember. */
  .home .banner-content__img-bottom {
    background-image: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)), linear-gradient(90deg, var(--rp-ember), var(--rp-earth)) !important;
  }
  .home .banner-content__img-top {
    object-position: -9999px 0;
    background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) !important;
  }
  /* Home, "We know you're busy": Field to Sky / Ember to Sky. */
  .home .block--two-column-hovered-content .img-content__img-bottom {
    background-image: linear-gradient(90deg, var(--rp-field), var(--rp-sky)), linear-gradient(90deg, var(--rp-ember), var(--rp-sky)) !important;
  }
  /* Home, "How Regional Prosperity can help you": Field to Sky (lower left),
     Ember to Forest (upper right). */
  .home .block--regional-tab .rt-tab-content__inner__img::before {
    background: linear-gradient(90deg, var(--rp-field), var(--rp-sky)) !important;
  }
  .home .block--regional-tab .rt-tab-content__inner__img::after {
    background: linear-gradient(90deg, var(--rp-ember), var(--rp-forest)) !important;
  }
  /* Family hero (golden light): Gold to Ember / Gold to Earth. */
  .page-id-58 .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)), linear-gradient(90deg, var(--rp-gold), var(--rp-earth)) !important;
  }
  /* Intergenerational hero (lake, trees): Ember to Sky / Gold to Earth. */
  .page-id-60 .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: linear-gradient(90deg, var(--rp-ember), var(--rp-sky)), linear-gradient(90deg, var(--rp-gold), var(--rp-earth)) !important;
  }
  /* Business hero (warm bar interior): Ember to Ruby / Gold to Ember. */
  .page-id-62 .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: linear-gradient(90deg, var(--rp-ember), var(--rp-ruby)), linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) !important;
  }
  /* Business, succession panel: Field to Sky / Gold to Earth. */
  .page-id-62 .block--two-column-image .container-block__img-bottom {
    background-image: linear-gradient(90deg, var(--rp-field), var(--rp-sky)), linear-gradient(90deg, var(--rp-gold), var(--rp-earth)) !important;
  }
  /* Our Prosperity and Office Locations hero (parkland): Gold to Ember / Field to
     Forest. */
  :is(.page-id-64, .page-id-989) .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)), linear-gradient(90deg, var(--rp-field), var(--rp-forest)) !important;
  }
  /* Our Prosperity, "What we stand for": Field to Sky / Gold to Earth. */
  .page-id-64 .our-prosperity-core-carousel .container-block__content__img-bottom {
    background-image: linear-gradient(90deg, var(--rp-field), var(--rp-sky)), linear-gradient(90deg, var(--rp-gold), var(--rp-earth)) !important;
  }
  /* FAQs: Field to Sky / Ember to Earth. */
  .page-id-1737 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    background: linear-gradient(90deg, var(--rp-field), var(--rp-sky)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-ember), var(--rp-earth)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  }
  /* Journal (sunset over water): Gold to Ember / Field to Sky. */
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-field), var(--rp-sky)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  }
  /* Community Grants: Ember to Forest / Gold to Ember. */
  .page-id-1233 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    background: linear-gradient(90deg, var(--rp-ember), var(--rp-forest)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  }
  /* Partners: Ember to Earth / Gold to Ember. */
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    background: linear-gradient(90deg, var(--rp-ember), var(--rp-earth)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  }
  /* Footer (every page): Ember to Earth / Field to Sky. */
  #page-footer .pf-lower::before {
    background: linear-gradient(90deg, var(--rp-ember), var(--rp-earth)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-field), var(--rp-sky)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  }
}
@media (min-width: 1200px) {
  /* Family, Optimise panel window: Field to Sky / Ember to Earth. */
  .page-id-58 .block--building-prosperity #tab_optimise .image-content {
    --rp-step-1: linear-gradient(90deg, var(--rp-field), var(--rp-sky));
    --rp-step-2: linear-gradient(90deg, var(--rp-ember), var(--rp-earth));
  }
}

/* 8. Header legibility (every page) ---------------------------------------------
   Over the hero photo the menu sits on a soft deep-Forest wash that fades out
   downwards, so the white links read clearly on any photo without a hard bar.
   Once the page scrolls the header turns white (sticky-mode) and the wash goes.
   Only on pages whose menu sits over a photo: not on opaque headers (Contact,
   team profiles) or articles, where the menu is dark on white. */
body:not(.single-post):not(.single-case_study) #page-header:not(.page-header--opaque):not(.sticky-mode)::before {
  content: "";
  position: absolute;
  inset: 0 0 -90px 0;
  background: linear-gradient(180deg, rgba(3, 38, 42, 0.62) 0%, rgba(3, 38, 42, 0.32) 50%, rgba(3, 38, 42, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}
body:not(.single-post):not(.single-case_study) #page-header:not(.page-header--opaque):not(.sticky-mode) .main-navigation a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Menu row (every page, desktop): the same layout Home uses. One flex row boxed to
   the 1440px content area with the logo on the box line (36px in), the links
   centred between the logo and the button with an even gap that grows with the
   screen, and uniform Medium links. */
@media (min-width: 1201px) {
  body #page-header#page-header .upper-header-wrapper.container-block {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body #page-header#page-header .uhc-table {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1440px;
    margin: 0 auto !important;
    padding: 0 36px !important;
    box-sizing: border-box;
  }
  body #page-header#page-header .uhc-table > .logo-cell,
  body #page-header#page-header .uhc-table > .contact-us-btn {
    display: block !important;
    flex: 0 0 auto;
    width: auto !important;
  }
  body #page-header#page-header .uhc-table > .logo-cell a {
    width: 160px;
  }
  body #page-header#page-header .uhc-table > .nav-cell--right {
    display: block !important;
    flex: 1 1 auto;
    width: auto !important;
  }
  body #page-header#page-header .uhc-table .nav-cell--right nav.main-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap;
    gap: clamp(36px, 3vw, 60px) !important;
  }
  body #page-header#page-header .uhc-table .nav-cell nav.main-navigation > a,
  body #page-header#page-header .uhc-table .nav-cell nav.main-navigation .has-sub-menu {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body #page-header#page-header .uhc-table .nav-cell nav.main-navigation > a,
  body #page-header#page-header .uhc-table .nav-cell nav.main-navigation .has-sub-menu > a,
  body #page-header#page-header .uhc-table .nav-cell nav.main-navigation .has-sub-menu > a span {
    font-weight: 500 !important;
  }
  body #page-header#page-header .uhc-table .contact-us-btn .rp-book-meeting-btn.header-book-meeting {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Family, Optimise panel (client's call): photo only, like the other two panels. */
@media (min-width: 1200px) {
  .page-id-58 .block--building-prosperity #tab_optimise .image-content .bordered,
  .page-id-58 .block--building-prosperity #tab_optimise .image-content::before,
  .page-id-58 .block--building-prosperity #tab_optimise .image-content::after {
    display: none !important;
  }
}

/* Our Prosperity, "What we do": no photos pop up over the three links on hover
   (client's call); the coloured link panels stay. */
.page-id-64 .block--what-we-do .hoverimg {
  display: none !important;
}

/* Our Prosperity hero: a window frame around the four team members (brand guide,
   "the step used as a window"). The photo is drawn with background-size: cover,
   so the frame is placed in photo coordinates (3840 x 2560) and converted with
   the same maths the browser uses: x scales with the hero's width; y is offset by
   the background-position percentage. --fy is that percentage. */
@media (min-width: 1025px) {
  .page-id-64 .block--custom-layout__full-width-banner {
    container-type: inline-size;
  }
  .page-id-64 .block--custom-layout__full-width-banner .bg-image {
    position: relative;
    --fy: 0.72;
    --u: calc(100cqw / 3840);
  }
  .page-id-64 .block--custom-layout__full-width-banner .bg-image::after {
    content: "";
    position: absolute;
    left: calc(1730 * var(--u));
    width: calc(1760 * var(--u));
    top: calc(var(--fy) * 100% + (920 - 2560 * var(--fy)) * var(--u));
    height: calc(1020 * var(--u));
    box-sizing: border-box;
    border: 2px solid var(--rp-gold, #c79e40);
    pointer-events: none;
    z-index: 1;
  }
}
@media (min-width: 1600px) {
  .page-id-64 .block--custom-layout__full-width-banner .bg-image {
    --fy: 0.60;
  }
}
/* Our Prosperity hero: the step that sat in the photo moves to the window, its top
   edge on the frame's bottom line and its left edge on the frame's left side. The
   lower step stays on the white below the hero, on the box line. */
@media (min-width: 1025px) {
  .page-id-64 .block--custom-layout__full-width-banner .bg-image .container-block .img-bottom {
    background-image: none, linear-gradient(90deg, var(--rp-field), var(--rp-forest)) !important;
  }
  .page-id-64 .block--custom-layout__full-width-banner .bg-image::before {
    content: "";
    position: absolute;
    left: calc(1730 * var(--u));
    top: calc(var(--fy) * 100% + (1940 - 2560 * var(--fy)) * var(--u));
    width: var(--rp-rect-short);
    height: var(--rp-rect-depth);
    background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember));
    pointer-events: none;
    z-index: 1;
  }
}

/* Journal hero: a window frame around the couple, and the step that sat in the
   photo now steps up from the frame's top-right corner. Placed in photo
   coordinates (1600 x 1067), converted with the hero's own background maths:
   size --bs (share of the hero's width), anchored left, vertical position --fy. */
@media (min-width: 1025px) {
  .page-id-1135 .block--custom-layout__full-width-banner {
    container-type: inline-size;
  }
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image {
    position: relative;
    --bs: 1.25;
    --fy: 0.45;
    --u: calc(var(--bs) * 100cqw / 1600);
  }
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
    left: calc(520 * var(--u));
    width: calc(540 * var(--u));
    top: calc(var(--fy) * 100% + (400 - 1067 * var(--fy)) * var(--u));
    height: calc(340 * var(--u));
    border: 2px solid var(--rp-sky);
    pointer-events: none;
    z-index: 1;
  }
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image::before {
    content: "";
    position: absolute;
    left: calc(1060 * var(--u));
    top: calc(var(--fy) * 100% + (400 - 1067 * var(--fy)) * var(--u) - var(--rp-rect-depth));
    width: var(--rp-rect-short);
    height: var(--rp-rect-depth);
    background: linear-gradient(90deg, var(--rp-sky), var(--rp-forest));
    pointer-events: none;
    z-index: 1;
  }
  /* The hero bar keeps only its lower step, on the white below the hero. */
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  }
}
@media (min-width: 1600px) {
  .page-id-1135 .block--custom-layout__full-width-banner .bg-image {
    --bs: 1.08;
    --fy: 0.50;
  }
}

/* Partners hero: a window frame around the man in the middle, head to chest.
   Placed in photo coordinates (2560 x 1707; drawn at 120% of the hero's width,
   anchored left, vertical position 40%). */
@media (min-width: 1025px) {
  .page-id-1696 .block--custom-layout__full-width-banner {
    container-type: inline-size;
  }
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image {
    position: relative;
    --fy: 0.40;
    --u: calc(1.2 * 100cqw / 2560);
  }
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    left: calc(930 * var(--u));
    width: calc(700 * var(--u));
    top: calc(var(--fy) * 100% + (var(--ft, 540) - 1707 * var(--fy)) * var(--u));
    height: calc(530 * var(--u));
    border: 2px solid var(--rp-ember);
    pointer-events: none;
    z-index: 1;
  }
}
/* Partners hero: the step that sat in the photo moves to the window, tucked inside
   the frame's top-right corner (its top and right edges on the frame's lines),
   like the rectangle in Home's hero frame. The lower step stays on the white. */
@media (min-width: 1025px) {
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image::after {
    content: "";
    position: absolute;
    left: calc(1630 * var(--u) - var(--rp-rect-short));
    top: calc(var(--fy) * 100% + (var(--ft, 540) - 1707 * var(--fy)) * var(--u) - var(--rp-rect-depth));
    width: calc(var(--rp-rect-short) + 130px);
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, var(--rp-ember), var(--rp-earth)) left bottom / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) right top / 130px var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 1;
  }
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  }
}
@media (min-width: 1600px) {
  .page-id-1696 .block--custom-layout__full-width-banner .bg-image {
    --ft: 575;
  }
}

/* Case Studies page ---------------------------------------------------------------- */
/* Hero: as Journal and FAQs. Empty label removed, SemiBold lockup, 22px intro,
   the photo kept natural and the text sitting low; the standard two-step bar in
   an approved pair no other hero uses (Sky to Forest over Gold to Earth, picking
   up the golden-hour light). */
/* The family walks down the middle of the photo, so it's drawn larger and anchored
   left: they move right of the heading. (3840px export of the original,
   Regional Prosperity Photos/EastSide/RP - EastSide (112 of 174).jpg.) */
.page-id-1894 .block--custom-layout__full-width-banner .bg-image {
  background-size: 150% auto !important;
  background-position: left 42% !important;
}
@media (min-width: 1600px) {
  .page-id-1894 .block--custom-layout__full-width-banner .bg-image {
    background-size: 142% auto !important;
    background-position: left 41.5% !important;
  }
}
.page-id-1894 .block--custom-layout__full-width-banner .content > h3:empty {
  display: none !important;
}
.page-id-1894 .block--custom-layout__full-width-banner h1 {
  font-size: clamp(48px, 4vw, 76px) !important;
  line-height: 1 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
.page-id-1894 .block--custom-layout__full-width-banner .content p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
  max-width: 420px !important;
  margin-top: 24px;
}
@media (min-width: 1025px) {
  .page-id-1894 .block--custom-layout__full-width-banner .bg-image {
    overflow: visible !important;
  }
  .page-id-1894 .block--custom-layout__full-width-banner .bg-image > .container-block {
    position: relative;
    display: flex !important;
    align-items: flex-end !important;
  }
  .page-id-1894 .block--custom-layout__full-width-banner .content {
    width: auto !important;
    max-width: 640px !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-bottom: 48px !important;
  }
  .page-id-1894 .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: calc(var(--rp-rect-depth) * -2);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, var(--rp-sky), var(--rp-forest)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-gold), var(--rp-earth)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 2;
  }

  /* Case study cards: on the box line, 120px below the hero bar, three across
     the full content width with the Journal card's type. */
  .page-id-1894 .block--blog-post-grid {
    padding-top: 160px !important;
    padding-bottom: 120px !important;
  }
  .page-id-1894 .block--blog-post-grid .container-block {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
  .page-id-1894 .blog-post-grid__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
  }
  .page-id-1894 .blog-post-grid__image-wrap {
    display: block;
    height: auto !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }
  .page-id-1894 .blog-post-grid__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
.page-id-1894 .blog-post-grid__content h6,
.page-id-1894 .blog-post-grid__content h6 a {
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: var(--rp-medium) !important;
  color: #004e57 !important;
}

/* Contact page (trial) ------------------------------------------------------------ */
/* "Contact us" becomes the page's display heading (SemiBold, the hero lockup
   size); the offices sit on the box line on the left and the form panel on the
   right, in a soft sky tint (as Family's sky panel) instead of the gold-to-clay gradient (the guide keeps
   gradients for the step). The form uses the same field styling as Community
   Grants, and one standard two-step bar closes the form panel. */
@media (min-width: 1025px) {
  .page-id-70 .contact-page-wrapper {
    padding: 100px 36px 160px !important;
    gap: 60px;
  }
  .page-id-70 .contact-left-content {
    flex: 0 0 38% !important;
    width: 38% !important;
    max-width: none !important;
    padding-right: 0 !important;
  }
  .page-id-70 .contact-right-content {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    position: relative;
    padding: 60px 60px 72px !important;
  }
  .page-id-70 .contact-right-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: calc(var(--rp-rect-depth) * -1);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, var(--rp-field), var(--rp-sky)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-field), var(--rp-forest)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
  }
}
.page-id-70 .contact-left-content > h3 {
  font-size: clamp(48px, 4vw, 72px) !important;
  line-height: 1 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  color: #004e57 !important;
  margin-bottom: 48px !important;
}
.page-id-70 .contact-left-content > h1:empty,
.page-id-70 .contact-left-content > p:empty {
  display: none !important;
}
/* Office cards: brand type, a little more air between them. */
.page-id-70 .rp-offices__grid {
  gap: 16px !important;
}
.page-id-70 .rp-office-card {
  padding: 28px 32px !important;
}
.page-id-70 .rp-office-card__name,
.page-id-70 .rp-office-card__name a {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: var(--rp-semibold) !important;
  color: #004e57 !important;
}
.page-id-70 .rp-office-card__address,
.page-id-70 .rp-office-card__address a {
  font-size: var(--rp-body) !important;
  font-style: normal;
}
.page-id-70 .rp-office-card__hours {
  font-size: var(--rp-label) !important;
  color: rgba(0, 78, 87, 0.75) !important;
}
.page-id-70 .rp-office-card__phone {
  font-size: var(--rp-label) !important;
  font-weight: var(--rp-semibold) !important;
}
/* Form panel. */
.page-id-70 .contact-right-content {
  background: #ceeff3 !important;
}
.page-id-70 .contact-right-content > p,
.page-id-70 .contact-right-content .forminator-field-html p {
  font-size: var(--rp-h3) !important;
  line-height: 1.25 !important;
  font-weight: var(--rp-medium) !important;
  color: #004e57 !important;
}
.page-id-70 .contact-right-content .forminator-label {
  font-size: var(--rp-label) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
  color: #004e57 !important;
  text-transform: none !important;
  margin-bottom: 8px !important;
}
.page-id-70 .contact-right-content .forminator-input,
.page-id-70 .contact-right-content .forminator-textarea,
.page-id-70 .contact-right-content select,
.page-id-70 .contact-right-content .select2-selection {
  font-size: 16px !important;
  font-family: inherit !important;
  color: #004e57 !important;
  background-color: #fff !important;
  border: 1px solid rgba(0, 78, 87, 0.3) !important;
  border-radius: 8px !important;
  box-sizing: border-box;
}
.page-id-70 .contact-right-content input.forminator-input,
.page-id-70 .contact-right-content select,
.page-id-70 .contact-right-content .select2-selection {
  height: 48px !important;
  min-height: 0 !important;
  padding: 0 14px !important;
}
.page-id-70 .contact-right-content .select2-selection {
  display: flex !important;
  align-items: center;
}
.page-id-70 .contact-right-content .forminator-textarea {
  padding: 12px 14px !important;
}
.page-id-70 .contact-right-content .forminator-input:focus,
.page-id-70 .contact-right-content .forminator-textarea:focus {
  border-color: #00bf7d !important;
  outline: 2px solid rgba(0, 191, 125, 0.25) !important;
}
/* Contact dropdowns: a plain teal chevron inside the field (no dark block), and
   the placeholder lined up with the text boxes. */
.page-id-70 .contact-right-content .select2-selection__arrow {
  background: transparent !important;
  right: 6px !important;
  height: 100% !important;
  border-radius: 0 8px 8px 0;
}
.page-id-70 .contact-right-content .select2-selection__arrow .forminator-icon-chevron-down {
  color: #004e57 !important;
}
body.page-id-70.page-id-70 .contact-page-wrapper .contact-right-content form.forminator-ui .forminator-row .select2-selection__rendered {
  padding-left: 0 !important;
}
/* Contact fields: white on the cream panel (the theme sets them transparent with
   a very specific rule). */
body.page-id-70.page-id-70 .contact-page-wrapper .contact-right-content form.forminator-ui .forminator-row :is(.forminator-input, .forminator-textarea, .select2-selection) {
  background-color: #fff !important;
}

/* 9. Office location pages (Colac, Hamilton, Warrnambool, Geelong, Queenscliff) ----
   The .rp-loc template is restyled onto the site system: Sora on the brand type
   scale, the 1440px content area with the box line (36px) and text line (96px),
   square cards in brand tints, the site's pill buttons, the standard 40px
   two-step bar on the hero, the shared call-to-action look, and the guide's
   rule that gradients are for steps only (no gradient panels). Visual only. */
body .rp-loc {
  --rpl-max: 1440px;
  --rpl-text: #004e57;
  --rpl-muted: rgba(0, 78, 87, 0.8);
  --rpl-border: rgba(0, 78, 87, 0.12);
  color: #004e57;
}

/* Hero: the site's photo hero (soft left shade, the header wash above), the
   heading as a SemiBold lockup on the text line, and the form card on the box
   line. The three small decorative bars become the standard hero step. */
body .rp-loc .rpl-hero {
  min-height: 0 !important;
  overflow: visible !important;
}
body .rp-loc .rpl-hero--img {
  background-image:
    linear-gradient(94deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.42) 22%, rgba(0, 0, 0, 0) 52%),
    var(--rpl-hero) !important;
  background-size: cover !important;
  background-position: 50% 30% !important;
}
/* Office hero photo (the couple, EastSide shoot): drawn a touch wider and
   anchored left so the pair sit in the gap between the heading and the form.
   Never narrower than 1780px, so it always covers the full hero height (no
   repeated strip at the bottom). */
@media (min-width: 941px) {
  body .rp-loc .rpl-hero--img[style*="/assets/office-"] {
    background-size: auto, max(108%, 1780px) auto !important;
    background-position: 0 0, -60px 30% !important;
    background-repeat: no-repeat !important;
  }
}
/* Per-office photos. Colac, Warrnambool and Hamilton have the person on the
   right of the original frame, so their files are extended on the right with
   matching sky/water/paddock (that strip sits behind the form); Colac and
   Warrnambool also have extra sky added on top so they can sit further back. Sizes are a
   share of the hero width so the face lands between the heading and the form
   at any desktop width. Geelong is drawn a little larger so it can sit higher. */
@media (min-width: 941px) {
  body .rp-loc .rpl-hero--img[style*="office-hero-colac"] {
    background-size: auto, max(104%, 2000px) auto !important;
    background-position: 0 0, 69% 100% !important;
  }
  body .rp-loc .rpl-hero--img[style*="office-hero-warrnambool"] {
    background-size: auto, max(136%, 2250px) auto !important;
    background-position: 0 0, 0% 28% !important;
  }
  body .rp-loc .rpl-hero--img[style*="office-hero-hamilton"] {
    background-size: auto, max(122%, 2150px) auto !important;
    background-position: 0 0, 77% 15% !important;
  }
  body .rp-loc .rpl-hero--img[style*="office-hero-queenscliff"] {
    background-size: auto, max(104%, 1780px) auto !important;
    background-position: 0 0, 62% 30% !important;
  }
  body .rp-loc .rpl-hero--img[style*="office-hero-geelong"] {
    background-size: auto, max(115%, 1780px) auto !important;
    background-position: 0 0, 40% 90% !important;
  }
}
@media (min-width: 1600px) {
  body .rp-loc .rpl-hero--img[style*="/assets/office-"]:not([style*="office-hero-colac"], [style*="office-hero-warrnambool"], [style*="office-hero-hamilton"], [style*="office-hero-geelong"], [style*="office-hero-queenscliff"]) {
    background-size: auto, max(104%, 1780px) auto !important;
  }
  body .rp-loc .rpl-hero--img[style*="/assets/office-"] h1 {
    max-width: 8.6em;
  }
  body .rp-loc .rpl-hero--img[style*="/assets/office-"] .rpl-subhead {
    max-width: 440px !important;
  }
}
body .rp-loc .rpl-step {
  display: none !important;
}
body .rp-loc .rpl-hero h1 {
  font-weight: var(--rp-semibold) !important;
  font-size: clamp(44px, 3.4vw, 64px) !important;
  line-height: 1.02 !important;
  text-shadow: none !important;
  margin-bottom: 24px !important;
}
body .rp-loc .rpl-hero h1 em {
  color: #fff !important;
}
body .rp-loc .rpl-subhead {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  color: #fff !important;
  max-width: 520px !important;
  margin-bottom: 28px !important;
}
body .rp-loc .rpl-ticks li {
  font-size: var(--rp-body) !important;
  color: #fff !important;
  margin-bottom: 10px !important;
}
body .rp-loc .rpl-ticks svg path,
body .rp-loc .rpl-ticks svg circle {
  stroke: var(--rp-field) !important;
}
body .rp-loc .rpl-ticks {
  margin-bottom: 32px !important;
}
@media (min-width: 941px) {
  body .rp-loc .rpl-hero-inner {
    max-width: 1440px !important;
    padding: 160px 36px 120px 96px !important;
    grid-template-columns: minmax(0, 1fr) 440px !important;
    gap: 80px !important;
  }
  body .rp-loc .rpl-hero::after {
    content: "";
    position: absolute;
    left: max(36px, calc((100% - 1440px) / 2 + 36px));
    bottom: calc(var(--rp-rect-depth) * -1);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, var(--rp-field), var(--rp-sky)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-ember), var(--rp-forest)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 3;
  }
}

/* Buttons: the site's pills. */
body .rp-loc .rpl-btn-primary,
body .rp-loc .rpl-hero-cta .rpl-btn-primary {
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 40px !important;
  padding: 12px 28px !important;
  font-size: 16px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 24px !important;
  box-shadow: none !important;
}
body .rp-loc .rpl-btn-secondary,
body .rp-loc .rpl-hero-cta .rpl-btn-secondary {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid #fff !important;
  border-radius: 40px !important;
  padding: 10.5px 28px !important;
  font-size: 16px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 24px !important;
  box-shadow: none !important;
}
body .rp-loc .rpl-btn-outline,
body .rp-loc .rpl-btn-outline--dark {
  color: #004e57 !important;
  border: 1.5px solid #004e57 !important;
  border-radius: 40px !important;
  padding: 10.5px 28px !important;
  font-size: 16px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 24px !important;
  background: transparent !important;
}

/* Lead form card: white, square, the site's field style. */
body .rp-loc .rpl-lead {
  border-radius: 0 !important;
  border: 0 !important;
  padding: 40px 36px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18) !important;
  background: #fff !important;
}
body .rp-loc .rpl-lead h2 {
  font-size: 24px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 1.25 !important;
  margin-bottom: 6px !important;
}
body .rp-loc .rpl-lead-tag {
  font-size: var(--rp-label) !important;
  color: rgba(0, 78, 87, 0.75) !important;
  margin-bottom: 24px !important;
}
body .rp-loc .rpl-lead .forminator-ui .forminator-label,
body .rp-loc .rpl-lead .forminator-ui label {
  font-size: var(--rp-label) !important;
  font-weight: var(--rp-semibold) !important;
  color: #004e57 !important;
  margin-bottom: 8px !important;
}
body .rp-loc .rpl-lead .forminator-ui.forminator-custom-form .forminator-input,
body .rp-loc .rpl-lead .forminator-ui.forminator-custom-form .forminator-textarea,
body .rp-loc .rpl-lead .forminator-ui .select2-container .select2-selection {
  background-color: #fff !important;
  border: 1px solid rgba(0, 78, 87, 0.3) !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  color: #004e57 !important;
  min-height: 48px !important;
}
body .rp-loc .rpl-lead .forminator-ui .forminator-button-submit,
body .rp-loc .rpl-lead .forminator-ui.forminator-custom-form .forminator-button.forminator-button-submit {
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56) !important;
  color: #fff !important;
  border-radius: 40px !important;
  font-size: 16px !important;
  font-weight: var(--rp-semibold) !important;
  padding: 14px 28px !important;
  box-shadow: none !important;
}
body .rp-loc .rpl-lead-fine {
  font-size: var(--rp-small) !important;
  color: rgba(0, 78, 87, 0.7) !important;
}

/* Trust bar: the site's grey-teal band, on the text line. */
body .rp-loc .rpl-trustbar {
  background: #e6edee !important;
  border: 0 !important;
}
/* The hero's lower step sits on a white strip above the band, as on other pages. */
@media (min-width: 941px) {
  body .rp-loc .rpl-trustbar {
    margin-top: 100px !important;
  }
}
body .rp-loc .rpl-trustbar-inner {
  max-width: 1440px !important;
  padding: 26px 96px !important;
  font-size: var(--rp-label) !important;
  color: #004e57 !important;
}
body .rp-loc .rpl-trustbar-item:not(:last-child) {
  border-right-color: rgba(0, 78, 87, 0.18) !important;
}

/* Sections: 120px apart, cards on the box line, headings on the text line. */
@media (min-width: 941px) {
  body .rp-loc .rpl-section {
    max-width: 1440px !important;
    padding: 120px 36px 0 !important;
  }
  body .rp-loc .rpl-section > h2,
  body .rp-loc .rpl-section > .rpl-sub {
    padding-left: 60px !important;
  }
  body .rp-loc .rpl-compliance {
    max-width: 1440px !important;
    padding: 0 36px 80px !important;
  }
}
body .rp-loc .rpl-section h2 {
  font-size: var(--rp-h2) !important;
  font-weight: var(--rp-medium) !important;
  line-height: 1.1 !important;
  color: #004e57 !important;
  margin-bottom: 16px !important;
}
body .rp-loc .rpl-sub {
  font-size: 18px !important;
  color: rgba(0, 78, 87, 0.8) !important;
  margin-bottom: 40px !important;
}

/* What we help with: the lead service stays a solid Forest card; the others are
   grey-teal cards with no coloured edges. */
body .rp-loc .rpl-svc {
  gap: 20px !important;
}
body .rp-loc .rpl-dominant {
  padding: 48px 44px !important;
}
body .rp-loc .rpl-dominant h3 {
  font-size: var(--rp-h3) !important;
  font-weight: var(--rp-medium) !important;
  margin-bottom: 14px !important;
}
body .rp-loc .rpl-dominant p {
  font-size: var(--rp-body) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 24px !important;
}
body .rp-loc .rpl-dominant a {
  font-size: var(--rp-body) !important;
  color: var(--rp-field) !important;
}
body .rp-loc .rpl-scard {
  background: #e6edee !important;
  border: 0 !important;
  padding: 32px !important;
}
body .rp-loc .rpl-scard h3 {
  font-size: 22px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 1.3 !important;
  margin-bottom: 8px !important;
}
body .rp-loc .rpl-scard p {
  font-size: var(--rp-body) !important;
  line-height: 1.6 !important;
  color: rgba(0, 78, 87, 0.8) !important;
}

/* Advisers who live where you live: a half-and-half cream panel, like the
   Family and Business panels. */
body .rp-loc .rpl-who {
  background: #f6ecd6;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  align-items: stretch !important;
}
body .rp-loc .rpl-who-photo {
  aspect-ratio: auto !important;
  min-height: 460px;
}
body .rp-loc .rpl-who-photo--img {
  background: var(--rpl-who) center / cover no-repeat !important;
}
body .rp-loc .rpl-who > div:last-child {
  padding: 60px;
  align-self: center;
}
body .rp-loc .rpl-who p {
  font-size: var(--rp-body) !important;
  line-height: 1.6 !important;
  color: #004e57 !important;
}
body .rp-loc .rpl-who p strong {
  color: #004e57 !important;
  font-weight: var(--rp-semibold) !important;
}

/* Team: three across, square photos, names on the brand scale. */
@media (min-width: 941px) {
  body .rp-loc .rpl-team {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}
body .rp-loc .rpl-tcard {
  border: 0 !important;
  background: #e6edee !important;
}
body .rp-loc .rpl-nm {
  padding: 20px 24px 24px !important;
}
body .rp-loc .rpl-nm b {
  font-size: 20px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 1.3 !important;
  margin-bottom: 4px;
}
body .rp-loc .rpl-nm small {
  font-size: var(--rp-label) !important;
  line-height: 1.5 !important;
  color: rgba(0, 78, 87, 0.8) !important;
}

/* Testimonials inside the template: spaced like the other sections. */
body .rp-loc .block--testimonial-carousel {
  margin-top: 120px;
}

/* FAQ: the same question and rule style as the site's FAQ block. */
body .rp-loc .blog-single__faq-question-text {
  font-size: 18px !important;
  font-weight: var(--rp-semibold) !important;
}

/* Last call-to-action: the site's grey-teal band, left aligned on the text line
   (no gradient panel). */
body .rp-loc .rpl-cta {
  background: #e6edee !important;
  text-align: left !important;
  padding: 80px 60px !important;
  color: #004e57 !important;
}
body .rp-loc .rpl-cta h2 {
  color: #004e57 !important;
  margin-bottom: 28px !important;
}
body .rp-loc .rpl-cta-row {
  justify-content: flex-start !important;
}

/* Compliance note. */
body .rp-loc .rpl-compliance-box {
  background: transparent !important;
  border: 1px solid rgba(0, 78, 87, 0.15) !important;
  font-size: var(--rp-small) !important;
  color: rgba(0, 78, 87, 0.8) !important;
  padding: 24px 28px !important;
}
body .rp-loc .rpl-compliance-box strong {
  color: #004e57 !important;
}
@media (min-width: 941px) {
  body .rp-loc .rpl-section--tight:last-of-type {
    padding-bottom: 60px !important;
  }
}
/* Office lead form fields: white, matched to the theme's own selector strength. */
body .rp-loc .rpl-lead .forminator-ui#forminator-module-1537.forminator-design--default .forminator-input,
body .rp-loc .rpl-lead .forminator-ui#forminator-module-1537.forminator-design--default .forminator-textarea,
body .rp-loc .rpl-lead .forminator-ui.forminator-custom-form[data-design="default"] .forminator-input,
body .rp-loc .rpl-lead .forminator-ui .select2-container .select2-selection {
  background-color: #fff !important;
  border: 1px solid rgba(0, 78, 87, 0.3) !important;
  font-size: 16px !important;
  color: #004e57 !important;
}
body .rp-loc .rpl-lead .forminator-ui#forminator-module-1537.forminator-design--default .forminator-button.forminator-button-submit,
body .rp-loc .rpl-lead .forminator-ui.forminator-custom-form[data-design="default"] .forminator-button.forminator-button-submit {
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56) !important;
  color: #fff !important;
  border-radius: 40px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

/* Office pages, "Our location": the branch icon (each office's own colour from
   the brand's branch system) fills the card's empty space, above the details. */
body .rp-loc .rp-offices--map .rp-office-card {
  justify-content: center;
}
body .rp-loc .rp-office-card__icon {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}

/* Office pages, FAQs: identical to the FAQ on every other page (questions on the
   text line, same colours, rule and toggle). */
@media (min-width: 941px) {
  body .rp-loc .js-rp-faq .blog-single__faq-list {
    padding-left: 60px;
    padding-right: 60px;
  }
}
body .rp-loc .js-rp-faq {
  --rp-faq-heading: #0b4f43;
  --rp-faq-text: #004e57;
  --rp-faq-rule: rgba(11, 79, 67, 0.18);
  --rp-faq-accent: #0b7c5f;
}
body .rp-loc .js-rp-faq .blog-single__faq-item {
  border-bottom-color: rgba(11, 79, 67, 0.18) !important;
}
body .rp-loc .js-rp-faq .blog-single__faq-question-text {
  color: #0b4f43 !important;
}
body .rp-loc .js-rp-faq .blog-single__faq-toggle {
  width: 16px !important;
  height: 16px !important;
}
body .rp-loc .js-rp-faq .blog-single__faq-toggle-h {
  width: 12px !important;
  background-color: #0b7c5f !important;
}
body .rp-loc .js-rp-faq .blog-single__faq-toggle-v {
  height: 12px !important;
  background-color: #0b7c5f !important;
}
/* Office pages: "What we help with" sits closer under the service-area band. */
@media (min-width: 941px) {
  body .rp-loc .rpl-trustbar + .rpl-section {
    padding-top: 80px !important;
  }
}
/* Office card: the branch icon sits in the card's bottom-right corner. */
body .rp-loc .rp-offices--map .rp-office-card {
  position: relative;
  padding-right: 128px !important;
}
body .rp-loc .rp-office-card__icon {
  position: absolute;
  right: 32px;
  bottom: 32px;
  margin: 0 !important;
}
/* Office call-to-action: the email sits beside the phone button. */
body .rp-loc .rpl-cta-email {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #004e57 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  margin-left: 8px;
}
body .rp-loc .rp-office-card__email {
  display: block;
  margin-top: 6px;
  font-size: var(--rp-body);
  color: #004e57 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* 10. Town pages (the 36 non-office towns: Lorne, Torquay, Apollo Bay...) ------------
   Same system as the main pages: a SemiBold town-name lockup on the text line,
   the standard 40px step closing the hero, an editorial intro at a comfortable
   reading width, the shared FAQ, and the remote-advice call-to-action as the
   site's grey-teal band, left aligned. Visual only; the copy is unchanged. */
body.single-location .block--custom-layout__full-width-banner .content > h3 {
  font-size: var(--rp-label) !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: 0.04em;
}
body.single-location .block--custom-layout__full-width-banner h1 {
  font-size: clamp(60px, 5vw, 96px) !important;
  line-height: 0.95 !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.015em;
}
/* Photo placement as the original page: centred, covering the hero. */
body.single-location .block--custom-layout__full-width-banner .bg-image {
  background-size: cover !important;
  background-position: center center !important;
}
@media (min-width: 1025px) {
  body.single-location .block--custom-layout__full-width-banner .bg-image {
    overflow: visible !important;
  }
  body.single-location .block--custom-layout__full-width-banner .bg-image > .container-block {
    position: relative;
    padding-left: 96px !important;
    display: flex !important;
    align-items: flex-end !important;
  }
  body.single-location .block--custom-layout__full-width-banner .content {
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding-left: 0 !important;
    padding-bottom: 56px !important;
  }
  body.single-location .block--custom-layout__full-width-banner .content > h3 {
    margin-bottom: 20px !important;
  }
  body.single-location .block--custom-layout__full-width-banner .bg-image > .container-block::after {
    content: "";
    position: absolute;
    left: 36px;
    bottom: calc(var(--rp-rect-depth) * -2);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, var(--rp-gold), var(--rp-earth)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-sky), var(--rp-forest)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
    z-index: 2;
  }
}

/* Intro: headings on the section scale, body at a comfortable 18px and line
   length, with proper space before the second heading. */
body.single-location .block--banner-cta[style*="#fff"] {
  padding-top: 120px !important;
  padding-bottom: 40px !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content {
  max-width: none !important;
  width: 100% !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content > h3:empty {
  display: none !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content h2 {
  font-size: var(--rp-h2) !important;
  line-height: 1.1 !important;
  font-weight: var(--rp-medium) !important;
  color: #004e57 !important;
  margin: 0 0 28px !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content h2 ~ h2 {
  margin-top: 72px !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content p {
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: #004e57 !important;
  margin: 0 0 20px !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content p a {
  font-weight: var(--rp-semibold);
  text-underline-offset: 3px;
}
@media (min-width: 1025px) {
  body.single-location .block--banner-cta[style*="#fff"] .container-block {
    padding-left: 96px !important;
    padding-right: 96px !important;
  }
}
@media (max-width: 1024px) {
  body.single-location .block--banner-cta[style*="#fff"] {
    padding-top: 64px !important;
    padding-bottom: 16px !important;
  }
  body.single-location .block--banner-cta[style*="#fff"] .container-block {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body.single-location .block--banner-cta[style*="#fff"] .banner-content h2 ~ h2 {
    margin-top: 48px !important;
  }
  body.single-location .block--banner-cta[style*="#fff"] .banner-content p {
    font-size: 16px !important;
  }
}

/* FAQ: 120px below the intro, like other sections. */
body.single-location .block--faq {
  padding-top: 80px !important;
}

/* Remote-advice call-to-action: the site's grey-teal band, left aligned on the
   text line, with the section heading scale and the 22px lead. */
body.single-location .rp-location-remote-cta {
  text-align: left !important;
  margin-top: 120px !important;
  padding: 100px max(24px, calc((100% - 1440px) / 2 + 96px)) 110px !important;
}
body.single-location .rp-location-remote-cta h2 {
  max-width: none !important;
  margin: 0 0 20px !important;
  font-size: var(--rp-h2) !important;
  line-height: 1.1 !important;
  font-weight: var(--rp-medium) !important;
  color: #004e57 !important;
}
body.single-location .rp-location-remote-cta p {
  max-width: none !important;
  margin: 0 0 32px !important;
  font-size: var(--rp-lead) !important;
  line-height: 1.45 !important;
  color: #004e57 !important;
}
@media (max-width: 1024px) {
  body.single-location .rp-location-remote-cta {
    padding: 64px 24px !important;
  }
}
/* Town pages on phones and tablets: one 24px gutter for every section, so the
   hero, intro, FAQ and call-to-action all start on the same line. */
@media (max-width: 1024px) {
  body.single-location .block--custom-layout__full-width-banner .bg-image > .container-block,
  body.single-location .block--banner-cta[style*="#fff"] .container-block,
  body.single-location .block--faq .container-block {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body.single-location .block--custom-layout__full-width-banner .content,
  body.single-location .block--banner-cta[style*="#fff"] .banner-content,
  body.single-location .block--faq .container-block__inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.single-location .block--faq {
    padding-top: 48px !important;
  }
  body.single-location .rp-location-remote-cta {
    margin-top: 72px !important;
  }
}
/* Town pages, tablet: the label sits with the town name, not up under the menu. */
@media (max-width: 1024px) {
  body.single-location .block--custom-layout__full-width-banner .content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  body.single-location .block--custom-layout__full-width-banner .content > h3 {
    margin-bottom: 12px !important;
  }
}

/* Home, "We know you're busy" cards: all three paragraphs share one measure, so
   the first line of each ends at the same point ("...with short-term"). */
.home .block--two-column-hovered-content [class^="tab-item__wrapper"] > p {
  max-width: 582px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 11. Hero heading tiers (every page except Home, whose lockup stays as is) ---------
   Two sizes only. Display for short headings (one to four words); Statement for
   sentence-length headings. Both scale down together on smaller screens. */
:root {
  --rp-hero-display: clamp(48px, 4.2vw, 76px);
  --rp-hero-statement: clamp(36px, 2.9vw, 52px);
}
/* Display */
body:is(.page-id-58, .page-id-1737, .page-id-989, .page-id-1696, .page-id-1894, .single-location) .block--custom-layout__full-width-banner h1,
body.page-id-70 .contact-left-content > h3 {
  font-size: var(--rp-hero-display) !important;
  line-height: 1 !important;
}
/* Statement */
body:is(.page-id-60, .page-id-62, .page-id-1233, .page-id-64, .page-id-1135, .page-id-2208) .block--custom-layout__full-width-banner h1,
body .rp-loc .rpl-hero h1 {
  font-size: var(--rp-hero-statement) !important;
  line-height: 1.08 !important;
}
/* Business hero heading: three lines at every desktop width. */
.page-id-62 .block--custom-layout__full-width-banner h1 {
  max-width: 10.5em !important;
}

/* Hero labels (every page with a photo hero): "OUR PROSPERITY", "FAMILY
   PROSPERITY" and the rest sit directly above the main heading, 20px over it,
   instead of floating at the top of the hero. Empty labels take no space. */
body .block--custom-layout__full-width-banner .content {
  justify-content: flex-end !important;
}
body .block--custom-layout__full-width-banner .content > h3 {
  margin: 0 0 20px !important;
  padding-bottom: 0 !important;
}
body .block--custom-layout__full-width-banner .content > h3:empty {
  display: none !important;
}
/* Hero text block (label, heading, intro) sits one row (40px) higher on desktop,
   giving it room above the step at the bottom of the hero. */
@media (min-width: 1025px) {
  body .block--custom-layout__full-width-banner .content {
    transform: translateY(calc(var(--rp-rect-depth) * -1));
  }
}

/* Office Locations intro ("Our Service Locations"): the site's section rhythm.
   Label SemiBold 14px, 20px to a 50px Medium heading, 28px to the lead, 20px
   between paragraphs. */
.page-id-989 .block--banner-cta[style*="#fff"] .banner-content > h3 {
  font-size: var(--rp-label) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-semibold) !important;
  margin: 0 0 20px !important;
}
.page-id-989 .block--banner-cta[style*="#fff"] .banner-content > h2 {
  font-size: var(--rp-h2) !important;
  line-height: 1.1 !important;
  font-weight: var(--rp-medium) !important;
  margin: 0 0 28px !important;
}
.page-id-989 .block--banner-cta[style*="#fff"] .banner-content > p {
  font-size: var(--rp-lead) !important;
  line-height: 1.5 !important;
  margin: 0 0 20px !important;
}
.page-id-989 .block--banner-cta[style*="#fff"] .banner-content > p:last-of-type {
  margin-bottom: 0 !important;
}
/* FAQs hero: one word per line, a lockup like Family's, kept left of the family
   at the swing. Photo: 3840px export of the original (Regional Prosperity
   Photos/FAQ.jpg). */
.page-id-1737 .block--custom-layout__full-width-banner h1 span {
  display: block;
}
.page-id-1737 .block--custom-layout__full-width-banner h1 {
  line-height: 0.98 !important;
}
/* Case Studies hero heading: stacked one word per line, clear of the family. */
.page-id-1894 .block--custom-layout__full-width-banner h1 span {
  display: block;
}
.page-id-1894 .block--custom-layout__full-width-banner h1 {
  line-height: 0.98 !important;
}
/* Awards hero heading: SemiBold on the Statement tier, wrapping in the left
   column like the other sentence headings. */
.page-id-2208 .block--custom-layout__full-width-banner h1 {
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
  max-width: 11em !important;
}
@media (min-width: 1025px) {
  .page-id-2208 .block--custom-layout__full-width-banner .content,
  .page-id-2208 .block--custom-layout__full-width-banner .content > div {
    width: auto !important;
    max-width: 640px !important;
  }
}
/* Awards call-to-action band: the same 20px gap above and below the button. */
.page-id-2208 .signup .signup__desc {
  margin-bottom: 20px !important;
}
.page-id-2208 .signup .signup__btn {
  margin-bottom: 20px !important;
}

/* Contact form panel: matched to the Community Grants form so the site's two
   forms look the same. White card with a soft teal outline, no tint and no step
   bar; fields, labels and buttons as before. */
.page-id-70 .contact-right-content {
  background: #fff !important;
  border: 1px solid rgba(0, 78, 87, 0.12) !important;
}
@media (min-width: 1025px) {
  .page-id-70 .contact-right-content {
    padding: 56px 60px 60px !important;
  }
  .page-id-70 .contact-right-content::after {
    display: none !important;
  }
}
body.page-id-70.page-id-70 .contact-page-wrapper .contact-right-content form.forminator-ui .forminator-row :is(.forminator-input, .forminator-textarea, .select2-selection) {
  border: 1px solid rgba(0, 78, 87, 0.35) !important;
}
/* Office Locations hero: the heading as a SemiBold Display lockup and the 22px
   intro, like the other heroes. */
.page-id-989 .block--custom-layout__full-width-banner h1 {
  font-weight: var(--rp-semibold) !important;
  letter-spacing: -0.01em;
}
.page-id-989 .block--custom-layout__full-width-banner .content p {
  font-size: var(--rp-lead) !important;
  line-height: 1.4 !important;
  font-weight: var(--rp-regular) !important;
  max-width: 460px !important;
  margin-top: 24px;
}
@media (min-width: 1025px) {
  .page-id-989 .block--custom-layout__full-width-banner .content,
  .page-id-989 .block--custom-layout__full-width-banner .content > div {
    width: auto !important;
    max-width: 640px !important;
  }
}

/* Town pages, design pass: the intro reads in two parts.
   - The opening paragraph is the 22px lead; the rest is body copy.
   - "How we help {town} clients" and its paragraphs sit in a cream panel on the
     box line (like the Family and Business panels), closed by a standard two-step
     bar. Pages without that second heading simply have no panel. */
body.single-location .block--banner-cta[style*="#fff"] .banner-content > h2:first-of-type + p {
  font-size: var(--rp-lead) !important;
  line-height: 1.5 !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content {
  position: relative;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content > :is(h2 ~ h2, h3:not(:empty)) {
  font-size: var(--rp-h2) !important;
  line-height: 1.1 !important;
  font-weight: var(--rp-medium) !important;
  color: #004e57 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: #f6ecd6;
  margin: 72px -60px 0 !important;
  padding: 56px 60px 24px !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content > :is(h2 ~ h2, h3:not(:empty)) ~ p {
  background: #f6ecd6;
  margin: 0 -60px !important;
  padding: 0 60px 20px !important;
}
body.single-location .block--banner-cta[style*="#fff"] .banner-content > :is(h2 ~ h2, h3:not(:empty)) ~ p:last-child {
  padding-bottom: 72px !important;
}
@media (min-width: 1025px) {
  body.single-location .block--banner-cta[style*="#fff"] .banner-content:has(> :is(h2 ~ h2, h3:not(:empty)))::after {
    content: "";
    position: absolute;
    left: -60px;
    bottom: calc(var(--rp-rect-depth) * -1);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, var(--rp-field), var(--rp-sky)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-gold), var(--rp-earth)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    pointer-events: none;
  }
  body.single-location .block--faq {
    padding-top: 120px !important;
  }
}
@media (max-width: 1024px) {
  body.single-location .block--banner-cta[style*="#fff"] .banner-content > :is(h2 ~ h2, h3:not(:empty)) {
    margin: 48px -24px 0 !important;
    padding: 40px 24px 20px !important;
  }
  body.single-location .block--banner-cta[style*="#fff"] .banner-content > :is(h2 ~ h2, h3:not(:empty)) ~ p {
    margin: 0 -24px !important;
    padding: 0 24px 16px !important;
  }
  body.single-location .block--banner-cta[style*="#fff"] .banner-content > :is(h2 ~ h2, h3:not(:empty)) ~ p:last-child {
    padding-bottom: 48px !important;
  }
}
/* Heroes without an intro line (town pages, FAQs): the heading sits one row
   lower, so its last line is the same distance above the step as the other
   heroes' text (about 120px). */
@media (min-width: 1025px) {
  body:is(.single-location, .page-id-1737) .block--custom-layout__full-width-banner .content {
    transform: none;
  }
}


/* ==========================================================================
   12. Team profile pages (body.single-team_member .rp-bio): brought onto the
   site system. White page, content on the 96px text line of the 1440
   container, the site type scale, brand-palette accents (no Clay), standard
   40px two-step rectangles, cream panels for the credentials and disclaimer,
   the site FAQ rule style and the gradient pill buttons.
   ========================================================================== */
body.single-team_member .rp-bio {
  background: #fff;
  padding-top: 0;
}
body.single-team_member .rp-bio :is(.crumbs, .bio-hero, section, .compliance) {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 96px !important;
  padding-right: 96px !important;
}
body.single-team_member .rp-bio .crumbs {
  padding-top: 32px;
  font-size: var(--rp-small);
}

/* Hero: larger portrait, name on the Display tier. */
body.single-team_member .rp-bio .bio-hero {
  padding-top: 40px;
  padding-bottom: 0;
}
body.single-team_member .rp-bio .bio-hero-grid {
  grid-template-columns: 440px 1fr;
  gap: 72px;
}
body.single-team_member .rp-bio .bio-photo .frame {
  min-height: 560px;
}
body.single-team_member .rp-bio .bio-head {
  align-self: center;
}
body.single-team_member .rp-bio .step {
  margin-bottom: 40px;
}
body.single-team_member .rp-bio .step span {
  height: var(--rp-rect-depth);
}
body.single-team_member .rp-bio .step span:nth-child(1) {
  width: var(--rp-rect-long);
  background: linear-gradient(90deg, var(--rp-field), var(--rp-forest));
}
body.single-team_member .rp-bio .step span:nth-child(2) {
  width: var(--rp-rect-short);
  margin-bottom: var(--rp-rect-depth);
  background: linear-gradient(90deg, var(--rp-gold), var(--rp-earth));
}
body.single-team_member .rp-bio .step span:nth-child(3) {
  display: none;
}
body.single-team_member .rp-bio :is(.bio-head .eyebrow, .section-head .phase) {
  font-size: var(--rp-label);
  font-weight: var(--rp-semibold);
  letter-spacing: 0.12em;
  color: var(--rp-sky);
  margin-bottom: 20px;
}
body.single-team_member .rp-bio .bio-head h1 {
  font-size: clamp(48px, 4.2vw, 76px);
  font-weight: var(--rp-semibold);
  line-height: 1.02;
  margin-bottom: 16px;
}
body.single-team_member .rp-bio .bio-head .role {
  font-size: 18px;
  font-weight: var(--rp-medium);
  line-height: 1.4;
  color: rgba(0, 78, 87, 0.8);
  margin-bottom: 24px;
}
body.single-team_member .rp-bio .bio-meta .chip {
  font-size: var(--rp-small);
  border-color: rgba(0, 78, 87, 0.18);
  box-shadow: none;
}
body.single-team_member .rp-bio .bio-intro {
  font-size: var(--rp-lead);
  line-height: 1.5;
  color: #004e57;
  max-width: 640px;
}
body.single-team_member .rp-bio .bio-actions {
  margin-top: 32px;
}
body.single-team_member .rp-bio :is(.bio-actions .rp-book-meeting-btn, .cta-btn),
body.single-team_member .rp-bio :is(.bio-actions .rp-book-meeting-btn, .cta-btn):is(:hover, :focus) {
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 40px !important;
  padding: 12px 28px !important;
  font-size: 16px !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 24px !important;
  box-shadow: none !important;
}

/* Sections: the site's heading and body scale, steady spacing. */
body.single-team_member .rp-bio section {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}
body.single-team_member .rp-bio .bio-hero + section {
  padding-top: 120px !important;
}
body.single-team_member .rp-bio .section-head {
  margin-bottom: 32px !important;
}
body.single-team_member .rp-bio h2 {
  font-size: var(--rp-h2);
  font-weight: var(--rp-medium);
  line-height: 1.1;
  max-width: 18em;
  margin-bottom: 0;
}
body.single-team_member .rp-bio .prose {
  max-width: 820px;
}
body.single-team_member .rp-bio .prose p {
  font-size: var(--rp-body);
  line-height: 1.6;
  color: rgba(0, 78, 87, 0.8);
  margin-bottom: 20px;
}
body.single-team_member .rp-bio .prose p strong {
  color: #004e57;
}

/* Cards: flat, thin brand border, 4px accent (Field, Sky, Ember). */
body.single-team_member .rp-bio :is(.spec, .tm-article-card) {
  border: 1px solid rgba(0, 78, 87, 0.14);
  border-top: 4px solid var(--rp-field);
  border-radius: 0;
  box-shadow: none;
  padding: 32px 28px;
}
body.single-team_member .rp-bio :is(.spec, .tm-article-card):nth-child(2) {
  border-top-color: var(--rp-sky);
}
body.single-team_member .rp-bio :is(.spec, .tm-article-card):nth-child(3) {
  border-top-color: var(--rp-ember);
}
body.single-team_member .rp-bio .tm-article-card:hover {
  box-shadow: 0 10px 26px rgba(5, 79, 87, 0.1);
}
body.single-team_member .rp-bio .spec-grid,
body.single-team_member .rp-bio .tm-articles {
  gap: 20px;
}
body.single-team_member .rp-bio .spec h3,
body.single-team_member .rp-bio .tm-article-card__title {
  font-size: var(--rp-h4);
  font-weight: var(--rp-semibold);
  line-height: 1.35;
  margin-bottom: 10px;
}
body.single-team_member .rp-bio :is(.spec p, .tm-article-card__excerpt) {
  font-size: var(--rp-body);
  line-height: 1.6;
  color: rgba(0, 78, 87, 0.8);
}
body.single-team_member .rp-bio .tm-article-card__cat {
  font-size: var(--rp-small);
  color: var(--rp-sky);
}

/* Credentials: a cream panel, like the Family and Business panels. */
body.single-team_member .rp-bio .creds {
  background: #f6ecd6;
  border: 0;
  box-shadow: none;
  padding: 48px 56px;
}
body.single-team_member .rp-bio .creds h3 {
  font-size: var(--rp-h4);
  margin-bottom: 28px;
}
body.single-team_member .rp-bio .creds-grid {
  gap: 28px 56px;
}
body.single-team_member .rp-bio .cred-item:nth-child(3) {
  border-left-color: var(--rp-ember);
}
body.single-team_member .rp-bio .cred-item .k {
  font-size: var(--rp-small);
  color: rgba(0, 78, 87, 0.8);
}
body.single-team_member .rp-bio .cred-item .v {
  font-size: var(--rp-body);
  color: #004e57;
  line-height: 1.6;
}

/* FAQ: the site's question-and-rule style (no box). */
body.single-team_member .rp-bio .faq {
  background: none;
  border: 0;
  border-top: 1px solid rgba(11, 79, 67, 0.18);
  border-bottom: 1px solid rgba(11, 79, 67, 0.18);
  box-shadow: none;
  padding: 0;
  max-width: 1040px;
}
body.single-team_member .rp-bio .faq details + details {
  border-top-color: rgba(11, 79, 67, 0.18);
}
body.single-team_member .rp-bio .faq summary {
  padding: 24px 0;
}
body.single-team_member .rp-bio .faq h3 {
  font-size: var(--rp-h4);
  font-weight: var(--rp-semibold);
  color: #0b4f43;
}
body.single-team_member .rp-bio .faq details p {
  font-size: var(--rp-body);
  line-height: 1.6;
  color: rgba(0, 78, 87, 0.8);
  margin-bottom: 24px;
  max-width: 820px;
}
body.single-team_member .rp-bio .related a {
  font-size: var(--rp-label);
  border-color: rgba(0, 78, 87, 0.18);
  box-shadow: none;
}

/* Closing call to action: solid Forest panel on the box line, standard bar. */
body.single-team_member .rp-bio section:has(> .cta) {
  padding-left: 36px !important;
  padding-right: 36px !important;
  padding-top: 80px !important;
}
body.single-team_member .rp-bio .cta {
  background: var(--rp-forest);
}
body.single-team_member .rp-bio .cta-content {
  padding: 72px 60px;
}
body.single-team_member .rp-bio .cta .step span:nth-child(1) {
  background: linear-gradient(90deg, var(--rp-field), var(--rp-sky));
}
body.single-team_member .rp-bio .cta .step span:nth-child(2) {
  background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember));
}
body.single-team_member .rp-bio .cta h2 {
  color: #fff;
  margin-bottom: 20px;
}
body.single-team_member .rp-bio .cta p {
  font-size: var(--rp-body);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
body.single-team_member .rp-bio .cta .sub {
  font-size: var(--rp-small);
}
body.single-team_member .rp-bio .cta-img {
  min-height: 460px;
}

/* Disclaimer: brand cream, small text, on the box line. */
body.single-team_member .rp-bio .compliance {
  padding: 40px 36px 100px !important;
}
body.single-team_member .rp-bio .compliance .box {
  background: #f6ecd6;
  border: 0;
  padding: 24px 28px;
  font-size: var(--rp-small);
  color: rgba(0, 78, 87, 0.85);
}

@media (max-width: 1100px) {
  body.single-team_member .rp-bio :is(.crumbs, .bio-hero, section, .compliance) {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
  body.single-team_member .rp-bio .bio-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  body.single-team_member .rp-bio .bio-photo .frame {
    min-height: 0;
    width: 100%;
    max-width: 520px;
  }
}
@media (max-width: 640px) {
  body.single-team_member .rp-bio :is(.crumbs, .bio-hero, section, .compliance),
  body.single-team_member .rp-bio section:has(> .cta) {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body.single-team_member .rp-bio .creds {
    padding: 32px 24px;
  }
  body.single-team_member .rp-bio .step span:nth-child(1) {
    width: min(var(--rp-rect-long), 60vw);
  }
  body.single-team_member .rp-bio .cta-content {
    padding: 40px 24px;
  }
}
/* Team profiles: keep headings, intro and text blocks on the text line
   (a site-wide rule centres capped-width blocks). */
body.single-team_member .rp-bio :is(h2, .bio-intro, .prose, .faq, .faq details p) {
  margin-left: 0 !important;
  margin-right: auto !important;
}
/* Team profiles: text, headings and the FAQ run the full width of the text
   line (user, 2026-11-30). */
body.single-team_member .rp-bio :is(h2, .prose, .faq, .faq details p) {
  max-width: none !important;
}
/* Kane's "Talk to Kane" photo (Office 40, leaning back laughing): keep him in
   view in the right-hand panel. */
body.single-team_member .rp-bio .cta-img[style*="kane-leersen-cta"] {
  background-position: 74% 30%;
}
/* Team profiles: the RP icon in the bottom-right corner of the credentials
   panel, the same size and inset as the branch icon on the office cards. */
body.single-team_member .rp-bio .creds {
  position: relative;
}
body.single-team_member .rp-bio .creds::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 72px;
  height: 72px;
  background: url("/assets/rp-icon-forest.png") center / contain no-repeat;
}
@media (max-width: 640px) {
  body.single-team_member .rp-bio .creds::after {
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
  }
  body.single-team_member .rp-bio .creds {
    padding-bottom: 88px;
  }
}
/* Team profiles: each closing panel uses a different photo of the person from
   their portrait at the top, cropped to the panel with the person centred
   (files public/assets/<slug>-cta.webp; default centre position). */

/* ==========================================================================
   13. Journal and case study articles (single-post, single-case_study): on
   the site system. Brand cream hero with the heading on the Statement tier on
   the 96px text line and the standard two-step bar; contents and article on
   the text line; site heading/body scale; Sora everywhere (the inline
   "at a glance" and call-to-action boxes were set in Inter).
   ========================================================================== */
body:is(.single-post, .single-case_study) .blog-single__hero-wrap {
  background-color: #f6ecd6 !important;
  position: relative;
  overflow: visible !important;
}
body:is(.single-post, .single-case_study) .blog-single__hero-grid {
  min-height: 560px;
}
@media (min-width: 1025px) {
  body:is(.single-post, .single-case_study) .blog-single__hero-main {
    padding-left: max(96px, calc((100vw - 1440px) / 2 + 96px)) !important;
    padding-right: 72px !important;
    justify-content: center;
  }
  /* Standard two-step bar along the bottom of the hero, from the box line. */
  body:is(.single-post, .single-case_study) .blog-single__hero-wrap::after {
    content: "";
    position: absolute;
    left: max(36px, calc((100vw - 1440px) / 2 + 36px));
    bottom: calc(var(--rp-rect-depth) * -1);
    width: calc(var(--rp-rect-long) + var(--rp-rect-short));
    height: calc(var(--rp-rect-depth) * 2);
    background:
      linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
      linear-gradient(90deg, var(--rp-sky), var(--rp-forest)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat;
    z-index: 2;
    pointer-events: none;
  }
}
body:is(.single-post, .single-case_study) .blog-single__eyebrow {
  font-size: var(--rp-label) !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: 0.12em !important;
  color: var(--rp-sky) !important;
  margin-bottom: 20px !important;
}
body:is(.single-post, .single-case_study) .blog-single__title {
  font-size: clamp(36px, 2.9vw, 52px) !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 1.08 !important;
  color: var(--rp-forest) !important;
  max-width: 13em;
}
body:is(.single-post, .single-case_study) .blog-author-card__name {
  font-size: var(--rp-label) !important;
}
body:is(.single-post, .single-case_study) :is(.blog-author-card__title, .blog-author-card__meta) {
  font-size: var(--rp-small) !important;
}

/* Contents + article on the text line, one generous row below the bar. */
body:is(.single-post, .single-case_study) article.blog-single {
  padding-left: 96px !important;
  padding-right: 96px !important;
}
body:is(.single-post, .single-case_study) .blog-single__layout {
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 120px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body:is(.single-post, .single-case_study) .blog-single__main {
  max-width: 820px;
}

/* Type: site heading and body scale; Sora for the inline boxes. */
body:is(.single-post, .single-case_study) .blog-single__content :is(h2, .blog-single__faqs-title) {
  font-size: var(--rp-h3) !important;
  font-weight: var(--rp-medium) !important;
  line-height: 1.15 !important;
  color: var(--rp-forest) !important;
  margin-top: 56px !important;
  margin-bottom: 20px !important;
}
body:is(.single-post, .single-case_study) .blog-single__content > p,
body:is(.single-post, .single-case_study) .blog-single__content .wp-block-media-text__content p {
  font-size: var(--rp-body) !important;
  line-height: 1.6 !important;
}
body:is(.single-post, .single-case_study) .blog-single__content [style*="Inter"],
body:is(.single-post, .single-case_study) .blog-single__content [style*="Inter"] * {
  font-family: var(--rp-font) !important;
}
body:is(.single-post, .single-case_study) .about-author {
  background-color: #f6ecd6 !important;
}

@media (max-width: 1024px) {
  body:is(.single-post, .single-case_study) article.blog-single {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body:is(.single-post, .single-case_study) .blog-single__layout {
    margin-top: 48px !important;
  }
  body:is(.single-post, .single-case_study) .blog-single__hero-grid {
    min-height: 0;
  }
}
/* Articles: the inline "Contact us" button becomes the site gradient pill. */
body:is(.single-post, .single-case_study) .blog-single__content a[href="/contact/"][style*="border-radius"] {
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56) !important;
  border-radius: 40px !important;
  padding: 12px 28px !important;
  line-height: 24px !important;
}
/* Articles on phones: keep the hero author card inside the screen. */
@media (max-width: 1024px) {
  body:is(.single-post, .single-case_study) .blog-single__hero-wrap {
    overflow: hidden !important;
  }
  body:is(.single-post, .single-case_study) .blog-author-card--hero,
  body:is(.single-post, .single-case_study) .blog-author-card__body {
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body:is(.single-post, .single-case_study) .blog-author-card__body p {
    white-space: normal !important;
  }
}

/* ==========================================================================
   14. Journal archives (category and author pages, body.rp-archive): they
   carry the Journal page's class, so hero, cards and newsletter match it. Only
   the empty-category message needs its own rules.
   ========================================================================== */
body.rp-archive .rp-archive-empty__inner {
  max-width: 820px;
  padding: 0 60px;
}
body.rp-archive .rp-archive-empty h2 {
  color: var(--rp-forest) !important;
  font-size: var(--rp-h3) !important;
  font-weight: var(--rp-medium) !important;
  margin-bottom: 20px !important;
}
body.rp-archive .rp-archive-empty p {
  font-size: var(--rp-lead) !important;
  line-height: 1.5 !important;
  color: rgba(0, 78, 87, 0.8) !important;
  margin-bottom: 32px !important;
}
body.rp-archive .rp-archive-empty__btn {
  display: inline-block;
  background: linear-gradient(90deg, #1dc480, #12906d 43%, #064f56);
  color: #fff !important;
  border-radius: 40px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: var(--rp-semibold);
  line-height: 24px;
  text-decoration: none !important;
}
@media (max-width: 640px) {
  body.rp-archive .rp-archive-empty__inner { padding: 0 24px; }
}
body.rp-archive .block--blog-post-grid.rp-archive-empty {
  padding-top: 160px !important;
  padding-bottom: 120px !important;
}
@media (max-width: 1024px) {
  body.rp-archive .block--blog-post-grid.rp-archive-empty { padding-top: 80px !important; padding-bottom: 72px !important; }
}

/* ==========================================================================
   15. Branded thank-you pages (.rp-tyb, 7 pages): on the site system. Palette
   colours only (the template used off-brand greens, golds and corals),
   Display-tier SemiBold heading, standard two-step bar, content on the 96px
   text line, flat cards with the site's 4px accents.
   ========================================================================== */
body .rp-tyb .rp-tyb__eyebrow {
  font-size: var(--rp-label) !important;
  font-weight: var(--rp-semibold) !important;
  letter-spacing: 0.12em !important;
  color: var(--rp-field) !important;
  margin-bottom: 20px !important;
}
body .rp-tyb .rp-tyb__title {
  font-size: clamp(48px, 4.2vw, 76px) !important;
  font-weight: var(--rp-semibold) !important;
  line-height: 1.02 !important;
}
body .rp-tyb .rp-tyb__accent {
  color: var(--rp-field) !important;
  font-weight: inherit !important;
}
body .rp-tyb .rp-tyb__lead {
  font-size: var(--rp-lead) !important;
  line-height: 1.5 !important;
}
/* Bars: the corner sliver behind the menu goes; the bottom-left bar becomes
   the standard two-step bar from the box line. */
body .rp-tyb .rp-tyb__bar--tr {
  display: none !important;
}
body .rp-tyb .rp-tyb__hero {
  position: relative;
  overflow: visible !important;
}
body .rp-tyb .rp-tyb__bar--bl {
  left: max(36px, calc((100vw - 1440px) / 2 + 36px)) !important;
  bottom: calc(var(--rp-rect-depth) * -1) !important;
  top: auto !important;
  width: calc(var(--rp-rect-long) + var(--rp-rect-short)) !important;
  height: calc(var(--rp-rect-depth) * 2) !important;
  background:
    linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) right top / var(--rp-rect-short) var(--rp-rect-depth) no-repeat,
    linear-gradient(90deg, var(--rp-field), var(--rp-sky)) left bottom / var(--rp-rect-long) var(--rp-rect-depth) no-repeat !important;
  z-index: 2;
}
/* Content on the text line. */
body .rp-tyb .rp-tyb__inner {
  max-width: 1440px !important;
  padding-left: 96px !important;
  padding-right: 96px !important;
}
body .rp-tyb .rp-tyb__next {
  padding-top: 160px !important;
}
body .rp-tyb .rp-tyb__section-title {
  font-size: var(--rp-h2) !important;
  font-weight: var(--rp-medium) !important;
  line-height: 1.1 !important;
}
body .rp-tyb .rp-tyb__step-num {
  color: var(--rp-field) !important;
  font-weight: var(--rp-semibold) !important;
}
body .rp-tyb .rp-tyb__step-title {
  font-size: var(--rp-h3) !important;
  font-weight: var(--rp-medium) !important;
}
body .rp-tyb :is(.rp-tyb__step-body, .rp-tyb__quote) {
  font-size: var(--rp-body) !important;
  line-height: 1.6 !important;
}
body .rp-tyb .rp-tyb__card {
  border: 1px solid rgba(0, 78, 87, 0.14) !important;
  border-top: 4px solid var(--rp-field) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body .rp-tyb .rp-tyb__card:nth-child(2) { border-top-color: var(--rp-sky) !important; }
body .rp-tyb .rp-tyb__card:nth-child(3) { border-top-color: var(--rp-ember) !important; }
@media (max-width: 1024px) {
  body .rp-tyb .rp-tyb__inner { padding-left: 24px !important; padding-right: 24px !important; }
  body .rp-tyb .rp-tyb__next { padding-top: 96px !important; }
  body .rp-tyb .rp-tyb__bar--bl { left: 24px !important; width: min(520px, calc(100% - 48px)) !important; }
}
body .rp-tyb :is(.rp-tyb__reviews-head, .rp-tyb__reviews-grid) {
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 96px !important;
  padding-right: 96px !important;
  box-sizing: border-box;
}
body .rp-tyb .rp-tyb__reviews {
  padding-top: 120px !important;
  padding-bottom: 120px !important;
}
@media (max-width: 1024px) {
  body .rp-tyb :is(.rp-tyb__reviews-head, .rp-tyb__reviews-grid) { padding-left: 24px !important; padding-right: 24px !important; }
  body .rp-tyb .rp-tyb__reviews { padding-top: 72px !important; padding-bottom: 72px !important; }
}

/* Thank-you pages, round two (user: "a little bland"): blossom photo hero
   with the heading on the text line, and "What happens next" built from the
   brand's step device. Three cards rise left to right (an upward trajectory,
   three steps maximum, per the guide), each capped with a 40px step in an
   approved gradient, sitting in front of a thin Sky "window" frame. */
body .rp-tyb .rp-tyb__hero {
  background:
    linear-gradient(94deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.36) 30%, rgba(0, 0, 0, 0) 60%),
    url("/assets/thank-you-hero.webp") center 40% / cover no-repeat !important;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding-top: 140px !important;
  padding-bottom: 100px !important;
}
body .rp-tyb .rp-tyb__hero-inner {
  width: 100%;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding-left: 96px !important;
  padding-right: 96px !important;
  text-align: left !important;
  box-sizing: border-box;
}
body .rp-tyb .rp-tyb__title {
  max-width: none !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
body .rp-tyb .rp-tyb__accent {
  display: block;
}
body .rp-tyb .rp-tyb__lead {
  max-width: 560px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* What happens next: the step device. */
body .rp-tyb .rp-tyb__next {
  padding-bottom: 140px !important;
}
body .rp-tyb .rp-tyb__steps {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: start !important;
  padding-top: 40px;
  margin-top: 24px;
}
body .rp-tyb .rp-tyb__steps::before {
  content: "";
  position: absolute;
  left: 18%;
  right: -36px;
  top: -8px;
  bottom: 120px;
  border: 2px solid var(--rp-sky);
  pointer-events: none;
  z-index: 0;
}
body .rp-tyb .rp-tyb__step {
  position: relative;
  z-index: 1;
  background: #f6ecd6 !important;
  border-radius: 0 !important;
  padding: 72px 40px 48px !important;
  min-height: 340px;
}
body .rp-tyb .rp-tyb__step:nth-child(1) { margin-top: 160px; }
body .rp-tyb .rp-tyb__step:nth-child(2) { margin-top: 80px; background: #fff !important; box-shadow: 0 0 0 1px rgba(0, 78, 87, 0.12); }
body .rp-tyb .rp-tyb__step:nth-child(3) { margin-top: 0; background: var(--rp-forest) !important; }
body .rp-tyb .rp-tyb__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--rp-rect-depth);
}
body .rp-tyb .rp-tyb__step:nth-child(1)::before { background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)); }
body .rp-tyb .rp-tyb__step:nth-child(2)::before { background: linear-gradient(90deg, var(--rp-field), var(--rp-sky)); }
body .rp-tyb .rp-tyb__step:nth-child(3)::before { background: linear-gradient(90deg, var(--rp-sky), var(--rp-field)); }
body .rp-tyb .rp-tyb__step-num {
  font-size: clamp(64px, 6vw, 104px) !important;
  line-height: 0.9 !important;
  font-weight: var(--rp-semibold) !important;
  margin-bottom: 28px !important;
  letter-spacing: -0.02em;
}
body .rp-tyb .rp-tyb__step:nth-child(1) .rp-tyb__step-num { color: var(--rp-gold) !important; }
body .rp-tyb .rp-tyb__step:nth-child(2) .rp-tyb__step-num { color: var(--rp-sky) !important; }
body .rp-tyb .rp-tyb__step:nth-child(3) .rp-tyb__step-num { color: var(--rp-field) !important; }
body .rp-tyb .rp-tyb__step:nth-child(3) .rp-tyb__step-title { color: #fff !important; }
body .rp-tyb .rp-tyb__step:nth-child(3) .rp-tyb__step-body { color: rgba(255, 255, 255, 0.85) !important; }
body .rp-tyb .rp-tyb__callnote {
  position: relative;
  z-index: 1;
  text-align: left !important;
  margin-top: 56px !important;
  font-size: var(--rp-lead) !important;
}
@media (max-width: 1024px) {
  body .rp-tyb .rp-tyb__hero { min-height: 520px; }
  body .rp-tyb .rp-tyb__hero-inner { padding-left: 24px !important; padding-right: 24px !important; }
  body .rp-tyb .rp-tyb__steps { grid-template-columns: 1fr !important; }
  body .rp-tyb .rp-tyb__steps::before { display: none; }
  body .rp-tyb .rp-tyb__step:nth-child(n) { margin-top: 0; min-height: 0; }
}
body .rp-tyb .rp-tyb__hero-inner {
  align-items: flex-start !important;
}
body .rp-tyb .rp-tyb__hero {
  text-align: left !important;
}
/* Accent line in white over the photo (Field green lost contrast against the
   blossom); the label keeps the Field colour. */
body .rp-tyb .rp-tyb__hero .rp-tyb__accent {
  color: #fff !important;
}
/* What happens next, take two (user): cards level, no frame; the step moves
   up across the row - bottom-left on card 1, middle of card 2, top-right of
   card 3 - so the three caps read as one rising staircase. */
body .rp-tyb .rp-tyb__steps::before {
  display: none !important;
}
body .rp-tyb .rp-tyb__step:nth-child(n) {
  margin-top: 0 !important;
  min-height: 500px;
  display: flex !important;
  flex-direction: column;
}
body .rp-tyb .rp-tyb__steps {
  align-items: stretch !important;
  padding-top: 0;
}
body .rp-tyb .rp-tyb__step::before {
  width: 50% !important;
  height: var(--rp-rect-depth) !important;
}
body .rp-tyb .rp-tyb__step:nth-child(1) {
  padding: 48px 40px 104px !important;
}
body .rp-tyb .rp-tyb__step:nth-child(1)::before {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
}
body .rp-tyb .rp-tyb__step:nth-child(2) {
  padding: 48px 40px 48px !important;
  justify-content: space-between;
}
body .rp-tyb .rp-tyb__step:nth-child(2) .rp-tyb__step-num {
  margin-bottom: 0 !important;
}
body .rp-tyb .rp-tyb__step:nth-child(2) .rp-tyb__step-title {
  margin-top: auto !important;
}
body .rp-tyb .rp-tyb__step:nth-child(2)::before {
  top: 50% !important;
  left: 25% !important;
  transform: translateY(-50%);
}
body .rp-tyb .rp-tyb__step:nth-child(3) {
  padding: 104px 40px 48px !important;
}
body .rp-tyb .rp-tyb__step:nth-child(3)::before {
  top: 0 !important;
  left: auto !important;
  right: 0 !important;
}
@media (max-width: 1024px) {
  body .rp-tyb .rp-tyb__step:nth-child(n) { min-height: 0; }
  body .rp-tyb .rp-tyb__step:nth-child(2) { padding-top: 48px !important; padding-bottom: 48px !important; }
  body .rp-tyb .rp-tyb__step:nth-child(2)::before { position: static; transform: none; margin: 24px 0 24px 25%; order: 1; }
  body .rp-tyb .rp-tyb__step:nth-child(2) .rp-tyb__step-num { order: 0; }
  body .rp-tyb .rp-tyb__step:nth-child(2) :is(.rp-tyb__step-title, .rp-tyb__step-body) { order: 2; }
}
/* Same layout in all three cards (number top, title and text bottom, equal
   padding), so only the step changes position card to card. */
body .rp-tyb .rp-tyb__step:nth-child(n) {
  padding: 88px 40px 88px !important;
  justify-content: flex-start;
}
body .rp-tyb .rp-tyb__step:nth-child(n) .rp-tyb__step-num {
  margin-bottom: 0 !important;
}
body .rp-tyb .rp-tyb__step:nth-child(n) .rp-tyb__step-title {
  margin-top: auto !important;
}
@media (max-width: 1024px) {
  body .rp-tyb .rp-tyb__step:nth-child(n) { padding: 72px 24px 72px !important; }
  body .rp-tyb .rp-tyb__step:nth-child(n) .rp-tyb__step-title { margin-top: 24px !important; }
}
@media (min-width: 1025px) {
  body .rp-tyb .rp-tyb__step:nth-child(n) { min-height: 560px; }
}
/* What happens next, take three: no boxes. One continuous step device runs
   across the three columns and climbs one rectangle-depth per step (the
   guide's bar-chart / field-strip idea, three steps, upward), with the
   number, heading and text set level beneath it. */
@media (min-width: 1025px) {
  body .rp-tyb .rp-tyb__steps {
    gap: 0 !important;
    margin-top: 48px !important;
  }
  body .rp-tyb .rp-tyb__step:nth-child(n) {
    background: none !important;
    box-shadow: none !important;
    min-height: 0 !important;
    display: block !important;
    padding: 136px 56px 0 0 !important;
  }
  body .rp-tyb .rp-tyb__step:nth-child(n)::before {
    width: 100% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  body .rp-tyb .rp-tyb__step:nth-child(1)::before { top: calc(var(--rp-rect-depth) * 2) !important; background: linear-gradient(90deg, var(--rp-gold), var(--rp-ember)) !important; }
  body .rp-tyb .rp-tyb__step:nth-child(2)::before { top: var(--rp-rect-depth) !important; background: linear-gradient(90deg, var(--rp-field), var(--rp-sky)) !important; }
  body .rp-tyb .rp-tyb__step:nth-child(3)::before { top: 0 !important; background: linear-gradient(90deg, var(--rp-sky), var(--rp-forest)) !important; }
  body .rp-tyb .rp-tyb__step:nth-child(n) .rp-tyb__step-num {
    font-size: var(--rp-h2) !important;
    line-height: 1 !important;
    margin-bottom: 20px !important;
  }
  body .rp-tyb .rp-tyb__step:nth-child(n) .rp-tyb__step-title {
    margin-top: 0 !important;
    color: var(--rp-forest) !important;
  }
  body .rp-tyb .rp-tyb__step:nth-child(n) .rp-tyb__step-body {
    color: rgba(0, 78, 87, 0.8) !important;
    max-width: 340px;
  }
  body .rp-tyb .rp-tyb__step:nth-child(1) .rp-tyb__step-num { color: var(--rp-gold) !important; }
  body .rp-tyb .rp-tyb__step:nth-child(2) .rp-tyb__step-num { color: var(--rp-field) !important; }
  body .rp-tyb .rp-tyb__step:nth-child(3) .rp-tyb__step-num { color: var(--rp-sky) !important; }
}
@media (min-width: 1025px) {
  body .rp-tyb .rp-tyb__step:nth-child(n) { padding-top: 176px !important; }
  body .rp-tyb .rp-tyb__step:nth-child(n) .rp-tyb__step-title { margin-bottom: 16px !important; }
}
