/* Consistent 16px edge-to-edge gaps across the investor homepage panels.
   Preserve the process panel's lead-in and all panel interior spacing. */
.page-investors .process-shopify.quote-shopify {
  padding-bottom: 8px;
}
.page-investors .serve-shopify.quote-shopify,
.page-investors .sector-details.sector-hybrid,
.page-investors .impact-shopify.quote-shopify,
.page-investors .get-shopify.quote-shopify,
.page-investors .ready-shopify.quote-shopify {
  padding-block: 8px;
}

/* Desktop: keep the investor hero headline on its two designed lines. */
@media (min-width: 900px) {
  .page-home.page-investors .hero h1 {
    font-size: min(72px, calc((100vw - 2 * var(--page-inline)) / 18.2));
  }

  .page-home.page-investors .hero .hero-line {
    white-space: nowrap;
  }
}

/* Return sentence fills the first line, closer to the line below it. */
.page-investors .hero-sub {
  max-width: 33em;
  text-wrap: wrap;
}

/* Desktop only: end node and Capped royalties flag sit at the flare tip, matching the company chart. */
.page-investors .process-shopify .process-goal-frame {
  display: none;
}

@media (min-width: 1024px) {
  .page-investors .process-shopify .process-goal {
    min-width: 148px;
    justify-items: end;
  }

  .page-investors .process-shopify .process-goal-badge,
  .page-investors .process-shopify .process-goal-frame {
    width: 148px;
    justify-self: end;
    box-sizing: border-box;
  }

  .page-investors .process-shopify .process-goal-frame {
    display: block;
    grid-row: 2;
    align-self: stretch;
    height: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
  }

  .page-investors .process-shopify .process-goal .process-stem {
    display: none;
  }

  .page-investors .process-shopify .process-goal .process-node {
    justify-self: end;
    margin: 0 -8px 0 0;
  }
}

/* Card-to-card space: 64px on phones, 96px from tablet up.
   Does not change the space above the first card or inside the cards. */
.page-investors.page-home[data-spacing]:not([data-spacing="current"]) :is(.process-shopify, .serve-shopify, .sector-hybrid, .impact-shopify, .get-shopify) {
  padding-bottom: 32px;
}
.page-investors.page-home[data-spacing]:not([data-spacing="current"]) :is(.serve-shopify, .sector-hybrid, .impact-shopify, .get-shopify, .ready-shopify) {
  padding-top: 32px;
}
@media (min-width: 768px) {
  .page-investors.page-home[data-spacing]:not([data-spacing="current"]) :is(.process-shopify, .serve-shopify, .sector-hybrid, .impact-shopify, .get-shopify) {
    padding-bottom: 48px;
  }
  .page-investors.page-home[data-spacing]:not([data-spacing="current"]) :is(.serve-shopify, .sector-hybrid, .impact-shopify, .get-shopify, .ready-shopify) {
    padding-top: 48px;
  }
}
