/* Back Link — "back" link with a left arrow (Views/Partials/backLink), scoped to .back-link.
   Values from the reference ESG sub-pages (main.css .cta a, .arrow; inline .cta .arrow), measured 2026-10-21:
   link 38px from the left edge at all widths; bold 16/30 in the page accent; 15×16 arrow (14px wide image)
   turned 90° to point left, 6px before the text.
   --top     beside the hero scroll arrow: 34px above the end of the arrow row (74px at ≤850px, where the
             reference link overlaps the hero image by 18px). Place it directly after Page Hero and follow it with
             Page Intro. As on the reference ESG sub-pages, the block is 80px high (40px at ≤850px; reference .navi
             margin) and the Page Intro after it gets 22px top padding (reference inline padding-top: 22px): the
             intro heading sits 102px (62px) below the arrow row and "Jump to intro" lands it 22px from the top.
   --bottom  after the last section: the link is 80px above the footer (40px at ≤850px) with the default spacing;
             the gap above it comes from the section before it (reference 50px; Spacing Bottom small).
   Bottom spacing from sectionComposition.spacingBottom (none / small / medium / large); --space-default is
   50px (10px at ≤850px). */

.back-link__link {
  display: inline-flex;
  vertical-align: top; /* no line-box gap under the link, so the bottom link is exactly 80px / 40px above the footer */
  align-items: center;
  gap: 6px;
  font-family: var(--eve-font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  color: var(--eve-page-accent, var(--eve-color-violet));
  text-decoration: none;
}

.back-link__arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 15px;
  height: 16px;
  background: var(--eve-page-accent-arrow, url("/img/arrow-purple.svg")) no-repeat 0 0 / 14px auto;
  transform: rotate(90deg);
}

/* top: 80px high (40px at ≤850px), the reference sub-page space under the scroll arrow; the link is
   positioned over the gap beside the scroll arrow, measured from the top of this block. */
.back-link--top {
  position: relative;
  height: 80px;
}

/* The Page Intro directly after a top link starts with 22px (reference sub-page intro section), so the
   intro anchor sits where the reference's does. */
.back-link--top + .page-intro {
  padding-top: 22px;
}

.back-link--top .back-link__link {
  position: absolute;
  top: -34px;
  left: 38px;
  z-index: 1;
}

/* bottom: in the flow, before the footer. */
.back-link--bottom {
  padding-left: 38px;
}

.back-link--space-none {
  padding-bottom: 0;
}

.back-link--space-small {
  padding-bottom: 50px;
}

.back-link--space-medium {
  padding-bottom: 80px;
}

.back-link--space-large {
  padding-bottom: 170px;
}

.back-link--space-default {
  padding-bottom: 50px;
}

@media (max-width: 850px) {
  .back-link--top {
    height: 40px;
  }

  .back-link--top .back-link__link {
    top: -74px;
  }

  .back-link--space-small,
  .back-link--space-medium {
    padding-bottom: 40px;
  }

  .back-link--space-large {
    padding-bottom: 100px;
  }

  .back-link--space-default {
    padding-bottom: 10px;
  }
}
