/* LIST.ENERGY 6.5.5 | Homepage-only, viewport-fit refinement.
   Keep the search, branded content, navigation and privacy link reachable.
   On small/zoomed screens, menu-open and spotlight-overflow states may scroll. */

/* Hide only THIRD-PARTY floating cookie preference/revisit LAUNCHERS on the
   homepage. Do not hide an initial consent banner, dialog, or privacy link. */
body.home :is(
  .cky-btn-revisit-wrapper,
  .cky-revisit-bottom-left,
  .cky-revisit-bottom-right,
  .cookieyes-revisit-wrapper,
  .cmplz-manage-consent,
  #cmplz-manage-consent,
  #cookie-law-info-again,
  #ot-sdk-btn-floating,
  .ot-floating-button,
  .cc-revoke,
  #moove_gdpr_save_popup_settings_button
) {display:none!important;visibility:hidden!important;pointer-events:none!important;}

/* In ordinary viewing modes the homepage occupies exactly the screen. Avoid
   locking scrolling where a user opens the accordion or zooms/reduces height. */
body.home:not(.admin-bar) .homepage:not(.le-mobile-menu-open):not(.le-spotlight-needs-room) {
  height:100vh!important;
  height:100svh!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}
body.home.admin-bar .homepage:not(.le-mobile-menu-open):not(.le-spotlight-needs-room) {
  height:calc(100dvh - var(--wp-admin--admin-bar--height, 32px))!important;
  min-height:calc(100dvh - var(--wp-admin--admin-bar--height, 32px))!important;
  max-height:none!important;
  overflow:hidden!important;
}
/* These are essential accessibility fallbacks, not layout defects: expanding
   the menu, browser zoom or the on-screen keyboard must never clip controls. */
body.home .homepage.le-mobile-menu-open,
body.home .homepage.le-spotlight-needs-room {
  height:auto!important;
  max-height:none!important;
  min-height:var(--le-spotlight-content-height,100dvh)!important;
  overflow:visible!important;
}
html.le-mobile-menu-page-open,
body.home.le-mobile-menu-page-open,
html.le-spotlight-needs-scroll,
body.home.le-spotlight-needs-scroll {overflow-y:auto!important;overflow-x:hidden!important;}

/* Footer remains inside the single-screen composition, never below the fold. */
body.home .homepage .home-footer {
  box-sizing:border-box;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  width:100%!important;
  height:auto!important;
  min-height:32px!important;
  margin:0!important;
  padding:5px 10px max(7px, env(safe-area-inset-bottom))!important;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:5px;
  line-height:1.3;
}
body.home .homepage .home-footer a {min-height:0!important;padding:0!important;margin:0!important;}

@media (min-width:901px) {
  /* Fit the existing desktop hero without shrinking the wordmark to a stamp. */
  body.home .homepage .home-top {
    top:clamp(86px,12dvh,132px)!important;
    width:min(820px, calc(100vw - 265px))!important;
    padding:0!important;
  }
  body.home .homepage .home-top .list-logo {
    width:min(675px,100%)!important;
    max-height:148px!important;
    height:auto!important;
  }
  body.home .homepage .home-top .explanatory-search {
    margin-top:clamp(18px,3.8dvh,40px)!important;
  }
  body.home .homepage .requirement-field {padding:9px 0 8px!important;}
  body.home .homepage .requirement-input-shell textarea,
  body.home .homepage .requirement-field textarea {
    box-sizing:border-box!important;
    height:clamp(74px,11dvh,106px)!important;
    min-height:74px!important;
    resize:none!important;
    padding:14px 18px!important;
  }
  body.home .homepage .rotating-example {top:14px!important;left:18px!important;right:18px!important;}
  body.home .homepage .explainer-actions .search-submit {min-height:48px!important;}
}

@media (min-width:701px) and (max-width:900px) {
  body.home .homepage .home-top {
    top:clamp(90px,13dvh,144px)!important;
    width:min(630px,calc(100vw - 66px))!important;
    padding:0!important;
  }
  body.home .homepage .home-top .list-logo {width:min(520px,100%)!important;max-height:128px!important;}
  body.home .homepage .home-top .explanatory-search {margin-top:clamp(18px,3.2dvh,34px)!important;}
  body.home .homepage .requirement-field {padding:9px 0!important;}
  body.home .homepage .requirement-input-shell textarea,
  body.home .homepage .requirement-field textarea {height:90px!important;min-height:90px!important;resize:none!important;}
  body.home .homepage .explainer-actions .search-submit {min-height:46px!important;}
}

