/* LIST.ENERGY 6.5.8 — homepage search alignment and paired navigation controls.
   Loaded after the compiled page bundle and the earlier 6.5.5/6.5.7 overrides. */

/* Search box: the example, typed input and caret share the same optical centre.
   Text stays selectable/editable, and additional lines scroll inside the field. */
body.home .homepage .requirement-input-shell textarea,
body.home .homepage .requirement-field textarea {
  text-align: center !important;
  text-align-last: center;
  align-content: center;
  line-height: 1.45 !important;
  overflow-y: auto;
}
body.home .homepage .rotating-example {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
  inset: 0 !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 8px 14px !important;
  pointer-events: none;
}
body.home .homepage .rotating-example.is-hidden {
  display: none !important;
}
body.home .homepage .rotating-example [data-example-text],
body.home .homepage .rotating-example .rotating-prefix {
  display: block;
  max-width: 100%;
  margin-inline: auto;
  text-align: center !important;
}
@media (max-width: 700px) {
  body.home .homepage .rotating-example {
    padding: 6px 11px !important;
    gap: 2px !important;
    line-height: 1.25 !important;
  }
}

/* Same dimensions, colours, icon treatment, type, alignment and behaviour for
   Previous page and Back to home. The icons differ only in meaning. */
body:not(.home) :is(.le-page-back, .le-home-return) {
  box-sizing: border-box !important;
  width: 192px !important;
  min-width: 192px !important;
  max-width: 192px !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 7px 11px 7px 8px !important;
  margin: 0 !important;
  gap: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border: 1px solid rgba(117, 234, 211, .64) !important;
  border-radius: 100px !important;
  color: #f5fffc !important;
  background: linear-gradient(120deg, #102f39, #17444b) !important;
  box-shadow: 0 10px 32px rgba(4, 26, 35, .24), inset 0 1px 0 rgba(255,255,255,.13) !important;
  font: 720 13px/1.15 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  -webkit-tap-highlight-color: transparent;
}
body:not(.home) :is(.le-page-back__icon, .le-home-return__icon) {
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 33px !important;
  width: 33px !important;
  height: 33px !important;
  border: 1px solid rgba(210,255,248,.23) !important;
  border-radius: 50% !important;
  color: #a5f9e8 !important;
  background: rgba(155,244,225,.09) !important;
}
body:not(.home) :is(.le-page-back__icon svg, .le-home-return__icon svg) {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor;
}
body:not(.home) :is(.le-page-back__label, .le-home-return__text) {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  white-space: nowrap !important;
}
body:not(.home) .le-home-return__long { display: inline !important; }
body:not(.home) .le-home-return__short { display: none !important; }
body:not(.home) .le-home-return__arrow { display: none !important; }
body:not(.home) .le-page-back__long { display: inline !important; }
body:not(.home) .le-page-back[hidden] { display: none !important; }

/* Equal vertical spacing from the bottom and between the two controls. */
body:not(.home) .le-home-return {
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(15px + env(safe-area-inset-bottom, 0px)) !important;
}
body:not(.home) .le-page-back {
  right: max(14px, env(safe-area-inset-right, 0px)) !important;
  bottom: calc(77px + env(safe-area-inset-bottom, 0px)) !important;
}
body:not(.home) :is(.le-page-back, .le-home-return):hover {
  color: #fff !important;
  border-color: #a1f3e5 !important;
  background: linear-gradient(120deg, #16414c, #1c5358) !important;
  box-shadow: 0 13px 37px rgba(4,26,35,.30), 0 0 0 3px rgba(70,220,191,.09) !important;
}
body:not(.home) :is(.le-page-back, .le-home-return):focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #097f77, 0 12px 30px rgba(4,26,35,.28) !important;
}
@media (min-width: 760px) {
  body:not(.home) :is(.le-page-back, .le-home-return) {
    width: 204px !important;
    min-width: 204px !important;
    max-width: 204px !important;
    height: 52px !important;
    min-height: 52px !important;
    font-size: 13px !important;
  }
  body:not(.home) .le-home-return {
    right: max(25px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:not(.home) .le-page-back {
    right: max(25px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 359px) {
  body:not(.home) :is(.le-page-back, .le-home-return) {
    width: 172px !important;
    min-width: 172px !important;
    max-width: 172px !important;
    font-size: 12px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.home) :is(.le-page-back, .le-home-return) {
    animation: none !important;
    transition: none !important;
  }
}
@media (forced-colors: active) {
  body:not(.home) :is(.le-page-back, .le-home-return) {
    color: ButtonText !important;
    background: ButtonFace !important;
    border-color: ButtonText !important;
  }
}

/* Homepage only: remove known third-party floating cookie *revisit icons*,
   never the initial consent dialog or an ordinary privacy-policy link. */
body.home :is(
  #CookiebotWidget,
  #cookiebot-revisit,
  .cookiebot-revisit,
  #iubenda-cs-preferences-widget,
  .osano-cm-widget,
  .osano-cm-widget__widget,
  .usercentrics-button,
  #gdpr-cookie-revisit,
  .gdpr-cookie-revisit,
  [data-le-cookie-revisit-hidden]
) { display: none !important; visibility: hidden !important; pointer-events: none !important; }
