/* LIST.ENERGY v6.5.0 — align directional arrows with their own labels.
   Equalise the visible arrow/label spacing across the site, regardless of
   legacy inline whitespace, margins, flex gaps, and space-between alignment.
   The three CSS triangles, reduced-motion behavior, and all link destinations
   remain unchanged. */
:root { --le-arrow-label-gap: 8px; }

/* Each CTA/link with a direct arrow receives a real flex gap. This also
   handles links that previously relied on incidental HTML spaces. */
:is(a, button):has(> .le-motion-arrow) {
  display: inline-flex;
  align-items: center;
  column-gap: var(--le-arrow-label-gap);
}
:is(a, button) > .le-motion-arrow,
:is(a, button) > .le-motion-arrow--back {
  margin-inline: 0 !important;
  flex-shrink: 0;
}

/* Labels and arrows in the sitewide menus should form a single unit.
   Do not use space-between / auto margin: that makes the distance depend
   on label length (especially conspicuous in the narrow mobile accordion). */
.le-shell-desktop-nav > :is(a, button),
.le-shell-mobile-links > :is(a, button) {
  justify-content: flex-start;
  column-gap: var(--le-arrow-label-gap) !important;
}
body.home .homepage .le-quick-access .le-quick-actions .le-quick-action {
  justify-content: flex-start !important;
  column-gap: var(--le-arrow-label-gap) !important;
}
body.home .homepage .le-quick-access .le-quick-actions .le-quick-action > .le-quick-arrow.le-motion-arrow {
  margin-inline: 0 !important;
}

/* Make the Explore label/chevron separation match the rest of the site. */
body.home .homepage .le-quick-access .le-quick-summary,
.le-shell-mobile-menu summary {
  column-gap: var(--le-arrow-label-gap) !important;
}

/* Search buttons have intentionally distinct visuals, but the icon must
   remain adjacent to its caption, not drift to the far edge of the button. */
:is(.search-submit, .le-catalog-filter button):has(> .le-motion-arrow) {
  justify-content: center !important;
  column-gap: var(--le-arrow-label-gap) !important;
}
body.home .homepage .explainer-actions .search-submit:has(> .le-motion-arrow) {
  justify-content: center !important;
  column-gap: var(--le-arrow-label-gap) !important;
}

/* Other flex-based label/button components had 5–15px gaps in older CSS. */
:is(.le36-button, .le36-offer-cta, .le62-primary, .le59-more a,
    .le62-more a, .le62-cross-links a, .le-catalog-paging .page-numbers,
    .le55-service-destination, .le55-manufacturer-website,
    .le-page-back, .le-home-return):has(> .le-motion-arrow),
.le55-manufacturer-website:has(> .le55-external-link-mark),
.le59-page .le59-story-foot .le59-story-link {
  column-gap: var(--le-arrow-label-gap) !important;
}
/* Preserve existing home/back button icon arrangement, but remove the
   arrow's legacy additional margin (which doubled the intended gap). */
.le-home-return > .le-home-return__arrow,
.le-page-back > .le-motion-arrow { margin-inline: 0 !important; }

/* In catalogue cards, keep “View suppliers/providers” and its arrow together
   instead of pinning the arrow far away at the opposite edge of the card. */
.le-catalog-card-foot {
  justify-content: flex-start;
  column-gap: var(--le-arrow-label-gap);
}
.le-catalog-card-foot > .le-catalog-card-arrow.le-motion-arrow {
  margin-inline: 0 !important;
}

/* Allow narrow text URLs to wrap rather than push an arrow into the edge. */
.le36-contact-item a:has(> .le-motion-arrow) {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  body.home .homepage .le-quick-access .le-quick-actions .le-quick-action {
    padding-inline: 8px !important; /* Retain the unboxed accordion geometry. */
  }
}