@media (max-width:700px) {
  body.home .homepage .home-top {
    top:43%!important;
    left:14px!important;
    right:14px!important;
    width:calc(100% - 28px)!important;
    padding:0!important;
    transform:translateY(-50%)!important;
  }
  body.home .homepage .home-top .list-logo {
    width:min(350px,100%)!important;
    max-height:76px!important;
    height:auto!important;
  }
  body.home .homepage .brand-search > .le-mobile-eyebrow {
    margin:clamp(6px,1.3dvh,12px) 0 0!important;
    font-size:clamp(25px,4.0dvh,38px)!important;
    line-height:1.01!important;
  }
  body.home .homepage .home-top .explanatory-search {
    margin:clamp(9px,1.7dvh,17px) 0 0!important;
  }
  body.home .homepage .explainer-heading {
    max-width:100%;
    font-size:clamp(17px,2.75dvh,22px)!important;
    line-height:1.2!important;
  }
  body.home .homepage .requirement-field {
    padding:0!important;
    margin:clamp(7px,1.3dvh,11px) 0 0!important;
  }
  body.home .homepage .requirement-input-shell textarea,
  body.home .homepage .requirement-field textarea {
    box-sizing:border-box!important;
    height:clamp(76px,11dvh,96px)!important;
    min-height:76px!important;
    max-height:96px!important;
    padding:12px 14px!important;
    font-size:16px!important; /* prevents mobile Safari input zoom */
    resize:none!important;
  }
  body.home .homepage .rotating-example {
    top:0!important;left:0!important;right:0!important;
    padding:10px 14px!important;
    font-size:clamp(12px,1.85dvh,14px)!important;
    line-height:1.25!important;
  }
  body.home .homepage .explainer-actions {margin:clamp(7px,1.1dvh,10px) 0 0!important;}
  body.home .homepage .explainer-actions .search-submit {
    min-height:46px!important;
    height:46px!important;
    padding-block:8px!important;
  }
  body.home .homepage .home-footer {font-size:10.5px!important;}
}

@media (max-width:700px) and (max-height:640px) {
  body.home .homepage .home-top {top:43.5%!important;}
  body.home .homepage .home-top .list-logo {width:min(300px,100%)!important;max-height:65px!important;}
  body.home .homepage .brand-search > .le-mobile-eyebrow {
    margin-top:6px!important;
    font-size:clamp(24px,4.4dvh,30px)!important;
    line-height:.99!important;
  }
  body.home .homepage .home-top .explanatory-search {margin-top:8px!important;}
  body.home .homepage .explainer-heading {font-size:17px!important;}
  body.home .homepage .requirement-input-shell textarea,
  body.home .homepage .requirement-field textarea {height:76px!important;min-height:76px!important;}
  body.home .homepage .explainer-actions .search-submit {height:44px!important;min-height:44px!important;}
}
/* Very short landscape/zoomed devices use the accessible overflow fallback.
   Remove decorative slogan before sacrificing search-field legibility. */
@media (max-width:700px) and (max-height:490px) {
  body.home .homepage .brand-search > .le-mobile-eyebrow {display:none!important;}
  body.home .homepage .home-top {top:41%!important;}
  body.home .homepage .home-top .list-logo {max-height:52px!important;}
  body.home .homepage .requirement-input-shell textarea,
  body.home .homepage .requirement-field textarea {height:68px!important;min-height:68px!important;max-height:68px!important;}
  body.home .homepage .explainer-actions .search-submit {height:42px!important;min-height:42px!important;}
}

/* Keep an unobtrusive, keyboard-accessible preference control instead of a
   floating cookie icon whenever the site's plugin exposes a revisit control. */
body.home .homepage .home-footer .le-home-cookie-settings {
  display:inline;
  appearance:none;
  padding:0;
  margin:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  color:inherit;
  font:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}
body.home .homepage .home-footer .le-home-cookie-settings[hidden],
body.home .homepage .home-footer .le-cookie-settings-separator[hidden] {display:none!important;}
body.home .homepage .home-footer .le-home-cookie-settings:is(:hover,:focus-visible){color:#e6fff4;}
body.home .homepage .home-footer .le-home-cookie-settings:focus-visible {outline:2px solid #c3f8e8;outline-offset:3px;}
